models_mesh_picking.js 1.6 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531445324453344534445354453644537445384453944540445414454244543445444454544546445474454844549445504455144552445534455444555445564455744558445594456044561445624456344564445654456644567445684456944570445714457244573445744457544576445774457844579445804458144582445834458444585445864458744588445894459044591445924459344594445954459644597445984459944600446014460244603446044460544606446074460844609446104461144612446134461444615446164461744618446194462044621446224462344624446254462644627446284462944630446314463244633446344463544636446374463844639446404464144642446434464444645446464464744648446494465044651446524465344654446554465644657446584465944660446614466244663446644466544666446674466844669446704467144672446734467444675446764467744678446794468044681446824468344684446854468644687446884468944690446914469244693446944469544696446974469844699447004470144702447034470444705447064470744708447094471044711447124471344714447154471644717447184471944720447214472244723447244472544726447274472844729447304473144732447334473444735447364473744738447394474044741447424474344744447454474644747447484474944750447514475244753447544475544756447574475844759447604476144762447634476444765447664476744768447694477044771447724477344774447754477644777447784477944780447814478244783447844478544786447874478844789447904479144792447934479444795447964479744798447994480044801448024480344804448054480644807448084480944810448114481244813448144481544816448174481844819448204482144822448234482444825448264482744828448294483044831448324483344834448354483644837448384483944840448414484244843448444484544846448474484844849448504485144852448534485444855448564485744858448594486044861448624486344864448654486644867448684486944870448714487244873448744487544876448774487844879448804488144882448834488444885448864488744888448894489044891448924489344894448954489644897448984489944900449014490244903449044490544906449074490844909449104491144912449134491444915449164491744918449194492044921449224492344924449254492644927449284492944930449314493244933449344493544936449374493844939449404494144942449434494444945449464494744948449494495044951449524495344954449554495644957449584495944960449614496244963449644496544966449674496844969449704497144972449734497444975449764497744978449794498044981449824498344984449854498644987449884498944990449914499244993449944499544996449974499844999450004500145002450034500445005450064500745008450094501045011450124501345014450154501645017450184501945020450214502245023450244502545026450274502845029450304503145032450334503445035450364503745038450394504045041450424504345044450454504645047450484504945050450514505245053450544505545056450574505845059450604506145062450634506445065450664506745068450694507045071450724507345074450754507645077450784507945080450814508245083450844508545086450874508845089450904509145092450934509445095450964509745098450994510045101451024510345104451054510645107451084510945110451114511245113451144511545116451174511845119451204512145122451234512445125451264512745128451294513045131451324513345134451354513645137451384513945140451414514245143451444514545146451474514845149451504515145152451534515445155451564515745158451594516045161451624516345164451654516645167451684516945170451714517245173451744517545176451774517845179451804518145182451834518445185451864518745188451894519045191451924519345194451954519645197451984519945200452014520245203452044520545206452074520845209452104521145212452134521445215452164521745218452194522045221452224522345224452254522645227452284522945230452314523245233452344523545236452374523845239452404524145242452434524445245452464524745248452494525045251452524525345254452554525645257452584525945260452614526245263452644526545266452674526845269452704527145272452734527445275452764527745278452794528045281452824528345284452854528645287452884528945290452914529245293452944529545296452974529845299453004530145302453034530445305453064530745308453094531045311453124531345314453154531645317453184531945320453214532245323453244532545326453274532845329453304533145332453334533445335453364533745338453394534045341453424534345344453454534645347453484534945350453514535245353453544535545356453574535845359453604536145362453634536445365453664536745368453694537045371453724537345374453754537645377453784537945380453814538245383453844538545386453874538845389453904539145392453934539445395453964539745398453994540045401454024540345404454054540645407454084540945410454114541245413454144541545416454174541845419454204542145422454234542445425454264542745428454294543045431454324543345434454354543645437454384543945440454414544245443454444544545446454474544845449454504545145452454534545445455454564545745458454594546045461454624546345464454654546645467454684546945470454714547245473454744547545476454774547845479454804548145482454834548445485454864548745488454894549045491454924549345494454954549645497454984549945500455014550245503455044550545506455074550845509455104551145512455134551445515455164551745518455194552045521455224552345524455254552645527455284552945530455314553245533455344553545536455374553845539455404554145542455434554445545455464554745548455494555045551455524555345554455554555645557455584555945560455614556245563455644556545566455674556845569455704557145572455734557445575455764557745578455794558045581455824558345584455854558645587455884558945590455914559245593455944559545596455974559845599456004560145602456034560445605456064560745608456094561045611456124561345614456154561645617456184561945620456214562245623456244562545626456274562845629456304563145632456334563445635456364563745638456394564045641456424564345644456454564645647456484564945650456514565245653456544565545656456574565845659456604566145662456634566445665456664566745668456694567045671456724567345674456754567645677456784567945680456814568245683456844568545686456874568845689456904569145692456934569445695456964569745698456994570045701457024570345704457054570645707457084570945710457114571245713457144571545716457174571845719457204572145722457234572445725457264572745728457294573045731457324573345734457354573645737457384573945740457414574245743457444574545746457474574845749457504575145752457534575445755457564575745758457594576045761457624576345764457654576645767457684576945770457714577245773457744577545776457774577845779457804578145782457834578445785457864578745788457894579045791457924579345794457954579645797457984579945800458014580245803458044580545806458074580845809458104581145812458134581445815458164581745818458194582045821458224582345824458254582645827458284582945830458314583245833458344583545836458374583845839458404584145842458434584445845458464584745848458494585045851458524585345854458554585645857458584585945860458614586245863458644586545866458674586845869458704587145872458734587445875458764587745878458794588045881458824588345884458854588645887458884588945890458914589245893458944589545896458974589845899459004590145902459034590445905459064590745908459094591045911459124591345914459154591645917459184591945920459214592245923459244592545926459274592845929459304593145932459334593445935459364593745938459394594045941459424594345944459454594645947459484594945950459514595245953459544595545956459574595845959459604596145962459634596445965459664596745968459694597045971459724597345974459754597645977459784597945980459814598245983459844598545986459874598845989459904599145992459934599445995459964599745998459994600046001460024600346004460054600646007460084600946010460114601246013460144601546016460174601846019460204602146022460234602446025460264602746028460294603046031460324603346034460354603646037460384603946040460414604246043460444604546046460474604846049460504605146052460534605446055460564605746058460594606046061460624606346064460654606646067460684606946070460714607246073460744607546076460774607846079460804608146082460834608446085460864608746088460894609046091460924609346094460954609646097460984609946100461014610246103461044610546106461074610846109461104611146112461134611446115461164611746118461194612046121461224612346124461254612646127461284612946130461314613246133461344613546136461374613846139461404614146142461434614446145461464614746148461494615046151461524615346154461554615646157461584615946160461614616246163461644616546166461674616846169461704617146172461734617446175461764617746178461794618046181461824618346184461854618646187461884618946190461914619246193461944619546196461974619846199462004620146202462034620446205462064620746208462094621046211462124621346214462154621646217462184621946220462214622246223462244622546226462274622846229462304623146232462334623446235462364623746238462394624046241462424624346244462454624646247462484624946250462514625246253462544625546256462574625846259462604626146262462634626446265462664626746268462694627046271462724627346274462754627646277462784627946280462814628246283462844628546286462874628846289462904629146292462934629446295462964629746298462994630046301463024630346304463054630646307463084630946310463114631246313463144631546316463174631846319463204632146322463234632446325463264632746328463294633046331463324633346334463354633646337463384633946340463414634246343463444634546346463474634846349463504635146352463534635446355463564635746358463594636046361463624636346364463654636646367463684636946370463714637246373463744637546376463774637846379463804638146382463834638446385463864638746388463894639046391463924639346394463954639646397463984639946400464014640246403464044640546406464074640846409464104641146412464134641446415464164641746418464194642046421464224642346424464254642646427464284642946430464314643246433464344643546436464374643846439464404644146442464434644446445464464644746448464494645046451464524645346454464554645646457464584645946460464614646246463464644646546466464674646846469464704647146472464734647446475464764647746478464794648046481464824648346484464854648646487464884648946490464914649246493464944649546496464974649846499465004650146502465034650446505465064650746508465094651046511465124651346514465154651646517465184651946520465214652246523465244652546526465274652846529465304653146532465334653446535465364653746538465394654046541465424654346544465454654646547465484654946550465514655246553465544655546556465574655846559465604656146562465634656446565465664656746568465694657046571465724657346574465754657646577465784657946580465814658246583465844658546586465874658846589465904659146592465934659446595465964659746598465994660046601466024660346604466054660646607466084660946610466114661246613466144661546616466174661846619466204662146622466234662446625466264662746628466294663046631466324663346634466354663646637466384663946640466414664246643466444664546646466474664846649466504665146652466534665446655466564665746658466594666046661466624666346664466654666646667466684666946670466714667246673466744667546676466774667846679466804668146682466834668446685466864668746688466894669046691466924669346694466954669646697466984669946700467014670246703467044670546706467074670846709467104671146712467134671446715467164671746718467194672046721467224672346724467254672646727467284672946730467314673246733467344673546736467374673846739467404674146742467434674446745467464674746748467494675046751467524675346754467554675646757467584675946760467614676246763467644676546766467674676846769467704677146772467734677446775467764677746778467794678046781467824678346784467854678646787467884678946790467914679246793467944679546796467974679846799468004680146802468034680446805468064680746808468094681046811468124681346814468154681646817468184681946820468214682246823468244682546826468274682846829468304683146832468334683446835468364683746838468394684046841468424684346844468454684646847468484684946850468514685246853468544685546856468574685846859468604686146862468634686446865468664686746868468694687046871468724687346874468754687646877468784687946880468814688246883468844688546886468874688846889468904689146892468934689446895468964689746898468994690046901469024690346904469054690646907469084690946910469114691246913469144691546916469174691846919469204692146922469234692446925469264692746928469294693046931469324693346934469354693646937469384693946940469414694246943469444694546946469474694846949469504695146952469534695446955469564695746958469594696046961469624696346964469654696646967469684696946970469714697246973469744697546976469774697846979469804698146982469834698446985469864698746988469894699046991469924699346994469954699646997469984699947000470014700247003470044700547006470074700847009470104701147012470134701447015470164701747018470194702047021470224702347024470254702647027470284702947030470314703247033470344703547036470374703847039470404704147042470434704447045470464704747048470494705047051470524705347054470554705647057470584705947060470614706247063470644706547066470674706847069470704707147072470734707447075470764707747078470794708047081470824708347084470854708647087470884708947090470914709247093470944709547096470974709847099471004710147102471034710447105471064710747108471094711047111471124711347114471154711647117471184711947120471214712247123471244712547126471274712847129471304713147132471334713447135471364713747138471394714047141471424714347144471454714647147471484714947150471514715247153471544715547156471574715847159471604716147162471634716447165471664716747168471694717047171471724717347174471754717647177471784717947180471814718247183471844718547186471874718847189471904719147192471934719447195471964719747198471994720047201472024720347204472054720647207472084720947210472114721247213472144721547216472174721847219472204722147222472234722447225472264722747228472294723047231472324723347234472354723647237472384723947240472414724247243472444724547246472474724847249472504725147252472534725447255472564725747258472594726047261472624726347264472654726647267472684726947270472714727247273472744727547276472774727847279472804728147282472834728447285472864728747288472894729047291472924729347294472954729647297472984729947300473014730247303473044730547306473074730847309473104731147312473134731447315473164731747318473194732047321473224732347324473254732647327473284732947330473314733247333473344733547336473374733847339473404734147342473434734447345473464734747348473494735047351473524735347354473554735647357473584735947360473614736247363473644736547366473674736847369473704737147372473734737447375473764737747378473794738047381473824738347384473854738647387473884738947390473914739247393473944739547396473974739847399474004740147402474034740447405474064740747408474094741047411474124741347414474154741647417474184741947420474214742247423474244742547426474274742847429474304743147432474334743447435474364743747438474394744047441474424744347444474454744647447474484744947450474514745247453474544745547456474574745847459474604746147462474634746447465474664746747468474694747047471474724747347474474754747647477474784747947480474814748247483474844748547486474874748847489474904749147492474934749447495474964749747498474994750047501475024750347504475054750647507475084750947510475114751247513475144751547516475174751847519475204752147522475234752447525475264752747528475294753047531475324753347534475354753647537475384753947540475414754247543475444754547546
  1. var Module;
  2. if (typeof Module === 'undefined') Module = {};
  3. if (!Module.expectedDataFileDownloads) {
  4. Module.expectedDataFileDownloads = 0;
  5. Module.finishedDataFileDownloads = 0;
  6. }
  7. Module.expectedDataFileDownloads++;
  8. (function() {
  9. var loadPackage = function(metadata) {
  10. var PACKAGE_PATH;
  11. if (typeof window === 'object') {
  12. PACKAGE_PATH = window['encodeURIComponent'](window.location.pathname.toString().substring(0, window.location.pathname.toString().lastIndexOf('/')) + '/');
  13. } else if (typeof location !== 'undefined') {
  14. // worker
  15. PACKAGE_PATH = encodeURIComponent(location.pathname.toString().substring(0, location.pathname.toString().lastIndexOf('/')) + '/');
  16. } else {
  17. throw 'using preloaded data can only be done on a web page or in a web worker';
  18. }
  19. var PACKAGE_NAME = 'models/models_mesh_picking.data';
  20. var REMOTE_PACKAGE_BASE = 'models_mesh_picking.data';
  21. if (typeof Module['locateFilePackage'] === 'function' && !Module['locateFile']) {
  22. Module['locateFile'] = Module['locateFilePackage'];
  23. Module.printErr('warning: you defined Module.locateFilePackage, that has been renamed to Module.locateFile (using your locateFilePackage for now)');
  24. }
  25. var REMOTE_PACKAGE_NAME = typeof Module['locateFile'] === 'function' ?
  26. Module['locateFile'](REMOTE_PACKAGE_BASE) :
  27. ((Module['filePackagePrefixURL'] || '') + REMOTE_PACKAGE_BASE);
  28. var REMOTE_PACKAGE_SIZE = metadata.remote_package_size;
  29. var PACKAGE_UUID = metadata.package_uuid;
  30. function fetchRemotePackage(packageName, packageSize, callback, errback) {
  31. var xhr = new XMLHttpRequest();
  32. xhr.open('GET', packageName, true);
  33. xhr.responseType = 'arraybuffer';
  34. xhr.onprogress = function(event) {
  35. var url = packageName;
  36. var size = packageSize;
  37. if (event.total) size = event.total;
  38. if (event.loaded) {
  39. if (!xhr.addedTotal) {
  40. xhr.addedTotal = true;
  41. if (!Module.dataFileDownloads) Module.dataFileDownloads = {};
  42. Module.dataFileDownloads[url] = {
  43. loaded: event.loaded,
  44. total: size
  45. };
  46. } else {
  47. Module.dataFileDownloads[url].loaded = event.loaded;
  48. }
  49. var total = 0;
  50. var loaded = 0;
  51. var num = 0;
  52. for (var download in Module.dataFileDownloads) {
  53. var data = Module.dataFileDownloads[download];
  54. total += data.total;
  55. loaded += data.loaded;
  56. num++;
  57. }
  58. total = Math.ceil(total * Module.expectedDataFileDownloads/num);
  59. if (Module['setStatus']) Module['setStatus']('Downloading data... (' + loaded + '/' + total + ')');
  60. } else if (!Module.dataFileDownloads) {
  61. if (Module['setStatus']) Module['setStatus']('Downloading data...');
  62. }
  63. };
  64. xhr.onerror = function(event) {
  65. throw new Error("NetworkError for: " + packageName);
  66. }
  67. xhr.onload = function(event) {
  68. if (xhr.status == 200 || xhr.status == 304 || xhr.status == 206 || (xhr.status == 0 && xhr.response)) { // file URLs can return 0
  69. var packageData = xhr.response;
  70. callback(packageData);
  71. } else {
  72. throw new Error(xhr.statusText + " : " + xhr.responseURL);
  73. }
  74. };
  75. xhr.send(null);
  76. };
  77. function handleError(error) {
  78. console.error('package error:', error);
  79. };
  80. var fetchedCallback = null;
  81. var fetched = Module['getPreloadedPackage'] ? Module['getPreloadedPackage'](REMOTE_PACKAGE_NAME, REMOTE_PACKAGE_SIZE) : null;
  82. if (!fetched) fetchRemotePackage(REMOTE_PACKAGE_NAME, REMOTE_PACKAGE_SIZE, function(data) {
  83. if (fetchedCallback) {
  84. fetchedCallback(data);
  85. fetchedCallback = null;
  86. } else {
  87. fetched = data;
  88. }
  89. }, handleError);
  90. function runWithFS() {
  91. function assert(check, msg) {
  92. if (!check) throw msg + new Error().stack;
  93. }
  94. Module['FS_createPath']('/', 'resources', true, true);
  95. function DataRequest(start, end, crunched, audio) {
  96. this.start = start;
  97. this.end = end;
  98. this.crunched = crunched;
  99. this.audio = audio;
  100. }
  101. DataRequest.prototype = {
  102. requests: {},
  103. open: function(mode, name) {
  104. this.name = name;
  105. this.requests[name] = this;
  106. Module['addRunDependency']('fp ' + this.name);
  107. },
  108. send: function() {},
  109. onload: function() {
  110. var byteArray = this.byteArray.subarray(this.start, this.end);
  111. this.finish(byteArray);
  112. },
  113. finish: function(byteArray) {
  114. var that = this;
  115. Module['FS_createDataFile'](this.name, null, byteArray, true, true, true); // canOwn this data in the filesystem, it is a slide into the heap that will never change
  116. Module['removeRunDependency']('fp ' + that.name);
  117. this.requests[this.name] = null;
  118. }
  119. };
  120. var files = metadata.files;
  121. for (i = 0; i < files.length; ++i) {
  122. new DataRequest(files[i].start, files[i].end, files[i].crunched, files[i].audio).open('GET', files[i].filename);
  123. }
  124. function processPackageData(arrayBuffer) {
  125. Module.finishedDataFileDownloads++;
  126. assert(arrayBuffer, 'Loading data file failed.');
  127. assert(arrayBuffer instanceof ArrayBuffer, 'bad input to processPackageData');
  128. var byteArray = new Uint8Array(arrayBuffer);
  129. var curr;
  130. // copy the entire loaded file into a spot in the heap. Files will refer to slices in that. They cannot be freed though
  131. // (we may be allocating before malloc is ready, during startup).
  132. if (Module['SPLIT_MEMORY']) Module.printErr('warning: you should run the file packager with --no-heap-copy when SPLIT_MEMORY is used, otherwise copying into the heap may fail due to the splitting');
  133. var ptr = Module['getMemory'](byteArray.length);
  134. Module['HEAPU8'].set(byteArray, ptr);
  135. DataRequest.prototype.byteArray = Module['HEAPU8'].subarray(ptr, ptr+byteArray.length);
  136. var files = metadata.files;
  137. for (i = 0; i < files.length; ++i) {
  138. DataRequest.prototype.requests[files[i].filename].onload();
  139. }
  140. Module['removeRunDependency']('datafile_models/models_mesh_picking.data');
  141. };
  142. Module['addRunDependency']('datafile_models/models_mesh_picking.data');
  143. if (!Module.preloadResults) Module.preloadResults = {};
  144. Module.preloadResults[PACKAGE_NAME] = {fromCache: false};
  145. if (fetched) {
  146. processPackageData(fetched);
  147. fetched = null;
  148. } else {
  149. fetchedCallback = processPackageData;
  150. }
  151. }
  152. if (Module['calledRun']) {
  153. runWithFS();
  154. } else {
  155. if (!Module['preRun']) Module['preRun'] = [];
  156. Module["preRun"].push(runWithFS); // FS is not initialized yet, wait for it
  157. }
  158. }
  159. loadPackage({"files": [{"audio": 0, "start": 0, "crunched": 0, "end": 11848, "filename": "/resources/tower.obj"}, {"audio": 0, "start": 11848, "crunched": 0, "end": 36787, "filename": "/resources/tower.png"}], "remote_package_size": 36787, "package_uuid": "df40d522-4e6c-4394-9594-d2d661fba7d0"});
  160. })();
  161. // The Module object: Our interface to the outside world. We import
  162. // and export values on it, and do the work to get that through
  163. // closure compiler if necessary. There are various ways Module can be used:
  164. // 1. Not defined. We create it here
  165. // 2. A function parameter, function(Module) { ..generated code.. }
  166. // 3. pre-run appended it, var Module = {}; ..generated code..
  167. // 4. External script tag defines var Module.
  168. // We need to do an eval in order to handle the closure compiler
  169. // case, where this code here is minified but Module was defined
  170. // elsewhere (e.g. case 4 above). We also need to check if Module
  171. // already exists (e.g. case 3 above).
  172. // Note that if you want to run closure, and also to use Module
  173. // after the generated code, you will need to define var Module = {};
  174. // before the code. Then that object will be used in the code, and you
  175. // can continue to use Module afterwards as well.
  176. var Module;
  177. if (!Module) Module = (typeof Module !== 'undefined' ? Module : null) || {};
  178. // Sometimes an existing Module object exists with properties
  179. // meant to overwrite the default module functionality. Here
  180. // we collect those properties and reapply _after_ we configure
  181. // the current environment's defaults to avoid having to be so
  182. // defensive during initialization.
  183. var moduleOverrides = {};
  184. for (var key in Module) {
  185. if (Module.hasOwnProperty(key)) {
  186. moduleOverrides[key] = Module[key];
  187. }
  188. }
  189. // The environment setup code below is customized to use Module.
  190. // *** Environment setup code ***
  191. var ENVIRONMENT_IS_WEB = false;
  192. var ENVIRONMENT_IS_WORKER = false;
  193. var ENVIRONMENT_IS_NODE = false;
  194. var ENVIRONMENT_IS_SHELL = false;
  195. // Three configurations we can be running in:
  196. // 1) We could be the application main() thread running in the main JS UI thread. (ENVIRONMENT_IS_WORKER == false and ENVIRONMENT_IS_PTHREAD == false)
  197. // 2) We could be the application main() thread proxied to worker. (with Emscripten -s PROXY_TO_WORKER=1) (ENVIRONMENT_IS_WORKER == true, ENVIRONMENT_IS_PTHREAD == false)
  198. // 3) We could be an application pthread running in a worker. (ENVIRONMENT_IS_WORKER == true and ENVIRONMENT_IS_PTHREAD == true)
  199. if (Module['ENVIRONMENT']) {
  200. if (Module['ENVIRONMENT'] === 'WEB') {
  201. ENVIRONMENT_IS_WEB = true;
  202. } else if (Module['ENVIRONMENT'] === 'WORKER') {
  203. ENVIRONMENT_IS_WORKER = true;
  204. } else if (Module['ENVIRONMENT'] === 'NODE') {
  205. ENVIRONMENT_IS_NODE = true;
  206. } else if (Module['ENVIRONMENT'] === 'SHELL') {
  207. ENVIRONMENT_IS_SHELL = true;
  208. } else {
  209. throw new Error('The provided Module[\'ENVIRONMENT\'] value is not valid. It must be one of: WEB|WORKER|NODE|SHELL.');
  210. }
  211. } else {
  212. ENVIRONMENT_IS_WEB = typeof window === 'object';
  213. ENVIRONMENT_IS_WORKER = typeof importScripts === 'function';
  214. ENVIRONMENT_IS_NODE = typeof process === 'object' && typeof require === 'function' && !ENVIRONMENT_IS_WEB && !ENVIRONMENT_IS_WORKER;
  215. ENVIRONMENT_IS_SHELL = !ENVIRONMENT_IS_WEB && !ENVIRONMENT_IS_NODE && !ENVIRONMENT_IS_WORKER;
  216. }
  217. if (ENVIRONMENT_IS_NODE) {
  218. // Expose functionality in the same simple way that the shells work
  219. // Note that we pollute the global namespace here, otherwise we break in node
  220. if (!Module['print']) Module['print'] = console.log;
  221. if (!Module['printErr']) Module['printErr'] = console.warn;
  222. var nodeFS;
  223. var nodePath;
  224. Module['read'] = function read(filename, binary) {
  225. if (!nodeFS) nodeFS = require('fs');
  226. if (!nodePath) nodePath = require('path');
  227. filename = nodePath['normalize'](filename);
  228. var ret = nodeFS['readFileSync'](filename);
  229. return binary ? ret : ret.toString();
  230. };
  231. Module['readBinary'] = function readBinary(filename) {
  232. var ret = Module['read'](filename, true);
  233. if (!ret.buffer) {
  234. ret = new Uint8Array(ret);
  235. }
  236. assert(ret.buffer);
  237. return ret;
  238. };
  239. Module['load'] = function load(f) {
  240. globalEval(read(f));
  241. };
  242. if (!Module['thisProgram']) {
  243. if (process['argv'].length > 1) {
  244. Module['thisProgram'] = process['argv'][1].replace(/\\/g, '/');
  245. } else {
  246. Module['thisProgram'] = 'unknown-program';
  247. }
  248. }
  249. Module['arguments'] = process['argv'].slice(2);
  250. if (typeof module !== 'undefined') {
  251. module['exports'] = Module;
  252. }
  253. process['on']('uncaughtException', function(ex) {
  254. // suppress ExitStatus exceptions from showing an error
  255. if (!(ex instanceof ExitStatus)) {
  256. throw ex;
  257. }
  258. });
  259. Module['inspect'] = function () { return '[Emscripten Module object]'; };
  260. }
  261. else if (ENVIRONMENT_IS_SHELL) {
  262. if (!Module['print']) Module['print'] = print;
  263. if (typeof printErr != 'undefined') Module['printErr'] = printErr; // not present in v8 or older sm
  264. if (typeof read != 'undefined') {
  265. Module['read'] = read;
  266. } else {
  267. Module['read'] = function read() { throw 'no read() available' };
  268. }
  269. Module['readBinary'] = function readBinary(f) {
  270. if (typeof readbuffer === 'function') {
  271. return new Uint8Array(readbuffer(f));
  272. }
  273. var data = read(f, 'binary');
  274. assert(typeof data === 'object');
  275. return data;
  276. };
  277. if (typeof scriptArgs != 'undefined') {
  278. Module['arguments'] = scriptArgs;
  279. } else if (typeof arguments != 'undefined') {
  280. Module['arguments'] = arguments;
  281. }
  282. if (typeof quit === 'function') {
  283. Module['quit'] = function(status, toThrow) {
  284. quit(status);
  285. }
  286. }
  287. }
  288. else if (ENVIRONMENT_IS_WEB || ENVIRONMENT_IS_WORKER) {
  289. Module['read'] = function read(url) {
  290. var xhr = new XMLHttpRequest();
  291. xhr.open('GET', url, false);
  292. xhr.send(null);
  293. return xhr.responseText;
  294. };
  295. if (ENVIRONMENT_IS_WORKER) {
  296. Module['readBinary'] = function read(url) {
  297. var xhr = new XMLHttpRequest();
  298. xhr.open('GET', url, false);
  299. xhr.responseType = 'arraybuffer';
  300. xhr.send(null);
  301. return xhr.response;
  302. };
  303. }
  304. Module['readAsync'] = function readAsync(url, onload, onerror) {
  305. var xhr = new XMLHttpRequest();
  306. xhr.open('GET', url, true);
  307. xhr.responseType = 'arraybuffer';
  308. xhr.onload = function xhr_onload() {
  309. if (xhr.status == 200 || (xhr.status == 0 && xhr.response)) { // file URLs can return 0
  310. onload(xhr.response);
  311. } else {
  312. onerror();
  313. }
  314. };
  315. xhr.onerror = onerror;
  316. xhr.send(null);
  317. };
  318. if (typeof arguments != 'undefined') {
  319. Module['arguments'] = arguments;
  320. }
  321. if (typeof console !== 'undefined') {
  322. if (!Module['print']) Module['print'] = function print(x) {
  323. console.log(x);
  324. };
  325. if (!Module['printErr']) Module['printErr'] = function printErr(x) {
  326. console.warn(x);
  327. };
  328. } else {
  329. // Probably a worker, and without console.log. We can do very little here...
  330. var TRY_USE_DUMP = false;
  331. if (!Module['print']) Module['print'] = (TRY_USE_DUMP && (typeof(dump) !== "undefined") ? (function(x) {
  332. dump(x);
  333. }) : (function(x) {
  334. // self.postMessage(x); // enable this if you want stdout to be sent as messages
  335. }));
  336. }
  337. if (ENVIRONMENT_IS_WORKER) {
  338. Module['load'] = importScripts;
  339. }
  340. if (typeof Module['setWindowTitle'] === 'undefined') {
  341. Module['setWindowTitle'] = function(title) { document.title = title };
  342. }
  343. }
  344. else {
  345. // Unreachable because SHELL is dependant on the others
  346. throw 'Unknown runtime environment. Where are we?';
  347. }
  348. function globalEval(x) {
  349. eval.call(null, x);
  350. }
  351. if (!Module['load'] && Module['read']) {
  352. Module['load'] = function load(f) {
  353. globalEval(Module['read'](f));
  354. };
  355. }
  356. if (!Module['print']) {
  357. Module['print'] = function(){};
  358. }
  359. if (!Module['printErr']) {
  360. Module['printErr'] = Module['print'];
  361. }
  362. if (!Module['arguments']) {
  363. Module['arguments'] = [];
  364. }
  365. if (!Module['thisProgram']) {
  366. Module['thisProgram'] = './this.program';
  367. }
  368. if (!Module['quit']) {
  369. Module['quit'] = function(status, toThrow) {
  370. throw toThrow;
  371. }
  372. }
  373. // *** Environment setup code ***
  374. // Closure helpers
  375. Module.print = Module['print'];
  376. Module.printErr = Module['printErr'];
  377. // Callbacks
  378. Module['preRun'] = [];
  379. Module['postRun'] = [];
  380. // Merge back in the overrides
  381. for (var key in moduleOverrides) {
  382. if (moduleOverrides.hasOwnProperty(key)) {
  383. Module[key] = moduleOverrides[key];
  384. }
  385. }
  386. // Free the object hierarchy contained in the overrides, this lets the GC
  387. // reclaim data used e.g. in memoryInitializerRequest, which is a large typed array.
  388. moduleOverrides = undefined;
  389. // {{PREAMBLE_ADDITIONS}}
  390. // === Preamble library stuff ===
  391. // Documentation for the public APIs defined in this file must be updated in:
  392. // site/source/docs/api_reference/preamble.js.rst
  393. // A prebuilt local version of the documentation is available at:
  394. // site/build/text/docs/api_reference/preamble.js.txt
  395. // You can also build docs locally as HTML or other formats in site/
  396. // An online HTML version (which may be of a different version of Emscripten)
  397. // is up at http://kripken.github.io/emscripten-site/docs/api_reference/preamble.js.html
  398. //========================================
  399. // Runtime code shared with compiler
  400. //========================================
  401. var Runtime = {
  402. setTempRet0: function (value) {
  403. tempRet0 = value;
  404. return value;
  405. },
  406. getTempRet0: function () {
  407. return tempRet0;
  408. },
  409. stackSave: function () {
  410. return STACKTOP;
  411. },
  412. stackRestore: function (stackTop) {
  413. STACKTOP = stackTop;
  414. },
  415. getNativeTypeSize: function (type) {
  416. switch (type) {
  417. case 'i1': case 'i8': return 1;
  418. case 'i16': return 2;
  419. case 'i32': return 4;
  420. case 'i64': return 8;
  421. case 'float': return 4;
  422. case 'double': return 8;
  423. default: {
  424. if (type[type.length-1] === '*') {
  425. return Runtime.QUANTUM_SIZE; // A pointer
  426. } else if (type[0] === 'i') {
  427. var bits = parseInt(type.substr(1));
  428. assert(bits % 8 === 0);
  429. return bits/8;
  430. } else {
  431. return 0;
  432. }
  433. }
  434. }
  435. },
  436. getNativeFieldSize: function (type) {
  437. return Math.max(Runtime.getNativeTypeSize(type), Runtime.QUANTUM_SIZE);
  438. },
  439. STACK_ALIGN: 16,
  440. prepVararg: function (ptr, type) {
  441. if (type === 'double' || type === 'i64') {
  442. // move so the load is aligned
  443. if (ptr & 7) {
  444. assert((ptr & 7) === 4);
  445. ptr += 4;
  446. }
  447. } else {
  448. assert((ptr & 3) === 0);
  449. }
  450. return ptr;
  451. },
  452. getAlignSize: function (type, size, vararg) {
  453. // we align i64s and doubles on 64-bit boundaries, unlike x86
  454. if (!vararg && (type == 'i64' || type == 'double')) return 8;
  455. if (!type) return Math.min(size, 8); // align structures internally to 64 bits
  456. return Math.min(size || (type ? Runtime.getNativeFieldSize(type) : 0), Runtime.QUANTUM_SIZE);
  457. },
  458. dynCall: function (sig, ptr, args) {
  459. if (args && args.length) {
  460. assert(args.length == sig.length-1);
  461. assert(('dynCall_' + sig) in Module, 'bad function pointer type - no table for sig \'' + sig + '\'');
  462. return Module['dynCall_' + sig].apply(null, [ptr].concat(args));
  463. } else {
  464. assert(sig.length == 1);
  465. assert(('dynCall_' + sig) in Module, 'bad function pointer type - no table for sig \'' + sig + '\'');
  466. return Module['dynCall_' + sig].call(null, ptr);
  467. }
  468. },
  469. functionPointers: [],
  470. addFunction: function (func) {
  471. for (var i = 0; i < Runtime.functionPointers.length; i++) {
  472. if (!Runtime.functionPointers[i]) {
  473. Runtime.functionPointers[i] = func;
  474. return 2*(1 + i);
  475. }
  476. }
  477. throw 'Finished up all reserved function pointers. Use a higher value for RESERVED_FUNCTION_POINTERS.';
  478. },
  479. removeFunction: function (index) {
  480. Runtime.functionPointers[(index-2)/2] = null;
  481. },
  482. warnOnce: function (text) {
  483. if (!Runtime.warnOnce.shown) Runtime.warnOnce.shown = {};
  484. if (!Runtime.warnOnce.shown[text]) {
  485. Runtime.warnOnce.shown[text] = 1;
  486. Module.printErr(text);
  487. }
  488. },
  489. funcWrappers: {},
  490. getFuncWrapper: function (func, sig) {
  491. assert(sig);
  492. if (!Runtime.funcWrappers[sig]) {
  493. Runtime.funcWrappers[sig] = {};
  494. }
  495. var sigCache = Runtime.funcWrappers[sig];
  496. if (!sigCache[func]) {
  497. // optimize away arguments usage in common cases
  498. if (sig.length === 1) {
  499. sigCache[func] = function dynCall_wrapper() {
  500. return Runtime.dynCall(sig, func);
  501. };
  502. } else if (sig.length === 2) {
  503. sigCache[func] = function dynCall_wrapper(arg) {
  504. return Runtime.dynCall(sig, func, [arg]);
  505. };
  506. } else {
  507. // general case
  508. sigCache[func] = function dynCall_wrapper() {
  509. return Runtime.dynCall(sig, func, Array.prototype.slice.call(arguments));
  510. };
  511. }
  512. }
  513. return sigCache[func];
  514. },
  515. getCompilerSetting: function (name) {
  516. throw 'You must build with -s RETAIN_COMPILER_SETTINGS=1 for Runtime.getCompilerSetting or emscripten_get_compiler_setting to work';
  517. },
  518. stackAlloc: function (size) { var ret = STACKTOP;STACKTOP = (STACKTOP + size)|0;STACKTOP = (((STACKTOP)+15)&-16);(assert((((STACKTOP|0) < (STACK_MAX|0))|0))|0); return ret; },
  519. staticAlloc: function (size) { var ret = STATICTOP;STATICTOP = (STATICTOP + (assert(!staticSealed),size))|0;STATICTOP = (((STATICTOP)+15)&-16); return ret; },
  520. dynamicAlloc: function (size) { assert(DYNAMICTOP_PTR);var ret = HEAP32[DYNAMICTOP_PTR>>2];var end = (((ret + size + 15)|0) & -16);HEAP32[DYNAMICTOP_PTR>>2] = end;if (end >= TOTAL_MEMORY) {var success = enlargeMemory();if (!success) {HEAP32[DYNAMICTOP_PTR>>2] = ret;return 0;}}return ret;},
  521. alignMemory: function (size,quantum) { var ret = size = Math.ceil((size)/(quantum ? quantum : 16))*(quantum ? quantum : 16); return ret; },
  522. makeBigInt: function (low,high,unsigned) { var ret = (unsigned ? ((+((low>>>0)))+((+((high>>>0)))*4294967296.0)) : ((+((low>>>0)))+((+((high|0)))*4294967296.0))); return ret; },
  523. GLOBAL_BASE: 8,
  524. QUANTUM_SIZE: 4,
  525. __dummy__: 0
  526. }
  527. Module["Runtime"] = Runtime;
  528. //========================================
  529. // Runtime essentials
  530. //========================================
  531. var ABORT = 0; // whether we are quitting the application. no code should run after this. set in exit() and abort()
  532. var EXITSTATUS = 0;
  533. function assert(condition, text) {
  534. if (!condition) {
  535. abort('Assertion failed: ' + text);
  536. }
  537. }
  538. var globalScope = this;
  539. // Returns the C function with a specified identifier (for C++, you need to do manual name mangling)
  540. function getCFunc(ident) {
  541. var func = Module['_' + ident]; // closure exported function
  542. if (!func) {
  543. try { func = eval('_' + ident); } catch(e) {}
  544. }
  545. assert(func, 'Cannot call unknown function ' + ident + ' (perhaps LLVM optimizations or closure removed it?)');
  546. return func;
  547. }
  548. var cwrap, ccall;
  549. (function(){
  550. var JSfuncs = {
  551. // Helpers for cwrap -- it can't refer to Runtime directly because it might
  552. // be renamed by closure, instead it calls JSfuncs['stackSave'].body to find
  553. // out what the minified function name is.
  554. 'stackSave': function() {
  555. Runtime.stackSave()
  556. },
  557. 'stackRestore': function() {
  558. Runtime.stackRestore()
  559. },
  560. // type conversion from js to c
  561. 'arrayToC' : function(arr) {
  562. var ret = Runtime.stackAlloc(arr.length);
  563. writeArrayToMemory(arr, ret);
  564. return ret;
  565. },
  566. 'stringToC' : function(str) {
  567. var ret = 0;
  568. if (str !== null && str !== undefined && str !== 0) { // null string
  569. // at most 4 bytes per UTF-8 code point, +1 for the trailing '\0'
  570. var len = (str.length << 2) + 1;
  571. ret = Runtime.stackAlloc(len);
  572. stringToUTF8(str, ret, len);
  573. }
  574. return ret;
  575. }
  576. };
  577. // For fast lookup of conversion functions
  578. var toC = {'string' : JSfuncs['stringToC'], 'array' : JSfuncs['arrayToC']};
  579. // C calling interface.
  580. ccall = function ccallFunc(ident, returnType, argTypes, args, opts) {
  581. var func = getCFunc(ident);
  582. var cArgs = [];
  583. var stack = 0;
  584. assert(returnType !== 'array', 'Return type should not be "array".');
  585. if (args) {
  586. for (var i = 0; i < args.length; i++) {
  587. var converter = toC[argTypes[i]];
  588. if (converter) {
  589. if (stack === 0) stack = Runtime.stackSave();
  590. cArgs[i] = converter(args[i]);
  591. } else {
  592. cArgs[i] = args[i];
  593. }
  594. }
  595. }
  596. var ret = func.apply(null, cArgs);
  597. if ((!opts || !opts.async) && typeof EmterpreterAsync === 'object') {
  598. assert(!EmterpreterAsync.state, 'cannot start async op with normal JS calling ccall');
  599. }
  600. if (opts && opts.async) assert(!returnType, 'async ccalls cannot return values');
  601. if (returnType === 'string') ret = Pointer_stringify(ret);
  602. if (stack !== 0) {
  603. if (opts && opts.async) {
  604. EmterpreterAsync.asyncFinalizers.push(function() {
  605. Runtime.stackRestore(stack);
  606. });
  607. return;
  608. }
  609. Runtime.stackRestore(stack);
  610. }
  611. return ret;
  612. }
  613. var sourceRegex = /^function\s*[a-zA-Z$_0-9]*\s*\(([^)]*)\)\s*{\s*([^*]*?)[\s;]*(?:return\s*(.*?)[;\s]*)?}$/;
  614. function parseJSFunc(jsfunc) {
  615. // Match the body and the return value of a javascript function source
  616. var parsed = jsfunc.toString().match(sourceRegex).slice(1);
  617. return {arguments : parsed[0], body : parsed[1], returnValue: parsed[2]}
  618. }
  619. // sources of useful functions. we create this lazily as it can trigger a source decompression on this entire file
  620. var JSsource = null;
  621. function ensureJSsource() {
  622. if (!JSsource) {
  623. JSsource = {};
  624. for (var fun in JSfuncs) {
  625. if (JSfuncs.hasOwnProperty(fun)) {
  626. // Elements of toCsource are arrays of three items:
  627. // the code, and the return value
  628. JSsource[fun] = parseJSFunc(JSfuncs[fun]);
  629. }
  630. }
  631. }
  632. }
  633. cwrap = function cwrap(ident, returnType, argTypes) {
  634. argTypes = argTypes || [];
  635. var cfunc = getCFunc(ident);
  636. // When the function takes numbers and returns a number, we can just return
  637. // the original function
  638. var numericArgs = argTypes.every(function(type){ return type === 'number'});
  639. var numericRet = (returnType !== 'string');
  640. if ( numericRet && numericArgs) {
  641. return cfunc;
  642. }
  643. // Creation of the arguments list (["$1","$2",...,"$nargs"])
  644. var argNames = argTypes.map(function(x,i){return '$'+i});
  645. var funcstr = "(function(" + argNames.join(',') + ") {";
  646. var nargs = argTypes.length;
  647. if (!numericArgs) {
  648. // Generate the code needed to convert the arguments from javascript
  649. // values to pointers
  650. ensureJSsource();
  651. funcstr += 'var stack = ' + JSsource['stackSave'].body + ';';
  652. for (var i = 0; i < nargs; i++) {
  653. var arg = argNames[i], type = argTypes[i];
  654. if (type === 'number') continue;
  655. var convertCode = JSsource[type + 'ToC']; // [code, return]
  656. funcstr += 'var ' + convertCode.arguments + ' = ' + arg + ';';
  657. funcstr += convertCode.body + ';';
  658. funcstr += arg + '=(' + convertCode.returnValue + ');';
  659. }
  660. }
  661. // When the code is compressed, the name of cfunc is not literally 'cfunc' anymore
  662. var cfuncname = parseJSFunc(function(){return cfunc}).returnValue;
  663. // Call the function
  664. funcstr += 'var ret = ' + cfuncname + '(' + argNames.join(',') + ');';
  665. if (!numericRet) { // Return type can only by 'string' or 'number'
  666. // Convert the result to a string
  667. var strgfy = parseJSFunc(function(){return Pointer_stringify}).returnValue;
  668. funcstr += 'ret = ' + strgfy + '(ret);';
  669. }
  670. funcstr += "if (typeof EmterpreterAsync === 'object') { assert(!EmterpreterAsync.state, 'cannot start async op with normal JS calling cwrap') }";
  671. if (!numericArgs) {
  672. // If we had a stack, restore it
  673. ensureJSsource();
  674. funcstr += JSsource['stackRestore'].body.replace('()', '(stack)') + ';';
  675. }
  676. funcstr += 'return ret})';
  677. return eval(funcstr);
  678. };
  679. })();
  680. Module["ccall"] = ccall;
  681. Module["cwrap"] = cwrap;
  682. function setValue(ptr, value, type, noSafe) {
  683. type = type || 'i8';
  684. if (type.charAt(type.length-1) === '*') type = 'i32'; // pointers are 32-bit
  685. switch(type) {
  686. case 'i1': HEAP8[((ptr)>>0)]=value; break;
  687. case 'i8': HEAP8[((ptr)>>0)]=value; break;
  688. case 'i16': HEAP16[((ptr)>>1)]=value; break;
  689. case 'i32': HEAP32[((ptr)>>2)]=value; break;
  690. case 'i64': (tempI64 = [value>>>0,(tempDouble=value,(+(Math_abs(tempDouble))) >= 1.0 ? (tempDouble > 0.0 ? ((Math_min((+(Math_floor((tempDouble)/4294967296.0))), 4294967295.0))|0)>>>0 : (~~((+(Math_ceil((tempDouble - +(((~~(tempDouble)))>>>0))/4294967296.0)))))>>>0) : 0)],HEAP32[((ptr)>>2)]=tempI64[0],HEAP32[(((ptr)+(4))>>2)]=tempI64[1]); break;
  691. case 'float': HEAPF32[((ptr)>>2)]=value; break;
  692. case 'double': HEAPF64[((ptr)>>3)]=value; break;
  693. default: abort('invalid type for setValue: ' + type);
  694. }
  695. }
  696. Module["setValue"] = setValue;
  697. function getValue(ptr, type, noSafe) {
  698. type = type || 'i8';
  699. if (type.charAt(type.length-1) === '*') type = 'i32'; // pointers are 32-bit
  700. switch(type) {
  701. case 'i1': return HEAP8[((ptr)>>0)];
  702. case 'i8': return HEAP8[((ptr)>>0)];
  703. case 'i16': return HEAP16[((ptr)>>1)];
  704. case 'i32': return HEAP32[((ptr)>>2)];
  705. case 'i64': return HEAP32[((ptr)>>2)];
  706. case 'float': return HEAPF32[((ptr)>>2)];
  707. case 'double': return HEAPF64[((ptr)>>3)];
  708. default: abort('invalid type for setValue: ' + type);
  709. }
  710. return null;
  711. }
  712. Module["getValue"] = getValue;
  713. var ALLOC_NORMAL = 0; // Tries to use _malloc()
  714. var ALLOC_STACK = 1; // Lives for the duration of the current function call
  715. var ALLOC_STATIC = 2; // Cannot be freed
  716. var ALLOC_DYNAMIC = 3; // Cannot be freed except through sbrk
  717. var ALLOC_NONE = 4; // Do not allocate
  718. Module["ALLOC_NORMAL"] = ALLOC_NORMAL;
  719. Module["ALLOC_STACK"] = ALLOC_STACK;
  720. Module["ALLOC_STATIC"] = ALLOC_STATIC;
  721. Module["ALLOC_DYNAMIC"] = ALLOC_DYNAMIC;
  722. Module["ALLOC_NONE"] = ALLOC_NONE;
  723. // allocate(): This is for internal use. You can use it yourself as well, but the interface
  724. // is a little tricky (see docs right below). The reason is that it is optimized
  725. // for multiple syntaxes to save space in generated code. So you should
  726. // normally not use allocate(), and instead allocate memory using _malloc(),
  727. // initialize it with setValue(), and so forth.
  728. // @slab: An array of data, or a number. If a number, then the size of the block to allocate,
  729. // in *bytes* (note that this is sometimes confusing: the next parameter does not
  730. // affect this!)
  731. // @types: Either an array of types, one for each byte (or 0 if no type at that position),
  732. // or a single type which is used for the entire block. This only matters if there
  733. // is initial data - if @slab is a number, then this does not matter at all and is
  734. // ignored.
  735. // @allocator: How to allocate memory, see ALLOC_*
  736. function allocate(slab, types, allocator, ptr) {
  737. var zeroinit, size;
  738. if (typeof slab === 'number') {
  739. zeroinit = true;
  740. size = slab;
  741. } else {
  742. zeroinit = false;
  743. size = slab.length;
  744. }
  745. var singleType = typeof types === 'string' ? types : null;
  746. var ret;
  747. if (allocator == ALLOC_NONE) {
  748. ret = ptr;
  749. } else {
  750. ret = [typeof _malloc === 'function' ? _malloc : Runtime.staticAlloc, Runtime.stackAlloc, Runtime.staticAlloc, Runtime.dynamicAlloc][allocator === undefined ? ALLOC_STATIC : allocator](Math.max(size, singleType ? 1 : types.length));
  751. }
  752. if (zeroinit) {
  753. var ptr = ret, stop;
  754. assert((ret & 3) == 0);
  755. stop = ret + (size & ~3);
  756. for (; ptr < stop; ptr += 4) {
  757. HEAP32[((ptr)>>2)]=0;
  758. }
  759. stop = ret + size;
  760. while (ptr < stop) {
  761. HEAP8[((ptr++)>>0)]=0;
  762. }
  763. return ret;
  764. }
  765. if (singleType === 'i8') {
  766. if (slab.subarray || slab.slice) {
  767. HEAPU8.set(slab, ret);
  768. } else {
  769. HEAPU8.set(new Uint8Array(slab), ret);
  770. }
  771. return ret;
  772. }
  773. var i = 0, type, typeSize, previousType;
  774. while (i < size) {
  775. var curr = slab[i];
  776. if (typeof curr === 'function') {
  777. curr = Runtime.getFunctionIndex(curr);
  778. }
  779. type = singleType || types[i];
  780. if (type === 0) {
  781. i++;
  782. continue;
  783. }
  784. assert(type, 'Must know what type to store in allocate!');
  785. if (type == 'i64') type = 'i32'; // special case: we have one i32 here, and one i32 later
  786. setValue(ret+i, curr, type);
  787. // no need to look up size unless type changes, so cache it
  788. if (previousType !== type) {
  789. typeSize = Runtime.getNativeTypeSize(type);
  790. previousType = type;
  791. }
  792. i += typeSize;
  793. }
  794. return ret;
  795. }
  796. Module["allocate"] = allocate;
  797. // Allocate memory during any stage of startup - static memory early on, dynamic memory later, malloc when ready
  798. function getMemory(size) {
  799. if (!staticSealed) return Runtime.staticAlloc(size);
  800. if (!runtimeInitialized) return Runtime.dynamicAlloc(size);
  801. return _malloc(size);
  802. }
  803. Module["getMemory"] = getMemory;
  804. function Pointer_stringify(ptr, /* optional */ length) {
  805. if (length === 0 || !ptr) return '';
  806. // TODO: use TextDecoder
  807. // Find the length, and check for UTF while doing so
  808. var hasUtf = 0;
  809. var t;
  810. var i = 0;
  811. while (1) {
  812. assert(ptr + i < TOTAL_MEMORY);
  813. t = HEAPU8[(((ptr)+(i))>>0)];
  814. hasUtf |= t;
  815. if (t == 0 && !length) break;
  816. i++;
  817. if (length && i == length) break;
  818. }
  819. if (!length) length = i;
  820. var ret = '';
  821. if (hasUtf < 128) {
  822. var MAX_CHUNK = 1024; // split up into chunks, because .apply on a huge string can overflow the stack
  823. var curr;
  824. while (length > 0) {
  825. curr = String.fromCharCode.apply(String, HEAPU8.subarray(ptr, ptr + Math.min(length, MAX_CHUNK)));
  826. ret = ret ? ret + curr : curr;
  827. ptr += MAX_CHUNK;
  828. length -= MAX_CHUNK;
  829. }
  830. return ret;
  831. }
  832. return Module['UTF8ToString'](ptr);
  833. }
  834. Module["Pointer_stringify"] = Pointer_stringify;
  835. // Given a pointer 'ptr' to a null-terminated ASCII-encoded string in the emscripten HEAP, returns
  836. // a copy of that string as a Javascript String object.
  837. function AsciiToString(ptr) {
  838. var str = '';
  839. while (1) {
  840. var ch = HEAP8[((ptr++)>>0)];
  841. if (!ch) return str;
  842. str += String.fromCharCode(ch);
  843. }
  844. }
  845. Module["AsciiToString"] = AsciiToString;
  846. // Copies the given Javascript String object 'str' to the emscripten HEAP at address 'outPtr',
  847. // null-terminated and encoded in ASCII form. The copy will require at most str.length+1 bytes of space in the HEAP.
  848. function stringToAscii(str, outPtr) {
  849. return writeAsciiToMemory(str, outPtr, false);
  850. }
  851. Module["stringToAscii"] = stringToAscii;
  852. // Given a pointer 'ptr' to a null-terminated UTF8-encoded string in the given array that contains uint8 values, returns
  853. // a copy of that string as a Javascript String object.
  854. var UTF8Decoder = typeof TextDecoder !== 'undefined' ? new TextDecoder('utf8') : undefined;
  855. function UTF8ArrayToString(u8Array, idx) {
  856. var endPtr = idx;
  857. // TextDecoder needs to know the byte length in advance, it doesn't stop on null terminator by itself.
  858. // Also, use the length info to avoid running tiny strings through TextDecoder, since .subarray() allocates garbage.
  859. while (u8Array[endPtr]) ++endPtr;
  860. if (endPtr - idx > 16 && u8Array.subarray && UTF8Decoder) {
  861. return UTF8Decoder.decode(u8Array.subarray(idx, endPtr));
  862. } else {
  863. var u0, u1, u2, u3, u4, u5;
  864. var str = '';
  865. while (1) {
  866. // For UTF8 byte structure, see http://en.wikipedia.org/wiki/UTF-8#Description and https://www.ietf.org/rfc/rfc2279.txt and https://tools.ietf.org/html/rfc3629
  867. u0 = u8Array[idx++];
  868. if (!u0) return str;
  869. if (!(u0 & 0x80)) { str += String.fromCharCode(u0); continue; }
  870. u1 = u8Array[idx++] & 63;
  871. if ((u0 & 0xE0) == 0xC0) { str += String.fromCharCode(((u0 & 31) << 6) | u1); continue; }
  872. u2 = u8Array[idx++] & 63;
  873. if ((u0 & 0xF0) == 0xE0) {
  874. u0 = ((u0 & 15) << 12) | (u1 << 6) | u2;
  875. } else {
  876. u3 = u8Array[idx++] & 63;
  877. if ((u0 & 0xF8) == 0xF0) {
  878. u0 = ((u0 & 7) << 18) | (u1 << 12) | (u2 << 6) | u3;
  879. } else {
  880. u4 = u8Array[idx++] & 63;
  881. if ((u0 & 0xFC) == 0xF8) {
  882. u0 = ((u0 & 3) << 24) | (u1 << 18) | (u2 << 12) | (u3 << 6) | u4;
  883. } else {
  884. u5 = u8Array[idx++] & 63;
  885. u0 = ((u0 & 1) << 30) | (u1 << 24) | (u2 << 18) | (u3 << 12) | (u4 << 6) | u5;
  886. }
  887. }
  888. }
  889. if (u0 < 0x10000) {
  890. str += String.fromCharCode(u0);
  891. } else {
  892. var ch = u0 - 0x10000;
  893. str += String.fromCharCode(0xD800 | (ch >> 10), 0xDC00 | (ch & 0x3FF));
  894. }
  895. }
  896. }
  897. }
  898. Module["UTF8ArrayToString"] = UTF8ArrayToString;
  899. // Given a pointer 'ptr' to a null-terminated UTF8-encoded string in the emscripten HEAP, returns
  900. // a copy of that string as a Javascript String object.
  901. function UTF8ToString(ptr) {
  902. return UTF8ArrayToString(HEAPU8,ptr);
  903. }
  904. Module["UTF8ToString"] = UTF8ToString;
  905. // Copies the given Javascript String object 'str' to the given byte array at address 'outIdx',
  906. // encoded in UTF8 form and null-terminated. The copy will require at most str.length*4+1 bytes of space in the HEAP.
  907. // Use the function lengthBytesUTF8 to compute the exact number of bytes (excluding null terminator) that this function will write.
  908. // Parameters:
  909. // str: the Javascript string to copy.
  910. // outU8Array: the array to copy to. Each index in this array is assumed to be one 8-byte element.
  911. // outIdx: The starting offset in the array to begin the copying.
  912. // maxBytesToWrite: The maximum number of bytes this function can write to the array. This count should include the null
  913. // terminator, i.e. if maxBytesToWrite=1, only the null terminator will be written and nothing else.
  914. // maxBytesToWrite=0 does not write any bytes to the output, not even the null terminator.
  915. // Returns the number of bytes written, EXCLUDING the null terminator.
  916. function stringToUTF8Array(str, outU8Array, outIdx, maxBytesToWrite) {
  917. if (!(maxBytesToWrite > 0)) // Parameter maxBytesToWrite is not optional. Negative values, 0, null, undefined and false each don't write out any bytes.
  918. return 0;
  919. var startIdx = outIdx;
  920. var endIdx = outIdx + maxBytesToWrite - 1; // -1 for string null terminator.
  921. for (var i = 0; i < str.length; ++i) {
  922. // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! So decode UTF16->UTF32->UTF8.
  923. // See http://unicode.org/faq/utf_bom.html#utf16-3
  924. // For UTF8 byte structure, see http://en.wikipedia.org/wiki/UTF-8#Description and https://www.ietf.org/rfc/rfc2279.txt and https://tools.ietf.org/html/rfc3629
  925. var u = str.charCodeAt(i); // possibly a lead surrogate
  926. if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);
  927. if (u <= 0x7F) {
  928. if (outIdx >= endIdx) break;
  929. outU8Array[outIdx++] = u;
  930. } else if (u <= 0x7FF) {
  931. if (outIdx + 1 >= endIdx) break;
  932. outU8Array[outIdx++] = 0xC0 | (u >> 6);
  933. outU8Array[outIdx++] = 0x80 | (u & 63);
  934. } else if (u <= 0xFFFF) {
  935. if (outIdx + 2 >= endIdx) break;
  936. outU8Array[outIdx++] = 0xE0 | (u >> 12);
  937. outU8Array[outIdx++] = 0x80 | ((u >> 6) & 63);
  938. outU8Array[outIdx++] = 0x80 | (u & 63);
  939. } else if (u <= 0x1FFFFF) {
  940. if (outIdx + 3 >= endIdx) break;
  941. outU8Array[outIdx++] = 0xF0 | (u >> 18);
  942. outU8Array[outIdx++] = 0x80 | ((u >> 12) & 63);
  943. outU8Array[outIdx++] = 0x80 | ((u >> 6) & 63);
  944. outU8Array[outIdx++] = 0x80 | (u & 63);
  945. } else if (u <= 0x3FFFFFF) {
  946. if (outIdx + 4 >= endIdx) break;
  947. outU8Array[outIdx++] = 0xF8 | (u >> 24);
  948. outU8Array[outIdx++] = 0x80 | ((u >> 18) & 63);
  949. outU8Array[outIdx++] = 0x80 | ((u >> 12) & 63);
  950. outU8Array[outIdx++] = 0x80 | ((u >> 6) & 63);
  951. outU8Array[outIdx++] = 0x80 | (u & 63);
  952. } else {
  953. if (outIdx + 5 >= endIdx) break;
  954. outU8Array[outIdx++] = 0xFC | (u >> 30);
  955. outU8Array[outIdx++] = 0x80 | ((u >> 24) & 63);
  956. outU8Array[outIdx++] = 0x80 | ((u >> 18) & 63);
  957. outU8Array[outIdx++] = 0x80 | ((u >> 12) & 63);
  958. outU8Array[outIdx++] = 0x80 | ((u >> 6) & 63);
  959. outU8Array[outIdx++] = 0x80 | (u & 63);
  960. }
  961. }
  962. // Null-terminate the pointer to the buffer.
  963. outU8Array[outIdx] = 0;
  964. return outIdx - startIdx;
  965. }
  966. Module["stringToUTF8Array"] = stringToUTF8Array;
  967. // Copies the given Javascript String object 'str' to the emscripten HEAP at address 'outPtr',
  968. // null-terminated and encoded in UTF8 form. The copy will require at most str.length*4+1 bytes of space in the HEAP.
  969. // Use the function lengthBytesUTF8 to compute the exact number of bytes (excluding null terminator) that this function will write.
  970. // Returns the number of bytes written, EXCLUDING the null terminator.
  971. function stringToUTF8(str, outPtr, maxBytesToWrite) {
  972. assert(typeof maxBytesToWrite == 'number', 'stringToUTF8(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!');
  973. return stringToUTF8Array(str, HEAPU8,outPtr, maxBytesToWrite);
  974. }
  975. Module["stringToUTF8"] = stringToUTF8;
  976. // Returns the number of bytes the given Javascript string takes if encoded as a UTF8 byte array, EXCLUDING the null terminator byte.
  977. function lengthBytesUTF8(str) {
  978. var len = 0;
  979. for (var i = 0; i < str.length; ++i) {
  980. // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! So decode UTF16->UTF32->UTF8.
  981. // See http://unicode.org/faq/utf_bom.html#utf16-3
  982. var u = str.charCodeAt(i); // possibly a lead surrogate
  983. if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);
  984. if (u <= 0x7F) {
  985. ++len;
  986. } else if (u <= 0x7FF) {
  987. len += 2;
  988. } else if (u <= 0xFFFF) {
  989. len += 3;
  990. } else if (u <= 0x1FFFFF) {
  991. len += 4;
  992. } else if (u <= 0x3FFFFFF) {
  993. len += 5;
  994. } else {
  995. len += 6;
  996. }
  997. }
  998. return len;
  999. }
  1000. Module["lengthBytesUTF8"] = lengthBytesUTF8;
  1001. // Given a pointer 'ptr' to a null-terminated UTF16LE-encoded string in the emscripten HEAP, returns
  1002. // a copy of that string as a Javascript String object.
  1003. var UTF16Decoder = typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-16le') : undefined;
  1004. function UTF16ToString(ptr) {
  1005. assert(ptr % 2 == 0, 'Pointer passed to UTF16ToString must be aligned to two bytes!');
  1006. var endPtr = ptr;
  1007. // TextDecoder needs to know the byte length in advance, it doesn't stop on null terminator by itself.
  1008. // Also, use the length info to avoid running tiny strings through TextDecoder, since .subarray() allocates garbage.
  1009. var idx = endPtr >> 1;
  1010. while (HEAP16[idx]) ++idx;
  1011. endPtr = idx << 1;
  1012. if (endPtr - ptr > 32 && UTF16Decoder) {
  1013. return UTF16Decoder.decode(HEAPU8.subarray(ptr, endPtr));
  1014. } else {
  1015. var i = 0;
  1016. var str = '';
  1017. while (1) {
  1018. var codeUnit = HEAP16[(((ptr)+(i*2))>>1)];
  1019. if (codeUnit == 0) return str;
  1020. ++i;
  1021. // fromCharCode constructs a character from a UTF-16 code unit, so we can pass the UTF16 string right through.
  1022. str += String.fromCharCode(codeUnit);
  1023. }
  1024. }
  1025. }
  1026. // Copies the given Javascript String object 'str' to the emscripten HEAP at address 'outPtr',
  1027. // null-terminated and encoded in UTF16 form. The copy will require at most str.length*4+2 bytes of space in the HEAP.
  1028. // Use the function lengthBytesUTF16() to compute the exact number of bytes (excluding null terminator) that this function will write.
  1029. // Parameters:
  1030. // str: the Javascript string to copy.
  1031. // outPtr: Byte address in Emscripten HEAP where to write the string to.
  1032. // maxBytesToWrite: The maximum number of bytes this function can write to the array. This count should include the null
  1033. // terminator, i.e. if maxBytesToWrite=2, only the null terminator will be written and nothing else.
  1034. // maxBytesToWrite<2 does not write any bytes to the output, not even the null terminator.
  1035. // Returns the number of bytes written, EXCLUDING the null terminator.
  1036. function stringToUTF16(str, outPtr, maxBytesToWrite) {
  1037. assert(outPtr % 2 == 0, 'Pointer passed to stringToUTF16 must be aligned to two bytes!');
  1038. assert(typeof maxBytesToWrite == 'number', 'stringToUTF16(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!');
  1039. // Backwards compatibility: if max bytes is not specified, assume unsafe unbounded write is allowed.
  1040. if (maxBytesToWrite === undefined) {
  1041. maxBytesToWrite = 0x7FFFFFFF;
  1042. }
  1043. if (maxBytesToWrite < 2) return 0;
  1044. maxBytesToWrite -= 2; // Null terminator.
  1045. var startPtr = outPtr;
  1046. var numCharsToWrite = (maxBytesToWrite < str.length*2) ? (maxBytesToWrite / 2) : str.length;
  1047. for (var i = 0; i < numCharsToWrite; ++i) {
  1048. // charCodeAt returns a UTF-16 encoded code unit, so it can be directly written to the HEAP.
  1049. var codeUnit = str.charCodeAt(i); // possibly a lead surrogate
  1050. HEAP16[((outPtr)>>1)]=codeUnit;
  1051. outPtr += 2;
  1052. }
  1053. // Null-terminate the pointer to the HEAP.
  1054. HEAP16[((outPtr)>>1)]=0;
  1055. return outPtr - startPtr;
  1056. }
  1057. // Returns the number of bytes the given Javascript string takes if encoded as a UTF16 byte array, EXCLUDING the null terminator byte.
  1058. function lengthBytesUTF16(str) {
  1059. return str.length*2;
  1060. }
  1061. function UTF32ToString(ptr) {
  1062. assert(ptr % 4 == 0, 'Pointer passed to UTF32ToString must be aligned to four bytes!');
  1063. var i = 0;
  1064. var str = '';
  1065. while (1) {
  1066. var utf32 = HEAP32[(((ptr)+(i*4))>>2)];
  1067. if (utf32 == 0)
  1068. return str;
  1069. ++i;
  1070. // Gotcha: fromCharCode constructs a character from a UTF-16 encoded code (pair), not from a Unicode code point! So encode the code point to UTF-16 for constructing.
  1071. // See http://unicode.org/faq/utf_bom.html#utf16-3
  1072. if (utf32 >= 0x10000) {
  1073. var ch = utf32 - 0x10000;
  1074. str += String.fromCharCode(0xD800 | (ch >> 10), 0xDC00 | (ch & 0x3FF));
  1075. } else {
  1076. str += String.fromCharCode(utf32);
  1077. }
  1078. }
  1079. }
  1080. // Copies the given Javascript String object 'str' to the emscripten HEAP at address 'outPtr',
  1081. // null-terminated and encoded in UTF32 form. The copy will require at most str.length*4+4 bytes of space in the HEAP.
  1082. // Use the function lengthBytesUTF32() to compute the exact number of bytes (excluding null terminator) that this function will write.
  1083. // Parameters:
  1084. // str: the Javascript string to copy.
  1085. // outPtr: Byte address in Emscripten HEAP where to write the string to.
  1086. // maxBytesToWrite: The maximum number of bytes this function can write to the array. This count should include the null
  1087. // terminator, i.e. if maxBytesToWrite=4, only the null terminator will be written and nothing else.
  1088. // maxBytesToWrite<4 does not write any bytes to the output, not even the null terminator.
  1089. // Returns the number of bytes written, EXCLUDING the null terminator.
  1090. function stringToUTF32(str, outPtr, maxBytesToWrite) {
  1091. assert(outPtr % 4 == 0, 'Pointer passed to stringToUTF32 must be aligned to four bytes!');
  1092. assert(typeof maxBytesToWrite == 'number', 'stringToUTF32(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!');
  1093. // Backwards compatibility: if max bytes is not specified, assume unsafe unbounded write is allowed.
  1094. if (maxBytesToWrite === undefined) {
  1095. maxBytesToWrite = 0x7FFFFFFF;
  1096. }
  1097. if (maxBytesToWrite < 4) return 0;
  1098. var startPtr = outPtr;
  1099. var endPtr = startPtr + maxBytesToWrite - 4;
  1100. for (var i = 0; i < str.length; ++i) {
  1101. // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! We must decode the string to UTF-32 to the heap.
  1102. // See http://unicode.org/faq/utf_bom.html#utf16-3
  1103. var codeUnit = str.charCodeAt(i); // possibly a lead surrogate
  1104. if (codeUnit >= 0xD800 && codeUnit <= 0xDFFF) {
  1105. var trailSurrogate = str.charCodeAt(++i);
  1106. codeUnit = 0x10000 + ((codeUnit & 0x3FF) << 10) | (trailSurrogate & 0x3FF);
  1107. }
  1108. HEAP32[((outPtr)>>2)]=codeUnit;
  1109. outPtr += 4;
  1110. if (outPtr + 4 > endPtr) break;
  1111. }
  1112. // Null-terminate the pointer to the HEAP.
  1113. HEAP32[((outPtr)>>2)]=0;
  1114. return outPtr - startPtr;
  1115. }
  1116. // Returns the number of bytes the given Javascript string takes if encoded as a UTF16 byte array, EXCLUDING the null terminator byte.
  1117. function lengthBytesUTF32(str) {
  1118. var len = 0;
  1119. for (var i = 0; i < str.length; ++i) {
  1120. // Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! We must decode the string to UTF-32 to the heap.
  1121. // See http://unicode.org/faq/utf_bom.html#utf16-3
  1122. var codeUnit = str.charCodeAt(i);
  1123. if (codeUnit >= 0xD800 && codeUnit <= 0xDFFF) ++i; // possibly a lead surrogate, so skip over the tail surrogate.
  1124. len += 4;
  1125. }
  1126. return len;
  1127. }
  1128. function demangle(func) {
  1129. var __cxa_demangle_func = Module['___cxa_demangle'] || Module['__cxa_demangle'];
  1130. if (__cxa_demangle_func) {
  1131. try {
  1132. var s =
  1133. func.substr(1);
  1134. var len = lengthBytesUTF8(s)+1;
  1135. var buf = _malloc(len);
  1136. stringToUTF8(s, buf, len);
  1137. var status = _malloc(4);
  1138. var ret = __cxa_demangle_func(buf, 0, 0, status);
  1139. if (getValue(status, 'i32') === 0 && ret) {
  1140. return Pointer_stringify(ret);
  1141. }
  1142. // otherwise, libcxxabi failed
  1143. } catch(e) {
  1144. // ignore problems here
  1145. } finally {
  1146. if (buf) _free(buf);
  1147. if (status) _free(status);
  1148. if (ret) _free(ret);
  1149. }
  1150. // failure when using libcxxabi, don't demangle
  1151. return func;
  1152. }
  1153. Runtime.warnOnce('warning: build with -s DEMANGLE_SUPPORT=1 to link in libcxxabi demangling');
  1154. return func;
  1155. }
  1156. function demangleAll(text) {
  1157. var regex =
  1158. /__Z[\w\d_]+/g;
  1159. return text.replace(regex,
  1160. function(x) {
  1161. var y = demangle(x);
  1162. return x === y ? x : (x + ' [' + y + ']');
  1163. });
  1164. }
  1165. function jsStackTrace() {
  1166. var err = new Error();
  1167. if (!err.stack) {
  1168. // IE10+ special cases: It does have callstack info, but it is only populated if an Error object is thrown,
  1169. // so try that as a special-case.
  1170. try {
  1171. throw new Error(0);
  1172. } catch(e) {
  1173. err = e;
  1174. }
  1175. if (!err.stack) {
  1176. return '(no stack trace available)';
  1177. }
  1178. }
  1179. return err.stack.toString();
  1180. }
  1181. function stackTrace() {
  1182. var js = jsStackTrace();
  1183. if (Module['extraStackTrace']) js += '\n' + Module['extraStackTrace']();
  1184. return demangleAll(js);
  1185. }
  1186. Module["stackTrace"] = stackTrace;
  1187. // Memory management
  1188. var PAGE_SIZE = 16384;
  1189. var WASM_PAGE_SIZE = 65536;
  1190. var ASMJS_PAGE_SIZE = 16777216;
  1191. var MIN_TOTAL_MEMORY = 16777216;
  1192. function alignUp(x, multiple) {
  1193. if (x % multiple > 0) {
  1194. x += multiple - (x % multiple);
  1195. }
  1196. return x;
  1197. }
  1198. var HEAP;
  1199. var buffer;
  1200. var HEAP8, HEAPU8, HEAP16, HEAPU16, HEAP32, HEAPU32, HEAPF32, HEAPF64;
  1201. function updateGlobalBuffer(buf) {
  1202. Module['buffer'] = buffer = buf;
  1203. }
  1204. function updateGlobalBufferViews() {
  1205. Module['HEAP8'] = HEAP8 = new Int8Array(buffer);
  1206. Module['HEAP16'] = HEAP16 = new Int16Array(buffer);
  1207. Module['HEAP32'] = HEAP32 = new Int32Array(buffer);
  1208. Module['HEAPU8'] = HEAPU8 = new Uint8Array(buffer);
  1209. Module['HEAPU16'] = HEAPU16 = new Uint16Array(buffer);
  1210. Module['HEAPU32'] = HEAPU32 = new Uint32Array(buffer);
  1211. Module['HEAPF32'] = HEAPF32 = new Float32Array(buffer);
  1212. Module['HEAPF64'] = HEAPF64 = new Float64Array(buffer);
  1213. }
  1214. var STATIC_BASE, STATICTOP, staticSealed; // static area
  1215. var STACK_BASE, STACKTOP, STACK_MAX; // stack area
  1216. var DYNAMIC_BASE, DYNAMICTOP_PTR; // dynamic area handled by sbrk
  1217. STATIC_BASE = STATICTOP = STACK_BASE = STACKTOP = STACK_MAX = DYNAMIC_BASE = DYNAMICTOP_PTR = 0;
  1218. staticSealed = false;
  1219. // Initializes the stack cookie. Called at the startup of main and at the startup of each thread in pthreads mode.
  1220. function writeStackCookie() {
  1221. assert((STACK_MAX & 3) == 0);
  1222. HEAPU32[(STACK_MAX >> 2)-1] = 0x02135467;
  1223. HEAPU32[(STACK_MAX >> 2)-2] = 0x89BACDFE;
  1224. }
  1225. function checkStackCookie() {
  1226. if (HEAPU32[(STACK_MAX >> 2)-1] != 0x02135467 || HEAPU32[(STACK_MAX >> 2)-2] != 0x89BACDFE) {
  1227. abort('Stack overflow! Stack cookie has been overwritten, expected hex dwords 0x89BACDFE and 0x02135467, but received 0x' + HEAPU32[(STACK_MAX >> 2)-2].toString(16) + ' ' + HEAPU32[(STACK_MAX >> 2)-1].toString(16));
  1228. }
  1229. // Also test the global address 0 for integrity. This check is not compatible with SAFE_SPLIT_MEMORY though, since that mode already tests all address 0 accesses on its own.
  1230. if (HEAP32[0] !== 0x63736d65 /* 'emsc' */) throw 'Runtime error: The application has corrupted its heap memory area (address zero)!';
  1231. }
  1232. function abortStackOverflow(allocSize) {
  1233. abort('Stack overflow! Attempted to allocate ' + allocSize + ' bytes on the stack, but stack has only ' + (STACK_MAX - asm.stackSave() + allocSize) + ' bytes available!');
  1234. }
  1235. function abortOnCannotGrowMemory() {
  1236. abort('Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value ' + TOTAL_MEMORY + ', (2) compile with -s ALLOW_MEMORY_GROWTH=1 which adjusts the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0 ');
  1237. }
  1238. function enlargeMemory() {
  1239. abortOnCannotGrowMemory();
  1240. }
  1241. var TOTAL_STACK = Module['TOTAL_STACK'] || 5242880;
  1242. var TOTAL_MEMORY = Module['TOTAL_MEMORY'] || 16777216;
  1243. if (TOTAL_MEMORY < TOTAL_STACK) Module.printErr('TOTAL_MEMORY should be larger than TOTAL_STACK, was ' + TOTAL_MEMORY + '! (TOTAL_STACK=' + TOTAL_STACK + ')');
  1244. // Initialize the runtime's memory
  1245. // check for full engine support (use string 'subarray' to avoid closure compiler confusion)
  1246. assert(typeof Int32Array !== 'undefined' && typeof Float64Array !== 'undefined' && !!(new Int32Array(1)['subarray']) && !!(new Int32Array(1)['set']),
  1247. 'JS engine does not provide full typed array support');
  1248. // Use a provided buffer, if there is one, or else allocate a new one
  1249. if (Module['buffer']) {
  1250. buffer = Module['buffer'];
  1251. assert(buffer.byteLength === TOTAL_MEMORY, 'provided buffer should be ' + TOTAL_MEMORY + ' bytes, but it is ' + buffer.byteLength);
  1252. } else {
  1253. // Use a WebAssembly memory where available
  1254. {
  1255. buffer = new ArrayBuffer(TOTAL_MEMORY);
  1256. }
  1257. assert(buffer.byteLength === TOTAL_MEMORY);
  1258. }
  1259. updateGlobalBufferViews();
  1260. function getTotalMemory() {
  1261. return TOTAL_MEMORY;
  1262. }
  1263. // Endianness check (note: assumes compiler arch was little-endian)
  1264. HEAP32[0] = 0x63736d65; /* 'emsc' */
  1265. HEAP16[1] = 0x6373;
  1266. if (HEAPU8[2] !== 0x73 || HEAPU8[3] !== 0x63) throw 'Runtime error: expected the system to be little-endian!';
  1267. Module['HEAP'] = HEAP;
  1268. Module['buffer'] = buffer;
  1269. Module['HEAP8'] = HEAP8;
  1270. Module['HEAP16'] = HEAP16;
  1271. Module['HEAP32'] = HEAP32;
  1272. Module['HEAPU8'] = HEAPU8;
  1273. Module['HEAPU16'] = HEAPU16;
  1274. Module['HEAPU32'] = HEAPU32;
  1275. Module['HEAPF32'] = HEAPF32;
  1276. Module['HEAPF64'] = HEAPF64;
  1277. function callRuntimeCallbacks(callbacks) {
  1278. while(callbacks.length > 0) {
  1279. var callback = callbacks.shift();
  1280. if (typeof callback == 'function') {
  1281. callback();
  1282. continue;
  1283. }
  1284. var func = callback.func;
  1285. if (typeof func === 'number') {
  1286. if (callback.arg === undefined) {
  1287. Module['dynCall_v'](func);
  1288. } else {
  1289. Module['dynCall_vi'](func, callback.arg);
  1290. }
  1291. } else {
  1292. func(callback.arg === undefined ? null : callback.arg);
  1293. }
  1294. }
  1295. }
  1296. var __ATPRERUN__ = []; // functions called before the runtime is initialized
  1297. var __ATINIT__ = []; // functions called during startup
  1298. var __ATMAIN__ = []; // functions called when main() is to be run
  1299. var __ATEXIT__ = []; // functions called during shutdown
  1300. var __ATPOSTRUN__ = []; // functions called after the runtime has exited
  1301. var runtimeInitialized = false;
  1302. var runtimeExited = false;
  1303. function preRun() {
  1304. // compatibility - merge in anything from Module['preRun'] at this time
  1305. if (Module['preRun']) {
  1306. if (typeof Module['preRun'] == 'function') Module['preRun'] = [Module['preRun']];
  1307. while (Module['preRun'].length) {
  1308. addOnPreRun(Module['preRun'].shift());
  1309. }
  1310. }
  1311. callRuntimeCallbacks(__ATPRERUN__);
  1312. }
  1313. function ensureInitRuntime() {
  1314. checkStackCookie();
  1315. if (runtimeInitialized) return;
  1316. runtimeInitialized = true;
  1317. callRuntimeCallbacks(__ATINIT__);
  1318. }
  1319. function preMain() {
  1320. checkStackCookie();
  1321. callRuntimeCallbacks(__ATMAIN__);
  1322. }
  1323. function exitRuntime() {
  1324. checkStackCookie();
  1325. callRuntimeCallbacks(__ATEXIT__);
  1326. runtimeExited = true;
  1327. }
  1328. function postRun() {
  1329. checkStackCookie();
  1330. // compatibility - merge in anything from Module['postRun'] at this time
  1331. if (Module['postRun']) {
  1332. if (typeof Module['postRun'] == 'function') Module['postRun'] = [Module['postRun']];
  1333. while (Module['postRun'].length) {
  1334. addOnPostRun(Module['postRun'].shift());
  1335. }
  1336. }
  1337. callRuntimeCallbacks(__ATPOSTRUN__);
  1338. }
  1339. function addOnPreRun(cb) {
  1340. __ATPRERUN__.unshift(cb);
  1341. }
  1342. Module["addOnPreRun"] = addOnPreRun;
  1343. function addOnInit(cb) {
  1344. __ATINIT__.unshift(cb);
  1345. }
  1346. Module["addOnInit"] = addOnInit;
  1347. function addOnPreMain(cb) {
  1348. __ATMAIN__.unshift(cb);
  1349. }
  1350. Module["addOnPreMain"] = addOnPreMain;
  1351. function addOnExit(cb) {
  1352. __ATEXIT__.unshift(cb);
  1353. }
  1354. Module["addOnExit"] = addOnExit;
  1355. function addOnPostRun(cb) {
  1356. __ATPOSTRUN__.unshift(cb);
  1357. }
  1358. Module["addOnPostRun"] = addOnPostRun;
  1359. // Tools
  1360. function intArrayFromString(stringy, dontAddNull, length /* optional */) {
  1361. var len = length > 0 ? length : lengthBytesUTF8(stringy)+1;
  1362. var u8array = new Array(len);
  1363. var numBytesWritten = stringToUTF8Array(stringy, u8array, 0, u8array.length);
  1364. if (dontAddNull) u8array.length = numBytesWritten;
  1365. return u8array;
  1366. }
  1367. Module["intArrayFromString"] = intArrayFromString;
  1368. function intArrayToString(array) {
  1369. var ret = [];
  1370. for (var i = 0; i < array.length; i++) {
  1371. var chr = array[i];
  1372. if (chr > 0xFF) {
  1373. assert(false, 'Character code ' + chr + ' (' + String.fromCharCode(chr) + ') at offset ' + i + ' not in 0x00-0xFF.');
  1374. chr &= 0xFF;
  1375. }
  1376. ret.push(String.fromCharCode(chr));
  1377. }
  1378. return ret.join('');
  1379. }
  1380. Module["intArrayToString"] = intArrayToString;
  1381. // Deprecated: This function should not be called because it is unsafe and does not provide
  1382. // a maximum length limit of how many bytes it is allowed to write. Prefer calling the
  1383. // function stringToUTF8Array() instead, which takes in a maximum length that can be used
  1384. // to be secure from out of bounds writes.
  1385. function writeStringToMemory(string, buffer, dontAddNull) {
  1386. Runtime.warnOnce('writeStringToMemory is deprecated and should not be called! Use stringToUTF8() instead!');
  1387. var lastChar, end;
  1388. if (dontAddNull) {
  1389. // stringToUTF8Array always appends null. If we don't want to do that, remember the
  1390. // character that existed at the location where the null will be placed, and restore
  1391. // that after the write (below).
  1392. end = buffer + lengthBytesUTF8(string);
  1393. lastChar = HEAP8[end];
  1394. }
  1395. stringToUTF8(string, buffer, Infinity);
  1396. if (dontAddNull) HEAP8[end] = lastChar; // Restore the value under the null character.
  1397. }
  1398. Module["writeStringToMemory"] = writeStringToMemory;
  1399. function writeArrayToMemory(array, buffer) {
  1400. assert(array.length >= 0, 'writeArrayToMemory array must have a length (should be an array or typed array)')
  1401. HEAP8.set(array, buffer);
  1402. }
  1403. Module["writeArrayToMemory"] = writeArrayToMemory;
  1404. function writeAsciiToMemory(str, buffer, dontAddNull) {
  1405. for (var i = 0; i < str.length; ++i) {
  1406. assert(str.charCodeAt(i) === str.charCodeAt(i)&0xff);
  1407. HEAP8[((buffer++)>>0)]=str.charCodeAt(i);
  1408. }
  1409. // Null-terminate the pointer to the HEAP.
  1410. if (!dontAddNull) HEAP8[((buffer)>>0)]=0;
  1411. }
  1412. Module["writeAsciiToMemory"] = writeAsciiToMemory;
  1413. function unSign(value, bits, ignore) {
  1414. if (value >= 0) {
  1415. return value;
  1416. }
  1417. return bits <= 32 ? 2*Math.abs(1 << (bits-1)) + value // Need some trickery, since if bits == 32, we are right at the limit of the bits JS uses in bitshifts
  1418. : Math.pow(2, bits) + value;
  1419. }
  1420. function reSign(value, bits, ignore) {
  1421. if (value <= 0) {
  1422. return value;
  1423. }
  1424. var half = bits <= 32 ? Math.abs(1 << (bits-1)) // abs is needed if bits == 32
  1425. : Math.pow(2, bits-1);
  1426. if (value >= half && (bits <= 32 || value > half)) { // for huge values, we can hit the precision limit and always get true here. so don't do that
  1427. // but, in general there is no perfect solution here. With 64-bit ints, we get rounding and errors
  1428. // TODO: In i64 mode 1, resign the two parts separately and safely
  1429. value = -2*half + value; // Cannot bitshift half, as it may be at the limit of the bits JS uses in bitshifts
  1430. }
  1431. return value;
  1432. }
  1433. // check for imul support, and also for correctness ( https://bugs.webkit.org/show_bug.cgi?id=126345 )
  1434. if (!Math['imul'] || Math['imul'](0xffffffff, 5) !== -5) Math['imul'] = function imul(a, b) {
  1435. var ah = a >>> 16;
  1436. var al = a & 0xffff;
  1437. var bh = b >>> 16;
  1438. var bl = b & 0xffff;
  1439. return (al*bl + ((ah*bl + al*bh) << 16))|0;
  1440. };
  1441. Math.imul = Math['imul'];
  1442. if (!Math['clz32']) Math['clz32'] = function(x) {
  1443. x = x >>> 0;
  1444. for (var i = 0; i < 32; i++) {
  1445. if (x & (1 << (31 - i))) return i;
  1446. }
  1447. return 32;
  1448. };
  1449. Math.clz32 = Math['clz32']
  1450. if (!Math['trunc']) Math['trunc'] = function(x) {
  1451. return x < 0 ? Math.ceil(x) : Math.floor(x);
  1452. };
  1453. Math.trunc = Math['trunc'];
  1454. var Math_abs = Math.abs;
  1455. var Math_cos = Math.cos;
  1456. var Math_sin = Math.sin;
  1457. var Math_tan = Math.tan;
  1458. var Math_acos = Math.acos;
  1459. var Math_asin = Math.asin;
  1460. var Math_atan = Math.atan;
  1461. var Math_atan2 = Math.atan2;
  1462. var Math_exp = Math.exp;
  1463. var Math_log = Math.log;
  1464. var Math_sqrt = Math.sqrt;
  1465. var Math_ceil = Math.ceil;
  1466. var Math_floor = Math.floor;
  1467. var Math_pow = Math.pow;
  1468. var Math_imul = Math.imul;
  1469. var Math_fround = Math.fround;
  1470. var Math_round = Math.round;
  1471. var Math_min = Math.min;
  1472. var Math_clz32 = Math.clz32;
  1473. var Math_trunc = Math.trunc;
  1474. // A counter of dependencies for calling run(). If we need to
  1475. // do asynchronous work before running, increment this and
  1476. // decrement it. Incrementing must happen in a place like
  1477. // PRE_RUN_ADDITIONS (used by emcc to add file preloading).
  1478. // Note that you can add dependencies in preRun, even though
  1479. // it happens right before run - run will be postponed until
  1480. // the dependencies are met.
  1481. var runDependencies = 0;
  1482. var runDependencyWatcher = null;
  1483. var dependenciesFulfilled = null; // overridden to take different actions when all run dependencies are fulfilled
  1484. var runDependencyTracking = {};
  1485. function getUniqueRunDependency(id) {
  1486. var orig = id;
  1487. while (1) {
  1488. if (!runDependencyTracking[id]) return id;
  1489. id = orig + Math.random();
  1490. }
  1491. return id;
  1492. }
  1493. function addRunDependency(id) {
  1494. runDependencies++;
  1495. if (Module['monitorRunDependencies']) {
  1496. Module['monitorRunDependencies'](runDependencies);
  1497. }
  1498. if (id) {
  1499. assert(!runDependencyTracking[id]);
  1500. runDependencyTracking[id] = 1;
  1501. if (runDependencyWatcher === null && typeof setInterval !== 'undefined') {
  1502. // Check for missing dependencies every few seconds
  1503. runDependencyWatcher = setInterval(function() {
  1504. if (ABORT) {
  1505. clearInterval(runDependencyWatcher);
  1506. runDependencyWatcher = null;
  1507. return;
  1508. }
  1509. var shown = false;
  1510. for (var dep in runDependencyTracking) {
  1511. if (!shown) {
  1512. shown = true;
  1513. Module.printErr('still waiting on run dependencies:');
  1514. }
  1515. Module.printErr('dependency: ' + dep);
  1516. }
  1517. if (shown) {
  1518. Module.printErr('(end of list)');
  1519. }
  1520. }, 10000);
  1521. }
  1522. } else {
  1523. Module.printErr('warning: run dependency added without ID');
  1524. }
  1525. }
  1526. Module["addRunDependency"] = addRunDependency;
  1527. function removeRunDependency(id) {
  1528. runDependencies--;
  1529. if (Module['monitorRunDependencies']) {
  1530. Module['monitorRunDependencies'](runDependencies);
  1531. }
  1532. if (id) {
  1533. assert(runDependencyTracking[id]);
  1534. delete runDependencyTracking[id];
  1535. } else {
  1536. Module.printErr('warning: run dependency removed without ID');
  1537. }
  1538. if (runDependencies == 0) {
  1539. if (runDependencyWatcher !== null) {
  1540. clearInterval(runDependencyWatcher);
  1541. runDependencyWatcher = null;
  1542. }
  1543. if (dependenciesFulfilled) {
  1544. var callback = dependenciesFulfilled;
  1545. dependenciesFulfilled = null;
  1546. callback(); // can add another dependenciesFulfilled
  1547. }
  1548. }
  1549. }
  1550. Module["removeRunDependency"] = removeRunDependency;
  1551. Module["preloadedImages"] = {}; // maps url to image data
  1552. Module["preloadedAudios"] = {}; // maps url to audio data
  1553. var memoryInitializer = null;
  1554. // === Body ===
  1555. var ASM_CONSTS = [function($0, $1) { { Module.printErr('bad name in getProcAddress: ' + [Pointer_stringify($0), Pointer_stringify($1)]); } }];
  1556. function _emscripten_asm_const_iii(code, a0, a1) {
  1557. return ASM_CONSTS[code](a0, a1);
  1558. }
  1559. STATIC_BASE = 8;
  1560. STATICTOP = STATIC_BASE + 24064;
  1561. /* global initializers */ __ATINIT__.push();
  1562. /* memory initializer */ allocate([0,0,200,193,0,0,0,63,0,0,0,0,0,0,128,192,0,0,32,64,0,0,128,63,0,0,0,193,0,0,208,64,0,0,0,0,255,255,255,255,205,204,236,63,2,0,0,0,86,1,0,0,85,1,0,0,87,0,0,0,83,0,0,0,68,0,0,0,65,0,0,0,69,0,0,0,81,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,0,32,0,0,176,1,0,0,0,0,0,0,0,0,0,32,37,249,142,0,10,2,0,0,128,190,125,95,244,125,31,160,242,43,74,30,9,82,8,0,64,34,65,80,20,4,16,32,32,41,46,18,8,34,8,0,32,34,65,80,20,4,16,32,32,249,16,76,8,250,62,60,16,34,125,222,247,125,16,32,32,161,232,50,8,34,8,0,8,34,5,16,4,69,16,0,240,163,164,50,8,82,8,0,4,34,5,16,4,69,16,32,32,249,226,94,8,2,0,129,2,62,125,31,244,125,16,0,0,32,0,0,176,1,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,190,15,0,192,15,224,247,251,125,126,191,95,232,190,80,0,162,8,8,68,232,47,20,10,133,2,129,80,72,160,80,0,162,40,228,73,40,40,20,10,132,2,129,64,72,160,72,0,190,15,2,16,175,235,247,9,132,62,159,216,79,160,71,0,34,136,228,9,161,42,20,10,132,2,129,80,72,160,72,0,34,40,8,4,160,47,20,10,133,2,129,80,72,162,80,0,190,143,0,0,33,32,244,251,125,126,129,95,232,156,208,7,0,128,0,0,224,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,128,1,12,0,130,66,191,223,239,247,251,11,5,5,133,66,191,4,72,0,198,66,161,80,40,20,64,8,5,37,133,66,160,8,168,0,170,70,161,80,40,20,64,8,5,37,133,66,144,16,8,0,146,74,161,95,232,247,67,8,5,37,121,126,136,32,8,0,130,82,161,64,40,1,66,8,137,36,133,64,132,64,8,0,130,98,161,64,42,2,66,8,81,36,133,64,130,128,8,0,130,66,191,192,47,244,67,248,33,252,133,126,191,0,9,62,0,0,0,0,4,0,0,0,0,0,0,0,128,1,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,4,0,4,0,32,72,65,0,0,0,0,0,8,0,0,4,4,0,4,60,32,0,65,0,0,0,0,0,8,0,0,240,125,223,247,133,239,75,81,190,239,251,190,239,59,81,4,0,69,65,20,133,40,74,73,170,40,138,162,32,8,81,4,240,69,65,244,157,40,74,71,170,40,138,162,224,11,81,4,16,69,65,20,132,40,74,73,170,40,138,162,0,10,145,2,240,125,223,247,133,47,74,209,170,232,251,190,224,123,31,1,0,0,0,0,4,8,64,0,0,0,8,32,0,0,0,0,0,0,0,0,132,15,96,0,0,0,8,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,172,1,15,0,0,0,0,0,0,0,0,0,0,0,0,0,36,1,9,0,0,0,0,0,0,0,0,0,6,0,0,0,36,1,9,0,0,0,0,0,0,0,128,16,9,162,40,250,36,1,9,0,0,0,0,0,0,0,0,62,1,42,37,66,34,82,9,0,0,0,0,0,0,0,128,138,3,42,34,34,36,41,9,0,0,0,0,0,0,0,128,10,1,42,37,18,36,1,9,0,0,0,0,0,0,0,128,10,1,190,232,251,36,1,9,0,0,0,0,0,0,0,128,190,14,0,0,2,172,1,15,0,0,0,0,0,0,0,128,4,0,0,224,3,0,0,0,0,0,0,0,0,0,0,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,56,0,0,0,14,184,67,132,3,58,32,0,128,160,190,2,32,0,0,240,138,32,82,196,2,43,32,4,34,145,2,248,59,0,240,7,142,56,75,228,2,58,32,2,28,138,30,8,42,233,17,4,224,11,66,244,2,130,36,1,20,4,20,232,186,4,209,5,128,184,195,231,10,58,137,0,28,14,60,40,2,9,80,4,128,0,64,196,2,128,68,0,34,132,32,232,2,0,80,4,0,0,64,128,2,0,32,5,0,142,62,8,2,0,16,4,224,3,64,128,66,0,0,7,0,132,0,248,3,0,240,7,0,0,64,128,34,0,0,4,0,0,0,0,0,0,0,0,0,0,64,128,2,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,7,128,0,194,160,72,24,0,0,1,132,33,9,146,2,66,38,4,1,33,81,0,0,127,63,2,66,2,16,41,0,34,20,192,239,247,251,253,126,9,161,223,239,247,187,187,3,18,15,68,40,20,10,133,66,9,129,64,32,16,16,17,1,8,4,68,40,20,10,133,66,127,129,64,32,16,16,17,1,4,130,199,239,247,251,253,126,9,129,207,231,243,17,17,1,50,169,80,40,20,10,133,66,9,161,64,32,16,16,17,1,64,184,80,40,20,10,133,66,121,191,223,239,247,187,187,3,32,160,31,0,0,0,0,0,0,16,0,0,0,0,0,0,112,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,40,2,8,131,34,1,0,2,8,67,2,1,0,1,1,124,20,4,132,68,1,0,32,4,132,4,128,8,63,130,0,132,66,191,223,239,247,3,126,161,80,40,20,10,33,0,0,132,70,161,80,40,20,138,82,161,80,40,20,122,161,239,3,158,74,161,80,40,20,82,82,161,80,40,20,74,31,8,2,132,82,161,80,40,20,34,74,161,80,40,244,75,161,239,3,132,98,161,80,40,20,82,74,161,80,40,4,122,161,40,2,124,66,191,223,239,247,139,126,191,223,239,247,11,189,239,3,0,0,0,0,0,0,0,4,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,5,32,0,0,4,132,0,34,129,69,17,16,66,1,0,148,66,81,0,0,8,66,81,148,42,162,32,8,165,80,0,0,0,32,0,0,0,0,0,0,0,5,0,0,0,0,8,190,239,251,254,251,190,239,251,20,145,235,251,190,239,251,0,32,8,130,32,10,162,40,138,20,145,40,138,162,40,138,62,190,239,251,254,11,190,239,251,20,145,40,138,162,40,138,0,162,40,138,34,8,130,32,8,20,145,40,138,162,40,138,8,190,239,251,254,251,190,239,251,20,145,47,250,190,239,251,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,33,0,4,0,0,0,0,0,0,0,0,0,0,0,0,130,80,20,2,20,0,0,0,0,0,0,0,0,0,0,16,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0,190,40,138,162,40,34,0,0,0,0,0,0,0,0,0,0,170,40,138,162,232,34,0,0,0,0,0,0,0,0,0,0,170,40,138,162,168,34,0,0,0,0,0,0,0,0,0,0,170,40,138,162,232,34,0,0,0,0,0,0,0,0,0,0,190,239,251,190,47,62,0,0,0,0,0,0,0,0,0,0,4,0,0,0,40,32,0,0,0,0,0,0,0,0,0,0,0,0,0,128,15,62,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,1,0,0,0,4,0,0,0,6,0,0,0,5,0,0,0,7,0,0,0,6,0,0,0,2,0,0,0,3,0,0,0,3,0,0,0,5,0,0,0,5,0,0,0,2,0,0,0,4,0,0,0,1,0,0,0,7,0,0,0,5,0,0,0,2,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,1,0,0,0,1,0,0,0,3,0,0,0,4,0,0,0,3,0,0,0,6,0,0,0,7,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,3,0,0,0,5,0,0,0,6,0,0,0,5,0,0,0,7,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,7,0,0,0,6,0,0,0,7,0,0,0,7,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,2,0,0,0,7,0,0,0,2,0,0,0,3,0,0,0,5,0,0,0,2,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,4,0,0,0,5,0,0,0,5,0,0,0,1,0,0,0,2,0,0,0,5,0,0,0,2,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,4,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,3,0,0,0,1,0,0,0,3,0,0,0,4,0,0,0,4,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,7,0,0,0,1,0,0,0,5,0,0,0,3,0,0,0,7,0,0,0,3,0,0,0,5,0,0,0,4,0,0,0,1,0,0,0,7,0,0,0,4,0,0,0,3,0,0,0,5,0,0,0,3,0,0,0,3,0,0,0,2,0,0,0,5,0,0,0,6,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,5,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,7,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,3,0,0,0,3,0,0,0,3,0,0,0,3,0,0,0,7,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,5,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,6,0,0,0,4,0,0,0,6,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,9,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,3,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,3,0,0,0,5,0,0,0,255,255,255,255,0,1,0,0,255,255,255,255,0,0,128,191,0,0,0,0,4,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,8,0,0,0,8,0,0,0,4,0,0,0,4,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,1,0,0,0,8,0,0,0,8,0,0,0,8,0,0,0,4,0,0,0,4,0,0,0,2,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,1,0,0,1,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,3,0,0,0,3,0,0,0,3,0,0,0,4,0,0,0,4,0,0,0,4,0,0,0,4,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,4,0,0,0,5,0,0,0,6,0,0,0,7,0,0,0,8,0,0,0,9,0,0,0,10,0,0,0,11,0,0,0,13,0,0,0,15,0,0,0,17,0,0,0,19,0,0,0,23,0,0,0,27,0,0,0,31,0,0,0,35,0,0,0,43,0,0,0,51,0,0,0,59,0,0,0,67,0,0,0,83,0,0,0,99,0,0,0,115,0,0,0,131,0,0,0,163,0,0,0,195,0,0,0,227,0,0,0,2,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,3,0,0,0,3,0,0,0,4,0,0,0,4,0,0,0,5,0,0,0,5,0,0,0,6,0,0,0,6,0,0,0,7,0,0,0,7,0,0,0,8,0,0,0,8,0,0,0,9,0,0,0,9,0,0,0,10,0,0,0,10,0,0,0,11,0,0,0,11,0,0,0,12,0,0,0,12,0,0,0,13,0,0,0,13,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,4,0,0,0,5,0,0,0,7,0,0,0,9,0,0,0,13,0,0,0,17,0,0,0,25,0,0,0,33,0,0,0,49,0,0,0,65,0,0,0,97,0,0,0,129,0,0,0,193,0,0,0,1,1,0,0,129,1,0,0,1,2,0,0,1,3,0,0,1,4,0,0,1,6,0,0,1,8,0,0,1,12,0,0,1,16,0,0,1,24,0,0,1,32,0,0,1,48,0,0,1,64,0,0,1,96,0,0,0,0,0,0,0,0,0,0,20,0,0,0,2,0,0,192,3,0,0,192,4,0,0,192,5,0,0,192,6,0,0,192,7,0,0,192,8,0,0,192,9,0,0,192,10,0,0,192,11,0,0,192,12,0,0,192,13,0,0,192,14,0,0,192,15,0,0,192,16,0,0,192,17,0,0,192,18,0,0,192,19,0,0,192,20,0,0,192,21,0,0,192,22,0,0,192,23,0,0,192,24,0,0,192,25,0,0,192,26,0,0,192,27,0,0,192,28,0,0,192,29,0,0,192,30,0,0,192,31,0,0,192,0,0,0,179,1,0,0,195,2,0,0,195,3,0,0,195,4,0,0,195,5,0,0,195,6,0,0,195,7,0,0,195,8,0,0,195,9,0,0,195,10,0,0,195,11,0,0,195,12,0,0,195,13,0,0,211,14,0,0,195,15,0,0,195,0,0,12,187,1,0,12,195,2,0,12,195,3,0,12,195,4,0,12,211,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,144,82,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48,16,0,0,5,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,3,0,0,0,251,89,0,0,0,4,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48,16,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,0,0,0,100,0,0,0,232,3,0,0,16,39,0,0,160,134,1,0,64,66,15,0,128,150,152,0,0,225,245,5,95,112,137,0,255,9,47,15,114,97,121,108,105,98,32,91,109,111,100,101,108,115,93,32,101,120,97,109,112,108,101,32,45,32,51,100,32,109,101,115,104,32,112,105,99,107,105,110,103,0,114,101,115,111,117,114,99,101,115,47,116,111,119,101,114,46,111,98,106,0,114,101,115,111,117,114,99,101,115,47,116,111,119,101,114,46,112,110,103,0,78,111,110,101,0,71,114,111,117,110,100,0,84,114,105,97,110,103,108,101,0,77,101,115,104,0,72,105,116,32,79,98,106,101,99,116,58,32,37,115,0,68,105,115,116,97,110,99,101,58,32,37,51,46,50,102,0,72,105,116,32,80,111,115,58,32,37,51,46,50,102,32,37,51,46,50,102,32,37,51,46,50,102,0,72,105,116,32,78,111,114,109,58,32,37,51,46,50,102,32,37,51,46,50,102,32,37,51,46,50,102,0,66,97,114,121,99,101,110,116,101,114,58,32,37,51,46,50,102,32,37,51,46,50,102,32,37,51,46,50,102,0,85,115,101,32,77,111,117,115,101,32,116,111,32,77,111,118,101,32,67,97,109,101,114,97,0,73,110,105,116,105,97,108,105,122,105,110,103,32,114,97,121,108,105,98,32,40,118,49,46,55,46,48,41,0,35,99,97,110,118,97,115,0,84,97,114,103,101,116,32,116,105,109,101,32,112,101,114,32,102,114,97,109,101,58,32,37,48,50,46,48,51,102,32,109,105,108,108,105,115,101,99,111,110,100,115,0,69,115,99,97,112,101,0,67,97,110,118,97,115,32,115,99,97,108,101,100,32,116,111,32,102,117,108,108,115,99,114,101,101,110,46,32,69,108,101,109,101,110,116,83,105,122,101,58,32,40,37,105,120,37,105,41,44,32,83,99,114,101,101,110,83,105,122,101,40,37,105,120,37,105,41,0,67,97,110,118,97,115,32,115,99,97,108,101,100,32,116,111,32,119,105,110,100,111,119,101,100,46,32,69,108,101,109,101,110,116,83,105,122,101,58,32,40,37,105,120,37,105,41,44,32,83,99,114,101,101,110,83,105,122,101,40,37,105,120,37,105,41,0,91,84,69,88,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,102,111,110,116,32,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,68,88,84,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,32,102,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,69,84,67,49,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,32,102,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,69,84,67,50,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,32,102,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,80,86,82,84,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,32,102,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,65,83,84,67,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,32,102,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,84,101,120,116,117,114,101,32,102,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,91,84,69,88,32,73,68,32,37,105,93,32,84,101,120,116,117,114,101,32,99,114,101,97,116,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,37,105,120,37,105,41,0,73,109,97,103,101,32,100,97,116,97,32,102,111,114,109,97,116,32,105,115,32,99,111,109,112,114,101,115,115,101,100,44,32,99,97,110,32,110,111,116,32,98,101,32,99,111,110,118,101,114,116,101,100,0,70,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,32,102,111,114,32,112,105,120,101,108,32,100,97,116,97,32,114,101,116,114,105,101,118,97,108,0,70,97,105,108,101,100,32,116,111,32,105,110,105,116,105,97,108,105,122,101,32,71,76,70,87,0,84,114,121,105,110,103,32,116,111,32,101,110,97,98,108,101,32,77,83,65,65,32,120,52,0,67,108,111,115,101,115,116,32,102,117,108,108,115,99,114,101,101,110,32,118,105,100,101,111,109,111,100,101,58,32,37,105,32,120,32,37,105,0,71,76,70,87,32,70,97,105,108,101,100,32,116,111,32,105,110,105,116,105,97,108,105,122,101,32,87,105,110,100,111,119,0,68,105,115,112,108,97,121,32,100,101,118,105,99,101,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,82,101,110,100,101,114,32,115,105,122,101,58,32,37,105,32,120,32,37,105,0,83,99,114,101,101,110,32,115,105,122,101,58,32,37,105,32,120,32,37,105,0,86,105,101,119,112,111,114,116,32,111,102,102,115,101,116,115,58,32,37,105,44,32,37,105,0,84,114,121,105,110,103,32,116,111,32,101,110,97,98,108,101,32,86,83,89,78,67,0,71,80,85,58,32,86,101,110,100,111,114,58,32,32,32,37,115,0,71,80,85,58,32,82,101,110,100,101,114,101,114,58,32,37,115,0,71,80,85,58,32,86,101,114,115,105,111,110,58,32,32,37,115,0,71,80,85,58,32,71,76,83,76,58,32,32,32,32,32,37,115,0,32,0,78,117,109,98,101,114,32,111,102,32,115,117,112,112,111,114,116,101,100,32,101,120,116,101,110,115,105,111,110,115,58,32,37,105,0,71,76,95,79,69,83,95,118,101,114,116,101,120,95,97,114,114,97,121,95,111,98,106,101,99,116,0,103,108,71,101,110,86,101,114,116,101,120,65,114,114,97,121,115,79,69,83,0,103,108,66,105,110,100,86,101,114,116,101,120,65,114,114,97,121,79,69,83,0,103,108,68,101,108,101,116,101,86,101,114,116,101,120,65,114,114,97,121,115,79,69,83,0,71,76,95,79,69,83,95,116,101,120,116,117,114,101,95,110,112,111,116,0,71,76,95,69,88,84,95,116,101,120,116,117,114,101,95,99,111,109,112,114,101,115,115,105,111,110,95,115,51,116,99,0,71,76,95,87,69,66,71,76,95,99,111,109,112,114,101,115,115,101,100,95,116,101,120,116,117,114,101,95,115,51,116,99,0,71,76,95,87,69,66,75,73,84,95,87,69,66,71,76,95,99,111,109,112,114,101,115,115,101,100,95,116,101,120,116,117,114,101,95,115,51,116,99,0,71,76,95,79,69,83,95,99,111,109,112,114,101,115,115,101,100,95,69,84,67,49,95,82,71,66,56,95,116,101,120,116,117,114,101,0,71,76,95,87,69,66,71,76,95,99,111,109,112,114,101,115,115,101,100,95,116,101,120,116,117,114,101,95,101,116,99,49,0,71,76,95,65,82,66,95,69,83,51,95,99,111,109,112,97,116,105,98,105,108,105,116,121,0,71,76,95,73,77,71,95,116,101,120,116,117,114,101,95,99,111,109,112,114,101,115,115,105,111,110,95,112,118,114,116,99,0,71,76,95,75,72,82,95,116,101,120,116,117,114,101,95,99,111,109,112,114,101,115,115,105,111,110,95,97,115,116,99,95,104,100,114,0,71,76,95,69,88,84,95,116,101,120,116,117,114,101,95,102,105,108,116,101,114,95,97,110,105,115,111,116,114,111,112,105,99,0,71,76,95,69,88,84,95,116,101,120,116,117,114,101,95,109,105,114,114,111,114,95,99,108,97,109,112,0,91,69,88,84,69,78,83,73,79,78,93,32,86,65,79,32,101,120,116,101,110,115,105,111,110,32,100,101,116,101,99,116,101,100,44,32,86,65,79,32,102,117,110,99,116,105,111,110,115,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,91,69,88,84,69,78,83,73,79,78,93,32,86,65,79,32,101,120,116,101,110,115,105,111,110,32,110,111,116,32,102,111,117,110,100,44,32,86,65,79,32,117,115,97,103,101,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,91,69,88,84,69,78,83,73,79,78,93,32,78,80,79,84,32,116,101,120,116,117,114,101,115,32,101,120,116,101,110,115,105,111,110,32,100,101,116,101,99,116,101,100,44,32,102,117,108,108,32,78,80,79,84,32,116,101,120,116,117,114,101,115,32,115,117,112,112,111,114,116,101,100,0,91,69,88,84,69,78,83,73,79,78,93,32,78,80,79,84,32,116,101,120,116,117,114,101,115,32,101,120,116,101,110,115,105,111,110,32,110,111,116,32,102,111,117,110,100,44,32,108,105,109,105,116,101,100,32,78,80,79,84,32,115,117,112,112,111,114,116,32,40,110,111,45,109,105,112,109,97,112,115,44,32,110,111,45,114,101,112,101,97,116,41,0,91,69,88,84,69,78,83,73,79,78,93,32,68,88,84,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,115,32,115,117,112,112,111,114,116,101,100,0,91,69,88,84,69,78,83,73,79,78,93,32,69,84,67,49,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,115,32,115,117,112,112,111,114,116,101,100,0,91,69,88,84,69,78,83,73,79,78,93,32,69,84,67,50,47,69,65,67,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,115,32,115,117,112,112,111,114,116,101,100,0,91,69,88,84,69,78,83,73,79,78,93,32,80,86,82,84,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,115,32,115,117,112,112,111,114,116,101,100,0,91,69,88,84,69,78,83,73,79,78,93,32,65,83,84,67,32,99,111,109,112,114,101,115,115,101,100,32,116,101,120,116,117,114,101,115,32,115,117,112,112,111,114,116,101,100,0,91,69,88,84,69,78,83,73,79,78,93,32,65,110,105,115,111,116,114,111,112,105,99,32,116,101,120,116,117,114,101,115,32,102,105,108,116,101,114,105,110,103,32,115,117,112,112,111,114,116,101,100,32,40,109,97,120,58,32,37,46,48,102,88,41,0,91,69,88,84,69,78,83,73,79,78,93,32,67,108,97,109,112,32,109,105,114,114,111,114,32,119,114,97,112,32,116,101,120,116,117,114,101,32,109,111,100,101,32,115,117,112,112,111,114,116,101,100,0,91,84,69,88,32,73,68,32,37,105,93,32,66,97,115,101,32,119,104,105,116,101,32,116,101,120,116,117,114,101,32,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,66,97,115,101,32,119,104,105,116,101,32,116,101,120,116,117,114,101,32,99,111,117,108,100,32,110,111,116,32,98,101,32,108,111,97,100,101,100,0,79,112,101,110,71,76,32,100,101,102,97,117,108,116,32,115,116,97,116,101,115,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,91,67,80,85,93,32,68,101,102,97,117,108,116,32,98,117,102,102,101,114,115,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,108,105,110,101,115,44,32,116,114,105,97,110,103,108,101,115,44,32,113,117,97,100,115,41,0,91,86,65,79,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,98,117,102,102,101,114,115,32,86,65,79,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,108,105,110,101,115,41,0,91,86,66,79,32,73,68,32,37,105,93,91,86,66,79,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,98,117,102,102,101,114,115,32,86,66,79,115,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,108,105,110,101,115,41,0,91,86,65,79,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,98,117,102,102,101,114,115,32,86,65,79,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,116,114,105,97,110,103,108,101,115,41,0,91,86,66,79,32,73,68,32,37,105,93,91,86,66,79,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,98,117,102,102,101,114,115,32,86,66,79,115,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,116,114,105,97,110,103,108,101,115,41,0,91,86,65,79,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,98,117,102,102,101,114,115,32,86,65,79,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,113,117,97,100,115,41,0,91,86,66,79,32,73,68,32,37,105,93,91,86,66,79,32,73,68,32,37,105,93,91,86,66,79,32,73,68,32,37,105,93,91,86,66,79,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,98,117,102,102,101,114,115,32,86,66,79,115,32,105,110,105,116,105,97,108,105,122,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,113,117,97,100,115,41,0,35,118,101,114,115,105,111,110,32,49,48,48,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,97,116,116,114,105,98,117,116,101,32,118,101,99,51,32,118,101,114,116,101,120,80,111,115,105,116,105,111,110,59,32,32,32,32,32,10,97,116,116,114,105,98,117,116,101,32,118,101,99,50,32,118,101,114,116,101,120,84,101,120,67,111,111,114,100,59,32,32,32,32,32,10,97,116,116,114,105,98,117,116,101,32,118,101,99,52,32,118,101,114,116,101,120,67,111,108,111,114,59,32,32,32,32,32,32,32,32,10,118,97,114,121,105,110,103,32,118,101,99,50,32,102,114,97,103,84,101,120,67,111,111,114,100,59,32,32,32,32,32,32,32,32,32,10,118,97,114,121,105,110,103,32,118,101,99,52,32,102,114,97,103,67,111,108,111,114,59,32,32,32,32,32,32,32,32,32,32,32,32,10,117,110,105,102,111,114,109,32,109,97,116,52,32,109,118,112,77,97,116,114,105,120,59,32,32,32,32,32,32,32,32,32,32,32,32,10,118,111,105,100,32,109,97,105,110,40,41,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,123,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,32,32,32,32,102,114,97,103,84,101,120,67,111,111,114,100,32,61,32,118,101,114,116,101,120,84,101,120,67,111,111,114,100,59,32,10,32,32,32,32,102,114,97,103,67,111,108,111,114,32,61,32,118,101,114,116,101,120,67,111,108,111,114,59,32,32,32,32,32,32,32,10,32,32,32,32,103,108,95,80,111,115,105,116,105,111,110,32,61,32,109,118,112,77,97,116,114,105,120,42,118,101,99,52,40,118,101,114,116,101,120,80,111,115,105,116,105,111,110,44,32,49,46,48,41,59,32,10,125,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,0,35,118,101,114,115,105,111,110,32,49,48,48,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,112,114,101,99,105,115,105,111,110,32,109,101,100,105,117,109,112,32,102,108,111,97,116,59,32,32,32,32,32,32,32,32,32,32,32,10,118,97,114,121,105,110,103,32,118,101,99,50,32,102,114,97,103,84,101,120,67,111,111,114,100,59,32,32,32,32,32,32,32,32,32,10,118,97,114,121,105,110,103,32,118,101,99,52,32,102,114,97,103,67,111,108,111,114,59,32,32,32,32,32,32,32,32,32,32,32,32,10,117,110,105,102,111,114,109,32,115,97,109,112,108,101,114,50,68,32,116,101,120,116,117,114,101,48,59,32,32,32,32,32,32,32,32,10,117,110,105,102,111,114,109,32,118,101,99,52,32,99,111,108,68,105,102,102,117,115,101,59,32,32,32,32,32,32,32,32,32,32,32,10,118,111,105,100,32,109,97,105,110,40,41,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,123,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,32,32,32,32,118,101,99,52,32,116,101,120,101,108,67,111,108,111,114,32,61,32,116,101,120,116,117,114,101,50,68,40,116,101,120,116,117,114,101,48,44,32,102,114,97,103,84,101,120,67,111,111,114,100,41,59,32,10,32,32,32,32,103,108,95,70,114,97,103,67,111,108,111,114,32,61,32,116,101,120,101,108,67,111,108,111,114,42,99,111,108,68,105,102,102,117,115,101,42,102,114,97,103,67,111,108,111,114,59,32,32,32,32,32,32,10,125,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,10,0,91,83,72,68,82,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,115,104,97,100,101,114,32,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,91,83,72,68,82,32,73,68,32,37,105,93,32,68,101,102,97,117,108,116,32,115,104,97,100,101,114,32,99,111,117,108,100,32,110,111,116,32,98,101,32,108,111,97,100,101,100,0,118,101,114,116,101,120,80,111,115,105,116,105,111,110,0,118,101,114,116,101,120,84,101,120,67,111,111,114,100,0,118,101,114,116,101,120,84,101,120,67,111,111,114,100,50,0,118,101,114,116,101,120,78,111,114,109,97,108,0,118,101,114,116,101,120,84,97,110,103,101,110,116,0,118,101,114,116,101,120,67,111,108,111,114,0,109,118,112,77,97,116,114,105,120,0,99,111,108,68,105,102,102,117,115,101,0,99,111,108,65,109,98,105,101,110,116,0,99,111,108,83,112,101,99,117,108,97,114,0,116,101,120,116,117,114,101,48,0,116,101,120,116,117,114,101,49,0,116,101,120,116,117,114,101,50,0,91,86,83,72,68,82,32,73,68,32,37,105,93,32,70,97,105,108,101,100,32,116,111,32,99,111,109,112,105,108,101,32,118,101,114,116,101,120,32,115,104,97,100,101,114,46,46,46,0,37,115,0,91,86,83,72,68,82,32,73,68,32,37,105,93,32,86,101,114,116,101,120,32,115,104,97,100,101,114,32,99,111,109,112,105,108,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,91,70,83,72,68,82,32,73,68,32,37,105,93,32,70,97,105,108,101,100,32,116,111,32,99,111,109,112,105,108,101,32,102,114,97,103,109,101,110,116,32,115,104,97,100,101,114,46,46,46,0,91,70,83,72,68,82,32,73,68,32,37,105,93,32,70,114,97,103,109,101,110,116,32,115,104,97,100,101,114,32,99,111,109,112,105,108,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,91,83,72,68,82,32,73,68,32,37,105,93,32,70,97,105,108,101,100,32,116,111,32,108,105,110,107,32,115,104,97,100,101,114,32,112,114,111,103,114,97,109,46,46,46,0,91,83,72,68,82,32,73,68,32,37,105,93,32,83,104,97,100,101,114,32,112,114,111,103,114,97,109,32,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,68,79,87,78,83,67,65,76,73,78,71,58,32,82,101,113,117,105,114,101,100,32,115,99,114,101,101,110,32,115,105,122,101,32,40,37,105,120,37,105,41,32,105,115,32,98,105,103,103,101,114,32,116,104,97,110,32,100,105,115,112,108,97,121,32,115,105,122,101,32,40,37,105,120,37,105,41,0,68,111,119,110,115,99,97,108,101,32,109,97,116,114,105,120,32,103,101,110,101,114,97,116,101,100,44,32,99,111,110,116,101,110,116,32,119,105,108,108,32,98,101,32,114,101,110,100,101,114,101,100,32,97,116,58,32,37,105,32,120,32,37,105,0,85,80,83,67,65,76,73,78,71,58,32,82,101,113,117,105,114,101,100,32,115,99,114,101,101,110,32,115,105,122,101,58,32,37,105,32,120,32,37,105,32,45,62,32,68,105,115,112,108,97,121,32,115,105,122,101,58,32,37,105,32,120,32,37,105,0,91,71,76,70,87,51,32,69,114,114,111,114,93,32,67,111,100,101,58,32,37,105,32,68,101,99,114,105,112,116,105,111,110,58,32,37,115,0,73,78,70,79,58,32,0,87,65,82,78,73,78,71,58,32,0,87,105,110,100,111,119,32,99,108,111,115,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,91,84,69,88,32,73,68,32,37,105,93,32,85,110,108,111,97,100,101,100,32,116,101,120,116,117,114,101,32,100,97,116,97,32,40,98,97,115,101,32,119,104,105,116,101,32,116,101,120,116,117,114,101,41,32,102,114,111,109,32,86,82,65,77,0,91,84,69,88,32,73,68,32,37,105,93,32,85,110,108,111,97,100,101,100,32,116,101,120,116,117,114,101,32,100,97,116,97,32,102,114,111,109,32,86,82,65,77,32,40,71,80,85,41,0,83,116,97,99,107,32,66,117,102,102,101,114,32,79,118,101,114,102,108,111,119,32,40,77,65,88,32,37,105,32,77,97,116,114,105,120,41,0,68,101,118,105,99,101,32,99,111,111,114,100,105,110,97,116,101,115,58,32,40,37,102,44,32,37,102,44,32,37,102,41,0,77,65,88,95,76,73,78,69,83,95,66,65,84,67,72,32,111,118,101,114,102,108,111,119,0,77,65,88,95,84,82,73,65,78,71,76,69,83,95,66,65,84,67,72,32,111,118,101,114,102,108,111,119,0,77,65,88,95,81,85,65,68,83,95,66,65,84,67,72,32,111,118,101,114,102,108,111,119,0,91,86,65,79,32,73,68,32,37,105,93,32,85,110,108,111,97,100,101,100,32,109,111,100,101,108,32,100,97,116,97,32,102,114,111,109,32,86,82,65,77,32,40,71,80,85,41,0,91,86,66,79,32,73,68,32,37,105,93,32,85,110,108,111,97,100,101,100,32,109,111,100,101,108,32,118,101,114,116,101,120,32,100,97,116,97,32,102,114,111,109,32,86,82,65,77,32,40,71,80,85,41,0,91,86,65,79,32,73,68,32,37,105,93,32,77,101,115,104,32,117,112,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,116,111,32,86,82,65,77,32,40,71,80,85,41,0,77,101,115,104,32,99,111,117,108,100,32,110,111,116,32,98,101,32,117,112,108,111,97,100,101,100,32,116,111,32,86,82,65,77,32,40,71,80,85,41,0,91,86,66,79,115,93,32,77,101,115,104,32,117,112,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,116,111,32,86,82,65,77,32,40,71,80,85,41,0,109,111,100,101,108,77,97,116,114,105,120,0,118,105,101,119,68,105,114,0,103,108,111,115,115,105,110,101,115,115,0,117,115,101,78,111,114,109,97,108,0,117,115,101,83,112,101,99,117,108,97,114,0,114,105,46,98,105,116,115,95,112,101,114,95,99,104,97,110,110,101,108,32,61,61,32,49,54,0,46,47,101,120,116,101,114,110,97,108,47,115,116,98,95,105,109,97,103,101,46,104,0,115,116,98,105,95,95,108,111,97,100,95,97,110,100,95,112,111,115,116,112,114,111,99,101,115,115,95,56,98,105,116,0,111,117,116,111,102,109,101,109,0,117,110,107,110,111,119,110,32,105,109,97,103,101,32,116,121,112,101,0,98,97,100,32,114,101,113,95,99,111,109,112,0,114,101,113,95,99,111,109,112,32,62,61,32,49,32,38,38,32,114,101,113,95,99,111,109,112,32,60,61,32,52,0,115,116,98,105,95,95,99,111,110,118,101,114,116,95,102,111,114,109,97,116,49,54,0,48,0,115,116,98,105,95,95,99,111,110,118,101,114,116,95,102,111,114,109,97,116,0,109,117,108,116,105,112,108,101,32,73,72,68,82,0,98,97,100,32,73,72,68,82,32,108,101,110,0,116,111,111,32,108,97,114,103,101,0,49,47,50,47,52,47,56,47,49,54,45,98,105,116,32,111,110,108,121,0,98,97,100,32,99,116,121,112,101,0,98,97,100,32,99,111,109,112,32,109,101,116,104,111,100,0,98,97,100,32,102,105,108,116,101,114,32,109,101,116,104,111,100,0,98,97,100,32,105,110,116,101,114,108,97,99,101,32,109,101,116,104,111,100,0,48,45,112,105,120,101,108,32,105,109,97,103,101,0,102,105,114,115,116,32,110,111,116,32,73,72,68,82,0,105,110,118,97,108,105,100,32,80,76,84,69,0,116,82,78,83,32,97,102,116,101,114,32,73,68,65,84,0,116,82,78,83,32,98,101,102,111,114,101,32,80,76,84,69,0,98,97,100,32,116,82,78,83,32,108,101,110,0,116,82,78,83,32,119,105,116,104,32,97,108,112,104,97,0,0,255], "i8", ALLOC_NONE, Runtime.GLOBAL_BASE);
  1563. /* memory initializer */ allocate([85,0,17,0,0,0,1,110,111,32,80,76,84,69,0,111,117,116,111,102,100,97,116,97,0,110,111,32,73,68,65,84,0,88,88,88,88,32,80,78,71,32,99,104,117,110,107,32,110,111,116,32,107,110,111,119,110,0,115,45,62,105,109,103,95,111,117,116,95,110,32,61,61,32,52,0,115,116,98,105,95,95,100,101,95,105,112,104,111,110,101,0,111,117,116,95,110,32,61,61,32,50,32,124,124,32,111,117,116,95,110,32,61,61,32,52,0,115,116,98,105,95,95,99,111,109,112,117,116,101,95,116,114,97,110,115,112,97,114,101,110,99,121,0,115,116,98,105,95,95,99,111,109,112,117,116,101,95,116,114,97,110,115,112,97,114,101,110,99,121,49,54,0,111,117,116,95,110,32,61,61,32,115,45,62,105,109,103,95,110,32,124,124,32,111,117,116,95,110,32,61,61,32,115,45,62,105,109,103,95,110,43,49,0,115,116,98,105,95,95,99,114,101,97,116,101,95,112,110,103,95,105,109,97,103,101,95,114,97,119,0,110,111,116,32,101,110,111,117,103,104,32,112,105,120,101,108,115,0,105,109,103,95,119,105,100,116,104,95,98,121,116,101,115,32,60,61,32,120,0,0,1,0,5,6,105,109,103,95,110,43,49,32,61,61,32,111,117,116,95,110,0,105,110,118,97,108,105,100,32,102,105,108,116,101,114,0,105,109,103,95,110,32,61,61,32,51,0,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,98,97,100,32,104,117,102,102,109,97,110,32,99,111,100,101,0,98,97,100,32,100,105,115,116,0,111,117,116,112,117,116,32,98,117,102,102,101,114,32,108,105,109,105,116,0,122,45,62,115,105,122,101,91,98,93,32,61,61,32,115,0,115,116,98,105,95,95,122,104,117,102,102,109,97,110,95,100,101,99,111,100,101,95,115,108,111,119,112,97,116,104,0,98,105,116,115,32,60,61,32,49,54,0,115,116,98,105,95,95,98,105,116,95,114,101,118,101,114,115,101,0,122,45,62,99,111,100,101,95,98,117,102,102,101,114,32,60,32,40,49,85,32,60,60,32,122,45,62,110,117,109,95,98,105,116,115,41,0,115,116,98,105,95,95,102,105,108,108,95,98,105,116,115,0,98,97,100,32,99,111,100,101,108,101,110,103,116,104,115,0,99,32,61,61,32,49,56,0,115,116,98,105,95,95,99,111,109,112,117,116,101,95,104,117,102,102,109,97,110,95,99,111,100,101,115,0,98,97,100,32,115,105,122,101,115,0,97,45,62,110,117,109,95,98,105,116,115,32,61,61,32,48,0,115,116,98,105,95,95,112,97,114,115,101,95,117,110,99,111,109,112,114,101,115,115,101,100,95,98,108,111,99,107,0,122,108,105,98,32,99,111,114,114,117,112,116,0,114,101,97,100,32,112,97,115,116,32,98,117,102,102,101,114,0,98,97,100,32,122,108,105,98,32,104,101,97,100,101,114,0,110,111,32,112,114,101,115,101,116,32,100,105,99,116,0,98,97,100,32,99,111,109,112,114,101,115,115,105,111,110,0,98,97,100,32,112,110,103,32,115,105,103,0,46,114,114,101,115,0,91,37,115,93,32,82,101,115,111,117,114,99,101,32,102,105,108,101,32,100,111,101,115,32,110,111,116,32,99,111,110,116,97,105,110,32,105,109,97,103,101,32,100,97,116,97,0,46,112,110,103,0,91,37,115,93,32,73,109,97,103,101,32,102,105,108,101,102,111,114,109,97,116,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,91,37,115,93,32,73,109,97,103,101,32,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,40,37,105,120,37,105,41,0,91,37,115,93,32,73,109,97,103,101,32,99,111,117,108,100,32,110,111,116,32,98,101,32,108,111,97,100,101,100,0,73,109,97,103,101,32,102,111,114,109,97,116,32,110,111,116,32,114,101,99,111,103,110,105,122,101,100,0,114,98,0,91,37,115,93,32,114,82,69,83,32,114,97,121,108,105,98,32,114,101,115,111,117,114,99,101,32,102,105,108,101,32,99,111,117,108,100,32,110,111,116,32,98,101,32,111,112,101,110,101,100,0,91,37,115,93,32,84,104,105,115,32,105,115,32,110,111,116,32,97,32,118,97,108,105,100,32,114,97,121,108,105,98,32,114,101,115,111,117,114,99,101,32,102,105,108,101,0,91,37,115,93,91,73,68,32,37,105,93,32,82,101,115,111,117,114,99,101,32,100,97,116,97,32,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,0,91,37,115,93,91,73,68,32,37,105,93,32,82,101,113,117,101,115,116,101,100,32,114,101,115,111,117,114,99,101,32,99,111,117,108,100,32,110,111,116,32,98,101,32,102,111,117,110,100,0,79,117,116,32,111,102,32,109,101,109,111,114,121,32,119,104,105,108,101,32,100,101,99,111,109,112,114,101,115,115,105,110,103,32,100,97,116,97,0,68,97,116,97,32,100,101,99,111,109,112,114,101,115,115,105,111,110,32,102,97,105,108,101,100,0,69,120,112,101,99,116,101,100,32,117,110,99,111,109,112,114,101,115,115,101,100,32,115,105,122,101,32,100,111,32,110,111,116,32,109,97,116,99,104,44,32,100,97,116,97,32,109,97,121,32,98,101,32,99,111,114,114,117,112,116,101,100,0,32,45,45,32,69,120,112,101,99,116,101,100,32,117,110,99,111,109,112,114,101,115,115,101,100,32,115,105,122,101,58,32,37,105,0,32,45,45,32,82,101,116,117,114,110,101,100,32,117,110,99,111,109,112,114,101,115,115,101,100,32,115,105,122,101,58,32,37,105,0,68,97,116,97,32,100,101,99,111,109,112,114,101,115,115,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,102,114,111,109,32,37,117,32,98,121,116,101,115,32,116,111,32,37,117,32,98,121,116,101,115,0,5,5,4,0,16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15,2,3,7,0,3,3,11,0,84,101,120,116,117,114,101,32,99,111,117,108,100,32,110,111,116,32,98,101,32,99,114,101,97,116,101,100,0,37,50,105,32,70,80,83,0,46,111,98,106,0,77,101,115,104,32,99,111,117,108,100,32,110,111,116,32,98,101,32,108,111,97,100,101,100,0,114,116,0,91,37,115,93,32,79,66,74,32,102,105,108,101,32,99,111,117,108,100,32,110,111,116,32,98,101,32,111,112,101,110,101,100,0,37,99,0,91,37,115,93,32,77,111,100,101,108,32,110,117,109,32,118,101,114,116,105,99,101,115,58,32,37,105,0,91,37,115,93,32,77,111,100,101,108,32,110,117,109,32,116,101,120,99,111,111,114,100,115,58,32,37,105,0,91,37,115,93,32,77,111,100,101,108,32,110,117,109,32,110,111,114,109,97,108,115,58,32,37,105,0,91,37,115,93,32,77,111,100,101,108,32,110,117,109,32,116,114,105,97,110,103,108,101,115,58,32,37,105,0,37,102,32,37,102,37,42,91,94,10,93,115,10,0,37,102,32,37,102,32,37,102,0,91,37,115,93,32,78,111,32,110,111,114,109,97,108,115,32,100,97,116,97,32,111,110,32,79,66,74,44,32,110,111,114,109,97,108,115,32,119,105,108,108,32,98,101,32,103,101,110,101,114,97,116,101,100,32,102,114,111,109,32,102,97,99,101,115,32,100,97,116,97,0,37,105,32,37,105,32,37,105,0,37,105,47,37,105,32,37,105,47,37,105,32,37,105,47,37,105,0,37,105,47,47,37,105,32,37,105,47,47,37,105,32,37,105,47,47,37,105,0,37,105,47,37,105,47,37,105,32,37,105,47,37,105,47,37,105,32,37,105,47,37,105,47,37,105,0,91,37,115,93,32,77,111,100,101,108,32,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,32,105,110,32,82,65,77,32,40,67,80,85,41,0,85,110,108,111,97,100,101,100,32,109,111,100,101,108,32,100,97,116,97,32,40,109,101,115,104,32,97,110,100,32,109,97,116,101,114,105,97,108,41,32,102,114,111,109,32,82,65,77,32,97,110,100,32,86,82,65,77,0,69,88,84,0,65,82,66,0,79,69,83,0,65,78,71,76,69,0,103,108,67,114,101,97,116,101,80,114,111,103,114,97,109,79,98,106,101,99,116,0,103,108,67,114,101,97,116,101,80,114,111,103,114,97,109,0,103,108,85,115,101,80,114,111,103,114,97,109,79,98,106,101,99,116,0,103,108,85,115,101,80,114,111,103,114,97,109,0,103,108,67,114,101,97,116,101,83,104,97,100,101,114,79,98,106,101,99,116,0,103,108,67,114,101,97,116,101,83,104,97,100,101,114,0,103,108,65,116,116,97,99,104,79,98,106,101,99,116,0,103,108,65,116,116,97,99,104,83,104,97,100,101,114,0,103,108,68,101,116,97,99,104,79,98,106,101,99,116,0,103,108,68,101,116,97,99,104,83,104,97,100,101,114,0,103,108,80,105,120,101,108,83,116,111,114,101,105,0,103,108,71,101,116,83,116,114,105,110,103,0,103,108,71,101,116,73,110,116,101,103,101,114,118,0,103,108,71,101,116,70,108,111,97,116,118,0,103,108,71,101,116,66,111,111,108,101,97,110,118,0,103,108,71,101,110,84,101,120,116,117,114,101,115,0,103,108,68,101,108,101,116,101,84,101,120,116,117,114,101,115,0,103,108,67,111,109,112,114,101,115,115,101,100,84,101,120,73,109,97,103,101,50,68,0,103,108,67,111,109,112,114,101,115,115,101,100,84,101,120,83,117,98,73,109,97,103,101,50,68,0,103,108,84,101,120,73,109,97,103,101,50,68,0,103,108,84,101,120,83,117,98,73,109,97,103,101,50,68,0,103,108,82,101,97,100,80,105,120,101,108,115,0,103,108,66,105,110,100,84,101,120,116,117,114,101,0,103,108,71,101,116,84,101,120,80,97,114,97,109,101,116,101,114,102,118,0,103,108,71,101,116,84,101,120,80,97,114,97,109,101,116,101,114,105,118,0,103,108,84,101,120,80,97,114,97,109,101,116,101,114,102,118,0,103,108,84,101,120,80,97,114,97,109,101,116,101,114,105,118,0,103,108,73,115,84,101,120,116,117,114,101,0,103,108,71,101,110,66,117,102,102,101,114,115,0,103,108,68,101,108,101,116,101,66,117,102,102,101,114,115,0,103,108,71,101,116,66,117,102,102,101,114,80,97,114,97,109,101,116,101,114,105,118,0,103,108,66,117,102,102,101,114,68,97,116,97,0,103,108,66,117,102,102,101,114,83,117,98,68,97,116,97,0,103,108,73,115,66,117,102,102,101,114,0,103,108,71,101,110,82,101,110,100,101,114,98,117,102,102,101,114,115,0,103,108,68,101,108,101,116,101,82,101,110,100,101,114,98,117,102,102,101,114,115,0,103,108,66,105,110,100,82,101,110,100,101,114,98,117,102,102,101,114,0,103,108,71,101,116,82,101,110,100,101,114,98,117,102,102,101,114,80,97,114,97,109,101,116,101,114,105,118,0,103,108,73,115,82,101,110,100,101,114,98,117,102,102,101,114,0,103,108,71,101,116,85,110,105,102,111,114,109,102,118,0,103,108,71,101,116,85,110,105,102,111,114,109,105,118,0,103,108,71,101,116,85,110,105,102,111,114,109,76,111,99,97,116,105,111,110,0,103,108,71,101,116,86,101,114,116,101,120,65,116,116,114,105,98,102,118,0,103,108,71,101,116,86,101,114,116,101,120,65,116,116,114,105,98,105,118,0,103,108,71,101,116,86,101,114,116,101,120,65,116,116,114,105,98,80,111,105,110,116,101,114,118,0,103,108,71,101,116,65,99,116,105,118,101,85,110,105,102,111,114,109,0,103,108,85,110,105,102,111,114,109,49,102,0,103,108,85,110,105,102,111,114,109,50,102,0,103,108,85,110,105,102,111,114,109,51,102,0,103,108,85,110,105,102,111,114,109,52,102,0,103,108,85,110,105,102,111,114,109,49,105,0,103,108,85,110,105,102,111,114,109,50,105,0,103,108,85,110,105,102,111,114,109,51,105,0,103,108,85,110,105,102,111,114,109,52,105,0,103,108,85,110,105,102,111,114,109,49,105,118,0,103,108,85,110,105,102,111,114,109,50,105,118,0,103,108,85,110,105,102,111,114,109,51,105,118,0,103,108,85,110,105,102,111,114,109,52,105,118,0,103,108,85,110,105,102,111,114,109,49,102,118,0,103,108,85,110,105,102,111,114,109,50,102,118,0,103,108,85,110,105,102,111,114,109,51,102,118,0,103,108,85,110,105,102,111,114,109,52,102,118,0,103,108,85,110,105,102,111,114,109,77,97,116,114,105,120,50,102,118,0,103,108,85,110,105,102,111,114,109,77,97,116,114,105,120,51,102,118,0,103,108,85,110,105,102,111,114,109,77,97,116,114,105,120,52,102,118,0,103,108,66,105,110,100,66,117,102,102,101,114,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,49,102,118,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,50,102,118,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,51,102,118,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,52,102,118,0,103,108,71,101,116,65,116,116,114,105,98,76,111,99,97,116,105,111,110,0,103,108,71,101,116,65,99,116,105,118,101,65,116,116,114,105,98,0,103,108,68,101,108,101,116,101,83,104,97,100,101,114,0,103,108,71,101,116,65,116,116,97,99,104,101,100,83,104,97,100,101,114,115,0,103,108,83,104,97,100,101,114,83,111,117,114,99,101,0,103,108,71,101,116,83,104,97,100,101,114,83,111,117,114,99,101,0,103,108,67,111,109,112,105,108,101,83,104,97,100,101,114,0,103,108,71,101,116,83,104,97,100,101,114,73,110,102,111,76,111,103,0,103,108,71,101,116,83,104,97,100,101,114,105,118,0,103,108,71,101,116,80,114,111,103,114,97,109,105,118,0,103,108,73,115,83,104,97,100,101,114,0,103,108,68,101,108,101,116,101,80,114,111,103,114,97,109,0,103,108,71,101,116,83,104,97,100,101,114,80,114,101,99,105,115,105,111,110,70,111,114,109,97,116,0,103,108,76,105,110,107,80,114,111,103,114,97,109,0,103,108,71,101,116,80,114,111,103,114,97,109,73,110,102,111,76,111,103,0,103,108,86,97,108,105,100,97,116,101,80,114,111,103,114,97,109,0,103,108,73,115,80,114,111,103,114,97,109,0,103,108,66,105,110,100,65,116,116,114,105,98,76,111,99,97,116,105,111,110,0,103,108,66,105,110,100,70,114,97,109,101,98,117,102,102,101,114,0,103,108,71,101,110,70,114,97,109,101,98,117,102,102,101,114,115,0,103,108,68,101,108,101,116,101,70,114,97,109,101,98,117,102,102,101,114,115,0,103,108,70,114,97,109,101,98,117,102,102,101,114,82,101,110,100,101,114,98,117,102,102,101,114,0,103,108,70,114,97,109,101,98,117,102,102,101,114,84,101,120,116,117,114,101,50,68,0,103,108,71,101,116,70,114,97,109,101,98,117,102,102,101,114,65,116,116,97,99,104,109,101,110,116,80,97,114,97,109,101,116,101,114,105,118,0,103,108,73,115,70,114,97,109,101,98,117,102,102,101,114,0,103,108,68,101,108,101,116,101,79,98,106,101,99,116,0,103,108,71,101,116,79,98,106,101,99,116,80,97,114,97,109,101,116,101,114,105,118,0,103,108,71,101,116,73,110,102,111,76,111,103,0,103,108,66,105,110,100,80,114,111,103,114,97,109,0,103,108,71,101,116,80,111,105,110,116,101,114,118,0,103,108,68,114,97,119,82,97,110,103,101,69,108,101,109,101,110,116,115,0,103,108,69,110,97,98,108,101,67,108,105,101,110,116,83,116,97,116,101,0,103,108,86,101,114,116,101,120,80,111,105,110,116,101,114,0,103,108,84,101,120,67,111,111,114,100,80,111,105,110,116,101,114,0,103,108,78,111,114,109,97,108,80,111,105,110,116,101,114,0,103,108,67,111,108,111,114,80,111,105,110,116,101,114,0,103,108,67,108,105,101,110,116,65,99,116,105,118,101,84,101,120,116,117,114,101,0,103,108,71,101,110,86,101,114,116,101,120,65,114,114,97,121,115,0,103,108,68,101,108,101,116,101,86,101,114,116,101,120,65,114,114,97,121,115,0,103,108,66,105,110,100,86,101,114,116,101,120,65,114,114,97,121,0,103,108,77,97,116,114,105,120,77,111,100,101,0,103,108,76,111,97,100,73,100,101,110,116,105,116,121,0,103,108,76,111,97,100,77,97,116,114,105,120,102,0,103,108,70,114,117,115,116,117,109,0,103,108,82,111,116,97,116,101,102,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,80,111,105,110,116,101,114,0,103,108,69,110,97,98,108,101,86,101,114,116,101,120,65,116,116,114,105,98,65,114,114,97,121,0,103,108,68,105,115,97,98,108,101,86,101,114,116,101,120,65,116,116,114,105,98,65,114,114,97,121,0,103,108,68,114,97,119,65,114,114,97,121,115,0,103,108,68,114,97,119,69,108,101,109,101,110,116,115,0,103,108,83,104,97,100,101,114,66,105,110,97,114,121,0,103,108,82,101,108,101,97,115,101,83,104,97,100,101,114,67,111,109,112,105,108,101,114,0,103,108,71,101,116,69,114,114,111,114,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,68,105,118,105,115,111,114,0,103,108,68,114,97,119,65,114,114,97,121,115,73,110,115,116,97,110,99,101,100,0,103,108,68,114,97,119,69,108,101,109,101,110,116,115,73,110,115,116,97,110,99,101,100,0,103,108,70,105,110,105,115,104,0,103,108,70,108,117,115,104,0,103,108,67,108,101,97,114,68,101,112,116,104,0,103,108,67,108,101,97,114,68,101,112,116,104,102,0,103,108,68,101,112,116,104,70,117,110,99,0,103,108,69,110,97,98,108,101,0,103,108,68,105,115,97,98,108,101,0,103,108,70,114,111,110,116,70,97,99,101,0,103,108,67,117,108,108,70,97,99,101,0,103,108,67,108,101,97,114,0,103,108,76,105,110,101,87,105,100,116,104,0,103,108,67,108,101,97,114,83,116,101,110,99,105,108,0,103,108,68,101,112,116,104,77,97,115,107,0,103,108,83,116,101,110,99,105,108,77,97,115,107,0,103,108,67,104,101,99,107,70,114,97,109,101,98,117,102,102,101,114,83,116,97,116,117,115,0,103,108,71,101,110,101,114,97,116,101,77,105,112,109,97,112,0,103,108,65,99,116,105,118,101,84,101,120,116,117,114,101,0,103,108,66,108,101,110,100,69,113,117,97,116,105,111,110,0,103,108,73,115,69,110,97,98,108,101,100,0,103,108,66,108,101,110,100,70,117,110,99,0,103,108,66,108,101,110,100,69,113,117,97,116,105,111,110,83,101,112,97,114,97,116,101,0,103,108,68,101,112,116,104,82,97,110,103,101,0,103,108,68,101,112,116,104,82,97,110,103,101,102,0,103,108,83,116,101,110,99,105,108,77,97,115,107,83,101,112,97,114,97,116,101,0,103,108,72,105,110,116,0,103,108,80,111,108,121,103,111,110,79,102,102,115,101,116,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,49,102,0,103,108,83,97,109,112,108,101,67,111,118,101,114,97,103,101,0,103,108,84,101,120,80,97,114,97,109,101,116,101,114,105,0,103,108,84,101,120,80,97,114,97,109,101,116,101,114,102,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,50,102,0,103,108,83,116,101,110,99,105,108,70,117,110,99,0,103,108,83,116,101,110,99,105,108,79,112,0,103,108,86,105,101,119,112,111,114,116,0,103,108,67,108,101,97,114,67,111,108,111,114,0,103,108,83,99,105,115,115,111,114,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,51,102,0,103,108,67,111,108,111,114,77,97,115,107,0,103,108,82,101,110,100,101,114,98,117,102,102,101,114,83,116,111,114,97,103,101,0,103,108,66,108,101,110,100,70,117,110,99,83,101,112,97,114,97,116,101,0,103,108,66,108,101,110,100,67,111,108,111,114,0,103,108,83,116,101,110,99,105,108,70,117,110,99,83,101,112,97,114,97,116,101,0,103,108,83,116,101,110,99,105,108,79,112,83,101,112,97,114,97,116,101,0,103,108,86,101,114,116,101,120,65,116,116,114,105,98,52,102,0,103,108,67,111,112,121,84,101,120,73,109,97,103,101,50,68,0,103,108,67,111,112,121,84,101,120,83,117,98,73,109,97,103,101,50,68,0,103,108,68,114,97,119,66,117,102,102,101,114,115,0,123,32,77,111,100,117,108,101,46,112,114,105,110,116,69,114,114,40,39,98,97,100,32,110,97,109,101,32,105,110,32,103,101,116,80,114,111,99,65,100,100,114,101,115,115,58,32,39,32,43,32,91,80,111,105,110,116,101,114,95,115,116,114,105,110,103,105,102,121,40,36,48,41,44,32,80,111,105,110,116,101,114,95,115,116,114,105,110,103,105,102,121,40,36,49,41,93,41,59,32,125,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,255,255,255,255,255,255,255,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,255,255,255,255,255,255,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,1,2,4,7,3,6,5,0,17,0,10,0,17,17,17,0,0,0,0,5,0,0,0,0,0,0,9,0,0,0,0,11,0,0,0,0,0,0,0,0,17,0,15,10,17,17,17,3,10,7,0,1,19,9,11,11,0,0,9,6,11,0,0,11,0,6,17,0,0,0,17,17,17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,17,0,10,10,17,17,17,0,10,0,0,2,0,9,11,0,0,0,9,0,11,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,12,0,0,0,0,9,12,0,0,0,0,0,12,0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,14,0,0,0,0,0,0,0,0,0,0,0,13,0,0,0,4,13,0,0,0,0,9,14,0,0,0,0,0,14,0,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,0,0,0,0,15,0,0,0,0,15,0,0,0,0,9,16,0,0,0,0,0,16,0,0,16,0,0,18,0,0,0,18,18,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,0,0,0,18,18,18,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,10,0,0,0,0,9,11,0,0,0,0,0,11,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,12,0,0,0,0,9,12,0,0,0,0,0,12,0,0,12,0,0,45,43,32,32,32,48,88,48,120,0,40,110,117,108,108,41,0,45,48,88,43,48,88,32,48,88,45,48,120,43,48,120,32,48,120,0,105,110,102,0,73,78,70,0,78,65,78,0,48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,46,0,84,33,34,25,13,1,2,3,17,75,28,12,16,4,11,29,18,30,39,104,110,111,112,113,98,32,5,6,15,19,20,21,26,8,22,7,40,36,23,24,9,10,14,27,31,37,35,131,130,125,38,42,43,60,61,62,63,67,71,74,77,88,89,90,91,92,93,94,95,96,97,99,100,101,102,103,105,106,107,108,114,115,116,121,122,123,124,0,73,108,108,101,103,97,108,32,98,121,116,101,32,115,101,113,117,101,110,99,101,0,68,111,109,97,105,110,32,101,114,114,111,114,0,82,101,115,117,108,116,32,110,111,116,32,114,101,112,114,101,115,101,110,116,97,98,108,101,0,78,111,116,32,97,32,116,116,121,0,80,101,114,109,105,115,115,105,111,110,32,100,101,110,105,101,100,0,79,112,101,114,97,116,105,111,110,32,110,111,116,32,112,101,114,109,105,116,116,101,100,0,78,111,32,115,117,99,104,32,102,105,108,101,32,111,114,32,100,105,114,101,99,116,111,114,121,0,78,111,32,115,117,99,104,32,112,114,111,99,101,115,115,0,70,105,108,101,32,101,120,105,115,116,115,0,86,97,108,117,101,32,116,111,111,32,108,97,114,103,101,32,102,111,114,32,100,97,116,97,32,116,121,112,101,0,78,111,32,115,112,97,99,101,32,108,101,102,116,32,111,110,32,100,101,118,105,99,101,0,79,117,116,32,111,102,32,109,101,109,111,114,121,0,82,101,115,111,117,114,99,101,32,98,117,115,121,0,73,110,116,101,114,114,117,112,116,101,100,32,115,121,115,116,101,109,32,99,97,108,108,0,82,101,115,111,117,114,99,101,32,116,101,109,112,111,114,97,114,105,108,121,32,117,110,97,118,97,105,108,97,98,108,101,0,73,110,118,97,108,105,100,32,115,101,101,107,0,67,114,111,115,115,45,100,101,118,105,99,101,32,108,105,110,107,0,82,101,97,100,45,111,110,108,121,32,102,105,108,101,32,115,121,115,116,101,109,0,68,105,114,101,99,116,111,114,121,32,110,111,116,32,101,109,112,116,121,0,67,111,110,110,101,99,116,105,111,110,32,114,101,115,101,116,32,98,121,32,112,101,101,114,0,79,112,101,114,97,116,105,111,110,32,116,105,109,101,100,32,111,117,116,0,67,111,110,110,101,99,116,105,111,110,32,114,101,102,117,115,101,100,0,72,111,115,116,32,105,115,32,100,111,119,110,0,72,111,115,116,32,105,115,32,117,110,114,101,97,99,104,97,98,108,101,0,65,100,100,114,101,115,115,32,105,110,32,117,115,101,0,66,114,111,107,101,110,32,112,105,112,101,0,73,47,79,32,101,114,114,111,114,0,78,111,32,115,117,99,104,32,100,101,118,105,99,101,32,111,114,32,97,100,100,114,101,115,115,0,66,108,111,99,107,32,100,101,118,105,99,101,32,114,101,113,117,105,114,101,100,0,78,111,32,115,117,99,104,32,100,101,118,105,99,101,0,78,111,116,32,97,32,100,105,114,101,99,116,111,114,121,0,73,115,32,97,32,100,105,114,101,99,116,111,114,121,0,84,101,120,116,32,102,105,108,101,32,98,117,115,121,0,69,120,101,99,32,102,111,114,109,97,116,32,101,114,114,111,114,0,73,110,118,97,108,105,100,32,97,114,103,117,109,101,110,116,0,65,114,103,117,109,101,110,116,32,108,105,115,116,32,116,111,111,32,108,111,110,103,0,83,121,109,98,111,108,105,99,32,108,105,110,107,32,108,111,111,112,0,70,105,108,101,110,97,109,101,32,116,111,111,32,108,111,110,103,0,84,111,111,32,109,97,110,121,32,111,112,101,110,32,102,105,108,101,115,32,105,110,32,115,121,115,116,101,109,0,78,111,32,102,105,108,101,32,100,101,115,99,114,105,112,116,111,114,115,32,97,118,97,105,108,97,98,108,101,0,66,97,100,32,102,105,108,101,32,100,101,115,99,114,105,112,116,111,114,0,78,111,32,99,104,105,108,100,32,112,114,111,99,101,115,115,0,66,97,100,32,97,100,100,114,101,115,115,0,70,105,108,101,32,116,111,111,32,108,97,114,103,101,0,84,111,111,32,109,97,110,121,32,108,105,110,107,115,0,78,111,32,108,111,99,107,115,32,97,118,97,105,108,97,98,108,101,0,82,101,115,111,117,114,99,101,32,100,101,97,100,108,111,99,107,32,119,111,117,108,100,32,111,99,99,117,114,0,83,116,97,116,101,32,110,111,116,32,114,101,99,111,118,101,114,97,98,108,101,0,80,114,101,118,105,111,117,115,32,111,119,110,101,114,32,100,105,101,100,0,79,112,101,114,97,116,105,111,110,32,99,97,110,99,101,108,101,100,0,70,117,110,99,116,105,111,110,32,110,111,116,32,105,109,112,108,101,109,101,110,116,101,100,0,78,111,32,109,101,115,115,97,103,101,32,111,102,32,100,101,115,105,114,101,100,32,116,121,112,101,0,73,100,101,110,116,105,102,105,101,114,32,114,101,109,111,118,101,100,0,68,101,118,105,99,101,32,110,111,116,32,97,32,115,116,114,101,97,109,0,78,111,32,100,97,116,97,32,97,118,97,105,108,97,98,108,101,0,68,101,118,105,99,101,32,116,105,109,101,111,117,116,0,79,117,116,32,111,102,32,115,116,114,101,97,109,115,32,114,101,115,111,117,114,99,101,115,0,76,105,110,107,32,104,97,115,32,98,101,101,110,32,115,101,118,101,114,101,100,0,80,114,111,116,111,99,111,108,32,101,114,114,111,114,0,66,97,100,32,109,101,115,115,97,103,101,0,70,105,108,101,32,100,101,115,99,114,105,112,116,111,114,32,105,110,32,98,97,100,32,115,116,97,116,101,0,78,111,116,32,97,32,115,111,99,107,101,116,0,68,101,115,116,105,110,97,116,105,111,110,32,97,100,100,114,101,115,115,32,114,101,113,117,105,114,101,100,0,77,101,115,115,97,103,101,32,116,111,111,32,108,97,114,103,101,0,80,114,111,116,111,99,111,108,32,119,114,111,110,103,32,116,121,112,101,32,102,111,114,32,115,111,99,107,101,116,0,80,114,111,116,111,99,111,108,32,110,111,116,32,97,118,97,105,108,97,98,108,101,0,80,114,111,116,111,99,111,108,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,83,111,99,107,101,116,32,116,121,112,101,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,78,111,116,32,115,117,112,112,111,114,116,101,100,0,80,114,111,116,111,99,111,108,32,102,97,109,105,108,121,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,65,100,100,114,101,115,115,32,102,97,109,105,108,121,32,110,111,116,32,115,117,112,112,111,114,116,101,100,32,98,121,32,112,114,111,116,111,99,111,108,0,65,100,100,114,101,115,115,32,110,111,116,32,97,118,97,105,108,97,98,108,101,0,78,101,116,119,111,114,107,32,105,115,32,100,111,119,110,0,78,101,116,119,111,114,107,32,117,110,114,101,97,99,104,97,98,108,101,0,67,111,110,110,101,99,116,105,111,110,32,114,101,115,101,116,32,98,121,32,110,101,116,119,111,114,107,0,67,111,110,110,101,99,116,105,111,110,32,97,98,111,114,116,101,100,0,78,111,32,98,117,102,102,101,114,32,115,112,97,99,101,32,97,118,97,105,108,97,98,108,101,0,83,111,99,107,101,116,32,105,115,32,99,111,110,110,101,99,116,101,100,0,83,111,99,107,101,116,32,110,111,116,32,99,111,110,110,101,99,116,101,100,0,67,97,110,110,111,116,32,115,101,110,100,32,97,102,116,101,114,32,115,111,99,107,101,116,32,115,104,117,116,100,111,119,110,0,79,112,101,114,97,116,105,111,110,32,97,108,114,101,97,100,121,32,105,110,32,112,114,111,103,114,101,115,115,0,79,112,101,114,97,116,105,111,110,32,105,110,32,112,114,111,103,114,101,115,115,0,83,116,97,108,101,32,102,105,108,101,32,104,97,110,100,108,101,0,82,101,109,111,116,101,32,73,47,79,32,101,114,114,111,114,0,81,117,111,116,97,32,101,120,99,101,101,100,101,100,0,78,111,32,109,101,100,105,117,109,32,102,111,117,110,100,0,87,114,111,110,103,32,109,101,100,105,117,109,32,116,121,112,101,0,78,111,32,101,114,114,111,114,32,105,110,102,111,114,109,97,116,105,111,110,0,0,105,110,102,105,110,105,116,121,0,110,97,110,0,114,119,97,0], "i8", ALLOC_NONE, Runtime.GLOBAL_BASE+10240);
  1564. /* no memory initializer */
  1565. var tempDoublePtr = STATICTOP; STATICTOP += 16;
  1566. assert(tempDoublePtr % 8 == 0);
  1567. function copyTempFloat(ptr) { // functions, because inlining this code increases code size too much
  1568. HEAP8[tempDoublePtr] = HEAP8[ptr];
  1569. HEAP8[tempDoublePtr+1] = HEAP8[ptr+1];
  1570. HEAP8[tempDoublePtr+2] = HEAP8[ptr+2];
  1571. HEAP8[tempDoublePtr+3] = HEAP8[ptr+3];
  1572. }
  1573. function copyTempDouble(ptr) {
  1574. HEAP8[tempDoublePtr] = HEAP8[ptr];
  1575. HEAP8[tempDoublePtr+1] = HEAP8[ptr+1];
  1576. HEAP8[tempDoublePtr+2] = HEAP8[ptr+2];
  1577. HEAP8[tempDoublePtr+3] = HEAP8[ptr+3];
  1578. HEAP8[tempDoublePtr+4] = HEAP8[ptr+4];
  1579. HEAP8[tempDoublePtr+5] = HEAP8[ptr+5];
  1580. HEAP8[tempDoublePtr+6] = HEAP8[ptr+6];
  1581. HEAP8[tempDoublePtr+7] = HEAP8[ptr+7];
  1582. }
  1583. // {{PRE_LIBRARY}}
  1584. var GL={counter:1,lastError:0,buffers:[],mappedBuffers:{},programs:[],framebuffers:[],renderbuffers:[],textures:[],uniforms:[],shaders:[],vaos:[],contexts:[],currentContext:null,offscreenCanvases:{},timerQueriesEXT:[],byteSizeByTypeRoot:5120,byteSizeByType:[1,1,2,2,4,4,4,2,3,4,8],programInfos:{},stringCache:{},tempFixedLengthArray:[],packAlignment:4,unpackAlignment:4,init:function () {
  1585. GL.miniTempBuffer = new Float32Array(GL.MINI_TEMP_BUFFER_SIZE);
  1586. for (var i = 0; i < GL.MINI_TEMP_BUFFER_SIZE; i++) {
  1587. GL.miniTempBufferViews[i] = GL.miniTempBuffer.subarray(0, i+1);
  1588. }
  1589. // For functions such as glDrawBuffers, glInvalidateFramebuffer and glInvalidateSubFramebuffer that need to pass a short array to the WebGL API,
  1590. // create a set of short fixed-length arrays to avoid having to generate any garbage when calling those functions.
  1591. for (var i = 0; i < 32; i++) {
  1592. GL.tempFixedLengthArray.push(new Array(i));
  1593. }
  1594. },recordError:function recordError(errorCode) {
  1595. if (!GL.lastError) {
  1596. GL.lastError = errorCode;
  1597. }
  1598. },getNewId:function (table) {
  1599. var ret = GL.counter++;
  1600. for (var i = table.length; i < ret; i++) {
  1601. table[i] = null;
  1602. }
  1603. return ret;
  1604. },MINI_TEMP_BUFFER_SIZE:256,miniTempBuffer:null,miniTempBufferViews:[0],getSource:function (shader, count, string, length) {
  1605. var source = '';
  1606. for (var i = 0; i < count; ++i) {
  1607. var frag;
  1608. if (length) {
  1609. var len = HEAP32[(((length)+(i*4))>>2)];
  1610. if (len < 0) {
  1611. frag = Pointer_stringify(HEAP32[(((string)+(i*4))>>2)]);
  1612. } else {
  1613. frag = Pointer_stringify(HEAP32[(((string)+(i*4))>>2)], len);
  1614. }
  1615. } else {
  1616. frag = Pointer_stringify(HEAP32[(((string)+(i*4))>>2)]);
  1617. }
  1618. source += frag;
  1619. }
  1620. return source;
  1621. },createContext:function (canvas, webGLContextAttributes) {
  1622. if (typeof webGLContextAttributes['majorVersion'] === 'undefined' && typeof webGLContextAttributes['minorVersion'] === 'undefined') {
  1623. webGLContextAttributes['majorVersion'] = 1;
  1624. webGLContextAttributes['minorVersion'] = 0;
  1625. }
  1626. var ctx;
  1627. var errorInfo = '?';
  1628. function onContextCreationError(event) {
  1629. errorInfo = event.statusMessage || errorInfo;
  1630. }
  1631. try {
  1632. canvas.addEventListener('webglcontextcreationerror', onContextCreationError, false);
  1633. try {
  1634. if (webGLContextAttributes['majorVersion'] == 1 && webGLContextAttributes['minorVersion'] == 0) {
  1635. ctx = canvas.getContext("webgl", webGLContextAttributes) || canvas.getContext("experimental-webgl", webGLContextAttributes);
  1636. } else if (webGLContextAttributes['majorVersion'] == 2 && webGLContextAttributes['minorVersion'] == 0) {
  1637. ctx = canvas.getContext("webgl2", webGLContextAttributes) || canvas.getContext("experimental-webgl2", webGLContextAttributes);
  1638. } else {
  1639. throw 'Unsupported WebGL context version ' + majorVersion + '.' + minorVersion + '!'
  1640. }
  1641. } finally {
  1642. canvas.removeEventListener('webglcontextcreationerror', onContextCreationError, false);
  1643. }
  1644. if (!ctx) throw ':(';
  1645. } catch (e) {
  1646. Module.print('Could not create canvas: ' + [errorInfo, e, JSON.stringify(webGLContextAttributes)]);
  1647. return 0;
  1648. }
  1649. // possible GL_DEBUG entry point: ctx = wrapDebugGL(ctx);
  1650. if (!ctx) return 0;
  1651. return GL.registerContext(ctx, webGLContextAttributes);
  1652. },registerContext:function (ctx, webGLContextAttributes) {
  1653. var handle = GL.getNewId(GL.contexts);
  1654. var context = {
  1655. handle: handle,
  1656. attributes: webGLContextAttributes,
  1657. version: webGLContextAttributes['majorVersion'],
  1658. GLctx: ctx
  1659. };
  1660. // Store the created context object so that we can access the context given a canvas without having to pass the parameters again.
  1661. if (ctx.canvas) ctx.canvas.GLctxObject = context;
  1662. GL.contexts[handle] = context;
  1663. if (typeof webGLContextAttributes['enableExtensionsByDefault'] === 'undefined' || webGLContextAttributes['enableExtensionsByDefault']) {
  1664. GL.initExtensions(context);
  1665. }
  1666. return handle;
  1667. },makeContextCurrent:function (contextHandle) {
  1668. var context = GL.contexts[contextHandle];
  1669. if (!context) return false;
  1670. GLctx = Module.ctx = context.GLctx; // Active WebGL context object.
  1671. GL.currentContext = context; // Active Emscripten GL layer context object.
  1672. return true;
  1673. },getContext:function (contextHandle) {
  1674. return GL.contexts[contextHandle];
  1675. },deleteContext:function (contextHandle) {
  1676. if (GL.currentContext === GL.contexts[contextHandle]) GL.currentContext = null;
  1677. if (typeof JSEvents === 'object') JSEvents.removeAllHandlersOnTarget(GL.contexts[contextHandle].GLctx.canvas); // Release all JS event handlers on the DOM element that the GL context is associated with since the context is now deleted.
  1678. if (GL.contexts[contextHandle] && GL.contexts[contextHandle].GLctx.canvas) GL.contexts[contextHandle].GLctx.canvas.GLctxObject = undefined; // Make sure the canvas object no longer refers to the context object so there are no GC surprises.
  1679. GL.contexts[contextHandle] = null;
  1680. },initExtensions:function (context) {
  1681. // If this function is called without a specific context object, init the extensions of the currently active context.
  1682. if (!context) context = GL.currentContext;
  1683. if (context.initExtensionsDone) return;
  1684. context.initExtensionsDone = true;
  1685. var GLctx = context.GLctx;
  1686. context.maxVertexAttribs = GLctx.getParameter(GLctx.MAX_VERTEX_ATTRIBS);
  1687. // Detect the presence of a few extensions manually, this GL interop layer itself will need to know if they exist.
  1688. if (context.version < 2) {
  1689. // Extension available from Firefox 26 and Google Chrome 30
  1690. var instancedArraysExt = GLctx.getExtension('ANGLE_instanced_arrays');
  1691. if (instancedArraysExt) {
  1692. GLctx['vertexAttribDivisor'] = function(index, divisor) { instancedArraysExt['vertexAttribDivisorANGLE'](index, divisor); };
  1693. GLctx['drawArraysInstanced'] = function(mode, first, count, primcount) { instancedArraysExt['drawArraysInstancedANGLE'](mode, first, count, primcount); };
  1694. GLctx['drawElementsInstanced'] = function(mode, count, type, indices, primcount) { instancedArraysExt['drawElementsInstancedANGLE'](mode, count, type, indices, primcount); };
  1695. }
  1696. // Extension available from Firefox 25 and WebKit
  1697. var vaoExt = GLctx.getExtension('OES_vertex_array_object');
  1698. if (vaoExt) {
  1699. GLctx['createVertexArray'] = function() { return vaoExt['createVertexArrayOES'](); };
  1700. GLctx['deleteVertexArray'] = function(vao) { vaoExt['deleteVertexArrayOES'](vao); };
  1701. GLctx['bindVertexArray'] = function(vao) { vaoExt['bindVertexArrayOES'](vao); };
  1702. GLctx['isVertexArray'] = function(vao) { return vaoExt['isVertexArrayOES'](vao); };
  1703. }
  1704. var drawBuffersExt = GLctx.getExtension('WEBGL_draw_buffers');
  1705. if (drawBuffersExt) {
  1706. GLctx['drawBuffers'] = function(n, bufs) { drawBuffersExt['drawBuffersWEBGL'](n, bufs); };
  1707. }
  1708. }
  1709. GLctx.disjointTimerQueryExt = GLctx.getExtension("EXT_disjoint_timer_query");
  1710. // These are the 'safe' feature-enabling extensions that don't add any performance impact related to e.g. debugging, and
  1711. // should be enabled by default so that client GLES2/GL code will not need to go through extra hoops to get its stuff working.
  1712. // As new extensions are ratified at http://www.khronos.org/registry/webgl/extensions/ , feel free to add your new extensions
  1713. // here, as long as they don't produce a performance impact for users that might not be using those extensions.
  1714. // E.g. debugging-related extensions should probably be off by default.
  1715. var automaticallyEnabledExtensions = [ "OES_texture_float", "OES_texture_half_float", "OES_standard_derivatives",
  1716. "OES_vertex_array_object", "WEBGL_compressed_texture_s3tc", "WEBGL_depth_texture",
  1717. "OES_element_index_uint", "EXT_texture_filter_anisotropic", "ANGLE_instanced_arrays",
  1718. "OES_texture_float_linear", "OES_texture_half_float_linear", "WEBGL_compressed_texture_atc",
  1719. "WEBGL_compressed_texture_pvrtc", "EXT_color_buffer_half_float", "WEBGL_color_buffer_float",
  1720. "EXT_frag_depth", "EXT_sRGB", "WEBGL_draw_buffers", "WEBGL_shared_resources",
  1721. "EXT_shader_texture_lod", "EXT_color_buffer_float"];
  1722. function shouldEnableAutomatically(extension) {
  1723. var ret = false;
  1724. automaticallyEnabledExtensions.forEach(function(include) {
  1725. if (ext.indexOf(include) != -1) {
  1726. ret = true;
  1727. }
  1728. });
  1729. return ret;
  1730. }
  1731. var exts = GLctx.getSupportedExtensions();
  1732. if (exts && exts.length > 0) {
  1733. GLctx.getSupportedExtensions().forEach(function(ext) {
  1734. if (automaticallyEnabledExtensions.indexOf(ext) != -1) {
  1735. GLctx.getExtension(ext); // Calling .getExtension enables that extension permanently, no need to store the return value to be enabled.
  1736. }
  1737. });
  1738. }
  1739. },populateUniformTable:function (program) {
  1740. var p = GL.programs[program];
  1741. GL.programInfos[program] = {
  1742. uniforms: {},
  1743. maxUniformLength: 0, // This is eagerly computed below, since we already enumerate all uniforms anyway.
  1744. maxAttributeLength: -1, // This is lazily computed and cached, computed when/if first asked, "-1" meaning not computed yet.
  1745. maxUniformBlockNameLength: -1 // Lazily computed as well
  1746. };
  1747. var ptable = GL.programInfos[program];
  1748. var utable = ptable.uniforms;
  1749. // A program's uniform table maps the string name of an uniform to an integer location of that uniform.
  1750. // The global GL.uniforms map maps integer locations to WebGLUniformLocations.
  1751. var numUniforms = GLctx.getProgramParameter(p, GLctx.ACTIVE_UNIFORMS);
  1752. for (var i = 0; i < numUniforms; ++i) {
  1753. var u = GLctx.getActiveUniform(p, i);
  1754. var name = u.name;
  1755. ptable.maxUniformLength = Math.max(ptable.maxUniformLength, name.length+1);
  1756. // Strip off any trailing array specifier we might have got, e.g. "[0]".
  1757. if (name.indexOf(']', name.length-1) !== -1) {
  1758. var ls = name.lastIndexOf('[');
  1759. name = name.slice(0, ls);
  1760. }
  1761. // Optimize memory usage slightly: If we have an array of uniforms, e.g. 'vec3 colors[3];', then
  1762. // only store the string 'colors' in utable, and 'colors[0]', 'colors[1]' and 'colors[2]' will be parsed as 'colors'+i.
  1763. // Note that for the GL.uniforms table, we still need to fetch the all WebGLUniformLocations for all the indices.
  1764. var loc = GLctx.getUniformLocation(p, name);
  1765. if (loc != null)
  1766. {
  1767. var id = GL.getNewId(GL.uniforms);
  1768. utable[name] = [u.size, id];
  1769. GL.uniforms[id] = loc;
  1770. for (var j = 1; j < u.size; ++j) {
  1771. var n = name + '['+j+']';
  1772. loc = GLctx.getUniformLocation(p, n);
  1773. id = GL.getNewId(GL.uniforms);
  1774. GL.uniforms[id] = loc;
  1775. }
  1776. }
  1777. }
  1778. }};function _emscripten_glIsRenderbuffer(renderbuffer) {
  1779. var rb = GL.renderbuffers[renderbuffer];
  1780. if (!rb) return 0;
  1781. return GLctx.isRenderbuffer(rb);
  1782. }
  1783. function _emscripten_glStencilMaskSeparate(x0, x1) { GLctx['stencilMaskSeparate'](x0, x1) }
  1784. function _emscripten_get_now() { abort() }
  1785. function _emscripten_set_main_loop_timing(mode, value) {
  1786. Browser.mainLoop.timingMode = mode;
  1787. Browser.mainLoop.timingValue = value;
  1788. if (!Browser.mainLoop.func) {
  1789. console.error('emscripten_set_main_loop_timing: Cannot set timing mode for main loop since a main loop does not exist! Call emscripten_set_main_loop first to set one up.');
  1790. return 1; // Return non-zero on failure, can't set timing mode when there is no main loop.
  1791. }
  1792. if (mode == 0 /*EM_TIMING_SETTIMEOUT*/) {
  1793. Browser.mainLoop.scheduler = function Browser_mainLoop_scheduler_setTimeout() {
  1794. var timeUntilNextTick = Math.max(0, Browser.mainLoop.tickStartTime + value - _emscripten_get_now())|0;
  1795. setTimeout(Browser.mainLoop.runner, timeUntilNextTick); // doing this each time means that on exception, we stop
  1796. };
  1797. Browser.mainLoop.method = 'timeout';
  1798. } else if (mode == 1 /*EM_TIMING_RAF*/) {
  1799. Browser.mainLoop.scheduler = function Browser_mainLoop_scheduler_rAF() {
  1800. Browser.requestAnimationFrame(Browser.mainLoop.runner);
  1801. };
  1802. Browser.mainLoop.method = 'rAF';
  1803. } else if (mode == 2 /*EM_TIMING_SETIMMEDIATE*/) {
  1804. if (!window['setImmediate']) {
  1805. // Emulate setImmediate. (note: not a complete polyfill, we don't emulate clearImmediate() to keep code size to minimum, since not needed)
  1806. var setImmediates = [];
  1807. var emscriptenMainLoopMessageId = 'setimmediate';
  1808. function Browser_setImmediate_messageHandler(event) {
  1809. if (event.source === window && event.data === emscriptenMainLoopMessageId) {
  1810. event.stopPropagation();
  1811. setImmediates.shift()();
  1812. }
  1813. }
  1814. window.addEventListener("message", Browser_setImmediate_messageHandler, true);
  1815. window['setImmediate'] = function Browser_emulated_setImmediate(func) {
  1816. setImmediates.push(func);
  1817. if (ENVIRONMENT_IS_WORKER) {
  1818. if (Module['setImmediates'] === undefined) Module['setImmediates'] = [];
  1819. Module['setImmediates'].push(func);
  1820. window.postMessage({target: emscriptenMainLoopMessageId}); // In --proxy-to-worker, route the message via proxyClient.js
  1821. } else window.postMessage(emscriptenMainLoopMessageId, "*"); // On the main thread, can just send the message to itself.
  1822. }
  1823. }
  1824. Browser.mainLoop.scheduler = function Browser_mainLoop_scheduler_setImmediate() {
  1825. window['setImmediate'](Browser.mainLoop.runner);
  1826. };
  1827. Browser.mainLoop.method = 'immediate';
  1828. }
  1829. return 0;
  1830. }function _emscripten_set_main_loop(func, fps, simulateInfiniteLoop, arg, noSetTiming) {
  1831. Module['noExitRuntime'] = true;
  1832. assert(!Browser.mainLoop.func, 'emscripten_set_main_loop: there can only be one main loop function at once: call emscripten_cancel_main_loop to cancel the previous one before setting a new one with different parameters.');
  1833. Browser.mainLoop.func = func;
  1834. Browser.mainLoop.arg = arg;
  1835. var browserIterationFunc;
  1836. if (typeof arg !== 'undefined') {
  1837. browserIterationFunc = function() {
  1838. Module['dynCall_vi'](func, arg);
  1839. };
  1840. } else {
  1841. browserIterationFunc = function() {
  1842. Module['dynCall_v'](func);
  1843. };
  1844. }
  1845. var thisMainLoopId = Browser.mainLoop.currentlyRunningMainloop;
  1846. Browser.mainLoop.runner = function Browser_mainLoop_runner() {
  1847. if (ABORT) return;
  1848. if (Browser.mainLoop.queue.length > 0) {
  1849. var start = Date.now();
  1850. var blocker = Browser.mainLoop.queue.shift();
  1851. blocker.func(blocker.arg);
  1852. if (Browser.mainLoop.remainingBlockers) {
  1853. var remaining = Browser.mainLoop.remainingBlockers;
  1854. var next = remaining%1 == 0 ? remaining-1 : Math.floor(remaining);
  1855. if (blocker.counted) {
  1856. Browser.mainLoop.remainingBlockers = next;
  1857. } else {
  1858. // not counted, but move the progress along a tiny bit
  1859. next = next + 0.5; // do not steal all the next one's progress
  1860. Browser.mainLoop.remainingBlockers = (8*remaining + next)/9;
  1861. }
  1862. }
  1863. console.log('main loop blocker "' + blocker.name + '" took ' + (Date.now() - start) + ' ms'); //, left: ' + Browser.mainLoop.remainingBlockers);
  1864. Browser.mainLoop.updateStatus();
  1865. // catches pause/resume main loop from blocker execution
  1866. if (thisMainLoopId < Browser.mainLoop.currentlyRunningMainloop) return;
  1867. setTimeout(Browser.mainLoop.runner, 0);
  1868. return;
  1869. }
  1870. // catch pauses from non-main loop sources
  1871. if (thisMainLoopId < Browser.mainLoop.currentlyRunningMainloop) return;
  1872. // Implement very basic swap interval control
  1873. Browser.mainLoop.currentFrameNumber = Browser.mainLoop.currentFrameNumber + 1 | 0;
  1874. if (Browser.mainLoop.timingMode == 1/*EM_TIMING_RAF*/ && Browser.mainLoop.timingValue > 1 && Browser.mainLoop.currentFrameNumber % Browser.mainLoop.timingValue != 0) {
  1875. // Not the scheduled time to render this frame - skip.
  1876. Browser.mainLoop.scheduler();
  1877. return;
  1878. } else if (Browser.mainLoop.timingMode == 0/*EM_TIMING_SETTIMEOUT*/) {
  1879. Browser.mainLoop.tickStartTime = _emscripten_get_now();
  1880. }
  1881. // Signal GL rendering layer that processing of a new frame is about to start. This helps it optimize
  1882. // VBO double-buffering and reduce GPU stalls.
  1883. if (Browser.mainLoop.method === 'timeout' && Module.ctx) {
  1884. Module.printErr('Looks like you are rendering without using requestAnimationFrame for the main loop. You should use 0 for the frame rate in emscripten_set_main_loop in order to use requestAnimationFrame, as that can greatly improve your frame rates!');
  1885. Browser.mainLoop.method = ''; // just warn once per call to set main loop
  1886. }
  1887. Browser.mainLoop.runIter(browserIterationFunc);
  1888. checkStackCookie();
  1889. // catch pauses from the main loop itself
  1890. if (thisMainLoopId < Browser.mainLoop.currentlyRunningMainloop) return;
  1891. // Queue new audio data. This is important to be right after the main loop invocation, so that we will immediately be able
  1892. // to queue the newest produced audio samples.
  1893. // TODO: Consider adding pre- and post- rAF callbacks so that GL.newRenderingFrameStarted() and SDL.audio.queueNewAudioData()
  1894. // do not need to be hardcoded into this function, but can be more generic.
  1895. if (typeof SDL === 'object' && SDL.audio && SDL.audio.queueNewAudioData) SDL.audio.queueNewAudioData();
  1896. Browser.mainLoop.scheduler();
  1897. }
  1898. if (!noSetTiming) {
  1899. if (fps && fps > 0) _emscripten_set_main_loop_timing(0/*EM_TIMING_SETTIMEOUT*/, 1000.0 / fps);
  1900. else _emscripten_set_main_loop_timing(1/*EM_TIMING_RAF*/, 1); // Do rAF by rendering each frame (no decimating)
  1901. Browser.mainLoop.scheduler();
  1902. }
  1903. if (simulateInfiniteLoop) {
  1904. throw 'SimulateInfiniteLoop';
  1905. }
  1906. }var Browser={mainLoop:{scheduler:null,method:"",currentlyRunningMainloop:0,func:null,arg:0,timingMode:0,timingValue:0,currentFrameNumber:0,queue:[],pause:function () {
  1907. Browser.mainLoop.scheduler = null;
  1908. Browser.mainLoop.currentlyRunningMainloop++; // Incrementing this signals the previous main loop that it's now become old, and it must return.
  1909. },resume:function () {
  1910. Browser.mainLoop.currentlyRunningMainloop++;
  1911. var timingMode = Browser.mainLoop.timingMode;
  1912. var timingValue = Browser.mainLoop.timingValue;
  1913. var func = Browser.mainLoop.func;
  1914. Browser.mainLoop.func = null;
  1915. _emscripten_set_main_loop(func, 0, false, Browser.mainLoop.arg, true /* do not set timing and call scheduler, we will do it on the next lines */);
  1916. _emscripten_set_main_loop_timing(timingMode, timingValue);
  1917. Browser.mainLoop.scheduler();
  1918. },updateStatus:function () {
  1919. if (Module['setStatus']) {
  1920. var message = Module['statusMessage'] || 'Please wait...';
  1921. var remaining = Browser.mainLoop.remainingBlockers;
  1922. var expected = Browser.mainLoop.expectedBlockers;
  1923. if (remaining) {
  1924. if (remaining < expected) {
  1925. Module['setStatus'](message + ' (' + (expected - remaining) + '/' + expected + ')');
  1926. } else {
  1927. Module['setStatus'](message);
  1928. }
  1929. } else {
  1930. Module['setStatus']('');
  1931. }
  1932. }
  1933. },runIter:function (func) {
  1934. if (ABORT) return;
  1935. if (Module['preMainLoop']) {
  1936. var preRet = Module['preMainLoop']();
  1937. if (preRet === false) {
  1938. return; // |return false| skips a frame
  1939. }
  1940. }
  1941. try {
  1942. func();
  1943. } catch (e) {
  1944. if (e instanceof ExitStatus) {
  1945. return;
  1946. } else {
  1947. if (e && typeof e === 'object' && e.stack) Module.printErr('exception thrown: ' + [e, e.stack]);
  1948. throw e;
  1949. }
  1950. }
  1951. if (Module['postMainLoop']) Module['postMainLoop']();
  1952. }},isFullscreen:false,pointerLock:false,moduleContextCreatedCallbacks:[],workers:[],init:function () {
  1953. if (!Module["preloadPlugins"]) Module["preloadPlugins"] = []; // needs to exist even in workers
  1954. if (Browser.initted) return;
  1955. Browser.initted = true;
  1956. try {
  1957. new Blob();
  1958. Browser.hasBlobConstructor = true;
  1959. } catch(e) {
  1960. Browser.hasBlobConstructor = false;
  1961. console.log("warning: no blob constructor, cannot create blobs with mimetypes");
  1962. }
  1963. Browser.BlobBuilder = typeof MozBlobBuilder != "undefined" ? MozBlobBuilder : (typeof WebKitBlobBuilder != "undefined" ? WebKitBlobBuilder : (!Browser.hasBlobConstructor ? console.log("warning: no BlobBuilder") : null));
  1964. Browser.URLObject = typeof window != "undefined" ? (window.URL ? window.URL : window.webkitURL) : undefined;
  1965. if (!Module.noImageDecoding && typeof Browser.URLObject === 'undefined') {
  1966. console.log("warning: Browser does not support creating object URLs. Built-in browser image decoding will not be available.");
  1967. Module.noImageDecoding = true;
  1968. }
  1969. // Support for plugins that can process preloaded files. You can add more of these to
  1970. // your app by creating and appending to Module.preloadPlugins.
  1971. //
  1972. // Each plugin is asked if it can handle a file based on the file's name. If it can,
  1973. // it is given the file's raw data. When it is done, it calls a callback with the file's
  1974. // (possibly modified) data. For example, a plugin might decompress a file, or it
  1975. // might create some side data structure for use later (like an Image element, etc.).
  1976. var imagePlugin = {};
  1977. imagePlugin['canHandle'] = function imagePlugin_canHandle(name) {
  1978. return !Module.noImageDecoding && /\.(jpg|jpeg|png|bmp)$/i.test(name);
  1979. };
  1980. imagePlugin['handle'] = function imagePlugin_handle(byteArray, name, onload, onerror) {
  1981. var b = null;
  1982. if (Browser.hasBlobConstructor) {
  1983. try {
  1984. b = new Blob([byteArray], { type: Browser.getMimetype(name) });
  1985. if (b.size !== byteArray.length) { // Safari bug #118630
  1986. // Safari's Blob can only take an ArrayBuffer
  1987. b = new Blob([(new Uint8Array(byteArray)).buffer], { type: Browser.getMimetype(name) });
  1988. }
  1989. } catch(e) {
  1990. Runtime.warnOnce('Blob constructor present but fails: ' + e + '; falling back to blob builder');
  1991. }
  1992. }
  1993. if (!b) {
  1994. var bb = new Browser.BlobBuilder();
  1995. bb.append((new Uint8Array(byteArray)).buffer); // we need to pass a buffer, and must copy the array to get the right data range
  1996. b = bb.getBlob();
  1997. }
  1998. var url = Browser.URLObject.createObjectURL(b);
  1999. assert(typeof url == 'string', 'createObjectURL must return a url as a string');
  2000. var img = new Image();
  2001. img.onload = function img_onload() {
  2002. assert(img.complete, 'Image ' + name + ' could not be decoded');
  2003. var canvas = document.createElement('canvas');
  2004. canvas.width = img.width;
  2005. canvas.height = img.height;
  2006. var ctx = canvas.getContext('2d');
  2007. ctx.drawImage(img, 0, 0);
  2008. Module["preloadedImages"][name] = canvas;
  2009. Browser.URLObject.revokeObjectURL(url);
  2010. if (onload) onload(byteArray);
  2011. };
  2012. img.onerror = function img_onerror(event) {
  2013. console.log('Image ' + url + ' could not be decoded');
  2014. if (onerror) onerror();
  2015. };
  2016. img.src = url;
  2017. };
  2018. Module['preloadPlugins'].push(imagePlugin);
  2019. var audioPlugin = {};
  2020. audioPlugin['canHandle'] = function audioPlugin_canHandle(name) {
  2021. return !Module.noAudioDecoding && name.substr(-4) in { '.ogg': 1, '.wav': 1, '.mp3': 1 };
  2022. };
  2023. audioPlugin['handle'] = function audioPlugin_handle(byteArray, name, onload, onerror) {
  2024. var done = false;
  2025. function finish(audio) {
  2026. if (done) return;
  2027. done = true;
  2028. Module["preloadedAudios"][name] = audio;
  2029. if (onload) onload(byteArray);
  2030. }
  2031. function fail() {
  2032. if (done) return;
  2033. done = true;
  2034. Module["preloadedAudios"][name] = new Audio(); // empty shim
  2035. if (onerror) onerror();
  2036. }
  2037. if (Browser.hasBlobConstructor) {
  2038. try {
  2039. var b = new Blob([byteArray], { type: Browser.getMimetype(name) });
  2040. } catch(e) {
  2041. return fail();
  2042. }
  2043. var url = Browser.URLObject.createObjectURL(b); // XXX we never revoke this!
  2044. assert(typeof url == 'string', 'createObjectURL must return a url as a string');
  2045. var audio = new Audio();
  2046. audio.addEventListener('canplaythrough', function() { finish(audio) }, false); // use addEventListener due to chromium bug 124926
  2047. audio.onerror = function audio_onerror(event) {
  2048. if (done) return;
  2049. console.log('warning: browser could not fully decode audio ' + name + ', trying slower base64 approach');
  2050. function encode64(data) {
  2051. var BASE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
  2052. var PAD = '=';
  2053. var ret = '';
  2054. var leftchar = 0;
  2055. var leftbits = 0;
  2056. for (var i = 0; i < data.length; i++) {
  2057. leftchar = (leftchar << 8) | data[i];
  2058. leftbits += 8;
  2059. while (leftbits >= 6) {
  2060. var curr = (leftchar >> (leftbits-6)) & 0x3f;
  2061. leftbits -= 6;
  2062. ret += BASE[curr];
  2063. }
  2064. }
  2065. if (leftbits == 2) {
  2066. ret += BASE[(leftchar&3) << 4];
  2067. ret += PAD + PAD;
  2068. } else if (leftbits == 4) {
  2069. ret += BASE[(leftchar&0xf) << 2];
  2070. ret += PAD;
  2071. }
  2072. return ret;
  2073. }
  2074. audio.src = 'data:audio/x-' + name.substr(-3) + ';base64,' + encode64(byteArray);
  2075. finish(audio); // we don't wait for confirmation this worked - but it's worth trying
  2076. };
  2077. audio.src = url;
  2078. // workaround for chrome bug 124926 - we do not always get oncanplaythrough or onerror
  2079. Browser.safeSetTimeout(function() {
  2080. finish(audio); // try to use it even though it is not necessarily ready to play
  2081. }, 10000);
  2082. } else {
  2083. return fail();
  2084. }
  2085. };
  2086. Module['preloadPlugins'].push(audioPlugin);
  2087. // Canvas event setup
  2088. function pointerLockChange() {
  2089. Browser.pointerLock = document['pointerLockElement'] === Module['canvas'] ||
  2090. document['mozPointerLockElement'] === Module['canvas'] ||
  2091. document['webkitPointerLockElement'] === Module['canvas'] ||
  2092. document['msPointerLockElement'] === Module['canvas'];
  2093. }
  2094. var canvas = Module['canvas'];
  2095. if (canvas) {
  2096. // forced aspect ratio can be enabled by defining 'forcedAspectRatio' on Module
  2097. // Module['forcedAspectRatio'] = 4 / 3;
  2098. canvas.requestPointerLock = canvas['requestPointerLock'] ||
  2099. canvas['mozRequestPointerLock'] ||
  2100. canvas['webkitRequestPointerLock'] ||
  2101. canvas['msRequestPointerLock'] ||
  2102. function(){};
  2103. canvas.exitPointerLock = document['exitPointerLock'] ||
  2104. document['mozExitPointerLock'] ||
  2105. document['webkitExitPointerLock'] ||
  2106. document['msExitPointerLock'] ||
  2107. function(){}; // no-op if function does not exist
  2108. canvas.exitPointerLock = canvas.exitPointerLock.bind(document);
  2109. document.addEventListener('pointerlockchange', pointerLockChange, false);
  2110. document.addEventListener('mozpointerlockchange', pointerLockChange, false);
  2111. document.addEventListener('webkitpointerlockchange', pointerLockChange, false);
  2112. document.addEventListener('mspointerlockchange', pointerLockChange, false);
  2113. if (Module['elementPointerLock']) {
  2114. canvas.addEventListener("click", function(ev) {
  2115. if (!Browser.pointerLock && Module['canvas'].requestPointerLock) {
  2116. Module['canvas'].requestPointerLock();
  2117. ev.preventDefault();
  2118. }
  2119. }, false);
  2120. }
  2121. }
  2122. },createContext:function (canvas, useWebGL, setInModule, webGLContextAttributes) {
  2123. if (useWebGL && Module.ctx && canvas == Module.canvas) return Module.ctx; // no need to recreate GL context if it's already been created for this canvas.
  2124. var ctx;
  2125. var contextHandle;
  2126. if (useWebGL) {
  2127. // For GLES2/desktop GL compatibility, adjust a few defaults to be different to WebGL defaults, so that they align better with the desktop defaults.
  2128. var contextAttributes = {
  2129. antialias: false,
  2130. alpha: false
  2131. };
  2132. if (webGLContextAttributes) {
  2133. for (var attribute in webGLContextAttributes) {
  2134. contextAttributes[attribute] = webGLContextAttributes[attribute];
  2135. }
  2136. }
  2137. contextHandle = GL.createContext(canvas, contextAttributes);
  2138. if (contextHandle) {
  2139. ctx = GL.getContext(contextHandle).GLctx;
  2140. }
  2141. } else {
  2142. ctx = canvas.getContext('2d');
  2143. }
  2144. if (!ctx) return null;
  2145. if (setInModule) {
  2146. if (!useWebGL) assert(typeof GLctx === 'undefined', 'cannot set in module if GLctx is used, but we are a non-GL context that would replace it');
  2147. Module.ctx = ctx;
  2148. if (useWebGL) GL.makeContextCurrent(contextHandle);
  2149. Module.useWebGL = useWebGL;
  2150. Browser.moduleContextCreatedCallbacks.forEach(function(callback) { callback() });
  2151. Browser.init();
  2152. }
  2153. return ctx;
  2154. },destroyContext:function (canvas, useWebGL, setInModule) {},fullscreenHandlersInstalled:false,lockPointer:undefined,resizeCanvas:undefined,requestFullscreen:function (lockPointer, resizeCanvas, vrDevice) {
  2155. Browser.lockPointer = lockPointer;
  2156. Browser.resizeCanvas = resizeCanvas;
  2157. Browser.vrDevice = vrDevice;
  2158. if (typeof Browser.lockPointer === 'undefined') Browser.lockPointer = true;
  2159. if (typeof Browser.resizeCanvas === 'undefined') Browser.resizeCanvas = false;
  2160. if (typeof Browser.vrDevice === 'undefined') Browser.vrDevice = null;
  2161. var canvas = Module['canvas'];
  2162. function fullscreenChange() {
  2163. Browser.isFullscreen = false;
  2164. var canvasContainer = canvas.parentNode;
  2165. if ((document['fullscreenElement'] || document['mozFullScreenElement'] ||
  2166. document['msFullscreenElement'] || document['webkitFullscreenElement'] ||
  2167. document['webkitCurrentFullScreenElement']) === canvasContainer) {
  2168. canvas.exitFullscreen = document['exitFullscreen'] ||
  2169. document['cancelFullScreen'] ||
  2170. document['mozCancelFullScreen'] ||
  2171. document['msExitFullscreen'] ||
  2172. document['webkitCancelFullScreen'] ||
  2173. function() {};
  2174. canvas.exitFullscreen = canvas.exitFullscreen.bind(document);
  2175. if (Browser.lockPointer) canvas.requestPointerLock();
  2176. Browser.isFullscreen = true;
  2177. if (Browser.resizeCanvas) Browser.setFullscreenCanvasSize();
  2178. } else {
  2179. // remove the full screen specific parent of the canvas again to restore the HTML structure from before going full screen
  2180. canvasContainer.parentNode.insertBefore(canvas, canvasContainer);
  2181. canvasContainer.parentNode.removeChild(canvasContainer);
  2182. if (Browser.resizeCanvas) Browser.setWindowedCanvasSize();
  2183. }
  2184. if (Module['onFullScreen']) Module['onFullScreen'](Browser.isFullscreen);
  2185. if (Module['onFullscreen']) Module['onFullscreen'](Browser.isFullscreen);
  2186. Browser.updateCanvasDimensions(canvas);
  2187. }
  2188. if (!Browser.fullscreenHandlersInstalled) {
  2189. Browser.fullscreenHandlersInstalled = true;
  2190. document.addEventListener('fullscreenchange', fullscreenChange, false);
  2191. document.addEventListener('mozfullscreenchange', fullscreenChange, false);
  2192. document.addEventListener('webkitfullscreenchange', fullscreenChange, false);
  2193. document.addEventListener('MSFullscreenChange', fullscreenChange, false);
  2194. }
  2195. // create a new parent to ensure the canvas has no siblings. this allows browsers to optimize full screen performance when its parent is the full screen root
  2196. var canvasContainer = document.createElement("div");
  2197. canvas.parentNode.insertBefore(canvasContainer, canvas);
  2198. canvasContainer.appendChild(canvas);
  2199. // use parent of canvas as full screen root to allow aspect ratio correction (Firefox stretches the root to screen size)
  2200. canvasContainer.requestFullscreen = canvasContainer['requestFullscreen'] ||
  2201. canvasContainer['mozRequestFullScreen'] ||
  2202. canvasContainer['msRequestFullscreen'] ||
  2203. (canvasContainer['webkitRequestFullscreen'] ? function() { canvasContainer['webkitRequestFullscreen'](Element['ALLOW_KEYBOARD_INPUT']) } : null) ||
  2204. (canvasContainer['webkitRequestFullScreen'] ? function() { canvasContainer['webkitRequestFullScreen'](Element['ALLOW_KEYBOARD_INPUT']) } : null);
  2205. if (vrDevice) {
  2206. canvasContainer.requestFullscreen({ vrDisplay: vrDevice });
  2207. } else {
  2208. canvasContainer.requestFullscreen();
  2209. }
  2210. },requestFullScreen:function (lockPointer, resizeCanvas, vrDevice) {
  2211. Module.printErr('Browser.requestFullScreen() is deprecated. Please call Browser.requestFullscreen instead.');
  2212. Browser.requestFullScreen = function(lockPointer, resizeCanvas, vrDevice) {
  2213. return Browser.requestFullscreen(lockPointer, resizeCanvas, vrDevice);
  2214. }
  2215. return Browser.requestFullscreen(lockPointer, resizeCanvas, vrDevice);
  2216. },nextRAF:0,fakeRequestAnimationFrame:function (func) {
  2217. // try to keep 60fps between calls to here
  2218. var now = Date.now();
  2219. if (Browser.nextRAF === 0) {
  2220. Browser.nextRAF = now + 1000/60;
  2221. } else {
  2222. while (now + 2 >= Browser.nextRAF) { // fudge a little, to avoid timer jitter causing us to do lots of delay:0
  2223. Browser.nextRAF += 1000/60;
  2224. }
  2225. }
  2226. var delay = Math.max(Browser.nextRAF - now, 0);
  2227. setTimeout(func, delay);
  2228. },requestAnimationFrame:function requestAnimationFrame(func) {
  2229. if (typeof window === 'undefined') { // Provide fallback to setTimeout if window is undefined (e.g. in Node.js)
  2230. Browser.fakeRequestAnimationFrame(func);
  2231. } else {
  2232. if (!window.requestAnimationFrame) {
  2233. window.requestAnimationFrame = window['requestAnimationFrame'] ||
  2234. window['mozRequestAnimationFrame'] ||
  2235. window['webkitRequestAnimationFrame'] ||
  2236. window['msRequestAnimationFrame'] ||
  2237. window['oRequestAnimationFrame'] ||
  2238. Browser.fakeRequestAnimationFrame;
  2239. }
  2240. window.requestAnimationFrame(func);
  2241. }
  2242. },safeCallback:function (func) {
  2243. return function() {
  2244. if (!ABORT) return func.apply(null, arguments);
  2245. };
  2246. },allowAsyncCallbacks:true,queuedAsyncCallbacks:[],pauseAsyncCallbacks:function () {
  2247. Browser.allowAsyncCallbacks = false;
  2248. },resumeAsyncCallbacks:function () { // marks future callbacks as ok to execute, and synchronously runs any remaining ones right now
  2249. Browser.allowAsyncCallbacks = true;
  2250. if (Browser.queuedAsyncCallbacks.length > 0) {
  2251. var callbacks = Browser.queuedAsyncCallbacks;
  2252. Browser.queuedAsyncCallbacks = [];
  2253. callbacks.forEach(function(func) {
  2254. func();
  2255. });
  2256. }
  2257. },safeRequestAnimationFrame:function (func) {
  2258. return Browser.requestAnimationFrame(function() {
  2259. if (ABORT) return;
  2260. if (Browser.allowAsyncCallbacks) {
  2261. func();
  2262. } else {
  2263. Browser.queuedAsyncCallbacks.push(func);
  2264. }
  2265. });
  2266. },safeSetTimeout:function (func, timeout) {
  2267. Module['noExitRuntime'] = true;
  2268. return setTimeout(function() {
  2269. if (ABORT) return;
  2270. if (Browser.allowAsyncCallbacks) {
  2271. func();
  2272. } else {
  2273. Browser.queuedAsyncCallbacks.push(func);
  2274. }
  2275. }, timeout);
  2276. },safeSetInterval:function (func, timeout) {
  2277. Module['noExitRuntime'] = true;
  2278. return setInterval(function() {
  2279. if (ABORT) return;
  2280. if (Browser.allowAsyncCallbacks) {
  2281. func();
  2282. } // drop it on the floor otherwise, next interval will kick in
  2283. }, timeout);
  2284. },getMimetype:function (name) {
  2285. return {
  2286. 'jpg': 'image/jpeg',
  2287. 'jpeg': 'image/jpeg',
  2288. 'png': 'image/png',
  2289. 'bmp': 'image/bmp',
  2290. 'ogg': 'audio/ogg',
  2291. 'wav': 'audio/wav',
  2292. 'mp3': 'audio/mpeg'
  2293. }[name.substr(name.lastIndexOf('.')+1)];
  2294. },getUserMedia:function (func) {
  2295. if(!window.getUserMedia) {
  2296. window.getUserMedia = navigator['getUserMedia'] ||
  2297. navigator['mozGetUserMedia'];
  2298. }
  2299. window.getUserMedia(func);
  2300. },getMovementX:function (event) {
  2301. return event['movementX'] ||
  2302. event['mozMovementX'] ||
  2303. event['webkitMovementX'] ||
  2304. 0;
  2305. },getMovementY:function (event) {
  2306. return event['movementY'] ||
  2307. event['mozMovementY'] ||
  2308. event['webkitMovementY'] ||
  2309. 0;
  2310. },getMouseWheelDelta:function (event) {
  2311. var delta = 0;
  2312. switch (event.type) {
  2313. case 'DOMMouseScroll':
  2314. delta = event.detail;
  2315. break;
  2316. case 'mousewheel':
  2317. delta = event.wheelDelta;
  2318. break;
  2319. case 'wheel':
  2320. delta = event['deltaY'];
  2321. break;
  2322. default:
  2323. throw 'unrecognized mouse wheel event: ' + event.type;
  2324. }
  2325. return delta;
  2326. },mouseX:0,mouseY:0,mouseMovementX:0,mouseMovementY:0,touches:{},lastTouches:{},calculateMouseEvent:function (event) { // event should be mousemove, mousedown or mouseup
  2327. if (Browser.pointerLock) {
  2328. // When the pointer is locked, calculate the coordinates
  2329. // based on the movement of the mouse.
  2330. // Workaround for Firefox bug 764498
  2331. if (event.type != 'mousemove' &&
  2332. ('mozMovementX' in event)) {
  2333. Browser.mouseMovementX = Browser.mouseMovementY = 0;
  2334. } else {
  2335. Browser.mouseMovementX = Browser.getMovementX(event);
  2336. Browser.mouseMovementY = Browser.getMovementY(event);
  2337. }
  2338. // check if SDL is available
  2339. if (typeof SDL != "undefined") {
  2340. Browser.mouseX = SDL.mouseX + Browser.mouseMovementX;
  2341. Browser.mouseY = SDL.mouseY + Browser.mouseMovementY;
  2342. } else {
  2343. // just add the mouse delta to the current absolut mouse position
  2344. // FIXME: ideally this should be clamped against the canvas size and zero
  2345. Browser.mouseX += Browser.mouseMovementX;
  2346. Browser.mouseY += Browser.mouseMovementY;
  2347. }
  2348. } else {
  2349. // Otherwise, calculate the movement based on the changes
  2350. // in the coordinates.
  2351. var rect = Module["canvas"].getBoundingClientRect();
  2352. var cw = Module["canvas"].width;
  2353. var ch = Module["canvas"].height;
  2354. // Neither .scrollX or .pageXOffset are defined in a spec, but
  2355. // we prefer .scrollX because it is currently in a spec draft.
  2356. // (see: http://www.w3.org/TR/2013/WD-cssom-view-20131217/)
  2357. var scrollX = ((typeof window.scrollX !== 'undefined') ? window.scrollX : window.pageXOffset);
  2358. var scrollY = ((typeof window.scrollY !== 'undefined') ? window.scrollY : window.pageYOffset);
  2359. // If this assert lands, it's likely because the browser doesn't support scrollX or pageXOffset
  2360. // and we have no viable fallback.
  2361. assert((typeof scrollX !== 'undefined') && (typeof scrollY !== 'undefined'), 'Unable to retrieve scroll position, mouse positions likely broken.');
  2362. if (event.type === 'touchstart' || event.type === 'touchend' || event.type === 'touchmove') {
  2363. var touch = event.touch;
  2364. if (touch === undefined) {
  2365. return; // the "touch" property is only defined in SDL
  2366. }
  2367. var adjustedX = touch.pageX - (scrollX + rect.left);
  2368. var adjustedY = touch.pageY - (scrollY + rect.top);
  2369. adjustedX = adjustedX * (cw / rect.width);
  2370. adjustedY = adjustedY * (ch / rect.height);
  2371. var coords = { x: adjustedX, y: adjustedY };
  2372. if (event.type === 'touchstart') {
  2373. Browser.lastTouches[touch.identifier] = coords;
  2374. Browser.touches[touch.identifier] = coords;
  2375. } else if (event.type === 'touchend' || event.type === 'touchmove') {
  2376. var last = Browser.touches[touch.identifier];
  2377. if (!last) last = coords;
  2378. Browser.lastTouches[touch.identifier] = last;
  2379. Browser.touches[touch.identifier] = coords;
  2380. }
  2381. return;
  2382. }
  2383. var x = event.pageX - (scrollX + rect.left);
  2384. var y = event.pageY - (scrollY + rect.top);
  2385. // the canvas might be CSS-scaled compared to its backbuffer;
  2386. // SDL-using content will want mouse coordinates in terms
  2387. // of backbuffer units.
  2388. x = x * (cw / rect.width);
  2389. y = y * (ch / rect.height);
  2390. Browser.mouseMovementX = x - Browser.mouseX;
  2391. Browser.mouseMovementY = y - Browser.mouseY;
  2392. Browser.mouseX = x;
  2393. Browser.mouseY = y;
  2394. }
  2395. },asyncLoad:function (url, onload, onerror, noRunDep) {
  2396. var dep = !noRunDep ? getUniqueRunDependency('al ' + url) : '';
  2397. Module['readAsync'](url, function(arrayBuffer) {
  2398. assert(arrayBuffer, 'Loading data file "' + url + '" failed (no arrayBuffer).');
  2399. onload(new Uint8Array(arrayBuffer));
  2400. if (dep) removeRunDependency(dep);
  2401. }, function(event) {
  2402. if (onerror) {
  2403. onerror();
  2404. } else {
  2405. throw 'Loading data file "' + url + '" failed.';
  2406. }
  2407. });
  2408. if (dep) addRunDependency(dep);
  2409. },resizeListeners:[],updateResizeListeners:function () {
  2410. var canvas = Module['canvas'];
  2411. Browser.resizeListeners.forEach(function(listener) {
  2412. listener(canvas.width, canvas.height);
  2413. });
  2414. },setCanvasSize:function (width, height, noUpdates) {
  2415. var canvas = Module['canvas'];
  2416. Browser.updateCanvasDimensions(canvas, width, height);
  2417. if (!noUpdates) Browser.updateResizeListeners();
  2418. },windowedWidth:0,windowedHeight:0,setFullscreenCanvasSize:function () {
  2419. // check if SDL is available
  2420. if (typeof SDL != "undefined") {
  2421. var flags = HEAPU32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)];
  2422. flags = flags | 0x00800000; // set SDL_FULLSCREEN flag
  2423. HEAP32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)]=flags
  2424. }
  2425. Browser.updateResizeListeners();
  2426. },setWindowedCanvasSize:function () {
  2427. // check if SDL is available
  2428. if (typeof SDL != "undefined") {
  2429. var flags = HEAPU32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)];
  2430. flags = flags & ~0x00800000; // clear SDL_FULLSCREEN flag
  2431. HEAP32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)]=flags
  2432. }
  2433. Browser.updateResizeListeners();
  2434. },updateCanvasDimensions:function (canvas, wNative, hNative) {
  2435. if (wNative && hNative) {
  2436. canvas.widthNative = wNative;
  2437. canvas.heightNative = hNative;
  2438. } else {
  2439. wNative = canvas.widthNative;
  2440. hNative = canvas.heightNative;
  2441. }
  2442. var w = wNative;
  2443. var h = hNative;
  2444. if (Module['forcedAspectRatio'] && Module['forcedAspectRatio'] > 0) {
  2445. if (w/h < Module['forcedAspectRatio']) {
  2446. w = Math.round(h * Module['forcedAspectRatio']);
  2447. } else {
  2448. h = Math.round(w / Module['forcedAspectRatio']);
  2449. }
  2450. }
  2451. if (((document['fullscreenElement'] || document['mozFullScreenElement'] ||
  2452. document['msFullscreenElement'] || document['webkitFullscreenElement'] ||
  2453. document['webkitCurrentFullScreenElement']) === canvas.parentNode) && (typeof screen != 'undefined')) {
  2454. var factor = Math.min(screen.width / w, screen.height / h);
  2455. w = Math.round(w * factor);
  2456. h = Math.round(h * factor);
  2457. }
  2458. if (Browser.resizeCanvas) {
  2459. if (canvas.width != w) canvas.width = w;
  2460. if (canvas.height != h) canvas.height = h;
  2461. if (typeof canvas.style != 'undefined') {
  2462. canvas.style.removeProperty( "width");
  2463. canvas.style.removeProperty("height");
  2464. }
  2465. } else {
  2466. if (canvas.width != wNative) canvas.width = wNative;
  2467. if (canvas.height != hNative) canvas.height = hNative;
  2468. if (typeof canvas.style != 'undefined') {
  2469. if (w != wNative || h != hNative) {
  2470. canvas.style.setProperty( "width", w + "px", "important");
  2471. canvas.style.setProperty("height", h + "px", "important");
  2472. } else {
  2473. canvas.style.removeProperty( "width");
  2474. canvas.style.removeProperty("height");
  2475. }
  2476. }
  2477. }
  2478. },wgetRequests:{},nextWgetRequestHandle:0,getNextWgetRequestHandle:function () {
  2479. var handle = Browser.nextWgetRequestHandle;
  2480. Browser.nextWgetRequestHandle++;
  2481. return handle;
  2482. }};var GLFW={Window:function (id, width, height, title, monitor, share) {
  2483. this.id = id;
  2484. this.x = 0;
  2485. this.y = 0;
  2486. this.fullscreen = false; // Used to determine if app in fullscreen mode
  2487. this.storedX = 0; // Used to store X before fullscreen
  2488. this.storedY = 0; // Used to store Y before fullscreen
  2489. this.width = width;
  2490. this.height = height;
  2491. this.storedWidth = width; // Used to store width before fullscreen
  2492. this.storedHeight = height; // Used to store height before fullscreen
  2493. this.title = title;
  2494. this.monitor = monitor;
  2495. this.share = share;
  2496. this.attributes = GLFW.hints;
  2497. this.inputModes = {
  2498. 0x00033001:0x00034001, // GLFW_CURSOR (GLFW_CURSOR_NORMAL)
  2499. 0x00033002:0, // GLFW_STICKY_KEYS
  2500. 0x00033003:0, // GLFW_STICKY_MOUSE_BUTTONS
  2501. };
  2502. this.buttons = 0;
  2503. this.keys = new Array();
  2504. this.shouldClose = 0;
  2505. this.title = null;
  2506. this.windowPosFunc = null; // GLFWwindowposfun
  2507. this.windowSizeFunc = null; // GLFWwindowsizefun
  2508. this.windowCloseFunc = null; // GLFWwindowclosefun
  2509. this.windowRefreshFunc = null; // GLFWwindowrefreshfun
  2510. this.windowFocusFunc = null; // GLFWwindowfocusfun
  2511. this.windowIconifyFunc = null; // GLFWwindowiconifyfun
  2512. this.framebufferSizeFunc = null; // GLFWframebuffersizefun
  2513. this.mouseButtonFunc = null; // GLFWmousebuttonfun
  2514. this.cursorPosFunc = null; // GLFWcursorposfun
  2515. this.cursorEnterFunc = null; // GLFWcursorenterfun
  2516. this.scrollFunc = null; // GLFWscrollfun
  2517. this.keyFunc = null; // GLFWkeyfun
  2518. this.charFunc = null; // GLFWcharfun
  2519. this.userptr = null;
  2520. },WindowFromId:function (id) {
  2521. if (id <= 0 || !GLFW.windows) return null;
  2522. return GLFW.windows[id - 1];
  2523. },errorFunc:null,monitorFunc:null,active:null,windows:null,monitors:null,monitorString:null,versionString:null,initialTime:null,extensions:null,hints:null,defaultHints:{131073:0,131074:0,131075:1,131076:1,131077:1,135169:8,135170:8,135171:8,135172:8,135173:24,135174:8,135175:0,135176:0,135177:0,135178:0,135179:0,135180:0,135181:0,135182:0,135183:0,139265:196609,139266:1,139267:0,139268:0,139269:0,139270:0,139271:0,139272:0},DOMToGLFWKeyCode:function (keycode) {
  2524. switch (keycode) {
  2525. // these keycodes are only defined for GLFW3, assume they are the same for GLFW2
  2526. case 0x20:return 32; // DOM_VK_SPACE -> GLFW_KEY_SPACE
  2527. case 0xDE:return 39; // DOM_VK_QUOTE -> GLFW_KEY_APOSTROPHE
  2528. case 0xBC:return 44; // DOM_VK_COMMA -> GLFW_KEY_COMMA
  2529. case 0xAD:return 45; // DOM_VK_HYPHEN_MINUS -> GLFW_KEY_MINUS
  2530. case 0xBD:return 45; // DOM_VK_MINUS -> GLFW_KEY_MINUS
  2531. case 0xBE:return 46; // DOM_VK_PERIOD -> GLFW_KEY_PERIOD
  2532. case 0xBF:return 47; // DOM_VK_SLASH -> GLFW_KEY_SLASH
  2533. case 0x30:return 48; // DOM_VK_0 -> GLFW_KEY_0
  2534. case 0x31:return 49; // DOM_VK_1 -> GLFW_KEY_1
  2535. case 0x32:return 50; // DOM_VK_2 -> GLFW_KEY_2
  2536. case 0x33:return 51; // DOM_VK_3 -> GLFW_KEY_3
  2537. case 0x34:return 52; // DOM_VK_4 -> GLFW_KEY_4
  2538. case 0x35:return 53; // DOM_VK_5 -> GLFW_KEY_5
  2539. case 0x36:return 54; // DOM_VK_6 -> GLFW_KEY_6
  2540. case 0x37:return 55; // DOM_VK_7 -> GLFW_KEY_7
  2541. case 0x38:return 56; // DOM_VK_8 -> GLFW_KEY_8
  2542. case 0x39:return 57; // DOM_VK_9 -> GLFW_KEY_9
  2543. case 0x3B:return 59; // DOM_VK_SEMICOLON -> GLFW_KEY_SEMICOLON
  2544. case 0x3D:return 61; // DOM_VK_EQUALS -> GLFW_KEY_EQUAL
  2545. case 0xBB:return 61; // DOM_VK_EQUALS -> GLFW_KEY_EQUAL
  2546. case 0x41:return 65; // DOM_VK_A -> GLFW_KEY_A
  2547. case 0x42:return 66; // DOM_VK_B -> GLFW_KEY_B
  2548. case 0x43:return 67; // DOM_VK_C -> GLFW_KEY_C
  2549. case 0x44:return 68; // DOM_VK_D -> GLFW_KEY_D
  2550. case 0x45:return 69; // DOM_VK_E -> GLFW_KEY_E
  2551. case 0x46:return 70; // DOM_VK_F -> GLFW_KEY_F
  2552. case 0x47:return 71; // DOM_VK_G -> GLFW_KEY_G
  2553. case 0x48:return 72; // DOM_VK_H -> GLFW_KEY_H
  2554. case 0x49:return 73; // DOM_VK_I -> GLFW_KEY_I
  2555. case 0x4A:return 74; // DOM_VK_J -> GLFW_KEY_J
  2556. case 0x4B:return 75; // DOM_VK_K -> GLFW_KEY_K
  2557. case 0x4C:return 76; // DOM_VK_L -> GLFW_KEY_L
  2558. case 0x4D:return 77; // DOM_VK_M -> GLFW_KEY_M
  2559. case 0x4E:return 78; // DOM_VK_N -> GLFW_KEY_N
  2560. case 0x4F:return 79; // DOM_VK_O -> GLFW_KEY_O
  2561. case 0x50:return 80; // DOM_VK_P -> GLFW_KEY_P
  2562. case 0x51:return 81; // DOM_VK_Q -> GLFW_KEY_Q
  2563. case 0x52:return 82; // DOM_VK_R -> GLFW_KEY_R
  2564. case 0x53:return 83; // DOM_VK_S -> GLFW_KEY_S
  2565. case 0x54:return 84; // DOM_VK_T -> GLFW_KEY_T
  2566. case 0x55:return 85; // DOM_VK_U -> GLFW_KEY_U
  2567. case 0x56:return 86; // DOM_VK_V -> GLFW_KEY_V
  2568. case 0x57:return 87; // DOM_VK_W -> GLFW_KEY_W
  2569. case 0x58:return 88; // DOM_VK_X -> GLFW_KEY_X
  2570. case 0x59:return 89; // DOM_VK_Y -> GLFW_KEY_Y
  2571. case 0x5a:return 90; // DOM_VK_Z -> GLFW_KEY_Z
  2572. case 0xDB:return 91; // DOM_VK_OPEN_BRACKET -> GLFW_KEY_LEFT_BRACKET
  2573. case 0xDC:return 92; // DOM_VK_BACKSLASH -> GLFW_KEY_BACKSLASH
  2574. case 0xDD:return 93; // DOM_VK_CLOSE_BRACKET -> GLFW_KEY_RIGHT_BRACKET
  2575. case 0xC0:return 94; // DOM_VK_BACK_QUOTE -> GLFW_KEY_GRAVE_ACCENT
  2576. case 0x1B:return 256; // DOM_VK_ESCAPE -> GLFW_KEY_ESCAPE
  2577. case 0x0D:return 257; // DOM_VK_RETURN -> GLFW_KEY_ENTER
  2578. case 0x09:return 258; // DOM_VK_TAB -> GLFW_KEY_TAB
  2579. case 0x08:return 259; // DOM_VK_BACK -> GLFW_KEY_BACKSPACE
  2580. case 0x2D:return 260; // DOM_VK_INSERT -> GLFW_KEY_INSERT
  2581. case 0x2E:return 261; // DOM_VK_DELETE -> GLFW_KEY_DELETE
  2582. case 0x27:return 262; // DOM_VK_RIGHT -> GLFW_KEY_RIGHT
  2583. case 0x25:return 263; // DOM_VK_LEFT -> GLFW_KEY_LEFT
  2584. case 0x28:return 264; // DOM_VK_DOWN -> GLFW_KEY_DOWN
  2585. case 0x26:return 265; // DOM_VK_UP -> GLFW_KEY_UP
  2586. case 0x21:return 266; // DOM_VK_PAGE_UP -> GLFW_KEY_PAGE_UP
  2587. case 0x22:return 267; // DOM_VK_PAGE_DOWN -> GLFW_KEY_PAGE_DOWN
  2588. case 0x24:return 268; // DOM_VK_HOME -> GLFW_KEY_HOME
  2589. case 0x23:return 269; // DOM_VK_END -> GLFW_KEY_END
  2590. case 0x14:return 280; // DOM_VK_CAPS_LOCK -> GLFW_KEY_CAPS_LOCK
  2591. case 0x91:return 281; // DOM_VK_SCROLL_LOCK -> GLFW_KEY_SCROLL_LOCK
  2592. case 0x90:return 282; // DOM_VK_NUM_LOCK -> GLFW_KEY_NUM_LOCK
  2593. case 0x2C:return 283; // DOM_VK_SNAPSHOT -> GLFW_KEY_PRINT_SCREEN
  2594. case 0x13:return 284; // DOM_VK_PAUSE -> GLFW_KEY_PAUSE
  2595. case 0x70:return 290; // DOM_VK_F1 -> GLFW_KEY_F1
  2596. case 0x71:return 291; // DOM_VK_F2 -> GLFW_KEY_F2
  2597. case 0x72:return 292; // DOM_VK_F3 -> GLFW_KEY_F3
  2598. case 0x73:return 293; // DOM_VK_F4 -> GLFW_KEY_F4
  2599. case 0x74:return 294; // DOM_VK_F5 -> GLFW_KEY_F5
  2600. case 0x75:return 295; // DOM_VK_F6 -> GLFW_KEY_F6
  2601. case 0x76:return 296; // DOM_VK_F7 -> GLFW_KEY_F7
  2602. case 0x77:return 297; // DOM_VK_F8 -> GLFW_KEY_F8
  2603. case 0x78:return 298; // DOM_VK_F9 -> GLFW_KEY_F9
  2604. case 0x79:return 299; // DOM_VK_F10 -> GLFW_KEY_F10
  2605. case 0x7A:return 300; // DOM_VK_F11 -> GLFW_KEY_F11
  2606. case 0x7B:return 301; // DOM_VK_F12 -> GLFW_KEY_F12
  2607. case 0x7C:return 302; // DOM_VK_F13 -> GLFW_KEY_F13
  2608. case 0x7D:return 303; // DOM_VK_F14 -> GLFW_KEY_F14
  2609. case 0x7E:return 304; // DOM_VK_F15 -> GLFW_KEY_F15
  2610. case 0x7F:return 305; // DOM_VK_F16 -> GLFW_KEY_F16
  2611. case 0x80:return 306; // DOM_VK_F17 -> GLFW_KEY_F17
  2612. case 0x81:return 307; // DOM_VK_F18 -> GLFW_KEY_F18
  2613. case 0x82:return 308; // DOM_VK_F19 -> GLFW_KEY_F19
  2614. case 0x83:return 309; // DOM_VK_F20 -> GLFW_KEY_F20
  2615. case 0x84:return 310; // DOM_VK_F21 -> GLFW_KEY_F21
  2616. case 0x85:return 311; // DOM_VK_F22 -> GLFW_KEY_F22
  2617. case 0x86:return 312; // DOM_VK_F23 -> GLFW_KEY_F23
  2618. case 0x87:return 313; // DOM_VK_F24 -> GLFW_KEY_F24
  2619. case 0x88:return 314; // 0x88 (not used?) -> GLFW_KEY_F25
  2620. case 0x60:return 320; // DOM_VK_NUMPAD0 -> GLFW_KEY_KP_0
  2621. case 0x61:return 321; // DOM_VK_NUMPAD1 -> GLFW_KEY_KP_1
  2622. case 0x62:return 322; // DOM_VK_NUMPAD2 -> GLFW_KEY_KP_2
  2623. case 0x63:return 323; // DOM_VK_NUMPAD3 -> GLFW_KEY_KP_3
  2624. case 0x64:return 324; // DOM_VK_NUMPAD4 -> GLFW_KEY_KP_4
  2625. case 0x65:return 325; // DOM_VK_NUMPAD5 -> GLFW_KEY_KP_5
  2626. case 0x66:return 326; // DOM_VK_NUMPAD6 -> GLFW_KEY_KP_6
  2627. case 0x67:return 327; // DOM_VK_NUMPAD7 -> GLFW_KEY_KP_7
  2628. case 0x68:return 328; // DOM_VK_NUMPAD8 -> GLFW_KEY_KP_8
  2629. case 0x69:return 329; // DOM_VK_NUMPAD9 -> GLFW_KEY_KP_9
  2630. case 0x6E:return 330; // DOM_VK_DECIMAL -> GLFW_KEY_KP_DECIMAL
  2631. case 0x6F:return 331; // DOM_VK_DIVIDE -> GLFW_KEY_KP_DIVIDE
  2632. case 0x6A:return 332; // DOM_VK_MULTIPLY -> GLFW_KEY_KP_MULTIPLY
  2633. case 0x6D:return 333; // DOM_VK_SUBTRACT -> GLFW_KEY_KP_SUBTRACT
  2634. case 0x6B:return 334; // DOM_VK_ADD -> GLFW_KEY_KP_ADD
  2635. // case 0x0D:return 335; // DOM_VK_RETURN -> GLFW_KEY_KP_ENTER (DOM_KEY_LOCATION_RIGHT)
  2636. // case 0x61:return 336; // DOM_VK_EQUALS -> GLFW_KEY_KP_EQUAL (DOM_KEY_LOCATION_RIGHT)
  2637. case 0x10:return 340; // DOM_VK_SHIFT -> GLFW_KEY_LEFT_SHIFT
  2638. case 0x11:return 341; // DOM_VK_CONTROL -> GLFW_KEY_LEFT_CONTROL
  2639. case 0x12:return 342; // DOM_VK_ALT -> GLFW_KEY_LEFT_ALT
  2640. case 0x5B:return 343; // DOM_VK_WIN -> GLFW_KEY_LEFT_SUPER
  2641. // case 0x10:return 344; // DOM_VK_SHIFT -> GLFW_KEY_RIGHT_SHIFT (DOM_KEY_LOCATION_RIGHT)
  2642. // case 0x11:return 345; // DOM_VK_CONTROL -> GLFW_KEY_RIGHT_CONTROL (DOM_KEY_LOCATION_RIGHT)
  2643. // case 0x12:return 346; // DOM_VK_ALT -> GLFW_KEY_RIGHT_ALT (DOM_KEY_LOCATION_RIGHT)
  2644. // case 0x5B:return 347; // DOM_VK_WIN -> GLFW_KEY_RIGHT_SUPER (DOM_KEY_LOCATION_RIGHT)
  2645. case 0x5D:return 348; // DOM_VK_CONTEXT_MENU -> GLFW_KEY_MENU
  2646. // XXX: GLFW_KEY_WORLD_1, GLFW_KEY_WORLD_2 what are these?
  2647. default:return -1; // GLFW_KEY_UNKNOWN
  2648. };
  2649. },getModBits:function (win) {
  2650. var mod = 0;
  2651. if (win.keys[340]) mod |= 0x0001; // GLFW_MOD_SHIFT
  2652. if (win.keys[341]) mod |= 0x0002; // GLFW_MOD_CONTROL
  2653. if (win.keys[342]) mod |= 0x0004; // GLFW_MOD_ALT
  2654. if (win.keys[343]) mod |= 0x0008; // GLFW_MOD_SUPER
  2655. return mod;
  2656. },onKeyPress:function (event) {
  2657. if (!GLFW.active || !GLFW.active.charFunc) return;
  2658. // correct unicode charCode is only available with onKeyPress event
  2659. var charCode = event.charCode;
  2660. if (charCode == 0 || (charCode >= 0x00 && charCode <= 0x1F)) return;
  2661. Module['dynCall_vii'](GLFW.active.charFunc, GLFW.active.id, charCode);
  2662. },onKeyChanged:function (event, status) {
  2663. if (!GLFW.active) return;
  2664. var key = GLFW.DOMToGLFWKeyCode(event.keyCode);
  2665. if (key == -1) return;
  2666. var repeat = status && GLFW.active.keys[key];
  2667. GLFW.active.keys[key] = status;
  2668. if (!GLFW.active.keyFunc) return;
  2669. if (repeat) status = 2; // GLFW_REPEAT
  2670. Module['dynCall_viiiii'](GLFW.active.keyFunc, GLFW.active.id, key, event.keyCode, status, GLFW.getModBits(GLFW.active));
  2671. },onKeydown:function (event) {
  2672. GLFW.onKeyChanged(event, 1); // GLFW_PRESS or GLFW_REPEAT
  2673. // This logic comes directly from the sdl implementation. We cannot
  2674. // call preventDefault on all keydown events otherwise onKeyPress will
  2675. // not get called
  2676. if (event.keyCode === 8 /* backspace */ || event.keyCode === 9 /* tab */) {
  2677. event.preventDefault();
  2678. }
  2679. },onKeyup:function (event) {
  2680. GLFW.onKeyChanged(event, 0); // GLFW_RELEASE
  2681. },onMousemove:function (event) {
  2682. if (!GLFW.active) return;
  2683. Browser.calculateMouseEvent(event);
  2684. if (event.target != Module["canvas"] || !GLFW.active.cursorPosFunc) return;
  2685. Module['dynCall_vidd'](GLFW.active.cursorPosFunc, GLFW.active.id, Browser.mouseX, Browser.mouseY);
  2686. },DOMToGLFWMouseButton:function (event) {
  2687. // DOM and glfw have different button codes.
  2688. // See http://www.w3schools.com/jsref/event_button.asp.
  2689. var eventButton = event['button'];
  2690. if (eventButton > 0) {
  2691. if (eventButton == 1) {
  2692. eventButton = 2;
  2693. } else {
  2694. eventButton = 1;
  2695. }
  2696. }
  2697. return eventButton;
  2698. },onMouseenter:function (event) {
  2699. if (!GLFW.active) return;
  2700. if (event.target != Module["canvas"] || !GLFW.active.cursorEnterFunc) return;
  2701. Module['dynCall_vii'](GLFW.active.cursorEnterFunc, GLFW.active.id, 1);
  2702. },onMouseleave:function (event) {
  2703. if (!GLFW.active) return;
  2704. if (event.target != Module["canvas"] || !GLFW.active.cursorEnterFunc) return;
  2705. Module['dynCall_vii'](GLFW.active.cursorEnterFunc, GLFW.active.id, 0);
  2706. },onMouseButtonChanged:function (event, status) {
  2707. if (!GLFW.active) return;
  2708. Browser.calculateMouseEvent(event);
  2709. if (event.target != Module["canvas"]) return;
  2710. eventButton = GLFW.DOMToGLFWMouseButton(event);
  2711. if (status == 1) { // GLFW_PRESS
  2712. GLFW.active.buttons |= (1 << eventButton);
  2713. try {
  2714. event.target.setCapture();
  2715. } catch (e) {}
  2716. } else { // GLFW_RELEASE
  2717. GLFW.active.buttons &= ~(1 << eventButton);
  2718. }
  2719. if (!GLFW.active.mouseButtonFunc) return;
  2720. Module['dynCall_viiii'](GLFW.active.mouseButtonFunc, GLFW.active.id, eventButton, status, GLFW.getModBits(GLFW.active));
  2721. },onMouseButtonDown:function (event) {
  2722. if (!GLFW.active) return;
  2723. GLFW.onMouseButtonChanged(event, 1); // GLFW_PRESS
  2724. },onMouseButtonUp:function (event) {
  2725. if (!GLFW.active) return;
  2726. GLFW.onMouseButtonChanged(event, 0); // GLFW_RELEASE
  2727. },onMouseWheel:function (event) {
  2728. // Note the minus sign that flips browser wheel direction (positive direction scrolls page down) to native wheel direction (positive direction is mouse wheel up)
  2729. var delta = -Browser.getMouseWheelDelta(event);
  2730. delta = (delta == 0) ? 0 : (delta > 0 ? Math.max(delta, 1) : Math.min(delta, -1)); // Quantize to integer so that minimum scroll is at least +/- 1.
  2731. GLFW.wheelPos += delta;
  2732. if (!GLFW.active || !GLFW.active.scrollFunc || event.target != Module['canvas']) return;
  2733. var sx = 0;
  2734. var sy = 0;
  2735. if (event.type == 'mousewheel') {
  2736. sx = event.wheelDeltaX;
  2737. sy = event.wheelDeltaY;
  2738. } else {
  2739. sx = event.deltaX;
  2740. sy = event.deltaY;
  2741. }
  2742. Module['dynCall_vidd'](GLFW.active.scrollFunc, GLFW.active.id, sx, sy);
  2743. event.preventDefault();
  2744. },onCanvasResize:function (width, height) {
  2745. if (!GLFW.active) return;
  2746. var resizeNeeded = true;
  2747. // If the client is requestiong fullscreen mode
  2748. if (document["fullscreen"] || document["fullScreen"] || document["mozFullScreen"] || document["webkitIsFullScreen"]) {
  2749. GLFW.active.storedX = GLFW.active.x;
  2750. GLFW.active.storedY = GLFW.active.y;
  2751. GLFW.active.storedWidth = GLFW.active.width;
  2752. GLFW.active.storedHeight = GLFW.active.height;
  2753. GLFW.active.x = GLFW.active.y = 0;
  2754. GLFW.active.width = screen.width;
  2755. GLFW.active.height = screen.height;
  2756. GLFW.active.fullscreen = true;
  2757. // If the client is reverting from fullscreen mode
  2758. } else if (GLFW.active.fullscreen == true) {
  2759. GLFW.active.x = GLFW.active.storedX;
  2760. GLFW.active.y = GLFW.active.storedY;
  2761. GLFW.active.width = GLFW.active.storedWidth;
  2762. GLFW.active.height = GLFW.active.storedHeight;
  2763. GLFW.active.fullscreen = false;
  2764. // If the width/height values do not match current active window sizes
  2765. } else if (GLFW.active.width != width || GLFW.active.height != height) {
  2766. GLFW.active.width = width;
  2767. GLFW.active.height = height;
  2768. } else {
  2769. resizeNeeded = false;
  2770. }
  2771. // If any of the above conditions were true, we need to resize the canvas
  2772. if (resizeNeeded) {
  2773. // resets the canvas size to counter the aspect preservation of Browser.updateCanvasDimensions
  2774. Browser.setCanvasSize(GLFW.active.width, GLFW.active.height, true);
  2775. // TODO: Client dimensions (clientWidth/clientHeight) vs pixel dimensions (width/height) of
  2776. // the canvas should drive window and framebuffer size respectfully.
  2777. GLFW.onWindowSizeChanged();
  2778. GLFW.onFramebufferSizeChanged();
  2779. }
  2780. },onWindowSizeChanged:function () {
  2781. if (!GLFW.active) return;
  2782. if (!GLFW.active.windowSizeFunc) return;
  2783. Module['dynCall_viii'](GLFW.active.windowSizeFunc, GLFW.active.id, GLFW.active.width, GLFW.active.height);
  2784. },onFramebufferSizeChanged:function () {
  2785. if (!GLFW.active) return;
  2786. if (!GLFW.active.framebufferSizeFunc) return;
  2787. Module['dynCall_viii'](GLFW.active.framebufferSizeFunc, GLFW.active.id, GLFW.active.width, GLFW.active.height);
  2788. },requestFullscreen:function () {
  2789. var RFS = Module["canvas"]['requestFullscreen'] ||
  2790. Module["canvas"]['mozRequestFullScreen'] ||
  2791. Module["canvas"]['webkitRequestFullScreen'] ||
  2792. (function() {});
  2793. RFS.apply(Module["canvas"], []);
  2794. },requestFullScreen:function () {
  2795. Module.printErr('GLFW.requestFullScreen() is deprecated. Please call GLFW.requestFullscreen instead.');
  2796. GLFW.requestFullScreen = function() {
  2797. return GLFW.requestFullscreen();
  2798. }
  2799. return GLFW.requestFullscreen();
  2800. },exitFullscreen:function () {
  2801. var CFS = document['exitFullscreen'] ||
  2802. document['cancelFullScreen'] ||
  2803. document['mozCancelFullScreen'] ||
  2804. document['webkitCancelFullScreen'] ||
  2805. (function() {});
  2806. CFS.apply(document, []);
  2807. },cancelFullScreen:function () {
  2808. Module.printErr('GLFW.cancelFullScreen() is deprecated. Please call GLFW.exitFullscreen instead.');
  2809. GLFW.cancelFullScreen = function() {
  2810. return GLFW.exitFullscreen();
  2811. }
  2812. return GLFW.exitFullscreen();
  2813. },getTime:function () {
  2814. return _emscripten_get_now() / 1000;
  2815. },setWindowTitle:function (winid, title) {
  2816. var win = GLFW.WindowFromId(winid);
  2817. if (!win) return;
  2818. win.title = Pointer_stringify(title);
  2819. if (GLFW.active.id == win.id) {
  2820. document.title = win.title;
  2821. }
  2822. },setKeyCallback:function (winid, cbfun) {
  2823. var win = GLFW.WindowFromId(winid);
  2824. if (!win) return;
  2825. win.keyFunc = cbfun;
  2826. },setCharCallback:function (winid, cbfun) {
  2827. var win = GLFW.WindowFromId(winid);
  2828. if (!win) return;
  2829. win.charFunc = cbfun;
  2830. },setMouseButtonCallback:function (winid, cbfun) {
  2831. var win = GLFW.WindowFromId(winid);
  2832. if (!win) return;
  2833. win.mouseButtonFunc = cbfun;
  2834. },setCursorPosCallback:function (winid, cbfun) {
  2835. var win = GLFW.WindowFromId(winid);
  2836. if (!win) return;
  2837. win.cursorPosFunc = cbfun;
  2838. },setScrollCallback:function (winid, cbfun) {
  2839. var win = GLFW.WindowFromId(winid);
  2840. if (!win) return;
  2841. win.scrollFunc = cbfun;
  2842. },setWindowSizeCallback:function (winid, cbfun) {
  2843. var win = GLFW.WindowFromId(winid);
  2844. if (!win) return;
  2845. win.windowSizeFunc = cbfun;
  2846. },setWindowCloseCallback:function (winid, cbfun) {
  2847. var win = GLFW.WindowFromId(winid);
  2848. if (!win) return;
  2849. win.windowCloseFunc = cbfun;
  2850. },setWindowRefreshCallback:function (winid, cbfun) {
  2851. var win = GLFW.WindowFromId(winid);
  2852. if (!win) return;
  2853. win.windowRefreshFunc = cbfun;
  2854. },onClickRequestPointerLock:function (e) {
  2855. if (!Browser.pointerLock && Module['canvas'].requestPointerLock) {
  2856. Module['canvas'].requestPointerLock();
  2857. e.preventDefault();
  2858. }
  2859. },setInputMode:function (winid, mode, value) {
  2860. var win = GLFW.WindowFromId(winid);
  2861. if (!win) return;
  2862. switch(mode) {
  2863. case 0x00033001: { // GLFW_CURSOR
  2864. switch(value) {
  2865. case 0x00034001: { // GLFW_CURSOR_NORMAL
  2866. win.inputModes[mode] = value;
  2867. Module['canvas'].removeEventListener('click', GLFW.onClickRequestPointerLock, true);
  2868. Module['canvas'].exitPointerLock();
  2869. break;
  2870. }
  2871. case 0x00034002: { // GLFW_CURSOR_HIDDEN
  2872. console.log("glfwSetInputMode called with GLFW_CURSOR_HIDDEN value not implemented.");
  2873. break;
  2874. }
  2875. case 0x00034003: { // GLFW_CURSOR_DISABLED
  2876. win.inputModes[mode] = value;
  2877. Module['canvas'].addEventListener('click', GLFW.onClickRequestPointerLock, true);
  2878. Module['canvas'].requestPointerLock();
  2879. break;
  2880. }
  2881. default: {
  2882. console.log("glfwSetInputMode called with unknown value parameter value: " + value + ".");
  2883. break;
  2884. }
  2885. }
  2886. break;
  2887. }
  2888. case 0x00033002: { // GLFW_STICKY_KEYS
  2889. console.log("glfwSetInputMode called with GLFW_STICKY_KEYS mode not implemented.");
  2890. break;
  2891. }
  2892. case 0x00033003: { // GLFW_STICKY_MOUSE_BUTTONS
  2893. console.log("glfwSetInputMode called with GLFW_STICKY_MOUSE_BUTTONS mode not implemented.");
  2894. break;
  2895. }
  2896. default: {
  2897. console.log("glfwSetInputMode called with unknown mode parameter value: " + mode + ".");
  2898. break;
  2899. }
  2900. }
  2901. },getKey:function (winid, key) {
  2902. var win = GLFW.WindowFromId(winid);
  2903. if (!win) return 0;
  2904. return win.keys[key];
  2905. },getMouseButton:function (winid, button) {
  2906. var win = GLFW.WindowFromId(winid);
  2907. if (!win) return 0;
  2908. return (win.buttons & (1 << button)) > 0;
  2909. },getCursorPos:function (winid, x, y) {
  2910. setValue(x, Browser.mouseX, 'double');
  2911. setValue(y, Browser.mouseY, 'double');
  2912. },getMousePos:function (winid, x, y) {
  2913. setValue(x, Browser.mouseX, 'i32');
  2914. setValue(y, Browser.mouseY, 'i32');
  2915. },setCursorPos:function (winid, x, y) {
  2916. },getWindowPos:function (winid, x, y) {
  2917. var wx = 0;
  2918. var wy = 0;
  2919. var win = GLFW.WindowFromId(winid);
  2920. if (win) {
  2921. wx = win.x;
  2922. wy = win.y;
  2923. }
  2924. setValue(x, wx, 'i32');
  2925. setValue(y, wy, 'i32');
  2926. },setWindowPos:function (winid, x, y) {
  2927. var win = GLFW.WindowFromId(winid);
  2928. if (!win) return;
  2929. win.x = x;
  2930. win.y = y;
  2931. },getWindowSize:function (winid, width, height) {
  2932. var ww = 0;
  2933. var wh = 0;
  2934. var win = GLFW.WindowFromId(winid);
  2935. if (win) {
  2936. ww = win.width;
  2937. wh = win.height;
  2938. }
  2939. setValue(width, ww, 'i32');
  2940. setValue(height, wh, 'i32');
  2941. },setWindowSize:function (winid, width, height) {
  2942. var win = GLFW.WindowFromId(winid);
  2943. if (!win) return;
  2944. if (GLFW.active.id == win.id) {
  2945. if (width == screen.width && height == screen.height) {
  2946. GLFW.requestFullscreen();
  2947. } else {
  2948. GLFW.exitFullscreen();
  2949. Browser.setCanvasSize(width, height);
  2950. win.width = width;
  2951. win.height = height;
  2952. }
  2953. }
  2954. if (!win.windowSizeFunc) return;
  2955. Module['dynCall_viii'](win.windowSizeFunc, win.id, width, height);
  2956. },createWindow:function (width, height, title, monitor, share) {
  2957. var i, id;
  2958. for (i = 0; i < GLFW.windows.length && GLFW.windows[i] !== null; i++);
  2959. if (i > 0) throw "glfwCreateWindow only supports one window at time currently";
  2960. // id for window
  2961. id = i + 1;
  2962. // not valid
  2963. if (width <= 0 || height <= 0) return 0;
  2964. if (monitor) {
  2965. GLFW.requestFullscreen();
  2966. } else {
  2967. Browser.setCanvasSize(width, height);
  2968. }
  2969. // Create context when there are no existing alive windows
  2970. for (i = 0; i < GLFW.windows.length && GLFW.windows[i] == null; i++);
  2971. if (i == GLFW.windows.length) {
  2972. var contextAttributes = {
  2973. antialias: (GLFW.hints[0x0002100D] > 1), // GLFW_SAMPLES
  2974. depth: (GLFW.hints[0x00021005] > 0), // GLFW_DEPTH_BITS
  2975. stencil: (GLFW.hints[0x00021006] > 0), // GLFW_STENCIL_BITS
  2976. alpha: (GLFW.hints[0x00021004] > 0) // GLFW_ALPHA_BITS
  2977. }
  2978. Module.ctx = Browser.createContext(Module['canvas'], true, true, contextAttributes);
  2979. }
  2980. // If context creation failed, do not return a valid window
  2981. if (!Module.ctx) return 0;
  2982. // Get non alive id
  2983. var win = new GLFW.Window(id, width, height, title, monitor, share);
  2984. // Set window to array
  2985. if (id - 1 == GLFW.windows.length) {
  2986. GLFW.windows.push(win);
  2987. } else {
  2988. GLFW.windows[id - 1] = win;
  2989. }
  2990. GLFW.active = win;
  2991. return win.id;
  2992. },destroyWindow:function (winid) {
  2993. var win = GLFW.WindowFromId(winid);
  2994. if (!win) return;
  2995. if (win.windowCloseFunc)
  2996. Module['dynCall_vi'](win.windowCloseFunc, win.id);
  2997. GLFW.windows[win.id - 1] = null;
  2998. if (GLFW.active.id == win.id)
  2999. GLFW.active = null;
  3000. // Destroy context when no alive windows
  3001. for (var i = 0; i < GLFW.windows.length; i++)
  3002. if (GLFW.windows[i] !== null) return;
  3003. Module.ctx = Browser.destroyContext(Module['canvas'], true, true);
  3004. },swapBuffers:function (winid) {
  3005. },GLFW2ParamToGLFW3Param:function (param) {
  3006. table = {
  3007. 0x00030001:0, // GLFW_MOUSE_CURSOR
  3008. 0x00030002:0, // GLFW_STICKY_KEYS
  3009. 0x00030003:0, // GLFW_STICKY_MOUSE_BUTTONS
  3010. 0x00030004:0, // GLFW_SYSTEM_KEYS
  3011. 0x00030005:0, // GLFW_KEY_REPEAT
  3012. 0x00030006:0, // GLFW_AUTO_POLL_EVENTS
  3013. 0x00020001:0, // GLFW_OPENED
  3014. 0x00020002:0, // GLFW_ACTIVE
  3015. 0x00020003:0, // GLFW_ICONIFIED
  3016. 0x00020004:0, // GLFW_ACCELERATED
  3017. 0x00020005:0x00021001, // GLFW_RED_BITS
  3018. 0x00020006:0x00021002, // GLFW_GREEN_BITS
  3019. 0x00020007:0x00021003, // GLFW_BLUE_BITS
  3020. 0x00020008:0x00021004, // GLFW_ALPHA_BITS
  3021. 0x00020009:0x00021005, // GLFW_DEPTH_BITS
  3022. 0x0002000A:0x00021006, // GLFW_STENCIL_BITS
  3023. 0x0002000B:0x0002100F, // GLFW_REFRESH_RATE
  3024. 0x0002000C:0x00021007, // GLFW_ACCUM_RED_BITS
  3025. 0x0002000D:0x00021008, // GLFW_ACCUM_GREEN_BITS
  3026. 0x0002000E:0x00021009, // GLFW_ACCUM_BLUE_BITS
  3027. 0x0002000F:0x0002100A, // GLFW_ACCUM_ALPHA_BITS
  3028. 0x00020010:0x0002100B, // GLFW_AUX_BUFFERS
  3029. 0x00020011:0x0002100C, // GLFW_STEREO
  3030. 0x00020012:0, // GLFW_WINDOW_NO_RESIZE
  3031. 0x00020013:0x0002100D, // GLFW_FSAA_SAMPLES
  3032. 0x00020014:0x00022002, // GLFW_OPENGL_VERSION_MAJOR
  3033. 0x00020015:0x00022003, // GLFW_OPENGL_VERSION_MINOR
  3034. 0x00020016:0x00022006, // GLFW_OPENGL_FORWARD_COMPAT
  3035. 0x00020017:0x00022007, // GLFW_OPENGL_DEBUG_CONTEXT
  3036. 0x00020018:0x00022008, // GLFW_OPENGL_PROFILE
  3037. };
  3038. return table[param];
  3039. }};function _glfwGetVideoModes(monitor, count) {
  3040. setValue(count, 0, 'i32');
  3041. return 0;
  3042. }
  3043. function _glLinkProgram(program) {
  3044. GLctx.linkProgram(GL.programs[program]);
  3045. GL.programInfos[program] = null; // uniforms no longer keep the same names after linking
  3046. GL.populateUniformTable(program);
  3047. }
  3048. function _glBindTexture(target, texture) {
  3049. GLctx.bindTexture(target, texture ? GL.textures[texture] : null);
  3050. }
  3051. function _emscripten_glStencilFunc(x0, x1, x2) { GLctx['stencilFunc'](x0, x1, x2) }
  3052. function _glGetString(name_) {
  3053. if (GL.stringCache[name_]) return GL.stringCache[name_];
  3054. var ret;
  3055. switch(name_) {
  3056. case 0x1F00 /* GL_VENDOR */:
  3057. case 0x1F01 /* GL_RENDERER */:
  3058. case 0x9245 /* UNMASKED_VENDOR_WEBGL */:
  3059. case 0x9246 /* UNMASKED_RENDERER_WEBGL */:
  3060. ret = allocate(intArrayFromString(GLctx.getParameter(name_)), 'i8', ALLOC_NORMAL);
  3061. break;
  3062. case 0x1F02 /* GL_VERSION */:
  3063. var glVersion = GLctx.getParameter(GLctx.VERSION);
  3064. // return GLES version string corresponding to the version of the WebGL context
  3065. {
  3066. glVersion = 'OpenGL ES 2.0 (' + glVersion + ')';
  3067. }
  3068. ret = allocate(intArrayFromString(glVersion), 'i8', ALLOC_NORMAL);
  3069. break;
  3070. case 0x1F03 /* GL_EXTENSIONS */:
  3071. var exts = GLctx.getSupportedExtensions();
  3072. var gl_exts = [];
  3073. for (var i = 0; i < exts.length; ++i) {
  3074. gl_exts.push(exts[i]);
  3075. gl_exts.push("GL_" + exts[i]);
  3076. }
  3077. ret = allocate(intArrayFromString(gl_exts.join(' ')), 'i8', ALLOC_NORMAL);
  3078. break;
  3079. case 0x8B8C /* GL_SHADING_LANGUAGE_VERSION */:
  3080. var glslVersion = GLctx.getParameter(GLctx.SHADING_LANGUAGE_VERSION);
  3081. // extract the version number 'N.M' from the string 'WebGL GLSL ES N.M ...'
  3082. var ver_re = /^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/;
  3083. var ver_num = glslVersion.match(ver_re);
  3084. if (ver_num !== null) {
  3085. if (ver_num[1].length == 3) ver_num[1] = ver_num[1] + '0'; // ensure minor version has 2 digits
  3086. glslVersion = 'OpenGL ES GLSL ES ' + ver_num[1] + ' (' + glslVersion + ')';
  3087. }
  3088. ret = allocate(intArrayFromString(glslVersion), 'i8', ALLOC_NORMAL);
  3089. break;
  3090. default:
  3091. GL.recordError(0x0500/*GL_INVALID_ENUM*/);
  3092. return 0;
  3093. }
  3094. GL.stringCache[name_] = ret;
  3095. return ret;
  3096. }
  3097. function _emscripten_glUniform3iv(location, count, value) {
  3098. GLctx.uniform3iv(GL.uniforms[location], HEAP32.subarray((value)>>2,(value+count*12)>>2));
  3099. }
  3100. function _emscripten_glShaderSource(shader, count, string, length) {
  3101. var source = GL.getSource(shader, count, string, length);
  3102. GLctx.shaderSource(GL.shaders[shader], source);
  3103. }
  3104. function _emscripten_glReleaseShaderCompiler() {
  3105. // NOP (as allowed by GLES 2.0 spec)
  3106. }
  3107. function _glfwSetScrollCallback(winid, cbfun) {
  3108. GLFW.setScrollCallback(winid, cbfun);
  3109. }
  3110. function _emscripten_glTexParameterf(x0, x1, x2) { GLctx['texParameterf'](x0, x1, x2) }
  3111. function _emscripten_glTexParameteri(x0, x1, x2) { GLctx['texParameteri'](x0, x1, x2) }
  3112. function _glCompileShader(shader) {
  3113. GLctx.compileShader(GL.shaders[shader]);
  3114. }
  3115. var ERRNO_CODES={EPERM:1,ENOENT:2,ESRCH:3,EINTR:4,EIO:5,ENXIO:6,E2BIG:7,ENOEXEC:8,EBADF:9,ECHILD:10,EAGAIN:11,EWOULDBLOCK:11,ENOMEM:12,EACCES:13,EFAULT:14,ENOTBLK:15,EBUSY:16,EEXIST:17,EXDEV:18,ENODEV:19,ENOTDIR:20,EISDIR:21,EINVAL:22,ENFILE:23,EMFILE:24,ENOTTY:25,ETXTBSY:26,EFBIG:27,ENOSPC:28,ESPIPE:29,EROFS:30,EMLINK:31,EPIPE:32,EDOM:33,ERANGE:34,ENOMSG:42,EIDRM:43,ECHRNG:44,EL2NSYNC:45,EL3HLT:46,EL3RST:47,ELNRNG:48,EUNATCH:49,ENOCSI:50,EL2HLT:51,EDEADLK:35,ENOLCK:37,EBADE:52,EBADR:53,EXFULL:54,ENOANO:55,EBADRQC:56,EBADSLT:57,EDEADLOCK:35,EBFONT:59,ENOSTR:60,ENODATA:61,ETIME:62,ENOSR:63,ENONET:64,ENOPKG:65,EREMOTE:66,ENOLINK:67,EADV:68,ESRMNT:69,ECOMM:70,EPROTO:71,EMULTIHOP:72,EDOTDOT:73,EBADMSG:74,ENOTUNIQ:76,EBADFD:77,EREMCHG:78,ELIBACC:79,ELIBBAD:80,ELIBSCN:81,ELIBMAX:82,ELIBEXEC:83,ENOSYS:38,ENOTEMPTY:39,ENAMETOOLONG:36,ELOOP:40,EOPNOTSUPP:95,EPFNOSUPPORT:96,ECONNRESET:104,ENOBUFS:105,EAFNOSUPPORT:97,EPROTOTYPE:91,ENOTSOCK:88,ENOPROTOOPT:92,ESHUTDOWN:108,ECONNREFUSED:111,EADDRINUSE:98,ECONNABORTED:103,ENETUNREACH:101,ENETDOWN:100,ETIMEDOUT:110,EHOSTDOWN:112,EHOSTUNREACH:113,EINPROGRESS:115,EALREADY:114,EDESTADDRREQ:89,EMSGSIZE:90,EPROTONOSUPPORT:93,ESOCKTNOSUPPORT:94,EADDRNOTAVAIL:99,ENETRESET:102,EISCONN:106,ENOTCONN:107,ETOOMANYREFS:109,EUSERS:87,EDQUOT:122,ESTALE:116,ENOTSUP:95,ENOMEDIUM:123,EILSEQ:84,EOVERFLOW:75,ECANCELED:125,ENOTRECOVERABLE:131,EOWNERDEAD:130,ESTRPIPE:86};
  3116. var ERRNO_MESSAGES={0:"Success",1:"Not super-user",2:"No such file or directory",3:"No such process",4:"Interrupted system call",5:"I/O error",6:"No such device or address",7:"Arg list too long",8:"Exec format error",9:"Bad file number",10:"No children",11:"No more processes",12:"Not enough core",13:"Permission denied",14:"Bad address",15:"Block device required",16:"Mount device busy",17:"File exists",18:"Cross-device link",19:"No such device",20:"Not a directory",21:"Is a directory",22:"Invalid argument",23:"Too many open files in system",24:"Too many open files",25:"Not a typewriter",26:"Text file busy",27:"File too large",28:"No space left on device",29:"Illegal seek",30:"Read only file system",31:"Too many links",32:"Broken pipe",33:"Math arg out of domain of func",34:"Math result not representable",35:"File locking deadlock error",36:"File or path name too long",37:"No record locks available",38:"Function not implemented",39:"Directory not empty",40:"Too many symbolic links",42:"No message of desired type",43:"Identifier removed",44:"Channel number out of range",45:"Level 2 not synchronized",46:"Level 3 halted",47:"Level 3 reset",48:"Link number out of range",49:"Protocol driver not attached",50:"No CSI structure available",51:"Level 2 halted",52:"Invalid exchange",53:"Invalid request descriptor",54:"Exchange full",55:"No anode",56:"Invalid request code",57:"Invalid slot",59:"Bad font file fmt",60:"Device not a stream",61:"No data (for no delay io)",62:"Timer expired",63:"Out of streams resources",64:"Machine is not on the network",65:"Package not installed",66:"The object is remote",67:"The link has been severed",68:"Advertise error",69:"Srmount error",70:"Communication error on send",71:"Protocol error",72:"Multihop attempted",73:"Cross mount point (not really error)",74:"Trying to read unreadable message",75:"Value too large for defined data type",76:"Given log. name not unique",77:"f.d. invalid for this operation",78:"Remote address changed",79:"Can access a needed shared lib",80:"Accessing a corrupted shared lib",81:".lib section in a.out corrupted",82:"Attempting to link in too many libs",83:"Attempting to exec a shared library",84:"Illegal byte sequence",86:"Streams pipe error",87:"Too many users",88:"Socket operation on non-socket",89:"Destination address required",90:"Message too long",91:"Protocol wrong type for socket",92:"Protocol not available",93:"Unknown protocol",94:"Socket type not supported",95:"Not supported",96:"Protocol family not supported",97:"Address family not supported by protocol family",98:"Address already in use",99:"Address not available",100:"Network interface is not configured",101:"Network is unreachable",102:"Connection reset by network",103:"Connection aborted",104:"Connection reset by peer",105:"No buffer space available",106:"Socket is already connected",107:"Socket is not connected",108:"Can't send after socket shutdown",109:"Too many references",110:"Connection timed out",111:"Connection refused",112:"Host is down",113:"Host is unreachable",114:"Socket already connected",115:"Connection already in progress",116:"Stale file handle",122:"Quota exceeded",123:"No medium (in tape drive)",125:"Operation canceled",130:"Previous owner died",131:"State not recoverable"};
  3117. function ___setErrNo(value) {
  3118. if (Module['___errno_location']) HEAP32[((Module['___errno_location']())>>2)]=value;
  3119. else Module.printErr('failed to set errno from JS');
  3120. return value;
  3121. }
  3122. var PATH={splitPath:function (filename) {
  3123. var splitPathRe = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;
  3124. return splitPathRe.exec(filename).slice(1);
  3125. },normalizeArray:function (parts, allowAboveRoot) {
  3126. // if the path tries to go above the root, `up` ends up > 0
  3127. var up = 0;
  3128. for (var i = parts.length - 1; i >= 0; i--) {
  3129. var last = parts[i];
  3130. if (last === '.') {
  3131. parts.splice(i, 1);
  3132. } else if (last === '..') {
  3133. parts.splice(i, 1);
  3134. up++;
  3135. } else if (up) {
  3136. parts.splice(i, 1);
  3137. up--;
  3138. }
  3139. }
  3140. // if the path is allowed to go above the root, restore leading ..s
  3141. if (allowAboveRoot) {
  3142. for (; up--; up) {
  3143. parts.unshift('..');
  3144. }
  3145. }
  3146. return parts;
  3147. },normalize:function (path) {
  3148. var isAbsolute = path.charAt(0) === '/',
  3149. trailingSlash = path.substr(-1) === '/';
  3150. // Normalize the path
  3151. path = PATH.normalizeArray(path.split('/').filter(function(p) {
  3152. return !!p;
  3153. }), !isAbsolute).join('/');
  3154. if (!path && !isAbsolute) {
  3155. path = '.';
  3156. }
  3157. if (path && trailingSlash) {
  3158. path += '/';
  3159. }
  3160. return (isAbsolute ? '/' : '') + path;
  3161. },dirname:function (path) {
  3162. var result = PATH.splitPath(path),
  3163. root = result[0],
  3164. dir = result[1];
  3165. if (!root && !dir) {
  3166. // No dirname whatsoever
  3167. return '.';
  3168. }
  3169. if (dir) {
  3170. // It has a dirname, strip trailing slash
  3171. dir = dir.substr(0, dir.length - 1);
  3172. }
  3173. return root + dir;
  3174. },basename:function (path) {
  3175. // EMSCRIPTEN return '/'' for '/', not an empty string
  3176. if (path === '/') return '/';
  3177. var lastSlash = path.lastIndexOf('/');
  3178. if (lastSlash === -1) return path;
  3179. return path.substr(lastSlash+1);
  3180. },extname:function (path) {
  3181. return PATH.splitPath(path)[3];
  3182. },join:function () {
  3183. var paths = Array.prototype.slice.call(arguments, 0);
  3184. return PATH.normalize(paths.join('/'));
  3185. },join2:function (l, r) {
  3186. return PATH.normalize(l + '/' + r);
  3187. },resolve:function () {
  3188. var resolvedPath = '',
  3189. resolvedAbsolute = false;
  3190. for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
  3191. var path = (i >= 0) ? arguments[i] : FS.cwd();
  3192. // Skip empty and invalid entries
  3193. if (typeof path !== 'string') {
  3194. throw new TypeError('Arguments to path.resolve must be strings');
  3195. } else if (!path) {
  3196. return ''; // an invalid portion invalidates the whole thing
  3197. }
  3198. resolvedPath = path + '/' + resolvedPath;
  3199. resolvedAbsolute = path.charAt(0) === '/';
  3200. }
  3201. // At this point the path should be resolved to a full absolute path, but
  3202. // handle relative paths to be safe (might happen when process.cwd() fails)
  3203. resolvedPath = PATH.normalizeArray(resolvedPath.split('/').filter(function(p) {
  3204. return !!p;
  3205. }), !resolvedAbsolute).join('/');
  3206. return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
  3207. },relative:function (from, to) {
  3208. from = PATH.resolve(from).substr(1);
  3209. to = PATH.resolve(to).substr(1);
  3210. function trim(arr) {
  3211. var start = 0;
  3212. for (; start < arr.length; start++) {
  3213. if (arr[start] !== '') break;
  3214. }
  3215. var end = arr.length - 1;
  3216. for (; end >= 0; end--) {
  3217. if (arr[end] !== '') break;
  3218. }
  3219. if (start > end) return [];
  3220. return arr.slice(start, end - start + 1);
  3221. }
  3222. var fromParts = trim(from.split('/'));
  3223. var toParts = trim(to.split('/'));
  3224. var length = Math.min(fromParts.length, toParts.length);
  3225. var samePartsLength = length;
  3226. for (var i = 0; i < length; i++) {
  3227. if (fromParts[i] !== toParts[i]) {
  3228. samePartsLength = i;
  3229. break;
  3230. }
  3231. }
  3232. var outputParts = [];
  3233. for (var i = samePartsLength; i < fromParts.length; i++) {
  3234. outputParts.push('..');
  3235. }
  3236. outputParts = outputParts.concat(toParts.slice(samePartsLength));
  3237. return outputParts.join('/');
  3238. }};
  3239. var TTY={ttys:[],init:function () {
  3240. // https://github.com/kripken/emscripten/pull/1555
  3241. // if (ENVIRONMENT_IS_NODE) {
  3242. // // currently, FS.init does not distinguish if process.stdin is a file or TTY
  3243. // // device, it always assumes it's a TTY device. because of this, we're forcing
  3244. // // process.stdin to UTF8 encoding to at least make stdin reading compatible
  3245. // // with text files until FS.init can be refactored.
  3246. // process['stdin']['setEncoding']('utf8');
  3247. // }
  3248. },shutdown:function () {
  3249. // https://github.com/kripken/emscripten/pull/1555
  3250. // if (ENVIRONMENT_IS_NODE) {
  3251. // // inolen: any idea as to why node -e 'process.stdin.read()' wouldn't exit immediately (with process.stdin being a tty)?
  3252. // // isaacs: because now it's reading from the stream, you've expressed interest in it, so that read() kicks off a _read() which creates a ReadReq operation
  3253. // // inolen: I thought read() in that case was a synchronous operation that just grabbed some amount of buffered data if it exists?
  3254. // // isaacs: it is. but it also triggers a _read() call, which calls readStart() on the handle
  3255. // // isaacs: do process.stdin.pause() and i'd think it'd probably close the pending call
  3256. // process['stdin']['pause']();
  3257. // }
  3258. },register:function (dev, ops) {
  3259. TTY.ttys[dev] = { input: [], output: [], ops: ops };
  3260. FS.registerDevice(dev, TTY.stream_ops);
  3261. },stream_ops:{open:function (stream) {
  3262. var tty = TTY.ttys[stream.node.rdev];
  3263. if (!tty) {
  3264. throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
  3265. }
  3266. stream.tty = tty;
  3267. stream.seekable = false;
  3268. },close:function (stream) {
  3269. // flush any pending line data
  3270. stream.tty.ops.flush(stream.tty);
  3271. },flush:function (stream) {
  3272. stream.tty.ops.flush(stream.tty);
  3273. },read:function (stream, buffer, offset, length, pos /* ignored */) {
  3274. if (!stream.tty || !stream.tty.ops.get_char) {
  3275. throw new FS.ErrnoError(ERRNO_CODES.ENXIO);
  3276. }
  3277. var bytesRead = 0;
  3278. for (var i = 0; i < length; i++) {
  3279. var result;
  3280. try {
  3281. result = stream.tty.ops.get_char(stream.tty);
  3282. } catch (e) {
  3283. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  3284. }
  3285. if (result === undefined && bytesRead === 0) {
  3286. throw new FS.ErrnoError(ERRNO_CODES.EAGAIN);
  3287. }
  3288. if (result === null || result === undefined) break;
  3289. bytesRead++;
  3290. buffer[offset+i] = result;
  3291. }
  3292. if (bytesRead) {
  3293. stream.node.timestamp = Date.now();
  3294. }
  3295. return bytesRead;
  3296. },write:function (stream, buffer, offset, length, pos) {
  3297. if (!stream.tty || !stream.tty.ops.put_char) {
  3298. throw new FS.ErrnoError(ERRNO_CODES.ENXIO);
  3299. }
  3300. for (var i = 0; i < length; i++) {
  3301. try {
  3302. stream.tty.ops.put_char(stream.tty, buffer[offset+i]);
  3303. } catch (e) {
  3304. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  3305. }
  3306. }
  3307. if (length) {
  3308. stream.node.timestamp = Date.now();
  3309. }
  3310. return i;
  3311. }},default_tty_ops:{get_char:function (tty) {
  3312. if (!tty.input.length) {
  3313. var result = null;
  3314. if (ENVIRONMENT_IS_NODE) {
  3315. // we will read data by chunks of BUFSIZE
  3316. var BUFSIZE = 256;
  3317. var buf = new Buffer(BUFSIZE);
  3318. var bytesRead = 0;
  3319. var isPosixPlatform = (process.platform != 'win32'); // Node doesn't offer a direct check, so test by exclusion
  3320. var fd = process.stdin.fd;
  3321. if (isPosixPlatform) {
  3322. // Linux and Mac cannot use process.stdin.fd (which isn't set up as sync)
  3323. var usingDevice = false;
  3324. try {
  3325. fd = fs.openSync('/dev/stdin', 'r');
  3326. usingDevice = true;
  3327. } catch (e) {}
  3328. }
  3329. try {
  3330. bytesRead = fs.readSync(fd, buf, 0, BUFSIZE, null);
  3331. } catch(e) {
  3332. // Cross-platform differences: on Windows, reading EOF throws an exception, but on other OSes,
  3333. // reading EOF returns 0. Uniformize behavior by treating the EOF exception to return 0.
  3334. if (e.toString().indexOf('EOF') != -1) bytesRead = 0;
  3335. else throw e;
  3336. }
  3337. if (usingDevice) { fs.closeSync(fd); }
  3338. if (bytesRead > 0) {
  3339. result = buf.slice(0, bytesRead).toString('utf-8');
  3340. } else {
  3341. result = null;
  3342. }
  3343. } else if (typeof window != 'undefined' &&
  3344. typeof window.prompt == 'function') {
  3345. // Browser.
  3346. result = window.prompt('Input: '); // returns null on cancel
  3347. if (result !== null) {
  3348. result += '\n';
  3349. }
  3350. } else if (typeof readline == 'function') {
  3351. // Command line.
  3352. result = readline();
  3353. if (result !== null) {
  3354. result += '\n';
  3355. }
  3356. }
  3357. if (!result) {
  3358. return null;
  3359. }
  3360. tty.input = intArrayFromString(result, true);
  3361. }
  3362. return tty.input.shift();
  3363. },put_char:function (tty, val) {
  3364. if (val === null || val === 10) {
  3365. Module['print'](UTF8ArrayToString(tty.output, 0));
  3366. tty.output = [];
  3367. } else {
  3368. if (val != 0) tty.output.push(val); // val == 0 would cut text output off in the middle.
  3369. }
  3370. },flush:function (tty) {
  3371. if (tty.output && tty.output.length > 0) {
  3372. Module['print'](UTF8ArrayToString(tty.output, 0));
  3373. tty.output = [];
  3374. }
  3375. }},default_tty1_ops:{put_char:function (tty, val) {
  3376. if (val === null || val === 10) {
  3377. Module['printErr'](UTF8ArrayToString(tty.output, 0));
  3378. tty.output = [];
  3379. } else {
  3380. if (val != 0) tty.output.push(val);
  3381. }
  3382. },flush:function (tty) {
  3383. if (tty.output && tty.output.length > 0) {
  3384. Module['printErr'](UTF8ArrayToString(tty.output, 0));
  3385. tty.output = [];
  3386. }
  3387. }}};
  3388. var MEMFS={ops_table:null,mount:function (mount) {
  3389. return MEMFS.createNode(null, '/', 16384 | 511 /* 0777 */, 0);
  3390. },createNode:function (parent, name, mode, dev) {
  3391. if (FS.isBlkdev(mode) || FS.isFIFO(mode)) {
  3392. // no supported
  3393. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  3394. }
  3395. if (!MEMFS.ops_table) {
  3396. MEMFS.ops_table = {
  3397. dir: {
  3398. node: {
  3399. getattr: MEMFS.node_ops.getattr,
  3400. setattr: MEMFS.node_ops.setattr,
  3401. lookup: MEMFS.node_ops.lookup,
  3402. mknod: MEMFS.node_ops.mknod,
  3403. rename: MEMFS.node_ops.rename,
  3404. unlink: MEMFS.node_ops.unlink,
  3405. rmdir: MEMFS.node_ops.rmdir,
  3406. readdir: MEMFS.node_ops.readdir,
  3407. symlink: MEMFS.node_ops.symlink
  3408. },
  3409. stream: {
  3410. llseek: MEMFS.stream_ops.llseek
  3411. }
  3412. },
  3413. file: {
  3414. node: {
  3415. getattr: MEMFS.node_ops.getattr,
  3416. setattr: MEMFS.node_ops.setattr
  3417. },
  3418. stream: {
  3419. llseek: MEMFS.stream_ops.llseek,
  3420. read: MEMFS.stream_ops.read,
  3421. write: MEMFS.stream_ops.write,
  3422. allocate: MEMFS.stream_ops.allocate,
  3423. mmap: MEMFS.stream_ops.mmap,
  3424. msync: MEMFS.stream_ops.msync
  3425. }
  3426. },
  3427. link: {
  3428. node: {
  3429. getattr: MEMFS.node_ops.getattr,
  3430. setattr: MEMFS.node_ops.setattr,
  3431. readlink: MEMFS.node_ops.readlink
  3432. },
  3433. stream: {}
  3434. },
  3435. chrdev: {
  3436. node: {
  3437. getattr: MEMFS.node_ops.getattr,
  3438. setattr: MEMFS.node_ops.setattr
  3439. },
  3440. stream: FS.chrdev_stream_ops
  3441. }
  3442. };
  3443. }
  3444. var node = FS.createNode(parent, name, mode, dev);
  3445. if (FS.isDir(node.mode)) {
  3446. node.node_ops = MEMFS.ops_table.dir.node;
  3447. node.stream_ops = MEMFS.ops_table.dir.stream;
  3448. node.contents = {};
  3449. } else if (FS.isFile(node.mode)) {
  3450. node.node_ops = MEMFS.ops_table.file.node;
  3451. node.stream_ops = MEMFS.ops_table.file.stream;
  3452. node.usedBytes = 0; // The actual number of bytes used in the typed array, as opposed to contents.length which gives the whole capacity.
  3453. // When the byte data of the file is populated, this will point to either a typed array, or a normal JS array. Typed arrays are preferred
  3454. // for performance, and used by default. However, typed arrays are not resizable like normal JS arrays are, so there is a small disk size
  3455. // penalty involved for appending file writes that continuously grow a file similar to std::vector capacity vs used -scheme.
  3456. node.contents = null;
  3457. } else if (FS.isLink(node.mode)) {
  3458. node.node_ops = MEMFS.ops_table.link.node;
  3459. node.stream_ops = MEMFS.ops_table.link.stream;
  3460. } else if (FS.isChrdev(node.mode)) {
  3461. node.node_ops = MEMFS.ops_table.chrdev.node;
  3462. node.stream_ops = MEMFS.ops_table.chrdev.stream;
  3463. }
  3464. node.timestamp = Date.now();
  3465. // add the new node to the parent
  3466. if (parent) {
  3467. parent.contents[name] = node;
  3468. }
  3469. return node;
  3470. },getFileDataAsRegularArray:function (node) {
  3471. if (node.contents && node.contents.subarray) {
  3472. var arr = [];
  3473. for (var i = 0; i < node.usedBytes; ++i) arr.push(node.contents[i]);
  3474. return arr; // Returns a copy of the original data.
  3475. }
  3476. return node.contents; // No-op, the file contents are already in a JS array. Return as-is.
  3477. },getFileDataAsTypedArray:function (node) {
  3478. if (!node.contents) return new Uint8Array;
  3479. if (node.contents.subarray) return node.contents.subarray(0, node.usedBytes); // Make sure to not return excess unused bytes.
  3480. return new Uint8Array(node.contents);
  3481. },expandFileStorage:function (node, newCapacity) {
  3482. // If we are asked to expand the size of a file that already exists, revert to using a standard JS array to store the file
  3483. // instead of a typed array. This makes resizing the array more flexible because we can just .push() elements at the back to
  3484. // increase the size.
  3485. if (node.contents && node.contents.subarray && newCapacity > node.contents.length) {
  3486. node.contents = MEMFS.getFileDataAsRegularArray(node);
  3487. node.usedBytes = node.contents.length; // We might be writing to a lazy-loaded file which had overridden this property, so force-reset it.
  3488. }
  3489. if (!node.contents || node.contents.subarray) { // Keep using a typed array if creating a new storage, or if old one was a typed array as well.
  3490. var prevCapacity = node.contents ? node.contents.length : 0;
  3491. if (prevCapacity >= newCapacity) return; // No need to expand, the storage was already large enough.
  3492. // Don't expand strictly to the given requested limit if it's only a very small increase, but instead geometrically grow capacity.
  3493. // For small filesizes (<1MB), perform size*2 geometric increase, but for large sizes, do a much more conservative size*1.125 increase to
  3494. // avoid overshooting the allocation cap by a very large margin.
  3495. var CAPACITY_DOUBLING_MAX = 1024 * 1024;
  3496. newCapacity = Math.max(newCapacity, (prevCapacity * (prevCapacity < CAPACITY_DOUBLING_MAX ? 2.0 : 1.125)) | 0);
  3497. if (prevCapacity != 0) newCapacity = Math.max(newCapacity, 256); // At minimum allocate 256b for each file when expanding.
  3498. var oldContents = node.contents;
  3499. node.contents = new Uint8Array(newCapacity); // Allocate new storage.
  3500. if (node.usedBytes > 0) node.contents.set(oldContents.subarray(0, node.usedBytes), 0); // Copy old data over to the new storage.
  3501. return;
  3502. }
  3503. // Not using a typed array to back the file storage. Use a standard JS array instead.
  3504. if (!node.contents && newCapacity > 0) node.contents = [];
  3505. while (node.contents.length < newCapacity) node.contents.push(0);
  3506. },resizeFileStorage:function (node, newSize) {
  3507. if (node.usedBytes == newSize) return;
  3508. if (newSize == 0) {
  3509. node.contents = null; // Fully decommit when requesting a resize to zero.
  3510. node.usedBytes = 0;
  3511. return;
  3512. }
  3513. if (!node.contents || node.contents.subarray) { // Resize a typed array if that is being used as the backing store.
  3514. var oldContents = node.contents;
  3515. node.contents = new Uint8Array(new ArrayBuffer(newSize)); // Allocate new storage.
  3516. if (oldContents) {
  3517. node.contents.set(oldContents.subarray(0, Math.min(newSize, node.usedBytes))); // Copy old data over to the new storage.
  3518. }
  3519. node.usedBytes = newSize;
  3520. return;
  3521. }
  3522. // Backing with a JS array.
  3523. if (!node.contents) node.contents = [];
  3524. if (node.contents.length > newSize) node.contents.length = newSize;
  3525. else while (node.contents.length < newSize) node.contents.push(0);
  3526. node.usedBytes = newSize;
  3527. },node_ops:{getattr:function (node) {
  3528. var attr = {};
  3529. // device numbers reuse inode numbers.
  3530. attr.dev = FS.isChrdev(node.mode) ? node.id : 1;
  3531. attr.ino = node.id;
  3532. attr.mode = node.mode;
  3533. attr.nlink = 1;
  3534. attr.uid = 0;
  3535. attr.gid = 0;
  3536. attr.rdev = node.rdev;
  3537. if (FS.isDir(node.mode)) {
  3538. attr.size = 4096;
  3539. } else if (FS.isFile(node.mode)) {
  3540. attr.size = node.usedBytes;
  3541. } else if (FS.isLink(node.mode)) {
  3542. attr.size = node.link.length;
  3543. } else {
  3544. attr.size = 0;
  3545. }
  3546. attr.atime = new Date(node.timestamp);
  3547. attr.mtime = new Date(node.timestamp);
  3548. attr.ctime = new Date(node.timestamp);
  3549. // NOTE: In our implementation, st_blocks = Math.ceil(st_size/st_blksize),
  3550. // but this is not required by the standard.
  3551. attr.blksize = 4096;
  3552. attr.blocks = Math.ceil(attr.size / attr.blksize);
  3553. return attr;
  3554. },setattr:function (node, attr) {
  3555. if (attr.mode !== undefined) {
  3556. node.mode = attr.mode;
  3557. }
  3558. if (attr.timestamp !== undefined) {
  3559. node.timestamp = attr.timestamp;
  3560. }
  3561. if (attr.size !== undefined) {
  3562. MEMFS.resizeFileStorage(node, attr.size);
  3563. }
  3564. },lookup:function (parent, name) {
  3565. throw FS.genericErrors[ERRNO_CODES.ENOENT];
  3566. },mknod:function (parent, name, mode, dev) {
  3567. return MEMFS.createNode(parent, name, mode, dev);
  3568. },rename:function (old_node, new_dir, new_name) {
  3569. // if we're overwriting a directory at new_name, make sure it's empty.
  3570. if (FS.isDir(old_node.mode)) {
  3571. var new_node;
  3572. try {
  3573. new_node = FS.lookupNode(new_dir, new_name);
  3574. } catch (e) {
  3575. }
  3576. if (new_node) {
  3577. for (var i in new_node.contents) {
  3578. throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY);
  3579. }
  3580. }
  3581. }
  3582. // do the internal rewiring
  3583. delete old_node.parent.contents[old_node.name];
  3584. old_node.name = new_name;
  3585. new_dir.contents[new_name] = old_node;
  3586. old_node.parent = new_dir;
  3587. },unlink:function (parent, name) {
  3588. delete parent.contents[name];
  3589. },rmdir:function (parent, name) {
  3590. var node = FS.lookupNode(parent, name);
  3591. for (var i in node.contents) {
  3592. throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY);
  3593. }
  3594. delete parent.contents[name];
  3595. },readdir:function (node) {
  3596. var entries = ['.', '..']
  3597. for (var key in node.contents) {
  3598. if (!node.contents.hasOwnProperty(key)) {
  3599. continue;
  3600. }
  3601. entries.push(key);
  3602. }
  3603. return entries;
  3604. },symlink:function (parent, newname, oldpath) {
  3605. var node = MEMFS.createNode(parent, newname, 511 /* 0777 */ | 40960, 0);
  3606. node.link = oldpath;
  3607. return node;
  3608. },readlink:function (node) {
  3609. if (!FS.isLink(node.mode)) {
  3610. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  3611. }
  3612. return node.link;
  3613. }},stream_ops:{read:function (stream, buffer, offset, length, position) {
  3614. var contents = stream.node.contents;
  3615. if (position >= stream.node.usedBytes) return 0;
  3616. var size = Math.min(stream.node.usedBytes - position, length);
  3617. assert(size >= 0);
  3618. if (size > 8 && contents.subarray) { // non-trivial, and typed array
  3619. buffer.set(contents.subarray(position, position + size), offset);
  3620. } else {
  3621. for (var i = 0; i < size; i++) buffer[offset + i] = contents[position + i];
  3622. }
  3623. return size;
  3624. },write:function (stream, buffer, offset, length, position, canOwn) {
  3625. if (!length) return 0;
  3626. var node = stream.node;
  3627. node.timestamp = Date.now();
  3628. if (buffer.subarray && (!node.contents || node.contents.subarray)) { // This write is from a typed array to a typed array?
  3629. if (canOwn) {
  3630. assert(position === 0, 'canOwn must imply no weird position inside the file');
  3631. node.contents = buffer.subarray(offset, offset + length);
  3632. node.usedBytes = length;
  3633. return length;
  3634. } else if (node.usedBytes === 0 && position === 0) { // If this is a simple first write to an empty file, do a fast set since we don't need to care about old data.
  3635. node.contents = new Uint8Array(buffer.subarray(offset, offset + length));
  3636. node.usedBytes = length;
  3637. return length;
  3638. } else if (position + length <= node.usedBytes) { // Writing to an already allocated and used subrange of the file?
  3639. node.contents.set(buffer.subarray(offset, offset + length), position);
  3640. return length;
  3641. }
  3642. }
  3643. // Appending to an existing file and we need to reallocate, or source data did not come as a typed array.
  3644. MEMFS.expandFileStorage(node, position+length);
  3645. if (node.contents.subarray && buffer.subarray) node.contents.set(buffer.subarray(offset, offset + length), position); // Use typed array write if available.
  3646. else {
  3647. for (var i = 0; i < length; i++) {
  3648. node.contents[position + i] = buffer[offset + i]; // Or fall back to manual write if not.
  3649. }
  3650. }
  3651. node.usedBytes = Math.max(node.usedBytes, position+length);
  3652. return length;
  3653. },llseek:function (stream, offset, whence) {
  3654. var position = offset;
  3655. if (whence === 1) { // SEEK_CUR.
  3656. position += stream.position;
  3657. } else if (whence === 2) { // SEEK_END.
  3658. if (FS.isFile(stream.node.mode)) {
  3659. position += stream.node.usedBytes;
  3660. }
  3661. }
  3662. if (position < 0) {
  3663. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  3664. }
  3665. return position;
  3666. },allocate:function (stream, offset, length) {
  3667. MEMFS.expandFileStorage(stream.node, offset + length);
  3668. stream.node.usedBytes = Math.max(stream.node.usedBytes, offset + length);
  3669. },mmap:function (stream, buffer, offset, length, position, prot, flags) {
  3670. if (!FS.isFile(stream.node.mode)) {
  3671. throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
  3672. }
  3673. var ptr;
  3674. var allocated;
  3675. var contents = stream.node.contents;
  3676. // Only make a new copy when MAP_PRIVATE is specified.
  3677. if ( !(flags & 2) &&
  3678. (contents.buffer === buffer || contents.buffer === buffer.buffer) ) {
  3679. // We can't emulate MAP_SHARED when the file is not backed by the buffer
  3680. // we're mapping to (e.g. the HEAP buffer).
  3681. allocated = false;
  3682. ptr = contents.byteOffset;
  3683. } else {
  3684. // Try to avoid unnecessary slices.
  3685. if (position > 0 || position + length < stream.node.usedBytes) {
  3686. if (contents.subarray) {
  3687. contents = contents.subarray(position, position + length);
  3688. } else {
  3689. contents = Array.prototype.slice.call(contents, position, position + length);
  3690. }
  3691. }
  3692. allocated = true;
  3693. ptr = _malloc(length);
  3694. if (!ptr) {
  3695. throw new FS.ErrnoError(ERRNO_CODES.ENOMEM);
  3696. }
  3697. buffer.set(contents, ptr);
  3698. }
  3699. return { ptr: ptr, allocated: allocated };
  3700. },msync:function (stream, buffer, offset, length, mmapFlags) {
  3701. if (!FS.isFile(stream.node.mode)) {
  3702. throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
  3703. }
  3704. if (mmapFlags & 2) {
  3705. // MAP_PRIVATE calls need not to be synced back to underlying fs
  3706. return 0;
  3707. }
  3708. var bytesWritten = MEMFS.stream_ops.write(stream, buffer, 0, length, offset, false);
  3709. // should we check if bytesWritten and length are the same?
  3710. return 0;
  3711. }}};
  3712. var IDBFS={dbs:{},indexedDB:function () {
  3713. if (typeof indexedDB !== 'undefined') return indexedDB;
  3714. var ret = null;
  3715. if (typeof window === 'object') ret = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB;
  3716. assert(ret, 'IDBFS used, but indexedDB not supported');
  3717. return ret;
  3718. },DB_VERSION:21,DB_STORE_NAME:"FILE_DATA",mount:function (mount) {
  3719. // reuse all of the core MEMFS functionality
  3720. return MEMFS.mount.apply(null, arguments);
  3721. },syncfs:function (mount, populate, callback) {
  3722. IDBFS.getLocalSet(mount, function(err, local) {
  3723. if (err) return callback(err);
  3724. IDBFS.getRemoteSet(mount, function(err, remote) {
  3725. if (err) return callback(err);
  3726. var src = populate ? remote : local;
  3727. var dst = populate ? local : remote;
  3728. IDBFS.reconcile(src, dst, callback);
  3729. });
  3730. });
  3731. },getDB:function (name, callback) {
  3732. // check the cache first
  3733. var db = IDBFS.dbs[name];
  3734. if (db) {
  3735. return callback(null, db);
  3736. }
  3737. var req;
  3738. try {
  3739. req = IDBFS.indexedDB().open(name, IDBFS.DB_VERSION);
  3740. } catch (e) {
  3741. return callback(e);
  3742. }
  3743. if (!req) {
  3744. return callback("Unable to connect to IndexedDB");
  3745. }
  3746. req.onupgradeneeded = function(e) {
  3747. var db = e.target.result;
  3748. var transaction = e.target.transaction;
  3749. var fileStore;
  3750. if (db.objectStoreNames.contains(IDBFS.DB_STORE_NAME)) {
  3751. fileStore = transaction.objectStore(IDBFS.DB_STORE_NAME);
  3752. } else {
  3753. fileStore = db.createObjectStore(IDBFS.DB_STORE_NAME);
  3754. }
  3755. if (!fileStore.indexNames.contains('timestamp')) {
  3756. fileStore.createIndex('timestamp', 'timestamp', { unique: false });
  3757. }
  3758. };
  3759. req.onsuccess = function() {
  3760. db = req.result;
  3761. // add to the cache
  3762. IDBFS.dbs[name] = db;
  3763. callback(null, db);
  3764. };
  3765. req.onerror = function(e) {
  3766. callback(this.error);
  3767. e.preventDefault();
  3768. };
  3769. },getLocalSet:function (mount, callback) {
  3770. var entries = {};
  3771. function isRealDir(p) {
  3772. return p !== '.' && p !== '..';
  3773. };
  3774. function toAbsolute(root) {
  3775. return function(p) {
  3776. return PATH.join2(root, p);
  3777. }
  3778. };
  3779. var check = FS.readdir(mount.mountpoint).filter(isRealDir).map(toAbsolute(mount.mountpoint));
  3780. while (check.length) {
  3781. var path = check.pop();
  3782. var stat;
  3783. try {
  3784. stat = FS.stat(path);
  3785. } catch (e) {
  3786. return callback(e);
  3787. }
  3788. if (FS.isDir(stat.mode)) {
  3789. check.push.apply(check, FS.readdir(path).filter(isRealDir).map(toAbsolute(path)));
  3790. }
  3791. entries[path] = { timestamp: stat.mtime };
  3792. }
  3793. return callback(null, { type: 'local', entries: entries });
  3794. },getRemoteSet:function (mount, callback) {
  3795. var entries = {};
  3796. IDBFS.getDB(mount.mountpoint, function(err, db) {
  3797. if (err) return callback(err);
  3798. var transaction = db.transaction([IDBFS.DB_STORE_NAME], 'readonly');
  3799. transaction.onerror = function(e) {
  3800. callback(this.error);
  3801. e.preventDefault();
  3802. };
  3803. var store = transaction.objectStore(IDBFS.DB_STORE_NAME);
  3804. var index = store.index('timestamp');
  3805. index.openKeyCursor().onsuccess = function(event) {
  3806. var cursor = event.target.result;
  3807. if (!cursor) {
  3808. return callback(null, { type: 'remote', db: db, entries: entries });
  3809. }
  3810. entries[cursor.primaryKey] = { timestamp: cursor.key };
  3811. cursor.continue();
  3812. };
  3813. });
  3814. },loadLocalEntry:function (path, callback) {
  3815. var stat, node;
  3816. try {
  3817. var lookup = FS.lookupPath(path);
  3818. node = lookup.node;
  3819. stat = FS.stat(path);
  3820. } catch (e) {
  3821. return callback(e);
  3822. }
  3823. if (FS.isDir(stat.mode)) {
  3824. return callback(null, { timestamp: stat.mtime, mode: stat.mode });
  3825. } else if (FS.isFile(stat.mode)) {
  3826. // Performance consideration: storing a normal JavaScript array to a IndexedDB is much slower than storing a typed array.
  3827. // Therefore always convert the file contents to a typed array first before writing the data to IndexedDB.
  3828. node.contents = MEMFS.getFileDataAsTypedArray(node);
  3829. return callback(null, { timestamp: stat.mtime, mode: stat.mode, contents: node.contents });
  3830. } else {
  3831. return callback(new Error('node type not supported'));
  3832. }
  3833. },storeLocalEntry:function (path, entry, callback) {
  3834. try {
  3835. if (FS.isDir(entry.mode)) {
  3836. FS.mkdir(path, entry.mode);
  3837. } else if (FS.isFile(entry.mode)) {
  3838. FS.writeFile(path, entry.contents, { encoding: 'binary', canOwn: true });
  3839. } else {
  3840. return callback(new Error('node type not supported'));
  3841. }
  3842. FS.chmod(path, entry.mode);
  3843. FS.utime(path, entry.timestamp, entry.timestamp);
  3844. } catch (e) {
  3845. return callback(e);
  3846. }
  3847. callback(null);
  3848. },removeLocalEntry:function (path, callback) {
  3849. try {
  3850. var lookup = FS.lookupPath(path);
  3851. var stat = FS.stat(path);
  3852. if (FS.isDir(stat.mode)) {
  3853. FS.rmdir(path);
  3854. } else if (FS.isFile(stat.mode)) {
  3855. FS.unlink(path);
  3856. }
  3857. } catch (e) {
  3858. return callback(e);
  3859. }
  3860. callback(null);
  3861. },loadRemoteEntry:function (store, path, callback) {
  3862. var req = store.get(path);
  3863. req.onsuccess = function(event) { callback(null, event.target.result); };
  3864. req.onerror = function(e) {
  3865. callback(this.error);
  3866. e.preventDefault();
  3867. };
  3868. },storeRemoteEntry:function (store, path, entry, callback) {
  3869. var req = store.put(entry, path);
  3870. req.onsuccess = function() { callback(null); };
  3871. req.onerror = function(e) {
  3872. callback(this.error);
  3873. e.preventDefault();
  3874. };
  3875. },removeRemoteEntry:function (store, path, callback) {
  3876. var req = store.delete(path);
  3877. req.onsuccess = function() { callback(null); };
  3878. req.onerror = function(e) {
  3879. callback(this.error);
  3880. e.preventDefault();
  3881. };
  3882. },reconcile:function (src, dst, callback) {
  3883. var total = 0;
  3884. var create = [];
  3885. Object.keys(src.entries).forEach(function (key) {
  3886. var e = src.entries[key];
  3887. var e2 = dst.entries[key];
  3888. if (!e2 || e.timestamp > e2.timestamp) {
  3889. create.push(key);
  3890. total++;
  3891. }
  3892. });
  3893. var remove = [];
  3894. Object.keys(dst.entries).forEach(function (key) {
  3895. var e = dst.entries[key];
  3896. var e2 = src.entries[key];
  3897. if (!e2) {
  3898. remove.push(key);
  3899. total++;
  3900. }
  3901. });
  3902. if (!total) {
  3903. return callback(null);
  3904. }
  3905. var errored = false;
  3906. var completed = 0;
  3907. var db = src.type === 'remote' ? src.db : dst.db;
  3908. var transaction = db.transaction([IDBFS.DB_STORE_NAME], 'readwrite');
  3909. var store = transaction.objectStore(IDBFS.DB_STORE_NAME);
  3910. function done(err) {
  3911. if (err) {
  3912. if (!done.errored) {
  3913. done.errored = true;
  3914. return callback(err);
  3915. }
  3916. return;
  3917. }
  3918. if (++completed >= total) {
  3919. return callback(null);
  3920. }
  3921. };
  3922. transaction.onerror = function(e) {
  3923. done(this.error);
  3924. e.preventDefault();
  3925. };
  3926. // sort paths in ascending order so directory entries are created
  3927. // before the files inside them
  3928. create.sort().forEach(function (path) {
  3929. if (dst.type === 'local') {
  3930. IDBFS.loadRemoteEntry(store, path, function (err, entry) {
  3931. if (err) return done(err);
  3932. IDBFS.storeLocalEntry(path, entry, done);
  3933. });
  3934. } else {
  3935. IDBFS.loadLocalEntry(path, function (err, entry) {
  3936. if (err) return done(err);
  3937. IDBFS.storeRemoteEntry(store, path, entry, done);
  3938. });
  3939. }
  3940. });
  3941. // sort paths in descending order so files are deleted before their
  3942. // parent directories
  3943. remove.sort().reverse().forEach(function(path) {
  3944. if (dst.type === 'local') {
  3945. IDBFS.removeLocalEntry(path, done);
  3946. } else {
  3947. IDBFS.removeRemoteEntry(store, path, done);
  3948. }
  3949. });
  3950. }};
  3951. var NODEFS={isWindows:false,staticInit:function () {
  3952. NODEFS.isWindows = !!process.platform.match(/^win/);
  3953. },mount:function (mount) {
  3954. assert(ENVIRONMENT_IS_NODE);
  3955. return NODEFS.createNode(null, '/', NODEFS.getMode(mount.opts.root), 0);
  3956. },createNode:function (parent, name, mode, dev) {
  3957. if (!FS.isDir(mode) && !FS.isFile(mode) && !FS.isLink(mode)) {
  3958. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  3959. }
  3960. var node = FS.createNode(parent, name, mode);
  3961. node.node_ops = NODEFS.node_ops;
  3962. node.stream_ops = NODEFS.stream_ops;
  3963. return node;
  3964. },getMode:function (path) {
  3965. var stat;
  3966. try {
  3967. stat = fs.lstatSync(path);
  3968. if (NODEFS.isWindows) {
  3969. // On Windows, directories return permission bits 'rw-rw-rw-', even though they have 'rwxrwxrwx', so
  3970. // propagate write bits to execute bits.
  3971. stat.mode = stat.mode | ((stat.mode & 146) >> 1);
  3972. }
  3973. } catch (e) {
  3974. if (!e.code) throw e;
  3975. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  3976. }
  3977. return stat.mode;
  3978. },realPath:function (node) {
  3979. var parts = [];
  3980. while (node.parent !== node) {
  3981. parts.push(node.name);
  3982. node = node.parent;
  3983. }
  3984. parts.push(node.mount.opts.root);
  3985. parts.reverse();
  3986. return PATH.join.apply(null, parts);
  3987. },flagsToPermissionStringMap:{0:"r",1:"r+",2:"r+",64:"r",65:"r+",66:"r+",129:"rx+",193:"rx+",514:"w+",577:"w",578:"w+",705:"wx",706:"wx+",1024:"a",1025:"a",1026:"a+",1089:"a",1090:"a+",1153:"ax",1154:"ax+",1217:"ax",1218:"ax+",4096:"rs",4098:"rs+"},flagsToPermissionString:function (flags) {
  3988. flags &= ~0x200000 /*O_PATH*/; // Ignore this flag from musl, otherwise node.js fails to open the file.
  3989. flags &= ~0x800 /*O_NONBLOCK*/; // Ignore this flag from musl, otherwise node.js fails to open the file.
  3990. flags &= ~0x8000 /*O_LARGEFILE*/; // Ignore this flag from musl, otherwise node.js fails to open the file.
  3991. flags &= ~0x80000 /*O_CLOEXEC*/; // Some applications may pass it; it makes no sense for a single process.
  3992. if (flags in NODEFS.flagsToPermissionStringMap) {
  3993. return NODEFS.flagsToPermissionStringMap[flags];
  3994. } else {
  3995. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  3996. }
  3997. },node_ops:{getattr:function (node) {
  3998. var path = NODEFS.realPath(node);
  3999. var stat;
  4000. try {
  4001. stat = fs.lstatSync(path);
  4002. } catch (e) {
  4003. if (!e.code) throw e;
  4004. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4005. }
  4006. // node.js v0.10.20 doesn't report blksize and blocks on Windows. Fake them with default blksize of 4096.
  4007. // See http://support.microsoft.com/kb/140365
  4008. if (NODEFS.isWindows && !stat.blksize) {
  4009. stat.blksize = 4096;
  4010. }
  4011. if (NODEFS.isWindows && !stat.blocks) {
  4012. stat.blocks = (stat.size+stat.blksize-1)/stat.blksize|0;
  4013. }
  4014. return {
  4015. dev: stat.dev,
  4016. ino: stat.ino,
  4017. mode: stat.mode,
  4018. nlink: stat.nlink,
  4019. uid: stat.uid,
  4020. gid: stat.gid,
  4021. rdev: stat.rdev,
  4022. size: stat.size,
  4023. atime: stat.atime,
  4024. mtime: stat.mtime,
  4025. ctime: stat.ctime,
  4026. blksize: stat.blksize,
  4027. blocks: stat.blocks
  4028. };
  4029. },setattr:function (node, attr) {
  4030. var path = NODEFS.realPath(node);
  4031. try {
  4032. if (attr.mode !== undefined) {
  4033. fs.chmodSync(path, attr.mode);
  4034. // update the common node structure mode as well
  4035. node.mode = attr.mode;
  4036. }
  4037. if (attr.timestamp !== undefined) {
  4038. var date = new Date(attr.timestamp);
  4039. fs.utimesSync(path, date, date);
  4040. }
  4041. if (attr.size !== undefined) {
  4042. fs.truncateSync(path, attr.size);
  4043. }
  4044. } catch (e) {
  4045. if (!e.code) throw e;
  4046. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4047. }
  4048. },lookup:function (parent, name) {
  4049. var path = PATH.join2(NODEFS.realPath(parent), name);
  4050. var mode = NODEFS.getMode(path);
  4051. return NODEFS.createNode(parent, name, mode);
  4052. },mknod:function (parent, name, mode, dev) {
  4053. var node = NODEFS.createNode(parent, name, mode, dev);
  4054. // create the backing node for this in the fs root as well
  4055. var path = NODEFS.realPath(node);
  4056. try {
  4057. if (FS.isDir(node.mode)) {
  4058. fs.mkdirSync(path, node.mode);
  4059. } else {
  4060. fs.writeFileSync(path, '', { mode: node.mode });
  4061. }
  4062. } catch (e) {
  4063. if (!e.code) throw e;
  4064. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4065. }
  4066. return node;
  4067. },rename:function (oldNode, newDir, newName) {
  4068. var oldPath = NODEFS.realPath(oldNode);
  4069. var newPath = PATH.join2(NODEFS.realPath(newDir), newName);
  4070. try {
  4071. fs.renameSync(oldPath, newPath);
  4072. } catch (e) {
  4073. if (!e.code) throw e;
  4074. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4075. }
  4076. },unlink:function (parent, name) {
  4077. var path = PATH.join2(NODEFS.realPath(parent), name);
  4078. try {
  4079. fs.unlinkSync(path);
  4080. } catch (e) {
  4081. if (!e.code) throw e;
  4082. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4083. }
  4084. },rmdir:function (parent, name) {
  4085. var path = PATH.join2(NODEFS.realPath(parent), name);
  4086. try {
  4087. fs.rmdirSync(path);
  4088. } catch (e) {
  4089. if (!e.code) throw e;
  4090. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4091. }
  4092. },readdir:function (node) {
  4093. var path = NODEFS.realPath(node);
  4094. try {
  4095. return fs.readdirSync(path);
  4096. } catch (e) {
  4097. if (!e.code) throw e;
  4098. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4099. }
  4100. },symlink:function (parent, newName, oldPath) {
  4101. var newPath = PATH.join2(NODEFS.realPath(parent), newName);
  4102. try {
  4103. fs.symlinkSync(oldPath, newPath);
  4104. } catch (e) {
  4105. if (!e.code) throw e;
  4106. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4107. }
  4108. },readlink:function (node) {
  4109. var path = NODEFS.realPath(node);
  4110. try {
  4111. path = fs.readlinkSync(path);
  4112. path = NODEJS_PATH.relative(NODEJS_PATH.resolve(node.mount.opts.root), path);
  4113. return path;
  4114. } catch (e) {
  4115. if (!e.code) throw e;
  4116. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4117. }
  4118. }},stream_ops:{open:function (stream) {
  4119. var path = NODEFS.realPath(stream.node);
  4120. try {
  4121. if (FS.isFile(stream.node.mode)) {
  4122. stream.nfd = fs.openSync(path, NODEFS.flagsToPermissionString(stream.flags));
  4123. }
  4124. } catch (e) {
  4125. if (!e.code) throw e;
  4126. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4127. }
  4128. },close:function (stream) {
  4129. try {
  4130. if (FS.isFile(stream.node.mode) && stream.nfd) {
  4131. fs.closeSync(stream.nfd);
  4132. }
  4133. } catch (e) {
  4134. if (!e.code) throw e;
  4135. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4136. }
  4137. },read:function (stream, buffer, offset, length, position) {
  4138. if (length === 0) return 0; // node errors on 0 length reads
  4139. // FIXME this is terrible.
  4140. var nbuffer = new Buffer(length);
  4141. var res;
  4142. try {
  4143. res = fs.readSync(stream.nfd, nbuffer, 0, length, position);
  4144. } catch (e) {
  4145. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4146. }
  4147. if (res > 0) {
  4148. for (var i = 0; i < res; i++) {
  4149. buffer[offset + i] = nbuffer[i];
  4150. }
  4151. }
  4152. return res;
  4153. },write:function (stream, buffer, offset, length, position) {
  4154. // FIXME this is terrible.
  4155. var nbuffer = new Buffer(buffer.subarray(offset, offset + length));
  4156. var res;
  4157. try {
  4158. res = fs.writeSync(stream.nfd, nbuffer, 0, length, position);
  4159. } catch (e) {
  4160. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4161. }
  4162. return res;
  4163. },llseek:function (stream, offset, whence) {
  4164. var position = offset;
  4165. if (whence === 1) { // SEEK_CUR.
  4166. position += stream.position;
  4167. } else if (whence === 2) { // SEEK_END.
  4168. if (FS.isFile(stream.node.mode)) {
  4169. try {
  4170. var stat = fs.fstatSync(stream.nfd);
  4171. position += stat.size;
  4172. } catch (e) {
  4173. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4174. }
  4175. }
  4176. }
  4177. if (position < 0) {
  4178. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4179. }
  4180. return position;
  4181. }}};
  4182. var WORKERFS={DIR_MODE:16895,FILE_MODE:33279,reader:null,mount:function (mount) {
  4183. assert(ENVIRONMENT_IS_WORKER);
  4184. if (!WORKERFS.reader) WORKERFS.reader = new FileReaderSync();
  4185. var root = WORKERFS.createNode(null, '/', WORKERFS.DIR_MODE, 0);
  4186. var createdParents = {};
  4187. function ensureParent(path) {
  4188. // return the parent node, creating subdirs as necessary
  4189. var parts = path.split('/');
  4190. var parent = root;
  4191. for (var i = 0; i < parts.length-1; i++) {
  4192. var curr = parts.slice(0, i+1).join('/');
  4193. // Issue 4254: Using curr as a node name will prevent the node
  4194. // from being found in FS.nameTable when FS.open is called on
  4195. // a path which holds a child of this node,
  4196. // given that all FS functions assume node names
  4197. // are just their corresponding parts within their given path,
  4198. // rather than incremental aggregates which include their parent's
  4199. // directories.
  4200. if (!createdParents[curr]) {
  4201. createdParents[curr] = WORKERFS.createNode(parent, parts[i], WORKERFS.DIR_MODE, 0);
  4202. }
  4203. parent = createdParents[curr];
  4204. }
  4205. return parent;
  4206. }
  4207. function base(path) {
  4208. var parts = path.split('/');
  4209. return parts[parts.length-1];
  4210. }
  4211. // We also accept FileList here, by using Array.prototype
  4212. Array.prototype.forEach.call(mount.opts["files"] || [], function(file) {
  4213. WORKERFS.createNode(ensureParent(file.name), base(file.name), WORKERFS.FILE_MODE, 0, file, file.lastModifiedDate);
  4214. });
  4215. (mount.opts["blobs"] || []).forEach(function(obj) {
  4216. WORKERFS.createNode(ensureParent(obj["name"]), base(obj["name"]), WORKERFS.FILE_MODE, 0, obj["data"]);
  4217. });
  4218. (mount.opts["packages"] || []).forEach(function(pack) {
  4219. pack['metadata'].files.forEach(function(file) {
  4220. var name = file.filename.substr(1); // remove initial slash
  4221. WORKERFS.createNode(ensureParent(name), base(name), WORKERFS.FILE_MODE, 0, pack['blob'].slice(file.start, file.end));
  4222. });
  4223. });
  4224. return root;
  4225. },createNode:function (parent, name, mode, dev, contents, mtime) {
  4226. var node = FS.createNode(parent, name, mode);
  4227. node.mode = mode;
  4228. node.node_ops = WORKERFS.node_ops;
  4229. node.stream_ops = WORKERFS.stream_ops;
  4230. node.timestamp = (mtime || new Date).getTime();
  4231. assert(WORKERFS.FILE_MODE !== WORKERFS.DIR_MODE);
  4232. if (mode === WORKERFS.FILE_MODE) {
  4233. node.size = contents.size;
  4234. node.contents = contents;
  4235. } else {
  4236. node.size = 4096;
  4237. node.contents = {};
  4238. }
  4239. if (parent) {
  4240. parent.contents[name] = node;
  4241. }
  4242. return node;
  4243. },node_ops:{getattr:function (node) {
  4244. return {
  4245. dev: 1,
  4246. ino: undefined,
  4247. mode: node.mode,
  4248. nlink: 1,
  4249. uid: 0,
  4250. gid: 0,
  4251. rdev: undefined,
  4252. size: node.size,
  4253. atime: new Date(node.timestamp),
  4254. mtime: new Date(node.timestamp),
  4255. ctime: new Date(node.timestamp),
  4256. blksize: 4096,
  4257. blocks: Math.ceil(node.size / 4096),
  4258. };
  4259. },setattr:function (node, attr) {
  4260. if (attr.mode !== undefined) {
  4261. node.mode = attr.mode;
  4262. }
  4263. if (attr.timestamp !== undefined) {
  4264. node.timestamp = attr.timestamp;
  4265. }
  4266. },lookup:function (parent, name) {
  4267. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4268. },mknod:function (parent, name, mode, dev) {
  4269. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4270. },rename:function (oldNode, newDir, newName) {
  4271. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4272. },unlink:function (parent, name) {
  4273. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4274. },rmdir:function (parent, name) {
  4275. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4276. },readdir:function (node) {
  4277. var entries = ['.', '..'];
  4278. for (var key in node.contents) {
  4279. if (!node.contents.hasOwnProperty(key)) {
  4280. continue;
  4281. }
  4282. entries.push(key);
  4283. }
  4284. return entries;
  4285. },symlink:function (parent, newName, oldPath) {
  4286. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4287. },readlink:function (node) {
  4288. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4289. }},stream_ops:{read:function (stream, buffer, offset, length, position) {
  4290. if (position >= stream.node.size) return 0;
  4291. var chunk = stream.node.contents.slice(position, position + length);
  4292. var ab = WORKERFS.reader.readAsArrayBuffer(chunk);
  4293. buffer.set(new Uint8Array(ab), offset);
  4294. return chunk.size;
  4295. },write:function (stream, buffer, offset, length, position) {
  4296. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  4297. },llseek:function (stream, offset, whence) {
  4298. var position = offset;
  4299. if (whence === 1) { // SEEK_CUR.
  4300. position += stream.position;
  4301. } else if (whence === 2) { // SEEK_END.
  4302. if (FS.isFile(stream.node.mode)) {
  4303. position += stream.node.size;
  4304. }
  4305. }
  4306. if (position < 0) {
  4307. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4308. }
  4309. return position;
  4310. }}};
  4311. var _stdin=STATICTOP; STATICTOP += 16;;
  4312. var _stdout=STATICTOP; STATICTOP += 16;;
  4313. var _stderr=STATICTOP; STATICTOP += 16;;var FS={root:null,mounts:[],devices:[null],streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:false,ignorePermissions:true,trackingDelegate:{},tracking:{openFlags:{READ:1,WRITE:2}},ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,handleFSError:function (e) {
  4314. if (!(e instanceof FS.ErrnoError)) throw e + ' : ' + stackTrace();
  4315. return ___setErrNo(e.errno);
  4316. },lookupPath:function (path, opts) {
  4317. path = PATH.resolve(FS.cwd(), path);
  4318. opts = opts || {};
  4319. if (!path) return { path: '', node: null };
  4320. var defaults = {
  4321. follow_mount: true,
  4322. recurse_count: 0
  4323. };
  4324. for (var key in defaults) {
  4325. if (opts[key] === undefined) {
  4326. opts[key] = defaults[key];
  4327. }
  4328. }
  4329. if (opts.recurse_count > 8) { // max recursive lookup of 8
  4330. throw new FS.ErrnoError(ERRNO_CODES.ELOOP);
  4331. }
  4332. // split the path
  4333. var parts = PATH.normalizeArray(path.split('/').filter(function(p) {
  4334. return !!p;
  4335. }), false);
  4336. // start at the root
  4337. var current = FS.root;
  4338. var current_path = '/';
  4339. for (var i = 0; i < parts.length; i++) {
  4340. var islast = (i === parts.length-1);
  4341. if (islast && opts.parent) {
  4342. // stop resolving
  4343. break;
  4344. }
  4345. current = FS.lookupNode(current, parts[i]);
  4346. current_path = PATH.join2(current_path, parts[i]);
  4347. // jump to the mount's root node if this is a mountpoint
  4348. if (FS.isMountpoint(current)) {
  4349. if (!islast || (islast && opts.follow_mount)) {
  4350. current = current.mounted.root;
  4351. }
  4352. }
  4353. // by default, lookupPath will not follow a symlink if it is the final path component.
  4354. // setting opts.follow = true will override this behavior.
  4355. if (!islast || opts.follow) {
  4356. var count = 0;
  4357. while (FS.isLink(current.mode)) {
  4358. var link = FS.readlink(current_path);
  4359. current_path = PATH.resolve(PATH.dirname(current_path), link);
  4360. var lookup = FS.lookupPath(current_path, { recurse_count: opts.recurse_count });
  4361. current = lookup.node;
  4362. if (count++ > 40) { // limit max consecutive symlinks to 40 (SYMLOOP_MAX).
  4363. throw new FS.ErrnoError(ERRNO_CODES.ELOOP);
  4364. }
  4365. }
  4366. }
  4367. }
  4368. return { path: current_path, node: current };
  4369. },getPath:function (node) {
  4370. var path;
  4371. while (true) {
  4372. if (FS.isRoot(node)) {
  4373. var mount = node.mount.mountpoint;
  4374. if (!path) return mount;
  4375. return mount[mount.length-1] !== '/' ? mount + '/' + path : mount + path;
  4376. }
  4377. path = path ? node.name + '/' + path : node.name;
  4378. node = node.parent;
  4379. }
  4380. },hashName:function (parentid, name) {
  4381. var hash = 0;
  4382. for (var i = 0; i < name.length; i++) {
  4383. hash = ((hash << 5) - hash + name.charCodeAt(i)) | 0;
  4384. }
  4385. return ((parentid + hash) >>> 0) % FS.nameTable.length;
  4386. },hashAddNode:function (node) {
  4387. var hash = FS.hashName(node.parent.id, node.name);
  4388. node.name_next = FS.nameTable[hash];
  4389. FS.nameTable[hash] = node;
  4390. },hashRemoveNode:function (node) {
  4391. var hash = FS.hashName(node.parent.id, node.name);
  4392. if (FS.nameTable[hash] === node) {
  4393. FS.nameTable[hash] = node.name_next;
  4394. } else {
  4395. var current = FS.nameTable[hash];
  4396. while (current) {
  4397. if (current.name_next === node) {
  4398. current.name_next = node.name_next;
  4399. break;
  4400. }
  4401. current = current.name_next;
  4402. }
  4403. }
  4404. },lookupNode:function (parent, name) {
  4405. var err = FS.mayLookup(parent);
  4406. if (err) {
  4407. throw new FS.ErrnoError(err, parent);
  4408. }
  4409. var hash = FS.hashName(parent.id, name);
  4410. for (var node = FS.nameTable[hash]; node; node = node.name_next) {
  4411. var nodeName = node.name;
  4412. if (node.parent.id === parent.id && nodeName === name) {
  4413. return node;
  4414. }
  4415. }
  4416. // if we failed to find it in the cache, call into the VFS
  4417. return FS.lookup(parent, name);
  4418. },createNode:function (parent, name, mode, rdev) {
  4419. if (!FS.FSNode) {
  4420. FS.FSNode = function(parent, name, mode, rdev) {
  4421. if (!parent) {
  4422. parent = this; // root node sets parent to itself
  4423. }
  4424. this.parent = parent;
  4425. this.mount = parent.mount;
  4426. this.mounted = null;
  4427. this.id = FS.nextInode++;
  4428. this.name = name;
  4429. this.mode = mode;
  4430. this.node_ops = {};
  4431. this.stream_ops = {};
  4432. this.rdev = rdev;
  4433. };
  4434. FS.FSNode.prototype = {};
  4435. // compatibility
  4436. var readMode = 292 | 73;
  4437. var writeMode = 146;
  4438. // NOTE we must use Object.defineProperties instead of individual calls to
  4439. // Object.defineProperty in order to make closure compiler happy
  4440. Object.defineProperties(FS.FSNode.prototype, {
  4441. read: {
  4442. get: function() { return (this.mode & readMode) === readMode; },
  4443. set: function(val) { val ? this.mode |= readMode : this.mode &= ~readMode; }
  4444. },
  4445. write: {
  4446. get: function() { return (this.mode & writeMode) === writeMode; },
  4447. set: function(val) { val ? this.mode |= writeMode : this.mode &= ~writeMode; }
  4448. },
  4449. isFolder: {
  4450. get: function() { return FS.isDir(this.mode); }
  4451. },
  4452. isDevice: {
  4453. get: function() { return FS.isChrdev(this.mode); }
  4454. }
  4455. });
  4456. }
  4457. var node = new FS.FSNode(parent, name, mode, rdev);
  4458. FS.hashAddNode(node);
  4459. return node;
  4460. },destroyNode:function (node) {
  4461. FS.hashRemoveNode(node);
  4462. },isRoot:function (node) {
  4463. return node === node.parent;
  4464. },isMountpoint:function (node) {
  4465. return !!node.mounted;
  4466. },isFile:function (mode) {
  4467. return (mode & 61440) === 32768;
  4468. },isDir:function (mode) {
  4469. return (mode & 61440) === 16384;
  4470. },isLink:function (mode) {
  4471. return (mode & 61440) === 40960;
  4472. },isChrdev:function (mode) {
  4473. return (mode & 61440) === 8192;
  4474. },isBlkdev:function (mode) {
  4475. return (mode & 61440) === 24576;
  4476. },isFIFO:function (mode) {
  4477. return (mode & 61440) === 4096;
  4478. },isSocket:function (mode) {
  4479. return (mode & 49152) === 49152;
  4480. },flagModes:{"r":0,"rs":1052672,"r+":2,"w":577,"wx":705,"xw":705,"w+":578,"wx+":706,"xw+":706,"a":1089,"ax":1217,"xa":1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:function (str) {
  4481. var flags = FS.flagModes[str];
  4482. if (typeof flags === 'undefined') {
  4483. throw new Error('Unknown file open mode: ' + str);
  4484. }
  4485. return flags;
  4486. },flagsToPermissionString:function (flag) {
  4487. var perms = ['r', 'w', 'rw'][flag & 3];
  4488. if ((flag & 512)) {
  4489. perms += 'w';
  4490. }
  4491. return perms;
  4492. },nodePermissions:function (node, perms) {
  4493. if (FS.ignorePermissions) {
  4494. return 0;
  4495. }
  4496. // return 0 if any user, group or owner bits are set.
  4497. if (perms.indexOf('r') !== -1 && !(node.mode & 292)) {
  4498. return ERRNO_CODES.EACCES;
  4499. } else if (perms.indexOf('w') !== -1 && !(node.mode & 146)) {
  4500. return ERRNO_CODES.EACCES;
  4501. } else if (perms.indexOf('x') !== -1 && !(node.mode & 73)) {
  4502. return ERRNO_CODES.EACCES;
  4503. }
  4504. return 0;
  4505. },mayLookup:function (dir) {
  4506. var err = FS.nodePermissions(dir, 'x');
  4507. if (err) return err;
  4508. if (!dir.node_ops.lookup) return ERRNO_CODES.EACCES;
  4509. return 0;
  4510. },mayCreate:function (dir, name) {
  4511. try {
  4512. var node = FS.lookupNode(dir, name);
  4513. return ERRNO_CODES.EEXIST;
  4514. } catch (e) {
  4515. }
  4516. return FS.nodePermissions(dir, 'wx');
  4517. },mayDelete:function (dir, name, isdir) {
  4518. var node;
  4519. try {
  4520. node = FS.lookupNode(dir, name);
  4521. } catch (e) {
  4522. return e.errno;
  4523. }
  4524. var err = FS.nodePermissions(dir, 'wx');
  4525. if (err) {
  4526. return err;
  4527. }
  4528. if (isdir) {
  4529. if (!FS.isDir(node.mode)) {
  4530. return ERRNO_CODES.ENOTDIR;
  4531. }
  4532. if (FS.isRoot(node) || FS.getPath(node) === FS.cwd()) {
  4533. return ERRNO_CODES.EBUSY;
  4534. }
  4535. } else {
  4536. if (FS.isDir(node.mode)) {
  4537. return ERRNO_CODES.EISDIR;
  4538. }
  4539. }
  4540. return 0;
  4541. },mayOpen:function (node, flags) {
  4542. if (!node) {
  4543. return ERRNO_CODES.ENOENT;
  4544. }
  4545. if (FS.isLink(node.mode)) {
  4546. return ERRNO_CODES.ELOOP;
  4547. } else if (FS.isDir(node.mode)) {
  4548. if (FS.flagsToPermissionString(flags) !== 'r' || // opening for write
  4549. (flags & 512)) { // TODO: check for O_SEARCH? (== search for dir only)
  4550. return ERRNO_CODES.EISDIR;
  4551. }
  4552. }
  4553. return FS.nodePermissions(node, FS.flagsToPermissionString(flags));
  4554. },MAX_OPEN_FDS:4096,nextfd:function (fd_start, fd_end) {
  4555. fd_start = fd_start || 0;
  4556. fd_end = fd_end || FS.MAX_OPEN_FDS;
  4557. for (var fd = fd_start; fd <= fd_end; fd++) {
  4558. if (!FS.streams[fd]) {
  4559. return fd;
  4560. }
  4561. }
  4562. throw new FS.ErrnoError(ERRNO_CODES.EMFILE);
  4563. },getStream:function (fd) {
  4564. return FS.streams[fd];
  4565. },createStream:function (stream, fd_start, fd_end) {
  4566. if (!FS.FSStream) {
  4567. FS.FSStream = function(){};
  4568. FS.FSStream.prototype = {};
  4569. // compatibility
  4570. Object.defineProperties(FS.FSStream.prototype, {
  4571. object: {
  4572. get: function() { return this.node; },
  4573. set: function(val) { this.node = val; }
  4574. },
  4575. isRead: {
  4576. get: function() { return (this.flags & 2097155) !== 1; }
  4577. },
  4578. isWrite: {
  4579. get: function() { return (this.flags & 2097155) !== 0; }
  4580. },
  4581. isAppend: {
  4582. get: function() { return (this.flags & 1024); }
  4583. }
  4584. });
  4585. }
  4586. // clone it, so we can return an instance of FSStream
  4587. var newStream = new FS.FSStream();
  4588. for (var p in stream) {
  4589. newStream[p] = stream[p];
  4590. }
  4591. stream = newStream;
  4592. var fd = FS.nextfd(fd_start, fd_end);
  4593. stream.fd = fd;
  4594. FS.streams[fd] = stream;
  4595. return stream;
  4596. },closeStream:function (fd) {
  4597. FS.streams[fd] = null;
  4598. },chrdev_stream_ops:{open:function (stream) {
  4599. var device = FS.getDevice(stream.node.rdev);
  4600. // override node's stream ops with the device's
  4601. stream.stream_ops = device.stream_ops;
  4602. // forward the open call
  4603. if (stream.stream_ops.open) {
  4604. stream.stream_ops.open(stream);
  4605. }
  4606. },llseek:function () {
  4607. throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
  4608. }},major:function (dev) {
  4609. return ((dev) >> 8);
  4610. },minor:function (dev) {
  4611. return ((dev) & 0xff);
  4612. },makedev:function (ma, mi) {
  4613. return ((ma) << 8 | (mi));
  4614. },registerDevice:function (dev, ops) {
  4615. FS.devices[dev] = { stream_ops: ops };
  4616. },getDevice:function (dev) {
  4617. return FS.devices[dev];
  4618. },getMounts:function (mount) {
  4619. var mounts = [];
  4620. var check = [mount];
  4621. while (check.length) {
  4622. var m = check.pop();
  4623. mounts.push(m);
  4624. check.push.apply(check, m.mounts);
  4625. }
  4626. return mounts;
  4627. },syncfs:function (populate, callback) {
  4628. if (typeof(populate) === 'function') {
  4629. callback = populate;
  4630. populate = false;
  4631. }
  4632. FS.syncFSRequests++;
  4633. if (FS.syncFSRequests > 1) {
  4634. console.log('warning: ' + FS.syncFSRequests + ' FS.syncfs operations in flight at once, probably just doing extra work');
  4635. }
  4636. var mounts = FS.getMounts(FS.root.mount);
  4637. var completed = 0;
  4638. function doCallback(err) {
  4639. assert(FS.syncFSRequests > 0);
  4640. FS.syncFSRequests--;
  4641. return callback(err);
  4642. }
  4643. function done(err) {
  4644. if (err) {
  4645. if (!done.errored) {
  4646. done.errored = true;
  4647. return doCallback(err);
  4648. }
  4649. return;
  4650. }
  4651. if (++completed >= mounts.length) {
  4652. doCallback(null);
  4653. }
  4654. };
  4655. // sync all mounts
  4656. mounts.forEach(function (mount) {
  4657. if (!mount.type.syncfs) {
  4658. return done(null);
  4659. }
  4660. mount.type.syncfs(mount, populate, done);
  4661. });
  4662. },mount:function (type, opts, mountpoint) {
  4663. var root = mountpoint === '/';
  4664. var pseudo = !mountpoint;
  4665. var node;
  4666. if (root && FS.root) {
  4667. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4668. } else if (!root && !pseudo) {
  4669. var lookup = FS.lookupPath(mountpoint, { follow_mount: false });
  4670. mountpoint = lookup.path; // use the absolute path
  4671. node = lookup.node;
  4672. if (FS.isMountpoint(node)) {
  4673. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4674. }
  4675. if (!FS.isDir(node.mode)) {
  4676. throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR);
  4677. }
  4678. }
  4679. var mount = {
  4680. type: type,
  4681. opts: opts,
  4682. mountpoint: mountpoint,
  4683. mounts: []
  4684. };
  4685. // create a root node for the fs
  4686. var mountRoot = type.mount(mount);
  4687. mountRoot.mount = mount;
  4688. mount.root = mountRoot;
  4689. if (root) {
  4690. FS.root = mountRoot;
  4691. } else if (node) {
  4692. // set as a mountpoint
  4693. node.mounted = mount;
  4694. // add the new mount to the current mount's children
  4695. if (node.mount) {
  4696. node.mount.mounts.push(mount);
  4697. }
  4698. }
  4699. return mountRoot;
  4700. },unmount:function (mountpoint) {
  4701. var lookup = FS.lookupPath(mountpoint, { follow_mount: false });
  4702. if (!FS.isMountpoint(lookup.node)) {
  4703. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4704. }
  4705. // destroy the nodes for this mount, and all its child mounts
  4706. var node = lookup.node;
  4707. var mount = node.mounted;
  4708. var mounts = FS.getMounts(mount);
  4709. Object.keys(FS.nameTable).forEach(function (hash) {
  4710. var current = FS.nameTable[hash];
  4711. while (current) {
  4712. var next = current.name_next;
  4713. if (mounts.indexOf(current.mount) !== -1) {
  4714. FS.destroyNode(current);
  4715. }
  4716. current = next;
  4717. }
  4718. });
  4719. // no longer a mountpoint
  4720. node.mounted = null;
  4721. // remove this mount from the child mounts
  4722. var idx = node.mount.mounts.indexOf(mount);
  4723. assert(idx !== -1);
  4724. node.mount.mounts.splice(idx, 1);
  4725. },lookup:function (parent, name) {
  4726. return parent.node_ops.lookup(parent, name);
  4727. },mknod:function (path, mode, dev) {
  4728. var lookup = FS.lookupPath(path, { parent: true });
  4729. var parent = lookup.node;
  4730. var name = PATH.basename(path);
  4731. if (!name || name === '.' || name === '..') {
  4732. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4733. }
  4734. var err = FS.mayCreate(parent, name);
  4735. if (err) {
  4736. throw new FS.ErrnoError(err);
  4737. }
  4738. if (!parent.node_ops.mknod) {
  4739. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4740. }
  4741. return parent.node_ops.mknod(parent, name, mode, dev);
  4742. },create:function (path, mode) {
  4743. mode = mode !== undefined ? mode : 438 /* 0666 */;
  4744. mode &= 4095;
  4745. mode |= 32768;
  4746. return FS.mknod(path, mode, 0);
  4747. },mkdir:function (path, mode) {
  4748. mode = mode !== undefined ? mode : 511 /* 0777 */;
  4749. mode &= 511 | 512;
  4750. mode |= 16384;
  4751. return FS.mknod(path, mode, 0);
  4752. },mkdirTree:function (path, mode) {
  4753. var dirs = path.split('/');
  4754. var d = '';
  4755. for (var i = 0; i < dirs.length; ++i) {
  4756. if (!dirs[i]) continue;
  4757. d += '/' + dirs[i];
  4758. try {
  4759. FS.mkdir(d, mode);
  4760. } catch(e) {
  4761. if (e.errno != ERRNO_CODES.EEXIST) throw e;
  4762. }
  4763. }
  4764. },mkdev:function (path, mode, dev) {
  4765. if (typeof(dev) === 'undefined') {
  4766. dev = mode;
  4767. mode = 438 /* 0666 */;
  4768. }
  4769. mode |= 8192;
  4770. return FS.mknod(path, mode, dev);
  4771. },symlink:function (oldpath, newpath) {
  4772. if (!PATH.resolve(oldpath)) {
  4773. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4774. }
  4775. var lookup = FS.lookupPath(newpath, { parent: true });
  4776. var parent = lookup.node;
  4777. if (!parent) {
  4778. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4779. }
  4780. var newname = PATH.basename(newpath);
  4781. var err = FS.mayCreate(parent, newname);
  4782. if (err) {
  4783. throw new FS.ErrnoError(err);
  4784. }
  4785. if (!parent.node_ops.symlink) {
  4786. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4787. }
  4788. return parent.node_ops.symlink(parent, newname, oldpath);
  4789. },rename:function (old_path, new_path) {
  4790. var old_dirname = PATH.dirname(old_path);
  4791. var new_dirname = PATH.dirname(new_path);
  4792. var old_name = PATH.basename(old_path);
  4793. var new_name = PATH.basename(new_path);
  4794. // parents must exist
  4795. var lookup, old_dir, new_dir;
  4796. try {
  4797. lookup = FS.lookupPath(old_path, { parent: true });
  4798. old_dir = lookup.node;
  4799. lookup = FS.lookupPath(new_path, { parent: true });
  4800. new_dir = lookup.node;
  4801. } catch (e) {
  4802. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4803. }
  4804. if (!old_dir || !new_dir) throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4805. // need to be part of the same mount
  4806. if (old_dir.mount !== new_dir.mount) {
  4807. throw new FS.ErrnoError(ERRNO_CODES.EXDEV);
  4808. }
  4809. // source must exist
  4810. var old_node = FS.lookupNode(old_dir, old_name);
  4811. // old path should not be an ancestor of the new path
  4812. var relative = PATH.relative(old_path, new_dirname);
  4813. if (relative.charAt(0) !== '.') {
  4814. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4815. }
  4816. // new path should not be an ancestor of the old path
  4817. relative = PATH.relative(new_path, old_dirname);
  4818. if (relative.charAt(0) !== '.') {
  4819. throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY);
  4820. }
  4821. // see if the new path already exists
  4822. var new_node;
  4823. try {
  4824. new_node = FS.lookupNode(new_dir, new_name);
  4825. } catch (e) {
  4826. // not fatal
  4827. }
  4828. // early out if nothing needs to change
  4829. if (old_node === new_node) {
  4830. return;
  4831. }
  4832. // we'll need to delete the old entry
  4833. var isdir = FS.isDir(old_node.mode);
  4834. var err = FS.mayDelete(old_dir, old_name, isdir);
  4835. if (err) {
  4836. throw new FS.ErrnoError(err);
  4837. }
  4838. // need delete permissions if we'll be overwriting.
  4839. // need create permissions if new doesn't already exist.
  4840. err = new_node ?
  4841. FS.mayDelete(new_dir, new_name, isdir) :
  4842. FS.mayCreate(new_dir, new_name);
  4843. if (err) {
  4844. throw new FS.ErrnoError(err);
  4845. }
  4846. if (!old_dir.node_ops.rename) {
  4847. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4848. }
  4849. if (FS.isMountpoint(old_node) || (new_node && FS.isMountpoint(new_node))) {
  4850. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4851. }
  4852. // if we are going to change the parent, check write permissions
  4853. if (new_dir !== old_dir) {
  4854. err = FS.nodePermissions(old_dir, 'w');
  4855. if (err) {
  4856. throw new FS.ErrnoError(err);
  4857. }
  4858. }
  4859. try {
  4860. if (FS.trackingDelegate['willMovePath']) {
  4861. FS.trackingDelegate['willMovePath'](old_path, new_path);
  4862. }
  4863. } catch(e) {
  4864. console.log("FS.trackingDelegate['willMovePath']('"+old_path+"', '"+new_path+"') threw an exception: " + e.message);
  4865. }
  4866. // remove the node from the lookup hash
  4867. FS.hashRemoveNode(old_node);
  4868. // do the underlying fs rename
  4869. try {
  4870. old_dir.node_ops.rename(old_node, new_dir, new_name);
  4871. } catch (e) {
  4872. throw e;
  4873. } finally {
  4874. // add the node back to the hash (in case node_ops.rename
  4875. // changed its name)
  4876. FS.hashAddNode(old_node);
  4877. }
  4878. try {
  4879. if (FS.trackingDelegate['onMovePath']) FS.trackingDelegate['onMovePath'](old_path, new_path);
  4880. } catch(e) {
  4881. console.log("FS.trackingDelegate['onMovePath']('"+old_path+"', '"+new_path+"') threw an exception: " + e.message);
  4882. }
  4883. },rmdir:function (path) {
  4884. var lookup = FS.lookupPath(path, { parent: true });
  4885. var parent = lookup.node;
  4886. var name = PATH.basename(path);
  4887. var node = FS.lookupNode(parent, name);
  4888. var err = FS.mayDelete(parent, name, true);
  4889. if (err) {
  4890. throw new FS.ErrnoError(err);
  4891. }
  4892. if (!parent.node_ops.rmdir) {
  4893. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4894. }
  4895. if (FS.isMountpoint(node)) {
  4896. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4897. }
  4898. try {
  4899. if (FS.trackingDelegate['willDeletePath']) {
  4900. FS.trackingDelegate['willDeletePath'](path);
  4901. }
  4902. } catch(e) {
  4903. console.log("FS.trackingDelegate['willDeletePath']('"+path+"') threw an exception: " + e.message);
  4904. }
  4905. parent.node_ops.rmdir(parent, name);
  4906. FS.destroyNode(node);
  4907. try {
  4908. if (FS.trackingDelegate['onDeletePath']) FS.trackingDelegate['onDeletePath'](path);
  4909. } catch(e) {
  4910. console.log("FS.trackingDelegate['onDeletePath']('"+path+"') threw an exception: " + e.message);
  4911. }
  4912. },readdir:function (path) {
  4913. var lookup = FS.lookupPath(path, { follow: true });
  4914. var node = lookup.node;
  4915. if (!node.node_ops.readdir) {
  4916. throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR);
  4917. }
  4918. return node.node_ops.readdir(node);
  4919. },unlink:function (path) {
  4920. var lookup = FS.lookupPath(path, { parent: true });
  4921. var parent = lookup.node;
  4922. var name = PATH.basename(path);
  4923. var node = FS.lookupNode(parent, name);
  4924. var err = FS.mayDelete(parent, name, false);
  4925. if (err) {
  4926. // According to POSIX, we should map EISDIR to EPERM, but
  4927. // we instead do what Linux does (and we must, as we use
  4928. // the musl linux libc).
  4929. throw new FS.ErrnoError(err);
  4930. }
  4931. if (!parent.node_ops.unlink) {
  4932. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4933. }
  4934. if (FS.isMountpoint(node)) {
  4935. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4936. }
  4937. try {
  4938. if (FS.trackingDelegate['willDeletePath']) {
  4939. FS.trackingDelegate['willDeletePath'](path);
  4940. }
  4941. } catch(e) {
  4942. console.log("FS.trackingDelegate['willDeletePath']('"+path+"') threw an exception: " + e.message);
  4943. }
  4944. parent.node_ops.unlink(parent, name);
  4945. FS.destroyNode(node);
  4946. try {
  4947. if (FS.trackingDelegate['onDeletePath']) FS.trackingDelegate['onDeletePath'](path);
  4948. } catch(e) {
  4949. console.log("FS.trackingDelegate['onDeletePath']('"+path+"') threw an exception: " + e.message);
  4950. }
  4951. },readlink:function (path) {
  4952. var lookup = FS.lookupPath(path);
  4953. var link = lookup.node;
  4954. if (!link) {
  4955. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4956. }
  4957. if (!link.node_ops.readlink) {
  4958. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4959. }
  4960. return PATH.resolve(FS.getPath(link.parent), link.node_ops.readlink(link));
  4961. },stat:function (path, dontFollow) {
  4962. var lookup = FS.lookupPath(path, { follow: !dontFollow });
  4963. var node = lookup.node;
  4964. if (!node) {
  4965. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4966. }
  4967. if (!node.node_ops.getattr) {
  4968. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4969. }
  4970. return node.node_ops.getattr(node);
  4971. },lstat:function (path) {
  4972. return FS.stat(path, true);
  4973. },chmod:function (path, mode, dontFollow) {
  4974. var node;
  4975. if (typeof path === 'string') {
  4976. var lookup = FS.lookupPath(path, { follow: !dontFollow });
  4977. node = lookup.node;
  4978. } else {
  4979. node = path;
  4980. }
  4981. if (!node.node_ops.setattr) {
  4982. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4983. }
  4984. node.node_ops.setattr(node, {
  4985. mode: (mode & 4095) | (node.mode & ~4095),
  4986. timestamp: Date.now()
  4987. });
  4988. },lchmod:function (path, mode) {
  4989. FS.chmod(path, mode, true);
  4990. },fchmod:function (fd, mode) {
  4991. var stream = FS.getStream(fd);
  4992. if (!stream) {
  4993. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  4994. }
  4995. FS.chmod(stream.node, mode);
  4996. },chown:function (path, uid, gid, dontFollow) {
  4997. var node;
  4998. if (typeof path === 'string') {
  4999. var lookup = FS.lookupPath(path, { follow: !dontFollow });
  5000. node = lookup.node;
  5001. } else {
  5002. node = path;
  5003. }
  5004. if (!node.node_ops.setattr) {
  5005. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  5006. }
  5007. node.node_ops.setattr(node, {
  5008. timestamp: Date.now()
  5009. // we ignore the uid / gid for now
  5010. });
  5011. },lchown:function (path, uid, gid) {
  5012. FS.chown(path, uid, gid, true);
  5013. },fchown:function (fd, uid, gid) {
  5014. var stream = FS.getStream(fd);
  5015. if (!stream) {
  5016. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5017. }
  5018. FS.chown(stream.node, uid, gid);
  5019. },truncate:function (path, len) {
  5020. if (len < 0) {
  5021. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5022. }
  5023. var node;
  5024. if (typeof path === 'string') {
  5025. var lookup = FS.lookupPath(path, { follow: true });
  5026. node = lookup.node;
  5027. } else {
  5028. node = path;
  5029. }
  5030. if (!node.node_ops.setattr) {
  5031. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  5032. }
  5033. if (FS.isDir(node.mode)) {
  5034. throw new FS.ErrnoError(ERRNO_CODES.EISDIR);
  5035. }
  5036. if (!FS.isFile(node.mode)) {
  5037. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5038. }
  5039. var err = FS.nodePermissions(node, 'w');
  5040. if (err) {
  5041. throw new FS.ErrnoError(err);
  5042. }
  5043. node.node_ops.setattr(node, {
  5044. size: len,
  5045. timestamp: Date.now()
  5046. });
  5047. },ftruncate:function (fd, len) {
  5048. var stream = FS.getStream(fd);
  5049. if (!stream) {
  5050. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5051. }
  5052. if ((stream.flags & 2097155) === 0) {
  5053. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5054. }
  5055. FS.truncate(stream.node, len);
  5056. },utime:function (path, atime, mtime) {
  5057. var lookup = FS.lookupPath(path, { follow: true });
  5058. var node = lookup.node;
  5059. node.node_ops.setattr(node, {
  5060. timestamp: Math.max(atime, mtime)
  5061. });
  5062. },open:function (path, flags, mode, fd_start, fd_end) {
  5063. if (path === "") {
  5064. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  5065. }
  5066. flags = typeof flags === 'string' ? FS.modeStringToFlags(flags) : flags;
  5067. mode = typeof mode === 'undefined' ? 438 /* 0666 */ : mode;
  5068. if ((flags & 64)) {
  5069. mode = (mode & 4095) | 32768;
  5070. } else {
  5071. mode = 0;
  5072. }
  5073. var node;
  5074. if (typeof path === 'object') {
  5075. node = path;
  5076. } else {
  5077. path = PATH.normalize(path);
  5078. try {
  5079. var lookup = FS.lookupPath(path, {
  5080. follow: !(flags & 131072)
  5081. });
  5082. node = lookup.node;
  5083. } catch (e) {
  5084. // ignore
  5085. }
  5086. }
  5087. // perhaps we need to create the node
  5088. var created = false;
  5089. if ((flags & 64)) {
  5090. if (node) {
  5091. // if O_CREAT and O_EXCL are set, error out if the node already exists
  5092. if ((flags & 128)) {
  5093. throw new FS.ErrnoError(ERRNO_CODES.EEXIST);
  5094. }
  5095. } else {
  5096. // node doesn't exist, try to create it
  5097. node = FS.mknod(path, mode, 0);
  5098. created = true;
  5099. }
  5100. }
  5101. if (!node) {
  5102. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  5103. }
  5104. // can't truncate a device
  5105. if (FS.isChrdev(node.mode)) {
  5106. flags &= ~512;
  5107. }
  5108. // if asked only for a directory, then this must be one
  5109. if ((flags & 65536) && !FS.isDir(node.mode)) {
  5110. throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR);
  5111. }
  5112. // check permissions, if this is not a file we just created now (it is ok to
  5113. // create and write to a file with read-only permissions; it is read-only
  5114. // for later use)
  5115. if (!created) {
  5116. var err = FS.mayOpen(node, flags);
  5117. if (err) {
  5118. throw new FS.ErrnoError(err);
  5119. }
  5120. }
  5121. // do truncation if necessary
  5122. if ((flags & 512)) {
  5123. FS.truncate(node, 0);
  5124. }
  5125. // we've already handled these, don't pass down to the underlying vfs
  5126. flags &= ~(128 | 512);
  5127. // register the stream with the filesystem
  5128. var stream = FS.createStream({
  5129. node: node,
  5130. path: FS.getPath(node), // we want the absolute path to the node
  5131. flags: flags,
  5132. seekable: true,
  5133. position: 0,
  5134. stream_ops: node.stream_ops,
  5135. // used by the file family libc calls (fopen, fwrite, ferror, etc.)
  5136. ungotten: [],
  5137. error: false
  5138. }, fd_start, fd_end);
  5139. // call the new stream's open function
  5140. if (stream.stream_ops.open) {
  5141. stream.stream_ops.open(stream);
  5142. }
  5143. if (Module['logReadFiles'] && !(flags & 1)) {
  5144. if (!FS.readFiles) FS.readFiles = {};
  5145. if (!(path in FS.readFiles)) {
  5146. FS.readFiles[path] = 1;
  5147. Module['printErr']('read file: ' + path);
  5148. }
  5149. }
  5150. try {
  5151. if (FS.trackingDelegate['onOpenFile']) {
  5152. var trackingFlags = 0;
  5153. if ((flags & 2097155) !== 1) {
  5154. trackingFlags |= FS.tracking.openFlags.READ;
  5155. }
  5156. if ((flags & 2097155) !== 0) {
  5157. trackingFlags |= FS.tracking.openFlags.WRITE;
  5158. }
  5159. FS.trackingDelegate['onOpenFile'](path, trackingFlags);
  5160. }
  5161. } catch(e) {
  5162. console.log("FS.trackingDelegate['onOpenFile']('"+path+"', flags) threw an exception: " + e.message);
  5163. }
  5164. return stream;
  5165. },close:function (stream) {
  5166. if (stream.getdents) stream.getdents = null; // free readdir state
  5167. try {
  5168. if (stream.stream_ops.close) {
  5169. stream.stream_ops.close(stream);
  5170. }
  5171. } catch (e) {
  5172. throw e;
  5173. } finally {
  5174. FS.closeStream(stream.fd);
  5175. }
  5176. },llseek:function (stream, offset, whence) {
  5177. if (!stream.seekable || !stream.stream_ops.llseek) {
  5178. throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
  5179. }
  5180. stream.position = stream.stream_ops.llseek(stream, offset, whence);
  5181. stream.ungotten = [];
  5182. return stream.position;
  5183. },read:function (stream, buffer, offset, length, position) {
  5184. if (length < 0 || position < 0) {
  5185. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5186. }
  5187. if ((stream.flags & 2097155) === 1) {
  5188. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5189. }
  5190. if (FS.isDir(stream.node.mode)) {
  5191. throw new FS.ErrnoError(ERRNO_CODES.EISDIR);
  5192. }
  5193. if (!stream.stream_ops.read) {
  5194. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5195. }
  5196. var seeking = true;
  5197. if (typeof position === 'undefined') {
  5198. position = stream.position;
  5199. seeking = false;
  5200. } else if (!stream.seekable) {
  5201. throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
  5202. }
  5203. var bytesRead = stream.stream_ops.read(stream, buffer, offset, length, position);
  5204. if (!seeking) stream.position += bytesRead;
  5205. return bytesRead;
  5206. },write:function (stream, buffer, offset, length, position, canOwn) {
  5207. if (length < 0 || position < 0) {
  5208. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5209. }
  5210. if ((stream.flags & 2097155) === 0) {
  5211. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5212. }
  5213. if (FS.isDir(stream.node.mode)) {
  5214. throw new FS.ErrnoError(ERRNO_CODES.EISDIR);
  5215. }
  5216. if (!stream.stream_ops.write) {
  5217. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5218. }
  5219. if (stream.flags & 1024) {
  5220. // seek to the end before writing in append mode
  5221. FS.llseek(stream, 0, 2);
  5222. }
  5223. var seeking = true;
  5224. if (typeof position === 'undefined') {
  5225. position = stream.position;
  5226. seeking = false;
  5227. } else if (!stream.seekable) {
  5228. throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
  5229. }
  5230. var bytesWritten = stream.stream_ops.write(stream, buffer, offset, length, position, canOwn);
  5231. if (!seeking) stream.position += bytesWritten;
  5232. try {
  5233. if (stream.path && FS.trackingDelegate['onWriteToFile']) FS.trackingDelegate['onWriteToFile'](stream.path);
  5234. } catch(e) {
  5235. console.log("FS.trackingDelegate['onWriteToFile']('"+path+"') threw an exception: " + e.message);
  5236. }
  5237. return bytesWritten;
  5238. },allocate:function (stream, offset, length) {
  5239. if (offset < 0 || length <= 0) {
  5240. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5241. }
  5242. if ((stream.flags & 2097155) === 0) {
  5243. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5244. }
  5245. if (!FS.isFile(stream.node.mode) && !FS.isDir(node.mode)) {
  5246. throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
  5247. }
  5248. if (!stream.stream_ops.allocate) {
  5249. throw new FS.ErrnoError(ERRNO_CODES.EOPNOTSUPP);
  5250. }
  5251. stream.stream_ops.allocate(stream, offset, length);
  5252. },mmap:function (stream, buffer, offset, length, position, prot, flags) {
  5253. // TODO if PROT is PROT_WRITE, make sure we have write access
  5254. if ((stream.flags & 2097155) === 1) {
  5255. throw new FS.ErrnoError(ERRNO_CODES.EACCES);
  5256. }
  5257. if (!stream.stream_ops.mmap) {
  5258. throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
  5259. }
  5260. return stream.stream_ops.mmap(stream, buffer, offset, length, position, prot, flags);
  5261. },msync:function (stream, buffer, offset, length, mmapFlags) {
  5262. if (!stream || !stream.stream_ops.msync) {
  5263. return 0;
  5264. }
  5265. return stream.stream_ops.msync(stream, buffer, offset, length, mmapFlags);
  5266. },munmap:function (stream) {
  5267. return 0;
  5268. },ioctl:function (stream, cmd, arg) {
  5269. if (!stream.stream_ops.ioctl) {
  5270. throw new FS.ErrnoError(ERRNO_CODES.ENOTTY);
  5271. }
  5272. return stream.stream_ops.ioctl(stream, cmd, arg);
  5273. },readFile:function (path, opts) {
  5274. opts = opts || {};
  5275. opts.flags = opts.flags || 'r';
  5276. opts.encoding = opts.encoding || 'binary';
  5277. if (opts.encoding !== 'utf8' && opts.encoding !== 'binary') {
  5278. throw new Error('Invalid encoding type "' + opts.encoding + '"');
  5279. }
  5280. var ret;
  5281. var stream = FS.open(path, opts.flags);
  5282. var stat = FS.stat(path);
  5283. var length = stat.size;
  5284. var buf = new Uint8Array(length);
  5285. FS.read(stream, buf, 0, length, 0);
  5286. if (opts.encoding === 'utf8') {
  5287. ret = UTF8ArrayToString(buf, 0);
  5288. } else if (opts.encoding === 'binary') {
  5289. ret = buf;
  5290. }
  5291. FS.close(stream);
  5292. return ret;
  5293. },writeFile:function (path, data, opts) {
  5294. opts = opts || {};
  5295. opts.flags = opts.flags || 'w';
  5296. opts.encoding = opts.encoding || 'utf8';
  5297. if (opts.encoding !== 'utf8' && opts.encoding !== 'binary') {
  5298. throw new Error('Invalid encoding type "' + opts.encoding + '"');
  5299. }
  5300. var stream = FS.open(path, opts.flags, opts.mode);
  5301. if (opts.encoding === 'utf8') {
  5302. var buf = new Uint8Array(lengthBytesUTF8(data)+1);
  5303. var actualNumBytes = stringToUTF8Array(data, buf, 0, buf.length);
  5304. FS.write(stream, buf, 0, actualNumBytes, 0, opts.canOwn);
  5305. } else if (opts.encoding === 'binary') {
  5306. FS.write(stream, data, 0, data.length, 0, opts.canOwn);
  5307. }
  5308. FS.close(stream);
  5309. },cwd:function () {
  5310. return FS.currentPath;
  5311. },chdir:function (path) {
  5312. var lookup = FS.lookupPath(path, { follow: true });
  5313. if (lookup.node === null) {
  5314. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  5315. }
  5316. if (!FS.isDir(lookup.node.mode)) {
  5317. throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR);
  5318. }
  5319. var err = FS.nodePermissions(lookup.node, 'x');
  5320. if (err) {
  5321. throw new FS.ErrnoError(err);
  5322. }
  5323. FS.currentPath = lookup.path;
  5324. },createDefaultDirectories:function () {
  5325. FS.mkdir('/tmp');
  5326. FS.mkdir('/home');
  5327. FS.mkdir('/home/web_user');
  5328. },createDefaultDevices:function () {
  5329. // create /dev
  5330. FS.mkdir('/dev');
  5331. // setup /dev/null
  5332. FS.registerDevice(FS.makedev(1, 3), {
  5333. read: function() { return 0; },
  5334. write: function(stream, buffer, offset, length, pos) { return length; }
  5335. });
  5336. FS.mkdev('/dev/null', FS.makedev(1, 3));
  5337. // setup /dev/tty and /dev/tty1
  5338. // stderr needs to print output using Module['printErr']
  5339. // so we register a second tty just for it.
  5340. TTY.register(FS.makedev(5, 0), TTY.default_tty_ops);
  5341. TTY.register(FS.makedev(6, 0), TTY.default_tty1_ops);
  5342. FS.mkdev('/dev/tty', FS.makedev(5, 0));
  5343. FS.mkdev('/dev/tty1', FS.makedev(6, 0));
  5344. // setup /dev/[u]random
  5345. var random_device;
  5346. if (typeof crypto !== 'undefined') {
  5347. // for modern web browsers
  5348. var randomBuffer = new Uint8Array(1);
  5349. random_device = function() { crypto.getRandomValues(randomBuffer); return randomBuffer[0]; };
  5350. } else if (ENVIRONMENT_IS_NODE) {
  5351. // for nodejs
  5352. random_device = function() { return require('crypto').randomBytes(1)[0]; };
  5353. } else {
  5354. // default for ES5 platforms
  5355. random_device = function() { return (Math.random()*256)|0; };
  5356. }
  5357. FS.createDevice('/dev', 'random', random_device);
  5358. FS.createDevice('/dev', 'urandom', random_device);
  5359. // we're not going to emulate the actual shm device,
  5360. // just create the tmp dirs that reside in it commonly
  5361. FS.mkdir('/dev/shm');
  5362. FS.mkdir('/dev/shm/tmp');
  5363. },createSpecialDirectories:function () {
  5364. // create /proc/self/fd which allows /proc/self/fd/6 => readlink gives the name of the stream for fd 6 (see test_unistd_ttyname)
  5365. FS.mkdir('/proc');
  5366. FS.mkdir('/proc/self');
  5367. FS.mkdir('/proc/self/fd');
  5368. FS.mount({
  5369. mount: function() {
  5370. var node = FS.createNode('/proc/self', 'fd', 16384 | 511 /* 0777 */, 73);
  5371. node.node_ops = {
  5372. lookup: function(parent, name) {
  5373. var fd = +name;
  5374. var stream = FS.getStream(fd);
  5375. if (!stream) throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5376. var ret = {
  5377. parent: null,
  5378. mount: { mountpoint: 'fake' },
  5379. node_ops: { readlink: function() { return stream.path } }
  5380. };
  5381. ret.parent = ret; // make it look like a simple root node
  5382. return ret;
  5383. }
  5384. };
  5385. return node;
  5386. }
  5387. }, {}, '/proc/self/fd');
  5388. },createStandardStreams:function () {
  5389. // TODO deprecate the old functionality of a single
  5390. // input / output callback and that utilizes FS.createDevice
  5391. // and instead require a unique set of stream ops
  5392. // by default, we symlink the standard streams to the
  5393. // default tty devices. however, if the standard streams
  5394. // have been overwritten we create a unique device for
  5395. // them instead.
  5396. if (Module['stdin']) {
  5397. FS.createDevice('/dev', 'stdin', Module['stdin']);
  5398. } else {
  5399. FS.symlink('/dev/tty', '/dev/stdin');
  5400. }
  5401. if (Module['stdout']) {
  5402. FS.createDevice('/dev', 'stdout', null, Module['stdout']);
  5403. } else {
  5404. FS.symlink('/dev/tty', '/dev/stdout');
  5405. }
  5406. if (Module['stderr']) {
  5407. FS.createDevice('/dev', 'stderr', null, Module['stderr']);
  5408. } else {
  5409. FS.symlink('/dev/tty1', '/dev/stderr');
  5410. }
  5411. // open default streams for the stdin, stdout and stderr devices
  5412. var stdin = FS.open('/dev/stdin', 'r');
  5413. assert(stdin.fd === 0, 'invalid handle for stdin (' + stdin.fd + ')');
  5414. var stdout = FS.open('/dev/stdout', 'w');
  5415. assert(stdout.fd === 1, 'invalid handle for stdout (' + stdout.fd + ')');
  5416. var stderr = FS.open('/dev/stderr', 'w');
  5417. assert(stderr.fd === 2, 'invalid handle for stderr (' + stderr.fd + ')');
  5418. },ensureErrnoError:function () {
  5419. if (FS.ErrnoError) return;
  5420. FS.ErrnoError = function ErrnoError(errno, node) {
  5421. //Module.printErr(stackTrace()); // useful for debugging
  5422. this.node = node;
  5423. this.setErrno = function(errno) {
  5424. this.errno = errno;
  5425. for (var key in ERRNO_CODES) {
  5426. if (ERRNO_CODES[key] === errno) {
  5427. this.code = key;
  5428. break;
  5429. }
  5430. }
  5431. };
  5432. this.setErrno(errno);
  5433. this.message = ERRNO_MESSAGES[errno];
  5434. if (this.stack) this.stack = demangleAll(this.stack);
  5435. };
  5436. FS.ErrnoError.prototype = new Error();
  5437. FS.ErrnoError.prototype.constructor = FS.ErrnoError;
  5438. // Some errors may happen quite a bit, to avoid overhead we reuse them (and suffer a lack of stack info)
  5439. [ERRNO_CODES.ENOENT].forEach(function(code) {
  5440. FS.genericErrors[code] = new FS.ErrnoError(code);
  5441. FS.genericErrors[code].stack = '<generic error, no stack>';
  5442. });
  5443. },staticInit:function () {
  5444. FS.ensureErrnoError();
  5445. FS.nameTable = new Array(4096);
  5446. FS.mount(MEMFS, {}, '/');
  5447. FS.createDefaultDirectories();
  5448. FS.createDefaultDevices();
  5449. FS.createSpecialDirectories();
  5450. FS.filesystems = {
  5451. 'MEMFS': MEMFS,
  5452. 'IDBFS': IDBFS,
  5453. 'NODEFS': NODEFS,
  5454. 'WORKERFS': WORKERFS,
  5455. };
  5456. },init:function (input, output, error) {
  5457. assert(!FS.init.initialized, 'FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)');
  5458. FS.init.initialized = true;
  5459. FS.ensureErrnoError();
  5460. // Allow Module.stdin etc. to provide defaults, if none explicitly passed to us here
  5461. Module['stdin'] = input || Module['stdin'];
  5462. Module['stdout'] = output || Module['stdout'];
  5463. Module['stderr'] = error || Module['stderr'];
  5464. FS.createStandardStreams();
  5465. },quit:function () {
  5466. FS.init.initialized = false;
  5467. // force-flush all streams, so we get musl std streams printed out
  5468. var fflush = Module['_fflush'];
  5469. if (fflush) fflush(0);
  5470. // close all of our streams
  5471. for (var i = 0; i < FS.streams.length; i++) {
  5472. var stream = FS.streams[i];
  5473. if (!stream) {
  5474. continue;
  5475. }
  5476. FS.close(stream);
  5477. }
  5478. },getMode:function (canRead, canWrite) {
  5479. var mode = 0;
  5480. if (canRead) mode |= 292 | 73;
  5481. if (canWrite) mode |= 146;
  5482. return mode;
  5483. },joinPath:function (parts, forceRelative) {
  5484. var path = PATH.join.apply(null, parts);
  5485. if (forceRelative && path[0] == '/') path = path.substr(1);
  5486. return path;
  5487. },absolutePath:function (relative, base) {
  5488. return PATH.resolve(base, relative);
  5489. },standardizePath:function (path) {
  5490. return PATH.normalize(path);
  5491. },findObject:function (path, dontResolveLastLink) {
  5492. var ret = FS.analyzePath(path, dontResolveLastLink);
  5493. if (ret.exists) {
  5494. return ret.object;
  5495. } else {
  5496. ___setErrNo(ret.error);
  5497. return null;
  5498. }
  5499. },analyzePath:function (path, dontResolveLastLink) {
  5500. // operate from within the context of the symlink's target
  5501. try {
  5502. var lookup = FS.lookupPath(path, { follow: !dontResolveLastLink });
  5503. path = lookup.path;
  5504. } catch (e) {
  5505. }
  5506. var ret = {
  5507. isRoot: false, exists: false, error: 0, name: null, path: null, object: null,
  5508. parentExists: false, parentPath: null, parentObject: null
  5509. };
  5510. try {
  5511. var lookup = FS.lookupPath(path, { parent: true });
  5512. ret.parentExists = true;
  5513. ret.parentPath = lookup.path;
  5514. ret.parentObject = lookup.node;
  5515. ret.name = PATH.basename(path);
  5516. lookup = FS.lookupPath(path, { follow: !dontResolveLastLink });
  5517. ret.exists = true;
  5518. ret.path = lookup.path;
  5519. ret.object = lookup.node;
  5520. ret.name = lookup.node.name;
  5521. ret.isRoot = lookup.path === '/';
  5522. } catch (e) {
  5523. ret.error = e.errno;
  5524. };
  5525. return ret;
  5526. },createFolder:function (parent, name, canRead, canWrite) {
  5527. var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name);
  5528. var mode = FS.getMode(canRead, canWrite);
  5529. return FS.mkdir(path, mode);
  5530. },createPath:function (parent, path, canRead, canWrite) {
  5531. parent = typeof parent === 'string' ? parent : FS.getPath(parent);
  5532. var parts = path.split('/').reverse();
  5533. while (parts.length) {
  5534. var part = parts.pop();
  5535. if (!part) continue;
  5536. var current = PATH.join2(parent, part);
  5537. try {
  5538. FS.mkdir(current);
  5539. } catch (e) {
  5540. // ignore EEXIST
  5541. }
  5542. parent = current;
  5543. }
  5544. return current;
  5545. },createFile:function (parent, name, properties, canRead, canWrite) {
  5546. var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name);
  5547. var mode = FS.getMode(canRead, canWrite);
  5548. return FS.create(path, mode);
  5549. },createDataFile:function (parent, name, data, canRead, canWrite, canOwn) {
  5550. var path = name ? PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name) : parent;
  5551. var mode = FS.getMode(canRead, canWrite);
  5552. var node = FS.create(path, mode);
  5553. if (data) {
  5554. if (typeof data === 'string') {
  5555. var arr = new Array(data.length);
  5556. for (var i = 0, len = data.length; i < len; ++i) arr[i] = data.charCodeAt(i);
  5557. data = arr;
  5558. }
  5559. // make sure we can write to the file
  5560. FS.chmod(node, mode | 146);
  5561. var stream = FS.open(node, 'w');
  5562. FS.write(stream, data, 0, data.length, 0, canOwn);
  5563. FS.close(stream);
  5564. FS.chmod(node, mode);
  5565. }
  5566. return node;
  5567. },createDevice:function (parent, name, input, output) {
  5568. var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name);
  5569. var mode = FS.getMode(!!input, !!output);
  5570. if (!FS.createDevice.major) FS.createDevice.major = 64;
  5571. var dev = FS.makedev(FS.createDevice.major++, 0);
  5572. // Create a fake device that a set of stream ops to emulate
  5573. // the old behavior.
  5574. FS.registerDevice(dev, {
  5575. open: function(stream) {
  5576. stream.seekable = false;
  5577. },
  5578. close: function(stream) {
  5579. // flush any pending line data
  5580. if (output && output.buffer && output.buffer.length) {
  5581. output(10);
  5582. }
  5583. },
  5584. read: function(stream, buffer, offset, length, pos /* ignored */) {
  5585. var bytesRead = 0;
  5586. for (var i = 0; i < length; i++) {
  5587. var result;
  5588. try {
  5589. result = input();
  5590. } catch (e) {
  5591. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  5592. }
  5593. if (result === undefined && bytesRead === 0) {
  5594. throw new FS.ErrnoError(ERRNO_CODES.EAGAIN);
  5595. }
  5596. if (result === null || result === undefined) break;
  5597. bytesRead++;
  5598. buffer[offset+i] = result;
  5599. }
  5600. if (bytesRead) {
  5601. stream.node.timestamp = Date.now();
  5602. }
  5603. return bytesRead;
  5604. },
  5605. write: function(stream, buffer, offset, length, pos) {
  5606. for (var i = 0; i < length; i++) {
  5607. try {
  5608. output(buffer[offset+i]);
  5609. } catch (e) {
  5610. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  5611. }
  5612. }
  5613. if (length) {
  5614. stream.node.timestamp = Date.now();
  5615. }
  5616. return i;
  5617. }
  5618. });
  5619. return FS.mkdev(path, mode, dev);
  5620. },createLink:function (parent, name, target, canRead, canWrite) {
  5621. var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name);
  5622. return FS.symlink(target, path);
  5623. },forceLoadFile:function (obj) {
  5624. if (obj.isDevice || obj.isFolder || obj.link || obj.contents) return true;
  5625. var success = true;
  5626. if (typeof XMLHttpRequest !== 'undefined') {
  5627. throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");
  5628. } else if (Module['read']) {
  5629. // Command-line.
  5630. try {
  5631. // WARNING: Can't read binary files in V8's d8 or tracemonkey's js, as
  5632. // read() will try to parse UTF8.
  5633. obj.contents = intArrayFromString(Module['read'](obj.url), true);
  5634. obj.usedBytes = obj.contents.length;
  5635. } catch (e) {
  5636. success = false;
  5637. }
  5638. } else {
  5639. throw new Error('Cannot load without read() or XMLHttpRequest.');
  5640. }
  5641. if (!success) ___setErrNo(ERRNO_CODES.EIO);
  5642. return success;
  5643. },createLazyFile:function (parent, name, url, canRead, canWrite) {
  5644. // Lazy chunked Uint8Array (implements get and length from Uint8Array). Actual getting is abstracted away for eventual reuse.
  5645. function LazyUint8Array() {
  5646. this.lengthKnown = false;
  5647. this.chunks = []; // Loaded chunks. Index is the chunk number
  5648. }
  5649. LazyUint8Array.prototype.get = function LazyUint8Array_get(idx) {
  5650. if (idx > this.length-1 || idx < 0) {
  5651. return undefined;
  5652. }
  5653. var chunkOffset = idx % this.chunkSize;
  5654. var chunkNum = (idx / this.chunkSize)|0;
  5655. return this.getter(chunkNum)[chunkOffset];
  5656. }
  5657. LazyUint8Array.prototype.setDataGetter = function LazyUint8Array_setDataGetter(getter) {
  5658. this.getter = getter;
  5659. }
  5660. LazyUint8Array.prototype.cacheLength = function LazyUint8Array_cacheLength() {
  5661. // Find length
  5662. var xhr = new XMLHttpRequest();
  5663. xhr.open('HEAD', url, false);
  5664. xhr.send(null);
  5665. if (!(xhr.status >= 200 && xhr.status < 300 || xhr.status === 304)) throw new Error("Couldn't load " + url + ". Status: " + xhr.status);
  5666. var datalength = Number(xhr.getResponseHeader("Content-length"));
  5667. var header;
  5668. var hasByteServing = (header = xhr.getResponseHeader("Accept-Ranges")) && header === "bytes";
  5669. var usesGzip = (header = xhr.getResponseHeader("Content-Encoding")) && header === "gzip";
  5670. var chunkSize = 1024*1024; // Chunk size in bytes
  5671. if (!hasByteServing) chunkSize = datalength;
  5672. // Function to get a range from the remote URL.
  5673. var doXHR = (function(from, to) {
  5674. if (from > to) throw new Error("invalid range (" + from + ", " + to + ") or no bytes requested!");
  5675. if (to > datalength-1) throw new Error("only " + datalength + " bytes available! programmer error!");
  5676. // TODO: Use mozResponseArrayBuffer, responseStream, etc. if available.
  5677. var xhr = new XMLHttpRequest();
  5678. xhr.open('GET', url, false);
  5679. if (datalength !== chunkSize) xhr.setRequestHeader("Range", "bytes=" + from + "-" + to);
  5680. // Some hints to the browser that we want binary data.
  5681. if (typeof Uint8Array != 'undefined') xhr.responseType = 'arraybuffer';
  5682. if (xhr.overrideMimeType) {
  5683. xhr.overrideMimeType('text/plain; charset=x-user-defined');
  5684. }
  5685. xhr.send(null);
  5686. if (!(xhr.status >= 200 && xhr.status < 300 || xhr.status === 304)) throw new Error("Couldn't load " + url + ". Status: " + xhr.status);
  5687. if (xhr.response !== undefined) {
  5688. return new Uint8Array(xhr.response || []);
  5689. } else {
  5690. return intArrayFromString(xhr.responseText || '', true);
  5691. }
  5692. });
  5693. var lazyArray = this;
  5694. lazyArray.setDataGetter(function(chunkNum) {
  5695. var start = chunkNum * chunkSize;
  5696. var end = (chunkNum+1) * chunkSize - 1; // including this byte
  5697. end = Math.min(end, datalength-1); // if datalength-1 is selected, this is the last block
  5698. if (typeof(lazyArray.chunks[chunkNum]) === "undefined") {
  5699. lazyArray.chunks[chunkNum] = doXHR(start, end);
  5700. }
  5701. if (typeof(lazyArray.chunks[chunkNum]) === "undefined") throw new Error("doXHR failed!");
  5702. return lazyArray.chunks[chunkNum];
  5703. });
  5704. if (usesGzip || !datalength) {
  5705. // if the server uses gzip or doesn't supply the length, we have to download the whole file to get the (uncompressed) length
  5706. chunkSize = datalength = 1; // this will force getter(0)/doXHR do download the whole file
  5707. datalength = this.getter(0).length;
  5708. chunkSize = datalength;
  5709. console.log("LazyFiles on gzip forces download of the whole file when length is accessed");
  5710. }
  5711. this._length = datalength;
  5712. this._chunkSize = chunkSize;
  5713. this.lengthKnown = true;
  5714. }
  5715. if (typeof XMLHttpRequest !== 'undefined') {
  5716. if (!ENVIRONMENT_IS_WORKER) throw 'Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc';
  5717. var lazyArray = new LazyUint8Array();
  5718. Object.defineProperties(lazyArray, {
  5719. length: {
  5720. get: function() {
  5721. if(!this.lengthKnown) {
  5722. this.cacheLength();
  5723. }
  5724. return this._length;
  5725. }
  5726. },
  5727. chunkSize: {
  5728. get: function() {
  5729. if(!this.lengthKnown) {
  5730. this.cacheLength();
  5731. }
  5732. return this._chunkSize;
  5733. }
  5734. }
  5735. });
  5736. var properties = { isDevice: false, contents: lazyArray };
  5737. } else {
  5738. var properties = { isDevice: false, url: url };
  5739. }
  5740. var node = FS.createFile(parent, name, properties, canRead, canWrite);
  5741. // This is a total hack, but I want to get this lazy file code out of the
  5742. // core of MEMFS. If we want to keep this lazy file concept I feel it should
  5743. // be its own thin LAZYFS proxying calls to MEMFS.
  5744. if (properties.contents) {
  5745. node.contents = properties.contents;
  5746. } else if (properties.url) {
  5747. node.contents = null;
  5748. node.url = properties.url;
  5749. }
  5750. // Add a function that defers querying the file size until it is asked the first time.
  5751. Object.defineProperties(node, {
  5752. usedBytes: {
  5753. get: function() { return this.contents.length; }
  5754. }
  5755. });
  5756. // override each stream op with one that tries to force load the lazy file first
  5757. var stream_ops = {};
  5758. var keys = Object.keys(node.stream_ops);
  5759. keys.forEach(function(key) {
  5760. var fn = node.stream_ops[key];
  5761. stream_ops[key] = function forceLoadLazyFile() {
  5762. if (!FS.forceLoadFile(node)) {
  5763. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  5764. }
  5765. return fn.apply(null, arguments);
  5766. };
  5767. });
  5768. // use a custom read function
  5769. stream_ops.read = function stream_ops_read(stream, buffer, offset, length, position) {
  5770. if (!FS.forceLoadFile(node)) {
  5771. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  5772. }
  5773. var contents = stream.node.contents;
  5774. if (position >= contents.length)
  5775. return 0;
  5776. var size = Math.min(contents.length - position, length);
  5777. assert(size >= 0);
  5778. if (contents.slice) { // normal array
  5779. for (var i = 0; i < size; i++) {
  5780. buffer[offset + i] = contents[position + i];
  5781. }
  5782. } else {
  5783. for (var i = 0; i < size; i++) { // LazyUint8Array from sync binary XHR
  5784. buffer[offset + i] = contents.get(position + i);
  5785. }
  5786. }
  5787. return size;
  5788. };
  5789. node.stream_ops = stream_ops;
  5790. return node;
  5791. },createPreloadedFile:function (parent, name, url, canRead, canWrite, onload, onerror, dontCreateFile, canOwn, preFinish) {
  5792. Browser.init(); // XXX perhaps this method should move onto Browser?
  5793. // TODO we should allow people to just pass in a complete filename instead
  5794. // of parent and name being that we just join them anyways
  5795. var fullname = name ? PATH.resolve(PATH.join2(parent, name)) : parent;
  5796. var dep = getUniqueRunDependency('cp ' + fullname); // might have several active requests for the same fullname
  5797. function processData(byteArray) {
  5798. function finish(byteArray) {
  5799. if (preFinish) preFinish();
  5800. if (!dontCreateFile) {
  5801. FS.createDataFile(parent, name, byteArray, canRead, canWrite, canOwn);
  5802. }
  5803. if (onload) onload();
  5804. removeRunDependency(dep);
  5805. }
  5806. var handled = false;
  5807. Module['preloadPlugins'].forEach(function(plugin) {
  5808. if (handled) return;
  5809. if (plugin['canHandle'](fullname)) {
  5810. plugin['handle'](byteArray, fullname, finish, function() {
  5811. if (onerror) onerror();
  5812. removeRunDependency(dep);
  5813. });
  5814. handled = true;
  5815. }
  5816. });
  5817. if (!handled) finish(byteArray);
  5818. }
  5819. addRunDependency(dep);
  5820. if (typeof url == 'string') {
  5821. Browser.asyncLoad(url, function(byteArray) {
  5822. processData(byteArray);
  5823. }, onerror);
  5824. } else {
  5825. processData(url);
  5826. }
  5827. },indexedDB:function () {
  5828. return window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB;
  5829. },DB_NAME:function () {
  5830. return 'EM_FS_' + window.location.pathname;
  5831. },DB_VERSION:20,DB_STORE_NAME:"FILE_DATA",saveFilesToDB:function (paths, onload, onerror) {
  5832. onload = onload || function(){};
  5833. onerror = onerror || function(){};
  5834. var indexedDB = FS.indexedDB();
  5835. try {
  5836. var openRequest = indexedDB.open(FS.DB_NAME(), FS.DB_VERSION);
  5837. } catch (e) {
  5838. return onerror(e);
  5839. }
  5840. openRequest.onupgradeneeded = function openRequest_onupgradeneeded() {
  5841. console.log('creating db');
  5842. var db = openRequest.result;
  5843. db.createObjectStore(FS.DB_STORE_NAME);
  5844. };
  5845. openRequest.onsuccess = function openRequest_onsuccess() {
  5846. var db = openRequest.result;
  5847. var transaction = db.transaction([FS.DB_STORE_NAME], 'readwrite');
  5848. var files = transaction.objectStore(FS.DB_STORE_NAME);
  5849. var ok = 0, fail = 0, total = paths.length;
  5850. function finish() {
  5851. if (fail == 0) onload(); else onerror();
  5852. }
  5853. paths.forEach(function(path) {
  5854. var putRequest = files.put(FS.analyzePath(path).object.contents, path);
  5855. putRequest.onsuccess = function putRequest_onsuccess() { ok++; if (ok + fail == total) finish() };
  5856. putRequest.onerror = function putRequest_onerror() { fail++; if (ok + fail == total) finish() };
  5857. });
  5858. transaction.onerror = onerror;
  5859. };
  5860. openRequest.onerror = onerror;
  5861. },loadFilesFromDB:function (paths, onload, onerror) {
  5862. onload = onload || function(){};
  5863. onerror = onerror || function(){};
  5864. var indexedDB = FS.indexedDB();
  5865. try {
  5866. var openRequest = indexedDB.open(FS.DB_NAME(), FS.DB_VERSION);
  5867. } catch (e) {
  5868. return onerror(e);
  5869. }
  5870. openRequest.onupgradeneeded = onerror; // no database to load from
  5871. openRequest.onsuccess = function openRequest_onsuccess() {
  5872. var db = openRequest.result;
  5873. try {
  5874. var transaction = db.transaction([FS.DB_STORE_NAME], 'readonly');
  5875. } catch(e) {
  5876. onerror(e);
  5877. return;
  5878. }
  5879. var files = transaction.objectStore(FS.DB_STORE_NAME);
  5880. var ok = 0, fail = 0, total = paths.length;
  5881. function finish() {
  5882. if (fail == 0) onload(); else onerror();
  5883. }
  5884. paths.forEach(function(path) {
  5885. var getRequest = files.get(path);
  5886. getRequest.onsuccess = function getRequest_onsuccess() {
  5887. if (FS.analyzePath(path).exists) {
  5888. FS.unlink(path);
  5889. }
  5890. FS.createDataFile(PATH.dirname(path), PATH.basename(path), getRequest.result, true, true, true);
  5891. ok++;
  5892. if (ok + fail == total) finish();
  5893. };
  5894. getRequest.onerror = function getRequest_onerror() { fail++; if (ok + fail == total) finish() };
  5895. });
  5896. transaction.onerror = onerror;
  5897. };
  5898. openRequest.onerror = onerror;
  5899. }};var SYSCALLS={DEFAULT_POLLMASK:5,mappings:{},umask:511,calculateAt:function (dirfd, path) {
  5900. if (path[0] !== '/') {
  5901. // relative path
  5902. var dir;
  5903. if (dirfd === -100) {
  5904. dir = FS.cwd();
  5905. } else {
  5906. var dirstream = FS.getStream(dirfd);
  5907. if (!dirstream) throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5908. dir = dirstream.path;
  5909. }
  5910. path = PATH.join2(dir, path);
  5911. }
  5912. return path;
  5913. },doStat:function (func, path, buf) {
  5914. try {
  5915. var stat = func(path);
  5916. } catch (e) {
  5917. if (e && e.node && PATH.normalize(path) !== PATH.normalize(FS.getPath(e.node))) {
  5918. // an error occurred while trying to look up the path; we should just report ENOTDIR
  5919. return -ERRNO_CODES.ENOTDIR;
  5920. }
  5921. throw e;
  5922. }
  5923. HEAP32[((buf)>>2)]=stat.dev;
  5924. HEAP32[(((buf)+(4))>>2)]=0;
  5925. HEAP32[(((buf)+(8))>>2)]=stat.ino;
  5926. HEAP32[(((buf)+(12))>>2)]=stat.mode;
  5927. HEAP32[(((buf)+(16))>>2)]=stat.nlink;
  5928. HEAP32[(((buf)+(20))>>2)]=stat.uid;
  5929. HEAP32[(((buf)+(24))>>2)]=stat.gid;
  5930. HEAP32[(((buf)+(28))>>2)]=stat.rdev;
  5931. HEAP32[(((buf)+(32))>>2)]=0;
  5932. HEAP32[(((buf)+(36))>>2)]=stat.size;
  5933. HEAP32[(((buf)+(40))>>2)]=4096;
  5934. HEAP32[(((buf)+(44))>>2)]=stat.blocks;
  5935. HEAP32[(((buf)+(48))>>2)]=(stat.atime.getTime() / 1000)|0;
  5936. HEAP32[(((buf)+(52))>>2)]=0;
  5937. HEAP32[(((buf)+(56))>>2)]=(stat.mtime.getTime() / 1000)|0;
  5938. HEAP32[(((buf)+(60))>>2)]=0;
  5939. HEAP32[(((buf)+(64))>>2)]=(stat.ctime.getTime() / 1000)|0;
  5940. HEAP32[(((buf)+(68))>>2)]=0;
  5941. HEAP32[(((buf)+(72))>>2)]=stat.ino;
  5942. return 0;
  5943. },doMsync:function (addr, stream, len, flags) {
  5944. var buffer = new Uint8Array(HEAPU8.subarray(addr, addr + len));
  5945. FS.msync(stream, buffer, 0, len, flags);
  5946. },doMkdir:function (path, mode) {
  5947. // remove a trailing slash, if one - /a/b/ has basename of '', but
  5948. // we want to create b in the context of this function
  5949. path = PATH.normalize(path);
  5950. if (path[path.length-1] === '/') path = path.substr(0, path.length-1);
  5951. FS.mkdir(path, mode, 0);
  5952. return 0;
  5953. },doMknod:function (path, mode, dev) {
  5954. // we don't want this in the JS API as it uses mknod to create all nodes.
  5955. switch (mode & 61440) {
  5956. case 32768:
  5957. case 8192:
  5958. case 24576:
  5959. case 4096:
  5960. case 49152:
  5961. break;
  5962. default: return -ERRNO_CODES.EINVAL;
  5963. }
  5964. FS.mknod(path, mode, dev);
  5965. return 0;
  5966. },doReadlink:function (path, buf, bufsize) {
  5967. if (bufsize <= 0) return -ERRNO_CODES.EINVAL;
  5968. var ret = FS.readlink(path);
  5969. var len = Math.min(bufsize, lengthBytesUTF8(ret));
  5970. var endChar = HEAP8[buf+len];
  5971. stringToUTF8(ret, buf, bufsize+1);
  5972. // readlink is one of the rare functions that write out a C string, but does never append a null to the output buffer(!)
  5973. // stringToUTF8() always appends a null byte, so restore the character under the null byte after the write.
  5974. HEAP8[buf+len] = endChar;
  5975. return len;
  5976. },doAccess:function (path, amode) {
  5977. if (amode & ~7) {
  5978. // need a valid mode
  5979. return -ERRNO_CODES.EINVAL;
  5980. }
  5981. var node;
  5982. var lookup = FS.lookupPath(path, { follow: true });
  5983. node = lookup.node;
  5984. var perms = '';
  5985. if (amode & 4) perms += 'r';
  5986. if (amode & 2) perms += 'w';
  5987. if (amode & 1) perms += 'x';
  5988. if (perms /* otherwise, they've just passed F_OK */ && FS.nodePermissions(node, perms)) {
  5989. return -ERRNO_CODES.EACCES;
  5990. }
  5991. return 0;
  5992. },doDup:function (path, flags, suggestFD) {
  5993. var suggest = FS.getStream(suggestFD);
  5994. if (suggest) FS.close(suggest);
  5995. return FS.open(path, flags, 0, suggestFD, suggestFD).fd;
  5996. },doReadv:function (stream, iov, iovcnt, offset) {
  5997. var ret = 0;
  5998. for (var i = 0; i < iovcnt; i++) {
  5999. var ptr = HEAP32[(((iov)+(i*8))>>2)];
  6000. var len = HEAP32[(((iov)+(i*8 + 4))>>2)];
  6001. var curr = FS.read(stream, HEAP8,ptr, len, offset);
  6002. if (curr < 0) return -1;
  6003. ret += curr;
  6004. if (curr < len) break; // nothing more to read
  6005. }
  6006. return ret;
  6007. },doWritev:function (stream, iov, iovcnt, offset) {
  6008. var ret = 0;
  6009. for (var i = 0; i < iovcnt; i++) {
  6010. var ptr = HEAP32[(((iov)+(i*8))>>2)];
  6011. var len = HEAP32[(((iov)+(i*8 + 4))>>2)];
  6012. var curr = FS.write(stream, HEAP8,ptr, len, offset);
  6013. if (curr < 0) return -1;
  6014. ret += curr;
  6015. }
  6016. return ret;
  6017. },varargs:0,get:function (varargs) {
  6018. SYSCALLS.varargs += 4;
  6019. var ret = HEAP32[(((SYSCALLS.varargs)-(4))>>2)];
  6020. return ret;
  6021. },getStr:function () {
  6022. var ret = Pointer_stringify(SYSCALLS.get());
  6023. return ret;
  6024. },getStreamFromFD:function () {
  6025. var stream = FS.getStream(SYSCALLS.get());
  6026. if (!stream) throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  6027. return stream;
  6028. },getSocketFromFD:function () {
  6029. var socket = SOCKFS.getSocket(SYSCALLS.get());
  6030. if (!socket) throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  6031. return socket;
  6032. },getSocketAddress:function (allowNull) {
  6033. var addrp = SYSCALLS.get(), addrlen = SYSCALLS.get();
  6034. if (allowNull && addrp === 0) return null;
  6035. var info = __read_sockaddr(addrp, addrlen);
  6036. if (info.errno) throw new FS.ErrnoError(info.errno);
  6037. info.addr = DNS.lookup_addr(info.addr) || info.addr;
  6038. return info;
  6039. },get64:function () {
  6040. var low = SYSCALLS.get(), high = SYSCALLS.get();
  6041. if (low >= 0) assert(high === 0);
  6042. else assert(high === -1);
  6043. return low;
  6044. },getZero:function () {
  6045. assert(SYSCALLS.get() === 0);
  6046. }};function ___syscall54(which, varargs) {SYSCALLS.varargs = varargs;
  6047. try {
  6048. // ioctl
  6049. var stream = SYSCALLS.getStreamFromFD(), op = SYSCALLS.get();
  6050. switch (op) {
  6051. case 21505: {
  6052. if (!stream.tty) return -ERRNO_CODES.ENOTTY;
  6053. return 0;
  6054. }
  6055. case 21506: {
  6056. if (!stream.tty) return -ERRNO_CODES.ENOTTY;
  6057. return 0; // no-op, not actually adjusting terminal settings
  6058. }
  6059. case 21519: {
  6060. if (!stream.tty) return -ERRNO_CODES.ENOTTY;
  6061. var argp = SYSCALLS.get();
  6062. HEAP32[((argp)>>2)]=0;
  6063. return 0;
  6064. }
  6065. case 21520: {
  6066. if (!stream.tty) return -ERRNO_CODES.ENOTTY;
  6067. return -ERRNO_CODES.EINVAL; // not supported
  6068. }
  6069. case 21531: {
  6070. var argp = SYSCALLS.get();
  6071. return FS.ioctl(stream, op, argp);
  6072. }
  6073. case 21523: {
  6074. // TODO: in theory we should write to the winsize struct that gets
  6075. // passed in, but for now musl doesn't read anything on it
  6076. if (!stream.tty) return -ERRNO_CODES.ENOTTY;
  6077. return 0;
  6078. }
  6079. default: abort('bad ioctl syscall ' + op);
  6080. }
  6081. } catch (e) {
  6082. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  6083. return -e.errno;
  6084. }
  6085. }
  6086. function _emscripten_glSampleCoverage(value, invert) {
  6087. GLctx.sampleCoverage(value, !!invert);
  6088. }
  6089. function _glDeleteTextures(n, textures) {
  6090. for (var i = 0; i < n; i++) {
  6091. var id = HEAP32[(((textures)+(i*4))>>2)];
  6092. var texture = GL.textures[id];
  6093. if (!texture) continue; // GL spec: "glDeleteTextures silently ignores 0s and names that do not correspond to existing textures".
  6094. GLctx.deleteTexture(texture);
  6095. texture.name = 0;
  6096. GL.textures[id] = null;
  6097. }
  6098. }
  6099. function _emscripten_glFrustum() {
  6100. Module['printErr']('missing function: emscripten_glFrustum'); abort(-1);
  6101. }
  6102. function _glVertexAttrib4f(x0, x1, x2, x3, x4) { GLctx['vertexAttrib4f'](x0, x1, x2, x3, x4) }
  6103. function _glfwSetWindowSizeCallback(winid, cbfun) {
  6104. GLFW.setWindowSizeCallback(winid, cbfun);
  6105. }
  6106. function _emscripten_glGetTexParameterfv(target, pname, params) {
  6107. if (!params) {
  6108. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  6109. // if p == null, issue a GL error to notify user about it.
  6110. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  6111. return;
  6112. }
  6113. HEAPF32[((params)>>2)]=GLctx.getTexParameter(target, pname);
  6114. }
  6115. function _emscripten_glUniform4i(location, v0, v1, v2, v3) {
  6116. GLctx.uniform4i(GL.uniforms[location], v0, v1, v2, v3);
  6117. }
  6118. function _emscripten_glBindRenderbuffer(target, renderbuffer) {
  6119. GLctx.bindRenderbuffer(target, renderbuffer ? GL.renderbuffers[renderbuffer] : null);
  6120. }
  6121. function _emscripten_glViewport(x0, x1, x2, x3) { GLctx['viewport'](x0, x1, x2, x3) }
  6122. var JSEvents={keyEvent:0,mouseEvent:0,wheelEvent:0,uiEvent:0,focusEvent:0,deviceOrientationEvent:0,deviceMotionEvent:0,fullscreenChangeEvent:0,pointerlockChangeEvent:0,visibilityChangeEvent:0,touchEvent:0,lastGamepadState:null,lastGamepadStateFrame:null,numGamepadsConnected:0,previousFullscreenElement:null,previousScreenX:null,previousScreenY:null,removeEventListenersRegistered:false,staticInit:function () {
  6123. if (typeof window !== 'undefined') {
  6124. window.addEventListener("gamepadconnected", function() { ++JSEvents.numGamepadsConnected; });
  6125. window.addEventListener("gamepaddisconnected", function() { --JSEvents.numGamepadsConnected; });
  6126. }
  6127. },registerRemoveEventListeners:function () {
  6128. if (!JSEvents.removeEventListenersRegistered) {
  6129. __ATEXIT__.push(function() {
  6130. for(var i = JSEvents.eventHandlers.length-1; i >= 0; --i) {
  6131. JSEvents._removeHandler(i);
  6132. }
  6133. });
  6134. JSEvents.removeEventListenersRegistered = true;
  6135. }
  6136. },findEventTarget:function (target) {
  6137. if (target) {
  6138. if (typeof target == "number") {
  6139. target = Pointer_stringify(target);
  6140. }
  6141. if (target == '#window') return window;
  6142. else if (target == '#document') return document;
  6143. else if (target == '#screen') return window.screen;
  6144. else if (target == '#canvas') return Module['canvas'];
  6145. if (typeof target == 'string') return document.getElementById(target);
  6146. else return target;
  6147. } else {
  6148. // The sensible target varies between events, but use window as the default
  6149. // since DOM events mostly can default to that. Specific callback registrations
  6150. // override their own defaults.
  6151. return window;
  6152. }
  6153. },deferredCalls:[],deferCall:function (targetFunction, precedence, argsList) {
  6154. function arraysHaveEqualContent(arrA, arrB) {
  6155. if (arrA.length != arrB.length) return false;
  6156. for(var i in arrA) {
  6157. if (arrA[i] != arrB[i]) return false;
  6158. }
  6159. return true;
  6160. }
  6161. // Test if the given call was already queued, and if so, don't add it again.
  6162. for(var i in JSEvents.deferredCalls) {
  6163. var call = JSEvents.deferredCalls[i];
  6164. if (call.targetFunction == targetFunction && arraysHaveEqualContent(call.argsList, argsList)) {
  6165. return;
  6166. }
  6167. }
  6168. JSEvents.deferredCalls.push({
  6169. targetFunction: targetFunction,
  6170. precedence: precedence,
  6171. argsList: argsList
  6172. });
  6173. JSEvents.deferredCalls.sort(function(x,y) { return x.precedence < y.precedence; });
  6174. },removeDeferredCalls:function (targetFunction) {
  6175. for(var i = 0; i < JSEvents.deferredCalls.length; ++i) {
  6176. if (JSEvents.deferredCalls[i].targetFunction == targetFunction) {
  6177. JSEvents.deferredCalls.splice(i, 1);
  6178. --i;
  6179. }
  6180. }
  6181. },canPerformEventHandlerRequests:function () {
  6182. return JSEvents.inEventHandler && JSEvents.currentEventHandler.allowsDeferredCalls;
  6183. },runDeferredCalls:function () {
  6184. if (!JSEvents.canPerformEventHandlerRequests()) {
  6185. return;
  6186. }
  6187. for(var i = 0; i < JSEvents.deferredCalls.length; ++i) {
  6188. var call = JSEvents.deferredCalls[i];
  6189. JSEvents.deferredCalls.splice(i, 1);
  6190. --i;
  6191. call.targetFunction.apply(this, call.argsList);
  6192. }
  6193. },inEventHandler:0,currentEventHandler:null,eventHandlers:[],isInternetExplorer:function () { return navigator.userAgent.indexOf('MSIE') !== -1 || navigator.appVersion.indexOf('Trident/') > 0; },removeAllHandlersOnTarget:function (target, eventTypeString) {
  6194. for(var i = 0; i < JSEvents.eventHandlers.length; ++i) {
  6195. if (JSEvents.eventHandlers[i].target == target &&
  6196. (!eventTypeString || eventTypeString == JSEvents.eventHandlers[i].eventTypeString)) {
  6197. JSEvents._removeHandler(i--);
  6198. }
  6199. }
  6200. },_removeHandler:function (i) {
  6201. var h = JSEvents.eventHandlers[i];
  6202. h.target.removeEventListener(h.eventTypeString, h.eventListenerFunc, h.useCapture);
  6203. JSEvents.eventHandlers.splice(i, 1);
  6204. },registerOrRemoveHandler:function (eventHandler) {
  6205. var jsEventHandler = function jsEventHandler(event) {
  6206. // Increment nesting count for the event handler.
  6207. ++JSEvents.inEventHandler;
  6208. JSEvents.currentEventHandler = eventHandler;
  6209. // Process any old deferred calls the user has placed.
  6210. JSEvents.runDeferredCalls();
  6211. // Process the actual event, calls back to user C code handler.
  6212. eventHandler.handlerFunc(event);
  6213. // Process any new deferred calls that were placed right now from this event handler.
  6214. JSEvents.runDeferredCalls();
  6215. // Out of event handler - restore nesting count.
  6216. --JSEvents.inEventHandler;
  6217. }
  6218. if (eventHandler.callbackfunc) {
  6219. eventHandler.eventListenerFunc = jsEventHandler;
  6220. eventHandler.target.addEventListener(eventHandler.eventTypeString, jsEventHandler, eventHandler.useCapture);
  6221. JSEvents.eventHandlers.push(eventHandler);
  6222. JSEvents.registerRemoveEventListeners();
  6223. } else {
  6224. for(var i = 0; i < JSEvents.eventHandlers.length; ++i) {
  6225. if (JSEvents.eventHandlers[i].target == eventHandler.target
  6226. && JSEvents.eventHandlers[i].eventTypeString == eventHandler.eventTypeString) {
  6227. JSEvents._removeHandler(i--);
  6228. }
  6229. }
  6230. }
  6231. },registerKeyEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6232. if (!JSEvents.keyEvent) {
  6233. JSEvents.keyEvent = _malloc( 164 );
  6234. }
  6235. var handlerFunc = function(event) {
  6236. var e = event || window.event;
  6237. stringToUTF8(e.key ? e.key : "", JSEvents.keyEvent + 0, 32);
  6238. stringToUTF8(e.code ? e.code : "", JSEvents.keyEvent + 32, 32);
  6239. HEAP32[(((JSEvents.keyEvent)+(64))>>2)]=e.location;
  6240. HEAP32[(((JSEvents.keyEvent)+(68))>>2)]=e.ctrlKey;
  6241. HEAP32[(((JSEvents.keyEvent)+(72))>>2)]=e.shiftKey;
  6242. HEAP32[(((JSEvents.keyEvent)+(76))>>2)]=e.altKey;
  6243. HEAP32[(((JSEvents.keyEvent)+(80))>>2)]=e.metaKey;
  6244. HEAP32[(((JSEvents.keyEvent)+(84))>>2)]=e.repeat;
  6245. stringToUTF8(e.locale ? e.locale : "", JSEvents.keyEvent + 88, 32);
  6246. stringToUTF8(e.char ? e.char : "", JSEvents.keyEvent + 120, 32);
  6247. HEAP32[(((JSEvents.keyEvent)+(152))>>2)]=e.charCode;
  6248. HEAP32[(((JSEvents.keyEvent)+(156))>>2)]=e.keyCode;
  6249. HEAP32[(((JSEvents.keyEvent)+(160))>>2)]=e.which;
  6250. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.keyEvent, userData);
  6251. if (shouldCancel) {
  6252. e.preventDefault();
  6253. }
  6254. };
  6255. var eventHandler = {
  6256. target: JSEvents.findEventTarget(target),
  6257. allowsDeferredCalls: JSEvents.isInternetExplorer() ? false : true, // MSIE doesn't allow fullscreen and pointerlock requests from key handlers, others do.
  6258. eventTypeString: eventTypeString,
  6259. callbackfunc: callbackfunc,
  6260. handlerFunc: handlerFunc,
  6261. useCapture: useCapture
  6262. };
  6263. JSEvents.registerOrRemoveHandler(eventHandler);
  6264. },getBoundingClientRectOrZeros:function (target) {
  6265. return target.getBoundingClientRect ? target.getBoundingClientRect() : { left: 0, top: 0 };
  6266. },fillMouseEventData:function (eventStruct, e, target) {
  6267. HEAPF64[((eventStruct)>>3)]=JSEvents.tick();
  6268. HEAP32[(((eventStruct)+(8))>>2)]=e.screenX;
  6269. HEAP32[(((eventStruct)+(12))>>2)]=e.screenY;
  6270. HEAP32[(((eventStruct)+(16))>>2)]=e.clientX;
  6271. HEAP32[(((eventStruct)+(20))>>2)]=e.clientY;
  6272. HEAP32[(((eventStruct)+(24))>>2)]=e.ctrlKey;
  6273. HEAP32[(((eventStruct)+(28))>>2)]=e.shiftKey;
  6274. HEAP32[(((eventStruct)+(32))>>2)]=e.altKey;
  6275. HEAP32[(((eventStruct)+(36))>>2)]=e.metaKey;
  6276. HEAP16[(((eventStruct)+(40))>>1)]=e.button;
  6277. HEAP16[(((eventStruct)+(42))>>1)]=e.buttons;
  6278. HEAP32[(((eventStruct)+(44))>>2)]=e["movementX"] || e["mozMovementX"] || e["webkitMovementX"] || (e.screenX-JSEvents.previousScreenX);
  6279. HEAP32[(((eventStruct)+(48))>>2)]=e["movementY"] || e["mozMovementY"] || e["webkitMovementY"] || (e.screenY-JSEvents.previousScreenY);
  6280. if (Module['canvas']) {
  6281. var rect = Module['canvas'].getBoundingClientRect();
  6282. HEAP32[(((eventStruct)+(60))>>2)]=e.clientX - rect.left;
  6283. HEAP32[(((eventStruct)+(64))>>2)]=e.clientY - rect.top;
  6284. } else { // Canvas is not initialized, return 0.
  6285. HEAP32[(((eventStruct)+(60))>>2)]=0;
  6286. HEAP32[(((eventStruct)+(64))>>2)]=0;
  6287. }
  6288. if (target) {
  6289. var rect = JSEvents.getBoundingClientRectOrZeros(target);
  6290. HEAP32[(((eventStruct)+(52))>>2)]=e.clientX - rect.left;
  6291. HEAP32[(((eventStruct)+(56))>>2)]=e.clientY - rect.top;
  6292. } else { // No specific target passed, return 0.
  6293. HEAP32[(((eventStruct)+(52))>>2)]=0;
  6294. HEAP32[(((eventStruct)+(56))>>2)]=0;
  6295. }
  6296. // wheel and mousewheel events contain wrong screenX/screenY on chrome/opera
  6297. // https://github.com/kripken/emscripten/pull/4997
  6298. // https://bugs.chromium.org/p/chromium/issues/detail?id=699956
  6299. if (e.type !== 'wheel' && e.type !== 'mousewheel') {
  6300. JSEvents.previousScreenX = e.screenX;
  6301. JSEvents.previousScreenY = e.screenY;
  6302. }
  6303. },registerMouseEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6304. if (!JSEvents.mouseEvent) {
  6305. JSEvents.mouseEvent = _malloc( 72 );
  6306. }
  6307. target = JSEvents.findEventTarget(target);
  6308. var handlerFunc = function(event) {
  6309. var e = event || window.event;
  6310. JSEvents.fillMouseEventData(JSEvents.mouseEvent, e, target);
  6311. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.mouseEvent, userData);
  6312. if (shouldCancel) {
  6313. e.preventDefault();
  6314. }
  6315. };
  6316. var eventHandler = {
  6317. target: target,
  6318. allowsDeferredCalls: eventTypeString != 'mousemove' && eventTypeString != 'mouseenter' && eventTypeString != 'mouseleave', // Mouse move events do not allow fullscreen/pointer lock requests to be handled in them!
  6319. eventTypeString: eventTypeString,
  6320. callbackfunc: callbackfunc,
  6321. handlerFunc: handlerFunc,
  6322. useCapture: useCapture
  6323. };
  6324. // In IE, mousedown events don't either allow deferred calls to be run!
  6325. if (JSEvents.isInternetExplorer() && eventTypeString == 'mousedown') eventHandler.allowsDeferredCalls = false;
  6326. JSEvents.registerOrRemoveHandler(eventHandler);
  6327. },registerWheelEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6328. if (!JSEvents.wheelEvent) {
  6329. JSEvents.wheelEvent = _malloc( 104 );
  6330. }
  6331. target = JSEvents.findEventTarget(target);
  6332. // The DOM Level 3 events spec event 'wheel'
  6333. var wheelHandlerFunc = function(event) {
  6334. var e = event || window.event;
  6335. JSEvents.fillMouseEventData(JSEvents.wheelEvent, e, target);
  6336. HEAPF64[(((JSEvents.wheelEvent)+(72))>>3)]=e["deltaX"];
  6337. HEAPF64[(((JSEvents.wheelEvent)+(80))>>3)]=e["deltaY"];
  6338. HEAPF64[(((JSEvents.wheelEvent)+(88))>>3)]=e["deltaZ"];
  6339. HEAP32[(((JSEvents.wheelEvent)+(96))>>2)]=e["deltaMode"];
  6340. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.wheelEvent, userData);
  6341. if (shouldCancel) {
  6342. e.preventDefault();
  6343. }
  6344. };
  6345. // The 'mousewheel' event as implemented in Safari 6.0.5
  6346. var mouseWheelHandlerFunc = function(event) {
  6347. var e = event || window.event;
  6348. JSEvents.fillMouseEventData(JSEvents.wheelEvent, e, target);
  6349. HEAPF64[(((JSEvents.wheelEvent)+(72))>>3)]=e["wheelDeltaX"] || 0;
  6350. HEAPF64[(((JSEvents.wheelEvent)+(80))>>3)]=-(e["wheelDeltaY"] ? e["wheelDeltaY"] : e["wheelDelta"]) /* 1. Invert to unify direction with the DOM Level 3 wheel event. 2. MSIE does not provide wheelDeltaY, so wheelDelta is used as a fallback. */;
  6351. HEAPF64[(((JSEvents.wheelEvent)+(88))>>3)]=0 /* Not available */;
  6352. HEAP32[(((JSEvents.wheelEvent)+(96))>>2)]=0 /* DOM_DELTA_PIXEL */;
  6353. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.wheelEvent, userData);
  6354. if (shouldCancel) {
  6355. e.preventDefault();
  6356. }
  6357. };
  6358. var eventHandler = {
  6359. target: target,
  6360. allowsDeferredCalls: true,
  6361. eventTypeString: eventTypeString,
  6362. callbackfunc: callbackfunc,
  6363. handlerFunc: (eventTypeString == 'wheel') ? wheelHandlerFunc : mouseWheelHandlerFunc,
  6364. useCapture: useCapture
  6365. };
  6366. JSEvents.registerOrRemoveHandler(eventHandler);
  6367. },pageScrollPos:function () {
  6368. if (window.pageXOffset > 0 || window.pageYOffset > 0) {
  6369. return [window.pageXOffset, window.pageYOffset];
  6370. }
  6371. if (typeof document.documentElement.scrollLeft !== 'undefined' || typeof document.documentElement.scrollTop !== 'undefined') {
  6372. return [document.documentElement.scrollLeft, document.documentElement.scrollTop];
  6373. }
  6374. return [document.body.scrollLeft|0, document.body.scrollTop|0];
  6375. },registerUiEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6376. if (!JSEvents.uiEvent) {
  6377. JSEvents.uiEvent = _malloc( 36 );
  6378. }
  6379. if (eventTypeString == "scroll" && !target) {
  6380. target = document; // By default read scroll events on document rather than window.
  6381. } else {
  6382. target = JSEvents.findEventTarget(target);
  6383. }
  6384. var handlerFunc = function(event) {
  6385. var e = event || window.event;
  6386. if (e.target != target) {
  6387. // Never take ui events such as scroll via a 'bubbled' route, but always from the direct element that
  6388. // was targeted. Otherwise e.g. if app logs a message in response to a page scroll, the Emscripten log
  6389. // message box could cause to scroll, generating a new (bubbled) scroll message, causing a new log print,
  6390. // causing a new scroll, etc..
  6391. return;
  6392. }
  6393. var scrollPos = JSEvents.pageScrollPos();
  6394. HEAP32[((JSEvents.uiEvent)>>2)]=e.detail;
  6395. HEAP32[(((JSEvents.uiEvent)+(4))>>2)]=document.body.clientWidth;
  6396. HEAP32[(((JSEvents.uiEvent)+(8))>>2)]=document.body.clientHeight;
  6397. HEAP32[(((JSEvents.uiEvent)+(12))>>2)]=window.innerWidth;
  6398. HEAP32[(((JSEvents.uiEvent)+(16))>>2)]=window.innerHeight;
  6399. HEAP32[(((JSEvents.uiEvent)+(20))>>2)]=window.outerWidth;
  6400. HEAP32[(((JSEvents.uiEvent)+(24))>>2)]=window.outerHeight;
  6401. HEAP32[(((JSEvents.uiEvent)+(28))>>2)]=scrollPos[0];
  6402. HEAP32[(((JSEvents.uiEvent)+(32))>>2)]=scrollPos[1];
  6403. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.uiEvent, userData);
  6404. if (shouldCancel) {
  6405. e.preventDefault();
  6406. }
  6407. };
  6408. var eventHandler = {
  6409. target: target,
  6410. allowsDeferredCalls: false, // Neither scroll or resize events allow running requests inside them.
  6411. eventTypeString: eventTypeString,
  6412. callbackfunc: callbackfunc,
  6413. handlerFunc: handlerFunc,
  6414. useCapture: useCapture
  6415. };
  6416. JSEvents.registerOrRemoveHandler(eventHandler);
  6417. },getNodeNameForTarget:function (target) {
  6418. if (!target) return '';
  6419. if (target == window) return '#window';
  6420. if (target == window.screen) return '#screen';
  6421. return (target && target.nodeName) ? target.nodeName : '';
  6422. },registerFocusEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6423. if (!JSEvents.focusEvent) {
  6424. JSEvents.focusEvent = _malloc( 256 );
  6425. }
  6426. var handlerFunc = function(event) {
  6427. var e = event || window.event;
  6428. var nodeName = JSEvents.getNodeNameForTarget(e.target);
  6429. var id = e.target.id ? e.target.id : '';
  6430. stringToUTF8(nodeName, JSEvents.focusEvent + 0, 128);
  6431. stringToUTF8(id, JSEvents.focusEvent + 128, 128);
  6432. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.focusEvent, userData);
  6433. if (shouldCancel) {
  6434. e.preventDefault();
  6435. }
  6436. };
  6437. var eventHandler = {
  6438. target: JSEvents.findEventTarget(target),
  6439. allowsDeferredCalls: false,
  6440. eventTypeString: eventTypeString,
  6441. callbackfunc: callbackfunc,
  6442. handlerFunc: handlerFunc,
  6443. useCapture: useCapture
  6444. };
  6445. JSEvents.registerOrRemoveHandler(eventHandler);
  6446. },tick:function () {
  6447. if (window['performance'] && window['performance']['now']) return window['performance']['now']();
  6448. else return Date.now();
  6449. },registerDeviceOrientationEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6450. if (!JSEvents.deviceOrientationEvent) {
  6451. JSEvents.deviceOrientationEvent = _malloc( 40 );
  6452. }
  6453. var handlerFunc = function(event) {
  6454. var e = event || window.event;
  6455. HEAPF64[((JSEvents.deviceOrientationEvent)>>3)]=JSEvents.tick();
  6456. HEAPF64[(((JSEvents.deviceOrientationEvent)+(8))>>3)]=e.alpha;
  6457. HEAPF64[(((JSEvents.deviceOrientationEvent)+(16))>>3)]=e.beta;
  6458. HEAPF64[(((JSEvents.deviceOrientationEvent)+(24))>>3)]=e.gamma;
  6459. HEAP32[(((JSEvents.deviceOrientationEvent)+(32))>>2)]=e.absolute;
  6460. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.deviceOrientationEvent, userData);
  6461. if (shouldCancel) {
  6462. e.preventDefault();
  6463. }
  6464. };
  6465. var eventHandler = {
  6466. target: JSEvents.findEventTarget(target),
  6467. allowsDeferredCalls: false,
  6468. eventTypeString: eventTypeString,
  6469. callbackfunc: callbackfunc,
  6470. handlerFunc: handlerFunc,
  6471. useCapture: useCapture
  6472. };
  6473. JSEvents.registerOrRemoveHandler(eventHandler);
  6474. },registerDeviceMotionEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6475. if (!JSEvents.deviceMotionEvent) {
  6476. JSEvents.deviceMotionEvent = _malloc( 80 );
  6477. }
  6478. var handlerFunc = function(event) {
  6479. var e = event || window.event;
  6480. HEAPF64[((JSEvents.deviceOrientationEvent)>>3)]=JSEvents.tick();
  6481. HEAPF64[(((JSEvents.deviceMotionEvent)+(8))>>3)]=e.acceleration.x;
  6482. HEAPF64[(((JSEvents.deviceMotionEvent)+(16))>>3)]=e.acceleration.y;
  6483. HEAPF64[(((JSEvents.deviceMotionEvent)+(24))>>3)]=e.acceleration.z;
  6484. HEAPF64[(((JSEvents.deviceMotionEvent)+(32))>>3)]=e.accelerationIncludingGravity.x;
  6485. HEAPF64[(((JSEvents.deviceMotionEvent)+(40))>>3)]=e.accelerationIncludingGravity.y;
  6486. HEAPF64[(((JSEvents.deviceMotionEvent)+(48))>>3)]=e.accelerationIncludingGravity.z;
  6487. HEAPF64[(((JSEvents.deviceMotionEvent)+(56))>>3)]=e.rotationRate.alpha;
  6488. HEAPF64[(((JSEvents.deviceMotionEvent)+(64))>>3)]=e.rotationRate.beta;
  6489. HEAPF64[(((JSEvents.deviceMotionEvent)+(72))>>3)]=e.rotationRate.gamma;
  6490. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.deviceMotionEvent, userData);
  6491. if (shouldCancel) {
  6492. e.preventDefault();
  6493. }
  6494. };
  6495. var eventHandler = {
  6496. target: JSEvents.findEventTarget(target),
  6497. allowsDeferredCalls: false,
  6498. eventTypeString: eventTypeString,
  6499. callbackfunc: callbackfunc,
  6500. handlerFunc: handlerFunc,
  6501. useCapture: useCapture
  6502. };
  6503. JSEvents.registerOrRemoveHandler(eventHandler);
  6504. },screenOrientation:function () {
  6505. if (!window.screen) return undefined;
  6506. return window.screen.orientation || window.screen.mozOrientation || window.screen.webkitOrientation || window.screen.msOrientation;
  6507. },fillOrientationChangeEventData:function (eventStruct, e) {
  6508. var orientations = ["portrait-primary", "portrait-secondary", "landscape-primary", "landscape-secondary"];
  6509. var orientations2 = ["portrait", "portrait", "landscape", "landscape"];
  6510. var orientationString = JSEvents.screenOrientation();
  6511. var orientation = orientations.indexOf(orientationString);
  6512. if (orientation == -1) {
  6513. orientation = orientations2.indexOf(orientationString);
  6514. }
  6515. HEAP32[((eventStruct)>>2)]=1 << orientation;
  6516. HEAP32[(((eventStruct)+(4))>>2)]=window.orientation;
  6517. },registerOrientationChangeEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6518. if (!JSEvents.orientationChangeEvent) {
  6519. JSEvents.orientationChangeEvent = _malloc( 8 );
  6520. }
  6521. if (!target) {
  6522. target = window.screen; // Orientation events need to be captured from 'window.screen' instead of 'window'
  6523. } else {
  6524. target = JSEvents.findEventTarget(target);
  6525. }
  6526. var handlerFunc = function(event) {
  6527. var e = event || window.event;
  6528. JSEvents.fillOrientationChangeEventData(JSEvents.orientationChangeEvent, e);
  6529. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.orientationChangeEvent, userData);
  6530. if (shouldCancel) {
  6531. e.preventDefault();
  6532. }
  6533. };
  6534. if (eventTypeString == "orientationchange" && window.screen.mozOrientation !== undefined) {
  6535. eventTypeString = "mozorientationchange";
  6536. }
  6537. var eventHandler = {
  6538. target: target,
  6539. allowsDeferredCalls: false,
  6540. eventTypeString: eventTypeString,
  6541. callbackfunc: callbackfunc,
  6542. handlerFunc: handlerFunc,
  6543. useCapture: useCapture
  6544. };
  6545. JSEvents.registerOrRemoveHandler(eventHandler);
  6546. },fullscreenEnabled:function () {
  6547. return document.fullscreenEnabled || document.mozFullScreenEnabled || document.webkitFullscreenEnabled || document.msFullscreenEnabled;
  6548. },fillFullscreenChangeEventData:function (eventStruct, e) {
  6549. var fullscreenElement = document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement || document.msFullscreenElement;
  6550. var isFullscreen = !!fullscreenElement;
  6551. HEAP32[((eventStruct)>>2)]=isFullscreen;
  6552. HEAP32[(((eventStruct)+(4))>>2)]=JSEvents.fullscreenEnabled();
  6553. // If transitioning to fullscreen, report info about the element that is now fullscreen.
  6554. // If transitioning to windowed mode, report info about the element that just was fullscreen.
  6555. var reportedElement = isFullscreen ? fullscreenElement : JSEvents.previousFullscreenElement;
  6556. var nodeName = JSEvents.getNodeNameForTarget(reportedElement);
  6557. var id = (reportedElement && reportedElement.id) ? reportedElement.id : '';
  6558. stringToUTF8(nodeName, eventStruct + 8, 128);
  6559. stringToUTF8(id, eventStruct + 136, 128);
  6560. HEAP32[(((eventStruct)+(264))>>2)]=reportedElement ? reportedElement.clientWidth : 0;
  6561. HEAP32[(((eventStruct)+(268))>>2)]=reportedElement ? reportedElement.clientHeight : 0;
  6562. HEAP32[(((eventStruct)+(272))>>2)]=screen.width;
  6563. HEAP32[(((eventStruct)+(276))>>2)]=screen.height;
  6564. if (isFullscreen) {
  6565. JSEvents.previousFullscreenElement = fullscreenElement;
  6566. }
  6567. },registerFullscreenChangeEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6568. if (!JSEvents.fullscreenChangeEvent) {
  6569. JSEvents.fullscreenChangeEvent = _malloc( 280 );
  6570. }
  6571. if (!target) {
  6572. target = document; // Fullscreen change events need to be captured from 'document' by default instead of 'window'
  6573. } else {
  6574. target = JSEvents.findEventTarget(target);
  6575. }
  6576. var handlerFunc = function(event) {
  6577. var e = event || window.event;
  6578. JSEvents.fillFullscreenChangeEventData(JSEvents.fullscreenChangeEvent, e);
  6579. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.fullscreenChangeEvent, userData);
  6580. if (shouldCancel) {
  6581. e.preventDefault();
  6582. }
  6583. };
  6584. var eventHandler = {
  6585. target: target,
  6586. allowsDeferredCalls: false,
  6587. eventTypeString: eventTypeString,
  6588. callbackfunc: callbackfunc,
  6589. handlerFunc: handlerFunc,
  6590. useCapture: useCapture
  6591. };
  6592. JSEvents.registerOrRemoveHandler(eventHandler);
  6593. },resizeCanvasForFullscreen:function (target, strategy) {
  6594. var restoreOldStyle = __registerRestoreOldStyle(target);
  6595. var cssWidth = strategy.softFullscreen ? window.innerWidth : screen.width;
  6596. var cssHeight = strategy.softFullscreen ? window.innerHeight : screen.height;
  6597. var rect = target.getBoundingClientRect();
  6598. var windowedCssWidth = rect.right - rect.left;
  6599. var windowedCssHeight = rect.bottom - rect.top;
  6600. var windowedRttWidth = target.width;
  6601. var windowedRttHeight = target.height;
  6602. if (strategy.scaleMode == 3) {
  6603. __setLetterbox(target, (cssHeight - windowedCssHeight) / 2, (cssWidth - windowedCssWidth) / 2);
  6604. cssWidth = windowedCssWidth;
  6605. cssHeight = windowedCssHeight;
  6606. } else if (strategy.scaleMode == 2) {
  6607. if (cssWidth*windowedRttHeight < windowedRttWidth*cssHeight) {
  6608. var desiredCssHeight = windowedRttHeight * cssWidth / windowedRttWidth;
  6609. __setLetterbox(target, (cssHeight - desiredCssHeight) / 2, 0);
  6610. cssHeight = desiredCssHeight;
  6611. } else {
  6612. var desiredCssWidth = windowedRttWidth * cssHeight / windowedRttHeight;
  6613. __setLetterbox(target, 0, (cssWidth - desiredCssWidth) / 2);
  6614. cssWidth = desiredCssWidth;
  6615. }
  6616. }
  6617. // If we are adding padding, must choose a background color or otherwise Chrome will give the
  6618. // padding a default white color. Do it only if user has not customized their own background color.
  6619. if (!target.style.backgroundColor) target.style.backgroundColor = 'black';
  6620. // IE11 does the same, but requires the color to be set in the document body.
  6621. if (!document.body.style.backgroundColor) document.body.style.backgroundColor = 'black'; // IE11
  6622. // Firefox always shows black letterboxes independent of style color.
  6623. target.style.width = cssWidth + 'px';
  6624. target.style.height = cssHeight + 'px';
  6625. if (strategy.filteringMode == 1) {
  6626. target.style.imageRendering = 'optimizeSpeed';
  6627. target.style.imageRendering = '-moz-crisp-edges';
  6628. target.style.imageRendering = '-o-crisp-edges';
  6629. target.style.imageRendering = '-webkit-optimize-contrast';
  6630. target.style.imageRendering = 'optimize-contrast';
  6631. target.style.imageRendering = 'crisp-edges';
  6632. target.style.imageRendering = 'pixelated';
  6633. }
  6634. var dpiScale = (strategy.canvasResolutionScaleMode == 2) ? window.devicePixelRatio : 1;
  6635. if (strategy.canvasResolutionScaleMode != 0) {
  6636. target.width = cssWidth * dpiScale;
  6637. target.height = cssHeight * dpiScale;
  6638. if (target.GLctxObject) target.GLctxObject.GLctx.viewport(0, 0, target.width, target.height);
  6639. }
  6640. return restoreOldStyle;
  6641. },requestFullscreen:function (target, strategy) {
  6642. // EMSCRIPTEN_FULLSCREEN_SCALE_DEFAULT + EMSCRIPTEN_FULLSCREEN_CANVAS_SCALE_NONE is a mode where no extra logic is performed to the DOM elements.
  6643. if (strategy.scaleMode != 0 || strategy.canvasResolutionScaleMode != 0) {
  6644. JSEvents.resizeCanvasForFullscreen(target, strategy);
  6645. }
  6646. if (target.requestFullscreen) {
  6647. target.requestFullscreen();
  6648. } else if (target.msRequestFullscreen) {
  6649. target.msRequestFullscreen();
  6650. } else if (target.mozRequestFullScreen) {
  6651. target.mozRequestFullScreen();
  6652. } else if (target.mozRequestFullscreen) {
  6653. target.mozRequestFullscreen();
  6654. } else if (target.webkitRequestFullscreen) {
  6655. target.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT);
  6656. } else {
  6657. if (typeof JSEvents.fullscreenEnabled() === 'undefined') {
  6658. return -1;
  6659. } else {
  6660. return -3;
  6661. }
  6662. }
  6663. if (strategy.canvasResizedCallback) {
  6664. Module['dynCall_iiii'](strategy.canvasResizedCallback, 37, 0, strategy.canvasResizedCallbackUserData);
  6665. }
  6666. return 0;
  6667. },fillPointerlockChangeEventData:function (eventStruct, e) {
  6668. var pointerLockElement = document.pointerLockElement || document.mozPointerLockElement || document.webkitPointerLockElement || document.msPointerLockElement;
  6669. var isPointerlocked = !!pointerLockElement;
  6670. HEAP32[((eventStruct)>>2)]=isPointerlocked;
  6671. var nodeName = JSEvents.getNodeNameForTarget(pointerLockElement);
  6672. var id = (pointerLockElement && pointerLockElement.id) ? pointerLockElement.id : '';
  6673. stringToUTF8(nodeName, eventStruct + 4, 128);
  6674. stringToUTF8(id, eventStruct + 132, 128);
  6675. },registerPointerlockChangeEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6676. if (!JSEvents.pointerlockChangeEvent) {
  6677. JSEvents.pointerlockChangeEvent = _malloc( 260 );
  6678. }
  6679. if (!target) {
  6680. target = document; // Pointer lock change events need to be captured from 'document' by default instead of 'window'
  6681. } else {
  6682. target = JSEvents.findEventTarget(target);
  6683. }
  6684. var handlerFunc = function(event) {
  6685. var e = event || window.event;
  6686. JSEvents.fillPointerlockChangeEventData(JSEvents.pointerlockChangeEvent, e);
  6687. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.pointerlockChangeEvent, userData);
  6688. if (shouldCancel) {
  6689. e.preventDefault();
  6690. }
  6691. };
  6692. var eventHandler = {
  6693. target: target,
  6694. allowsDeferredCalls: false,
  6695. eventTypeString: eventTypeString,
  6696. callbackfunc: callbackfunc,
  6697. handlerFunc: handlerFunc,
  6698. useCapture: useCapture
  6699. };
  6700. JSEvents.registerOrRemoveHandler(eventHandler);
  6701. },registerPointerlockErrorEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6702. if (!target) {
  6703. target = document; // Pointer lock events need to be captured from 'document' by default instead of 'window'
  6704. } else {
  6705. target = JSEvents.findEventTarget(target);
  6706. }
  6707. var handlerFunc = function(event) {
  6708. var e = event || window.event;
  6709. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, 0, userData);
  6710. if (shouldCancel) {
  6711. e.preventDefault();
  6712. }
  6713. };
  6714. var eventHandler = {
  6715. target: target,
  6716. allowsDeferredCalls: false,
  6717. eventTypeString: eventTypeString,
  6718. callbackfunc: callbackfunc,
  6719. handlerFunc: handlerFunc,
  6720. useCapture: useCapture
  6721. };
  6722. JSEvents.registerOrRemoveHandler(eventHandler);
  6723. },requestPointerLock:function (target) {
  6724. if (target.requestPointerLock) {
  6725. target.requestPointerLock();
  6726. } else if (target.mozRequestPointerLock) {
  6727. target.mozRequestPointerLock();
  6728. } else if (target.webkitRequestPointerLock) {
  6729. target.webkitRequestPointerLock();
  6730. } else if (target.msRequestPointerLock) {
  6731. target.msRequestPointerLock();
  6732. } else {
  6733. // document.body is known to accept pointer lock, so use that to differentiate if the user passed a bad element,
  6734. // or if the whole browser just doesn't support the feature.
  6735. if (document.body.requestPointerLock || document.body.mozRequestPointerLock || document.body.webkitRequestPointerLock || document.body.msRequestPointerLock) {
  6736. return -3;
  6737. } else {
  6738. return -1;
  6739. }
  6740. }
  6741. return 0;
  6742. },fillVisibilityChangeEventData:function (eventStruct, e) {
  6743. var visibilityStates = [ "hidden", "visible", "prerender", "unloaded" ];
  6744. var visibilityState = visibilityStates.indexOf(document.visibilityState);
  6745. HEAP32[((eventStruct)>>2)]=document.hidden;
  6746. HEAP32[(((eventStruct)+(4))>>2)]=visibilityState;
  6747. },registerVisibilityChangeEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6748. if (!JSEvents.visibilityChangeEvent) {
  6749. JSEvents.visibilityChangeEvent = _malloc( 8 );
  6750. }
  6751. if (!target) {
  6752. target = document; // Visibility change events need to be captured from 'document' by default instead of 'window'
  6753. } else {
  6754. target = JSEvents.findEventTarget(target);
  6755. }
  6756. var handlerFunc = function(event) {
  6757. var e = event || window.event;
  6758. JSEvents.fillVisibilityChangeEventData(JSEvents.visibilityChangeEvent, e);
  6759. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.visibilityChangeEvent, userData);
  6760. if (shouldCancel) {
  6761. e.preventDefault();
  6762. }
  6763. };
  6764. var eventHandler = {
  6765. target: target,
  6766. allowsDeferredCalls: false,
  6767. eventTypeString: eventTypeString,
  6768. callbackfunc: callbackfunc,
  6769. handlerFunc: handlerFunc,
  6770. useCapture: useCapture
  6771. };
  6772. JSEvents.registerOrRemoveHandler(eventHandler);
  6773. },registerTouchEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6774. if (!JSEvents.touchEvent) {
  6775. JSEvents.touchEvent = _malloc( 1684 );
  6776. }
  6777. target = JSEvents.findEventTarget(target);
  6778. var handlerFunc = function(event) {
  6779. var e = event || window.event;
  6780. var touches = {};
  6781. for(var i = 0; i < e.touches.length; ++i) {
  6782. var touch = e.touches[i];
  6783. touches[touch.identifier] = touch;
  6784. }
  6785. for(var i = 0; i < e.changedTouches.length; ++i) {
  6786. var touch = e.changedTouches[i];
  6787. touches[touch.identifier] = touch;
  6788. touch.changed = true;
  6789. }
  6790. for(var i = 0; i < e.targetTouches.length; ++i) {
  6791. var touch = e.targetTouches[i];
  6792. touches[touch.identifier].onTarget = true;
  6793. }
  6794. var ptr = JSEvents.touchEvent;
  6795. HEAP32[(((ptr)+(4))>>2)]=e.ctrlKey;
  6796. HEAP32[(((ptr)+(8))>>2)]=e.shiftKey;
  6797. HEAP32[(((ptr)+(12))>>2)]=e.altKey;
  6798. HEAP32[(((ptr)+(16))>>2)]=e.metaKey;
  6799. ptr += 20; // Advance to the start of the touch array.
  6800. var canvasRect = Module['canvas'] ? Module['canvas'].getBoundingClientRect() : undefined;
  6801. var targetRect = JSEvents.getBoundingClientRectOrZeros(target);
  6802. var numTouches = 0;
  6803. for(var i in touches) {
  6804. var t = touches[i];
  6805. HEAP32[((ptr)>>2)]=t.identifier;
  6806. HEAP32[(((ptr)+(4))>>2)]=t.screenX;
  6807. HEAP32[(((ptr)+(8))>>2)]=t.screenY;
  6808. HEAP32[(((ptr)+(12))>>2)]=t.clientX;
  6809. HEAP32[(((ptr)+(16))>>2)]=t.clientY;
  6810. HEAP32[(((ptr)+(20))>>2)]=t.pageX;
  6811. HEAP32[(((ptr)+(24))>>2)]=t.pageY;
  6812. HEAP32[(((ptr)+(28))>>2)]=t.changed;
  6813. HEAP32[(((ptr)+(32))>>2)]=t.onTarget;
  6814. if (canvasRect) {
  6815. HEAP32[(((ptr)+(44))>>2)]=t.clientX - canvasRect.left;
  6816. HEAP32[(((ptr)+(48))>>2)]=t.clientY - canvasRect.top;
  6817. } else {
  6818. HEAP32[(((ptr)+(44))>>2)]=0;
  6819. HEAP32[(((ptr)+(48))>>2)]=0;
  6820. }
  6821. HEAP32[(((ptr)+(36))>>2)]=t.clientX - targetRect.left;
  6822. HEAP32[(((ptr)+(40))>>2)]=t.clientY - targetRect.top;
  6823. ptr += 52;
  6824. if (++numTouches >= 32) {
  6825. break;
  6826. }
  6827. }
  6828. HEAP32[((JSEvents.touchEvent)>>2)]=numTouches;
  6829. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.touchEvent, userData);
  6830. if (shouldCancel) {
  6831. e.preventDefault();
  6832. }
  6833. };
  6834. var eventHandler = {
  6835. target: target,
  6836. allowsDeferredCalls: false, // XXX Currently disabled, see bug https://bugzilla.mozilla.org/show_bug.cgi?id=966493
  6837. // Once the above bug is resolved, enable the following condition if possible:
  6838. // allowsDeferredCalls: eventTypeString == 'touchstart',
  6839. eventTypeString: eventTypeString,
  6840. callbackfunc: callbackfunc,
  6841. handlerFunc: handlerFunc,
  6842. useCapture: useCapture
  6843. };
  6844. JSEvents.registerOrRemoveHandler(eventHandler);
  6845. },fillGamepadEventData:function (eventStruct, e) {
  6846. HEAPF64[((eventStruct)>>3)]=e.timestamp;
  6847. for(var i = 0; i < e.axes.length; ++i) {
  6848. HEAPF64[(((eventStruct+i*8)+(16))>>3)]=e.axes[i];
  6849. }
  6850. for(var i = 0; i < e.buttons.length; ++i) {
  6851. if (typeof(e.buttons[i]) === 'object') {
  6852. HEAPF64[(((eventStruct+i*8)+(528))>>3)]=e.buttons[i].value;
  6853. } else {
  6854. HEAPF64[(((eventStruct+i*8)+(528))>>3)]=e.buttons[i];
  6855. }
  6856. }
  6857. for(var i = 0; i < e.buttons.length; ++i) {
  6858. if (typeof(e.buttons[i]) === 'object') {
  6859. HEAP32[(((eventStruct+i*4)+(1040))>>2)]=e.buttons[i].pressed;
  6860. } else {
  6861. HEAP32[(((eventStruct+i*4)+(1040))>>2)]=e.buttons[i] == 1.0;
  6862. }
  6863. }
  6864. HEAP32[(((eventStruct)+(1296))>>2)]=e.connected;
  6865. HEAP32[(((eventStruct)+(1300))>>2)]=e.index;
  6866. HEAP32[(((eventStruct)+(8))>>2)]=e.axes.length;
  6867. HEAP32[(((eventStruct)+(12))>>2)]=e.buttons.length;
  6868. stringToUTF8(e.id, eventStruct + 1304, 64);
  6869. stringToUTF8(e.mapping, eventStruct + 1368, 64);
  6870. },registerGamepadEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6871. if (!JSEvents.gamepadEvent) {
  6872. JSEvents.gamepadEvent = _malloc( 1432 );
  6873. }
  6874. var handlerFunc = function(event) {
  6875. var e = event || window.event;
  6876. JSEvents.fillGamepadEventData(JSEvents.gamepadEvent, e.gamepad);
  6877. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.gamepadEvent, userData);
  6878. if (shouldCancel) {
  6879. e.preventDefault();
  6880. }
  6881. };
  6882. var eventHandler = {
  6883. target: JSEvents.findEventTarget(target),
  6884. allowsDeferredCalls: true,
  6885. eventTypeString: eventTypeString,
  6886. callbackfunc: callbackfunc,
  6887. handlerFunc: handlerFunc,
  6888. useCapture: useCapture
  6889. };
  6890. JSEvents.registerOrRemoveHandler(eventHandler);
  6891. },registerBeforeUnloadEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6892. var handlerFunc = function(event) {
  6893. var e = event || window.event;
  6894. var confirmationMessage = Module['dynCall_iiii'](callbackfunc, eventTypeId, 0, userData);
  6895. if (confirmationMessage) {
  6896. confirmationMessage = Pointer_stringify(confirmationMessage);
  6897. }
  6898. if (confirmationMessage) {
  6899. e.preventDefault();
  6900. e.returnValue = confirmationMessage;
  6901. return confirmationMessage;
  6902. }
  6903. };
  6904. var eventHandler = {
  6905. target: JSEvents.findEventTarget(target),
  6906. allowsDeferredCalls: false,
  6907. eventTypeString: eventTypeString,
  6908. callbackfunc: callbackfunc,
  6909. handlerFunc: handlerFunc,
  6910. useCapture: useCapture
  6911. };
  6912. JSEvents.registerOrRemoveHandler(eventHandler);
  6913. },battery:function () { return navigator.battery || navigator.mozBattery || navigator.webkitBattery; },fillBatteryEventData:function (eventStruct, e) {
  6914. HEAPF64[((eventStruct)>>3)]=e.chargingTime;
  6915. HEAPF64[(((eventStruct)+(8))>>3)]=e.dischargingTime;
  6916. HEAPF64[(((eventStruct)+(16))>>3)]=e.level;
  6917. HEAP32[(((eventStruct)+(24))>>2)]=e.charging;
  6918. },registerBatteryEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6919. if (!JSEvents.batteryEvent) {
  6920. JSEvents.batteryEvent = _malloc( 32 );
  6921. }
  6922. var handlerFunc = function(event) {
  6923. var e = event || window.event;
  6924. JSEvents.fillBatteryEventData(JSEvents.batteryEvent, JSEvents.battery());
  6925. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.batteryEvent, userData);
  6926. if (shouldCancel) {
  6927. e.preventDefault();
  6928. }
  6929. };
  6930. var eventHandler = {
  6931. target: JSEvents.findEventTarget(target),
  6932. allowsDeferredCalls: false,
  6933. eventTypeString: eventTypeString,
  6934. callbackfunc: callbackfunc,
  6935. handlerFunc: handlerFunc,
  6936. useCapture: useCapture
  6937. };
  6938. JSEvents.registerOrRemoveHandler(eventHandler);
  6939. },registerWebGlEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6940. if (!target) {
  6941. target = Module['canvas'];
  6942. }
  6943. var handlerFunc = function(event) {
  6944. var e = event || window.event;
  6945. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, 0, userData);
  6946. if (shouldCancel) {
  6947. e.preventDefault();
  6948. }
  6949. };
  6950. var eventHandler = {
  6951. target: JSEvents.findEventTarget(target),
  6952. allowsDeferredCalls: false,
  6953. eventTypeString: eventTypeString,
  6954. callbackfunc: callbackfunc,
  6955. handlerFunc: handlerFunc,
  6956. useCapture: useCapture
  6957. };
  6958. JSEvents.registerOrRemoveHandler(eventHandler);
  6959. }};function __emscripten_sample_gamepad_data() {
  6960. // Polling gamepads generates garbage, so don't do it when we know there are no gamepads connected.
  6961. if (!JSEvents.numGamepadsConnected) return;
  6962. // Produce a new Gamepad API sample if we are ticking a new game frame, or if not using emscripten_set_main_loop() at all to drive animation.
  6963. if (Browser.mainLoop.currentFrameNumber !== JSEvents.lastGamepadStateFrame || !Browser.mainLoop.currentFrameNumber) {
  6964. JSEvents.lastGamepadState = navigator.getGamepads ? navigator.getGamepads() : (navigator.webkitGetGamepads ? navigator.webkitGetGamepads : null);
  6965. JSEvents.lastGamepadStateFrame = Browser.mainLoop.currentFrameNumber;
  6966. }
  6967. }function _emscripten_get_gamepad_status(index, gamepadState) {
  6968. __emscripten_sample_gamepad_data();
  6969. if (!JSEvents.lastGamepadState) return -1;
  6970. // INVALID_PARAM is returned on a Gamepad index that never was there.
  6971. if (index < 0 || index >= JSEvents.lastGamepadState.length) return -5;
  6972. // NO_DATA is returned on a Gamepad index that was removed.
  6973. // For previously disconnected gamepads there should be an empty slot (null/undefined/false) at the index.
  6974. // This is because gamepads must keep their original position in the array.
  6975. // For example, removing the first of two gamepads produces [null/undefined/false, gamepad].
  6976. if (!JSEvents.lastGamepadState[index]) return -7;
  6977. JSEvents.fillGamepadEventData(gamepadState, JSEvents.lastGamepadState[index]);
  6978. return 0;
  6979. }
  6980. function _emscripten_glCopyTexImage2D(x0, x1, x2, x3, x4, x5, x6, x7) { GLctx['copyTexImage2D'](x0, x1, x2, x3, x4, x5, x6, x7) }
  6981. function _emscripten_glTexParameterfv(target, pname, params) {
  6982. var param = HEAPF32[((params)>>2)];
  6983. GLctx.texParameterf(target, pname, param);
  6984. }
  6985. function _emscripten_glLinkProgram(program) {
  6986. GLctx.linkProgram(GL.programs[program]);
  6987. GL.programInfos[program] = null; // uniforms no longer keep the same names after linking
  6988. GL.populateUniformTable(program);
  6989. }
  6990. function _glUniform1f(location, v0) {
  6991. GLctx.uniform1f(GL.uniforms[location], v0);
  6992. }
  6993. function _emscripten_glUniform3f(location, v0, v1, v2) {
  6994. GLctx.uniform3f(GL.uniforms[location], v0, v1, v2);
  6995. }
  6996. function _emscripten_glGetObjectParameterivARB() {
  6997. Module['printErr']('missing function: emscripten_glGetObjectParameterivARB'); abort(-1);
  6998. }
  6999. function _emscripten_glBlendFunc(x0, x1) { GLctx['blendFunc'](x0, x1) }
  7000. function _emscripten_glUniform3i(location, v0, v1, v2) {
  7001. GLctx.uniform3i(GL.uniforms[location], v0, v1, v2);
  7002. }
  7003. function _emscripten_glStencilOp(x0, x1, x2) { GLctx['stencilOp'](x0, x1, x2) }
  7004. function _glCreateShader(shaderType) {
  7005. var id = GL.getNewId(GL.shaders);
  7006. GL.shaders[id] = GLctx.createShader(shaderType);
  7007. return id;
  7008. }
  7009. function _glUniform1i(location, v0) {
  7010. GLctx.uniform1i(GL.uniforms[location], v0);
  7011. }
  7012. function _emscripten_glBindAttribLocation(program, index, name) {
  7013. name = Pointer_stringify(name);
  7014. GLctx.bindAttribLocation(GL.programs[program], index, name);
  7015. }
  7016. function _glCompressedTexImage2D(target, level, internalFormat, width, height, border, imageSize, data) {
  7017. GLctx['compressedTexImage2D'](target, level, internalFormat, width, height, border, data ? HEAPU8.subarray((data),(data+imageSize)) : null);
  7018. }
  7019. function _glDisable(x0) { GLctx['disable'](x0) }
  7020. function _glfwGetMouseButton(winid, button) {
  7021. return GLFW.getMouseButton(winid, button);
  7022. }
  7023. function _emscripten_glEnableVertexAttribArray(index) {
  7024. GLctx.enableVertexAttribArray(index);
  7025. }
  7026. Module["_memset"] = _memset;
  7027. function _glfwMakeContextCurrent(winid) {}
  7028. function _emscripten_set_touchcancel_callback(target, userData, useCapture, callbackfunc) {
  7029. JSEvents.registerTouchEventCallback(target, userData, useCapture, callbackfunc, 25, "touchcancel");
  7030. return 0;
  7031. }
  7032. function ___lock() {}
  7033. function _emscripten_glBlendFuncSeparate(x0, x1, x2, x3) { GLctx['blendFuncSeparate'](x0, x1, x2, x3) }
  7034. function _glCullFace(x0) { GLctx['cullFace'](x0) }
  7035. function _emscripten_glGetVertexAttribPointerv(index, pname, pointer) {
  7036. if (!pointer) {
  7037. // GLES2 specification does not specify how to behave if pointer is a null pointer. Since calling this function does not make sense
  7038. // if pointer == null, issue a GL error to notify user about it.
  7039. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7040. return;
  7041. }
  7042. HEAP32[((pointer)>>2)]=GLctx.getVertexAttribOffset(index, pname);
  7043. }
  7044. function _emscripten_glVertexAttrib3f(x0, x1, x2, x3) { GLctx['vertexAttrib3f'](x0, x1, x2, x3) }
  7045. function _emscripten_glEnable(x0) { GLctx['enable'](x0) }
  7046. function _emscripten_glNormalPointer() {
  7047. Module['printErr']('missing function: emscripten_glNormalPointer'); abort(-1);
  7048. }
  7049. var _emscripten_GetProcAddress=undefined;
  7050. Module["_emscripten_GetProcAddress"] = _emscripten_GetProcAddress;
  7051. var EGL={errorCode:12288,defaultDisplayInitialized:false,currentContext:0,currentReadSurface:0,currentDrawSurface:0,stringCache:{},setErrorCode:function (code) {
  7052. EGL.errorCode = code;
  7053. },chooseConfig:function (display, attribList, config, config_size, numConfigs) {
  7054. if (display != 62000 /* Magic ID for Emscripten 'default display' */) {
  7055. EGL.setErrorCode(0x3008 /* EGL_BAD_DISPLAY */);
  7056. return 0;
  7057. }
  7058. // TODO: read attribList.
  7059. if ((!config || !config_size) && !numConfigs) {
  7060. EGL.setErrorCode(0x300C /* EGL_BAD_PARAMETER */);
  7061. return 0;
  7062. }
  7063. if (numConfigs) {
  7064. HEAP32[((numConfigs)>>2)]=1; // Total number of supported configs: 1.
  7065. }
  7066. if (config && config_size > 0) {
  7067. HEAP32[((config)>>2)]=62002;
  7068. }
  7069. EGL.setErrorCode(0x3000 /* EGL_SUCCESS */);
  7070. return 1;
  7071. }};function _eglGetProcAddress(name_) {
  7072. return _emscripten_GetProcAddress(name_);
  7073. }
  7074. function _glDeleteProgram(id) {
  7075. if (!id) return;
  7076. var program = GL.programs[id];
  7077. if (!program) { // glDeleteProgram actually signals an error when deleting a nonexisting object, unlike some other GL delete functions.
  7078. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7079. return;
  7080. }
  7081. GLctx.deleteProgram(program);
  7082. program.name = 0;
  7083. GL.programs[id] = null;
  7084. GL.programInfos[id] = null;
  7085. }
  7086. function _emscripten_get_pointerlock_status(pointerlockStatus) {
  7087. if (pointerlockStatus) JSEvents.fillPointerlockChangeEventData(pointerlockStatus);
  7088. if (!document.body || (!document.body.requestPointerLock && !document.body.mozRequestPointerLock && !document.body.webkitRequestPointerLock && !document.body.msRequestPointerLock)) {
  7089. return -1;
  7090. }
  7091. return 0;
  7092. }
  7093. function _glAttachShader(program, shader) {
  7094. GLctx.attachShader(GL.programs[program],
  7095. GL.shaders[shader]);
  7096. }
  7097. function _glfwGetPrimaryMonitor() {
  7098. return 1;
  7099. }
  7100. function emscriptenWebGLGetVertexAttrib(index, pname, params, type) {
  7101. if (!params) {
  7102. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  7103. // if params == null, issue a GL error to notify user about it.
  7104. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7105. return;
  7106. }
  7107. var data = GLctx.getVertexAttrib(index, pname);
  7108. if (pname == 0x889F/*VERTEX_ATTRIB_ARRAY_BUFFER_BINDING*/) {
  7109. HEAP32[((params)>>2)]=data["name"];
  7110. } else if (typeof data == 'number' || typeof data == 'boolean') {
  7111. switch (type) {
  7112. case 'Integer': HEAP32[((params)>>2)]=data; break;
  7113. case 'Float': HEAPF32[((params)>>2)]=data; break;
  7114. case 'FloatToInteger': HEAP32[((params)>>2)]=Math.fround(data); break;
  7115. default: throw 'internal emscriptenWebGLGetVertexAttrib() error, bad type: ' + type;
  7116. }
  7117. } else {
  7118. for (var i = 0; i < data.length; i++) {
  7119. switch (type) {
  7120. case 'Integer': HEAP32[(((params)+(i))>>2)]=data[i]; break;
  7121. case 'Float': HEAPF32[(((params)+(i))>>2)]=data[i]; break;
  7122. case 'FloatToInteger': HEAP32[(((params)+(i))>>2)]=Math.fround(data[i]); break;
  7123. default: throw 'internal emscriptenWebGLGetVertexAttrib() error, bad type: ' + type;
  7124. }
  7125. }
  7126. }
  7127. }function _emscripten_glGetVertexAttribfv(index, pname, params) {
  7128. // N.B. This function may only be called if the vertex attribute was specified using the function glVertexAttrib*f(),
  7129. // otherwise the results are undefined. (GLES3 spec 6.1.12)
  7130. emscriptenWebGLGetVertexAttrib(index, pname, params, 'Float');
  7131. }
  7132. function _emscripten_set_touchstart_callback(target, userData, useCapture, callbackfunc) {
  7133. JSEvents.registerTouchEventCallback(target, userData, useCapture, callbackfunc, 22, "touchstart");
  7134. return 0;
  7135. }
  7136. function _glUniform3f(location, v0, v1, v2) {
  7137. GLctx.uniform3f(GL.uniforms[location], v0, v1, v2);
  7138. }
  7139. function _emscripten_glVertexPointer(){ throw 'Legacy GL function (glVertexPointer) called. If you want legacy GL emulation, you need to compile with -s LEGACY_GL_EMULATION=1 to enable legacy GL emulation.'; }
  7140. function _emscripten_glDeleteBuffers(n, buffers) {
  7141. for (var i = 0; i < n; i++) {
  7142. var id = HEAP32[(((buffers)+(i*4))>>2)];
  7143. var buffer = GL.buffers[id];
  7144. // From spec: "glDeleteBuffers silently ignores 0's and names that do not
  7145. // correspond to existing buffer objects."
  7146. if (!buffer) continue;
  7147. GLctx.deleteBuffer(buffer);
  7148. buffer.name = 0;
  7149. GL.buffers[id] = null;
  7150. if (id == GL.currArrayBuffer) GL.currArrayBuffer = 0;
  7151. if (id == GL.currElementArrayBuffer) GL.currElementArrayBuffer = 0;
  7152. }
  7153. }
  7154. function _emscripten_glTexParameteriv(target, pname, params) {
  7155. var param = HEAP32[((params)>>2)];
  7156. GLctx.texParameteri(target, pname, param);
  7157. }
  7158. function _glDrawElements(mode, count, type, indices) {
  7159. GLctx.drawElements(mode, count, type, indices);
  7160. }
  7161. function _glfwTerminate() {
  7162. window.removeEventListener("keydown", GLFW.onKeydown, true);
  7163. window.removeEventListener("keypress", GLFW.onKeyPress, true);
  7164. window.removeEventListener("keyup", GLFW.onKeyup, true);
  7165. Module["canvas"].removeEventListener("mousemove", GLFW.onMousemove, true);
  7166. Module["canvas"].removeEventListener("mousedown", GLFW.onMouseButtonDown, true);
  7167. Module["canvas"].removeEventListener("mouseup", GLFW.onMouseButtonUp, true);
  7168. Module["canvas"].removeEventListener('wheel', GLFW.onMouseWheel, true);
  7169. Module["canvas"].removeEventListener('mousewheel', GLFW.onMouseWheel, true);
  7170. Module["canvas"].removeEventListener('mouseenter', GLFW.onMouseenter, true);
  7171. Module["canvas"].removeEventListener('mouseleave', GLFW.onMouseleave, true);
  7172. Module["canvas"].width = Module["canvas"].height = 1;
  7173. GLFW.windows = null;
  7174. GLFW.active = null;
  7175. }
  7176. function _emscripten_glUniformMatrix2fv(location, count, transpose, value) {
  7177. var view;
  7178. if (4*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7179. // avoid allocation when uploading few enough uniforms
  7180. view = GL.miniTempBufferViews[4*count-1];
  7181. for (var i = 0; i < 4*count; i += 4) {
  7182. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7183. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  7184. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  7185. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  7186. }
  7187. } else {
  7188. view = HEAPF32.subarray((value)>>2,(value+count*16)>>2);
  7189. }
  7190. GLctx.uniformMatrix2fv(GL.uniforms[location], !!transpose, view);
  7191. }
  7192. function _emscripten_glDeleteShader(id) {
  7193. if (!id) return;
  7194. var shader = GL.shaders[id];
  7195. if (!shader) { // glDeleteShader actually signals an error when deleting a nonexisting object, unlike some other GL delete functions.
  7196. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7197. return;
  7198. }
  7199. GLctx.deleteShader(shader);
  7200. GL.shaders[id] = null;
  7201. }
  7202. function ___syscall5(which, varargs) {SYSCALLS.varargs = varargs;
  7203. try {
  7204. // open
  7205. var pathname = SYSCALLS.getStr(), flags = SYSCALLS.get(), mode = SYSCALLS.get() // optional TODO
  7206. var stream = FS.open(pathname, flags, mode);
  7207. return stream.fd;
  7208. } catch (e) {
  7209. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7210. return -e.errno;
  7211. }
  7212. }
  7213. function ___syscall6(which, varargs) {SYSCALLS.varargs = varargs;
  7214. try {
  7215. // close
  7216. var stream = SYSCALLS.getStreamFromFD();
  7217. FS.close(stream);
  7218. return 0;
  7219. } catch (e) {
  7220. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7221. return -e.errno;
  7222. }
  7223. }
  7224. function _llvm_stacksave() {
  7225. var self = _llvm_stacksave;
  7226. if (!self.LLVM_SAVEDSTACKS) {
  7227. self.LLVM_SAVEDSTACKS = [];
  7228. }
  7229. self.LLVM_SAVEDSTACKS.push(Runtime.stackSave());
  7230. return self.LLVM_SAVEDSTACKS.length-1;
  7231. }
  7232. function _emscripten_glGetVertexAttribiv(index, pname, params) {
  7233. // N.B. This function may only be called if the vertex attribute was specified using the function glVertexAttrib*f(),
  7234. // otherwise the results are undefined. (GLES3 spec 6.1.12)
  7235. emscriptenWebGLGetVertexAttrib(index, pname, params, 'FloatToInteger');
  7236. }
  7237. function _emscripten_glUniformMatrix4fv(location, count, transpose, value) {
  7238. var view;
  7239. if (16*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7240. // avoid allocation when uploading few enough uniforms
  7241. view = GL.miniTempBufferViews[16*count-1];
  7242. for (var i = 0; i < 16*count; i += 16) {
  7243. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7244. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  7245. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  7246. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  7247. view[i+4] = HEAPF32[(((value)+(4*i+16))>>2)];
  7248. view[i+5] = HEAPF32[(((value)+(4*i+20))>>2)];
  7249. view[i+6] = HEAPF32[(((value)+(4*i+24))>>2)];
  7250. view[i+7] = HEAPF32[(((value)+(4*i+28))>>2)];
  7251. view[i+8] = HEAPF32[(((value)+(4*i+32))>>2)];
  7252. view[i+9] = HEAPF32[(((value)+(4*i+36))>>2)];
  7253. view[i+10] = HEAPF32[(((value)+(4*i+40))>>2)];
  7254. view[i+11] = HEAPF32[(((value)+(4*i+44))>>2)];
  7255. view[i+12] = HEAPF32[(((value)+(4*i+48))>>2)];
  7256. view[i+13] = HEAPF32[(((value)+(4*i+52))>>2)];
  7257. view[i+14] = HEAPF32[(((value)+(4*i+56))>>2)];
  7258. view[i+15] = HEAPF32[(((value)+(4*i+60))>>2)];
  7259. }
  7260. } else {
  7261. view = HEAPF32.subarray((value)>>2,(value+count*64)>>2);
  7262. }
  7263. GLctx.uniformMatrix4fv(GL.uniforms[location], !!transpose, view);
  7264. }
  7265. function _glVertexAttrib3f(x0, x1, x2, x3) { GLctx['vertexAttrib3f'](x0, x1, x2, x3) }
  7266. function _emscripten_glDrawArraysInstanced(mode, first, count, primcount) {
  7267. GLctx['drawArraysInstanced'](mode, first, count, primcount);
  7268. }
  7269. function _emscripten_glEnableClientState() {
  7270. Module['printErr']('missing function: emscripten_glEnableClientState'); abort(-1);
  7271. }
  7272. function _emscripten_glGetPointerv() {
  7273. Module['printErr']('missing function: emscripten_glGetPointerv'); abort(-1);
  7274. }
  7275. function ___syscall140(which, varargs) {SYSCALLS.varargs = varargs;
  7276. try {
  7277. // llseek
  7278. var stream = SYSCALLS.getStreamFromFD(), offset_high = SYSCALLS.get(), offset_low = SYSCALLS.get(), result = SYSCALLS.get(), whence = SYSCALLS.get();
  7279. var offset = offset_low;
  7280. assert(offset_high === 0);
  7281. FS.llseek(stream, offset, whence);
  7282. HEAP32[((result)>>2)]=stream.position;
  7283. if (stream.getdents && offset === 0 && whence === 0) stream.getdents = null; // reset readdir state
  7284. return 0;
  7285. } catch (e) {
  7286. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7287. return -e.errno;
  7288. }
  7289. }
  7290. function ___syscall146(which, varargs) {SYSCALLS.varargs = varargs;
  7291. try {
  7292. // writev
  7293. var stream = SYSCALLS.getStreamFromFD(), iov = SYSCALLS.get(), iovcnt = SYSCALLS.get();
  7294. return SYSCALLS.doWritev(stream, iov, iovcnt);
  7295. } catch (e) {
  7296. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7297. return -e.errno;
  7298. }
  7299. }
  7300. function ___syscall145(which, varargs) {SYSCALLS.varargs = varargs;
  7301. try {
  7302. // readv
  7303. var stream = SYSCALLS.getStreamFromFD(), iov = SYSCALLS.get(), iovcnt = SYSCALLS.get();
  7304. return SYSCALLS.doReadv(stream, iov, iovcnt);
  7305. } catch (e) {
  7306. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7307. return -e.errno;
  7308. }
  7309. }
  7310. function _emscripten_glStencilMask(x0) { GLctx['stencilMask'](x0) }
  7311. function _emscripten_glStencilFuncSeparate(x0, x1, x2, x3) { GLctx['stencilFuncSeparate'](x0, x1, x2, x3) }
  7312. Module["_i64Subtract"] = _i64Subtract;
  7313. Module["_i64Add"] = _i64Add;
  7314. function _emscripten_set_touchend_callback(target, userData, useCapture, callbackfunc) {
  7315. JSEvents.registerTouchEventCallback(target, userData, useCapture, callbackfunc, 23, "touchend");
  7316. return 0;
  7317. }
  7318. function _glUseProgram(program) {
  7319. GLctx.useProgram(program ? GL.programs[program] : null);
  7320. }
  7321. function _emscripten_glDisableVertexAttribArray(index) {
  7322. GLctx.disableVertexAttribArray(index);
  7323. }
  7324. function _emscripten_glVertexAttrib1f(x0, x1) { GLctx['vertexAttrib1f'](x0, x1) }
  7325. function _emscripten_glFinish() { GLctx['finish']() }
  7326. function _glDrawArrays(mode, first, count) {
  7327. GLctx.drawArrays(mode, first, count);
  7328. }
  7329. function _emscripten_glDepthFunc(x0) { GLctx['depthFunc'](x0) }
  7330. function _emscripten_get_num_gamepads() {
  7331. // Polling gamepads generates garbage, so don't do it when we know there are no gamepads connected.
  7332. if (!JSEvents.numGamepadsConnected) return 0;
  7333. __emscripten_sample_gamepad_data();
  7334. if (!JSEvents.lastGamepadState) return -1;
  7335. return JSEvents.lastGamepadState.length;
  7336. }
  7337. function _glGetProgramInfoLog(program, maxLength, length, infoLog) {
  7338. var log = GLctx.getProgramInfoLog(GL.programs[program]);
  7339. if (log === null) log = '(unknown error)';
  7340. if (maxLength > 0 && infoLog) {
  7341. var numBytesWrittenExclNull = stringToUTF8(log, infoLog, maxLength);
  7342. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  7343. } else {
  7344. if (length) HEAP32[((length)>>2)]=0;
  7345. }
  7346. }
  7347. function _emscripten_glUniform4iv(location, count, value) {
  7348. GLctx.uniform4iv(GL.uniforms[location], HEAP32.subarray((value)>>2,(value+count*16)>>2));
  7349. }
  7350. function _glClear(x0) { GLctx['clear'](x0) }
  7351. function _emscripten_glLoadIdentity(){ throw 'Legacy GL function (glLoadIdentity) called. If you want legacy GL emulation, you need to compile with -s LEGACY_GL_EMULATION=1 to enable legacy GL emulation.'; }
  7352. function _emscripten_glUniform3fv(location, count, value) {
  7353. var view;
  7354. if (3*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7355. // avoid allocation when uploading few enough uniforms
  7356. view = GL.miniTempBufferViews[3*count-1];
  7357. for (var i = 0; i < 3*count; i += 3) {
  7358. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7359. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  7360. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  7361. }
  7362. } else {
  7363. view = HEAPF32.subarray((value)>>2,(value+count*12)>>2);
  7364. }
  7365. GLctx.uniform3fv(GL.uniforms[location], view);
  7366. }
  7367. function _emscripten_glIsTexture(texture) {
  7368. var texture = GL.textures[texture];
  7369. if (!texture) return 0;
  7370. return GLctx.isTexture(texture);
  7371. }
  7372. function _glEnableVertexAttribArray(index) {
  7373. GLctx.enableVertexAttribArray(index);
  7374. }
  7375. function _emscripten_glAttachShader(program, shader) {
  7376. GLctx.attachShader(GL.programs[program],
  7377. GL.shaders[shader]);
  7378. }
  7379. function _glUniform4f(location, v0, v1, v2, v3) {
  7380. GLctx.uniform4f(GL.uniforms[location], v0, v1, v2, v3);
  7381. }
  7382. function _emscripten_request_pointerlock(target, deferUntilInEventHandler) {
  7383. if (!target) target = '#canvas';
  7384. target = JSEvents.findEventTarget(target);
  7385. if (!target) return -4;
  7386. if (!target.requestPointerLock && !target.mozRequestPointerLock && !target.webkitRequestPointerLock && !target.msRequestPointerLock) {
  7387. return -1;
  7388. }
  7389. var canPerformRequests = JSEvents.canPerformEventHandlerRequests();
  7390. // Queue this function call if we're not currently in an event handler and the user saw it appropriate to do so.
  7391. if (!canPerformRequests) {
  7392. if (deferUntilInEventHandler) {
  7393. JSEvents.deferCall(JSEvents.requestPointerLock, 2 /* priority below fullscreen */, [target]);
  7394. return 1;
  7395. } else {
  7396. return -2;
  7397. }
  7398. }
  7399. return JSEvents.requestPointerLock(target);
  7400. }
  7401. var cttz_i8 = allocate([8,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,7,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0], "i8", ALLOC_STATIC);
  7402. Module["_llvm_cttz_i32"] = _llvm_cttz_i32;
  7403. Module["___udivmoddi4"] = ___udivmoddi4;
  7404. Module["___udivdi3"] = ___udivdi3;
  7405. function _glfwCreateWindow(width, height, title, monitor, share) {
  7406. return GLFW.createWindow(width, height, title, monitor, share);
  7407. }
  7408. function _glfwDefaultWindowHints() {
  7409. GLFW.hints = GLFW.defaultHints;
  7410. }
  7411. function _emscripten_glClearStencil(x0) { GLctx['clearStencil'](x0) }
  7412. function _emscripten_glDetachShader(program, shader) {
  7413. GLctx.detachShader(GL.programs[program],
  7414. GL.shaders[shader]);
  7415. }
  7416. function _emscripten_glDeleteVertexArrays(n, vaos) {
  7417. for (var i = 0; i < n; i++) {
  7418. var id = HEAP32[(((vaos)+(i*4))>>2)];
  7419. GLctx['deleteVertexArray'](GL.vaos[id]);
  7420. GL.vaos[id] = null;
  7421. }
  7422. }
  7423. function _glfwInit() {
  7424. if (GLFW.windows) return 1; // GL_TRUE
  7425. GLFW.initialTime = GLFW.getTime();
  7426. GLFW.hints = GLFW.defaultHints;
  7427. GLFW.windows = new Array()
  7428. GLFW.active = null;
  7429. window.addEventListener("keydown", GLFW.onKeydown, true);
  7430. window.addEventListener("keypress", GLFW.onKeyPress, true);
  7431. window.addEventListener("keyup", GLFW.onKeyup, true);
  7432. Module["canvas"].addEventListener("mousemove", GLFW.onMousemove, true);
  7433. Module["canvas"].addEventListener("mousedown", GLFW.onMouseButtonDown, true);
  7434. Module["canvas"].addEventListener("mouseup", GLFW.onMouseButtonUp, true);
  7435. Module["canvas"].addEventListener('wheel', GLFW.onMouseWheel, true);
  7436. Module["canvas"].addEventListener('mousewheel', GLFW.onMouseWheel, true);
  7437. Module["canvas"].addEventListener('mouseenter', GLFW.onMouseenter, true);
  7438. Module["canvas"].addEventListener('mouseleave', GLFW.onMouseleave, true);
  7439. Browser.resizeListeners.push(function(width, height) {
  7440. GLFW.onCanvasResize(width, height);
  7441. });
  7442. return 1; // GL_TRUE
  7443. }
  7444. function _emscripten_glGetTexParameteriv(target, pname, params) {
  7445. if (!params) {
  7446. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  7447. // if p == null, issue a GL error to notify user about it.
  7448. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7449. return;
  7450. }
  7451. HEAP32[((params)>>2)]=GLctx.getTexParameter(target, pname);
  7452. }
  7453. function _glfwSwapBuffers(winid) {
  7454. GLFW.swapBuffers(winid);
  7455. }
  7456. function _emscripten_glGenerateMipmap(x0) { GLctx['generateMipmap'](x0) }
  7457. function _emscripten_glCullFace(x0) { GLctx['cullFace'](x0) }
  7458. function _emscripten_glUniform4f(location, v0, v1, v2, v3) {
  7459. GLctx.uniform4f(GL.uniforms[location], v0, v1, v2, v3);
  7460. }
  7461. function _glDisableVertexAttribArray(index) {
  7462. GLctx.disableVertexAttribArray(index);
  7463. }
  7464. function _emscripten_glUseProgram(program) {
  7465. GLctx.useProgram(program ? GL.programs[program] : null);
  7466. }
  7467. function _emscripten_glHint(x0, x1) { GLctx['hint'](x0, x1) }
  7468. function _emscripten_glUniform2fv(location, count, value) {
  7469. var view;
  7470. if (2*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7471. // avoid allocation when uploading few enough uniforms
  7472. view = GL.miniTempBufferViews[2*count-1];
  7473. for (var i = 0; i < 2*count; i += 2) {
  7474. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7475. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  7476. }
  7477. } else {
  7478. view = HEAPF32.subarray((value)>>2,(value+count*8)>>2);
  7479. }
  7480. GLctx.uniform2fv(GL.uniforms[location], view);
  7481. }
  7482. function _glfwSwapInterval(interval) {
  7483. interval = Math.abs(interval); // GLFW uses negative values to enable GLX_EXT_swap_control_tear, which we don't have, so just treat negative and positive the same.
  7484. if (interval == 0) _emscripten_set_main_loop_timing(0/*EM_TIMING_SETTIMEOUT*/, 0);
  7485. else _emscripten_set_main_loop_timing(1/*EM_TIMING_RAF*/, interval);
  7486. }
  7487. function _glGetShaderInfoLog(shader, maxLength, length, infoLog) {
  7488. var log = GLctx.getShaderInfoLog(GL.shaders[shader]);
  7489. if (log === null) log = '(unknown error)';
  7490. if (maxLength > 0 && infoLog) {
  7491. var numBytesWrittenExclNull = stringToUTF8(log, infoLog, maxLength);
  7492. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  7493. } else {
  7494. if (length) HEAP32[((length)>>2)]=0;
  7495. }
  7496. }
  7497. function _emscripten_glMatrixMode(){ throw 'Legacy GL function (glMatrixMode) called. If you want legacy GL emulation, you need to compile with -s LEGACY_GL_EMULATION=1 to enable legacy GL emulation.'; }
  7498. function _abort() {
  7499. Module['abort']();
  7500. }
  7501. function _emscripten_glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer) {
  7502. GLctx.framebufferRenderbuffer(target, attachment, renderbuffertarget,
  7503. GL.renderbuffers[renderbuffer]);
  7504. }
  7505. function _emscripten_glDeleteFramebuffers(n, framebuffers) {
  7506. for (var i = 0; i < n; ++i) {
  7507. var id = HEAP32[(((framebuffers)+(i*4))>>2)];
  7508. var framebuffer = GL.framebuffers[id];
  7509. if (!framebuffer) continue; // GL spec: "glDeleteFramebuffers silently ignores 0s and names that do not correspond to existing framebuffer objects".
  7510. GLctx.deleteFramebuffer(framebuffer);
  7511. framebuffer.name = 0;
  7512. GL.framebuffers[id] = null;
  7513. }
  7514. }
  7515. function _emscripten_glIsBuffer(buffer) {
  7516. var b = GL.buffers[buffer];
  7517. if (!b) return 0;
  7518. return GLctx.isBuffer(b);
  7519. }
  7520. function _emscripten_glUniform2iv(location, count, value) {
  7521. GLctx.uniform2iv(GL.uniforms[location], HEAP32.subarray((value)>>2,(value+count*8)>>2));
  7522. }
  7523. function _emscripten_glVertexAttrib1fv(index, v) {
  7524. GLctx.vertexAttrib1f(index, HEAPF32[v>>2]);
  7525. }
  7526. function _glEnable(x0) { GLctx['enable'](x0) }
  7527. function emscriptenWebGLComputeImageSize(width, height, sizePerPixel, alignment) {
  7528. function roundedToNextMultipleOf(x, y) {
  7529. return Math.floor((x + y - 1) / y) * y
  7530. }
  7531. var plainRowSize = width * sizePerPixel;
  7532. var alignedRowSize = roundedToNextMultipleOf(plainRowSize, alignment);
  7533. return (height <= 0) ? 0 :
  7534. ((height - 1) * alignedRowSize + plainRowSize);
  7535. }function emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, internalFormat) {
  7536. var sizePerPixel;
  7537. var numChannels;
  7538. switch(format) {
  7539. case 0x1906 /* GL_ALPHA */:
  7540. case 0x1909 /* GL_LUMINANCE */:
  7541. case 0x1902 /* GL_DEPTH_COMPONENT */:
  7542. numChannels = 1;
  7543. break;
  7544. case 0x190A /* GL_LUMINANCE_ALPHA */:
  7545. numChannels = 2;
  7546. break;
  7547. case 0x1907 /* GL_RGB */:
  7548. case 0x8C40 /* GL_SRGB_EXT */:
  7549. numChannels = 3;
  7550. break;
  7551. case 0x1908 /* GL_RGBA */:
  7552. case 0x8C42 /* GL_SRGB_ALPHA_EXT */:
  7553. numChannels = 4;
  7554. break;
  7555. default:
  7556. GL.recordError(0x0500); // GL_INVALID_ENUM
  7557. return null;
  7558. }
  7559. switch (type) {
  7560. case 0x1401 /* GL_UNSIGNED_BYTE */:
  7561. sizePerPixel = numChannels*1;
  7562. break;
  7563. case 0x1403 /* GL_UNSIGNED_SHORT */:
  7564. case 0x8D61 /* GL_HALF_FLOAT_OES */:
  7565. sizePerPixel = numChannels*2;
  7566. break;
  7567. case 0x1405 /* GL_UNSIGNED_INT */:
  7568. case 0x1406 /* GL_FLOAT */:
  7569. sizePerPixel = numChannels*4;
  7570. break;
  7571. case 0x84FA /* GL_UNSIGNED_INT_24_8_WEBGL/GL_UNSIGNED_INT_24_8 */:
  7572. sizePerPixel = 4;
  7573. break;
  7574. case 0x8363 /* GL_UNSIGNED_SHORT_5_6_5 */:
  7575. case 0x8033 /* GL_UNSIGNED_SHORT_4_4_4_4 */:
  7576. case 0x8034 /* GL_UNSIGNED_SHORT_5_5_5_1 */:
  7577. sizePerPixel = 2;
  7578. break;
  7579. default:
  7580. GL.recordError(0x0500); // GL_INVALID_ENUM
  7581. return null;
  7582. }
  7583. var bytes = emscriptenWebGLComputeImageSize(width, height, sizePerPixel, GL.unpackAlignment);
  7584. switch(type) {
  7585. case 0x1401 /* GL_UNSIGNED_BYTE */:
  7586. return HEAPU8.subarray((pixels),(pixels+bytes));
  7587. case 0x1406 /* GL_FLOAT */:
  7588. return HEAPF32.subarray((pixels)>>2,(pixels+bytes)>>2);
  7589. case 0x1405 /* GL_UNSIGNED_INT */:
  7590. case 0x84FA /* GL_UNSIGNED_INT_24_8_WEBGL/GL_UNSIGNED_INT_24_8 */:
  7591. return HEAPU32.subarray((pixels)>>2,(pixels+bytes)>>2);
  7592. case 0x1403 /* GL_UNSIGNED_SHORT */:
  7593. case 0x8363 /* GL_UNSIGNED_SHORT_5_6_5 */:
  7594. case 0x8033 /* GL_UNSIGNED_SHORT_4_4_4_4 */:
  7595. case 0x8034 /* GL_UNSIGNED_SHORT_5_5_5_1 */:
  7596. case 0x8D61 /* GL_HALF_FLOAT_OES */:
  7597. return HEAPU16.subarray((pixels)>>1,(pixels+bytes)>>1);
  7598. default:
  7599. GL.recordError(0x0500); // GL_INVALID_ENUM
  7600. return null;
  7601. }
  7602. }function _emscripten_glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels) {
  7603. var pixelData = null;
  7604. if (pixels) pixelData = emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, 0);
  7605. GLctx.texSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixelData);
  7606. }
  7607. function _emscripten_glPolygonOffset(x0, x1) { GLctx['polygonOffset'](x0, x1) }
  7608. var _emscripten_asm_const_int=true;
  7609. function _emscripten_glUniform2f(location, v0, v1) {
  7610. GLctx.uniform2f(GL.uniforms[location], v0, v1);
  7611. }
  7612. function _glGetAttribLocation(program, name) {
  7613. program = GL.programs[program];
  7614. name = Pointer_stringify(name);
  7615. return GLctx.getAttribLocation(program, name);
  7616. }
  7617. function _glfwWindowHint(target, hint) {
  7618. GLFW.hints[target] = hint;
  7619. }
  7620. function _emscripten_glUniform2i(location, v0, v1) {
  7621. GLctx.uniform2i(GL.uniforms[location], v0, v1);
  7622. }
  7623. function _glBlendFunc(x0, x1) { GLctx['blendFunc'](x0, x1) }
  7624. function _glCreateProgram() {
  7625. var id = GL.getNewId(GL.programs);
  7626. var program = GLctx.createProgram();
  7627. program.name = id;
  7628. GL.programs[id] = program;
  7629. return id;
  7630. }
  7631. function _emscripten_glDeleteRenderbuffers(n, renderbuffers) {
  7632. for (var i = 0; i < n; i++) {
  7633. var id = HEAP32[(((renderbuffers)+(i*4))>>2)];
  7634. var renderbuffer = GL.renderbuffers[id];
  7635. if (!renderbuffer) continue; // GL spec: "glDeleteRenderbuffers silently ignores 0s and names that do not correspond to existing renderbuffer objects".
  7636. GLctx.deleteRenderbuffer(renderbuffer);
  7637. renderbuffer.name = 0;
  7638. GL.renderbuffers[id] = null;
  7639. }
  7640. }
  7641. function _emscripten_glGetBufferParameteriv(target, value, data) {
  7642. if (!data) {
  7643. // GLES2 specification does not specify how to behave if data is a null pointer. Since calling this function does not make sense
  7644. // if data == null, issue a GL error to notify user about it.
  7645. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7646. return;
  7647. }
  7648. HEAP32[((data)>>2)]=GLctx.getBufferParameter(target, value);
  7649. }
  7650. function emscriptenWebGLGetUniform(program, location, params, type) {
  7651. if (!params) {
  7652. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  7653. // if params == null, issue a GL error to notify user about it.
  7654. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7655. return;
  7656. }
  7657. var data = GLctx.getUniform(GL.programs[program], GL.uniforms[location]);
  7658. if (typeof data == 'number' || typeof data == 'boolean') {
  7659. switch (type) {
  7660. case 'Integer': HEAP32[((params)>>2)]=data; break;
  7661. case 'Float': HEAPF32[((params)>>2)]=data; break;
  7662. default: throw 'internal emscriptenWebGLGetUniform() error, bad type: ' + type;
  7663. }
  7664. } else {
  7665. for (var i = 0; i < data.length; i++) {
  7666. switch (type) {
  7667. case 'Integer': HEAP32[(((params)+(i))>>2)]=data[i]; break;
  7668. case 'Float': HEAPF32[(((params)+(i))>>2)]=data[i]; break;
  7669. default: throw 'internal emscriptenWebGLGetUniform() error, bad type: ' + type;
  7670. }
  7671. }
  7672. }
  7673. }function _emscripten_glGetUniformiv(program, location, params) {
  7674. emscriptenWebGLGetUniform(program, location, params, 'Integer');
  7675. }
  7676. function _emscripten_glDepthMask(flag) {
  7677. GLctx.depthMask(!!flag);
  7678. }
  7679. function _emscripten_glDepthRangef(x0, x1) { GLctx['depthRange'](x0, x1) }
  7680. function _emscripten_glDepthRange(x0, x1) { GLctx['depthRange'](x0, x1) }
  7681. function _emscripten_set_fullscreenchange_callback(target, userData, useCapture, callbackfunc) {
  7682. if (typeof JSEvents.fullscreenEnabled() === 'undefined') return -1;
  7683. if (!target) target = document;
  7684. else {
  7685. target = JSEvents.findEventTarget(target);
  7686. if (!target) return -4;
  7687. }
  7688. JSEvents.registerFullscreenChangeEventCallback(target, userData, useCapture, callbackfunc, 19, "fullscreenchange");
  7689. JSEvents.registerFullscreenChangeEventCallback(target, userData, useCapture, callbackfunc, 19, "mozfullscreenchange");
  7690. JSEvents.registerFullscreenChangeEventCallback(target, userData, useCapture, callbackfunc, 19, "webkitfullscreenchange");
  7691. JSEvents.registerFullscreenChangeEventCallback(target, userData, useCapture, callbackfunc, 19, "msfullscreenchange");
  7692. return 0;
  7693. }
  7694. Module["___muldsi3"] = ___muldsi3;
  7695. Module["___muldi3"] = ___muldi3;
  7696. function _emscripten_glGetShaderPrecisionFormat(shaderType, precisionType, range, precision) {
  7697. var result = GLctx.getShaderPrecisionFormat(shaderType, precisionType);
  7698. HEAP32[((range)>>2)]=result.rangeMin;
  7699. HEAP32[(((range)+(4))>>2)]=result.rangeMax;
  7700. HEAP32[((precision)>>2)]=result.precision;
  7701. }
  7702. function _emscripten_glUniform1fv(location, count, value) {
  7703. var view;
  7704. if (count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7705. // avoid allocation when uploading few enough uniforms
  7706. view = GL.miniTempBufferViews[count-1];
  7707. for (var i = 0; i < count; ++i) {
  7708. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7709. }
  7710. } else {
  7711. view = HEAPF32.subarray((value)>>2,(value+count*4)>>2);
  7712. }
  7713. GLctx.uniform1fv(GL.uniforms[location], view);
  7714. }
  7715. function _glDeleteBuffers(n, buffers) {
  7716. for (var i = 0; i < n; i++) {
  7717. var id = HEAP32[(((buffers)+(i*4))>>2)];
  7718. var buffer = GL.buffers[id];
  7719. // From spec: "glDeleteBuffers silently ignores 0's and names that do not
  7720. // correspond to existing buffer objects."
  7721. if (!buffer) continue;
  7722. GLctx.deleteBuffer(buffer);
  7723. buffer.name = 0;
  7724. GL.buffers[id] = null;
  7725. if (id == GL.currArrayBuffer) GL.currArrayBuffer = 0;
  7726. if (id == GL.currElementArrayBuffer) GL.currElementArrayBuffer = 0;
  7727. }
  7728. }
  7729. function _emscripten_set_gamepaddisconnected_callback(userData, useCapture, callbackfunc) {
  7730. if (!navigator.getGamepads && !navigator.webkitGetGamepads) return -1;
  7731. JSEvents.registerGamepadEventCallback(window, userData, useCapture, callbackfunc, 27, "gamepaddisconnected");
  7732. return 0;
  7733. }
  7734. function _emscripten_glBindProgramARB() {
  7735. Module['printErr']('missing function: emscripten_glBindProgramARB'); abort(-1);
  7736. }
  7737. function _emscripten_glBindTexture(target, texture) {
  7738. GLctx.bindTexture(target, texture ? GL.textures[texture] : null);
  7739. }
  7740. function _emscripten_glCheckFramebufferStatus(x0) { return GLctx['checkFramebufferStatus'](x0) }
  7741. function _emscripten_glDeleteProgram(id) {
  7742. if (!id) return;
  7743. var program = GL.programs[id];
  7744. if (!program) { // glDeleteProgram actually signals an error when deleting a nonexisting object, unlike some other GL delete functions.
  7745. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7746. return;
  7747. }
  7748. GLctx.deleteProgram(program);
  7749. program.name = 0;
  7750. GL.programs[id] = null;
  7751. GL.programInfos[id] = null;
  7752. }
  7753. function _emscripten_glDisable(x0) { GLctx['disable'](x0) }
  7754. function _emscripten_glVertexAttrib3fv(index, v) {
  7755. GLctx.vertexAttrib3f(index, HEAPF32[v>>2], HEAPF32[v+4>>2], HEAPF32[v+8>>2]);
  7756. }
  7757. function _glClearColor(x0, x1, x2, x3) { GLctx['clearColor'](x0, x1, x2, x3) }
  7758. function _emscripten_glGetActiveAttrib(program, index, bufSize, length, size, type, name) {
  7759. program = GL.programs[program];
  7760. var info = GLctx.getActiveAttrib(program, index);
  7761. if (!info) return; // If an error occurs, nothing will be written to length, size and type and name.
  7762. if (bufSize > 0 && name) {
  7763. var numBytesWrittenExclNull = stringToUTF8(info.name, name, bufSize);
  7764. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  7765. } else {
  7766. if (length) HEAP32[((length)>>2)]=0;
  7767. }
  7768. if (size) HEAP32[((size)>>2)]=info.size;
  7769. if (type) HEAP32[((type)>>2)]=info.type;
  7770. }
  7771. function _emscripten_glIsFramebuffer(framebuffer) {
  7772. var fb = GL.framebuffers[framebuffer];
  7773. if (!fb) return 0;
  7774. return GLctx.isFramebuffer(fb);
  7775. }
  7776. function _emscripten_glLineWidth(x0) { GLctx['lineWidth'](x0) }
  7777. function _glfwGetCursorPos(winid, x, y) {
  7778. GLFW.getCursorPos(winid, x, y);
  7779. }
  7780. function _emscripten_glGetString(name_) {
  7781. if (GL.stringCache[name_]) return GL.stringCache[name_];
  7782. var ret;
  7783. switch(name_) {
  7784. case 0x1F00 /* GL_VENDOR */:
  7785. case 0x1F01 /* GL_RENDERER */:
  7786. case 0x9245 /* UNMASKED_VENDOR_WEBGL */:
  7787. case 0x9246 /* UNMASKED_RENDERER_WEBGL */:
  7788. ret = allocate(intArrayFromString(GLctx.getParameter(name_)), 'i8', ALLOC_NORMAL);
  7789. break;
  7790. case 0x1F02 /* GL_VERSION */:
  7791. var glVersion = GLctx.getParameter(GLctx.VERSION);
  7792. // return GLES version string corresponding to the version of the WebGL context
  7793. {
  7794. glVersion = 'OpenGL ES 2.0 (' + glVersion + ')';
  7795. }
  7796. ret = allocate(intArrayFromString(glVersion), 'i8', ALLOC_NORMAL);
  7797. break;
  7798. case 0x1F03 /* GL_EXTENSIONS */:
  7799. var exts = GLctx.getSupportedExtensions();
  7800. var gl_exts = [];
  7801. for (var i = 0; i < exts.length; ++i) {
  7802. gl_exts.push(exts[i]);
  7803. gl_exts.push("GL_" + exts[i]);
  7804. }
  7805. ret = allocate(intArrayFromString(gl_exts.join(' ')), 'i8', ALLOC_NORMAL);
  7806. break;
  7807. case 0x8B8C /* GL_SHADING_LANGUAGE_VERSION */:
  7808. var glslVersion = GLctx.getParameter(GLctx.SHADING_LANGUAGE_VERSION);
  7809. // extract the version number 'N.M' from the string 'WebGL GLSL ES N.M ...'
  7810. var ver_re = /^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/;
  7811. var ver_num = glslVersion.match(ver_re);
  7812. if (ver_num !== null) {
  7813. if (ver_num[1].length == 3) ver_num[1] = ver_num[1] + '0'; // ensure minor version has 2 digits
  7814. glslVersion = 'OpenGL ES GLSL ES ' + ver_num[1] + ' (' + glslVersion + ')';
  7815. }
  7816. ret = allocate(intArrayFromString(glslVersion), 'i8', ALLOC_NORMAL);
  7817. break;
  7818. default:
  7819. GL.recordError(0x0500/*GL_INVALID_ENUM*/);
  7820. return 0;
  7821. }
  7822. GL.stringCache[name_] = ret;
  7823. return ret;
  7824. }
  7825. function _emscripten_glGetAttribLocation(program, name) {
  7826. program = GL.programs[program];
  7827. name = Pointer_stringify(name);
  7828. return GLctx.getAttribLocation(program, name);
  7829. }
  7830. function _emscripten_glRotatef() {
  7831. Module['printErr']('missing function: emscripten_glRotatef'); abort(-1);
  7832. }
  7833. function emscriptenWebGLGet(name_, p, type) {
  7834. // Guard against user passing a null pointer.
  7835. // Note that GLES2 spec does not say anything about how passing a null pointer should be treated.
  7836. // Testing on desktop core GL 3, the application crashes on glGetIntegerv to a null pointer, but
  7837. // better to report an error instead of doing anything random.
  7838. if (!p) {
  7839. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7840. return;
  7841. }
  7842. var ret = undefined;
  7843. switch(name_) { // Handle a few trivial GLES values
  7844. case 0x8DFA: // GL_SHADER_COMPILER
  7845. ret = 1;
  7846. break;
  7847. case 0x8DF8: // GL_SHADER_BINARY_FORMATS
  7848. if (type !== 'Integer' && type !== 'Integer64') {
  7849. GL.recordError(0x0500); // GL_INVALID_ENUM
  7850. }
  7851. return; // Do not write anything to the out pointer, since no binary formats are supported.
  7852. case 0x8DF9: // GL_NUM_SHADER_BINARY_FORMATS
  7853. ret = 0;
  7854. break;
  7855. case 0x86A2: // GL_NUM_COMPRESSED_TEXTURE_FORMATS
  7856. // WebGL doesn't have GL_NUM_COMPRESSED_TEXTURE_FORMATS (it's obsolete since GL_COMPRESSED_TEXTURE_FORMATS returns a JS array that can be queried for length),
  7857. // so implement it ourselves to allow C++ GLES2 code get the length.
  7858. var formats = GLctx.getParameter(0x86A3 /*GL_COMPRESSED_TEXTURE_FORMATS*/);
  7859. ret = formats.length;
  7860. break;
  7861. }
  7862. if (ret === undefined) {
  7863. var result = GLctx.getParameter(name_);
  7864. switch (typeof(result)) {
  7865. case "number":
  7866. ret = result;
  7867. break;
  7868. case "boolean":
  7869. ret = result ? 1 : 0;
  7870. break;
  7871. case "string":
  7872. GL.recordError(0x0500); // GL_INVALID_ENUM
  7873. return;
  7874. case "object":
  7875. if (result === null) {
  7876. // null is a valid result for some (e.g., which buffer is bound - perhaps nothing is bound), but otherwise
  7877. // can mean an invalid name_, which we need to report as an error
  7878. switch(name_) {
  7879. case 0x8894: // ARRAY_BUFFER_BINDING
  7880. case 0x8B8D: // CURRENT_PROGRAM
  7881. case 0x8895: // ELEMENT_ARRAY_BUFFER_BINDING
  7882. case 0x8CA6: // FRAMEBUFFER_BINDING
  7883. case 0x8CA7: // RENDERBUFFER_BINDING
  7884. case 0x8069: // TEXTURE_BINDING_2D
  7885. case 0x8514: { // TEXTURE_BINDING_CUBE_MAP
  7886. ret = 0;
  7887. break;
  7888. }
  7889. default: {
  7890. GL.recordError(0x0500); // GL_INVALID_ENUM
  7891. return;
  7892. }
  7893. }
  7894. } else if (result instanceof Float32Array ||
  7895. result instanceof Uint32Array ||
  7896. result instanceof Int32Array ||
  7897. result instanceof Array) {
  7898. for (var i = 0; i < result.length; ++i) {
  7899. switch (type) {
  7900. case 'Integer': HEAP32[(((p)+(i*4))>>2)]=result[i]; break;
  7901. case 'Float': HEAPF32[(((p)+(i*4))>>2)]=result[i]; break;
  7902. case 'Boolean': HEAP8[(((p)+(i))>>0)]=result[i] ? 1 : 0; break;
  7903. default: throw 'internal glGet error, bad type: ' + type;
  7904. }
  7905. }
  7906. return;
  7907. } else if (result instanceof WebGLBuffer ||
  7908. result instanceof WebGLProgram ||
  7909. result instanceof WebGLFramebuffer ||
  7910. result instanceof WebGLRenderbuffer ||
  7911. result instanceof WebGLTexture) {
  7912. ret = result.name | 0;
  7913. } else {
  7914. GL.recordError(0x0500); // GL_INVALID_ENUM
  7915. return;
  7916. }
  7917. break;
  7918. default:
  7919. GL.recordError(0x0500); // GL_INVALID_ENUM
  7920. return;
  7921. }
  7922. }
  7923. switch (type) {
  7924. case 'Integer64': (tempI64 = [ret>>>0,(tempDouble=ret,(+(Math_abs(tempDouble))) >= 1.0 ? (tempDouble > 0.0 ? ((Math_min((+(Math_floor((tempDouble)/4294967296.0))), 4294967295.0))|0)>>>0 : (~~((+(Math_ceil((tempDouble - +(((~~(tempDouble)))>>>0))/4294967296.0)))))>>>0) : 0)],HEAP32[((p)>>2)]=tempI64[0],HEAP32[(((p)+(4))>>2)]=tempI64[1]); break;
  7925. case 'Integer': HEAP32[((p)>>2)]=ret; break;
  7926. case 'Float': HEAPF32[((p)>>2)]=ret; break;
  7927. case 'Boolean': HEAP8[((p)>>0)]=ret ? 1 : 0; break;
  7928. default: throw 'internal glGet error, bad type: ' + type;
  7929. }
  7930. }function _emscripten_glGetIntegerv(name_, p) {
  7931. emscriptenWebGLGet(name_, p, 'Integer');
  7932. }
  7933. function _emscripten_glGetFramebufferAttachmentParameteriv(target, attachment, pname, params) {
  7934. var result = GLctx.getFramebufferAttachmentParameter(target, attachment, pname);
  7935. HEAP32[((params)>>2)]=result;
  7936. }
  7937. function _llvm_stackrestore(p) {
  7938. var self = _llvm_stacksave;
  7939. var ret = self.LLVM_SAVEDSTACKS[p];
  7940. self.LLVM_SAVEDSTACKS.splice(p, 1);
  7941. Runtime.stackRestore(ret);
  7942. }
  7943. function _glfwSetWindowShouldClose(winid, value) {
  7944. var win = GLFW.WindowFromId(winid);
  7945. if (!win) return;
  7946. win.shouldClose = value;
  7947. }
  7948. function _emscripten_glClientActiveTexture() {
  7949. Module['printErr']('missing function: emscripten_glClientActiveTexture'); abort(-1);
  7950. }
  7951. function _glGenBuffers(n, buffers) {
  7952. for (var i = 0; i < n; i++) {
  7953. var buffer = GLctx.createBuffer();
  7954. if (!buffer) {
  7955. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  7956. while(i < n) HEAP32[(((buffers)+(i++*4))>>2)]=0;
  7957. return;
  7958. }
  7959. var id = GL.getNewId(GL.buffers);
  7960. buffer.name = id;
  7961. GL.buffers[id] = buffer;
  7962. HEAP32[(((buffers)+(i*4))>>2)]=id;
  7963. }
  7964. }
  7965. function _emscripten_memcpy_big(dest, src, num) {
  7966. HEAPU8.set(HEAPU8.subarray(src, src+num), dest);
  7967. return dest;
  7968. }
  7969. Module["_memcpy"] = _memcpy;
  7970. function _emscripten_glGetShaderInfoLog(shader, maxLength, length, infoLog) {
  7971. var log = GLctx.getShaderInfoLog(GL.shaders[shader]);
  7972. if (log === null) log = '(unknown error)';
  7973. if (maxLength > 0 && infoLog) {
  7974. var numBytesWrittenExclNull = stringToUTF8(log, infoLog, maxLength);
  7975. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  7976. } else {
  7977. if (length) HEAP32[((length)>>2)]=0;
  7978. }
  7979. }
  7980. function _glfwGetTime() {
  7981. return GLFW.getTime() - GLFW.initialTime;
  7982. }
  7983. function _emscripten_glGetRenderbufferParameteriv(target, pname, params) {
  7984. if (!params) {
  7985. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  7986. // if params == null, issue a GL error to notify user about it.
  7987. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7988. return;
  7989. }
  7990. HEAP32[((params)>>2)]=GLctx.getRenderbufferParameter(target, pname);
  7991. }
  7992. function _emscripten_glStencilOpSeparate(x0, x1, x2, x3) { GLctx['stencilOpSeparate'](x0, x1, x2, x3) }
  7993. function _emscripten_glReadPixels(x, y, width, height, format, type, pixels) {
  7994. var pixelData = emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, format);
  7995. if (!pixelData) {
  7996. GL.recordError(0x0500/*GL_INVALID_ENUM*/);
  7997. return;
  7998. }
  7999. GLctx.readPixels(x, y, width, height, format, type, pixelData);
  8000. }
  8001. function _emscripten_glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data) {
  8002. GLctx['compressedTexSubImage2D'](target, level, xoffset, yoffset, width, height, format, data ? HEAPU8.subarray((data),(data+imageSize)) : null);
  8003. }
  8004. function _emscripten_glGetError() {
  8005. // First return any GL error generated by the emscripten library_gl.js interop layer.
  8006. if (GL.lastError) {
  8007. var error = GL.lastError;
  8008. GL.lastError = 0/*GL_NO_ERROR*/;
  8009. return error;
  8010. } else { // If there were none, return the GL error from the browser GL context.
  8011. return GLctx.getError();
  8012. }
  8013. }
  8014. function _emscripten_glFramebufferTexture2D(target, attachment, textarget, texture, level) {
  8015. GLctx.framebufferTexture2D(target, attachment, textarget,
  8016. GL.textures[texture], level);
  8017. }
  8018. function _emscripten_glIsEnabled(x0) { return GLctx['isEnabled'](x0) }
  8019. function _glClearDepthf(x0) { GLctx['clearDepth'](x0) }
  8020. Module["_memmove"] = _memmove;
  8021. function _glGenTextures(n, textures) {
  8022. for (var i = 0; i < n; i++) {
  8023. var texture = GLctx.createTexture();
  8024. if (!texture) {
  8025. GL.recordError(0x0502 /* GL_INVALID_OPERATION */); // GLES + EGL specs don't specify what should happen here, so best to issue an error and create IDs with 0.
  8026. while(i < n) HEAP32[(((textures)+(i++*4))>>2)]=0;
  8027. return;
  8028. }
  8029. var id = GL.getNewId(GL.textures);
  8030. texture.name = id;
  8031. GL.textures[id] = texture;
  8032. HEAP32[(((textures)+(i*4))>>2)]=id;
  8033. }
  8034. }
  8035. function _emscripten_glVertexAttrib4f(x0, x1, x2, x3, x4) { GLctx['vertexAttrib4f'](x0, x1, x2, x3, x4) }
  8036. function _glDepthFunc(x0) { GLctx['depthFunc'](x0) }
  8037. Module["___uremdi3"] = ___uremdi3;
  8038. function _emscripten_glClearDepthf(x0) { GLctx['clearDepth'](x0) }
  8039. function _emscripten_glClear(x0) { GLctx['clear'](x0) }
  8040. function _emscripten_glBindBuffer(target, buffer) {
  8041. var bufferObj = buffer ? GL.buffers[buffer] : null;
  8042. GLctx.bindBuffer(target, bufferObj);
  8043. }
  8044. function _emscripten_glGetUniformfv(program, location, params) {
  8045. emscriptenWebGLGetUniform(program, location, params, 'Float');
  8046. }
  8047. function _glGetProgramiv(program, pname, p) {
  8048. if (!p) {
  8049. // GLES2 specification does not specify how to behave if p is a null pointer. Since calling this function does not make sense
  8050. // if p == null, issue a GL error to notify user about it.
  8051. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8052. return;
  8053. }
  8054. if (program >= GL.counter) {
  8055. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8056. return;
  8057. }
  8058. var ptable = GL.programInfos[program];
  8059. if (!ptable) {
  8060. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8061. return;
  8062. }
  8063. if (pname == 0x8B84) { // GL_INFO_LOG_LENGTH
  8064. var log = GLctx.getProgramInfoLog(GL.programs[program]);
  8065. if (log === null) log = '(unknown error)';
  8066. HEAP32[((p)>>2)]=log.length + 1;
  8067. } else if (pname == 0x8B87 /* GL_ACTIVE_UNIFORM_MAX_LENGTH */) {
  8068. HEAP32[((p)>>2)]=ptable.maxUniformLength;
  8069. } else if (pname == 0x8B8A /* GL_ACTIVE_ATTRIBUTE_MAX_LENGTH */) {
  8070. if (ptable.maxAttributeLength == -1) {
  8071. var program = GL.programs[program];
  8072. var numAttribs = GLctx.getProgramParameter(program, GLctx.ACTIVE_ATTRIBUTES);
  8073. ptable.maxAttributeLength = 0; // Spec says if there are no active attribs, 0 must be returned.
  8074. for (var i = 0; i < numAttribs; ++i) {
  8075. var activeAttrib = GLctx.getActiveAttrib(program, i);
  8076. ptable.maxAttributeLength = Math.max(ptable.maxAttributeLength, activeAttrib.name.length+1);
  8077. }
  8078. }
  8079. HEAP32[((p)>>2)]=ptable.maxAttributeLength;
  8080. } else if (pname == 0x8A35 /* GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH */) {
  8081. if (ptable.maxUniformBlockNameLength == -1) {
  8082. var program = GL.programs[program];
  8083. var numBlocks = GLctx.getProgramParameter(program, GLctx.ACTIVE_UNIFORM_BLOCKS);
  8084. ptable.maxUniformBlockNameLength = 0;
  8085. for (var i = 0; i < numBlocks; ++i) {
  8086. var activeBlockName = GLctx.getActiveUniformBlockName(program, i);
  8087. ptable.maxUniformBlockNameLength = Math.max(ptable.maxUniformBlockNameLength, activeBlockName.length+1);
  8088. }
  8089. }
  8090. HEAP32[((p)>>2)]=ptable.maxUniformBlockNameLength;
  8091. } else {
  8092. HEAP32[((p)>>2)]=GLctx.getProgramParameter(GL.programs[program], pname);
  8093. }
  8094. }
  8095. function _glVertexAttribPointer(index, size, type, normalized, stride, ptr) {
  8096. GLctx.vertexAttribPointer(index, size, type, !!normalized, stride, ptr);
  8097. }
  8098. function _emscripten_exit_pointerlock() {
  8099. // Make sure no queued up calls will fire after this.
  8100. JSEvents.removeDeferredCalls(JSEvents.requestPointerLock);
  8101. if (document.exitPointerLock) {
  8102. document.exitPointerLock();
  8103. } else if (document.msExitPointerLock) {
  8104. document.msExitPointerLock();
  8105. } else if (document.mozExitPointerLock) {
  8106. document.mozExitPointerLock();
  8107. } else if (document.webkitExitPointerLock) {
  8108. document.webkitExitPointerLock();
  8109. } else {
  8110. return -1;
  8111. }
  8112. return 0;
  8113. }
  8114. function _emscripten_glDrawRangeElements() {
  8115. Module['printErr']('missing function: emscripten_glDrawRangeElements'); abort(-1);
  8116. }
  8117. function _glGetUniformLocation(program, name) {
  8118. name = Pointer_stringify(name);
  8119. var arrayOffset = 0;
  8120. // If user passed an array accessor "[index]", parse the array index off the accessor.
  8121. if (name.indexOf(']', name.length-1) !== -1) {
  8122. var ls = name.lastIndexOf('[');
  8123. var arrayIndex = name.slice(ls+1, -1);
  8124. if (arrayIndex.length > 0) {
  8125. arrayOffset = parseInt(arrayIndex);
  8126. if (arrayOffset < 0) {
  8127. return -1;
  8128. }
  8129. }
  8130. name = name.slice(0, ls);
  8131. }
  8132. var ptable = GL.programInfos[program];
  8133. if (!ptable) {
  8134. return -1;
  8135. }
  8136. var utable = ptable.uniforms;
  8137. var uniformInfo = utable[name]; // returns pair [ dimension_of_uniform_array, uniform_location ]
  8138. if (uniformInfo && arrayOffset < uniformInfo[0]) { // Check if user asked for an out-of-bounds element, i.e. for 'vec4 colors[3];' user could ask for 'colors[10]' which should return -1.
  8139. return uniformInfo[1]+arrayOffset;
  8140. } else {
  8141. return -1;
  8142. }
  8143. }
  8144. function _emscripten_glGetAttachedShaders(program, maxCount, count, shaders) {
  8145. var result = GLctx.getAttachedShaders(GL.programs[program]);
  8146. var len = result.length;
  8147. if (len > maxCount) {
  8148. len = maxCount;
  8149. }
  8150. HEAP32[((count)>>2)]=len;
  8151. for (var i = 0; i < len; ++i) {
  8152. var id = GL.shaders.indexOf(result[i]);
  8153. assert(id !== -1, 'shader not bound to local id');
  8154. HEAP32[(((shaders)+(i*4))>>2)]=id;
  8155. }
  8156. }
  8157. function _emscripten_glGenRenderbuffers(n, renderbuffers) {
  8158. for (var i = 0; i < n; i++) {
  8159. var renderbuffer = GLctx.createRenderbuffer();
  8160. if (!renderbuffer) {
  8161. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8162. while(i < n) HEAP32[(((renderbuffers)+(i++*4))>>2)]=0;
  8163. return;
  8164. }
  8165. var id = GL.getNewId(GL.renderbuffers);
  8166. renderbuffer.name = id;
  8167. GL.renderbuffers[id] = renderbuffer;
  8168. HEAP32[(((renderbuffers)+(i*4))>>2)]=id;
  8169. }
  8170. }
  8171. function _emscripten_glFrontFace(x0) { GLctx['frontFace'](x0) }
  8172. function _emscripten_glActiveTexture(x0) { GLctx['activeTexture'](x0) }
  8173. function _emscripten_glUniform1iv(location, count, value) {
  8174. GLctx.uniform1iv(GL.uniforms[location], HEAP32.subarray((value)>>2,(value+count*4)>>2));
  8175. }
  8176. function _emscripten_glTexCoordPointer() {
  8177. Module['printErr']('missing function: emscripten_glTexCoordPointer'); abort(-1);
  8178. }
  8179. function _emscripten_glGetInfoLogARB() {
  8180. Module['printErr']('missing function: emscripten_glGetInfoLogARB'); abort(-1);
  8181. }
  8182. function __exit(status) {
  8183. // void _exit(int status);
  8184. // http://pubs.opengroup.org/onlinepubs/000095399/functions/exit.html
  8185. Module['exit'](status);
  8186. }function _exit(status) {
  8187. __exit(status);
  8188. }
  8189. function _emscripten_glRenderbufferStorage(x0, x1, x2, x3) { GLctx['renderbufferStorage'](x0, x1, x2, x3) }
  8190. function _emscripten_glCopyTexSubImage2D(x0, x1, x2, x3, x4, x5, x6, x7) { GLctx['copyTexSubImage2D'](x0, x1, x2, x3, x4, x5, x6, x7) }
  8191. function _glfwSetCursorPosCallback(winid, cbfun) {
  8192. GLFW.setCursorPosCallback(winid, cbfun);
  8193. }
  8194. function _glBindAttribLocation(program, index, name) {
  8195. name = Pointer_stringify(name);
  8196. GLctx.bindAttribLocation(GL.programs[program], index, name);
  8197. }
  8198. function _emscripten_glShaderBinary() {
  8199. GL.recordError(0x0500/*GL_INVALID_ENUM*/);
  8200. }
  8201. function _emscripten_glIsProgram(program) {
  8202. var program = GL.programs[program];
  8203. if (!program) return 0;
  8204. return GLctx.isProgram(program);
  8205. }
  8206. function _emscripten_glBlendColor(x0, x1, x2, x3) { GLctx['blendColor'](x0, x1, x2, x3) }
  8207. function _emscripten_glGetShaderiv(shader, pname, p) {
  8208. if (!p) {
  8209. // GLES2 specification does not specify how to behave if p is a null pointer. Since calling this function does not make sense
  8210. // if p == null, issue a GL error to notify user about it.
  8211. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8212. return;
  8213. }
  8214. if (pname == 0x8B84) { // GL_INFO_LOG_LENGTH
  8215. var log = GLctx.getShaderInfoLog(GL.shaders[shader]);
  8216. if (log === null) log = '(unknown error)';
  8217. HEAP32[((p)>>2)]=log.length + 1;
  8218. } else {
  8219. HEAP32[((p)>>2)]=GLctx.getShaderParameter(GL.shaders[shader], pname);
  8220. }
  8221. }
  8222. function _emscripten_glUniformMatrix3fv(location, count, transpose, value) {
  8223. var view;
  8224. if (9*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  8225. // avoid allocation when uploading few enough uniforms
  8226. view = GL.miniTempBufferViews[9*count-1];
  8227. for (var i = 0; i < 9*count; i += 9) {
  8228. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  8229. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  8230. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  8231. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  8232. view[i+4] = HEAPF32[(((value)+(4*i+16))>>2)];
  8233. view[i+5] = HEAPF32[(((value)+(4*i+20))>>2)];
  8234. view[i+6] = HEAPF32[(((value)+(4*i+24))>>2)];
  8235. view[i+7] = HEAPF32[(((value)+(4*i+28))>>2)];
  8236. view[i+8] = HEAPF32[(((value)+(4*i+32))>>2)];
  8237. }
  8238. } else {
  8239. view = HEAPF32.subarray((value)>>2,(value+count*36)>>2);
  8240. }
  8241. GLctx.uniformMatrix3fv(GL.uniforms[location], !!transpose, view);
  8242. }
  8243. function _emscripten_glVertexAttrib2f(x0, x1, x2) { GLctx['vertexAttrib2f'](x0, x1, x2) }
  8244. function _emscripten_glUniform4fv(location, count, value) {
  8245. var view;
  8246. if (4*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  8247. // avoid allocation when uploading few enough uniforms
  8248. view = GL.miniTempBufferViews[4*count-1];
  8249. for (var i = 0; i < 4*count; i += 4) {
  8250. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  8251. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  8252. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  8253. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  8254. }
  8255. } else {
  8256. view = HEAPF32.subarray((value)>>2,(value+count*16)>>2);
  8257. }
  8258. GLctx.uniform4fv(GL.uniforms[location], view);
  8259. }
  8260. function _glBufferSubData(target, offset, size, data) {
  8261. GLctx.bufferSubData(target, offset, HEAPU8.subarray(data, data+size));
  8262. }
  8263. function _emscripten_glGenFramebuffers(n, ids) {
  8264. for (var i = 0; i < n; ++i) {
  8265. var framebuffer = GLctx.createFramebuffer();
  8266. if (!framebuffer) {
  8267. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8268. while(i < n) HEAP32[(((ids)+(i++*4))>>2)]=0;
  8269. return;
  8270. }
  8271. var id = GL.getNewId(GL.framebuffers);
  8272. framebuffer.name = id;
  8273. GL.framebuffers[id] = framebuffer;
  8274. HEAP32[(((ids)+(i*4))>>2)]=id;
  8275. }
  8276. }
  8277. function _glGetShaderiv(shader, pname, p) {
  8278. if (!p) {
  8279. // GLES2 specification does not specify how to behave if p is a null pointer. Since calling this function does not make sense
  8280. // if p == null, issue a GL error to notify user about it.
  8281. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8282. return;
  8283. }
  8284. if (pname == 0x8B84) { // GL_INFO_LOG_LENGTH
  8285. var log = GLctx.getShaderInfoLog(GL.shaders[shader]);
  8286. if (log === null) log = '(unknown error)';
  8287. HEAP32[((p)>>2)]=log.length + 1;
  8288. } else {
  8289. HEAP32[((p)>>2)]=GLctx.getShaderParameter(GL.shaders[shader], pname);
  8290. }
  8291. }
  8292. function _emscripten_glBlendEquationSeparate(x0, x1) { GLctx['blendEquationSeparate'](x0, x1) }
  8293. function _glfwSetWindowIconifyCallback(winid, cbfun) {
  8294. var win = GLFW.WindowFromId(winid);
  8295. if (!win) return;
  8296. win.windowIconifyFunc = cbfun;
  8297. }
  8298. function _emscripten_glUniform1i(location, v0) {
  8299. GLctx.uniform1i(GL.uniforms[location], v0);
  8300. }
  8301. function _emscripten_glGenTextures(n, textures) {
  8302. for (var i = 0; i < n; i++) {
  8303. var texture = GLctx.createTexture();
  8304. if (!texture) {
  8305. GL.recordError(0x0502 /* GL_INVALID_OPERATION */); // GLES + EGL specs don't specify what should happen here, so best to issue an error and create IDs with 0.
  8306. while(i < n) HEAP32[(((textures)+(i++*4))>>2)]=0;
  8307. return;
  8308. }
  8309. var id = GL.getNewId(GL.textures);
  8310. texture.name = id;
  8311. GL.textures[id] = texture;
  8312. HEAP32[(((textures)+(i*4))>>2)]=id;
  8313. }
  8314. }
  8315. function _emscripten_glVertexAttrib2fv(index, v) {
  8316. GLctx.vertexAttrib2f(index, HEAPF32[v>>2], HEAPF32[v+4>>2]);
  8317. }
  8318. function _emscripten_glGetActiveUniform(program, index, bufSize, length, size, type, name) {
  8319. program = GL.programs[program];
  8320. var info = GLctx.getActiveUniform(program, index);
  8321. if (!info) return; // If an error occurs, nothing will be written to length, size, type and name.
  8322. if (bufSize > 0 && name) {
  8323. var numBytesWrittenExclNull = stringToUTF8(info.name, name, bufSize);
  8324. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  8325. } else {
  8326. if (length) HEAP32[((length)>>2)]=0;
  8327. }
  8328. if (size) HEAP32[((size)>>2)]=info.size;
  8329. if (type) HEAP32[((type)>>2)]=info.type;
  8330. }
  8331. Module["_roundf"] = _roundf;
  8332. function _emscripten_glDeleteObjectARB() {
  8333. Module['printErr']('missing function: emscripten_glDeleteObjectARB'); abort(-1);
  8334. }
  8335. function _emscripten_set_touchmove_callback(target, userData, useCapture, callbackfunc) {
  8336. JSEvents.registerTouchEventCallback(target, userData, useCapture, callbackfunc, 24, "touchmove");
  8337. return 0;
  8338. }
  8339. function _emscripten_glUniform1f(location, v0) {
  8340. GLctx.uniform1f(GL.uniforms[location], v0);
  8341. }
  8342. function _emscripten_glVertexAttribPointer(index, size, type, normalized, stride, ptr) {
  8343. GLctx.vertexAttribPointer(index, size, type, !!normalized, stride, ptr);
  8344. }
  8345. function _glShaderSource(shader, count, string, length) {
  8346. var source = GL.getSource(shader, count, string, length);
  8347. GLctx.shaderSource(GL.shaders[shader], source);
  8348. }
  8349. function _emscripten_glDrawArrays(mode, first, count) {
  8350. GLctx.drawArrays(mode, first, count);
  8351. }
  8352. function _emscripten_glGenBuffers(n, buffers) {
  8353. for (var i = 0; i < n; i++) {
  8354. var buffer = GLctx.createBuffer();
  8355. if (!buffer) {
  8356. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8357. while(i < n) HEAP32[(((buffers)+(i++*4))>>2)]=0;
  8358. return;
  8359. }
  8360. var id = GL.getNewId(GL.buffers);
  8361. buffer.name = id;
  8362. GL.buffers[id] = buffer;
  8363. HEAP32[(((buffers)+(i*4))>>2)]=id;
  8364. }
  8365. }
  8366. function _emscripten_glClearDepth(x0) { GLctx['clearDepth'](x0) }
  8367. function _emscripten_set_keypress_callback(target, userData, useCapture, callbackfunc) {
  8368. JSEvents.registerKeyEventCallback(target, userData, useCapture, callbackfunc, 1, "keypress");
  8369. return 0;
  8370. }
  8371. function _glfwSetCharCallback(winid, cbfun) {
  8372. GLFW.setCharCallback(winid, cbfun);
  8373. }
  8374. function _emscripten_glGetUniformLocation(program, name) {
  8375. name = Pointer_stringify(name);
  8376. var arrayOffset = 0;
  8377. // If user passed an array accessor "[index]", parse the array index off the accessor.
  8378. if (name.indexOf(']', name.length-1) !== -1) {
  8379. var ls = name.lastIndexOf('[');
  8380. var arrayIndex = name.slice(ls+1, -1);
  8381. if (arrayIndex.length > 0) {
  8382. arrayOffset = parseInt(arrayIndex);
  8383. if (arrayOffset < 0) {
  8384. return -1;
  8385. }
  8386. }
  8387. name = name.slice(0, ls);
  8388. }
  8389. var ptable = GL.programInfos[program];
  8390. if (!ptable) {
  8391. return -1;
  8392. }
  8393. var utable = ptable.uniforms;
  8394. var uniformInfo = utable[name]; // returns pair [ dimension_of_uniform_array, uniform_location ]
  8395. if (uniformInfo && arrayOffset < uniformInfo[0]) { // Check if user asked for an out-of-bounds element, i.e. for 'vec4 colors[3];' user could ask for 'colors[10]' which should return -1.
  8396. return uniformInfo[1]+arrayOffset;
  8397. } else {
  8398. return -1;
  8399. }
  8400. }
  8401. function _glActiveTexture(x0) { GLctx['activeTexture'](x0) }
  8402. function _glBindBuffer(target, buffer) {
  8403. var bufferObj = buffer ? GL.buffers[buffer] : null;
  8404. GLctx.bindBuffer(target, bufferObj);
  8405. }
  8406. function _emscripten_glVertexAttrib4fv(index, v) {
  8407. GLctx.vertexAttrib4f(index, HEAPF32[v>>2], HEAPF32[v+4>>2], HEAPF32[v+8>>2], HEAPF32[v+12>>2]);
  8408. }
  8409. function _emscripten_glScissor(x0, x1, x2, x3) { GLctx['scissor'](x0, x1, x2, x3) }
  8410. function _glfwSetCursorEnterCallback(winid, cbfun) {
  8411. var win = GLFW.WindowFromId(winid);
  8412. if (!win) return;
  8413. win.cursorEnterFunc = cbfun;
  8414. }
  8415. Module["_bitshift64Lshr"] = _bitshift64Lshr;
  8416. function _glBufferData(target, size, data, usage) {
  8417. if (!data) {
  8418. GLctx.bufferData(target, size, usage);
  8419. } else {
  8420. GLctx.bufferData(target, HEAPU8.subarray(data, data+size), usage);
  8421. }
  8422. }
  8423. function _emscripten_glIsShader(shader) {
  8424. var s = GL.shaders[shader];
  8425. if (!s) return 0;
  8426. return GLctx.isShader(s);
  8427. }
  8428. function _emscripten_glDrawBuffers(n, bufs) {
  8429. var bufArray = GL.tempFixedLengthArray[n];
  8430. for (var i = 0; i < n; i++) {
  8431. bufArray[i] = HEAP32[(((bufs)+(i*4))>>2)];
  8432. }
  8433. GLctx['drawBuffers'](bufArray);
  8434. }
  8435. function _glGetFloatv(name_, p) {
  8436. emscriptenWebGLGet(name_, p, 'Float');
  8437. }
  8438. function _emscripten_glBindFramebuffer(target, framebuffer) {
  8439. GLctx.bindFramebuffer(target, framebuffer ? GL.framebuffers[framebuffer] : null);
  8440. }
  8441. function _emscripten_glBlendEquation(x0) { GLctx['blendEquation'](x0) }
  8442. function _emscripten_glBufferSubData(target, offset, size, data) {
  8443. GLctx.bufferSubData(target, offset, HEAPU8.subarray(data, data+size));
  8444. }
  8445. function _emscripten_glBufferData(target, size, data, usage) {
  8446. if (!data) {
  8447. GLctx.bufferData(target, size, usage);
  8448. } else {
  8449. GLctx.bufferData(target, HEAPU8.subarray(data, data+size), usage);
  8450. }
  8451. }
  8452. Module["_sbrk"] = _sbrk;
  8453. Module["_bitshift64Shl"] = _bitshift64Shl;
  8454. function _emscripten_glGetShaderSource(shader, bufSize, length, source) {
  8455. var result = GLctx.getShaderSource(GL.shaders[shader]);
  8456. if (!result) return; // If an error occurs, nothing will be written to length or source.
  8457. if (bufSize > 0 && source) {
  8458. var numBytesWrittenExclNull = stringToUTF8(result, source, bufSize);
  8459. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  8460. } else {
  8461. if (length) HEAP32[((length)>>2)]=0;
  8462. }
  8463. }
  8464. Module["_llvm_bswap_i32"] = _llvm_bswap_i32;
  8465. function _glTexParameteri(x0, x1, x2) { GLctx['texParameteri'](x0, x1, x2) }
  8466. function _glfwSetKeyCallback(winid, cbfun) {
  8467. GLFW.setKeyCallback(winid, cbfun);
  8468. }
  8469. function _emscripten_set_gamepadconnected_callback(userData, useCapture, callbackfunc) {
  8470. if (!navigator.getGamepads && !navigator.webkitGetGamepads) return -1;
  8471. JSEvents.registerGamepadEventCallback(window, userData, useCapture, callbackfunc, 26, "gamepadconnected");
  8472. return 0;
  8473. }
  8474. function _emscripten_glGetFloatv(name_, p) {
  8475. emscriptenWebGLGet(name_, p, 'Float');
  8476. }
  8477. function _glTexImage2D(target, level, internalFormat, width, height, border, format, type, pixels) {
  8478. var pixelData = null;
  8479. if (pixels) pixelData = emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, internalFormat);
  8480. GLctx.texImage2D(target, level, internalFormat, width, height, border, format, type, pixelData);
  8481. }
  8482. function ___assert_fail(condition, filename, line, func) {
  8483. ABORT = true;
  8484. throw 'Assertion failed: ' + Pointer_stringify(condition) + ', at: ' + [filename ? Pointer_stringify(filename) : 'unknown filename', line, func ? Pointer_stringify(func) : 'unknown function'] + ' at ' + stackTrace();
  8485. }
  8486. function _emscripten_glVertexAttribDivisor(index, divisor) {
  8487. GLctx['vertexAttribDivisor'](index, divisor);
  8488. }
  8489. function _emscripten_glDrawElementsInstanced(mode, count, type, indices, primcount) {
  8490. GLctx['drawElementsInstanced'](mode, count, type, indices, primcount);
  8491. }
  8492. function _emscripten_glDrawElements(mode, count, type, indices) {
  8493. GLctx.drawElements(mode, count, type, indices);
  8494. }
  8495. function _glfwSetMouseButtonCallback(winid, cbfun) {
  8496. GLFW.setMouseButtonCallback(winid, cbfun);
  8497. }
  8498. function _emscripten_glCreateProgram() {
  8499. var id = GL.getNewId(GL.programs);
  8500. var program = GLctx.createProgram();
  8501. program.name = id;
  8502. GL.programs[id] = program;
  8503. return id;
  8504. }
  8505. function _emscripten_glCompressedTexImage2D(target, level, internalFormat, width, height, border, imageSize, data) {
  8506. GLctx['compressedTexImage2D'](target, level, internalFormat, width, height, border, data ? HEAPU8.subarray((data),(data+imageSize)) : null);
  8507. }
  8508. function _emscripten_glClearColor(x0, x1, x2, x3) { GLctx['clearColor'](x0, x1, x2, x3) }
  8509. function _emscripten_glBindVertexArray(vao) {
  8510. GLctx['bindVertexArray'](GL.vaos[vao]);
  8511. }
  8512. function _emscripten_glLoadMatrixf() {
  8513. Module['printErr']('missing function: emscripten_glLoadMatrixf'); abort(-1);
  8514. }
  8515. function _glDeleteShader(id) {
  8516. if (!id) return;
  8517. var shader = GL.shaders[id];
  8518. if (!shader) { // glDeleteShader actually signals an error when deleting a nonexisting object, unlike some other GL delete functions.
  8519. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8520. return;
  8521. }
  8522. GLctx.deleteShader(shader);
  8523. GL.shaders[id] = null;
  8524. }
  8525. function _emscripten_glGetProgramiv(program, pname, p) {
  8526. if (!p) {
  8527. // GLES2 specification does not specify how to behave if p is a null pointer. Since calling this function does not make sense
  8528. // if p == null, issue a GL error to notify user about it.
  8529. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8530. return;
  8531. }
  8532. if (program >= GL.counter) {
  8533. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8534. return;
  8535. }
  8536. var ptable = GL.programInfos[program];
  8537. if (!ptable) {
  8538. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8539. return;
  8540. }
  8541. if (pname == 0x8B84) { // GL_INFO_LOG_LENGTH
  8542. var log = GLctx.getProgramInfoLog(GL.programs[program]);
  8543. if (log === null) log = '(unknown error)';
  8544. HEAP32[((p)>>2)]=log.length + 1;
  8545. } else if (pname == 0x8B87 /* GL_ACTIVE_UNIFORM_MAX_LENGTH */) {
  8546. HEAP32[((p)>>2)]=ptable.maxUniformLength;
  8547. } else if (pname == 0x8B8A /* GL_ACTIVE_ATTRIBUTE_MAX_LENGTH */) {
  8548. if (ptable.maxAttributeLength == -1) {
  8549. var program = GL.programs[program];
  8550. var numAttribs = GLctx.getProgramParameter(program, GLctx.ACTIVE_ATTRIBUTES);
  8551. ptable.maxAttributeLength = 0; // Spec says if there are no active attribs, 0 must be returned.
  8552. for (var i = 0; i < numAttribs; ++i) {
  8553. var activeAttrib = GLctx.getActiveAttrib(program, i);
  8554. ptable.maxAttributeLength = Math.max(ptable.maxAttributeLength, activeAttrib.name.length+1);
  8555. }
  8556. }
  8557. HEAP32[((p)>>2)]=ptable.maxAttributeLength;
  8558. } else if (pname == 0x8A35 /* GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH */) {
  8559. if (ptable.maxUniformBlockNameLength == -1) {
  8560. var program = GL.programs[program];
  8561. var numBlocks = GLctx.getProgramParameter(program, GLctx.ACTIVE_UNIFORM_BLOCKS);
  8562. ptable.maxUniformBlockNameLength = 0;
  8563. for (var i = 0; i < numBlocks; ++i) {
  8564. var activeBlockName = GLctx.getActiveUniformBlockName(program, i);
  8565. ptable.maxUniformBlockNameLength = Math.max(ptable.maxUniformBlockNameLength, activeBlockName.length+1);
  8566. }
  8567. }
  8568. HEAP32[((p)>>2)]=ptable.maxUniformBlockNameLength;
  8569. } else {
  8570. HEAP32[((p)>>2)]=GLctx.getProgramParameter(GL.programs[program], pname);
  8571. }
  8572. }
  8573. function _emscripten_glGetProgramInfoLog(program, maxLength, length, infoLog) {
  8574. var log = GLctx.getProgramInfoLog(GL.programs[program]);
  8575. if (log === null) log = '(unknown error)';
  8576. if (maxLength > 0 && infoLog) {
  8577. var numBytesWrittenExclNull = stringToUTF8(log, infoLog, maxLength);
  8578. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  8579. } else {
  8580. if (length) HEAP32[((length)>>2)]=0;
  8581. }
  8582. }
  8583. function _emscripten_glTexImage2D(target, level, internalFormat, width, height, border, format, type, pixels) {
  8584. var pixelData = null;
  8585. if (pixels) pixelData = emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, internalFormat);
  8586. GLctx.texImage2D(target, level, internalFormat, width, height, border, format, type, pixelData);
  8587. }
  8588. function _glPixelStorei(pname, param) {
  8589. if (pname == 0x0D05 /* GL_PACK_ALIGNMENT */) {
  8590. GL.packAlignment = param;
  8591. } else if (pname == 0x0cf5 /* GL_UNPACK_ALIGNMENT */) {
  8592. GL.unpackAlignment = param;
  8593. }
  8594. GLctx.pixelStorei(pname, param);
  8595. }
  8596. function ___unlock() {}
  8597. function _emscripten_glColorPointer() {
  8598. Module['printErr']('missing function: emscripten_glColorPointer'); abort(-1);
  8599. }
  8600. function _glViewport(x0, x1, x2, x3) { GLctx['viewport'](x0, x1, x2, x3) }
  8601. function _glVertexAttrib2f(x0, x1, x2) { GLctx['vertexAttrib2f'](x0, x1, x2) }
  8602. function _glfwDestroyWindow(winid) {
  8603. return GLFW.destroyWindow(winid);
  8604. }
  8605. function _emscripten_glFlush() { GLctx['flush']() }
  8606. function _glfwSetErrorCallback(cbfun) {
  8607. GLFW.errorFunc = cbfun;
  8608. }
  8609. function _glfwSetCursorPos(winid, x, y) {
  8610. GLFW.setCursorPos(winid, x, y);
  8611. }
  8612. function _emscripten_glCreateShader(shaderType) {
  8613. var id = GL.getNewId(GL.shaders);
  8614. GL.shaders[id] = GLctx.createShader(shaderType);
  8615. return id;
  8616. }
  8617. function _glUniformMatrix4fv(location, count, transpose, value) {
  8618. var view;
  8619. if (16*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  8620. // avoid allocation when uploading few enough uniforms
  8621. view = GL.miniTempBufferViews[16*count-1];
  8622. for (var i = 0; i < 16*count; i += 16) {
  8623. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  8624. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  8625. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  8626. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  8627. view[i+4] = HEAPF32[(((value)+(4*i+16))>>2)];
  8628. view[i+5] = HEAPF32[(((value)+(4*i+20))>>2)];
  8629. view[i+6] = HEAPF32[(((value)+(4*i+24))>>2)];
  8630. view[i+7] = HEAPF32[(((value)+(4*i+28))>>2)];
  8631. view[i+8] = HEAPF32[(((value)+(4*i+32))>>2)];
  8632. view[i+9] = HEAPF32[(((value)+(4*i+36))>>2)];
  8633. view[i+10] = HEAPF32[(((value)+(4*i+40))>>2)];
  8634. view[i+11] = HEAPF32[(((value)+(4*i+44))>>2)];
  8635. view[i+12] = HEAPF32[(((value)+(4*i+48))>>2)];
  8636. view[i+13] = HEAPF32[(((value)+(4*i+52))>>2)];
  8637. view[i+14] = HEAPF32[(((value)+(4*i+56))>>2)];
  8638. view[i+15] = HEAPF32[(((value)+(4*i+60))>>2)];
  8639. }
  8640. } else {
  8641. view = HEAPF32.subarray((value)>>2,(value+count*64)>>2);
  8642. }
  8643. GLctx.uniformMatrix4fv(GL.uniforms[location], !!transpose, view);
  8644. }
  8645. function _emscripten_glValidateProgram(program) {
  8646. GLctx.validateProgram(GL.programs[program]);
  8647. }
  8648. function _emscripten_set_click_callback(target, userData, useCapture, callbackfunc) {
  8649. JSEvents.registerMouseEventCallback(target, userData, useCapture, callbackfunc, 4, "click");
  8650. return 0;
  8651. }
  8652. function _glFrontFace(x0) { GLctx['frontFace'](x0) }
  8653. function _emscripten_glColorMask(red, green, blue, alpha) {
  8654. GLctx.colorMask(!!red, !!green, !!blue, !!alpha);
  8655. }
  8656. function _emscripten_glPixelStorei(pname, param) {
  8657. if (pname == 0x0D05 /* GL_PACK_ALIGNMENT */) {
  8658. GL.packAlignment = param;
  8659. } else if (pname == 0x0cf5 /* GL_UNPACK_ALIGNMENT */) {
  8660. GL.unpackAlignment = param;
  8661. }
  8662. GLctx.pixelStorei(pname, param);
  8663. }
  8664. function _emscripten_glDeleteTextures(n, textures) {
  8665. for (var i = 0; i < n; i++) {
  8666. var id = HEAP32[(((textures)+(i*4))>>2)];
  8667. var texture = GL.textures[id];
  8668. if (!texture) continue; // GL spec: "glDeleteTextures silently ignores 0s and names that do not correspond to existing textures".
  8669. GLctx.deleteTexture(texture);
  8670. texture.name = 0;
  8671. GL.textures[id] = null;
  8672. }
  8673. }
  8674. function _glfwGetKey(winid, key) {
  8675. return GLFW.getKey(winid, key);
  8676. }
  8677. function _emscripten_glCompileShader(shader) {
  8678. GLctx.compileShader(GL.shaders[shader]);
  8679. }
  8680. function _emscripten_glGenVertexArrays(n, arrays) {
  8681. for (var i = 0; i < n; i++) {
  8682. var vao = GLctx['createVertexArray']();
  8683. if (!vao) {
  8684. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8685. while(i < n) HEAP32[(((arrays)+(i++*4))>>2)]=0;
  8686. return;
  8687. }
  8688. var id = GL.getNewId(GL.vaos);
  8689. vao.name = id;
  8690. GL.vaos[id] = vao;
  8691. HEAP32[(((arrays)+(i*4))>>2)]=id;
  8692. }
  8693. }
  8694. function _time(ptr) {
  8695. var ret = (Date.now()/1000)|0;
  8696. if (ptr) {
  8697. HEAP32[((ptr)>>2)]=ret;
  8698. }
  8699. return ret;
  8700. }
  8701. function _emscripten_glGetBooleanv(name_, p) {
  8702. emscriptenWebGLGet(name_, p, 'Boolean');
  8703. }
  8704. function ___syscall221(which, varargs) {SYSCALLS.varargs = varargs;
  8705. try {
  8706. // fcntl64
  8707. var stream = SYSCALLS.getStreamFromFD(), cmd = SYSCALLS.get();
  8708. switch (cmd) {
  8709. case 0: {
  8710. var arg = SYSCALLS.get();
  8711. if (arg < 0) {
  8712. return -ERRNO_CODES.EINVAL;
  8713. }
  8714. var newStream;
  8715. newStream = FS.open(stream.path, stream.flags, 0, arg);
  8716. return newStream.fd;
  8717. }
  8718. case 1:
  8719. case 2:
  8720. return 0; // FD_CLOEXEC makes no sense for a single process.
  8721. case 3:
  8722. return stream.flags;
  8723. case 4: {
  8724. var arg = SYSCALLS.get();
  8725. stream.flags |= arg;
  8726. return 0;
  8727. }
  8728. case 12:
  8729. case 12: {
  8730. var arg = SYSCALLS.get();
  8731. var offset = 0;
  8732. // We're always unlocked.
  8733. HEAP16[(((arg)+(offset))>>1)]=2;
  8734. return 0;
  8735. }
  8736. case 13:
  8737. case 14:
  8738. case 13:
  8739. case 14:
  8740. return 0; // Pretend that the locking is successful.
  8741. case 16:
  8742. case 8:
  8743. return -ERRNO_CODES.EINVAL; // These are for sockets. We don't have them fully implemented yet.
  8744. case 9:
  8745. // musl trusts getown return values, due to a bug where they must be, as they overlap with errors. just return -1 here, so fnctl() returns that, and we set errno ourselves.
  8746. ___setErrNo(ERRNO_CODES.EINVAL);
  8747. return -1;
  8748. default: {
  8749. return -ERRNO_CODES.EINVAL;
  8750. }
  8751. }
  8752. } catch (e) {
  8753. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  8754. return -e.errno;
  8755. }
  8756. }
  8757. var GLctx; GL.init();
  8758. if (ENVIRONMENT_IS_NODE) {
  8759. _emscripten_get_now = function _emscripten_get_now_actual() {
  8760. var t = process['hrtime']();
  8761. return t[0] * 1e3 + t[1] / 1e6;
  8762. };
  8763. } else if (typeof dateNow !== 'undefined') {
  8764. _emscripten_get_now = dateNow;
  8765. } else if (typeof self === 'object' && self['performance'] && typeof self['performance']['now'] === 'function') {
  8766. _emscripten_get_now = function() { return self['performance']['now'](); };
  8767. } else if (typeof performance === 'object' && typeof performance['now'] === 'function') {
  8768. _emscripten_get_now = function() { return performance['now'](); };
  8769. } else {
  8770. _emscripten_get_now = Date.now;
  8771. };
  8772. Module["requestFullScreen"] = function Module_requestFullScreen(lockPointer, resizeCanvas, vrDevice) { Module.printErr("Module.requestFullScreen is deprecated. Please call Module.requestFullscreen instead."); Module["requestFullScreen"] = Module["requestFullscreen"]; Browser.requestFullScreen(lockPointer, resizeCanvas, vrDevice) };
  8773. Module["requestFullscreen"] = function Module_requestFullscreen(lockPointer, resizeCanvas, vrDevice) { Browser.requestFullscreen(lockPointer, resizeCanvas, vrDevice) };
  8774. Module["requestAnimationFrame"] = function Module_requestAnimationFrame(func) { Browser.requestAnimationFrame(func) };
  8775. Module["setCanvasSize"] = function Module_setCanvasSize(width, height, noUpdates) { Browser.setCanvasSize(width, height, noUpdates) };
  8776. Module["pauseMainLoop"] = function Module_pauseMainLoop() { Browser.mainLoop.pause() };
  8777. Module["resumeMainLoop"] = function Module_resumeMainLoop() { Browser.mainLoop.resume() };
  8778. Module["getUserMedia"] = function Module_getUserMedia() { Browser.getUserMedia() }
  8779. Module["createContext"] = function Module_createContext(canvas, useWebGL, setInModule, webGLContextAttributes) { return Browser.createContext(canvas, useWebGL, setInModule, webGLContextAttributes) };
  8780. FS.staticInit();__ATINIT__.unshift(function() { if (!Module["noFSInit"] && !FS.init.initialized) FS.init() });__ATMAIN__.push(function() { FS.ignorePermissions = false });__ATEXIT__.push(function() { FS.quit() });Module["FS_createFolder"] = FS.createFolder;Module["FS_createPath"] = FS.createPath;Module["FS_createDataFile"] = FS.createDataFile;Module["FS_createPreloadedFile"] = FS.createPreloadedFile;Module["FS_createLazyFile"] = FS.createLazyFile;Module["FS_createLink"] = FS.createLink;Module["FS_createDevice"] = FS.createDevice;Module["FS_unlink"] = FS.unlink;;
  8781. __ATINIT__.unshift(function() { TTY.init() });__ATEXIT__.push(function() { TTY.shutdown() });;
  8782. if (ENVIRONMENT_IS_NODE) { var fs = require("fs"); var NODEJS_PATH = require("path"); NODEFS.staticInit(); };
  8783. JSEvents.staticInit();;
  8784. DYNAMICTOP_PTR = allocate(1, "i32", ALLOC_STATIC);
  8785. STACK_BASE = STACKTOP = Runtime.alignMemory(STATICTOP);
  8786. STACK_MAX = STACK_BASE + TOTAL_STACK;
  8787. DYNAMIC_BASE = Runtime.alignMemory(STACK_MAX);
  8788. HEAP32[DYNAMICTOP_PTR>>2] = DYNAMIC_BASE;
  8789. staticSealed = true; // seal the static portion of memory
  8790. assert(DYNAMIC_BASE < TOTAL_MEMORY, "TOTAL_MEMORY not big enough for stack");
  8791. function nullFunc_viiiii(x) { Module["printErr"]("Invalid function pointer called with signature 'viiiii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)"); Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x) }
  8792. function nullFunc_vd(x) { Module["printErr"]("Invalid function pointer called with signature 'vd'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)"); Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x) }
  8793. function nullFunc_vid(x) { Module["printErr"]("Invalid function pointer called with signature 'vid'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)"); Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x) }
  8794. function nullFunc_vi(x) { Module["printErr"]("Invalid function pointer called with signature 'vi'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)"); Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x) }
  8795. function nullFunc_vii(x) { Module["printErr"]("Invalid function pointer called with signature 'vii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)"); Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x) }
  8796. function nullFunc_ii(x) { Module["printErr"]("Invalid function pointer called with signature 'ii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)"); Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x) }
  8797. function nullFunc_viddd(x) { Module["printErr"]("Invalid function pointer called with signature 'viddd'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)"); Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x) }
  8798. function nullFunc_vidd(x) { Module["printErr"]("Invalid function pointer called with signature 'vidd'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)"); Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x) }
  8799. function nullFunc_iiii(x) { Module["printErr"]("Invalid function pointer called with signature 'iiii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)"); Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x) }
  8800. function nullFunc_viiiiiiii(x) { Module["printErr"]("Invalid function pointer called with signature 'viiiiiiii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)"); Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x) }
  8801. function nullFunc_viiiiii(x) { Module["printErr"]("Invalid function pointer called with signature 'viiiiii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)"); Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x) }
  8802. function nullFunc_viii(x) { Module["printErr"]("Invalid function pointer called with signature 'viii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)"); Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x) }
  8803. function nullFunc_vidddd(x) { Module["printErr"]("Invalid function pointer called with signature 'vidddd'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)"); Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x) }
  8804. function nullFunc_vdi(x) { Module["printErr"]("Invalid function pointer called with signature 'vdi'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)"); Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x) }
  8805. function nullFunc_viiiiiii(x) { Module["printErr"]("Invalid function pointer called with signature 'viiiiiii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)"); Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x) }
  8806. function nullFunc_viiiiiiiii(x) { Module["printErr"]("Invalid function pointer called with signature 'viiiiiiiii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)"); Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x) }
  8807. function nullFunc_iii(x) { Module["printErr"]("Invalid function pointer called with signature 'iii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)"); Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x) }
  8808. function nullFunc_i(x) { Module["printErr"]("Invalid function pointer called with signature 'i'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)"); Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x) }
  8809. function nullFunc_vdddddd(x) { Module["printErr"]("Invalid function pointer called with signature 'vdddddd'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)"); Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x) }
  8810. function nullFunc_vdddd(x) { Module["printErr"]("Invalid function pointer called with signature 'vdddd'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)"); Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x) }
  8811. function nullFunc_vdd(x) { Module["printErr"]("Invalid function pointer called with signature 'vdd'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)"); Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x) }
  8812. function nullFunc_v(x) { Module["printErr"]("Invalid function pointer called with signature 'v'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)"); Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x) }
  8813. function nullFunc_viid(x) { Module["printErr"]("Invalid function pointer called with signature 'viid'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)"); Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x) }
  8814. function nullFunc_viiii(x) { Module["printErr"]("Invalid function pointer called with signature 'viiii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)"); Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x) }
  8815. function invoke_viiiii(index,a1,a2,a3,a4,a5) {
  8816. try {
  8817. Module["dynCall_viiiii"](index,a1,a2,a3,a4,a5);
  8818. } catch(e) {
  8819. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8820. Module["setThrew"](1, 0);
  8821. }
  8822. }
  8823. function invoke_vd(index,a1) {
  8824. try {
  8825. Module["dynCall_vd"](index,a1);
  8826. } catch(e) {
  8827. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8828. Module["setThrew"](1, 0);
  8829. }
  8830. }
  8831. function invoke_vid(index,a1,a2) {
  8832. try {
  8833. Module["dynCall_vid"](index,a1,a2);
  8834. } catch(e) {
  8835. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8836. Module["setThrew"](1, 0);
  8837. }
  8838. }
  8839. function invoke_vi(index,a1) {
  8840. try {
  8841. Module["dynCall_vi"](index,a1);
  8842. } catch(e) {
  8843. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8844. Module["setThrew"](1, 0);
  8845. }
  8846. }
  8847. function invoke_vii(index,a1,a2) {
  8848. try {
  8849. Module["dynCall_vii"](index,a1,a2);
  8850. } catch(e) {
  8851. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8852. Module["setThrew"](1, 0);
  8853. }
  8854. }
  8855. function invoke_ii(index,a1) {
  8856. try {
  8857. return Module["dynCall_ii"](index,a1);
  8858. } catch(e) {
  8859. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8860. Module["setThrew"](1, 0);
  8861. }
  8862. }
  8863. function invoke_viddd(index,a1,a2,a3,a4) {
  8864. try {
  8865. Module["dynCall_viddd"](index,a1,a2,a3,a4);
  8866. } catch(e) {
  8867. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8868. Module["setThrew"](1, 0);
  8869. }
  8870. }
  8871. function invoke_vidd(index,a1,a2,a3) {
  8872. try {
  8873. Module["dynCall_vidd"](index,a1,a2,a3);
  8874. } catch(e) {
  8875. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8876. Module["setThrew"](1, 0);
  8877. }
  8878. }
  8879. function invoke_iiii(index,a1,a2,a3) {
  8880. try {
  8881. return Module["dynCall_iiii"](index,a1,a2,a3);
  8882. } catch(e) {
  8883. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8884. Module["setThrew"](1, 0);
  8885. }
  8886. }
  8887. function invoke_viiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8) {
  8888. try {
  8889. Module["dynCall_viiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7,a8);
  8890. } catch(e) {
  8891. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8892. Module["setThrew"](1, 0);
  8893. }
  8894. }
  8895. function invoke_viiiiii(index,a1,a2,a3,a4,a5,a6) {
  8896. try {
  8897. Module["dynCall_viiiiii"](index,a1,a2,a3,a4,a5,a6);
  8898. } catch(e) {
  8899. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8900. Module["setThrew"](1, 0);
  8901. }
  8902. }
  8903. function invoke_viii(index,a1,a2,a3) {
  8904. try {
  8905. Module["dynCall_viii"](index,a1,a2,a3);
  8906. } catch(e) {
  8907. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8908. Module["setThrew"](1, 0);
  8909. }
  8910. }
  8911. function invoke_vidddd(index,a1,a2,a3,a4,a5) {
  8912. try {
  8913. Module["dynCall_vidddd"](index,a1,a2,a3,a4,a5);
  8914. } catch(e) {
  8915. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8916. Module["setThrew"](1, 0);
  8917. }
  8918. }
  8919. function invoke_vdi(index,a1,a2) {
  8920. try {
  8921. Module["dynCall_vdi"](index,a1,a2);
  8922. } catch(e) {
  8923. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8924. Module["setThrew"](1, 0);
  8925. }
  8926. }
  8927. function invoke_viiiiiii(index,a1,a2,a3,a4,a5,a6,a7) {
  8928. try {
  8929. Module["dynCall_viiiiiii"](index,a1,a2,a3,a4,a5,a6,a7);
  8930. } catch(e) {
  8931. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8932. Module["setThrew"](1, 0);
  8933. }
  8934. }
  8935. function invoke_viiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9) {
  8936. try {
  8937. Module["dynCall_viiiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7,a8,a9);
  8938. } catch(e) {
  8939. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8940. Module["setThrew"](1, 0);
  8941. }
  8942. }
  8943. function invoke_iii(index,a1,a2) {
  8944. try {
  8945. return Module["dynCall_iii"](index,a1,a2);
  8946. } catch(e) {
  8947. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8948. Module["setThrew"](1, 0);
  8949. }
  8950. }
  8951. function invoke_i(index) {
  8952. try {
  8953. return Module["dynCall_i"](index);
  8954. } catch(e) {
  8955. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8956. Module["setThrew"](1, 0);
  8957. }
  8958. }
  8959. function invoke_vdddddd(index,a1,a2,a3,a4,a5,a6) {
  8960. try {
  8961. Module["dynCall_vdddddd"](index,a1,a2,a3,a4,a5,a6);
  8962. } catch(e) {
  8963. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8964. Module["setThrew"](1, 0);
  8965. }
  8966. }
  8967. function invoke_vdddd(index,a1,a2,a3,a4) {
  8968. try {
  8969. Module["dynCall_vdddd"](index,a1,a2,a3,a4);
  8970. } catch(e) {
  8971. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8972. Module["setThrew"](1, 0);
  8973. }
  8974. }
  8975. function invoke_vdd(index,a1,a2) {
  8976. try {
  8977. Module["dynCall_vdd"](index,a1,a2);
  8978. } catch(e) {
  8979. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8980. Module["setThrew"](1, 0);
  8981. }
  8982. }
  8983. function invoke_v(index) {
  8984. try {
  8985. Module["dynCall_v"](index);
  8986. } catch(e) {
  8987. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8988. Module["setThrew"](1, 0);
  8989. }
  8990. }
  8991. function invoke_viid(index,a1,a2,a3) {
  8992. try {
  8993. Module["dynCall_viid"](index,a1,a2,a3);
  8994. } catch(e) {
  8995. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8996. Module["setThrew"](1, 0);
  8997. }
  8998. }
  8999. function invoke_viiii(index,a1,a2,a3,a4) {
  9000. try {
  9001. Module["dynCall_viiii"](index,a1,a2,a3,a4);
  9002. } catch(e) {
  9003. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  9004. Module["setThrew"](1, 0);
  9005. }
  9006. }
  9007. Module.asmGlobalArg = { "Math": Math, "Int8Array": Int8Array, "Int16Array": Int16Array, "Int32Array": Int32Array, "Uint8Array": Uint8Array, "Uint16Array": Uint16Array, "Uint32Array": Uint32Array, "Float32Array": Float32Array, "Float64Array": Float64Array, "NaN": NaN, "Infinity": Infinity };
  9008. Module.asmLibraryArg = { "abort": abort, "assert": assert, "enlargeMemory": enlargeMemory, "getTotalMemory": getTotalMemory, "abortOnCannotGrowMemory": abortOnCannotGrowMemory, "abortStackOverflow": abortStackOverflow, "nullFunc_viiiii": nullFunc_viiiii, "nullFunc_vd": nullFunc_vd, "nullFunc_vid": nullFunc_vid, "nullFunc_vi": nullFunc_vi, "nullFunc_vii": nullFunc_vii, "nullFunc_ii": nullFunc_ii, "nullFunc_viddd": nullFunc_viddd, "nullFunc_vidd": nullFunc_vidd, "nullFunc_iiii": nullFunc_iiii, "nullFunc_viiiiiiii": nullFunc_viiiiiiii, "nullFunc_viiiiii": nullFunc_viiiiii, "nullFunc_viii": nullFunc_viii, "nullFunc_vidddd": nullFunc_vidddd, "nullFunc_vdi": nullFunc_vdi, "nullFunc_viiiiiii": nullFunc_viiiiiii, "nullFunc_viiiiiiiii": nullFunc_viiiiiiiii, "nullFunc_iii": nullFunc_iii, "nullFunc_i": nullFunc_i, "nullFunc_vdddddd": nullFunc_vdddddd, "nullFunc_vdddd": nullFunc_vdddd, "nullFunc_vdd": nullFunc_vdd, "nullFunc_v": nullFunc_v, "nullFunc_viid": nullFunc_viid, "nullFunc_viiii": nullFunc_viiii, "invoke_viiiii": invoke_viiiii, "invoke_vd": invoke_vd, "invoke_vid": invoke_vid, "invoke_vi": invoke_vi, "invoke_vii": invoke_vii, "invoke_ii": invoke_ii, "invoke_viddd": invoke_viddd, "invoke_vidd": invoke_vidd, "invoke_iiii": invoke_iiii, "invoke_viiiiiiii": invoke_viiiiiiii, "invoke_viiiiii": invoke_viiiiii, "invoke_viii": invoke_viii, "invoke_vidddd": invoke_vidddd, "invoke_vdi": invoke_vdi, "invoke_viiiiiii": invoke_viiiiiii, "invoke_viiiiiiiii": invoke_viiiiiiiii, "invoke_iii": invoke_iii, "invoke_i": invoke_i, "invoke_vdddddd": invoke_vdddddd, "invoke_vdddd": invoke_vdddd, "invoke_vdd": invoke_vdd, "invoke_v": invoke_v, "invoke_viid": invoke_viid, "invoke_viiii": invoke_viiii, "_emscripten_glGetTexParameterfv": _emscripten_glGetTexParameterfv, "_glUseProgram": _glUseProgram, "_emscripten_glShaderSource": _emscripten_glShaderSource, "_glfwCreateWindow": _glfwCreateWindow, "_emscripten_glReleaseShaderCompiler": _emscripten_glReleaseShaderCompiler, "_emscripten_glBlendFuncSeparate": _emscripten_glBlendFuncSeparate, "_emscripten_glVertexAttribPointer": _emscripten_glVertexAttribPointer, "_emscripten_glGetIntegerv": _emscripten_glGetIntegerv, "_emscripten_glCullFace": _emscripten_glCullFace, "_emscripten_glIsProgram": _emscripten_glIsProgram, "_emscripten_glStencilMaskSeparate": _emscripten_glStencilMaskSeparate, "_emscripten_glViewport": _emscripten_glViewport, "_emscripten_glFrontFace": _emscripten_glFrontFace, "___assert_fail": ___assert_fail, "_glDeleteProgram": _glDeleteProgram, "_emscripten_glUniform3fv": _emscripten_glUniform3fv, "_emscripten_glPolygonOffset": _emscripten_glPolygonOffset, "_emscripten_glUseProgram": _emscripten_glUseProgram, "_glVertexAttrib4f": _glVertexAttrib4f, "_glBindBuffer": _glBindBuffer, "_emscripten_glDepthFunc": _emscripten_glDepthFunc, "_glGetShaderInfoLog": _glGetShaderInfoLog, "_emscripten_set_fullscreenchange_callback": _emscripten_set_fullscreenchange_callback, "_emscripten_set_touchmove_callback": _emscripten_set_touchmove_callback, "_emscripten_set_main_loop_timing": _emscripten_set_main_loop_timing, "_glDisable": _glDisable, "_glBlendFunc": _glBlendFunc, "_emscripten_glDisableVertexAttribArray": _emscripten_glDisableVertexAttribArray, "_glGetAttribLocation": _glGetAttribLocation, "_glDisableVertexAttribArray": _glDisableVertexAttribArray, "_glCreateShader": _glCreateShader, "_emscripten_glReadPixels": _emscripten_glReadPixels, "_emscripten_glSampleCoverage": _emscripten_glSampleCoverage, "_emscripten_glVertexPointer": _emscripten_glVertexPointer, "_emscripten_set_touchstart_callback": _emscripten_set_touchstart_callback, "emscriptenWebGLComputeImageSize": emscriptenWebGLComputeImageSize, "_emscripten_glGetBooleanv": _emscripten_glGetBooleanv, "_emscripten_glGetShaderSource": _emscripten_glGetShaderSource, "_glUniform4f": _glUniform4f, "_llvm_stacksave": _llvm_stacksave, "_emscripten_glUniform1i": _emscripten_glUniform1i, "_emscripten_glStencilFuncSeparate": _emscripten_glStencilFuncSeparate, "_emscripten_glLoadMatrixf": _emscripten_glLoadMatrixf, "_emscripten_glGenBuffers": _emscripten_glGenBuffers, "_emscripten_glDeleteObjectARB": _emscripten_glDeleteObjectARB, "_glfwSetWindowSizeCallback": _glfwSetWindowSizeCallback, "_emscripten_glGetShaderPrecisionFormat": _emscripten_glGetShaderPrecisionFormat, "_glfwInit": _glfwInit, "_glGenBuffers": _glGenBuffers, "_glShaderSource": _glShaderSource, "_emscripten_glGetString": _emscripten_glGetString, "_emscripten_glIsFramebuffer": _emscripten_glIsFramebuffer, "_glVertexAttrib3f": _glVertexAttrib3f, "_emscripten_glIsEnabled": _emscripten_glIsEnabled, "_emscripten_glScissor": _emscripten_glScissor, "_emscripten_glVertexAttrib4fv": _emscripten_glVertexAttrib4fv, "_emscripten_glFramebufferTexture2D": _emscripten_glFramebufferTexture2D, "_emscripten_glTexParameteriv": _emscripten_glTexParameteriv, "___syscall145": ___syscall145, "_emscripten_glBindProgramARB": _emscripten_glBindProgramARB, "_emscripten_glStencilOpSeparate": _emscripten_glStencilOpSeparate, "_emscripten_glHint": _emscripten_glHint, "_emscripten_glFramebufferRenderbuffer": _emscripten_glFramebufferRenderbuffer, "___syscall140": ___syscall140, "_glfwSetErrorCallback": _glfwSetErrorCallback, "_glfwDefaultWindowHints": _glfwDefaultWindowHints, "_glfwDestroyWindow": _glfwDestroyWindow, "___syscall146": ___syscall146, "_emscripten_glGetActiveAttrib": _emscripten_glGetActiveAttrib, "_emscripten_glAttachShader": _emscripten_glAttachShader, "_glVertexAttribPointer": _glVertexAttribPointer, "_emscripten_glUniform2i": _emscripten_glUniform2i, "_emscripten_glUniform2f": _emscripten_glUniform2f, "_emscripten_glTexParameterfv": _emscripten_glTexParameterfv, "_emscripten_glUniformMatrix2fv": _emscripten_glUniformMatrix2fv, "_glGetProgramInfoLog": _glGetProgramInfoLog, "_glfwSetScrollCallback": _glfwSetScrollCallback, "_emscripten_glTexParameterf": _emscripten_glTexParameterf, "_emscripten_glGetAttachedShaders": _emscripten_glGetAttachedShaders, "_emscripten_glGenTextures": _emscripten_glGenTextures, "_emscripten_glTexParameteri": _emscripten_glTexParameteri, "_llvm_stackrestore": _llvm_stackrestore, "_glfwMakeContextCurrent": _glfwMakeContextCurrent, "_emscripten_glClear": _emscripten_glClear, "_glDrawElements": _glDrawElements, "_glBufferSubData": _glBufferSubData, "_emscripten_glValidateProgram": _emscripten_glValidateProgram, "_emscripten_glVertexAttrib2fv": _emscripten_glVertexAttrib2fv, "_glViewport": _glViewport, "_emscripten_glUniform4iv": _emscripten_glUniform4iv, "_emscripten_glGetTexParameteriv": _emscripten_glGetTexParameteriv, "___setErrNo": ___setErrNo, "_eglGetProcAddress": _eglGetProcAddress, "_emscripten_glBindAttribLocation": _emscripten_glBindAttribLocation, "_glDeleteTextures": _glDeleteTextures, "_glDepthFunc": _glDepthFunc, "_emscripten_glClientActiveTexture": _emscripten_glClientActiveTexture, "_emscripten_glVertexAttrib2f": _emscripten_glVertexAttrib2f, "_glUniform3f": _glUniform3f, "_emscripten_glFlush": _emscripten_glFlush, "_emscripten_glCheckFramebufferStatus": _emscripten_glCheckFramebufferStatus, "_emscripten_glGenerateMipmap": _emscripten_glGenerateMipmap, "_emscripten_glGetError": _emscripten_glGetError, "_emscripten_glClearDepthf": _emscripten_glClearDepthf, "_emscripten_glBufferData": _emscripten_glBufferData, "_emscripten_glUniform3i": _emscripten_glUniform3i, "_emscripten_glRotatef": _emscripten_glRotatef, "_emscripten_glDeleteShader": _emscripten_glDeleteShader, "_glEnable": _glEnable, "_glVertexAttrib2f": _glVertexAttrib2f, "_glGenTextures": _glGenTextures, "_emscripten_glMatrixMode": _emscripten_glMatrixMode, "_glGetString": _glGetString, "_emscripten_glClearStencil": _emscripten_glClearStencil, "_emscripten_glGetUniformLocation": _emscripten_glGetUniformLocation, "emscriptenWebGLGet": emscriptenWebGLGet, "_emscripten_glEnableVertexAttribArray": _emscripten_glEnableVertexAttribArray, "_emscripten_glGetAttribLocation": _emscripten_glGetAttribLocation, "_emscripten_get_now": _emscripten_get_now, "_emscripten_glNormalPointer": _emscripten_glNormalPointer, "_glAttachShader": _glAttachShader, "_emscripten_glTexCoordPointer": _emscripten_glTexCoordPointer, "_emscripten_glEnable": _emscripten_glEnable, "_glCreateProgram": _glCreateProgram, "_glUniformMatrix4fv": _glUniformMatrix4fv, "_emscripten_glClearDepth": _emscripten_glClearDepth, "___lock": ___lock, "emscriptenWebGLGetTexPixelData": emscriptenWebGLGetTexPixelData, "___syscall6": ___syscall6, "___syscall5": ___syscall5, "_emscripten_glIsBuffer": _emscripten_glIsBuffer, "_emscripten_glVertexAttrib3f": _emscripten_glVertexAttrib3f, "_time": _time, "_emscripten_glVertexAttrib1f": _emscripten_glVertexAttrib1f, "_emscripten_glGetFramebufferAttachmentParameteriv": _emscripten_glGetFramebufferAttachmentParameteriv, "_emscripten_glBlendEquationSeparate": _emscripten_glBlendEquationSeparate, "_exit": _exit, "_emscripten_glEnableClientState": _emscripten_glEnableClientState, "_emscripten_glUniform4i": _emscripten_glUniform4i, "_emscripten_glDrawRangeElements": _emscripten_glDrawRangeElements, "_glCullFace": _glCullFace, "_emscripten_glGetPointerv": _emscripten_glGetPointerv, "_emscripten_set_keypress_callback": _emscripten_set_keypress_callback, "__emscripten_sample_gamepad_data": __emscripten_sample_gamepad_data, "_emscripten_get_gamepad_status": _emscripten_get_gamepad_status, "_emscripten_glUniform4f": _emscripten_glUniform4f, "_emscripten_glUniform2fv": _emscripten_glUniform2fv, "_glfwGetVideoModes": _glfwGetVideoModes, "_emscripten_set_click_callback": _emscripten_set_click_callback, "_emscripten_glFinish": _emscripten_glFinish, "_emscripten_glShaderBinary": _emscripten_glShaderBinary, "_emscripten_glDrawElements": _emscripten_glDrawElements, "_emscripten_glBlendFunc": _emscripten_glBlendFunc, "_emscripten_get_num_gamepads": _emscripten_get_num_gamepads, "___syscall221": ___syscall221, "_glCompressedTexImage2D": _glCompressedTexImage2D, "_emscripten_glUniform1iv": _emscripten_glUniform1iv, "_emscripten_glGetVertexAttribPointerv": _emscripten_glGetVertexAttribPointerv, "_glClearDepthf": _glClearDepthf, "_emscripten_glCompressedTexSubImage2D": _emscripten_glCompressedTexSubImage2D, "emscriptenWebGLGetUniform": emscriptenWebGLGetUniform, "_emscripten_glGenRenderbuffers": _emscripten_glGenRenderbuffers, "_emscripten_glDeleteVertexArrays": _emscripten_glDeleteVertexArrays, "_glfwSetWindowShouldClose": _glfwSetWindowShouldClose, "_emscripten_glUniform1fv": _emscripten_glUniform1fv, "_emscripten_glGetActiveUniform": _emscripten_glGetActiveUniform, "_glBindTexture": _glBindTexture, "_emscripten_glUniform3iv": _emscripten_glUniform3iv, "_emscripten_glUniform2iv": _emscripten_glUniform2iv, "_glfwSetCursorPos": _glfwSetCursorPos, "_glfwSetCharCallback": _glfwSetCharCallback, "emscriptenWebGLGetVertexAttrib": emscriptenWebGLGetVertexAttrib, "_glGetFloatv": _glGetFloatv, "_emscripten_glDeleteProgram": _emscripten_glDeleteProgram, "_emscripten_glDeleteRenderbuffers": _emscripten_glDeleteRenderbuffers, "_emscripten_glDrawElementsInstanced": _emscripten_glDrawElementsInstanced, "_emscripten_glVertexAttrib4f": _emscripten_glVertexAttrib4f, "_glDrawArrays": _glDrawArrays, "_emscripten_glTexSubImage2D": _emscripten_glTexSubImage2D, "_emscripten_memcpy_big": _emscripten_memcpy_big, "_emscripten_glPixelStorei": _emscripten_glPixelStorei, "_glCompileShader": _glCompileShader, "_emscripten_get_pointerlock_status": _emscripten_get_pointerlock_status, "_glfwGetMouseButton": _glfwGetMouseButton, "_emscripten_glColorPointer": _emscripten_glColorPointer, "_emscripten_glGetBufferParameteriv": _emscripten_glGetBufferParameteriv, "_glActiveTexture": _glActiveTexture, "_emscripten_request_pointerlock": _emscripten_request_pointerlock, "_emscripten_set_gamepaddisconnected_callback": _emscripten_set_gamepaddisconnected_callback, "_emscripten_asm_const_iii": _emscripten_asm_const_iii, "_emscripten_glDepthMask": _emscripten_glDepthMask, "_glfwSetWindowIconifyCallback": _glfwSetWindowIconifyCallback, "_emscripten_glDrawBuffers": _emscripten_glDrawBuffers, "_glfwTerminate": _glfwTerminate, "_glFrontFace": _glFrontFace, "_emscripten_glGetObjectParameterivARB": _emscripten_glGetObjectParameterivARB, "_emscripten_exit_pointerlock": _emscripten_exit_pointerlock, "_glfwSwapInterval": _glfwSwapInterval, "_glUniform1i": _glUniform1i, "_glEnableVertexAttribArray": _glEnableVertexAttribArray, "_emscripten_glStencilFunc": _emscripten_glStencilFunc, "_abort": _abort, "_emscripten_glGetUniformiv": _emscripten_glGetUniformiv, "_glDeleteBuffers": _glDeleteBuffers, "_glBufferData": _glBufferData, "_glTexImage2D": _glTexImage2D, "_emscripten_glGetShaderiv": _emscripten_glGetShaderiv, "_glfwSetKeyCallback": _glfwSetKeyCallback, "_emscripten_glGenFramebuffers": _emscripten_glGenFramebuffers, "_glUniform1f": _glUniform1f, "_emscripten_glUniformMatrix4fv": _emscripten_glUniformMatrix4fv, "_emscripten_glLoadIdentity": _emscripten_glLoadIdentity, "_glDeleteShader": _glDeleteShader, "_emscripten_glUniform1f": _emscripten_glUniform1f, "_glGetProgramiv": _glGetProgramiv, "_emscripten_glBindFramebuffer": _emscripten_glBindFramebuffer, "_emscripten_glIsRenderbuffer": _emscripten_glIsRenderbuffer, "_glfwGetTime": _glfwGetTime, "_emscripten_glRenderbufferStorage": _emscripten_glRenderbufferStorage, "_emscripten_set_gamepadconnected_callback": _emscripten_set_gamepadconnected_callback, "_emscripten_glBlendColor": _emscripten_glBlendColor, "_emscripten_glGetVertexAttribiv": _emscripten_glGetVertexAttribiv, "_emscripten_glBindVertexArray": _emscripten_glBindVertexArray, "_emscripten_glDrawArraysInstanced": _emscripten_glDrawArraysInstanced, "_emscripten_set_touchcancel_callback": _emscripten_set_touchcancel_callback, "_emscripten_glCreateShader": _emscripten_glCreateShader, "_emscripten_glStencilMask": _emscripten_glStencilMask, "_emscripten_glDeleteTextures": _emscripten_glDeleteTextures, "_glfwGetKey": _glfwGetKey, "_glfwGetPrimaryMonitor": _glfwGetPrimaryMonitor, "_glLinkProgram": _glLinkProgram, "_emscripten_glVertexAttribDivisor": _emscripten_glVertexAttribDivisor, "_emscripten_set_touchend_callback": _emscripten_set_touchend_callback, "_emscripten_glGetUniformfv": _emscripten_glGetUniformfv, "_emscripten_glGetVertexAttribfv": _emscripten_glGetVertexAttribfv, "_emscripten_glGetRenderbufferParameteriv": _emscripten_glGetRenderbufferParameteriv, "_emscripten_glDeleteFramebuffers": _emscripten_glDeleteFramebuffers, "_glGetShaderiv": _glGetShaderiv, "_emscripten_glVertexAttrib3fv": _emscripten_glVertexAttrib3fv, "_glGetUniformLocation": _glGetUniformLocation, "_emscripten_glGetInfoLogARB": _emscripten_glGetInfoLogARB, "_emscripten_glCompileShader": _emscripten_glCompileShader, "_glClear": _glClear, "_emscripten_glFrustum": _emscripten_glFrustum, "_emscripten_glDisable": _emscripten_glDisable, "_emscripten_glDepthRangef": _emscripten_glDepthRangef, "__exit": __exit, "_emscripten_glLineWidth": _emscripten_glLineWidth, "_emscripten_glUniform3f": _emscripten_glUniform3f, "_emscripten_glGetShaderInfoLog": _emscripten_glGetShaderInfoLog, "_emscripten_glStencilOp": _emscripten_glStencilOp, "_glBindAttribLocation": _glBindAttribLocation, "_glPixelStorei": _glPixelStorei, "_emscripten_glColorMask": _emscripten_glColorMask, "_emscripten_glLinkProgram": _emscripten_glLinkProgram, "_emscripten_glBlendEquation": _emscripten_glBlendEquation, "_emscripten_glIsTexture": _emscripten_glIsTexture, "_emscripten_glGetProgramiv": _emscripten_glGetProgramiv, "_emscripten_glVertexAttrib1fv": _emscripten_glVertexAttrib1fv, "_emscripten_glUniformMatrix3fv": _emscripten_glUniformMatrix3fv, "_emscripten_glBindTexture": _emscripten_glBindTexture, "_glfwSetMouseButtonCallback": _glfwSetMouseButtonCallback, "_glfwGetCursorPos": _glfwGetCursorPos, "_emscripten_glActiveTexture": _emscripten_glActiveTexture, "_emscripten_glDeleteBuffers": _emscripten_glDeleteBuffers, "___syscall54": ___syscall54, "___unlock": ___unlock, "_emscripten_glBufferSubData": _emscripten_glBufferSubData, "_glfwSwapBuffers": _glfwSwapBuffers, "_emscripten_glDepthRange": _emscripten_glDepthRange, "_emscripten_set_main_loop": _emscripten_set_main_loop, "_emscripten_glBindRenderbuffer": _emscripten_glBindRenderbuffer, "_emscripten_glGetProgramInfoLog": _emscripten_glGetProgramInfoLog, "_glfwWindowHint": _glfwWindowHint, "_emscripten_glIsShader": _emscripten_glIsShader, "_emscripten_glUniform4fv": _emscripten_glUniform4fv, "_emscripten_glGenVertexArrays": _emscripten_glGenVertexArrays, "_emscripten_glDrawArrays": _emscripten_glDrawArrays, "_emscripten_glCompressedTexImage2D": _emscripten_glCompressedTexImage2D, "_emscripten_glClearColor": _emscripten_glClearColor, "_emscripten_glCreateProgram": _emscripten_glCreateProgram, "_emscripten_glCopyTexSubImage2D": _emscripten_glCopyTexSubImage2D, "_glTexParameteri": _glTexParameteri, "_emscripten_glBindBuffer": _emscripten_glBindBuffer, "_emscripten_glGetFloatv": _emscripten_glGetFloatv, "_emscripten_glDetachShader": _emscripten_glDetachShader, "_glClearColor": _glClearColor, "_glfwSetCursorPosCallback": _glfwSetCursorPosCallback, "_glfwSetCursorEnterCallback": _glfwSetCursorEnterCallback, "_emscripten_glCopyTexImage2D": _emscripten_glCopyTexImage2D, "_emscripten_glTexImage2D": _emscripten_glTexImage2D, "DYNAMICTOP_PTR": DYNAMICTOP_PTR, "tempDoublePtr": tempDoublePtr, "ABORT": ABORT, "STACKTOP": STACKTOP, "STACK_MAX": STACK_MAX, "cttz_i8": cttz_i8 };
  9009. // EMSCRIPTEN_START_ASM
  9010. var asm = (function(global, env, buffer) {
  9011. 'use asm';
  9012. var HEAP8 = new global.Int8Array(buffer);
  9013. var HEAP16 = new global.Int16Array(buffer);
  9014. var HEAP32 = new global.Int32Array(buffer);
  9015. var HEAPU8 = new global.Uint8Array(buffer);
  9016. var HEAPU16 = new global.Uint16Array(buffer);
  9017. var HEAPU32 = new global.Uint32Array(buffer);
  9018. var HEAPF32 = new global.Float32Array(buffer);
  9019. var HEAPF64 = new global.Float64Array(buffer);
  9020. var DYNAMICTOP_PTR=env.DYNAMICTOP_PTR|0;
  9021. var tempDoublePtr=env.tempDoublePtr|0;
  9022. var ABORT=env.ABORT|0;
  9023. var STACKTOP=env.STACKTOP|0;
  9024. var STACK_MAX=env.STACK_MAX|0;
  9025. var cttz_i8=env.cttz_i8|0;
  9026. var __THREW__ = 0;
  9027. var threwValue = 0;
  9028. var setjmpId = 0;
  9029. var undef = 0;
  9030. var nan = global.NaN, inf = global.Infinity;
  9031. var tempInt = 0, tempBigInt = 0, tempBigIntP = 0, tempBigIntS = 0, tempBigIntR = 0.0, tempBigIntI = 0, tempBigIntD = 0, tempValue = 0, tempDouble = 0.0;
  9032. var tempRet0 = 0;
  9033. var Math_floor=global.Math.floor;
  9034. var Math_abs=global.Math.abs;
  9035. var Math_sqrt=global.Math.sqrt;
  9036. var Math_pow=global.Math.pow;
  9037. var Math_cos=global.Math.cos;
  9038. var Math_sin=global.Math.sin;
  9039. var Math_tan=global.Math.tan;
  9040. var Math_acos=global.Math.acos;
  9041. var Math_asin=global.Math.asin;
  9042. var Math_atan=global.Math.atan;
  9043. var Math_atan2=global.Math.atan2;
  9044. var Math_exp=global.Math.exp;
  9045. var Math_log=global.Math.log;
  9046. var Math_ceil=global.Math.ceil;
  9047. var Math_imul=global.Math.imul;
  9048. var Math_min=global.Math.min;
  9049. var Math_max=global.Math.max;
  9050. var Math_clz32=global.Math.clz32;
  9051. var abort=env.abort;
  9052. var assert=env.assert;
  9053. var enlargeMemory=env.enlargeMemory;
  9054. var getTotalMemory=env.getTotalMemory;
  9055. var abortOnCannotGrowMemory=env.abortOnCannotGrowMemory;
  9056. var abortStackOverflow=env.abortStackOverflow;
  9057. var nullFunc_viiiii=env.nullFunc_viiiii;
  9058. var nullFunc_vd=env.nullFunc_vd;
  9059. var nullFunc_vid=env.nullFunc_vid;
  9060. var nullFunc_vi=env.nullFunc_vi;
  9061. var nullFunc_vii=env.nullFunc_vii;
  9062. var nullFunc_ii=env.nullFunc_ii;
  9063. var nullFunc_viddd=env.nullFunc_viddd;
  9064. var nullFunc_vidd=env.nullFunc_vidd;
  9065. var nullFunc_iiii=env.nullFunc_iiii;
  9066. var nullFunc_viiiiiiii=env.nullFunc_viiiiiiii;
  9067. var nullFunc_viiiiii=env.nullFunc_viiiiii;
  9068. var nullFunc_viii=env.nullFunc_viii;
  9069. var nullFunc_vidddd=env.nullFunc_vidddd;
  9070. var nullFunc_vdi=env.nullFunc_vdi;
  9071. var nullFunc_viiiiiii=env.nullFunc_viiiiiii;
  9072. var nullFunc_viiiiiiiii=env.nullFunc_viiiiiiiii;
  9073. var nullFunc_iii=env.nullFunc_iii;
  9074. var nullFunc_i=env.nullFunc_i;
  9075. var nullFunc_vdddddd=env.nullFunc_vdddddd;
  9076. var nullFunc_vdddd=env.nullFunc_vdddd;
  9077. var nullFunc_vdd=env.nullFunc_vdd;
  9078. var nullFunc_v=env.nullFunc_v;
  9079. var nullFunc_viid=env.nullFunc_viid;
  9080. var nullFunc_viiii=env.nullFunc_viiii;
  9081. var invoke_viiiii=env.invoke_viiiii;
  9082. var invoke_vd=env.invoke_vd;
  9083. var invoke_vid=env.invoke_vid;
  9084. var invoke_vi=env.invoke_vi;
  9085. var invoke_vii=env.invoke_vii;
  9086. var invoke_ii=env.invoke_ii;
  9087. var invoke_viddd=env.invoke_viddd;
  9088. var invoke_vidd=env.invoke_vidd;
  9089. var invoke_iiii=env.invoke_iiii;
  9090. var invoke_viiiiiiii=env.invoke_viiiiiiii;
  9091. var invoke_viiiiii=env.invoke_viiiiii;
  9092. var invoke_viii=env.invoke_viii;
  9093. var invoke_vidddd=env.invoke_vidddd;
  9094. var invoke_vdi=env.invoke_vdi;
  9095. var invoke_viiiiiii=env.invoke_viiiiiii;
  9096. var invoke_viiiiiiiii=env.invoke_viiiiiiiii;
  9097. var invoke_iii=env.invoke_iii;
  9098. var invoke_i=env.invoke_i;
  9099. var invoke_vdddddd=env.invoke_vdddddd;
  9100. var invoke_vdddd=env.invoke_vdddd;
  9101. var invoke_vdd=env.invoke_vdd;
  9102. var invoke_v=env.invoke_v;
  9103. var invoke_viid=env.invoke_viid;
  9104. var invoke_viiii=env.invoke_viiii;
  9105. var _emscripten_glGetTexParameterfv=env._emscripten_glGetTexParameterfv;
  9106. var _glUseProgram=env._glUseProgram;
  9107. var _emscripten_glShaderSource=env._emscripten_glShaderSource;
  9108. var _glfwCreateWindow=env._glfwCreateWindow;
  9109. var _emscripten_glReleaseShaderCompiler=env._emscripten_glReleaseShaderCompiler;
  9110. var _emscripten_glBlendFuncSeparate=env._emscripten_glBlendFuncSeparate;
  9111. var _emscripten_glVertexAttribPointer=env._emscripten_glVertexAttribPointer;
  9112. var _emscripten_glGetIntegerv=env._emscripten_glGetIntegerv;
  9113. var _emscripten_glCullFace=env._emscripten_glCullFace;
  9114. var _emscripten_glIsProgram=env._emscripten_glIsProgram;
  9115. var _emscripten_glStencilMaskSeparate=env._emscripten_glStencilMaskSeparate;
  9116. var _emscripten_glViewport=env._emscripten_glViewport;
  9117. var _emscripten_glFrontFace=env._emscripten_glFrontFace;
  9118. var ___assert_fail=env.___assert_fail;
  9119. var _glDeleteProgram=env._glDeleteProgram;
  9120. var _emscripten_glUniform3fv=env._emscripten_glUniform3fv;
  9121. var _emscripten_glPolygonOffset=env._emscripten_glPolygonOffset;
  9122. var _emscripten_glUseProgram=env._emscripten_glUseProgram;
  9123. var _glVertexAttrib4f=env._glVertexAttrib4f;
  9124. var _glBindBuffer=env._glBindBuffer;
  9125. var _emscripten_glDepthFunc=env._emscripten_glDepthFunc;
  9126. var _glGetShaderInfoLog=env._glGetShaderInfoLog;
  9127. var _emscripten_set_fullscreenchange_callback=env._emscripten_set_fullscreenchange_callback;
  9128. var _emscripten_set_touchmove_callback=env._emscripten_set_touchmove_callback;
  9129. var _emscripten_set_main_loop_timing=env._emscripten_set_main_loop_timing;
  9130. var _glDisable=env._glDisable;
  9131. var _glBlendFunc=env._glBlendFunc;
  9132. var _emscripten_glDisableVertexAttribArray=env._emscripten_glDisableVertexAttribArray;
  9133. var _glGetAttribLocation=env._glGetAttribLocation;
  9134. var _glDisableVertexAttribArray=env._glDisableVertexAttribArray;
  9135. var _glCreateShader=env._glCreateShader;
  9136. var _emscripten_glReadPixels=env._emscripten_glReadPixels;
  9137. var _emscripten_glSampleCoverage=env._emscripten_glSampleCoverage;
  9138. var _emscripten_glVertexPointer=env._emscripten_glVertexPointer;
  9139. var _emscripten_set_touchstart_callback=env._emscripten_set_touchstart_callback;
  9140. var emscriptenWebGLComputeImageSize=env.emscriptenWebGLComputeImageSize;
  9141. var _emscripten_glGetBooleanv=env._emscripten_glGetBooleanv;
  9142. var _emscripten_glGetShaderSource=env._emscripten_glGetShaderSource;
  9143. var _glUniform4f=env._glUniform4f;
  9144. var _llvm_stacksave=env._llvm_stacksave;
  9145. var _emscripten_glUniform1i=env._emscripten_glUniform1i;
  9146. var _emscripten_glStencilFuncSeparate=env._emscripten_glStencilFuncSeparate;
  9147. var _emscripten_glLoadMatrixf=env._emscripten_glLoadMatrixf;
  9148. var _emscripten_glGenBuffers=env._emscripten_glGenBuffers;
  9149. var _emscripten_glDeleteObjectARB=env._emscripten_glDeleteObjectARB;
  9150. var _glfwSetWindowSizeCallback=env._glfwSetWindowSizeCallback;
  9151. var _emscripten_glGetShaderPrecisionFormat=env._emscripten_glGetShaderPrecisionFormat;
  9152. var _glfwInit=env._glfwInit;
  9153. var _glGenBuffers=env._glGenBuffers;
  9154. var _glShaderSource=env._glShaderSource;
  9155. var _emscripten_glGetString=env._emscripten_glGetString;
  9156. var _emscripten_glIsFramebuffer=env._emscripten_glIsFramebuffer;
  9157. var _glVertexAttrib3f=env._glVertexAttrib3f;
  9158. var _emscripten_glIsEnabled=env._emscripten_glIsEnabled;
  9159. var _emscripten_glScissor=env._emscripten_glScissor;
  9160. var _emscripten_glVertexAttrib4fv=env._emscripten_glVertexAttrib4fv;
  9161. var _emscripten_glFramebufferTexture2D=env._emscripten_glFramebufferTexture2D;
  9162. var _emscripten_glTexParameteriv=env._emscripten_glTexParameteriv;
  9163. var ___syscall145=env.___syscall145;
  9164. var _emscripten_glBindProgramARB=env._emscripten_glBindProgramARB;
  9165. var _emscripten_glStencilOpSeparate=env._emscripten_glStencilOpSeparate;
  9166. var _emscripten_glHint=env._emscripten_glHint;
  9167. var _emscripten_glFramebufferRenderbuffer=env._emscripten_glFramebufferRenderbuffer;
  9168. var ___syscall140=env.___syscall140;
  9169. var _glfwSetErrorCallback=env._glfwSetErrorCallback;
  9170. var _glfwDefaultWindowHints=env._glfwDefaultWindowHints;
  9171. var _glfwDestroyWindow=env._glfwDestroyWindow;
  9172. var ___syscall146=env.___syscall146;
  9173. var _emscripten_glGetActiveAttrib=env._emscripten_glGetActiveAttrib;
  9174. var _emscripten_glAttachShader=env._emscripten_glAttachShader;
  9175. var _glVertexAttribPointer=env._glVertexAttribPointer;
  9176. var _emscripten_glUniform2i=env._emscripten_glUniform2i;
  9177. var _emscripten_glUniform2f=env._emscripten_glUniform2f;
  9178. var _emscripten_glTexParameterfv=env._emscripten_glTexParameterfv;
  9179. var _emscripten_glUniformMatrix2fv=env._emscripten_glUniformMatrix2fv;
  9180. var _glGetProgramInfoLog=env._glGetProgramInfoLog;
  9181. var _glfwSetScrollCallback=env._glfwSetScrollCallback;
  9182. var _emscripten_glTexParameterf=env._emscripten_glTexParameterf;
  9183. var _emscripten_glGetAttachedShaders=env._emscripten_glGetAttachedShaders;
  9184. var _emscripten_glGenTextures=env._emscripten_glGenTextures;
  9185. var _emscripten_glTexParameteri=env._emscripten_glTexParameteri;
  9186. var _llvm_stackrestore=env._llvm_stackrestore;
  9187. var _glfwMakeContextCurrent=env._glfwMakeContextCurrent;
  9188. var _emscripten_glClear=env._emscripten_glClear;
  9189. var _glDrawElements=env._glDrawElements;
  9190. var _glBufferSubData=env._glBufferSubData;
  9191. var _emscripten_glValidateProgram=env._emscripten_glValidateProgram;
  9192. var _emscripten_glVertexAttrib2fv=env._emscripten_glVertexAttrib2fv;
  9193. var _glViewport=env._glViewport;
  9194. var _emscripten_glUniform4iv=env._emscripten_glUniform4iv;
  9195. var _emscripten_glGetTexParameteriv=env._emscripten_glGetTexParameteriv;
  9196. var ___setErrNo=env.___setErrNo;
  9197. var _eglGetProcAddress=env._eglGetProcAddress;
  9198. var _emscripten_glBindAttribLocation=env._emscripten_glBindAttribLocation;
  9199. var _glDeleteTextures=env._glDeleteTextures;
  9200. var _glDepthFunc=env._glDepthFunc;
  9201. var _emscripten_glClientActiveTexture=env._emscripten_glClientActiveTexture;
  9202. var _emscripten_glVertexAttrib2f=env._emscripten_glVertexAttrib2f;
  9203. var _glUniform3f=env._glUniform3f;
  9204. var _emscripten_glFlush=env._emscripten_glFlush;
  9205. var _emscripten_glCheckFramebufferStatus=env._emscripten_glCheckFramebufferStatus;
  9206. var _emscripten_glGenerateMipmap=env._emscripten_glGenerateMipmap;
  9207. var _emscripten_glGetError=env._emscripten_glGetError;
  9208. var _emscripten_glClearDepthf=env._emscripten_glClearDepthf;
  9209. var _emscripten_glBufferData=env._emscripten_glBufferData;
  9210. var _emscripten_glUniform3i=env._emscripten_glUniform3i;
  9211. var _emscripten_glRotatef=env._emscripten_glRotatef;
  9212. var _emscripten_glDeleteShader=env._emscripten_glDeleteShader;
  9213. var _glEnable=env._glEnable;
  9214. var _glVertexAttrib2f=env._glVertexAttrib2f;
  9215. var _glGenTextures=env._glGenTextures;
  9216. var _emscripten_glMatrixMode=env._emscripten_glMatrixMode;
  9217. var _glGetString=env._glGetString;
  9218. var _emscripten_glClearStencil=env._emscripten_glClearStencil;
  9219. var _emscripten_glGetUniformLocation=env._emscripten_glGetUniformLocation;
  9220. var emscriptenWebGLGet=env.emscriptenWebGLGet;
  9221. var _emscripten_glEnableVertexAttribArray=env._emscripten_glEnableVertexAttribArray;
  9222. var _emscripten_glGetAttribLocation=env._emscripten_glGetAttribLocation;
  9223. var _emscripten_get_now=env._emscripten_get_now;
  9224. var _emscripten_glNormalPointer=env._emscripten_glNormalPointer;
  9225. var _glAttachShader=env._glAttachShader;
  9226. var _emscripten_glTexCoordPointer=env._emscripten_glTexCoordPointer;
  9227. var _emscripten_glEnable=env._emscripten_glEnable;
  9228. var _glCreateProgram=env._glCreateProgram;
  9229. var _glUniformMatrix4fv=env._glUniformMatrix4fv;
  9230. var _emscripten_glClearDepth=env._emscripten_glClearDepth;
  9231. var ___lock=env.___lock;
  9232. var emscriptenWebGLGetTexPixelData=env.emscriptenWebGLGetTexPixelData;
  9233. var ___syscall6=env.___syscall6;
  9234. var ___syscall5=env.___syscall5;
  9235. var _emscripten_glIsBuffer=env._emscripten_glIsBuffer;
  9236. var _emscripten_glVertexAttrib3f=env._emscripten_glVertexAttrib3f;
  9237. var _time=env._time;
  9238. var _emscripten_glVertexAttrib1f=env._emscripten_glVertexAttrib1f;
  9239. var _emscripten_glGetFramebufferAttachmentParameteriv=env._emscripten_glGetFramebufferAttachmentParameteriv;
  9240. var _emscripten_glBlendEquationSeparate=env._emscripten_glBlendEquationSeparate;
  9241. var _exit=env._exit;
  9242. var _emscripten_glEnableClientState=env._emscripten_glEnableClientState;
  9243. var _emscripten_glUniform4i=env._emscripten_glUniform4i;
  9244. var _emscripten_glDrawRangeElements=env._emscripten_glDrawRangeElements;
  9245. var _glCullFace=env._glCullFace;
  9246. var _emscripten_glGetPointerv=env._emscripten_glGetPointerv;
  9247. var _emscripten_set_keypress_callback=env._emscripten_set_keypress_callback;
  9248. var __emscripten_sample_gamepad_data=env.__emscripten_sample_gamepad_data;
  9249. var _emscripten_get_gamepad_status=env._emscripten_get_gamepad_status;
  9250. var _emscripten_glUniform4f=env._emscripten_glUniform4f;
  9251. var _emscripten_glUniform2fv=env._emscripten_glUniform2fv;
  9252. var _glfwGetVideoModes=env._glfwGetVideoModes;
  9253. var _emscripten_set_click_callback=env._emscripten_set_click_callback;
  9254. var _emscripten_glFinish=env._emscripten_glFinish;
  9255. var _emscripten_glShaderBinary=env._emscripten_glShaderBinary;
  9256. var _emscripten_glDrawElements=env._emscripten_glDrawElements;
  9257. var _emscripten_glBlendFunc=env._emscripten_glBlendFunc;
  9258. var _emscripten_get_num_gamepads=env._emscripten_get_num_gamepads;
  9259. var ___syscall221=env.___syscall221;
  9260. var _glCompressedTexImage2D=env._glCompressedTexImage2D;
  9261. var _emscripten_glUniform1iv=env._emscripten_glUniform1iv;
  9262. var _emscripten_glGetVertexAttribPointerv=env._emscripten_glGetVertexAttribPointerv;
  9263. var _glClearDepthf=env._glClearDepthf;
  9264. var _emscripten_glCompressedTexSubImage2D=env._emscripten_glCompressedTexSubImage2D;
  9265. var emscriptenWebGLGetUniform=env.emscriptenWebGLGetUniform;
  9266. var _emscripten_glGenRenderbuffers=env._emscripten_glGenRenderbuffers;
  9267. var _emscripten_glDeleteVertexArrays=env._emscripten_glDeleteVertexArrays;
  9268. var _glfwSetWindowShouldClose=env._glfwSetWindowShouldClose;
  9269. var _emscripten_glUniform1fv=env._emscripten_glUniform1fv;
  9270. var _emscripten_glGetActiveUniform=env._emscripten_glGetActiveUniform;
  9271. var _glBindTexture=env._glBindTexture;
  9272. var _emscripten_glUniform3iv=env._emscripten_glUniform3iv;
  9273. var _emscripten_glUniform2iv=env._emscripten_glUniform2iv;
  9274. var _glfwSetCursorPos=env._glfwSetCursorPos;
  9275. var _glfwSetCharCallback=env._glfwSetCharCallback;
  9276. var emscriptenWebGLGetVertexAttrib=env.emscriptenWebGLGetVertexAttrib;
  9277. var _glGetFloatv=env._glGetFloatv;
  9278. var _emscripten_glDeleteProgram=env._emscripten_glDeleteProgram;
  9279. var _emscripten_glDeleteRenderbuffers=env._emscripten_glDeleteRenderbuffers;
  9280. var _emscripten_glDrawElementsInstanced=env._emscripten_glDrawElementsInstanced;
  9281. var _emscripten_glVertexAttrib4f=env._emscripten_glVertexAttrib4f;
  9282. var _glDrawArrays=env._glDrawArrays;
  9283. var _emscripten_glTexSubImage2D=env._emscripten_glTexSubImage2D;
  9284. var _emscripten_memcpy_big=env._emscripten_memcpy_big;
  9285. var _emscripten_glPixelStorei=env._emscripten_glPixelStorei;
  9286. var _glCompileShader=env._glCompileShader;
  9287. var _emscripten_get_pointerlock_status=env._emscripten_get_pointerlock_status;
  9288. var _glfwGetMouseButton=env._glfwGetMouseButton;
  9289. var _emscripten_glColorPointer=env._emscripten_glColorPointer;
  9290. var _emscripten_glGetBufferParameteriv=env._emscripten_glGetBufferParameteriv;
  9291. var _glActiveTexture=env._glActiveTexture;
  9292. var _emscripten_request_pointerlock=env._emscripten_request_pointerlock;
  9293. var _emscripten_set_gamepaddisconnected_callback=env._emscripten_set_gamepaddisconnected_callback;
  9294. var _emscripten_asm_const_iii=env._emscripten_asm_const_iii;
  9295. var _emscripten_glDepthMask=env._emscripten_glDepthMask;
  9296. var _glfwSetWindowIconifyCallback=env._glfwSetWindowIconifyCallback;
  9297. var _emscripten_glDrawBuffers=env._emscripten_glDrawBuffers;
  9298. var _glfwTerminate=env._glfwTerminate;
  9299. var _glFrontFace=env._glFrontFace;
  9300. var _emscripten_glGetObjectParameterivARB=env._emscripten_glGetObjectParameterivARB;
  9301. var _emscripten_exit_pointerlock=env._emscripten_exit_pointerlock;
  9302. var _glfwSwapInterval=env._glfwSwapInterval;
  9303. var _glUniform1i=env._glUniform1i;
  9304. var _glEnableVertexAttribArray=env._glEnableVertexAttribArray;
  9305. var _emscripten_glStencilFunc=env._emscripten_glStencilFunc;
  9306. var _abort=env._abort;
  9307. var _emscripten_glGetUniformiv=env._emscripten_glGetUniformiv;
  9308. var _glDeleteBuffers=env._glDeleteBuffers;
  9309. var _glBufferData=env._glBufferData;
  9310. var _glTexImage2D=env._glTexImage2D;
  9311. var _emscripten_glGetShaderiv=env._emscripten_glGetShaderiv;
  9312. var _glfwSetKeyCallback=env._glfwSetKeyCallback;
  9313. var _emscripten_glGenFramebuffers=env._emscripten_glGenFramebuffers;
  9314. var _glUniform1f=env._glUniform1f;
  9315. var _emscripten_glUniformMatrix4fv=env._emscripten_glUniformMatrix4fv;
  9316. var _emscripten_glLoadIdentity=env._emscripten_glLoadIdentity;
  9317. var _glDeleteShader=env._glDeleteShader;
  9318. var _emscripten_glUniform1f=env._emscripten_glUniform1f;
  9319. var _glGetProgramiv=env._glGetProgramiv;
  9320. var _emscripten_glBindFramebuffer=env._emscripten_glBindFramebuffer;
  9321. var _emscripten_glIsRenderbuffer=env._emscripten_glIsRenderbuffer;
  9322. var _glfwGetTime=env._glfwGetTime;
  9323. var _emscripten_glRenderbufferStorage=env._emscripten_glRenderbufferStorage;
  9324. var _emscripten_set_gamepadconnected_callback=env._emscripten_set_gamepadconnected_callback;
  9325. var _emscripten_glBlendColor=env._emscripten_glBlendColor;
  9326. var _emscripten_glGetVertexAttribiv=env._emscripten_glGetVertexAttribiv;
  9327. var _emscripten_glBindVertexArray=env._emscripten_glBindVertexArray;
  9328. var _emscripten_glDrawArraysInstanced=env._emscripten_glDrawArraysInstanced;
  9329. var _emscripten_set_touchcancel_callback=env._emscripten_set_touchcancel_callback;
  9330. var _emscripten_glCreateShader=env._emscripten_glCreateShader;
  9331. var _emscripten_glStencilMask=env._emscripten_glStencilMask;
  9332. var _emscripten_glDeleteTextures=env._emscripten_glDeleteTextures;
  9333. var _glfwGetKey=env._glfwGetKey;
  9334. var _glfwGetPrimaryMonitor=env._glfwGetPrimaryMonitor;
  9335. var _glLinkProgram=env._glLinkProgram;
  9336. var _emscripten_glVertexAttribDivisor=env._emscripten_glVertexAttribDivisor;
  9337. var _emscripten_set_touchend_callback=env._emscripten_set_touchend_callback;
  9338. var _emscripten_glGetUniformfv=env._emscripten_glGetUniformfv;
  9339. var _emscripten_glGetVertexAttribfv=env._emscripten_glGetVertexAttribfv;
  9340. var _emscripten_glGetRenderbufferParameteriv=env._emscripten_glGetRenderbufferParameteriv;
  9341. var _emscripten_glDeleteFramebuffers=env._emscripten_glDeleteFramebuffers;
  9342. var _glGetShaderiv=env._glGetShaderiv;
  9343. var _emscripten_glVertexAttrib3fv=env._emscripten_glVertexAttrib3fv;
  9344. var _glGetUniformLocation=env._glGetUniformLocation;
  9345. var _emscripten_glGetInfoLogARB=env._emscripten_glGetInfoLogARB;
  9346. var _emscripten_glCompileShader=env._emscripten_glCompileShader;
  9347. var _glClear=env._glClear;
  9348. var _emscripten_glFrustum=env._emscripten_glFrustum;
  9349. var _emscripten_glDisable=env._emscripten_glDisable;
  9350. var _emscripten_glDepthRangef=env._emscripten_glDepthRangef;
  9351. var __exit=env.__exit;
  9352. var _emscripten_glLineWidth=env._emscripten_glLineWidth;
  9353. var _emscripten_glUniform3f=env._emscripten_glUniform3f;
  9354. var _emscripten_glGetShaderInfoLog=env._emscripten_glGetShaderInfoLog;
  9355. var _emscripten_glStencilOp=env._emscripten_glStencilOp;
  9356. var _glBindAttribLocation=env._glBindAttribLocation;
  9357. var _glPixelStorei=env._glPixelStorei;
  9358. var _emscripten_glColorMask=env._emscripten_glColorMask;
  9359. var _emscripten_glLinkProgram=env._emscripten_glLinkProgram;
  9360. var _emscripten_glBlendEquation=env._emscripten_glBlendEquation;
  9361. var _emscripten_glIsTexture=env._emscripten_glIsTexture;
  9362. var _emscripten_glGetProgramiv=env._emscripten_glGetProgramiv;
  9363. var _emscripten_glVertexAttrib1fv=env._emscripten_glVertexAttrib1fv;
  9364. var _emscripten_glUniformMatrix3fv=env._emscripten_glUniformMatrix3fv;
  9365. var _emscripten_glBindTexture=env._emscripten_glBindTexture;
  9366. var _glfwSetMouseButtonCallback=env._glfwSetMouseButtonCallback;
  9367. var _glfwGetCursorPos=env._glfwGetCursorPos;
  9368. var _emscripten_glActiveTexture=env._emscripten_glActiveTexture;
  9369. var _emscripten_glDeleteBuffers=env._emscripten_glDeleteBuffers;
  9370. var ___syscall54=env.___syscall54;
  9371. var ___unlock=env.___unlock;
  9372. var _emscripten_glBufferSubData=env._emscripten_glBufferSubData;
  9373. var _glfwSwapBuffers=env._glfwSwapBuffers;
  9374. var _emscripten_glDepthRange=env._emscripten_glDepthRange;
  9375. var _emscripten_set_main_loop=env._emscripten_set_main_loop;
  9376. var _emscripten_glBindRenderbuffer=env._emscripten_glBindRenderbuffer;
  9377. var _emscripten_glGetProgramInfoLog=env._emscripten_glGetProgramInfoLog;
  9378. var _glfwWindowHint=env._glfwWindowHint;
  9379. var _emscripten_glIsShader=env._emscripten_glIsShader;
  9380. var _emscripten_glUniform4fv=env._emscripten_glUniform4fv;
  9381. var _emscripten_glGenVertexArrays=env._emscripten_glGenVertexArrays;
  9382. var _emscripten_glDrawArrays=env._emscripten_glDrawArrays;
  9383. var _emscripten_glCompressedTexImage2D=env._emscripten_glCompressedTexImage2D;
  9384. var _emscripten_glClearColor=env._emscripten_glClearColor;
  9385. var _emscripten_glCreateProgram=env._emscripten_glCreateProgram;
  9386. var _emscripten_glCopyTexSubImage2D=env._emscripten_glCopyTexSubImage2D;
  9387. var _glTexParameteri=env._glTexParameteri;
  9388. var _emscripten_glBindBuffer=env._emscripten_glBindBuffer;
  9389. var _emscripten_glGetFloatv=env._emscripten_glGetFloatv;
  9390. var _emscripten_glDetachShader=env._emscripten_glDetachShader;
  9391. var _glClearColor=env._glClearColor;
  9392. var _glfwSetCursorPosCallback=env._glfwSetCursorPosCallback;
  9393. var _glfwSetCursorEnterCallback=env._glfwSetCursorEnterCallback;
  9394. var _emscripten_glCopyTexImage2D=env._emscripten_glCopyTexImage2D;
  9395. var _emscripten_glTexImage2D=env._emscripten_glTexImage2D;
  9396. var tempFloat = 0.0;
  9397. // EMSCRIPTEN_START_FUNCS
  9398. function stackAlloc(size) {
  9399. size = size|0;
  9400. var ret = 0;
  9401. ret = STACKTOP;
  9402. STACKTOP = (STACKTOP + size)|0;
  9403. STACKTOP = (STACKTOP + 15)&-16;
  9404. if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(size|0);
  9405. return ret|0;
  9406. }
  9407. function stackSave() {
  9408. return STACKTOP|0;
  9409. }
  9410. function stackRestore(top) {
  9411. top = top|0;
  9412. STACKTOP = top;
  9413. }
  9414. function establishStackSpace(stackBase, stackMax) {
  9415. stackBase = stackBase|0;
  9416. stackMax = stackMax|0;
  9417. STACKTOP = stackBase;
  9418. STACK_MAX = stackMax;
  9419. }
  9420. function setThrew(threw, value) {
  9421. threw = threw|0;
  9422. value = value|0;
  9423. if ((__THREW__|0) == 0) {
  9424. __THREW__ = threw;
  9425. threwValue = value;
  9426. }
  9427. }
  9428. function setTempRet0(value) {
  9429. value = value|0;
  9430. tempRet0 = value;
  9431. }
  9432. function getTempRet0() {
  9433. return tempRet0|0;
  9434. }
  9435. function _main() {
  9436. var $0 = 0, $1 = 0, $2 = 0, $texture$byval_copy = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  9437. sp = STACKTOP;
  9438. STACKTOP = STACKTOP + 576|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(576|0);
  9439. $texture$byval_copy = sp + 312|0;
  9440. $0 = sp + 48|0;
  9441. $1 = sp + 24|0;
  9442. $2 = sp;
  9443. _InitWindow(800,450,4436);
  9444. HEAPF32[4602] = 10.0;
  9445. HEAPF32[(18412)>>2] = 8.0;
  9446. HEAPF32[(18416)>>2] = 10.0;
  9447. HEAPF32[(18420)>>2] = 0.0;
  9448. HEAPF32[(18424)>>2] = 2.2999999523162842;
  9449. HEAPF32[(18428)>>2] = 0.0;
  9450. HEAPF32[(18432)>>2] = 0.0;
  9451. HEAPF32[(18436)>>2] = 1.6000000238418579;
  9452. HEAPF32[(18440)>>2] = 0.0;
  9453. HEAPF32[(18444)>>2] = 45.0;
  9454. _LoadModel($0,4478);
  9455. _memcpy((18448|0),($0|0),264)|0;
  9456. _LoadTexture($1,4498);
  9457. ;HEAP32[18712>>2]=HEAP32[$1>>2]|0;HEAP32[18712+4>>2]=HEAP32[$1+4>>2]|0;HEAP32[18712+8>>2]=HEAP32[$1+8>>2]|0;HEAP32[18712+12>>2]=HEAP32[$1+12>>2]|0;HEAP32[18712+16>>2]=HEAP32[$1+16>>2]|0;
  9458. ;HEAP32[(18636)>>2]=HEAP32[$1>>2]|0;HEAP32[(18636)+4>>2]=HEAP32[$1+4>>2]|0;HEAP32[(18636)+8>>2]=HEAP32[$1+8>>2]|0;HEAP32[(18636)+12>>2]=HEAP32[$1+12>>2]|0;HEAP32[(18636)+16>>2]=HEAP32[$1+16>>2]|0;
  9459. dest=$texture$byval_copy; src=18448; stop=dest+68|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  9460. _CalculateBoundingBox($2,$texture$byval_copy);
  9461. ;HEAP32[18732>>2]=HEAP32[$2>>2]|0;HEAP32[18732+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[18732+8>>2]=HEAP32[$2+8>>2]|0;HEAP32[18732+12>>2]=HEAP32[$2+12>>2]|0;HEAP32[18732+16>>2]=HEAP32[$2+16>>2]|0;HEAP32[18732+20>>2]=HEAP32[$2+20>>2]|0;
  9462. dest=$texture$byval_copy; src=18408; stop=dest+40|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  9463. _SetCameraMode($texture$byval_copy,1);
  9464. _SetTargetFPS(60);
  9465. _emscripten_set_main_loop((1|0),0,1);
  9466. _memcpy(($texture$byval_copy|0),(18448|0),264)|0;
  9467. _UnloadModel($texture$byval_copy);
  9468. ;HEAP32[$texture$byval_copy>>2]=HEAP32[18712>>2]|0;HEAP32[$texture$byval_copy+4>>2]=HEAP32[18712+4>>2]|0;HEAP32[$texture$byval_copy+8>>2]=HEAP32[18712+8>>2]|0;HEAP32[$texture$byval_copy+12>>2]=HEAP32[18712+12>>2]|0;HEAP32[$texture$byval_copy+16>>2]=HEAP32[18712+16>>2]|0;
  9469. _UnloadTexture($texture$byval_copy);
  9470. _CloseWindow();
  9471. STACKTOP = sp;return 0;
  9472. }
  9473. function _UpdateDrawFrame() {
  9474. var $$0 = 0, $$1 = 0, $$2 = 0, $$byval_copy20 = 0, $$byval_copy42 = 0, $$byval_copy52 = 0, $$sink = 0, $$sroa$05$0$copyload = 0, $$sroa$2$0$$sroa_idx = 0, $$sroa$221$0$$sroa_idx = 0, $$sroa$225$0$$sroa_idx = 0, $$sroa$3$0$$sroa_idx = 0, $$sroa$322$0$$sroa_idx = 0, $$sroa$326$0$$sroa_idx = 0, $$sroa$4$0$$sroa_idx = 0, $$sroa$423$0$$sroa_idx = 0, $$sroa$427$0$$sroa_idx = 0, $$sroa$5$0$$sroa_idx9 = 0, $$sroa$5$0$copyload = 0.0, $$sroa$6$0$$sroa_idx = 0;
  9475. var $$sroa$6$0$$sroa_idx14 = 0, $0 = 0, $1 = 0, $10 = 0, $100 = 0, $101 = 0.0, $102 = 0.0, $103 = 0, $104 = 0.0, $105 = 0.0, $106 = 0, $107 = 0.0, $108 = 0.0, $109 = 0, $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0, $114 = 0.0;
  9476. var $115 = 0.0, $116 = 0, $117 = 0.0, $118 = 0.0, $119 = 0, $12 = 0, $120 = 0.0, $121 = 0.0, $122 = 0, $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 0, $128 = 0.0, $129 = 0.0, $13 = 0, $130 = 0.0, $131 = 0.0, $132 = 0.0;
  9477. var $133 = 0.0, $134 = 0, $135 = 0, $136 = 0, $137 = 0, $138 = 0, $139 = 0, $14 = 0, $140 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0;
  9478. var $25 = 0, $26 = 0, $27 = 0, $28 = 0.0, $29 = 0.0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0.0, $35 = 0.0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0.0, $42 = 0;
  9479. var $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0;
  9480. var $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0.0, $67 = 0, $68 = 0.0, $69 = 0.0, $7 = 0, $70 = 0, $71 = 0.0, $72 = 0, $73 = 0.0, $74 = 0.0, $75 = 0, $76 = 0, $77 = 0.0, $78 = 0, $79 = 0.0;
  9481. var $8 = 0, $80 = 0.0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0, $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0.0, $95 = 0.0, $96 = 0, $97 = 0;
  9482. var $98 = 0, $99 = 0, $or$cond = 0, $ray$byval_copy45 = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, $vararg_buffer14 = 0, $vararg_buffer4 = 0, $vararg_buffer9 = 0, $vararg_ptr12 = 0, $vararg_ptr13 = 0, $vararg_ptr17 = 0, $vararg_ptr18 = 0, $vararg_ptr7 = 0, $vararg_ptr8 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  9483. sp = STACKTOP;
  9484. STACKTOP = STACKTOP + 704|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(704|0);
  9485. $$byval_copy52 = sp + 608|0;
  9486. $ray$byval_copy45 = sp + 584|0;
  9487. $$byval_copy42 = sp + 320|0;
  9488. $$byval_copy20 = sp + 88|0;
  9489. $vararg_buffer14 = sp + 64|0;
  9490. $vararg_buffer9 = sp + 40|0;
  9491. $vararg_buffer4 = sp + 16|0;
  9492. $vararg_buffer1 = sp + 8|0;
  9493. $vararg_buffer = sp;
  9494. $0 = sp + 200|0;
  9495. $1 = sp + 192|0;
  9496. $2 = sp + 312|0;
  9497. $3 = sp + 288|0;
  9498. $4 = sp + 160|0;
  9499. $5 = sp + 128|0;
  9500. $6 = sp + 272|0;
  9501. $7 = sp + 240|0;
  9502. $8 = sp + 700|0;
  9503. $9 = sp + 232|0;
  9504. $10 = sp + 696|0;
  9505. $11 = sp + 692|0;
  9506. $12 = sp + 688|0;
  9507. $13 = sp + 684|0;
  9508. $14 = sp + 680|0;
  9509. $15 = sp + 112|0;
  9510. $16 = sp + 676|0;
  9511. $17 = sp + 672|0;
  9512. $18 = sp + 668|0;
  9513. $19 = sp + 664|0;
  9514. $20 = sp + 660|0;
  9515. $21 = sp + 656|0;
  9516. $22 = sp + 652|0;
  9517. $23 = sp + 648|0;
  9518. _UpdateCamera(18408);
  9519. $24 = ((($0)) + 4|0);
  9520. HEAPF32[$24>>2] = 3.4028234663852886E+38;
  9521. HEAP32[$0>>2] = 0;
  9522. HEAP32[$1>>2] = -1;
  9523. _GetMousePosition($2);
  9524. ;HEAP32[$ray$byval_copy45>>2]=HEAP32[$2>>2]|0;HEAP32[$ray$byval_copy45+4>>2]=HEAP32[$2+4>>2]|0;
  9525. dest=$$byval_copy52; src=18408; stop=dest+40|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  9526. _GetMouseRay($3,$ray$byval_copy45,$$byval_copy52);
  9527. ;HEAP32[18756>>2]=HEAP32[$3>>2]|0;HEAP32[18756+4>>2]=HEAP32[$3+4>>2]|0;HEAP32[18756+8>>2]=HEAP32[$3+8>>2]|0;HEAP32[18756+12>>2]=HEAP32[$3+12>>2]|0;HEAP32[18756+16>>2]=HEAP32[$3+16>>2]|0;HEAP32[18756+20>>2]=HEAP32[$3+20>>2]|0;
  9528. ;HEAP32[$$byval_copy52>>2]=HEAP32[$3>>2]|0;HEAP32[$$byval_copy52+4>>2]=HEAP32[$3+4>>2]|0;HEAP32[$$byval_copy52+8>>2]=HEAP32[$3+8>>2]|0;HEAP32[$$byval_copy52+12>>2]=HEAP32[$3+12>>2]|0;HEAP32[$$byval_copy52+16>>2]=HEAP32[$3+16>>2]|0;HEAP32[$$byval_copy52+20>>2]=HEAP32[$3+20>>2]|0;
  9529. _GetCollisionRayGround($4,$$byval_copy52,0.0);
  9530. $25 = HEAP32[$4>>2]|0;
  9531. $26 = ($25|0)==(0);
  9532. if ($26) {
  9533. $$0 = 4518;
  9534. } else {
  9535. $27 = ((($4)) + 4|0);
  9536. $28 = +HEAPF32[$27>>2];
  9537. $29 = +HEAPF32[$24>>2];
  9538. $30 = $28 < $29;
  9539. if ($30) {
  9540. ;HEAP32[$0>>2]=HEAP32[$4>>2]|0;HEAP32[$0+4>>2]=HEAP32[$4+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[$4+8>>2]|0;HEAP32[$0+12>>2]=HEAP32[$4+12>>2]|0;HEAP32[$0+16>>2]=HEAP32[$4+16>>2]|0;HEAP32[$0+20>>2]=HEAP32[$4+20>>2]|0;HEAP32[$0+24>>2]=HEAP32[$4+24>>2]|0;HEAP32[$0+28>>2]=HEAP32[$4+28>>2]|0;
  9541. HEAP8[$1>>0] = 0;
  9542. $$sroa$225$0$$sroa_idx = ((($1)) + 1|0);
  9543. HEAP8[$$sroa$225$0$$sroa_idx>>0] = -28;
  9544. $$sroa$326$0$$sroa_idx = ((($1)) + 2|0);
  9545. HEAP8[$$sroa$326$0$$sroa_idx>>0] = 48;
  9546. $$sroa$427$0$$sroa_idx = ((($1)) + 3|0);
  9547. HEAP8[$$sroa$427$0$$sroa_idx>>0] = -1;
  9548. $$0 = 4523;
  9549. } else {
  9550. $$0 = 4518;
  9551. }
  9552. }
  9553. ;HEAP32[$$byval_copy20>>2]=HEAP32[18756>>2]|0;HEAP32[$$byval_copy20+4>>2]=HEAP32[18756+4>>2]|0;HEAP32[$$byval_copy20+8>>2]=HEAP32[18756+8>>2]|0;HEAP32[$$byval_copy20+12>>2]=HEAP32[18756+12>>2]|0;HEAP32[$$byval_copy20+16>>2]=HEAP32[18756+16>>2]|0;HEAP32[$$byval_copy20+20>>2]=HEAP32[18756+20>>2]|0;
  9554. ;HEAP32[$$byval_copy42>>2]=HEAP32[8>>2]|0;HEAP32[$$byval_copy42+4>>2]=HEAP32[8+4>>2]|0;HEAP32[$$byval_copy42+8>>2]=HEAP32[8+8>>2]|0;
  9555. ;HEAP32[$ray$byval_copy45>>2]=HEAP32[20>>2]|0;HEAP32[$ray$byval_copy45+4>>2]=HEAP32[20+4>>2]|0;HEAP32[$ray$byval_copy45+8>>2]=HEAP32[20+8>>2]|0;
  9556. ;HEAP32[$$byval_copy52>>2]=HEAP32[32>>2]|0;HEAP32[$$byval_copy52+4>>2]=HEAP32[32+4>>2]|0;HEAP32[$$byval_copy52+8>>2]=HEAP32[32+8>>2]|0;
  9557. _GetCollisionRayTriangle($5,$$byval_copy20,$$byval_copy42,$ray$byval_copy45,$$byval_copy52);
  9558. $31 = HEAP32[$5>>2]|0;
  9559. $32 = ($31|0)==(0);
  9560. if ($32) {
  9561. $$1 = $$0;$$sink = 0;
  9562. } else {
  9563. $33 = ((($5)) + 4|0);
  9564. $34 = +HEAPF32[$33>>2];
  9565. $35 = +HEAPF32[$24>>2];
  9566. $36 = $34 < $35;
  9567. if ($36) {
  9568. ;HEAP32[$0>>2]=HEAP32[$5>>2]|0;HEAP32[$0+4>>2]=HEAP32[$5+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[$5+8>>2]|0;HEAP32[$0+12>>2]=HEAP32[$5+12>>2]|0;HEAP32[$0+16>>2]=HEAP32[$5+16>>2]|0;HEAP32[$0+20>>2]=HEAP32[$5+20>>2]|0;HEAP32[$0+24>>2]=HEAP32[$5+24>>2]|0;HEAP32[$0+28>>2]=HEAP32[$5+28>>2]|0;
  9569. HEAP8[$1>>0] = -56;
  9570. $$sroa$221$0$$sroa_idx = ((($1)) + 1|0);
  9571. HEAP8[$$sroa$221$0$$sroa_idx>>0] = 122;
  9572. $$sroa$322$0$$sroa_idx = ((($1)) + 2|0);
  9573. HEAP8[$$sroa$322$0$$sroa_idx>>0] = -1;
  9574. $$sroa$423$0$$sroa_idx = ((($1)) + 3|0);
  9575. HEAP8[$$sroa$423$0$$sroa_idx>>0] = -1;
  9576. $37 = ((($0)) + 8|0);
  9577. ;HEAP32[$$byval_copy20>>2]=HEAP32[$37>>2]|0;HEAP32[$$byval_copy20+4>>2]=HEAP32[$37+4>>2]|0;HEAP32[$$byval_copy20+8>>2]=HEAP32[$37+8>>2]|0;
  9578. ;HEAP32[$$byval_copy42>>2]=HEAP32[8>>2]|0;HEAP32[$$byval_copy42+4>>2]=HEAP32[8+4>>2]|0;HEAP32[$$byval_copy42+8>>2]=HEAP32[8+8>>2]|0;
  9579. ;HEAP32[$ray$byval_copy45>>2]=HEAP32[20>>2]|0;HEAP32[$ray$byval_copy45+4>>2]=HEAP32[20+4>>2]|0;HEAP32[$ray$byval_copy45+8>>2]=HEAP32[20+8>>2]|0;
  9580. ;HEAP32[$$byval_copy52>>2]=HEAP32[32>>2]|0;HEAP32[$$byval_copy52+4>>2]=HEAP32[32+4>>2]|0;HEAP32[$$byval_copy52+8>>2]=HEAP32[32+8>>2]|0;
  9581. _VectorBarycenter($6,$$byval_copy20,$$byval_copy42,$ray$byval_copy45,$$byval_copy52);
  9582. ;HEAP32[18396>>2]=HEAP32[$6>>2]|0;HEAP32[18396+4>>2]=HEAP32[$6+4>>2]|0;HEAP32[18396+8>>2]=HEAP32[$6+8>>2]|0;
  9583. $$1 = 4530;$$sink = 1;
  9584. } else {
  9585. $$1 = $$0;$$sink = 0;
  9586. }
  9587. }
  9588. HEAP32[4598] = $$sink;
  9589. ;HEAP32[$ray$byval_copy45>>2]=HEAP32[18756>>2]|0;HEAP32[$ray$byval_copy45+4>>2]=HEAP32[18756+4>>2]|0;HEAP32[$ray$byval_copy45+8>>2]=HEAP32[18756+8>>2]|0;HEAP32[$ray$byval_copy45+12>>2]=HEAP32[18756+12>>2]|0;HEAP32[$ray$byval_copy45+16>>2]=HEAP32[18756+16>>2]|0;HEAP32[$ray$byval_copy45+20>>2]=HEAP32[18756+20>>2]|0;
  9590. ;HEAP32[$$byval_copy52>>2]=HEAP32[18732>>2]|0;HEAP32[$$byval_copy52+4>>2]=HEAP32[18732+4>>2]|0;HEAP32[$$byval_copy52+8>>2]=HEAP32[18732+8>>2]|0;HEAP32[$$byval_copy52+12>>2]=HEAP32[18732+12>>2]|0;HEAP32[$$byval_copy52+16>>2]=HEAP32[18732+16>>2]|0;HEAP32[$$byval_copy52+20>>2]=HEAP32[18732+20>>2]|0;
  9591. $38 = (_CheckCollisionRayBox($ray$byval_copy45,$$byval_copy52)|0);
  9592. $39 = ($38|0)==(0);
  9593. if ($39) {
  9594. $$2 = $$1;
  9595. } else {
  9596. HEAP32[4597] = 1;
  9597. ;HEAP32[$$byval_copy52>>2]=HEAP32[18756>>2]|0;HEAP32[$$byval_copy52+4>>2]=HEAP32[18756+4>>2]|0;HEAP32[$$byval_copy52+8>>2]=HEAP32[18756+8>>2]|0;HEAP32[$$byval_copy52+12>>2]=HEAP32[18756+12>>2]|0;HEAP32[$$byval_copy52+16>>2]=HEAP32[18756+16>>2]|0;HEAP32[$$byval_copy52+20>>2]=HEAP32[18756+20>>2]|0;
  9598. _GetCollisionRayMesh($7,$$byval_copy52,18448);
  9599. $$sroa$05$0$copyload = HEAP32[$7>>2]|0;
  9600. $$sroa$5$0$$sroa_idx9 = ((($7)) + 4|0);
  9601. $$sroa$5$0$copyload = +HEAPF32[$$sroa$5$0$$sroa_idx9>>2];
  9602. $$sroa$6$0$$sroa_idx = ((($7)) + 8|0);
  9603. ;HEAP32[$$byval_copy20>>2]=HEAP32[$$sroa$6$0$$sroa_idx>>2]|0;HEAP32[$$byval_copy20+4>>2]=HEAP32[$$sroa$6$0$$sroa_idx+4>>2]|0;HEAP32[$$byval_copy20+8>>2]=HEAP32[$$sroa$6$0$$sroa_idx+8>>2]|0;HEAP32[$$byval_copy20+12>>2]=HEAP32[$$sroa$6$0$$sroa_idx+12>>2]|0;HEAP32[$$byval_copy20+16>>2]=HEAP32[$$sroa$6$0$$sroa_idx+16>>2]|0;HEAP32[$$byval_copy20+20>>2]=HEAP32[$$sroa$6$0$$sroa_idx+20>>2]|0;
  9604. $40 = ($$sroa$05$0$copyload|0)!=(0);
  9605. $41 = +HEAPF32[$24>>2];
  9606. $42 = $$sroa$5$0$copyload < $41;
  9607. $or$cond = $40 & $42;
  9608. if ($or$cond) {
  9609. HEAP32[$0>>2] = $$sroa$05$0$copyload;
  9610. HEAPF32[$24>>2] = $$sroa$5$0$copyload;
  9611. $$sroa$6$0$$sroa_idx14 = ((($0)) + 8|0);
  9612. ;HEAP32[$$sroa$6$0$$sroa_idx14>>2]=HEAP32[$$byval_copy20>>2]|0;HEAP32[$$sroa$6$0$$sroa_idx14+4>>2]=HEAP32[$$byval_copy20+4>>2]|0;HEAP32[$$sroa$6$0$$sroa_idx14+8>>2]=HEAP32[$$byval_copy20+8>>2]|0;HEAP32[$$sroa$6$0$$sroa_idx14+12>>2]=HEAP32[$$byval_copy20+12>>2]|0;HEAP32[$$sroa$6$0$$sroa_idx14+16>>2]=HEAP32[$$byval_copy20+16>>2]|0;HEAP32[$$sroa$6$0$$sroa_idx14+20>>2]=HEAP32[$$byval_copy20+20>>2]|0;
  9613. HEAP8[$1>>0] = -1;
  9614. $$sroa$2$0$$sroa_idx = ((($1)) + 1|0);
  9615. HEAP8[$$sroa$2$0$$sroa_idx>>0] = -95;
  9616. $$sroa$3$0$$sroa_idx = ((($1)) + 2|0);
  9617. HEAP8[$$sroa$3$0$$sroa_idx>>0] = 0;
  9618. $$sroa$4$0$$sroa_idx = ((($1)) + 3|0);
  9619. HEAP8[$$sroa$4$0$$sroa_idx>>0] = -1;
  9620. $$2 = 4539;
  9621. } else {
  9622. $$2 = $$1;
  9623. }
  9624. }
  9625. HEAP32[4597] = 0;
  9626. _BeginDrawing();
  9627. HEAP8[$8>>0] = -11;
  9628. $43 = ((($8)) + 1|0);
  9629. HEAP8[$43>>0] = -11;
  9630. $44 = ((($8)) + 2|0);
  9631. HEAP8[$44>>0] = -11;
  9632. $45 = ((($8)) + 3|0);
  9633. HEAP8[$45>>0] = -1;
  9634. ;HEAP8[$$byval_copy52>>0]=HEAP8[$8>>0]|0;HEAP8[$$byval_copy52+1>>0]=HEAP8[$8+1>>0]|0;HEAP8[$$byval_copy52+2>>0]=HEAP8[$8+2>>0]|0;HEAP8[$$byval_copy52+3>>0]=HEAP8[$8+3>>0]|0;
  9635. _ClearBackground($$byval_copy52);
  9636. dest=$$byval_copy52; src=18408; stop=dest+40|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  9637. _Begin3dMode($$byval_copy52);
  9638. HEAP32[$9>>2] = -1;
  9639. _memcpy(($$byval_copy42|0),(18448|0),264)|0;
  9640. ;HEAP32[$ray$byval_copy45>>2]=HEAP32[18376>>2]|0;HEAP32[$ray$byval_copy45+4>>2]=HEAP32[18376+4>>2]|0;HEAP32[$ray$byval_copy45+8>>2]=HEAP32[18376+8>>2]|0;
  9641. ;HEAP8[$$byval_copy52>>0]=HEAP8[$9>>0]|0;HEAP8[$$byval_copy52+1>>0]=HEAP8[$9+1>>0]|0;HEAP8[$$byval_copy52+2>>0]=HEAP8[$9+2>>0]|0;HEAP8[$$byval_copy52+3>>0]=HEAP8[$9+3>>0]|0;
  9642. _DrawModel($$byval_copy42,$ray$byval_copy45,1.0,$$byval_copy52);
  9643. HEAP8[$10>>0] = -56;
  9644. $46 = ((($10)) + 1|0);
  9645. HEAP8[$46>>0] = 122;
  9646. $47 = ((($10)) + 2|0);
  9647. HEAP8[$47>>0] = -1;
  9648. $48 = ((($10)) + 3|0);
  9649. HEAP8[$48>>0] = -1;
  9650. ;HEAP32[$$byval_copy42>>2]=HEAP32[8>>2]|0;HEAP32[$$byval_copy42+4>>2]=HEAP32[8+4>>2]|0;HEAP32[$$byval_copy42+8>>2]=HEAP32[8+8>>2]|0;
  9651. ;HEAP32[$ray$byval_copy45>>2]=HEAP32[20>>2]|0;HEAP32[$ray$byval_copy45+4>>2]=HEAP32[20+4>>2]|0;HEAP32[$ray$byval_copy45+8>>2]=HEAP32[20+8>>2]|0;
  9652. ;HEAP8[$$byval_copy52>>0]=HEAP8[$10>>0]|0;HEAP8[$$byval_copy52+1>>0]=HEAP8[$10+1>>0]|0;HEAP8[$$byval_copy52+2>>0]=HEAP8[$10+2>>0]|0;HEAP8[$$byval_copy52+3>>0]=HEAP8[$10+3>>0]|0;
  9653. _DrawLine3D($$byval_copy42,$ray$byval_copy45,$$byval_copy52);
  9654. HEAP8[$11>>0] = -56;
  9655. $49 = ((($11)) + 1|0);
  9656. HEAP8[$49>>0] = 122;
  9657. $50 = ((($11)) + 2|0);
  9658. HEAP8[$50>>0] = -1;
  9659. $51 = ((($11)) + 3|0);
  9660. HEAP8[$51>>0] = -1;
  9661. ;HEAP32[$$byval_copy42>>2]=HEAP32[20>>2]|0;HEAP32[$$byval_copy42+4>>2]=HEAP32[20+4>>2]|0;HEAP32[$$byval_copy42+8>>2]=HEAP32[20+8>>2]|0;
  9662. ;HEAP32[$ray$byval_copy45>>2]=HEAP32[32>>2]|0;HEAP32[$ray$byval_copy45+4>>2]=HEAP32[32+4>>2]|0;HEAP32[$ray$byval_copy45+8>>2]=HEAP32[32+8>>2]|0;
  9663. ;HEAP8[$$byval_copy52>>0]=HEAP8[$11>>0]|0;HEAP8[$$byval_copy52+1>>0]=HEAP8[$11+1>>0]|0;HEAP8[$$byval_copy52+2>>0]=HEAP8[$11+2>>0]|0;HEAP8[$$byval_copy52+3>>0]=HEAP8[$11+3>>0]|0;
  9664. _DrawLine3D($$byval_copy42,$ray$byval_copy45,$$byval_copy52);
  9665. HEAP8[$12>>0] = -56;
  9666. $52 = ((($12)) + 1|0);
  9667. HEAP8[$52>>0] = 122;
  9668. $53 = ((($12)) + 2|0);
  9669. HEAP8[$53>>0] = -1;
  9670. $54 = ((($12)) + 3|0);
  9671. HEAP8[$54>>0] = -1;
  9672. ;HEAP32[$$byval_copy42>>2]=HEAP32[32>>2]|0;HEAP32[$$byval_copy42+4>>2]=HEAP32[32+4>>2]|0;HEAP32[$$byval_copy42+8>>2]=HEAP32[32+8>>2]|0;
  9673. ;HEAP32[$ray$byval_copy45>>2]=HEAP32[8>>2]|0;HEAP32[$ray$byval_copy45+4>>2]=HEAP32[8+4>>2]|0;HEAP32[$ray$byval_copy45+8>>2]=HEAP32[8+8>>2]|0;
  9674. ;HEAP8[$$byval_copy52>>0]=HEAP8[$12>>0]|0;HEAP8[$$byval_copy52+1>>0]=HEAP8[$12+1>>0]|0;HEAP8[$$byval_copy52+2>>0]=HEAP8[$12+2>>0]|0;HEAP8[$$byval_copy52+3>>0]=HEAP8[$12+3>>0]|0;
  9675. _DrawLine3D($$byval_copy42,$ray$byval_copy45,$$byval_copy52);
  9676. $55 = HEAP32[4597]|0;
  9677. $56 = ($55|0)==(0);
  9678. if (!($56)) {
  9679. HEAP8[$13>>0] = 0;
  9680. $57 = ((($13)) + 1|0);
  9681. HEAP8[$57>>0] = -98;
  9682. $58 = ((($13)) + 2|0);
  9683. HEAP8[$58>>0] = 47;
  9684. $59 = ((($13)) + 3|0);
  9685. HEAP8[$59>>0] = -1;
  9686. ;HEAP32[$ray$byval_copy45>>2]=HEAP32[18732>>2]|0;HEAP32[$ray$byval_copy45+4>>2]=HEAP32[18732+4>>2]|0;HEAP32[$ray$byval_copy45+8>>2]=HEAP32[18732+8>>2]|0;HEAP32[$ray$byval_copy45+12>>2]=HEAP32[18732+12>>2]|0;HEAP32[$ray$byval_copy45+16>>2]=HEAP32[18732+16>>2]|0;HEAP32[$ray$byval_copy45+20>>2]=HEAP32[18732+20>>2]|0;
  9687. ;HEAP8[$$byval_copy52>>0]=HEAP8[$13>>0]|0;HEAP8[$$byval_copy52+1>>0]=HEAP8[$13+1>>0]|0;HEAP8[$$byval_copy52+2>>0]=HEAP8[$13+2>>0]|0;HEAP8[$$byval_copy52+3>>0]=HEAP8[$13+3>>0]|0;
  9688. _DrawBoundingBox($ray$byval_copy45,$$byval_copy52);
  9689. }
  9690. $60 = HEAP32[$0>>2]|0;
  9691. $61 = ($60|0)==(0);
  9692. if (!($61)) {
  9693. $62 = ((($0)) + 8|0);
  9694. ;HEAP32[$ray$byval_copy45>>2]=HEAP32[$62>>2]|0;HEAP32[$ray$byval_copy45+4>>2]=HEAP32[$62+4>>2]|0;HEAP32[$ray$byval_copy45+8>>2]=HEAP32[$62+8>>2]|0;
  9695. ;HEAP8[$$byval_copy52>>0]=HEAP8[$1>>0]|0;HEAP8[$$byval_copy52+1>>0]=HEAP8[$1+1>>0]|0;HEAP8[$$byval_copy52+2>>0]=HEAP8[$1+2>>0]|0;HEAP8[$$byval_copy52+3>>0]=HEAP8[$1+3>>0]|0;
  9696. _DrawCube($ray$byval_copy45,0.5,0.5,0.5,$$byval_copy52);
  9697. HEAP8[$14>>0] = -3;
  9698. $63 = ((($14)) + 1|0);
  9699. HEAP8[$63>>0] = -7;
  9700. $64 = ((($14)) + 2|0);
  9701. HEAP8[$64>>0] = 0;
  9702. $65 = ((($14)) + 3|0);
  9703. HEAP8[$65>>0] = -1;
  9704. ;HEAP32[$ray$byval_copy45>>2]=HEAP32[$62>>2]|0;HEAP32[$ray$byval_copy45+4>>2]=HEAP32[$62+4>>2]|0;HEAP32[$ray$byval_copy45+8>>2]=HEAP32[$62+8>>2]|0;
  9705. ;HEAP8[$$byval_copy52>>0]=HEAP8[$14>>0]|0;HEAP8[$$byval_copy52+1>>0]=HEAP8[$14+1>>0]|0;HEAP8[$$byval_copy52+2>>0]=HEAP8[$14+2>>0]|0;HEAP8[$$byval_copy52+3>>0]=HEAP8[$14+3>>0]|0;
  9706. _DrawCubeWires($ray$byval_copy45,0.5,0.5,0.5,$$byval_copy52);
  9707. $66 = +HEAPF32[$62>>2];
  9708. $67 = ((($0)) + 20|0);
  9709. $68 = +HEAPF32[$67>>2];
  9710. $69 = $66 + $68;
  9711. HEAPF32[$15>>2] = $69;
  9712. $70 = ((($0)) + 12|0);
  9713. $71 = +HEAPF32[$70>>2];
  9714. $72 = ((($0)) + 24|0);
  9715. $73 = +HEAPF32[$72>>2];
  9716. $74 = $71 + $73;
  9717. $75 = ((($15)) + 4|0);
  9718. HEAPF32[$75>>2] = $74;
  9719. $76 = ((($0)) + 16|0);
  9720. $77 = +HEAPF32[$76>>2];
  9721. $78 = ((($0)) + 28|0);
  9722. $79 = +HEAPF32[$78>>2];
  9723. $80 = $77 + $79;
  9724. $81 = ((($15)) + 8|0);
  9725. HEAPF32[$81>>2] = $80;
  9726. HEAP8[$16>>0] = -3;
  9727. $82 = ((($16)) + 1|0);
  9728. HEAP8[$82>>0] = -7;
  9729. $83 = ((($16)) + 2|0);
  9730. HEAP8[$83>>0] = 0;
  9731. $84 = ((($16)) + 3|0);
  9732. HEAP8[$84>>0] = -1;
  9733. ;HEAP32[$$byval_copy42>>2]=HEAP32[$62>>2]|0;HEAP32[$$byval_copy42+4>>2]=HEAP32[$62+4>>2]|0;HEAP32[$$byval_copy42+8>>2]=HEAP32[$62+8>>2]|0;
  9734. ;HEAP32[$ray$byval_copy45>>2]=HEAP32[$15>>2]|0;HEAP32[$ray$byval_copy45+4>>2]=HEAP32[$15+4>>2]|0;HEAP32[$ray$byval_copy45+8>>2]=HEAP32[$15+8>>2]|0;
  9735. ;HEAP8[$$byval_copy52>>0]=HEAP8[$16>>0]|0;HEAP8[$$byval_copy52+1>>0]=HEAP8[$16+1>>0]|0;HEAP8[$$byval_copy52+2>>0]=HEAP8[$16+2>>0]|0;HEAP8[$$byval_copy52+3>>0]=HEAP8[$16+3>>0]|0;
  9736. _DrawLine3D($$byval_copy42,$ray$byval_copy45,$$byval_copy52);
  9737. }
  9738. HEAP8[$17>>0] = -66;
  9739. $85 = ((($17)) + 1|0);
  9740. HEAP8[$85>>0] = 33;
  9741. $86 = ((($17)) + 2|0);
  9742. HEAP8[$86>>0] = 55;
  9743. $87 = ((($17)) + 3|0);
  9744. HEAP8[$87>>0] = -1;
  9745. ;HEAP32[$ray$byval_copy45>>2]=HEAP32[18756>>2]|0;HEAP32[$ray$byval_copy45+4>>2]=HEAP32[18756+4>>2]|0;HEAP32[$ray$byval_copy45+8>>2]=HEAP32[18756+8>>2]|0;HEAP32[$ray$byval_copy45+12>>2]=HEAP32[18756+12>>2]|0;HEAP32[$ray$byval_copy45+16>>2]=HEAP32[18756+16>>2]|0;HEAP32[$ray$byval_copy45+20>>2]=HEAP32[18756+20>>2]|0;
  9746. ;HEAP8[$$byval_copy52>>0]=HEAP8[$17>>0]|0;HEAP8[$$byval_copy52+1>>0]=HEAP8[$17+1>>0]|0;HEAP8[$$byval_copy52+2>>0]=HEAP8[$17+2>>0]|0;HEAP8[$$byval_copy52+3>>0]=HEAP8[$17+3>>0]|0;
  9747. _DrawRay($ray$byval_copy45,$$byval_copy52);
  9748. _DrawGrid(100,1.0);
  9749. _End3dMode();
  9750. HEAP32[$vararg_buffer>>2] = $$2;
  9751. $88 = (_FormatText(4544,$vararg_buffer)|0);
  9752. HEAP8[$18>>0] = 0;
  9753. $89 = ((($18)) + 1|0);
  9754. HEAP8[$89>>0] = 0;
  9755. $90 = ((($18)) + 2|0);
  9756. HEAP8[$90>>0] = 0;
  9757. $91 = ((($18)) + 3|0);
  9758. HEAP8[$91>>0] = -1;
  9759. ;HEAP8[$$byval_copy52>>0]=HEAP8[$18>>0]|0;HEAP8[$$byval_copy52+1>>0]=HEAP8[$18+1>>0]|0;HEAP8[$$byval_copy52+2>>0]=HEAP8[$18+2>>0]|0;HEAP8[$$byval_copy52+3>>0]=HEAP8[$18+3>>0]|0;
  9760. _DrawText($88,10,50,10,$$byval_copy52);
  9761. $92 = HEAP32[$0>>2]|0;
  9762. $93 = ($92|0)==(0);
  9763. if ($93) {
  9764. HEAP8[$23>>0] = -126;
  9765. $138 = ((($23)) + 1|0);
  9766. HEAP8[$138>>0] = -126;
  9767. $139 = ((($23)) + 2|0);
  9768. HEAP8[$139>>0] = -126;
  9769. $140 = ((($23)) + 3|0);
  9770. HEAP8[$140>>0] = -1;
  9771. ;HEAP8[$$byval_copy52>>0]=HEAP8[$23>>0]|0;HEAP8[$$byval_copy52+1>>0]=HEAP8[$23+1>>0]|0;HEAP8[$$byval_copy52+2>>0]=HEAP8[$23+2>>0]|0;HEAP8[$$byval_copy52+3>>0]=HEAP8[$23+3>>0]|0;
  9772. _DrawText(4660,10,430,10,$$byval_copy52);
  9773. _DrawFPS(10,10);
  9774. _EndDrawing();
  9775. STACKTOP = sp;return;
  9776. }
  9777. $94 = +HEAPF32[$24>>2];
  9778. $95 = $94;
  9779. HEAPF64[$vararg_buffer1>>3] = $95;
  9780. $96 = (_FormatText(4559,$vararg_buffer1)|0);
  9781. HEAP8[$19>>0] = 0;
  9782. $97 = ((($19)) + 1|0);
  9783. HEAP8[$97>>0] = 0;
  9784. $98 = ((($19)) + 2|0);
  9785. HEAP8[$98>>0] = 0;
  9786. $99 = ((($19)) + 3|0);
  9787. HEAP8[$99>>0] = -1;
  9788. ;HEAP8[$$byval_copy52>>0]=HEAP8[$19>>0]|0;HEAP8[$$byval_copy52+1>>0]=HEAP8[$19+1>>0]|0;HEAP8[$$byval_copy52+2>>0]=HEAP8[$19+2>>0]|0;HEAP8[$$byval_copy52+3>>0]=HEAP8[$19+3>>0]|0;
  9789. _DrawText($96,10,70,10,$$byval_copy52);
  9790. $100 = ((($0)) + 8|0);
  9791. $101 = +HEAPF32[$100>>2];
  9792. $102 = $101;
  9793. $103 = ((($0)) + 12|0);
  9794. $104 = +HEAPF32[$103>>2];
  9795. $105 = $104;
  9796. $106 = ((($0)) + 16|0);
  9797. $107 = +HEAPF32[$106>>2];
  9798. $108 = $107;
  9799. HEAPF64[$vararg_buffer4>>3] = $102;
  9800. $vararg_ptr7 = ((($vararg_buffer4)) + 8|0);
  9801. HEAPF64[$vararg_ptr7>>3] = $105;
  9802. $vararg_ptr8 = ((($vararg_buffer4)) + 16|0);
  9803. HEAPF64[$vararg_ptr8>>3] = $108;
  9804. $109 = (_FormatText(4575,$vararg_buffer4)|0);
  9805. HEAP8[$20>>0] = 0;
  9806. $110 = ((($20)) + 1|0);
  9807. HEAP8[$110>>0] = 0;
  9808. $111 = ((($20)) + 2|0);
  9809. HEAP8[$111>>0] = 0;
  9810. $112 = ((($20)) + 3|0);
  9811. HEAP8[$112>>0] = -1;
  9812. ;HEAP8[$$byval_copy52>>0]=HEAP8[$20>>0]|0;HEAP8[$$byval_copy52+1>>0]=HEAP8[$20+1>>0]|0;HEAP8[$$byval_copy52+2>>0]=HEAP8[$20+2>>0]|0;HEAP8[$$byval_copy52+3>>0]=HEAP8[$20+3>>0]|0;
  9813. _DrawText($109,10,85,10,$$byval_copy52);
  9814. $113 = ((($0)) + 20|0);
  9815. $114 = +HEAPF32[$113>>2];
  9816. $115 = $114;
  9817. $116 = ((($0)) + 24|0);
  9818. $117 = +HEAPF32[$116>>2];
  9819. $118 = $117;
  9820. $119 = ((($0)) + 28|0);
  9821. $120 = +HEAPF32[$119>>2];
  9822. $121 = $120;
  9823. HEAPF64[$vararg_buffer9>>3] = $115;
  9824. $vararg_ptr12 = ((($vararg_buffer9)) + 8|0);
  9825. HEAPF64[$vararg_ptr12>>3] = $118;
  9826. $vararg_ptr13 = ((($vararg_buffer9)) + 16|0);
  9827. HEAPF64[$vararg_ptr13>>3] = $121;
  9828. $122 = (_FormatText(4602,$vararg_buffer9)|0);
  9829. HEAP8[$21>>0] = 0;
  9830. $123 = ((($21)) + 1|0);
  9831. HEAP8[$123>>0] = 0;
  9832. $124 = ((($21)) + 2|0);
  9833. HEAP8[$124>>0] = 0;
  9834. $125 = ((($21)) + 3|0);
  9835. HEAP8[$125>>0] = -1;
  9836. ;HEAP8[$$byval_copy52>>0]=HEAP8[$21>>0]|0;HEAP8[$$byval_copy52+1>>0]=HEAP8[$21+1>>0]|0;HEAP8[$$byval_copy52+2>>0]=HEAP8[$21+2>>0]|0;HEAP8[$$byval_copy52+3>>0]=HEAP8[$21+3>>0]|0;
  9837. _DrawText($122,10,100,10,$$byval_copy52);
  9838. $126 = HEAP32[4598]|0;
  9839. $127 = ($126|0)==(0);
  9840. if ($127) {
  9841. HEAP8[$23>>0] = -126;
  9842. $138 = ((($23)) + 1|0);
  9843. HEAP8[$138>>0] = -126;
  9844. $139 = ((($23)) + 2|0);
  9845. HEAP8[$139>>0] = -126;
  9846. $140 = ((($23)) + 3|0);
  9847. HEAP8[$140>>0] = -1;
  9848. ;HEAP8[$$byval_copy52>>0]=HEAP8[$23>>0]|0;HEAP8[$$byval_copy52+1>>0]=HEAP8[$23+1>>0]|0;HEAP8[$$byval_copy52+2>>0]=HEAP8[$23+2>>0]|0;HEAP8[$$byval_copy52+3>>0]=HEAP8[$23+3>>0]|0;
  9849. _DrawText(4660,10,430,10,$$byval_copy52);
  9850. _DrawFPS(10,10);
  9851. _EndDrawing();
  9852. STACKTOP = sp;return;
  9853. }
  9854. $128 = +HEAPF32[4599];
  9855. $129 = $128;
  9856. $130 = +HEAPF32[(18400)>>2];
  9857. $131 = $130;
  9858. $132 = +HEAPF32[(18404)>>2];
  9859. $133 = $132;
  9860. HEAPF64[$vararg_buffer14>>3] = $129;
  9861. $vararg_ptr17 = ((($vararg_buffer14)) + 8|0);
  9862. HEAPF64[$vararg_ptr17>>3] = $131;
  9863. $vararg_ptr18 = ((($vararg_buffer14)) + 16|0);
  9864. HEAPF64[$vararg_ptr18>>3] = $133;
  9865. $134 = (_FormatText(4630,$vararg_buffer14)|0);
  9866. HEAP8[$22>>0] = 0;
  9867. $135 = ((($22)) + 1|0);
  9868. HEAP8[$135>>0] = 0;
  9869. $136 = ((($22)) + 2|0);
  9870. HEAP8[$136>>0] = 0;
  9871. $137 = ((($22)) + 3|0);
  9872. HEAP8[$137>>0] = -1;
  9873. ;HEAP8[$$byval_copy52>>0]=HEAP8[$22>>0]|0;HEAP8[$$byval_copy52+1>>0]=HEAP8[$22+1>>0]|0;HEAP8[$$byval_copy52+2>>0]=HEAP8[$22+2>>0]|0;HEAP8[$$byval_copy52+3>>0]=HEAP8[$22+3>>0]|0;
  9874. _DrawText($134,10,115,10,$$byval_copy52);
  9875. HEAP8[$23>>0] = -126;
  9876. $138 = ((($23)) + 1|0);
  9877. HEAP8[$138>>0] = -126;
  9878. $139 = ((($23)) + 2|0);
  9879. HEAP8[$139>>0] = -126;
  9880. $140 = ((($23)) + 3|0);
  9881. HEAP8[$140>>0] = -1;
  9882. ;HEAP8[$$byval_copy52>>0]=HEAP8[$23>>0]|0;HEAP8[$$byval_copy52+1>>0]=HEAP8[$23+1>>0]|0;HEAP8[$$byval_copy52+2>>0]=HEAP8[$23+2>>0]|0;HEAP8[$$byval_copy52+3>>0]=HEAP8[$23+3>>0]|0;
  9883. _DrawText(4660,10,430,10,$$byval_copy52);
  9884. _DrawFPS(10,10);
  9885. _EndDrawing();
  9886. STACKTOP = sp;return;
  9887. }
  9888. function _Vector2Distance($0,$1) {
  9889. $0 = $0|0;
  9890. $1 = $1|0;
  9891. var $10 = 0.0, $11 = 0.0, $12 = 0.0, $13 = 0.0, $2 = 0.0, $3 = 0.0, $4 = 0.0, $5 = 0.0, $6 = 0, $7 = 0.0, $8 = 0, $9 = 0.0, label = 0, sp = 0;
  9892. sp = STACKTOP;
  9893. $2 = +HEAPF32[$0>>2];
  9894. $3 = +HEAPF32[$1>>2];
  9895. $4 = $2 - $3;
  9896. $5 = $4 * $4;
  9897. $6 = ((($0)) + 4|0);
  9898. $7 = +HEAPF32[$6>>2];
  9899. $8 = ((($1)) + 4|0);
  9900. $9 = +HEAPF32[$8>>2];
  9901. $10 = $7 - $9;
  9902. $11 = $10 * $10;
  9903. $12 = $5 + $11;
  9904. $13 = (+Math_sqrt((+$12)));
  9905. return (+$13);
  9906. }
  9907. function _Vector2Angle($0,$1) {
  9908. $0 = $0|0;
  9909. $1 = $1|0;
  9910. var $$0 = 0.0, $10 = 0.0, $11 = 0.0, $12 = 0, $13 = 0.0, $2 = 0, $3 = 0.0, $4 = 0, $5 = 0.0, $6 = 0.0, $7 = 0.0, $8 = 0.0, $9 = 0.0, label = 0, sp = 0;
  9911. sp = STACKTOP;
  9912. $2 = ((($1)) + 4|0);
  9913. $3 = +HEAPF32[$2>>2];
  9914. $4 = ((($0)) + 4|0);
  9915. $5 = +HEAPF32[$4>>2];
  9916. $6 = $3 - $5;
  9917. $7 = +HEAPF32[$1>>2];
  9918. $8 = +HEAPF32[$0>>2];
  9919. $9 = $7 - $8;
  9920. $10 = (+Math_atan2((+$6),(+$9)));
  9921. $11 = $10 * 57.2957763671875;
  9922. $12 = $11 < 0.0;
  9923. $13 = $11 + 360.0;
  9924. $$0 = $12 ? $13 : $11;
  9925. return (+$$0);
  9926. }
  9927. function _VectorZero($0) {
  9928. $0 = $0|0;
  9929. var $1 = 0, $2 = 0, label = 0, sp = 0;
  9930. sp = STACKTOP;
  9931. HEAPF32[$0>>2] = 0.0;
  9932. $1 = ((($0)) + 4|0);
  9933. HEAPF32[$1>>2] = 0.0;
  9934. $2 = ((($0)) + 8|0);
  9935. HEAPF32[$2>>2] = 0.0;
  9936. return;
  9937. }
  9938. function _VectorAdd($0,$1,$2) {
  9939. $0 = $0|0;
  9940. $1 = $1|0;
  9941. $2 = $2|0;
  9942. var $10 = 0.0, $11 = 0.0, $12 = 0, $13 = 0, $14 = 0.0, $15 = 0, $16 = 0.0, $17 = 0.0, $3 = 0.0, $4 = 0.0, $5 = 0.0, $6 = 0, $7 = 0, $8 = 0.0, $9 = 0, label = 0, sp = 0;
  9943. sp = STACKTOP;
  9944. $3 = +HEAPF32[$1>>2];
  9945. $4 = +HEAPF32[$2>>2];
  9946. $5 = $3 + $4;
  9947. HEAPF32[$0>>2] = $5;
  9948. $6 = ((($0)) + 4|0);
  9949. $7 = ((($1)) + 4|0);
  9950. $8 = +HEAPF32[$7>>2];
  9951. $9 = ((($2)) + 4|0);
  9952. $10 = +HEAPF32[$9>>2];
  9953. $11 = $8 + $10;
  9954. HEAPF32[$6>>2] = $11;
  9955. $12 = ((($0)) + 8|0);
  9956. $13 = ((($1)) + 8|0);
  9957. $14 = +HEAPF32[$13>>2];
  9958. $15 = ((($2)) + 8|0);
  9959. $16 = +HEAPF32[$15>>2];
  9960. $17 = $14 + $16;
  9961. HEAPF32[$12>>2] = $17;
  9962. return;
  9963. }
  9964. function _VectorSubtract($0,$1,$2) {
  9965. $0 = $0|0;
  9966. $1 = $1|0;
  9967. $2 = $2|0;
  9968. var $10 = 0.0, $11 = 0.0, $12 = 0, $13 = 0, $14 = 0.0, $15 = 0, $16 = 0.0, $17 = 0.0, $3 = 0.0, $4 = 0.0, $5 = 0.0, $6 = 0, $7 = 0, $8 = 0.0, $9 = 0, label = 0, sp = 0;
  9969. sp = STACKTOP;
  9970. $3 = +HEAPF32[$1>>2];
  9971. $4 = +HEAPF32[$2>>2];
  9972. $5 = $3 - $4;
  9973. HEAPF32[$0>>2] = $5;
  9974. $6 = ((($0)) + 4|0);
  9975. $7 = ((($1)) + 4|0);
  9976. $8 = +HEAPF32[$7>>2];
  9977. $9 = ((($2)) + 4|0);
  9978. $10 = +HEAPF32[$9>>2];
  9979. $11 = $8 - $10;
  9980. HEAPF32[$6>>2] = $11;
  9981. $12 = ((($0)) + 8|0);
  9982. $13 = ((($1)) + 8|0);
  9983. $14 = +HEAPF32[$13>>2];
  9984. $15 = ((($2)) + 8|0);
  9985. $16 = +HEAPF32[$15>>2];
  9986. $17 = $14 - $16;
  9987. HEAPF32[$12>>2] = $17;
  9988. return;
  9989. }
  9990. function _VectorCrossProduct($0,$1,$2) {
  9991. $0 = $0|0;
  9992. $1 = $1|0;
  9993. $2 = $2|0;
  9994. var $$sroa$4$0$$sroa_idx2 = 0, $$sroa$5$0$$sroa_idx4 = 0, $10 = 0, $11 = 0.0, $12 = 0.0, $13 = 0.0, $14 = 0.0, $15 = 0.0, $16 = 0.0, $17 = 0.0, $18 = 0.0, $19 = 0.0, $20 = 0.0, $21 = 0.0, $3 = 0, $4 = 0.0, $5 = 0, $6 = 0.0, $7 = 0.0, $8 = 0;
  9995. var $9 = 0.0, label = 0, sp = 0;
  9996. sp = STACKTOP;
  9997. $3 = ((($1)) + 4|0);
  9998. $4 = +HEAPF32[$3>>2];
  9999. $5 = ((($2)) + 8|0);
  10000. $6 = +HEAPF32[$5>>2];
  10001. $7 = $4 * $6;
  10002. $8 = ((($1)) + 8|0);
  10003. $9 = +HEAPF32[$8>>2];
  10004. $10 = ((($2)) + 4|0);
  10005. $11 = +HEAPF32[$10>>2];
  10006. $12 = $9 * $11;
  10007. $13 = $7 - $12;
  10008. $14 = +HEAPF32[$2>>2];
  10009. $15 = $9 * $14;
  10010. $16 = +HEAPF32[$1>>2];
  10011. $17 = $6 * $16;
  10012. $18 = $15 - $17;
  10013. $19 = $11 * $16;
  10014. $20 = $4 * $14;
  10015. $21 = $19 - $20;
  10016. HEAPF32[$0>>2] = $13;
  10017. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  10018. HEAPF32[$$sroa$4$0$$sroa_idx2>>2] = $18;
  10019. $$sroa$5$0$$sroa_idx4 = ((($0)) + 8|0);
  10020. HEAPF32[$$sroa$5$0$$sroa_idx4>>2] = $21;
  10021. return;
  10022. }
  10023. function _VectorLength($0) {
  10024. $0 = $0|0;
  10025. var $1 = 0.0, $10 = 0.0, $11 = 0.0, $2 = 0.0, $3 = 0, $4 = 0.0, $5 = 0.0, $6 = 0.0, $7 = 0, $8 = 0.0, $9 = 0.0, label = 0, sp = 0;
  10026. sp = STACKTOP;
  10027. $1 = +HEAPF32[$0>>2];
  10028. $2 = $1 * $1;
  10029. $3 = ((($0)) + 4|0);
  10030. $4 = +HEAPF32[$3>>2];
  10031. $5 = $4 * $4;
  10032. $6 = $2 + $5;
  10033. $7 = ((($0)) + 8|0);
  10034. $8 = +HEAPF32[$7>>2];
  10035. $9 = $8 * $8;
  10036. $10 = $6 + $9;
  10037. $11 = (+Math_sqrt((+$10)));
  10038. return (+$11);
  10039. }
  10040. function _VectorDotProduct($0,$1) {
  10041. $0 = $0|0;
  10042. $1 = $1|0;
  10043. var $10 = 0.0, $11 = 0, $12 = 0.0, $13 = 0, $14 = 0.0, $15 = 0.0, $16 = 0.0, $2 = 0.0, $3 = 0.0, $4 = 0.0, $5 = 0, $6 = 0.0, $7 = 0, $8 = 0.0, $9 = 0.0, label = 0, sp = 0;
  10044. sp = STACKTOP;
  10045. $2 = +HEAPF32[$0>>2];
  10046. $3 = +HEAPF32[$1>>2];
  10047. $4 = $2 * $3;
  10048. $5 = ((($0)) + 4|0);
  10049. $6 = +HEAPF32[$5>>2];
  10050. $7 = ((($1)) + 4|0);
  10051. $8 = +HEAPF32[$7>>2];
  10052. $9 = $6 * $8;
  10053. $10 = $4 + $9;
  10054. $11 = ((($0)) + 8|0);
  10055. $12 = +HEAPF32[$11>>2];
  10056. $13 = ((($1)) + 8|0);
  10057. $14 = +HEAPF32[$13>>2];
  10058. $15 = $12 * $14;
  10059. $16 = $10 + $15;
  10060. return (+$16);
  10061. }
  10062. function _VectorScale($0,$1) {
  10063. $0 = $0|0;
  10064. $1 = +$1;
  10065. var $2 = 0.0, $3 = 0.0, $4 = 0, $5 = 0.0, $6 = 0.0, $7 = 0, $8 = 0.0, $9 = 0.0, label = 0, sp = 0;
  10066. sp = STACKTOP;
  10067. $2 = +HEAPF32[$0>>2];
  10068. $3 = $2 * $1;
  10069. HEAPF32[$0>>2] = $3;
  10070. $4 = ((($0)) + 4|0);
  10071. $5 = +HEAPF32[$4>>2];
  10072. $6 = $5 * $1;
  10073. HEAPF32[$4>>2] = $6;
  10074. $7 = ((($0)) + 8|0);
  10075. $8 = +HEAPF32[$7>>2];
  10076. $9 = $8 * $1;
  10077. HEAPF32[$7>>2] = $9;
  10078. return;
  10079. }
  10080. function _VectorNormalize($0) {
  10081. $0 = $0|0;
  10082. var $$byval_copy = 0, $$op = 0.0, $1 = 0.0, $10 = 0.0, $11 = 0.0, $2 = 0, $3 = 0.0, $4 = 0.0, $5 = 0.0, $6 = 0, $7 = 0.0, $8 = 0.0, $9 = 0, label = 0, sp = 0;
  10083. sp = STACKTOP;
  10084. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  10085. $$byval_copy = sp;
  10086. ;HEAP32[$$byval_copy>>2]=HEAP32[$0>>2]|0;HEAP32[$$byval_copy+4>>2]=HEAP32[$0+4>>2]|0;HEAP32[$$byval_copy+8>>2]=HEAP32[$0+8>>2]|0;
  10087. $1 = (+_VectorLength($$byval_copy));
  10088. $2 = $1 == 0.0;
  10089. $$op = 1.0 / $1;
  10090. $3 = $2 ? 1.0 : $$op;
  10091. $4 = +HEAPF32[$0>>2];
  10092. $5 = $4 * $3;
  10093. HEAPF32[$0>>2] = $5;
  10094. $6 = ((($0)) + 4|0);
  10095. $7 = +HEAPF32[$6>>2];
  10096. $8 = $3 * $7;
  10097. HEAPF32[$6>>2] = $8;
  10098. $9 = ((($0)) + 8|0);
  10099. $10 = +HEAPF32[$9>>2];
  10100. $11 = $3 * $10;
  10101. HEAPF32[$9>>2] = $11;
  10102. STACKTOP = sp;return;
  10103. }
  10104. function _VectorTransform($0,$1) {
  10105. $0 = $0|0;
  10106. $1 = $1|0;
  10107. var $10 = 0.0, $11 = 0.0, $12 = 0.0, $13 = 0, $14 = 0.0, $15 = 0.0, $16 = 0.0, $17 = 0, $18 = 0.0, $19 = 0.0, $2 = 0.0, $20 = 0, $21 = 0.0, $22 = 0.0, $23 = 0, $24 = 0.0, $25 = 0.0, $26 = 0.0, $27 = 0, $28 = 0.0;
  10108. var $29 = 0.0, $3 = 0, $30 = 0.0, $31 = 0, $32 = 0.0, $33 = 0.0, $34 = 0, $35 = 0.0, $36 = 0.0, $37 = 0, $38 = 0.0, $39 = 0.0, $4 = 0.0, $40 = 0.0, $41 = 0, $42 = 0.0, $43 = 0.0, $44 = 0.0, $45 = 0, $46 = 0.0;
  10109. var $47 = 0.0, $5 = 0, $6 = 0.0, $7 = 0.0, $8 = 0.0, $9 = 0, label = 0, sp = 0;
  10110. sp = STACKTOP;
  10111. $2 = +HEAPF32[$0>>2];
  10112. $3 = ((($0)) + 4|0);
  10113. $4 = +HEAPF32[$3>>2];
  10114. $5 = ((($0)) + 8|0);
  10115. $6 = +HEAPF32[$5>>2];
  10116. $7 = +HEAPF32[$1>>2];
  10117. $8 = $2 * $7;
  10118. $9 = ((($1)) + 4|0);
  10119. $10 = +HEAPF32[$9>>2];
  10120. $11 = $4 * $10;
  10121. $12 = $8 + $11;
  10122. $13 = ((($1)) + 8|0);
  10123. $14 = +HEAPF32[$13>>2];
  10124. $15 = $6 * $14;
  10125. $16 = $12 + $15;
  10126. $17 = ((($1)) + 12|0);
  10127. $18 = +HEAPF32[$17>>2];
  10128. $19 = $18 + $16;
  10129. HEAPF32[$0>>2] = $19;
  10130. $20 = ((($1)) + 16|0);
  10131. $21 = +HEAPF32[$20>>2];
  10132. $22 = $2 * $21;
  10133. $23 = ((($1)) + 20|0);
  10134. $24 = +HEAPF32[$23>>2];
  10135. $25 = $4 * $24;
  10136. $26 = $22 + $25;
  10137. $27 = ((($1)) + 24|0);
  10138. $28 = +HEAPF32[$27>>2];
  10139. $29 = $6 * $28;
  10140. $30 = $26 + $29;
  10141. $31 = ((($1)) + 28|0);
  10142. $32 = +HEAPF32[$31>>2];
  10143. $33 = $32 + $30;
  10144. HEAPF32[$3>>2] = $33;
  10145. $34 = ((($1)) + 32|0);
  10146. $35 = +HEAPF32[$34>>2];
  10147. $36 = $2 * $35;
  10148. $37 = ((($1)) + 36|0);
  10149. $38 = +HEAPF32[$37>>2];
  10150. $39 = $4 * $38;
  10151. $40 = $36 + $39;
  10152. $41 = ((($1)) + 40|0);
  10153. $42 = +HEAPF32[$41>>2];
  10154. $43 = $6 * $42;
  10155. $44 = $40 + $43;
  10156. $45 = ((($1)) + 44|0);
  10157. $46 = +HEAPF32[$45>>2];
  10158. $47 = $46 + $44;
  10159. HEAPF32[$5>>2] = $47;
  10160. return;
  10161. }
  10162. function _VectorMin($0,$1,$2) {
  10163. $0 = $0|0;
  10164. $1 = $1|0;
  10165. $2 = $2|0;
  10166. var $$sroa$4$0$$sroa_idx2 = 0, $$sroa$5$0$$sroa_idx4 = 0, $10 = 0.0, $11 = 0, $12 = 0.0, $13 = 0, $14 = 0.0, $15 = 0.0, $3 = 0.0, $4 = 0.0, $5 = 0.0, $6 = 0, $7 = 0.0, $8 = 0, $9 = 0.0, label = 0, sp = 0;
  10167. sp = STACKTOP;
  10168. $3 = +HEAPF32[$1>>2];
  10169. $4 = +HEAPF32[$2>>2];
  10170. $5 = (+_fminf($3,$4));
  10171. $6 = ((($1)) + 4|0);
  10172. $7 = +HEAPF32[$6>>2];
  10173. $8 = ((($2)) + 4|0);
  10174. $9 = +HEAPF32[$8>>2];
  10175. $10 = (+_fminf($7,$9));
  10176. $11 = ((($1)) + 8|0);
  10177. $12 = +HEAPF32[$11>>2];
  10178. $13 = ((($2)) + 8|0);
  10179. $14 = +HEAPF32[$13>>2];
  10180. $15 = (+_fminf($12,$14));
  10181. HEAPF32[$0>>2] = $5;
  10182. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  10183. HEAPF32[$$sroa$4$0$$sroa_idx2>>2] = $10;
  10184. $$sroa$5$0$$sroa_idx4 = ((($0)) + 8|0);
  10185. HEAPF32[$$sroa$5$0$$sroa_idx4>>2] = $15;
  10186. return;
  10187. }
  10188. function _VectorMax($0,$1,$2) {
  10189. $0 = $0|0;
  10190. $1 = $1|0;
  10191. $2 = $2|0;
  10192. var $$sroa$4$0$$sroa_idx2 = 0, $$sroa$5$0$$sroa_idx4 = 0, $10 = 0.0, $11 = 0, $12 = 0.0, $13 = 0, $14 = 0.0, $15 = 0.0, $3 = 0.0, $4 = 0.0, $5 = 0.0, $6 = 0, $7 = 0.0, $8 = 0, $9 = 0.0, label = 0, sp = 0;
  10193. sp = STACKTOP;
  10194. $3 = +HEAPF32[$1>>2];
  10195. $4 = +HEAPF32[$2>>2];
  10196. $5 = (+_fmaxf($3,$4));
  10197. $6 = ((($1)) + 4|0);
  10198. $7 = +HEAPF32[$6>>2];
  10199. $8 = ((($2)) + 4|0);
  10200. $9 = +HEAPF32[$8>>2];
  10201. $10 = (+_fmaxf($7,$9));
  10202. $11 = ((($1)) + 8|0);
  10203. $12 = +HEAPF32[$11>>2];
  10204. $13 = ((($2)) + 8|0);
  10205. $14 = +HEAPF32[$13>>2];
  10206. $15 = (+_fmaxf($12,$14));
  10207. HEAPF32[$0>>2] = $5;
  10208. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  10209. HEAPF32[$$sroa$4$0$$sroa_idx2>>2] = $10;
  10210. $$sroa$5$0$$sroa_idx4 = ((($0)) + 8|0);
  10211. HEAPF32[$$sroa$5$0$$sroa_idx4>>2] = $15;
  10212. return;
  10213. }
  10214. function _VectorBarycenter($0,$1,$2,$3,$4) {
  10215. $0 = $0|0;
  10216. $1 = $1|0;
  10217. $2 = $2|0;
  10218. $3 = $3|0;
  10219. $4 = $4|0;
  10220. var $$byval_copy14 = 0, $$byval_copy15 = 0, $$sroa$4$0$$sroa_idx2 = 0, $$sroa$6$0$$sroa_idx4 = 0, $10 = 0.0, $11 = 0.0, $12 = 0.0, $13 = 0.0, $14 = 0.0, $15 = 0.0, $16 = 0.0, $17 = 0.0, $18 = 0.0, $19 = 0.0, $20 = 0.0, $21 = 0.0, $22 = 0.0, $23 = 0.0, $24 = 0.0, $25 = 0.0;
  10221. var $5 = 0, $6 = 0, $7 = 0, $8 = 0.0, $9 = 0.0, label = 0, sp = 0;
  10222. sp = STACKTOP;
  10223. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  10224. $$byval_copy15 = sp + 48|0;
  10225. $$byval_copy14 = sp + 36|0;
  10226. $5 = sp + 24|0;
  10227. $6 = sp + 12|0;
  10228. $7 = sp;
  10229. ;HEAP32[$$byval_copy14>>2]=HEAP32[$3>>2]|0;HEAP32[$$byval_copy14+4>>2]=HEAP32[$3+4>>2]|0;HEAP32[$$byval_copy14+8>>2]=HEAP32[$3+8>>2]|0;
  10230. ;HEAP32[$$byval_copy15>>2]=HEAP32[$2>>2]|0;HEAP32[$$byval_copy15+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$$byval_copy15+8>>2]=HEAP32[$2+8>>2]|0;
  10231. _VectorSubtract($5,$$byval_copy14,$$byval_copy15);
  10232. ;HEAP32[$$byval_copy14>>2]=HEAP32[$4>>2]|0;HEAP32[$$byval_copy14+4>>2]=HEAP32[$4+4>>2]|0;HEAP32[$$byval_copy14+8>>2]=HEAP32[$4+8>>2]|0;
  10233. ;HEAP32[$$byval_copy15>>2]=HEAP32[$2>>2]|0;HEAP32[$$byval_copy15+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$$byval_copy15+8>>2]=HEAP32[$2+8>>2]|0;
  10234. _VectorSubtract($6,$$byval_copy14,$$byval_copy15);
  10235. ;HEAP32[$$byval_copy14>>2]=HEAP32[$1>>2]|0;HEAP32[$$byval_copy14+4>>2]=HEAP32[$1+4>>2]|0;HEAP32[$$byval_copy14+8>>2]=HEAP32[$1+8>>2]|0;
  10236. ;HEAP32[$$byval_copy15>>2]=HEAP32[$2>>2]|0;HEAP32[$$byval_copy15+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$$byval_copy15+8>>2]=HEAP32[$2+8>>2]|0;
  10237. _VectorSubtract($7,$$byval_copy14,$$byval_copy15);
  10238. ;HEAP32[$$byval_copy14>>2]=HEAP32[$5>>2]|0;HEAP32[$$byval_copy14+4>>2]=HEAP32[$5+4>>2]|0;HEAP32[$$byval_copy14+8>>2]=HEAP32[$5+8>>2]|0;
  10239. ;HEAP32[$$byval_copy15>>2]=HEAP32[$5>>2]|0;HEAP32[$$byval_copy15+4>>2]=HEAP32[$5+4>>2]|0;HEAP32[$$byval_copy15+8>>2]=HEAP32[$5+8>>2]|0;
  10240. $8 = (+_VectorDotProduct($$byval_copy14,$$byval_copy15));
  10241. ;HEAP32[$$byval_copy14>>2]=HEAP32[$5>>2]|0;HEAP32[$$byval_copy14+4>>2]=HEAP32[$5+4>>2]|0;HEAP32[$$byval_copy14+8>>2]=HEAP32[$5+8>>2]|0;
  10242. ;HEAP32[$$byval_copy15>>2]=HEAP32[$6>>2]|0;HEAP32[$$byval_copy15+4>>2]=HEAP32[$6+4>>2]|0;HEAP32[$$byval_copy15+8>>2]=HEAP32[$6+8>>2]|0;
  10243. $9 = (+_VectorDotProduct($$byval_copy14,$$byval_copy15));
  10244. ;HEAP32[$$byval_copy14>>2]=HEAP32[$6>>2]|0;HEAP32[$$byval_copy14+4>>2]=HEAP32[$6+4>>2]|0;HEAP32[$$byval_copy14+8>>2]=HEAP32[$6+8>>2]|0;
  10245. ;HEAP32[$$byval_copy15>>2]=HEAP32[$6>>2]|0;HEAP32[$$byval_copy15+4>>2]=HEAP32[$6+4>>2]|0;HEAP32[$$byval_copy15+8>>2]=HEAP32[$6+8>>2]|0;
  10246. $10 = (+_VectorDotProduct($$byval_copy14,$$byval_copy15));
  10247. ;HEAP32[$$byval_copy14>>2]=HEAP32[$7>>2]|0;HEAP32[$$byval_copy14+4>>2]=HEAP32[$7+4>>2]|0;HEAP32[$$byval_copy14+8>>2]=HEAP32[$7+8>>2]|0;
  10248. ;HEAP32[$$byval_copy15>>2]=HEAP32[$5>>2]|0;HEAP32[$$byval_copy15+4>>2]=HEAP32[$5+4>>2]|0;HEAP32[$$byval_copy15+8>>2]=HEAP32[$5+8>>2]|0;
  10249. $11 = (+_VectorDotProduct($$byval_copy14,$$byval_copy15));
  10250. ;HEAP32[$$byval_copy14>>2]=HEAP32[$7>>2]|0;HEAP32[$$byval_copy14+4>>2]=HEAP32[$7+4>>2]|0;HEAP32[$$byval_copy14+8>>2]=HEAP32[$7+8>>2]|0;
  10251. ;HEAP32[$$byval_copy15>>2]=HEAP32[$6>>2]|0;HEAP32[$$byval_copy15+4>>2]=HEAP32[$6+4>>2]|0;HEAP32[$$byval_copy15+8>>2]=HEAP32[$6+8>>2]|0;
  10252. $12 = (+_VectorDotProduct($$byval_copy14,$$byval_copy15));
  10253. $13 = $8 * $10;
  10254. $14 = $9 * $9;
  10255. $15 = $13 - $14;
  10256. $16 = $10 * $11;
  10257. $17 = $9 * $12;
  10258. $18 = $16 - $17;
  10259. $19 = $18 / $15;
  10260. $20 = $8 * $12;
  10261. $21 = $9 * $11;
  10262. $22 = $20 - $21;
  10263. $23 = $22 / $15;
  10264. $24 = $23 + $19;
  10265. $25 = 1.0 - $24;
  10266. HEAPF32[$0>>2] = $25;
  10267. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  10268. HEAPF32[$$sroa$4$0$$sroa_idx2>>2] = $19;
  10269. $$sroa$6$0$$sroa_idx4 = ((($0)) + 8|0);
  10270. HEAPF32[$$sroa$6$0$$sroa_idx4>>2] = $23;
  10271. STACKTOP = sp;return;
  10272. }
  10273. function _MatrixTranspose($0) {
  10274. $0 = $0|0;
  10275. var $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $3 = 0, $4 = 0, $5 = 0;
  10276. var $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  10277. sp = STACKTOP;
  10278. $1 = ((($0)) + 4|0);
  10279. $2 = HEAP32[$1>>2]|0;
  10280. $3 = ((($0)) + 8|0);
  10281. $4 = HEAP32[$3>>2]|0;
  10282. $5 = ((($0)) + 12|0);
  10283. $6 = HEAP32[$5>>2]|0;
  10284. $7 = ((($0)) + 16|0);
  10285. $8 = HEAP32[$7>>2]|0;
  10286. $9 = ((($0)) + 24|0);
  10287. $10 = HEAP32[$9>>2]|0;
  10288. $11 = ((($0)) + 28|0);
  10289. $12 = HEAP32[$11>>2]|0;
  10290. $13 = ((($0)) + 32|0);
  10291. $14 = HEAP32[$13>>2]|0;
  10292. $15 = ((($0)) + 36|0);
  10293. $16 = HEAP32[$15>>2]|0;
  10294. $17 = ((($0)) + 44|0);
  10295. $18 = HEAP32[$17>>2]|0;
  10296. $19 = ((($0)) + 48|0);
  10297. $20 = HEAP32[$19>>2]|0;
  10298. $21 = ((($0)) + 52|0);
  10299. $22 = HEAP32[$21>>2]|0;
  10300. $23 = ((($0)) + 56|0);
  10301. $24 = HEAP32[$23>>2]|0;
  10302. HEAP32[$1>>2] = $8;
  10303. HEAP32[$3>>2] = $14;
  10304. HEAP32[$5>>2] = $20;
  10305. HEAP32[$7>>2] = $2;
  10306. HEAP32[$9>>2] = $16;
  10307. HEAP32[$11>>2] = $22;
  10308. HEAP32[$13>>2] = $4;
  10309. HEAP32[$15>>2] = $10;
  10310. HEAP32[$17>>2] = $24;
  10311. HEAP32[$19>>2] = $6;
  10312. HEAP32[$21>>2] = $12;
  10313. HEAP32[$23>>2] = $18;
  10314. return;
  10315. }
  10316. function _MatrixInvert($0) {
  10317. $0 = $0|0;
  10318. var $1 = 0.0, $10 = 0, $100 = 0.0, $101 = 0.0, $102 = 0.0, $103 = 0.0, $104 = 0.0, $105 = 0.0, $106 = 0.0, $107 = 0.0, $108 = 0.0, $109 = 0.0, $11 = 0.0, $110 = 0.0, $111 = 0.0, $112 = 0.0, $113 = 0.0, $114 = 0.0, $115 = 0.0, $116 = 0.0;
  10319. var $117 = 0.0, $118 = 0.0, $119 = 0.0, $12 = 0, $120 = 0.0, $121 = 0.0, $122 = 0.0, $123 = 0.0, $124 = 0.0, $125 = 0.0, $126 = 0.0, $127 = 0.0, $128 = 0.0, $129 = 0.0, $13 = 0.0, $130 = 0.0, $131 = 0.0, $132 = 0.0, $133 = 0.0, $134 = 0.0;
  10320. var $135 = 0.0, $136 = 0.0, $137 = 0.0, $138 = 0.0, $139 = 0.0, $14 = 0, $140 = 0.0, $141 = 0.0, $142 = 0.0, $143 = 0.0, $144 = 0.0, $145 = 0.0, $146 = 0.0, $147 = 0.0, $148 = 0.0, $149 = 0.0, $15 = 0.0, $150 = 0.0, $151 = 0.0, $152 = 0.0;
  10321. var $153 = 0.0, $154 = 0.0, $155 = 0.0, $156 = 0.0, $157 = 0.0, $158 = 0.0, $159 = 0.0, $16 = 0, $160 = 0.0, $161 = 0.0, $162 = 0.0, $163 = 0.0, $164 = 0.0, $165 = 0.0, $166 = 0.0, $167 = 0.0, $168 = 0.0, $169 = 0.0, $17 = 0.0, $170 = 0.0;
  10322. var $171 = 0.0, $172 = 0.0, $173 = 0.0, $174 = 0.0, $175 = 0.0, $176 = 0.0, $177 = 0.0, $18 = 0, $19 = 0.0, $2 = 0, $20 = 0, $21 = 0.0, $22 = 0, $23 = 0.0, $24 = 0, $25 = 0.0, $26 = 0, $27 = 0.0, $28 = 0, $29 = 0.0;
  10323. var $3 = 0.0, $30 = 0, $31 = 0.0, $32 = 0.0, $33 = 0.0, $34 = 0.0, $35 = 0.0, $36 = 0.0, $37 = 0.0, $38 = 0.0, $39 = 0.0, $4 = 0, $40 = 0.0, $41 = 0.0, $42 = 0.0, $43 = 0.0, $44 = 0.0, $45 = 0.0, $46 = 0.0, $47 = 0.0;
  10324. var $48 = 0.0, $49 = 0.0, $5 = 0.0, $50 = 0.0, $51 = 0.0, $52 = 0.0, $53 = 0.0, $54 = 0.0, $55 = 0.0, $56 = 0.0, $57 = 0.0, $58 = 0.0, $59 = 0.0, $6 = 0, $60 = 0.0, $61 = 0.0, $62 = 0.0, $63 = 0.0, $64 = 0.0, $65 = 0.0;
  10325. var $66 = 0.0, $67 = 0.0, $68 = 0.0, $69 = 0.0, $7 = 0.0, $70 = 0.0, $71 = 0.0, $72 = 0.0, $73 = 0.0, $74 = 0.0, $75 = 0.0, $76 = 0.0, $77 = 0.0, $78 = 0.0, $79 = 0.0, $8 = 0, $80 = 0.0, $81 = 0.0, $82 = 0.0, $83 = 0.0;
  10326. var $84 = 0.0, $85 = 0.0, $86 = 0.0, $87 = 0.0, $88 = 0.0, $89 = 0.0, $9 = 0.0, $90 = 0.0, $91 = 0.0, $92 = 0.0, $93 = 0.0, $94 = 0.0, $95 = 0.0, $96 = 0.0, $97 = 0.0, $98 = 0.0, $99 = 0.0, label = 0, sp = 0;
  10327. sp = STACKTOP;
  10328. $1 = +HEAPF32[$0>>2];
  10329. $2 = ((($0)) + 16|0);
  10330. $3 = +HEAPF32[$2>>2];
  10331. $4 = ((($0)) + 32|0);
  10332. $5 = +HEAPF32[$4>>2];
  10333. $6 = ((($0)) + 48|0);
  10334. $7 = +HEAPF32[$6>>2];
  10335. $8 = ((($0)) + 4|0);
  10336. $9 = +HEAPF32[$8>>2];
  10337. $10 = ((($0)) + 20|0);
  10338. $11 = +HEAPF32[$10>>2];
  10339. $12 = ((($0)) + 36|0);
  10340. $13 = +HEAPF32[$12>>2];
  10341. $14 = ((($0)) + 52|0);
  10342. $15 = +HEAPF32[$14>>2];
  10343. $16 = ((($0)) + 8|0);
  10344. $17 = +HEAPF32[$16>>2];
  10345. $18 = ((($0)) + 24|0);
  10346. $19 = +HEAPF32[$18>>2];
  10347. $20 = ((($0)) + 40|0);
  10348. $21 = +HEAPF32[$20>>2];
  10349. $22 = ((($0)) + 56|0);
  10350. $23 = +HEAPF32[$22>>2];
  10351. $24 = ((($0)) + 12|0);
  10352. $25 = +HEAPF32[$24>>2];
  10353. $26 = ((($0)) + 28|0);
  10354. $27 = +HEAPF32[$26>>2];
  10355. $28 = ((($0)) + 44|0);
  10356. $29 = +HEAPF32[$28>>2];
  10357. $30 = ((($0)) + 60|0);
  10358. $31 = +HEAPF32[$30>>2];
  10359. $32 = $1 * $11;
  10360. $33 = $3 * $9;
  10361. $34 = $32 - $33;
  10362. $35 = $1 * $13;
  10363. $36 = $5 * $9;
  10364. $37 = $35 - $36;
  10365. $38 = $1 * $15;
  10366. $39 = $7 * $9;
  10367. $40 = $38 - $39;
  10368. $41 = $3 * $13;
  10369. $42 = $5 * $11;
  10370. $43 = $41 - $42;
  10371. $44 = $3 * $15;
  10372. $45 = $7 * $11;
  10373. $46 = $44 - $45;
  10374. $47 = $5 * $15;
  10375. $48 = $7 * $13;
  10376. $49 = $47 - $48;
  10377. $50 = $17 * $27;
  10378. $51 = $19 * $25;
  10379. $52 = $50 - $51;
  10380. $53 = $17 * $29;
  10381. $54 = $21 * $25;
  10382. $55 = $53 - $54;
  10383. $56 = $17 * $31;
  10384. $57 = $23 * $25;
  10385. $58 = $56 - $57;
  10386. $59 = $19 * $29;
  10387. $60 = $21 * $27;
  10388. $61 = $59 - $60;
  10389. $62 = $19 * $31;
  10390. $63 = $23 * $27;
  10391. $64 = $62 - $63;
  10392. $65 = $21 * $31;
  10393. $66 = $23 * $29;
  10394. $67 = $65 - $66;
  10395. $68 = $34 * $67;
  10396. $69 = $37 * $64;
  10397. $70 = $68 - $69;
  10398. $71 = $40 * $61;
  10399. $72 = $71 + $70;
  10400. $73 = $43 * $58;
  10401. $74 = $73 + $72;
  10402. $75 = $46 * $55;
  10403. $76 = $74 - $75;
  10404. $77 = $49 * $52;
  10405. $78 = $77 + $76;
  10406. $79 = 1.0 / $78;
  10407. $80 = $11 * $67;
  10408. $81 = $13 * $64;
  10409. $82 = $80 - $81;
  10410. $83 = $15 * $61;
  10411. $84 = $83 + $82;
  10412. $85 = $84 * $79;
  10413. $86 = $3 * $67;
  10414. $87 = $5 * $64;
  10415. $88 = $87 - $86;
  10416. $89 = $7 * $61;
  10417. $90 = $88 - $89;
  10418. $91 = $90 * $79;
  10419. $92 = $49 * $27;
  10420. $93 = $46 * $29;
  10421. $94 = $92 - $93;
  10422. $95 = $43 * $31;
  10423. $96 = $94 + $95;
  10424. $97 = $96 * $79;
  10425. $98 = $19 * $49;
  10426. $99 = $46 * $21;
  10427. $100 = $99 - $98;
  10428. $101 = $43 * $23;
  10429. $102 = $100 - $101;
  10430. $103 = $102 * $79;
  10431. $104 = -$9;
  10432. $105 = $67 * $104;
  10433. $106 = $13 * $58;
  10434. $107 = $105 + $106;
  10435. $108 = $15 * $55;
  10436. $109 = $107 - $108;
  10437. $110 = $109 * $79;
  10438. $111 = $1 * $67;
  10439. $112 = $5 * $58;
  10440. $113 = $111 - $112;
  10441. $114 = $7 * $55;
  10442. $115 = $114 + $113;
  10443. $116 = $115 * $79;
  10444. $117 = -$25;
  10445. $118 = $49 * $117;
  10446. $119 = $40 * $29;
  10447. $120 = $118 + $119;
  10448. $121 = $37 * $31;
  10449. $122 = $120 - $121;
  10450. $123 = $122 * $79;
  10451. $124 = $17 * $49;
  10452. $125 = $40 * $21;
  10453. $126 = $124 - $125;
  10454. $127 = $37 * $23;
  10455. $128 = $126 + $127;
  10456. $129 = $128 * $79;
  10457. $130 = $9 * $64;
  10458. $131 = $11 * $58;
  10459. $132 = $130 - $131;
  10460. $133 = $15 * $52;
  10461. $134 = $133 + $132;
  10462. $135 = $134 * $79;
  10463. $136 = $1 * $64;
  10464. $137 = $3 * $58;
  10465. $138 = $137 - $136;
  10466. $139 = $7 * $52;
  10467. $140 = $138 - $139;
  10468. $141 = $140 * $79;
  10469. $142 = $46 * $25;
  10470. $143 = $40 * $27;
  10471. $144 = $142 - $143;
  10472. $145 = $34 * $31;
  10473. $146 = $144 + $145;
  10474. $147 = $146 * $79;
  10475. $148 = $17 * $46;
  10476. $149 = $19 * $40;
  10477. $150 = $149 - $148;
  10478. $151 = $34 * $23;
  10479. $152 = $150 - $151;
  10480. $153 = $152 * $79;
  10481. $154 = $61 * $104;
  10482. $155 = $11 * $55;
  10483. $156 = $154 + $155;
  10484. $157 = $13 * $52;
  10485. $158 = $156 - $157;
  10486. $159 = $158 * $79;
  10487. $160 = $1 * $61;
  10488. $161 = $3 * $55;
  10489. $162 = $160 - $161;
  10490. $163 = $5 * $52;
  10491. $164 = $163 + $162;
  10492. $165 = $164 * $79;
  10493. $166 = $43 * $117;
  10494. $167 = $37 * $27;
  10495. $168 = $166 + $167;
  10496. $169 = $34 * $29;
  10497. $170 = $168 - $169;
  10498. $171 = $170 * $79;
  10499. $172 = $17 * $43;
  10500. $173 = $37 * $19;
  10501. $174 = $172 - $173;
  10502. $175 = $34 * $21;
  10503. $176 = $174 + $175;
  10504. $177 = $176 * $79;
  10505. HEAPF32[$0>>2] = $85;
  10506. HEAPF32[$8>>2] = $110;
  10507. HEAPF32[$16>>2] = $135;
  10508. HEAPF32[$24>>2] = $159;
  10509. HEAPF32[$2>>2] = $91;
  10510. HEAPF32[$10>>2] = $116;
  10511. HEAPF32[$18>>2] = $141;
  10512. HEAPF32[$26>>2] = $165;
  10513. HEAPF32[$4>>2] = $97;
  10514. HEAPF32[$12>>2] = $123;
  10515. HEAPF32[$20>>2] = $147;
  10516. HEAPF32[$28>>2] = $171;
  10517. HEAPF32[$6>>2] = $103;
  10518. HEAPF32[$14>>2] = $129;
  10519. HEAPF32[$22>>2] = $153;
  10520. HEAPF32[$30>>2] = $177;
  10521. return;
  10522. }
  10523. function _MatrixIdentity($0) {
  10524. $0 = $0|0;
  10525. var $$sroa$5$0$$sroa_idx = 0, $$sroa$55$0$$sroa_idx6 = 0, $$sroa$6$0$$sroa_idx = 0, $$sroa$611$0$$sroa_idx12 = 0, $$sroa$7$0$$sroa_idx = 0, $$sroa$717$0$$sroa_idx18 = 0, label = 0, sp = 0;
  10526. sp = STACKTOP;
  10527. HEAPF32[$0>>2] = 1.0;
  10528. $$sroa$5$0$$sroa_idx = ((($0)) + 4|0);
  10529. ;HEAP32[$$sroa$5$0$$sroa_idx>>2]=0|0;HEAP32[$$sroa$5$0$$sroa_idx+4>>2]=0|0;HEAP32[$$sroa$5$0$$sroa_idx+8>>2]=0|0;HEAP32[$$sroa$5$0$$sroa_idx+12>>2]=0|0;
  10530. $$sroa$55$0$$sroa_idx6 = ((($0)) + 20|0);
  10531. HEAPF32[$$sroa$55$0$$sroa_idx6>>2] = 1.0;
  10532. $$sroa$6$0$$sroa_idx = ((($0)) + 24|0);
  10533. ;HEAP32[$$sroa$6$0$$sroa_idx>>2]=0|0;HEAP32[$$sroa$6$0$$sroa_idx+4>>2]=0|0;HEAP32[$$sroa$6$0$$sroa_idx+8>>2]=0|0;HEAP32[$$sroa$6$0$$sroa_idx+12>>2]=0|0;
  10534. $$sroa$611$0$$sroa_idx12 = ((($0)) + 40|0);
  10535. HEAPF32[$$sroa$611$0$$sroa_idx12>>2] = 1.0;
  10536. $$sroa$7$0$$sroa_idx = ((($0)) + 44|0);
  10537. ;HEAP32[$$sroa$7$0$$sroa_idx>>2]=0|0;HEAP32[$$sroa$7$0$$sroa_idx+4>>2]=0|0;HEAP32[$$sroa$7$0$$sroa_idx+8>>2]=0|0;HEAP32[$$sroa$7$0$$sroa_idx+12>>2]=0|0;
  10538. $$sroa$717$0$$sroa_idx18 = ((($0)) + 60|0);
  10539. HEAPF32[$$sroa$717$0$$sroa_idx18>>2] = 1.0;
  10540. return;
  10541. }
  10542. function _MatrixTranslate($0,$1,$2,$3) {
  10543. $0 = $0|0;
  10544. $1 = +$1;
  10545. $2 = +$2;
  10546. $3 = +$3;
  10547. var $$sroa$13$0$$sroa_idx20 = 0, $$sroa$14$0$$sroa_idx22 = 0, $$sroa$15$0$$sroa_idx24 = 0, $$sroa$16$0$$sroa_idx26 = 0, $$sroa$17$0$$sroa_idx28 = 0, $$sroa$18$0$$sroa_idx30 = 0, $$sroa$4$0$$sroa_idx2 = 0, $$sroa$8$0$$sroa_idx10 = 0, $$sroa$9$0$$sroa_idx12 = 0, label = 0, sp = 0;
  10548. sp = STACKTOP;
  10549. HEAPF32[$0>>2] = 1.0;
  10550. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  10551. $$sroa$8$0$$sroa_idx10 = ((($0)) + 20|0);
  10552. ;HEAP32[$$sroa$4$0$$sroa_idx2>>2]=0|0;HEAP32[$$sroa$4$0$$sroa_idx2+4>>2]=0|0;HEAP32[$$sroa$4$0$$sroa_idx2+8>>2]=0|0;HEAP32[$$sroa$4$0$$sroa_idx2+12>>2]=0|0;
  10553. HEAPF32[$$sroa$8$0$$sroa_idx10>>2] = 1.0;
  10554. $$sroa$9$0$$sroa_idx12 = ((($0)) + 24|0);
  10555. $$sroa$13$0$$sroa_idx20 = ((($0)) + 40|0);
  10556. ;HEAP32[$$sroa$9$0$$sroa_idx12>>2]=0|0;HEAP32[$$sroa$9$0$$sroa_idx12+4>>2]=0|0;HEAP32[$$sroa$9$0$$sroa_idx12+8>>2]=0|0;HEAP32[$$sroa$9$0$$sroa_idx12+12>>2]=0|0;
  10557. HEAPF32[$$sroa$13$0$$sroa_idx20>>2] = 1.0;
  10558. $$sroa$14$0$$sroa_idx22 = ((($0)) + 44|0);
  10559. HEAPF32[$$sroa$14$0$$sroa_idx22>>2] = 0.0;
  10560. $$sroa$15$0$$sroa_idx24 = ((($0)) + 48|0);
  10561. HEAPF32[$$sroa$15$0$$sroa_idx24>>2] = $1;
  10562. $$sroa$16$0$$sroa_idx26 = ((($0)) + 52|0);
  10563. HEAPF32[$$sroa$16$0$$sroa_idx26>>2] = $2;
  10564. $$sroa$17$0$$sroa_idx28 = ((($0)) + 56|0);
  10565. HEAPF32[$$sroa$17$0$$sroa_idx28>>2] = $3;
  10566. $$sroa$18$0$$sroa_idx30 = ((($0)) + 60|0);
  10567. HEAPF32[$$sroa$18$0$$sroa_idx30>>2] = 1.0;
  10568. return;
  10569. }
  10570. function _MatrixRotate($0,$1,$2) {
  10571. $0 = $0|0;
  10572. $1 = $1|0;
  10573. $2 = +$2;
  10574. var $$ = 0.0, $$221 = 0.0, $$222 = 0.0, $$sroa$10$0$$sroa_idx199 = 0, $$sroa$11$0$$sroa_idx201 = 0, $$sroa$12$0$$sroa_idx203 = 0, $$sroa$13$0$$sroa_idx205 = 0, $$sroa$14$0$$sroa_idx207 = 0, $$sroa$15$0$$sroa_idx209 = 0, $$sroa$16$0$$sroa_idx211 = 0, $$sroa$17$0$$sroa_idx213 = 0, $$sroa$18$0$$sroa_idx215 = 0, $$sroa$4$0$$sroa_idx187 = 0, $$sroa$5$0$$sroa_idx189 = 0, $$sroa$6$0$$sroa_idx191 = 0, $$sroa$7$0$$sroa_idx193 = 0, $$sroa$8$0$$sroa_idx195 = 0, $$sroa$9$0$$sroa_idx197 = 0, $10 = 0.0, $100 = 0.0;
  10575. var $101 = 0.0, $102 = 0.0, $103 = 0.0, $104 = 0.0, $105 = 0.0, $106 = 0.0, $107 = 0.0, $108 = 0.0, $109 = 0.0, $11 = 0.0, $110 = 0.0, $111 = 0.0, $112 = 0.0, $113 = 0.0, $114 = 0.0, $115 = 0.0, $116 = 0.0, $117 = 0.0, $118 = 0.0, $119 = 0.0;
  10576. var $12 = 0.0, $120 = 0.0, $121 = 0.0, $122 = 0.0, $123 = 0.0, $124 = 0.0, $125 = 0.0, $126 = 0.0, $127 = 0.0, $128 = 0.0, $129 = 0.0, $13 = 0.0, $130 = 0.0, $131 = 0, $132 = 0, $133 = 0, $134 = 0, $135 = 0, $136 = 0, $137 = 0;
  10577. var $138 = 0, $14 = 0.0, $15 = 0, $16 = 0, $17 = 0.0, $18 = 0.0, $19 = 0.0, $20 = 0.0, $21 = 0.0, $22 = 0.0, $23 = 0.0, $24 = 0.0, $25 = 0, $26 = 0.0, $27 = 0, $28 = 0.0, $29 = 0, $3 = 0, $30 = 0.0, $31 = 0;
  10578. var $32 = 0.0, $33 = 0, $34 = 0.0, $35 = 0, $36 = 0.0, $37 = 0, $38 = 0.0, $39 = 0, $4 = 0.0, $40 = 0.0, $41 = 0, $42 = 0.0, $43 = 0, $44 = 0.0, $45 = 0, $46 = 0.0, $47 = 0.0, $48 = 0.0, $49 = 0.0, $5 = 0;
  10579. var $50 = 0.0, $51 = 0.0, $52 = 0.0, $53 = 0.0, $54 = 0.0, $55 = 0.0, $56 = 0.0, $57 = 0.0, $58 = 0.0, $59 = 0.0, $6 = 0.0, $60 = 0.0, $61 = 0.0, $62 = 0.0, $63 = 0.0, $64 = 0.0, $65 = 0.0, $66 = 0.0, $67 = 0.0, $68 = 0.0;
  10580. var $69 = 0.0, $7 = 0, $70 = 0.0, $71 = 0.0, $72 = 0.0, $73 = 0.0, $74 = 0.0, $75 = 0.0, $76 = 0.0, $77 = 0.0, $78 = 0.0, $79 = 0.0, $8 = 0.0, $80 = 0.0, $81 = 0.0, $82 = 0.0, $83 = 0.0, $84 = 0.0, $85 = 0.0, $86 = 0.0;
  10581. var $87 = 0.0, $88 = 0.0, $89 = 0.0, $9 = 0.0, $90 = 0.0, $91 = 0.0, $92 = 0.0, $93 = 0.0, $94 = 0.0, $95 = 0.0, $96 = 0.0, $97 = 0.0, $98 = 0.0, $99 = 0.0, $or$cond = 0, label = 0, sp = 0;
  10582. sp = STACKTOP;
  10583. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  10584. $3 = sp;
  10585. _MatrixIdentity($3);
  10586. $4 = +HEAPF32[$1>>2];
  10587. $5 = ((($1)) + 4|0);
  10588. $6 = +HEAPF32[$5>>2];
  10589. $7 = ((($1)) + 8|0);
  10590. $8 = +HEAPF32[$7>>2];
  10591. $9 = $4 * $4;
  10592. $10 = $6 * $6;
  10593. $11 = $9 + $10;
  10594. $12 = $8 * $8;
  10595. $13 = $11 + $12;
  10596. $14 = (+Math_sqrt((+$13)));
  10597. $15 = $14 != 1.0;
  10598. $16 = $14 != 0.0;
  10599. $or$cond = $15 & $16;
  10600. $17 = 1.0 / $14;
  10601. $18 = $4 * $17;
  10602. $19 = $6 * $17;
  10603. $20 = $8 * $17;
  10604. $$ = $or$cond ? $20 : $8;
  10605. $$221 = $or$cond ? $19 : $6;
  10606. $$222 = $or$cond ? $18 : $4;
  10607. $21 = (+Math_sin((+$2)));
  10608. $22 = (+Math_cos((+$2)));
  10609. $23 = 1.0 - $22;
  10610. $24 = +HEAPF32[$3>>2];
  10611. $25 = ((($3)) + 16|0);
  10612. $26 = +HEAPF32[$25>>2];
  10613. $27 = ((($3)) + 32|0);
  10614. $28 = +HEAPF32[$27>>2];
  10615. $29 = ((($3)) + 48|0);
  10616. $30 = +HEAPF32[$29>>2];
  10617. $31 = ((($3)) + 4|0);
  10618. $32 = +HEAPF32[$31>>2];
  10619. $33 = ((($3)) + 20|0);
  10620. $34 = +HEAPF32[$33>>2];
  10621. $35 = ((($3)) + 36|0);
  10622. $36 = +HEAPF32[$35>>2];
  10623. $37 = ((($3)) + 52|0);
  10624. $38 = +HEAPF32[$37>>2];
  10625. $39 = ((($3)) + 8|0);
  10626. $40 = +HEAPF32[$39>>2];
  10627. $41 = ((($3)) + 24|0);
  10628. $42 = +HEAPF32[$41>>2];
  10629. $43 = ((($3)) + 40|0);
  10630. $44 = +HEAPF32[$43>>2];
  10631. $45 = ((($3)) + 56|0);
  10632. $46 = +HEAPF32[$45>>2];
  10633. $47 = $$222 * $$222;
  10634. $48 = $23 * $47;
  10635. $49 = $22 + $48;
  10636. $50 = $$221 * $$222;
  10637. $51 = $23 * $50;
  10638. $52 = $21 * $$;
  10639. $53 = $52 + $51;
  10640. $54 = $$ * $$222;
  10641. $55 = $23 * $54;
  10642. $56 = $21 * $$221;
  10643. $57 = $55 - $56;
  10644. $58 = $51 - $52;
  10645. $59 = $$221 * $$221;
  10646. $60 = $23 * $59;
  10647. $61 = $22 + $60;
  10648. $62 = $$ * $$221;
  10649. $63 = $23 * $62;
  10650. $64 = $21 * $$222;
  10651. $65 = $64 + $63;
  10652. $66 = $56 + $55;
  10653. $67 = $63 - $64;
  10654. $68 = $$ * $$;
  10655. $69 = $23 * $68;
  10656. $70 = $22 + $69;
  10657. $71 = $24 * $49;
  10658. $72 = $53 * $32;
  10659. $73 = $71 + $72;
  10660. $74 = $57 * $40;
  10661. $75 = $73 + $74;
  10662. $76 = $26 * $49;
  10663. $77 = $53 * $34;
  10664. $78 = $76 + $77;
  10665. $79 = $57 * $42;
  10666. $80 = $78 + $79;
  10667. $81 = $28 * $49;
  10668. $82 = $53 * $36;
  10669. $83 = $81 + $82;
  10670. $84 = $57 * $44;
  10671. $85 = $83 + $84;
  10672. $86 = $30 * $49;
  10673. $87 = $53 * $38;
  10674. $88 = $86 + $87;
  10675. $89 = $57 * $46;
  10676. $90 = $88 + $89;
  10677. $91 = $24 * $58;
  10678. $92 = $61 * $32;
  10679. $93 = $91 + $92;
  10680. $94 = $65 * $40;
  10681. $95 = $93 + $94;
  10682. $96 = $26 * $58;
  10683. $97 = $61 * $34;
  10684. $98 = $96 + $97;
  10685. $99 = $65 * $42;
  10686. $100 = $98 + $99;
  10687. $101 = $28 * $58;
  10688. $102 = $61 * $36;
  10689. $103 = $101 + $102;
  10690. $104 = $65 * $44;
  10691. $105 = $103 + $104;
  10692. $106 = $30 * $58;
  10693. $107 = $61 * $38;
  10694. $108 = $106 + $107;
  10695. $109 = $65 * $46;
  10696. $110 = $108 + $109;
  10697. $111 = $24 * $66;
  10698. $112 = $67 * $32;
  10699. $113 = $111 + $112;
  10700. $114 = $70 * $40;
  10701. $115 = $113 + $114;
  10702. $116 = $26 * $66;
  10703. $117 = $67 * $34;
  10704. $118 = $116 + $117;
  10705. $119 = $70 * $42;
  10706. $120 = $118 + $119;
  10707. $121 = $28 * $66;
  10708. $122 = $67 * $36;
  10709. $123 = $121 + $122;
  10710. $124 = $70 * $44;
  10711. $125 = $123 + $124;
  10712. $126 = $30 * $66;
  10713. $127 = $67 * $38;
  10714. $128 = $126 + $127;
  10715. $129 = $70 * $46;
  10716. $130 = $128 + $129;
  10717. $131 = ((($3)) + 12|0);
  10718. $132 = HEAP32[$131>>2]|0;
  10719. $133 = ((($3)) + 28|0);
  10720. $134 = HEAP32[$133>>2]|0;
  10721. $135 = ((($3)) + 44|0);
  10722. $136 = HEAP32[$135>>2]|0;
  10723. $137 = ((($3)) + 60|0);
  10724. $138 = HEAP32[$137>>2]|0;
  10725. HEAPF32[$0>>2] = $75;
  10726. $$sroa$4$0$$sroa_idx187 = ((($0)) + 4|0);
  10727. HEAPF32[$$sroa$4$0$$sroa_idx187>>2] = $95;
  10728. $$sroa$5$0$$sroa_idx189 = ((($0)) + 8|0);
  10729. HEAPF32[$$sroa$5$0$$sroa_idx189>>2] = $115;
  10730. $$sroa$6$0$$sroa_idx191 = ((($0)) + 12|0);
  10731. HEAP32[$$sroa$6$0$$sroa_idx191>>2] = $132;
  10732. $$sroa$7$0$$sroa_idx193 = ((($0)) + 16|0);
  10733. HEAPF32[$$sroa$7$0$$sroa_idx193>>2] = $80;
  10734. $$sroa$8$0$$sroa_idx195 = ((($0)) + 20|0);
  10735. HEAPF32[$$sroa$8$0$$sroa_idx195>>2] = $100;
  10736. $$sroa$9$0$$sroa_idx197 = ((($0)) + 24|0);
  10737. HEAPF32[$$sroa$9$0$$sroa_idx197>>2] = $120;
  10738. $$sroa$10$0$$sroa_idx199 = ((($0)) + 28|0);
  10739. HEAP32[$$sroa$10$0$$sroa_idx199>>2] = $134;
  10740. $$sroa$11$0$$sroa_idx201 = ((($0)) + 32|0);
  10741. HEAPF32[$$sroa$11$0$$sroa_idx201>>2] = $85;
  10742. $$sroa$12$0$$sroa_idx203 = ((($0)) + 36|0);
  10743. HEAPF32[$$sroa$12$0$$sroa_idx203>>2] = $105;
  10744. $$sroa$13$0$$sroa_idx205 = ((($0)) + 40|0);
  10745. HEAPF32[$$sroa$13$0$$sroa_idx205>>2] = $125;
  10746. $$sroa$14$0$$sroa_idx207 = ((($0)) + 44|0);
  10747. HEAP32[$$sroa$14$0$$sroa_idx207>>2] = $136;
  10748. $$sroa$15$0$$sroa_idx209 = ((($0)) + 48|0);
  10749. HEAPF32[$$sroa$15$0$$sroa_idx209>>2] = $90;
  10750. $$sroa$16$0$$sroa_idx211 = ((($0)) + 52|0);
  10751. HEAPF32[$$sroa$16$0$$sroa_idx211>>2] = $110;
  10752. $$sroa$17$0$$sroa_idx213 = ((($0)) + 56|0);
  10753. HEAPF32[$$sroa$17$0$$sroa_idx213>>2] = $130;
  10754. $$sroa$18$0$$sroa_idx215 = ((($0)) + 60|0);
  10755. HEAP32[$$sroa$18$0$$sroa_idx215>>2] = $138;
  10756. STACKTOP = sp;return;
  10757. }
  10758. function _MatrixScale($0,$1,$2,$3) {
  10759. $0 = $0|0;
  10760. $1 = +$1;
  10761. $2 = +$2;
  10762. $3 = +$3;
  10763. var $$sroa$5$0$$sroa_idx = 0, $$sroa$55$0$$sroa_idx6 = 0, $$sroa$6$0$$sroa_idx = 0, $$sroa$611$0$$sroa_idx12 = 0, $$sroa$7$0$$sroa_idx = 0, $$sroa$717$0$$sroa_idx18 = 0, label = 0, sp = 0;
  10764. sp = STACKTOP;
  10765. HEAPF32[$0>>2] = $1;
  10766. $$sroa$5$0$$sroa_idx = ((($0)) + 4|0);
  10767. ;HEAP32[$$sroa$5$0$$sroa_idx>>2]=0|0;HEAP32[$$sroa$5$0$$sroa_idx+4>>2]=0|0;HEAP32[$$sroa$5$0$$sroa_idx+8>>2]=0|0;HEAP32[$$sroa$5$0$$sroa_idx+12>>2]=0|0;
  10768. $$sroa$55$0$$sroa_idx6 = ((($0)) + 20|0);
  10769. HEAPF32[$$sroa$55$0$$sroa_idx6>>2] = $2;
  10770. $$sroa$6$0$$sroa_idx = ((($0)) + 24|0);
  10771. ;HEAP32[$$sroa$6$0$$sroa_idx>>2]=0|0;HEAP32[$$sroa$6$0$$sroa_idx+4>>2]=0|0;HEAP32[$$sroa$6$0$$sroa_idx+8>>2]=0|0;HEAP32[$$sroa$6$0$$sroa_idx+12>>2]=0|0;
  10772. $$sroa$611$0$$sroa_idx12 = ((($0)) + 40|0);
  10773. HEAPF32[$$sroa$611$0$$sroa_idx12>>2] = $3;
  10774. $$sroa$7$0$$sroa_idx = ((($0)) + 44|0);
  10775. ;HEAP32[$$sroa$7$0$$sroa_idx>>2]=0|0;HEAP32[$$sroa$7$0$$sroa_idx+4>>2]=0|0;HEAP32[$$sroa$7$0$$sroa_idx+8>>2]=0|0;HEAP32[$$sroa$7$0$$sroa_idx+12>>2]=0|0;
  10776. $$sroa$717$0$$sroa_idx18 = ((($0)) + 60|0);
  10777. HEAPF32[$$sroa$717$0$$sroa_idx18>>2] = 1.0;
  10778. return;
  10779. }
  10780. function _MatrixMultiply($0,$1,$2) {
  10781. $0 = $0|0;
  10782. $1 = $1|0;
  10783. $2 = $2|0;
  10784. var $$sroa$10$0$$sroa_idx14 = 0, $$sroa$11$0$$sroa_idx16 = 0, $$sroa$12$0$$sroa_idx18 = 0, $$sroa$13$0$$sroa_idx20 = 0, $$sroa$14$0$$sroa_idx22 = 0, $$sroa$15$0$$sroa_idx24 = 0, $$sroa$16$0$$sroa_idx26 = 0, $$sroa$17$0$$sroa_idx28 = 0, $$sroa$18$0$$sroa_idx30 = 0, $$sroa$4$0$$sroa_idx2 = 0, $$sroa$5$0$$sroa_idx4 = 0, $$sroa$6$0$$sroa_idx6 = 0, $$sroa$7$0$$sroa_idx8 = 0, $$sroa$8$0$$sroa_idx10 = 0, $$sroa$9$0$$sroa_idx12 = 0, $10 = 0.0, $100 = 0.0, $101 = 0.0, $102 = 0.0, $103 = 0.0;
  10785. var $104 = 0.0, $105 = 0, $106 = 0.0, $107 = 0.0, $108 = 0, $109 = 0.0, $11 = 0.0, $110 = 0.0, $111 = 0.0, $112 = 0, $113 = 0.0, $114 = 0.0, $115 = 0.0, $116 = 0, $117 = 0.0, $118 = 0.0, $119 = 0.0, $12 = 0, $120 = 0.0, $121 = 0.0;
  10786. var $122 = 0.0, $123 = 0.0, $124 = 0.0, $125 = 0.0, $126 = 0.0, $127 = 0.0, $128 = 0.0, $129 = 0.0, $13 = 0.0, $130 = 0.0, $131 = 0.0, $132 = 0.0, $133 = 0.0, $134 = 0.0, $135 = 0.0, $136 = 0.0, $137 = 0.0, $138 = 0.0, $139 = 0.0, $14 = 0;
  10787. var $140 = 0.0, $141 = 0, $142 = 0.0, $143 = 0.0, $144 = 0, $145 = 0.0, $146 = 0.0, $147 = 0.0, $148 = 0, $149 = 0.0, $15 = 0.0, $150 = 0.0, $151 = 0.0, $152 = 0, $153 = 0.0, $154 = 0.0, $155 = 0.0, $156 = 0.0, $157 = 0.0, $158 = 0.0;
  10788. var $159 = 0.0, $16 = 0.0, $160 = 0.0, $161 = 0.0, $162 = 0.0, $163 = 0.0, $164 = 0.0, $165 = 0.0, $166 = 0.0, $167 = 0.0, $168 = 0.0, $169 = 0.0, $17 = 0.0, $170 = 0.0, $171 = 0.0, $172 = 0.0, $173 = 0.0, $174 = 0.0, $175 = 0.0, $176 = 0.0;
  10789. var $18 = 0, $19 = 0.0, $20 = 0, $21 = 0.0, $22 = 0.0, $23 = 0.0, $24 = 0, $25 = 0.0, $26 = 0.0, $27 = 0, $28 = 0.0, $29 = 0.0, $3 = 0.0, $30 = 0.0, $31 = 0, $32 = 0.0, $33 = 0.0, $34 = 0.0, $35 = 0, $36 = 0.0;
  10790. var $37 = 0.0, $38 = 0.0, $39 = 0, $4 = 0.0, $40 = 0.0, $41 = 0.0, $42 = 0, $43 = 0.0, $44 = 0.0, $45 = 0.0, $46 = 0, $47 = 0.0, $48 = 0.0, $49 = 0.0, $5 = 0.0, $50 = 0, $51 = 0.0, $52 = 0.0, $53 = 0.0, $54 = 0;
  10791. var $55 = 0.0, $56 = 0.0, $57 = 0, $58 = 0.0, $59 = 0.0, $6 = 0, $60 = 0.0, $61 = 0, $62 = 0.0, $63 = 0.0, $64 = 0.0, $65 = 0, $66 = 0.0, $67 = 0.0, $68 = 0.0, $69 = 0, $7 = 0.0, $70 = 0.0, $71 = 0.0, $72 = 0;
  10792. var $73 = 0.0, $74 = 0.0, $75 = 0.0, $76 = 0, $77 = 0.0, $78 = 0.0, $79 = 0.0, $8 = 0, $80 = 0, $81 = 0.0, $82 = 0.0, $83 = 0.0, $84 = 0.0, $85 = 0.0, $86 = 0.0, $87 = 0.0, $88 = 0.0, $89 = 0.0, $9 = 0.0, $90 = 0.0;
  10793. var $91 = 0.0, $92 = 0.0, $93 = 0.0, $94 = 0.0, $95 = 0.0, $96 = 0.0, $97 = 0.0, $98 = 0.0, $99 = 0.0, label = 0, sp = 0;
  10794. sp = STACKTOP;
  10795. $3 = +HEAPF32[$2>>2];
  10796. $4 = +HEAPF32[$1>>2];
  10797. $5 = $3 * $4;
  10798. $6 = ((($2)) + 16|0);
  10799. $7 = +HEAPF32[$6>>2];
  10800. $8 = ((($1)) + 4|0);
  10801. $9 = +HEAPF32[$8>>2];
  10802. $10 = $7 * $9;
  10803. $11 = $5 + $10;
  10804. $12 = ((($2)) + 32|0);
  10805. $13 = +HEAPF32[$12>>2];
  10806. $14 = ((($1)) + 8|0);
  10807. $15 = +HEAPF32[$14>>2];
  10808. $16 = $13 * $15;
  10809. $17 = $11 + $16;
  10810. $18 = ((($2)) + 48|0);
  10811. $19 = +HEAPF32[$18>>2];
  10812. $20 = ((($1)) + 12|0);
  10813. $21 = +HEAPF32[$20>>2];
  10814. $22 = $19 * $21;
  10815. $23 = $17 + $22;
  10816. $24 = ((($1)) + 16|0);
  10817. $25 = +HEAPF32[$24>>2];
  10818. $26 = $3 * $25;
  10819. $27 = ((($1)) + 20|0);
  10820. $28 = +HEAPF32[$27>>2];
  10821. $29 = $7 * $28;
  10822. $30 = $26 + $29;
  10823. $31 = ((($1)) + 24|0);
  10824. $32 = +HEAPF32[$31>>2];
  10825. $33 = $13 * $32;
  10826. $34 = $30 + $33;
  10827. $35 = ((($1)) + 28|0);
  10828. $36 = +HEAPF32[$35>>2];
  10829. $37 = $19 * $36;
  10830. $38 = $34 + $37;
  10831. $39 = ((($1)) + 32|0);
  10832. $40 = +HEAPF32[$39>>2];
  10833. $41 = $3 * $40;
  10834. $42 = ((($1)) + 36|0);
  10835. $43 = +HEAPF32[$42>>2];
  10836. $44 = $7 * $43;
  10837. $45 = $41 + $44;
  10838. $46 = ((($1)) + 40|0);
  10839. $47 = +HEAPF32[$46>>2];
  10840. $48 = $13 * $47;
  10841. $49 = $45 + $48;
  10842. $50 = ((($1)) + 44|0);
  10843. $51 = +HEAPF32[$50>>2];
  10844. $52 = $19 * $51;
  10845. $53 = $49 + $52;
  10846. $54 = ((($1)) + 48|0);
  10847. $55 = +HEAPF32[$54>>2];
  10848. $56 = $3 * $55;
  10849. $57 = ((($1)) + 52|0);
  10850. $58 = +HEAPF32[$57>>2];
  10851. $59 = $7 * $58;
  10852. $60 = $56 + $59;
  10853. $61 = ((($1)) + 56|0);
  10854. $62 = +HEAPF32[$61>>2];
  10855. $63 = $13 * $62;
  10856. $64 = $60 + $63;
  10857. $65 = ((($1)) + 60|0);
  10858. $66 = +HEAPF32[$65>>2];
  10859. $67 = $19 * $66;
  10860. $68 = $64 + $67;
  10861. $69 = ((($2)) + 4|0);
  10862. $70 = +HEAPF32[$69>>2];
  10863. $71 = $4 * $70;
  10864. $72 = ((($2)) + 20|0);
  10865. $73 = +HEAPF32[$72>>2];
  10866. $74 = $9 * $73;
  10867. $75 = $71 + $74;
  10868. $76 = ((($2)) + 36|0);
  10869. $77 = +HEAPF32[$76>>2];
  10870. $78 = $15 * $77;
  10871. $79 = $75 + $78;
  10872. $80 = ((($2)) + 52|0);
  10873. $81 = +HEAPF32[$80>>2];
  10874. $82 = $21 * $81;
  10875. $83 = $79 + $82;
  10876. $84 = $25 * $70;
  10877. $85 = $28 * $73;
  10878. $86 = $84 + $85;
  10879. $87 = $32 * $77;
  10880. $88 = $86 + $87;
  10881. $89 = $36 * $81;
  10882. $90 = $88 + $89;
  10883. $91 = $40 * $70;
  10884. $92 = $43 * $73;
  10885. $93 = $91 + $92;
  10886. $94 = $47 * $77;
  10887. $95 = $93 + $94;
  10888. $96 = $51 * $81;
  10889. $97 = $95 + $96;
  10890. $98 = $55 * $70;
  10891. $99 = $58 * $73;
  10892. $100 = $98 + $99;
  10893. $101 = $62 * $77;
  10894. $102 = $100 + $101;
  10895. $103 = $66 * $81;
  10896. $104 = $102 + $103;
  10897. $105 = ((($2)) + 8|0);
  10898. $106 = +HEAPF32[$105>>2];
  10899. $107 = $4 * $106;
  10900. $108 = ((($2)) + 24|0);
  10901. $109 = +HEAPF32[$108>>2];
  10902. $110 = $9 * $109;
  10903. $111 = $107 + $110;
  10904. $112 = ((($2)) + 40|0);
  10905. $113 = +HEAPF32[$112>>2];
  10906. $114 = $15 * $113;
  10907. $115 = $111 + $114;
  10908. $116 = ((($2)) + 56|0);
  10909. $117 = +HEAPF32[$116>>2];
  10910. $118 = $21 * $117;
  10911. $119 = $115 + $118;
  10912. $120 = $25 * $106;
  10913. $121 = $28 * $109;
  10914. $122 = $120 + $121;
  10915. $123 = $32 * $113;
  10916. $124 = $122 + $123;
  10917. $125 = $36 * $117;
  10918. $126 = $124 + $125;
  10919. $127 = $40 * $106;
  10920. $128 = $43 * $109;
  10921. $129 = $127 + $128;
  10922. $130 = $47 * $113;
  10923. $131 = $129 + $130;
  10924. $132 = $51 * $117;
  10925. $133 = $131 + $132;
  10926. $134 = $55 * $106;
  10927. $135 = $58 * $109;
  10928. $136 = $134 + $135;
  10929. $137 = $62 * $113;
  10930. $138 = $136 + $137;
  10931. $139 = $66 * $117;
  10932. $140 = $138 + $139;
  10933. $141 = ((($2)) + 12|0);
  10934. $142 = +HEAPF32[$141>>2];
  10935. $143 = $4 * $142;
  10936. $144 = ((($2)) + 28|0);
  10937. $145 = +HEAPF32[$144>>2];
  10938. $146 = $9 * $145;
  10939. $147 = $143 + $146;
  10940. $148 = ((($2)) + 44|0);
  10941. $149 = +HEAPF32[$148>>2];
  10942. $150 = $15 * $149;
  10943. $151 = $147 + $150;
  10944. $152 = ((($2)) + 60|0);
  10945. $153 = +HEAPF32[$152>>2];
  10946. $154 = $21 * $153;
  10947. $155 = $151 + $154;
  10948. $156 = $25 * $142;
  10949. $157 = $28 * $145;
  10950. $158 = $156 + $157;
  10951. $159 = $32 * $149;
  10952. $160 = $158 + $159;
  10953. $161 = $36 * $153;
  10954. $162 = $160 + $161;
  10955. $163 = $40 * $142;
  10956. $164 = $43 * $145;
  10957. $165 = $163 + $164;
  10958. $166 = $47 * $149;
  10959. $167 = $165 + $166;
  10960. $168 = $51 * $153;
  10961. $169 = $167 + $168;
  10962. $170 = $55 * $142;
  10963. $171 = $58 * $145;
  10964. $172 = $170 + $171;
  10965. $173 = $62 * $149;
  10966. $174 = $172 + $173;
  10967. $175 = $66 * $153;
  10968. $176 = $174 + $175;
  10969. HEAPF32[$0>>2] = $23;
  10970. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  10971. HEAPF32[$$sroa$4$0$$sroa_idx2>>2] = $83;
  10972. $$sroa$5$0$$sroa_idx4 = ((($0)) + 8|0);
  10973. HEAPF32[$$sroa$5$0$$sroa_idx4>>2] = $119;
  10974. $$sroa$6$0$$sroa_idx6 = ((($0)) + 12|0);
  10975. HEAPF32[$$sroa$6$0$$sroa_idx6>>2] = $155;
  10976. $$sroa$7$0$$sroa_idx8 = ((($0)) + 16|0);
  10977. HEAPF32[$$sroa$7$0$$sroa_idx8>>2] = $38;
  10978. $$sroa$8$0$$sroa_idx10 = ((($0)) + 20|0);
  10979. HEAPF32[$$sroa$8$0$$sroa_idx10>>2] = $90;
  10980. $$sroa$9$0$$sroa_idx12 = ((($0)) + 24|0);
  10981. HEAPF32[$$sroa$9$0$$sroa_idx12>>2] = $126;
  10982. $$sroa$10$0$$sroa_idx14 = ((($0)) + 28|0);
  10983. HEAPF32[$$sroa$10$0$$sroa_idx14>>2] = $162;
  10984. $$sroa$11$0$$sroa_idx16 = ((($0)) + 32|0);
  10985. HEAPF32[$$sroa$11$0$$sroa_idx16>>2] = $53;
  10986. $$sroa$12$0$$sroa_idx18 = ((($0)) + 36|0);
  10987. HEAPF32[$$sroa$12$0$$sroa_idx18>>2] = $97;
  10988. $$sroa$13$0$$sroa_idx20 = ((($0)) + 40|0);
  10989. HEAPF32[$$sroa$13$0$$sroa_idx20>>2] = $133;
  10990. $$sroa$14$0$$sroa_idx22 = ((($0)) + 44|0);
  10991. HEAPF32[$$sroa$14$0$$sroa_idx22>>2] = $169;
  10992. $$sroa$15$0$$sroa_idx24 = ((($0)) + 48|0);
  10993. HEAPF32[$$sroa$15$0$$sroa_idx24>>2] = $68;
  10994. $$sroa$16$0$$sroa_idx26 = ((($0)) + 52|0);
  10995. HEAPF32[$$sroa$16$0$$sroa_idx26>>2] = $104;
  10996. $$sroa$17$0$$sroa_idx28 = ((($0)) + 56|0);
  10997. HEAPF32[$$sroa$17$0$$sroa_idx28>>2] = $140;
  10998. $$sroa$18$0$$sroa_idx30 = ((($0)) + 60|0);
  10999. HEAPF32[$$sroa$18$0$$sroa_idx30>>2] = $176;
  11000. return;
  11001. }
  11002. function _MatrixFrustum($0,$1,$2,$3,$4,$5,$6) {
  11003. $0 = $0|0;
  11004. $1 = +$1;
  11005. $2 = +$2;
  11006. $3 = +$3;
  11007. $4 = +$4;
  11008. $5 = +$5;
  11009. $6 = +$6;
  11010. var $$sroa$10$0$$sroa_idx24 = 0, $$sroa$11$0$$sroa_idx26 = 0, $$sroa$12$0$$sroa_idx28 = 0, $$sroa$13$0$$sroa_idx30 = 0, $$sroa$14$0$$sroa_idx32 = 0, $$sroa$15$0$$sroa_idx34 = 0, $$sroa$16$0$$sroa_idx36 = 0, $$sroa$17$0$$sroa_idx38 = 0, $$sroa$18$0$$sroa_idx40 = 0, $$sroa$4$0$$sroa_idx12 = 0, $$sroa$5$0$$sroa_idx14 = 0, $$sroa$6$0$$sroa_idx16 = 0, $$sroa$7$0$$sroa_idx18 = 0, $$sroa$8$0$$sroa_idx20 = 0, $$sroa$9$0$$sroa_idx22 = 0, $10 = 0.0, $11 = 0.0, $12 = 0.0, $13 = 0.0, $14 = 0.0;
  11011. var $15 = 0.0, $16 = 0.0, $17 = 0.0, $18 = 0.0, $19 = 0.0, $20 = 0.0, $21 = 0.0, $22 = 0.0, $23 = 0.0, $24 = 0.0, $25 = 0.0, $26 = 0.0, $27 = 0.0, $28 = 0.0, $29 = 0.0, $30 = 0.0, $31 = 0.0, $32 = 0.0, $33 = 0.0, $34 = 0.0;
  11012. var $35 = 0.0, $7 = 0.0, $8 = 0.0, $9 = 0.0, label = 0, sp = 0;
  11013. sp = STACKTOP;
  11014. $7 = $2 - $1;
  11015. $8 = $7;
  11016. $9 = $4 - $3;
  11017. $10 = $9;
  11018. $11 = $6 - $5;
  11019. $12 = $11;
  11020. $13 = $5 * 2.0;
  11021. $14 = $8;
  11022. $15 = $13 / $14;
  11023. $16 = $15;
  11024. $17 = $10;
  11025. $18 = $13 / $17;
  11026. $19 = $18;
  11027. $20 = $1 + $2;
  11028. $21 = $20 / $14;
  11029. $22 = $21;
  11030. $23 = $3 + $4;
  11031. $24 = $23 / $17;
  11032. $25 = $24;
  11033. $26 = $5 + $6;
  11034. $27 = -$26;
  11035. $28 = $12;
  11036. $29 = $27 / $28;
  11037. $30 = $29;
  11038. $31 = $5 * $6;
  11039. $32 = $31 * 2.0;
  11040. $33 = -$32;
  11041. $34 = $33 / $28;
  11042. $35 = $34;
  11043. HEAPF32[$0>>2] = $16;
  11044. $$sroa$4$0$$sroa_idx12 = ((($0)) + 4|0);
  11045. HEAPF32[$$sroa$4$0$$sroa_idx12>>2] = 0.0;
  11046. $$sroa$5$0$$sroa_idx14 = ((($0)) + 8|0);
  11047. HEAPF32[$$sroa$5$0$$sroa_idx14>>2] = $22;
  11048. $$sroa$6$0$$sroa_idx16 = ((($0)) + 12|0);
  11049. HEAPF32[$$sroa$6$0$$sroa_idx16>>2] = 0.0;
  11050. $$sroa$7$0$$sroa_idx18 = ((($0)) + 16|0);
  11051. HEAPF32[$$sroa$7$0$$sroa_idx18>>2] = 0.0;
  11052. $$sroa$8$0$$sroa_idx20 = ((($0)) + 20|0);
  11053. HEAPF32[$$sroa$8$0$$sroa_idx20>>2] = $19;
  11054. $$sroa$9$0$$sroa_idx22 = ((($0)) + 24|0);
  11055. HEAPF32[$$sroa$9$0$$sroa_idx22>>2] = $25;
  11056. $$sroa$10$0$$sroa_idx24 = ((($0)) + 28|0);
  11057. HEAPF32[$$sroa$10$0$$sroa_idx24>>2] = 0.0;
  11058. $$sroa$11$0$$sroa_idx26 = ((($0)) + 32|0);
  11059. HEAPF32[$$sroa$11$0$$sroa_idx26>>2] = 0.0;
  11060. $$sroa$12$0$$sroa_idx28 = ((($0)) + 36|0);
  11061. HEAPF32[$$sroa$12$0$$sroa_idx28>>2] = 0.0;
  11062. $$sroa$13$0$$sroa_idx30 = ((($0)) + 40|0);
  11063. HEAPF32[$$sroa$13$0$$sroa_idx30>>2] = $30;
  11064. $$sroa$14$0$$sroa_idx32 = ((($0)) + 44|0);
  11065. HEAPF32[$$sroa$14$0$$sroa_idx32>>2] = $35;
  11066. $$sroa$15$0$$sroa_idx34 = ((($0)) + 48|0);
  11067. HEAPF32[$$sroa$15$0$$sroa_idx34>>2] = 0.0;
  11068. $$sroa$16$0$$sroa_idx36 = ((($0)) + 52|0);
  11069. HEAPF32[$$sroa$16$0$$sroa_idx36>>2] = 0.0;
  11070. $$sroa$17$0$$sroa_idx38 = ((($0)) + 56|0);
  11071. HEAPF32[$$sroa$17$0$$sroa_idx38>>2] = -1.0;
  11072. $$sroa$18$0$$sroa_idx40 = ((($0)) + 60|0);
  11073. HEAPF32[$$sroa$18$0$$sroa_idx40>>2] = 0.0;
  11074. return;
  11075. }
  11076. function _MatrixPerspective($0,$1,$2,$3,$4) {
  11077. $0 = $0|0;
  11078. $1 = +$1;
  11079. $2 = +$2;
  11080. $3 = +$3;
  11081. $4 = +$4;
  11082. var $10 = 0.0, $11 = 0.0, $5 = 0.0, $6 = 0.0, $7 = 0.0, $8 = 0.0, $9 = 0.0, label = 0, sp = 0;
  11083. sp = STACKTOP;
  11084. $5 = $1 * 3.1415927410125732;
  11085. $6 = $5 / 360.0;
  11086. $7 = (+Math_tan((+$6)));
  11087. $8 = $7 * $3;
  11088. $9 = $8 * $2;
  11089. $10 = -$9;
  11090. $11 = -$8;
  11091. _MatrixFrustum($0,$10,$9,$11,$8,$3,$4);
  11092. return;
  11093. }
  11094. function _MatrixOrtho($0,$1,$2,$3,$4,$5,$6) {
  11095. $0 = $0|0;
  11096. $1 = +$1;
  11097. $2 = +$2;
  11098. $3 = +$3;
  11099. $4 = +$4;
  11100. $5 = +$5;
  11101. $6 = +$6;
  11102. var $$sroa$10$0$$sroa_idx24 = 0, $$sroa$11$0$$sroa_idx26 = 0, $$sroa$12$0$$sroa_idx28 = 0, $$sroa$13$0$$sroa_idx30 = 0, $$sroa$14$0$$sroa_idx32 = 0, $$sroa$15$0$$sroa_idx34 = 0, $$sroa$16$0$$sroa_idx36 = 0, $$sroa$17$0$$sroa_idx38 = 0, $$sroa$18$0$$sroa_idx40 = 0, $$sroa$4$0$$sroa_idx12 = 0, $$sroa$5$0$$sroa_idx14 = 0, $$sroa$6$0$$sroa_idx16 = 0, $$sroa$7$0$$sroa_idx18 = 0, $$sroa$8$0$$sroa_idx20 = 0, $$sroa$9$0$$sroa_idx22 = 0, $10 = 0.0, $11 = 0.0, $12 = 0.0, $13 = 0.0, $14 = 0.0;
  11103. var $15 = 0.0, $16 = 0.0, $17 = 0.0, $18 = 0.0, $19 = 0.0, $20 = 0.0, $21 = 0.0, $22 = 0.0, $23 = 0.0, $24 = 0.0, $25 = 0.0, $26 = 0.0, $27 = 0.0, $28 = 0.0, $29 = 0.0, $30 = 0.0, $7 = 0.0, $8 = 0.0, $9 = 0.0, label = 0;
  11104. var sp = 0;
  11105. sp = STACKTOP;
  11106. $7 = $2 - $1;
  11107. $8 = $7;
  11108. $9 = $4 - $3;
  11109. $10 = $9;
  11110. $11 = $6 - $5;
  11111. $12 = $11;
  11112. $13 = 2.0 / $8;
  11113. $14 = 2.0 / $10;
  11114. $15 = -2.0 / $12;
  11115. $16 = $1 + $2;
  11116. $17 = -$16;
  11117. $18 = $8;
  11118. $19 = $17 / $18;
  11119. $20 = $19;
  11120. $21 = $3 + $4;
  11121. $22 = -$21;
  11122. $23 = $10;
  11123. $24 = $22 / $23;
  11124. $25 = $24;
  11125. $26 = $5 + $6;
  11126. $27 = -$26;
  11127. $28 = $12;
  11128. $29 = $27 / $28;
  11129. $30 = $29;
  11130. HEAPF32[$0>>2] = $13;
  11131. $$sroa$4$0$$sroa_idx12 = ((($0)) + 4|0);
  11132. HEAPF32[$$sroa$4$0$$sroa_idx12>>2] = 0.0;
  11133. $$sroa$5$0$$sroa_idx14 = ((($0)) + 8|0);
  11134. HEAPF32[$$sroa$5$0$$sroa_idx14>>2] = 0.0;
  11135. $$sroa$6$0$$sroa_idx16 = ((($0)) + 12|0);
  11136. HEAPF32[$$sroa$6$0$$sroa_idx16>>2] = $20;
  11137. $$sroa$7$0$$sroa_idx18 = ((($0)) + 16|0);
  11138. HEAPF32[$$sroa$7$0$$sroa_idx18>>2] = 0.0;
  11139. $$sroa$8$0$$sroa_idx20 = ((($0)) + 20|0);
  11140. HEAPF32[$$sroa$8$0$$sroa_idx20>>2] = $14;
  11141. $$sroa$9$0$$sroa_idx22 = ((($0)) + 24|0);
  11142. HEAPF32[$$sroa$9$0$$sroa_idx22>>2] = 0.0;
  11143. $$sroa$10$0$$sroa_idx24 = ((($0)) + 28|0);
  11144. HEAPF32[$$sroa$10$0$$sroa_idx24>>2] = $25;
  11145. $$sroa$11$0$$sroa_idx26 = ((($0)) + 32|0);
  11146. HEAPF32[$$sroa$11$0$$sroa_idx26>>2] = 0.0;
  11147. $$sroa$12$0$$sroa_idx28 = ((($0)) + 36|0);
  11148. HEAPF32[$$sroa$12$0$$sroa_idx28>>2] = 0.0;
  11149. $$sroa$13$0$$sroa_idx30 = ((($0)) + 40|0);
  11150. HEAPF32[$$sroa$13$0$$sroa_idx30>>2] = $15;
  11151. $$sroa$14$0$$sroa_idx32 = ((($0)) + 44|0);
  11152. HEAPF32[$$sroa$14$0$$sroa_idx32>>2] = $30;
  11153. $$sroa$15$0$$sroa_idx34 = ((($0)) + 48|0);
  11154. HEAPF32[$$sroa$15$0$$sroa_idx34>>2] = 0.0;
  11155. $$sroa$16$0$$sroa_idx36 = ((($0)) + 52|0);
  11156. HEAPF32[$$sroa$16$0$$sroa_idx36>>2] = 0.0;
  11157. $$sroa$17$0$$sroa_idx38 = ((($0)) + 56|0);
  11158. HEAPF32[$$sroa$17$0$$sroa_idx38>>2] = 0.0;
  11159. $$sroa$18$0$$sroa_idx40 = ((($0)) + 60|0);
  11160. HEAPF32[$$sroa$18$0$$sroa_idx40>>2] = 1.0;
  11161. return;
  11162. }
  11163. function _MatrixLookAt($0,$1,$2,$3) {
  11164. $0 = $0|0;
  11165. $1 = $1|0;
  11166. $2 = $2|0;
  11167. $3 = $3|0;
  11168. var $$byval_copy4 = 0, $$byval_copy5 = 0, $$sroa$10$0$$sroa_idx14 = 0, $$sroa$11$0$$sroa_idx16 = 0, $$sroa$12$0$$sroa_idx18 = 0, $$sroa$13$0$$sroa_idx20 = 0, $$sroa$14$0$$sroa_idx22 = 0, $$sroa$15$0$$sroa_idx24 = 0, $$sroa$16$0$$sroa_idx26 = 0, $$sroa$17$0$$sroa_idx28 = 0, $$sroa$18$0$$sroa_idx30 = 0, $$sroa$4$0$$sroa_idx2 = 0, $$sroa$5$0$$sroa_idx4 = 0, $$sroa$6$0$$sroa_idx6 = 0, $$sroa$7$0$$sroa_idx8 = 0, $$sroa$8$0$$sroa_idx10 = 0, $$sroa$9$0$$sroa_idx12 = 0, $10 = 0, $11 = 0.0, $12 = 0.0;
  11169. var $13 = 0.0, $14 = 0, $15 = 0.0, $16 = 0.0, $17 = 0.0, $18 = 0, $19 = 0.0, $20 = 0.0, $21 = 0.0, $22 = 0.0, $23 = 0.0, $24 = 0, $25 = 0.0, $26 = 0, $27 = 0.0, $28 = 0.0, $29 = 0.0, $30 = 0.0, $31 = 0.0, $32 = 0.0;
  11170. var $33 = 0.0, $34 = 0.0, $35 = 0, $36 = 0.0, $37 = 0, $38 = 0.0, $39 = 0.0, $4 = 0, $40 = 0.0, $41 = 0.0, $42 = 0.0, $43 = 0.0, $44 = 0.0, $5 = 0, $6 = 0, $7 = 0.0, $8 = 0, $9 = 0.0, label = 0, sp = 0;
  11171. sp = STACKTOP;
  11172. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  11173. $$byval_copy5 = sp + 48|0;
  11174. $$byval_copy4 = sp + 36|0;
  11175. $4 = sp + 24|0;
  11176. $5 = sp + 12|0;
  11177. $6 = sp;
  11178. ;HEAP32[$$byval_copy4>>2]=HEAP32[$1>>2]|0;HEAP32[$$byval_copy4+4>>2]=HEAP32[$1+4>>2]|0;HEAP32[$$byval_copy4+8>>2]=HEAP32[$1+8>>2]|0;
  11179. ;HEAP32[$$byval_copy5>>2]=HEAP32[$2>>2]|0;HEAP32[$$byval_copy5+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$$byval_copy5+8>>2]=HEAP32[$2+8>>2]|0;
  11180. _VectorSubtract($4,$$byval_copy4,$$byval_copy5);
  11181. _VectorNormalize($4);
  11182. ;HEAP32[$$byval_copy4>>2]=HEAP32[$3>>2]|0;HEAP32[$$byval_copy4+4>>2]=HEAP32[$3+4>>2]|0;HEAP32[$$byval_copy4+8>>2]=HEAP32[$3+8>>2]|0;
  11183. ;HEAP32[$$byval_copy5>>2]=HEAP32[$4>>2]|0;HEAP32[$$byval_copy5+4>>2]=HEAP32[$4+4>>2]|0;HEAP32[$$byval_copy5+8>>2]=HEAP32[$4+8>>2]|0;
  11184. _VectorCrossProduct($5,$$byval_copy4,$$byval_copy5);
  11185. _VectorNormalize($5);
  11186. ;HEAP32[$$byval_copy4>>2]=HEAP32[$4>>2]|0;HEAP32[$$byval_copy4+4>>2]=HEAP32[$4+4>>2]|0;HEAP32[$$byval_copy4+8>>2]=HEAP32[$4+8>>2]|0;
  11187. ;HEAP32[$$byval_copy5>>2]=HEAP32[$5>>2]|0;HEAP32[$$byval_copy5+4>>2]=HEAP32[$5+4>>2]|0;HEAP32[$$byval_copy5+8>>2]=HEAP32[$5+8>>2]|0;
  11188. _VectorCrossProduct($6,$$byval_copy4,$$byval_copy5);
  11189. _VectorNormalize($6);
  11190. $7 = +HEAPF32[$5>>2];
  11191. $8 = ((($5)) + 4|0);
  11192. $9 = +HEAPF32[$8>>2];
  11193. $10 = ((($5)) + 8|0);
  11194. $11 = +HEAPF32[$10>>2];
  11195. $12 = +HEAPF32[$1>>2];
  11196. $13 = $7 * $12;
  11197. $14 = ((($1)) + 4|0);
  11198. $15 = +HEAPF32[$14>>2];
  11199. $16 = $9 * $15;
  11200. $17 = $13 + $16;
  11201. $18 = ((($1)) + 8|0);
  11202. $19 = +HEAPF32[$18>>2];
  11203. $20 = $11 * $19;
  11204. $21 = $17 + $20;
  11205. $22 = -$21;
  11206. $23 = +HEAPF32[$6>>2];
  11207. $24 = ((($6)) + 4|0);
  11208. $25 = +HEAPF32[$24>>2];
  11209. $26 = ((($6)) + 8|0);
  11210. $27 = +HEAPF32[$26>>2];
  11211. $28 = $12 * $23;
  11212. $29 = $15 * $25;
  11213. $30 = $28 + $29;
  11214. $31 = $19 * $27;
  11215. $32 = $30 + $31;
  11216. $33 = -$32;
  11217. $34 = +HEAPF32[$4>>2];
  11218. $35 = ((($4)) + 4|0);
  11219. $36 = +HEAPF32[$35>>2];
  11220. $37 = ((($4)) + 8|0);
  11221. $38 = +HEAPF32[$37>>2];
  11222. $39 = $12 * $34;
  11223. $40 = $15 * $36;
  11224. $41 = $39 + $40;
  11225. $42 = $19 * $38;
  11226. $43 = $41 + $42;
  11227. $44 = -$43;
  11228. HEAPF32[$0>>2] = $7;
  11229. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  11230. HEAPF32[$$sroa$4$0$$sroa_idx2>>2] = $23;
  11231. $$sroa$5$0$$sroa_idx4 = ((($0)) + 8|0);
  11232. HEAPF32[$$sroa$5$0$$sroa_idx4>>2] = $34;
  11233. $$sroa$6$0$$sroa_idx6 = ((($0)) + 12|0);
  11234. HEAPF32[$$sroa$6$0$$sroa_idx6>>2] = 0.0;
  11235. $$sroa$7$0$$sroa_idx8 = ((($0)) + 16|0);
  11236. HEAPF32[$$sroa$7$0$$sroa_idx8>>2] = $9;
  11237. $$sroa$8$0$$sroa_idx10 = ((($0)) + 20|0);
  11238. HEAPF32[$$sroa$8$0$$sroa_idx10>>2] = $25;
  11239. $$sroa$9$0$$sroa_idx12 = ((($0)) + 24|0);
  11240. HEAPF32[$$sroa$9$0$$sroa_idx12>>2] = $36;
  11241. $$sroa$10$0$$sroa_idx14 = ((($0)) + 28|0);
  11242. HEAPF32[$$sroa$10$0$$sroa_idx14>>2] = 0.0;
  11243. $$sroa$11$0$$sroa_idx16 = ((($0)) + 32|0);
  11244. HEAPF32[$$sroa$11$0$$sroa_idx16>>2] = $11;
  11245. $$sroa$12$0$$sroa_idx18 = ((($0)) + 36|0);
  11246. HEAPF32[$$sroa$12$0$$sroa_idx18>>2] = $27;
  11247. $$sroa$13$0$$sroa_idx20 = ((($0)) + 40|0);
  11248. HEAPF32[$$sroa$13$0$$sroa_idx20>>2] = $38;
  11249. $$sroa$14$0$$sroa_idx22 = ((($0)) + 44|0);
  11250. HEAPF32[$$sroa$14$0$$sroa_idx22>>2] = 0.0;
  11251. $$sroa$15$0$$sroa_idx24 = ((($0)) + 48|0);
  11252. HEAPF32[$$sroa$15$0$$sroa_idx24>>2] = $22;
  11253. $$sroa$16$0$$sroa_idx26 = ((($0)) + 52|0);
  11254. HEAPF32[$$sroa$16$0$$sroa_idx26>>2] = $33;
  11255. $$sroa$17$0$$sroa_idx28 = ((($0)) + 56|0);
  11256. HEAPF32[$$sroa$17$0$$sroa_idx28>>2] = $44;
  11257. $$sroa$18$0$$sroa_idx30 = ((($0)) + 60|0);
  11258. HEAPF32[$$sroa$18$0$$sroa_idx30>>2] = 1.0;
  11259. STACKTOP = sp;return;
  11260. }
  11261. function _QuaternionTransform($0,$1) {
  11262. $0 = $0|0;
  11263. $1 = $1|0;
  11264. var $10 = 0.0, $11 = 0, $12 = 0.0, $13 = 0.0, $14 = 0.0, $15 = 0, $16 = 0.0, $17 = 0.0, $18 = 0.0, $19 = 0, $2 = 0.0, $20 = 0.0, $21 = 0.0, $22 = 0.0, $23 = 0, $24 = 0.0, $25 = 0.0, $26 = 0, $27 = 0.0, $28 = 0.0;
  11265. var $29 = 0.0, $3 = 0, $30 = 0, $31 = 0.0, $32 = 0.0, $33 = 0.0, $34 = 0, $35 = 0.0, $36 = 0.0, $37 = 0.0, $38 = 0, $39 = 0.0, $4 = 0.0, $40 = 0.0, $41 = 0, $42 = 0.0, $43 = 0.0, $44 = 0.0, $45 = 0, $46 = 0.0;
  11266. var $47 = 0.0, $48 = 0.0, $49 = 0, $5 = 0, $50 = 0.0, $51 = 0.0, $52 = 0.0, $53 = 0, $54 = 0.0, $55 = 0.0, $56 = 0, $57 = 0.0, $58 = 0.0, $59 = 0.0, $6 = 0.0, $60 = 0, $61 = 0.0, $62 = 0.0, $63 = 0.0, $64 = 0;
  11267. var $65 = 0.0, $66 = 0.0, $67 = 0.0, $7 = 0, $8 = 0.0, $9 = 0.0, label = 0, sp = 0;
  11268. sp = STACKTOP;
  11269. $2 = +HEAPF32[$0>>2];
  11270. $3 = ((($0)) + 4|0);
  11271. $4 = +HEAPF32[$3>>2];
  11272. $5 = ((($0)) + 8|0);
  11273. $6 = +HEAPF32[$5>>2];
  11274. $7 = ((($0)) + 12|0);
  11275. $8 = +HEAPF32[$7>>2];
  11276. $9 = +HEAPF32[$1>>2];
  11277. $10 = $2 * $9;
  11278. $11 = ((($1)) + 4|0);
  11279. $12 = +HEAPF32[$11>>2];
  11280. $13 = $4 * $12;
  11281. $14 = $10 + $13;
  11282. $15 = ((($1)) + 8|0);
  11283. $16 = +HEAPF32[$15>>2];
  11284. $17 = $6 * $16;
  11285. $18 = $14 + $17;
  11286. $19 = ((($1)) + 12|0);
  11287. $20 = +HEAPF32[$19>>2];
  11288. $21 = $8 * $20;
  11289. $22 = $18 + $21;
  11290. HEAPF32[$0>>2] = $22;
  11291. $23 = ((($1)) + 16|0);
  11292. $24 = +HEAPF32[$23>>2];
  11293. $25 = $2 * $24;
  11294. $26 = ((($1)) + 20|0);
  11295. $27 = +HEAPF32[$26>>2];
  11296. $28 = $4 * $27;
  11297. $29 = $25 + $28;
  11298. $30 = ((($1)) + 24|0);
  11299. $31 = +HEAPF32[$30>>2];
  11300. $32 = $6 * $31;
  11301. $33 = $29 + $32;
  11302. $34 = ((($1)) + 28|0);
  11303. $35 = +HEAPF32[$34>>2];
  11304. $36 = $8 * $35;
  11305. $37 = $33 + $36;
  11306. HEAPF32[$3>>2] = $37;
  11307. $38 = ((($1)) + 32|0);
  11308. $39 = +HEAPF32[$38>>2];
  11309. $40 = $2 * $39;
  11310. $41 = ((($1)) + 36|0);
  11311. $42 = +HEAPF32[$41>>2];
  11312. $43 = $4 * $42;
  11313. $44 = $40 + $43;
  11314. $45 = ((($1)) + 40|0);
  11315. $46 = +HEAPF32[$45>>2];
  11316. $47 = $6 * $46;
  11317. $48 = $44 + $47;
  11318. $49 = ((($1)) + 44|0);
  11319. $50 = +HEAPF32[$49>>2];
  11320. $51 = $8 * $50;
  11321. $52 = $48 + $51;
  11322. HEAPF32[$5>>2] = $52;
  11323. $53 = ((($1)) + 48|0);
  11324. $54 = +HEAPF32[$53>>2];
  11325. $55 = $2 * $54;
  11326. $56 = ((($1)) + 52|0);
  11327. $57 = +HEAPF32[$56>>2];
  11328. $58 = $4 * $57;
  11329. $59 = $55 + $58;
  11330. $60 = ((($1)) + 56|0);
  11331. $61 = +HEAPF32[$60>>2];
  11332. $62 = $6 * $61;
  11333. $63 = $59 + $62;
  11334. $64 = ((($1)) + 60|0);
  11335. $65 = +HEAPF32[$64>>2];
  11336. $66 = $8 * $65;
  11337. $67 = $63 + $66;
  11338. HEAPF32[$7>>2] = $67;
  11339. return;
  11340. }
  11341. function _ProcessGestureEvent($0) {
  11342. $0 = $0|0;
  11343. var $$$sink = 0, $$sink = 0, $$sink10 = 0, $$sink11 = 0, $$sink16 = 0, $1 = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0.0, $111 = 0.0;
  11344. var $112 = 0.0, $113 = 0.0, $114 = 0.0, $115 = 0.0, $116 = 0.0, $117 = 0, $118 = 0, $119 = 0, $12 = 0.0, $120 = 0, $121 = 0, $122 = 0, $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 0, $128 = 0, $129 = 0, $13 = 0;
  11345. var $130 = 0, $131 = 0, $132 = 0, $133 = 0, $134 = 0, $135 = 0, $136 = 0, $137 = 0, $138 = 0, $139 = 0, $14 = 0, $140 = 0, $141 = 0, $142 = 0, $143 = 0, $144 = 0, $145 = 0, $146 = 0, $147 = 0, $148 = 0;
  11346. var $149 = 0, $15 = 0, $150 = 0, $151 = 0, $152 = 0, $153 = 0, $154 = 0, $155 = 0, $156 = 0, $157 = 0, $158 = 0, $159 = 0.0, $16 = 0, $160 = 0.0, $161 = 0.0, $162 = 0.0, $163 = 0.0, $164 = 0.0, $165 = 0.0, $166 = 0;
  11347. var $167 = 0.0, $168 = 0, $169 = 0.0, $17 = 0, $170 = 0.0, $171 = 0.0, $172 = 0, $173 = 0.0, $174 = 0.0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0;
  11348. var $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0;
  11349. var $46 = 0, $47 = 0, $48 = 0.0, $49 = 0.0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0.0, $56 = 0.0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0;
  11350. var $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0.0, $81 = 0;
  11351. var $82 = 0.0, $83 = 0.0, $84 = 0.0, $85 = 0.0, $86 = 0.0, $87 = 0.0, $88 = 0, $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $moveDownPosition$byval_copy11 = 0;
  11352. var $moveDownPosition2$byval_copy12 = 0, $or$cond = 0, $or$cond3 = 0, $or$cond5 = 0, $or$cond7 = 0, $or$cond9 = 0, label = 0, sp = 0;
  11353. sp = STACKTOP;
  11354. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  11355. $moveDownPosition2$byval_copy12 = sp + 8|0;
  11356. $moveDownPosition$byval_copy11 = sp;
  11357. $1 = ((($0)) + 4|0);
  11358. $2 = HEAP32[$1>>2]|0;
  11359. HEAP32[4696] = $2;
  11360. $3 = ($2|0)<(2);
  11361. $4 = HEAP32[$0>>2]|0;
  11362. $5 = ($4|0)==(1);
  11363. if (!($3)) {
  11364. if ($5) {
  11365. $88 = ((($0)) + 24|0);
  11366. $89 = $88;
  11367. $90 = $89;
  11368. $91 = HEAP32[$90>>2]|0;
  11369. $92 = (($89) + 4)|0;
  11370. $93 = $92;
  11371. $94 = HEAP32[$93>>2]|0;
  11372. $95 = 18096;
  11373. $96 = $95;
  11374. HEAP32[$96>>2] = $91;
  11375. $97 = (($95) + 4)|0;
  11376. $98 = $97;
  11377. HEAP32[$98>>2] = $94;
  11378. $99 = ((($0)) + 32|0);
  11379. $100 = $99;
  11380. $101 = $100;
  11381. $102 = HEAP32[$101>>2]|0;
  11382. $103 = (($100) + 4)|0;
  11383. $104 = $103;
  11384. $105 = HEAP32[$104>>2]|0;
  11385. $106 = 18136;
  11386. $107 = $106;
  11387. HEAP32[$107>>2] = $102;
  11388. $108 = (($106) + 4)|0;
  11389. $109 = $108;
  11390. HEAP32[$109>>2] = $105;
  11391. $110 = +HEAPF32[4534];
  11392. $111 = +HEAPF32[4524];
  11393. $112 = $110 - $111;
  11394. HEAPF32[4536] = $112;
  11395. $113 = +HEAPF32[(18140)>>2];
  11396. $114 = +HEAPF32[(18100)>>2];
  11397. $115 = $113 - $114;
  11398. HEAPF32[(18148)>>2] = $115;
  11399. HEAP32[4695] = 4;
  11400. STACKTOP = sp;return;
  11401. }
  11402. switch ($4|0) {
  11403. case 2: {
  11404. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[18128>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[18128+4>>2]|0;
  11405. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[18152>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[18152+4>>2]|0;
  11406. $116 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  11407. HEAPF32[4701] = $116;
  11408. $117 = 18128;
  11409. $118 = $117;
  11410. $119 = HEAP32[$118>>2]|0;
  11411. $120 = (($117) + 4)|0;
  11412. $121 = $120;
  11413. $122 = HEAP32[$121>>2]|0;
  11414. $123 = 18096;
  11415. $124 = $123;
  11416. HEAP32[$124>>2] = $119;
  11417. $125 = (($123) + 4)|0;
  11418. $126 = $125;
  11419. HEAP32[$126>>2] = $122;
  11420. $127 = 18152;
  11421. $128 = $127;
  11422. $129 = HEAP32[$128>>2]|0;
  11423. $130 = (($127) + 4)|0;
  11424. $131 = $130;
  11425. $132 = HEAP32[$131>>2]|0;
  11426. $133 = 18136;
  11427. $134 = $133;
  11428. HEAP32[$134>>2] = $129;
  11429. $135 = (($133) + 4)|0;
  11430. $136 = $135;
  11431. HEAP32[$136>>2] = $132;
  11432. $137 = ((($0)) + 24|0);
  11433. $138 = $137;
  11434. $139 = $138;
  11435. $140 = HEAP32[$139>>2]|0;
  11436. $141 = (($138) + 4)|0;
  11437. $142 = $141;
  11438. $143 = HEAP32[$142>>2]|0;
  11439. $144 = 18128;
  11440. $145 = $144;
  11441. HEAP32[$145>>2] = $140;
  11442. $146 = (($144) + 4)|0;
  11443. $147 = $146;
  11444. HEAP32[$147>>2] = $143;
  11445. $148 = ((($0)) + 32|0);
  11446. $149 = $148;
  11447. $150 = $149;
  11448. $151 = HEAP32[$150>>2]|0;
  11449. $152 = (($149) + 4)|0;
  11450. $153 = $152;
  11451. $154 = HEAP32[$153>>2]|0;
  11452. $155 = 18152;
  11453. $156 = $155;
  11454. HEAP32[$156>>2] = $151;
  11455. $157 = (($155) + 4)|0;
  11456. $158 = $157;
  11457. HEAP32[$158>>2] = $154;
  11458. $159 = +HEAPF32[4538];
  11459. $160 = +HEAPF32[4532];
  11460. $161 = $159 - $160;
  11461. HEAPF32[4536] = $161;
  11462. $162 = +HEAPF32[(18156)>>2];
  11463. $163 = +HEAPF32[(18132)>>2];
  11464. $164 = $162 - $163;
  11465. HEAPF32[(18148)>>2] = $164;
  11466. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[18096>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[18096+4>>2]|0;
  11467. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[18128>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[18128+4>>2]|0;
  11468. $165 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  11469. $166 = !($165 >= 0.004999999888241291);
  11470. if ($166) {
  11471. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[18136>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[18136+4>>2]|0;
  11472. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[18152>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[18152+4>>2]|0;
  11473. $167 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  11474. $168 = !($167 >= 0.004999999888241291);
  11475. if ($168) {
  11476. $$sink16 = 4;
  11477. } else {
  11478. label = 29;
  11479. }
  11480. } else {
  11481. label = 29;
  11482. }
  11483. if ((label|0) == 29) {
  11484. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[18128>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[18128+4>>2]|0;
  11485. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[18152>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[18152+4>>2]|0;
  11486. $169 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  11487. $170 = +HEAPF32[4701];
  11488. $171 = $169 - $170;
  11489. $172 = $171 < 0.0;
  11490. $$sink11 = $172 ? 256 : 512;
  11491. $$sink16 = $$sink11;
  11492. }
  11493. HEAP32[4695] = $$sink16;
  11494. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[18128>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[18128+4>>2]|0;
  11495. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[18152>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[18152+4>>2]|0;
  11496. $173 = (+_Vector2Angle($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  11497. $174 = 360.0 - $173;
  11498. HEAPF32[4702] = $174;
  11499. STACKTOP = sp;return;
  11500. break;
  11501. }
  11502. case 0: {
  11503. HEAPF32[4701] = 0.0;
  11504. HEAPF32[4702] = 0.0;
  11505. HEAPF32[4536] = 0.0;
  11506. HEAPF32[(18148)>>2] = 0.0;
  11507. HEAP32[4696] = 0;
  11508. HEAP32[4695] = 0;
  11509. STACKTOP = sp;return;
  11510. break;
  11511. }
  11512. default: {
  11513. STACKTOP = sp;return;
  11514. }
  11515. }
  11516. }
  11517. if ($5) {
  11518. $6 = HEAP32[4697]|0;
  11519. $7 = (($6) + 1)|0;
  11520. HEAP32[4697] = $7;
  11521. $8 = HEAP32[4695]|0;
  11522. $9 = ($8|0)==(0);
  11523. $10 = ($6|0)>(0);
  11524. $or$cond = $10 & $9;
  11525. if ($or$cond) {
  11526. $11 = ((($0)) + 24|0);
  11527. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[18096>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[18096+4>>2]|0;
  11528. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[$11>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[$11+4>>2]|0;
  11529. $12 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  11530. $13 = $12 < 0.029999999329447746;
  11531. if ($13) {
  11532. HEAP32[4695] = 2;
  11533. HEAP32[4697] = 0;
  11534. } else {
  11535. label = 6;
  11536. }
  11537. } else {
  11538. label = 6;
  11539. }
  11540. if ((label|0) == 6) {
  11541. HEAP32[4697] = 1;
  11542. HEAP32[4695] = 1;
  11543. }
  11544. $14 = ((($0)) + 24|0);
  11545. $15 = $14;
  11546. $16 = $15;
  11547. $17 = HEAP32[$16>>2]|0;
  11548. $18 = (($15) + 4)|0;
  11549. $19 = $18;
  11550. $20 = HEAP32[$19>>2]|0;
  11551. $21 = 18096;
  11552. $22 = $21;
  11553. HEAP32[$22>>2] = $17;
  11554. $23 = (($21) + 4)|0;
  11555. $24 = $23;
  11556. HEAP32[$24>>2] = $20;
  11557. $25 = 18104;
  11558. $26 = $25;
  11559. HEAP32[$26>>2] = $17;
  11560. $27 = (($25) + 4)|0;
  11561. $28 = $27;
  11562. HEAP32[$28>>2] = $20;
  11563. $29 = 18112;
  11564. $30 = $29;
  11565. HEAP32[$30>>2] = $17;
  11566. $31 = (($29) + 4)|0;
  11567. $32 = $31;
  11568. HEAP32[$32>>2] = $20;
  11569. $33 = ((($0)) + 8|0);
  11570. $34 = HEAP32[$33>>2]|0;
  11571. HEAP32[11] = $34;
  11572. HEAPF32[4530] = 0.0;
  11573. HEAPF32[(18124)>>2] = 0.0;
  11574. STACKTOP = sp;return;
  11575. }
  11576. switch ($4|0) {
  11577. case 0: {
  11578. $35 = HEAP32[4695]|0;
  11579. $36 = ($35|0)==(8);
  11580. if ($36) {
  11581. $37 = ((($0)) + 24|0);
  11582. $38 = $37;
  11583. $39 = $38;
  11584. $40 = HEAP32[$39>>2]|0;
  11585. $41 = (($38) + 4)|0;
  11586. $42 = $41;
  11587. $43 = HEAP32[$42>>2]|0;
  11588. $44 = 18112;
  11589. $45 = $44;
  11590. HEAP32[$45>>2] = $40;
  11591. $46 = (($44) + 4)|0;
  11592. $47 = $46;
  11593. HEAP32[$47>>2] = $43;
  11594. }
  11595. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[18096>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[18096+4>>2]|0;
  11596. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[18112>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[18112+4>>2]|0;
  11597. $48 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  11598. $49 = $48 / 0.0;
  11599. HEAPF32[4698] = $49;
  11600. HEAP32[4699] = 0;
  11601. $50 = $49 > 5.0000002374872565E-4;
  11602. if ($50) {
  11603. $51 = HEAP32[11]|0;
  11604. $52 = ((($0)) + 8|0);
  11605. $53 = HEAP32[$52>>2]|0;
  11606. $54 = ($51|0)==($53|0);
  11607. if ($54) {
  11608. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[18096>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[18096+4>>2]|0;
  11609. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[18112>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[18112+4>>2]|0;
  11610. $55 = (+_Vector2Angle($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  11611. $56 = 360.0 - $55;
  11612. HEAPF32[4700] = $56;
  11613. $57 = $56 < 30.0;
  11614. $58 = $56 > 330.0;
  11615. $or$cond3 = $57 | $58;
  11616. if ($or$cond3) {
  11617. $$sink10 = 16;
  11618. } else {
  11619. $59 = $56 > 30.0;
  11620. $60 = $56 < 120.0;
  11621. $or$cond5 = $59 & $60;
  11622. if ($or$cond5) {
  11623. $$sink10 = 64;
  11624. } else {
  11625. $61 = $56 > 120.0;
  11626. $62 = $56 < 210.0;
  11627. $or$cond7 = $61 & $62;
  11628. $63 = $56 > 210.0;
  11629. $64 = $56 < 300.0;
  11630. $or$cond9 = $63 & $64;
  11631. $$sink = $or$cond9 ? 128 : 0;
  11632. $$$sink = $or$cond7 ? 32 : $$sink;
  11633. $$sink10 = $$$sink;
  11634. }
  11635. }
  11636. } else {
  11637. label = 16;
  11638. }
  11639. } else {
  11640. label = 16;
  11641. }
  11642. if ((label|0) == 16) {
  11643. HEAPF32[4698] = 0.0;
  11644. HEAPF32[4700] = 0.0;
  11645. $$sink10 = 0;
  11646. }
  11647. HEAP32[4695] = $$sink10;
  11648. HEAPF32[4526] = 0.0;
  11649. HEAPF32[(18108)>>2] = 0.0;
  11650. HEAP32[4696] = 0;
  11651. STACKTOP = sp;return;
  11652. break;
  11653. }
  11654. case 2: {
  11655. $65 = HEAP32[4699]|0;
  11656. $66 = ($65|0)==(0);
  11657. if ($66) {
  11658. HEAP32[4699] = 1;
  11659. }
  11660. $67 = ((($0)) + 24|0);
  11661. $68 = $67;
  11662. $69 = $68;
  11663. $70 = HEAP32[$69>>2]|0;
  11664. $71 = (($68) + 4)|0;
  11665. $72 = $71;
  11666. $73 = HEAP32[$72>>2]|0;
  11667. $74 = 18128;
  11668. $75 = $74;
  11669. HEAP32[$75>>2] = $70;
  11670. $76 = (($74) + 4)|0;
  11671. $77 = $76;
  11672. HEAP32[$77>>2] = $73;
  11673. $78 = HEAP32[4695]|0;
  11674. $79 = ($78|0)==(4);
  11675. if ($79) {
  11676. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[18096>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[18096+4>>2]|0;
  11677. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[18128>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[18128+4>>2]|0;
  11678. $80 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  11679. $81 = !($80 >= 0.014999999664723873);
  11680. if (!($81)) {
  11681. HEAP32[4695] = 8;
  11682. }
  11683. }
  11684. $82 = +HEAPF32[4532];
  11685. $83 = +HEAPF32[4526];
  11686. $84 = $82 - $83;
  11687. HEAPF32[4530] = $84;
  11688. $85 = +HEAPF32[(18132)>>2];
  11689. $86 = +HEAPF32[(18108)>>2];
  11690. $87 = $85 - $86;
  11691. HEAPF32[(18124)>>2] = $87;
  11692. STACKTOP = sp;return;
  11693. break;
  11694. }
  11695. default: {
  11696. STACKTOP = sp;return;
  11697. }
  11698. }
  11699. }
  11700. function _UpdateGestures() {
  11701. var $$off = 0, $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $or$cond3 = 0, label = 0, sp = 0;
  11702. sp = STACKTOP;
  11703. $0 = HEAP32[4695]|0;
  11704. $$off = (($0) + -1)|0;
  11705. $1 = ($$off>>>0)<(2);
  11706. $2 = HEAP32[4696]|0;
  11707. $3 = ($2|0)<(2);
  11708. $or$cond3 = $1 & $3;
  11709. if ($or$cond3) {
  11710. HEAP32[4695] = 4;
  11711. }
  11712. $4 = HEAP32[4695]|0;
  11713. $5 = (($4) + -16)|0;
  11714. $6 = $5 >>> 4;
  11715. $7 = $5 << 28;
  11716. $8 = $6 | $7;
  11717. switch ($8|0) {
  11718. case 0: case 1: case 3: case 7: {
  11719. break;
  11720. }
  11721. default: {
  11722. return;
  11723. }
  11724. }
  11725. HEAP32[4695] = 0;
  11726. return;
  11727. }
  11728. function _SetCameraMode($0,$1) {
  11729. $0 = $0|0;
  11730. $1 = $1|0;
  11731. var $$sroa$023$0$$sroa_idx = 0, $$sroa$023$0$copyload = 0.0, $$sroa$030$0$copyload = 0.0, $$sroa$4$0$$sroa_idx25 = 0, $$sroa$4$0$copyload = 0.0, $$sroa$432$0$$sroa_idx33 = 0, $$sroa$432$0$copyload = 0.0, $$sroa$527$0$$sroa_idx28 = 0, $$sroa$527$0$copyload = 0.0, $$sroa$535$0$$sroa_idx36 = 0, $$sroa$535$0$copyload = 0.0, $10 = 0.0, $11 = 0.0, $12 = 0.0, $13 = 0.0, $14 = 0.0, $15 = 0.0, $16 = 0.0, $17 = 0.0, $18 = 0.0;
  11732. var $19 = 0.0, $2 = 0.0, $20 = 0.0, $21 = 0, $3 = 0.0, $4 = 0.0, $5 = 0.0, $6 = 0.0, $7 = 0.0, $8 = 0.0, $9 = 0.0, label = 0, sp = 0;
  11733. sp = STACKTOP;
  11734. $$sroa$030$0$copyload = +HEAPF32[$0>>2];
  11735. $$sroa$432$0$$sroa_idx33 = ((($0)) + 4|0);
  11736. $$sroa$432$0$copyload = +HEAPF32[$$sroa$432$0$$sroa_idx33>>2];
  11737. $$sroa$535$0$$sroa_idx36 = ((($0)) + 8|0);
  11738. $$sroa$535$0$copyload = +HEAPF32[$$sroa$535$0$$sroa_idx36>>2];
  11739. $$sroa$023$0$$sroa_idx = ((($0)) + 12|0);
  11740. $$sroa$023$0$copyload = +HEAPF32[$$sroa$023$0$$sroa_idx>>2];
  11741. $$sroa$4$0$$sroa_idx25 = ((($0)) + 16|0);
  11742. $$sroa$4$0$copyload = +HEAPF32[$$sroa$4$0$$sroa_idx25>>2];
  11743. $$sroa$527$0$$sroa_idx28 = ((($0)) + 20|0);
  11744. $$sroa$527$0$copyload = +HEAPF32[$$sroa$527$0$$sroa_idx28>>2];
  11745. $2 = $$sroa$023$0$copyload - $$sroa$030$0$copyload;
  11746. $3 = $$sroa$4$0$copyload - $$sroa$432$0$copyload;
  11747. $4 = $$sroa$527$0$copyload - $$sroa$535$0$copyload;
  11748. $5 = $2 * $2;
  11749. $6 = $3 * $3;
  11750. $7 = $5 + $6;
  11751. $8 = $4 * $4;
  11752. $9 = $7 + $8;
  11753. $10 = (+Math_sqrt((+$9)));
  11754. HEAPF32[4703] = $10;
  11755. $11 = $5 + $8;
  11756. $12 = (+Math_sqrt((+$11)));
  11757. $13 = (+Math_sqrt((+$7)));
  11758. $14 = (+Math_abs((+$2)));
  11759. $15 = $14 / $12;
  11760. $16 = (+Math_asin((+$15)));
  11761. HEAPF32[4704] = $16;
  11762. $17 = (+Math_abs((+$3)));
  11763. $18 = $17 / $13;
  11764. $19 = (+Math_asin((+$18)));
  11765. $20 = -$19;
  11766. HEAPF32[4705] = $20;
  11767. $21 = HEAP32[$$sroa$432$0$$sroa_idx33>>2]|0;
  11768. HEAP32[12] = $21;
  11769. HEAP32[4706] = $1;
  11770. return;
  11771. }
  11772. function _UpdateCamera($0) {
  11773. $0 = $0|0;
  11774. var $$ = 0, $$0 = 0, $$byval_copy3 = 0, $$not = 0, $$not188 = 0, $$off187 = 0, $$pr = 0, $$pr190 = 0, $$sink = 0.0, $$sink17 = 0, $$sink22 = 0.0, $$sink22$p = 0.0, $$sink26 = 0.0, $$sink28 = 0.0, $$sroa$095$0 = 0.0, $$sroa$9$0 = 0.0, $1 = 0, $10 = 0, $100 = 0.0, $101 = 0.0;
  11775. var $102 = 0.0, $103 = 0.0, $104 = 0.0, $105 = 0.0, $106 = 0.0, $107 = 0.0, $108 = 0.0, $109 = 0.0, $11 = 0, $110 = 0.0, $111 = 0.0, $112 = 0, $113 = 0.0, $114 = 0, $115 = 0.0, $116 = 0.0, $117 = 0.0, $118 = 0.0, $119 = 0.0, $12 = 0;
  11776. var $120 = 0.0, $121 = 0, $122 = 0.0, $123 = 0.0, $124 = 0.0, $125 = 0.0, $126 = 0.0, $127 = 0.0, $128 = 0.0, $129 = 0.0, $13 = 0, $130 = 0.0, $131 = 0.0, $132 = 0.0, $133 = 0.0, $134 = 0.0, $135 = 0, $136 = 0.0, $137 = 0, $138 = 0.0;
  11777. var $139 = 0.0, $14 = 0, $140 = 0.0, $141 = 0.0, $142 = 0.0, $143 = 0.0, $144 = 0, $145 = 0, $146 = 0.0, $147 = 0.0, $148 = 0.0, $149 = 0, $15 = 0, $150 = 0, $151 = 0.0, $152 = 0.0, $153 = 0.0, $154 = 0.0, $155 = 0.0, $156 = 0.0;
  11778. var $157 = 0.0, $158 = 0.0, $159 = 0.0, $16 = 0, $160 = 0.0, $161 = 0.0, $162 = 0.0, $163 = 0.0, $164 = 0.0, $165 = 0.0, $166 = 0.0, $167 = 0, $168 = 0.0, $169 = 0, $17 = 0, $170 = 0.0, $171 = 0.0, $172 = 0.0, $173 = 0.0, $174 = 0.0;
  11779. var $175 = 0.0, $176 = 0, $177 = 0.0, $178 = 0.0, $179 = 0.0, $18 = 0, $180 = 0.0, $181 = 0.0, $182 = 0.0, $183 = 0.0, $184 = 0.0, $185 = 0.0, $186 = 0.0, $187 = 0.0, $188 = 0.0, $189 = 0.0, $19 = 0, $190 = 0.0, $191 = 0, $192 = 0.0;
  11780. var $193 = 0, $194 = 0.0, $195 = 0.0, $196 = 0.0, $197 = 0.0, $198 = 0.0, $199 = 0.0, $2 = 0, $20 = 0, $200 = 0, $201 = 0, $202 = 0, $203 = 0.0, $204 = 0.0, $205 = 0.0, $206 = 0.0, $207 = 0, $208 = 0, $209 = 0, $21 = 0;
  11781. var $210 = 0, $211 = 0.0, $212 = 0.0, $213 = 0.0, $214 = 0.0, $215 = 0.0, $216 = 0.0, $217 = 0.0, $218 = 0.0, $219 = 0.0, $22 = 0, $220 = 0, $221 = 0, $222 = 0.0, $223 = 0.0, $224 = 0.0, $225 = 0.0, $226 = 0.0, $227 = 0.0, $228 = 0.0;
  11782. var $229 = 0.0, $23 = 0, $230 = 0.0, $231 = 0.0, $232 = 0.0, $233 = 0.0, $234 = 0.0, $235 = 0.0, $236 = 0, $237 = 0.0, $238 = 0.0, $239 = 0.0, $24 = 0, $240 = 0.0, $241 = 0.0, $242 = 0, $243 = 0.0, $244 = 0.0, $245 = 0.0, $246 = 0.0;
  11783. var $247 = 0.0, $248 = 0.0, $249 = 0.0, $25 = 0, $250 = 0.0, $251 = 0, $252 = 0.0, $253 = 0.0, $254 = 0.0, $255 = 0.0, $256 = 0.0, $257 = 0.0, $258 = 0.0, $259 = 0.0, $26 = 0, $260 = 0, $261 = 0, $262 = 0, $263 = 0, $264 = 0.0;
  11784. var $265 = 0.0, $266 = 0, $267 = 0.0, $268 = 0.0, $269 = 0, $27 = 0, $270 = 0.0, $271 = 0.0, $272 = 0.0, $273 = 0.0, $274 = 0, $275 = 0.0, $276 = 0.0, $277 = 0.0, $278 = 0, $279 = 0.0, $28 = 0, $280 = 0.0, $281 = 0.0, $282 = 0.0;
  11785. var $283 = 0.0, $284 = 0.0, $285 = 0.0, $286 = 0.0, $287 = 0.0, $288 = 0.0, $289 = 0.0, $29 = 0, $290 = 0, $291 = 0.0, $292 = 0.0, $293 = 0, $294 = 0.0, $295 = 0.0, $296 = 0.0, $297 = 0, $298 = 0.0, $299 = 0.0, $3 = 0, $30 = 0;
  11786. var $300 = 0.0, $301 = 0.0, $302 = 0.0, $303 = 0.0, $304 = 0.0, $305 = 0.0, $306 = 0.0, $307 = 0.0, $308 = 0, $309 = 0.0, $31 = 0, $310 = 0.0, $311 = 0, $312 = 0, $313 = 0.0, $314 = 0.0, $315 = 0.0, $316 = 0.0, $317 = 0.0, $318 = 0.0;
  11787. var $319 = 0, $32 = 0, $320 = 0, $321 = 0, $322 = 0, $323 = 0.0, $324 = 0.0, $325 = 0.0, $326 = 0.0, $327 = 0, $328 = 0.0, $329 = 0.0, $33 = 0, $330 = 0.0, $331 = 0.0, $332 = 0.0, $333 = 0.0, $334 = 0.0, $335 = 0.0, $336 = 0;
  11788. var $337 = 0.0, $338 = 0.0, $339 = 0, $34 = 0, $340 = 0.0, $341 = 0.0, $342 = 0.0, $343 = 0.0, $344 = 0, $345 = 0, $346 = 0.0, $347 = 0.0, $348 = 0.0, $349 = 0.0, $35 = 0, $350 = 0.0, $351 = 0, $352 = 0.0, $353 = 0.0, $354 = 0.0;
  11789. var $355 = 0.0, $356 = 0.0, $357 = 0, $358 = 0.0, $359 = 0.0, $36 = 0, $360 = 0.0, $361 = 0.0, $362 = 0, $363 = 0, $364 = 0, $365 = 0, $366 = 0.0, $367 = 0, $368 = 0.0, $369 = 0.0, $37 = 0.0, $370 = 0.0, $371 = 0.0, $372 = 0.0;
  11790. var $373 = 0.0, $374 = 0.0, $375 = 0.0, $376 = 0, $377 = 0.0, $378 = 0.0, $379 = 0, $38 = 0.0, $380 = 0, $381 = 0.0, $382 = 0.0, $383 = 0.0, $384 = 0.0, $385 = 0.0, $386 = 0.0, $387 = 0.0, $388 = 0, $389 = 0.0, $39 = 0.0, $390 = 0.0;
  11791. var $391 = 0, $392 = 0.0, $393 = 0.0, $394 = 0, $395 = 0.0, $396 = 0.0, $397 = 0.0, $398 = 0.0, $399 = 0, $4 = 0, $40 = 0, $400 = 0.0, $401 = 0.0, $402 = 0.0, $403 = 0, $404 = 0.0, $405 = 0.0, $406 = 0, $407 = 0, $408 = 0;
  11792. var $409 = 0, $41 = 0, $410 = 0, $411 = 0, $412 = 0, $413 = 0, $414 = 0, $415 = 0, $416 = 0, $417 = 0, $42 = 0.0, $43 = 0, $44 = 0, $45 = 0.0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0;
  11793. var $51 = 0.0, $52 = 0.0, $53 = 0.0, $54 = 0, $55 = 0, $56 = 0.0, $57 = 0, $58 = 0, $59 = 0.0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0.0, $64 = 0.0, $65 = 0.0, $66 = 0.0, $67 = 0.0, $68 = 0.0, $69 = 0.0;
  11794. var $7 = 0, $70 = 0.0, $71 = 0, $72 = 0.0, $73 = 0.0, $74 = 0.0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0.0, $86 = 0, $87 = 0;
  11795. var $88 = 0.0, $89 = 0.0, $9 = 0, $90 = 0.0, $91 = 0, $92 = 0, $93 = 0.0, $94 = 0, $95 = 0, $96 = 0.0, $97 = 0, $98 = 0, $99 = 0.0, $not$ = 0, $or$cond = 0, $or$cond11 = 0, $or$cond13 = 0, $or$cond15 = 0, $or$cond189 = 0, $or$cond3 = 0;
  11796. var $or$cond5 = 0, $or$cond7 = 0, $or$cond9 = 0, $storemerge = 0.0, label = 0, sp = 0;
  11797. sp = STACKTOP;
  11798. STACKTOP = STACKTOP + 80|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(80|0);
  11799. $$byval_copy3 = sp + 72|0;
  11800. $1 = sp + 56|0;
  11801. $2 = sp + 16|0;
  11802. $3 = sp + 64|0;
  11803. $4 = sp + 48|0;
  11804. $5 = sp + 40|0;
  11805. $6 = sp + 8|0;
  11806. $7 = sp;
  11807. _GetMousePosition($1);
  11808. $8 = (_GetMouseWheelMove()|0);
  11809. $9 = HEAP32[13]|0;
  11810. $10 = (_IsMouseButtonDown($9)|0);
  11811. $11 = HEAP32[14]|0;
  11812. $12 = (_IsKeyDown($11)|0);
  11813. $13 = HEAP32[15]|0;
  11814. $14 = (_IsKeyDown($13)|0);
  11815. $15 = HEAP32[16]|0;
  11816. $16 = (_IsKeyDown($15)|0);
  11817. HEAP32[$2>>2] = $16;
  11818. $17 = ((($2)) + 4|0);
  11819. $18 = HEAP32[17]|0;
  11820. $19 = (_IsKeyDown($18)|0);
  11821. HEAP32[$17>>2] = $19;
  11822. $20 = ((($2)) + 8|0);
  11823. $21 = HEAP32[18]|0;
  11824. $22 = (_IsKeyDown($21)|0);
  11825. HEAP32[$20>>2] = $22;
  11826. $23 = ((($2)) + 12|0);
  11827. $24 = HEAP32[19]|0;
  11828. $25 = (_IsKeyDown($24)|0);
  11829. HEAP32[$23>>2] = $25;
  11830. $26 = ((($2)) + 16|0);
  11831. $27 = HEAP32[20]|0;
  11832. $28 = (_IsKeyDown($27)|0);
  11833. HEAP32[$26>>2] = $28;
  11834. $29 = ((($2)) + 20|0);
  11835. $30 = HEAP32[21]|0;
  11836. $31 = (_IsKeyDown($30)|0);
  11837. HEAP32[$29>>2] = $31;
  11838. $32 = HEAP32[4706]|0;
  11839. $33 = ($32|0)==(0);
  11840. L1: do {
  11841. if ($33) {
  11842. label = 58;
  11843. } else {
  11844. $34 = (_GetScreenWidth()|0);
  11845. $35 = (_GetScreenHeight()|0);
  11846. $$off187 = (($32) + -3)|0;
  11847. $36 = ($$off187>>>0)<(2);
  11848. do {
  11849. if ($36) {
  11850. _HideCursor();
  11851. $37 = +HEAPF32[$1>>2];
  11852. $38 = (+($35|0));
  11853. $39 = $38 / 3.0;
  11854. $40 = $37 < $39;
  11855. $41 = ((($1)) + 4|0);
  11856. $42 = +HEAPF32[$41>>2];
  11857. if ($40) {
  11858. $43 = (($35|0) / 3)&-1;
  11859. $44 = (($34) - ($43))|0;
  11860. $45 = (+($44|0));
  11861. HEAPF32[$3>>2] = $45;
  11862. $46 = ((($3)) + 4|0);
  11863. HEAPF32[$46>>2] = $42;
  11864. ;HEAP32[$$byval_copy3>>2]=HEAP32[$3>>2]|0;HEAP32[$$byval_copy3+4>>2]=HEAP32[$3+4>>2]|0;
  11865. _SetMousePosition($$byval_copy3);
  11866. $$sroa$095$0 = 0.0;$$sroa$9$0 = 0.0;
  11867. break;
  11868. }
  11869. $47 = $42 < $39;
  11870. if ($47) {
  11871. HEAPF32[$4>>2] = $37;
  11872. $48 = ((($4)) + 4|0);
  11873. $49 = (($35|0) / 3)&-1;
  11874. $50 = (($35) - ($49))|0;
  11875. $51 = (+($50|0));
  11876. HEAPF32[$48>>2] = $51;
  11877. ;HEAP32[$$byval_copy3>>2]=HEAP32[$4>>2]|0;HEAP32[$$byval_copy3+4>>2]=HEAP32[$4+4>>2]|0;
  11878. _SetMousePosition($$byval_copy3);
  11879. $$sroa$095$0 = 0.0;$$sroa$9$0 = 0.0;
  11880. break;
  11881. }
  11882. $52 = (+($34|0));
  11883. $53 = $52 - $39;
  11884. $54 = $37 > $53;
  11885. if ($54) {
  11886. $55 = (($35|0) / 3)&-1;
  11887. $56 = (+($55|0));
  11888. HEAPF32[$5>>2] = $56;
  11889. $57 = ((($5)) + 4|0);
  11890. $58 = HEAP32[$41>>2]|0;
  11891. HEAP32[$57>>2] = $58;
  11892. ;HEAP32[$$byval_copy3>>2]=HEAP32[$5>>2]|0;HEAP32[$$byval_copy3+4>>2]=HEAP32[$5+4>>2]|0;
  11893. _SetMousePosition($$byval_copy3);
  11894. $$sroa$095$0 = 0.0;$$sroa$9$0 = 0.0;
  11895. break;
  11896. }
  11897. $59 = $38 - $39;
  11898. $60 = $42 > $59;
  11899. if ($60) {
  11900. HEAPF32[$6>>2] = $37;
  11901. $61 = ((($6)) + 4|0);
  11902. $62 = (($35|0) / 3)&-1;
  11903. $63 = (+($62|0));
  11904. HEAPF32[$61>>2] = $63;
  11905. ;HEAP32[$$byval_copy3>>2]=HEAP32[$6>>2]|0;HEAP32[$$byval_copy3+4>>2]=HEAP32[$6+4>>2]|0;
  11906. _SetMousePosition($$byval_copy3);
  11907. $$sroa$095$0 = 0.0;$$sroa$9$0 = 0.0;
  11908. break;
  11909. } else {
  11910. $64 = +HEAPF32[4540];
  11911. $65 = $37 - $64;
  11912. $66 = +HEAPF32[(18164)>>2];
  11913. $67 = $42 - $66;
  11914. $$sroa$095$0 = $65;$$sroa$9$0 = $67;
  11915. break;
  11916. }
  11917. } else {
  11918. _ShowCursor();
  11919. $68 = +HEAPF32[$1>>2];
  11920. $69 = +HEAPF32[4540];
  11921. $70 = $68 - $69;
  11922. $71 = ((($1)) + 4|0);
  11923. $72 = +HEAPF32[$71>>2];
  11924. $73 = +HEAPF32[(18164)>>2];
  11925. $74 = $72 - $73;
  11926. $$sroa$095$0 = $70;$$sroa$9$0 = $74;
  11927. }
  11928. } while(0);
  11929. _GetMousePosition($7);
  11930. $75 = $7;
  11931. $76 = $75;
  11932. $77 = HEAP32[$76>>2]|0;
  11933. $78 = (($75) + 4)|0;
  11934. $79 = $78;
  11935. $80 = HEAP32[$79>>2]|0;
  11936. $81 = 18160;
  11937. $82 = $81;
  11938. HEAP32[$82>>2] = $77;
  11939. $83 = (($81) + 4)|0;
  11940. $84 = $83;
  11941. HEAP32[$84>>2] = $80;
  11942. $$pr = HEAP32[4706]|0;
  11943. switch ($$pr|0) {
  11944. case 1: {
  11945. $85 = +HEAPF32[4703];
  11946. $86 = $85 < 120.0;
  11947. $87 = ($8|0)<(0);
  11948. $or$cond3 = $87 & $86;
  11949. do {
  11950. if ($or$cond3) {
  11951. $88 = (+($8|0));
  11952. $89 = $88 * 1.5;
  11953. $90 = $85 - $89;
  11954. HEAPF32[4703] = $90;
  11955. $91 = $90 > 120.0;
  11956. if ($91) {
  11957. HEAPF32[4703] = 120.0;
  11958. }
  11959. } else {
  11960. $92 = ((($0)) + 4|0);
  11961. $93 = +HEAPF32[$92>>2];
  11962. $94 = ((($0)) + 12|0);
  11963. $95 = ((($0)) + 16|0);
  11964. $96 = +HEAPF32[$95>>2];
  11965. $97 = $93 > $96;
  11966. $98 = $85 == 120.0;
  11967. $or$cond5 = $98 & $97;
  11968. $or$cond7 = $87 & $or$cond5;
  11969. if ($or$cond7) {
  11970. $99 = (+($8|0));
  11971. $100 = +HEAPF32[$94>>2];
  11972. $101 = +HEAPF32[$0>>2];
  11973. $102 = $100 - $101;
  11974. $103 = $99 * $102;
  11975. $104 = $103 * 1.5;
  11976. $105 = $104 / $85;
  11977. $106 = $100 + $105;
  11978. HEAPF32[$94>>2] = $106;
  11979. $107 = $96 - $93;
  11980. $108 = $99 * $107;
  11981. $109 = $108 * 1.5;
  11982. $110 = $109 / $85;
  11983. $111 = $96 + $110;
  11984. HEAPF32[$95>>2] = $111;
  11985. $112 = ((($0)) + 20|0);
  11986. $113 = +HEAPF32[$112>>2];
  11987. $114 = ((($0)) + 8|0);
  11988. $115 = +HEAPF32[$114>>2];
  11989. $116 = $113 - $115;
  11990. $117 = $99 * $116;
  11991. $118 = $117 * 1.5;
  11992. $119 = $118 / $85;
  11993. $120 = $113 + $119;
  11994. HEAPF32[$112>>2] = $120;
  11995. break;
  11996. }
  11997. $$not = $97 ^ 1;
  11998. $121 = !($96 >= 0.0);
  11999. $or$cond = $121 | $$not;
  12000. if (!($or$cond)) {
  12001. $122 = (+($8|0));
  12002. $123 = +HEAPF32[$94>>2];
  12003. $124 = +HEAPF32[$0>>2];
  12004. $125 = $123 - $124;
  12005. $126 = $122 * $125;
  12006. $127 = $126 * 1.5;
  12007. $128 = $127 / $85;
  12008. $129 = $123 + $128;
  12009. HEAPF32[$94>>2] = $129;
  12010. $130 = $96 - $93;
  12011. $131 = $122 * $130;
  12012. $132 = $131 * 1.5;
  12013. $133 = $132 / $85;
  12014. $134 = $96 + $133;
  12015. HEAPF32[$95>>2] = $134;
  12016. $135 = ((($0)) + 20|0);
  12017. $136 = +HEAPF32[$135>>2];
  12018. $137 = ((($0)) + 8|0);
  12019. $138 = +HEAPF32[$137>>2];
  12020. $139 = $136 - $138;
  12021. $140 = $122 * $139;
  12022. $141 = $140 * 1.5;
  12023. $142 = $141 / $85;
  12024. $143 = $136 + $142;
  12025. HEAPF32[$135>>2] = $143;
  12026. break;
  12027. }
  12028. if ($97) {
  12029. $144 = $96 < 0.0;
  12030. $145 = ($8|0)>(0);
  12031. $or$cond9 = $145 & $144;
  12032. if ($or$cond9) {
  12033. $146 = (+($8|0));
  12034. $147 = $146 * 1.5;
  12035. $148 = $85 - $147;
  12036. HEAPF32[4703] = $148;
  12037. $149 = $148 < 0.30000001192092896;
  12038. if (!($149)) {
  12039. break;
  12040. }
  12041. HEAPF32[4703] = 0.30000001192092896;
  12042. break;
  12043. }
  12044. }
  12045. $150 = $93 < $96;
  12046. $or$cond11 = $98 & $150;
  12047. $or$cond13 = $87 & $or$cond11;
  12048. $151 = +HEAPF32[$95>>2];
  12049. $152 = +HEAPF32[$92>>2];
  12050. if ($or$cond13) {
  12051. $153 = (+($8|0));
  12052. $154 = +HEAPF32[$94>>2];
  12053. $155 = +HEAPF32[$0>>2];
  12054. $156 = $154 - $155;
  12055. $157 = $153 * $156;
  12056. $158 = $157 * 1.5;
  12057. $159 = $158 / $85;
  12058. $160 = $154 + $159;
  12059. HEAPF32[$94>>2] = $160;
  12060. $161 = $151 - $152;
  12061. $162 = $153 * $161;
  12062. $163 = $162 * 1.5;
  12063. $164 = +HEAPF32[4703];
  12064. $165 = $163 / $164;
  12065. $166 = $151 + $165;
  12066. HEAPF32[$95>>2] = $166;
  12067. $167 = ((($0)) + 20|0);
  12068. $168 = +HEAPF32[$167>>2];
  12069. $169 = ((($0)) + 8|0);
  12070. $170 = +HEAPF32[$169>>2];
  12071. $171 = $168 - $170;
  12072. $172 = $153 * $171;
  12073. $173 = $172 * 1.5;
  12074. $174 = $173 / $164;
  12075. $175 = $168 + $174;
  12076. HEAPF32[$167>>2] = $175;
  12077. break;
  12078. }
  12079. $$not188 = $150 ^ 1;
  12080. $176 = !($96 <= 0.0);
  12081. $or$cond189 = $176 | $$not188;
  12082. if (!($or$cond189)) {
  12083. $177 = (+($8|0));
  12084. $178 = +HEAPF32[$94>>2];
  12085. $179 = +HEAPF32[$0>>2];
  12086. $180 = $178 - $179;
  12087. $181 = $177 * $180;
  12088. $182 = $181 * 1.5;
  12089. $183 = $182 / $85;
  12090. $184 = $178 + $183;
  12091. HEAPF32[$94>>2] = $184;
  12092. $185 = $151 - $152;
  12093. $186 = $177 * $185;
  12094. $187 = $186 * 1.5;
  12095. $188 = +HEAPF32[4703];
  12096. $189 = $187 / $188;
  12097. $190 = $151 + $189;
  12098. HEAPF32[$95>>2] = $190;
  12099. $191 = ((($0)) + 20|0);
  12100. $192 = +HEAPF32[$191>>2];
  12101. $193 = ((($0)) + 8|0);
  12102. $194 = +HEAPF32[$193>>2];
  12103. $195 = $192 - $194;
  12104. $196 = $177 * $195;
  12105. $197 = $196 * 1.5;
  12106. $198 = $197 / $188;
  12107. $199 = $192 + $198;
  12108. HEAPF32[$191>>2] = $199;
  12109. break;
  12110. }
  12111. $200 = $152 < $151;
  12112. if ($200) {
  12113. $201 = $151 > 0.0;
  12114. $202 = ($8|0)>(0);
  12115. $or$cond15 = $202 & $201;
  12116. if ($or$cond15) {
  12117. $203 = (+($8|0));
  12118. $204 = $203 * 1.5;
  12119. $205 = +HEAPF32[4703];
  12120. $206 = $205 - $204;
  12121. HEAPF32[4703] = $206;
  12122. $207 = $206 < 0.30000001192092896;
  12123. if ($207) {
  12124. HEAPF32[4703] = 0.30000001192092896;
  12125. }
  12126. }
  12127. }
  12128. }
  12129. } while(0);
  12130. $208 = ($10|0)==(0);
  12131. if ($208) {
  12132. label = 58;
  12133. break L1;
  12134. }
  12135. $209 = ($12|0)==(0);
  12136. if ($209) {
  12137. $222 = $$sroa$095$0 * -0.0099999997764825821;
  12138. $223 = +HEAPF32[4704];
  12139. $224 = (+Math_cos((+$223)));
  12140. $225 = $222 * $224;
  12141. $226 = $$sroa$9$0 * 0.0099999997764825821;
  12142. $227 = (+Math_sin((+$223)));
  12143. $228 = $226 * $227;
  12144. $229 = +HEAPF32[4705];
  12145. $230 = (+Math_sin((+$229)));
  12146. $231 = $228 * $230;
  12147. $232 = $225 + $231;
  12148. $233 = +HEAPF32[4703];
  12149. $234 = $233 / 5.0999999046325684;
  12150. $235 = $232 * $234;
  12151. $236 = ((($0)) + 12|0);
  12152. $237 = +HEAPF32[$236>>2];
  12153. $238 = $237 + $235;
  12154. HEAPF32[$236>>2] = $238;
  12155. $239 = (+Math_cos((+$229)));
  12156. $240 = $226 * $239;
  12157. $241 = $234 * $240;
  12158. $242 = ((($0)) + 16|0);
  12159. $243 = +HEAPF32[$242>>2];
  12160. $244 = $243 + $241;
  12161. HEAPF32[$242>>2] = $244;
  12162. $245 = $$sroa$095$0 * 0.0099999997764825821;
  12163. $246 = $245 * $227;
  12164. $247 = $226 * $224;
  12165. $248 = $247 * $230;
  12166. $249 = $246 + $248;
  12167. $250 = $249 * $234;
  12168. $251 = ((($0)) + 20|0);
  12169. $252 = +HEAPF32[$251>>2];
  12170. $253 = $250 + $252;
  12171. HEAPF32[$251>>2] = $253;
  12172. label = 58;
  12173. break L1;
  12174. }
  12175. $210 = ($14|0)==(0);
  12176. if (!($210)) {
  12177. $211 = $$sroa$9$0 * 0.05000000074505806;
  12178. $212 = +HEAPF32[4703];
  12179. $213 = $211 + $212;
  12180. HEAPF32[4703] = $213;
  12181. label = 58;
  12182. break L1;
  12183. }
  12184. $214 = $$sroa$095$0 * 0.0099999997764825821;
  12185. $215 = +HEAPF32[4704];
  12186. $216 = $215 - $214;
  12187. HEAPF32[4704] = $216;
  12188. $217 = $$sroa$9$0 * 0.0099999997764825821;
  12189. $218 = +HEAPF32[4705];
  12190. $219 = $218 - $217;
  12191. HEAPF32[4705] = $219;
  12192. $220 = $219 > 1.483529806137085;
  12193. if ($220) {
  12194. HEAPF32[4705] = 1.483529806137085;
  12195. label = 58;
  12196. break L1;
  12197. }
  12198. $221 = $219 < -1.483529806137085;
  12199. if (!($221)) {
  12200. label = 58;
  12201. break L1;
  12202. }
  12203. HEAPF32[4705] = -1.483529806137085;
  12204. label = 58;
  12205. break L1;
  12206. break;
  12207. }
  12208. case 2: {
  12209. $254 = +HEAPF32[4704];
  12210. $255 = $254 + 0.0099999997764825821;
  12211. HEAPF32[4704] = $255;
  12212. $256 = (+($8|0));
  12213. $257 = $256 * 1.5;
  12214. $258 = +HEAPF32[4703];
  12215. $259 = $258 - $257;
  12216. HEAPF32[4703] = $259;
  12217. $260 = $259 < 1.2000000476837158;
  12218. if (!($260)) {
  12219. label = 58;
  12220. break L1;
  12221. }
  12222. HEAPF32[4703] = 1.2000000476837158;
  12223. label = 58;
  12224. break L1;
  12225. break;
  12226. }
  12227. case 4: case 3: {
  12228. $264 = +HEAPF32[4704];
  12229. $265 = (+Math_sin((+$264)));
  12230. $266 = HEAP32[$17>>2]|0;
  12231. $267 = (+($266>>>0));
  12232. $268 = $265 * $267;
  12233. $269 = HEAP32[$2>>2]|0;
  12234. $270 = (+($269>>>0));
  12235. $271 = $265 * $270;
  12236. $272 = $268 - $271;
  12237. $273 = (+Math_cos((+$264)));
  12238. $274 = HEAP32[$23>>2]|0;
  12239. $275 = (+($274>>>0));
  12240. $276 = $273 * $275;
  12241. $277 = $272 - $276;
  12242. $278 = HEAP32[$20>>2]|0;
  12243. $279 = (+($278>>>0));
  12244. $280 = $273 * $279;
  12245. $281 = $277 + $280;
  12246. $282 = $281 / 20.0;
  12247. $283 = +HEAPF32[$0>>2];
  12248. $284 = $283 + $282;
  12249. HEAPF32[$0>>2] = $284;
  12250. $285 = +HEAPF32[4705];
  12251. $286 = (+Math_sin((+$285)));
  12252. $287 = $270 * $286;
  12253. $288 = $267 * $286;
  12254. $289 = $287 - $288;
  12255. $290 = HEAP32[$26>>2]|0;
  12256. $291 = (+($290>>>0));
  12257. $292 = $289 + $291;
  12258. $293 = HEAP32[$29>>2]|0;
  12259. $294 = (+($293>>>0));
  12260. $295 = $292 - $294;
  12261. $296 = $295 / 20.0;
  12262. $297 = ((($0)) + 4|0);
  12263. $298 = +HEAPF32[$297>>2];
  12264. $299 = $298 + $296;
  12265. HEAPF32[$297>>2] = $299;
  12266. $300 = $267 * $273;
  12267. $301 = $273 * $270;
  12268. $302 = $300 - $301;
  12269. $303 = $265 * $275;
  12270. $304 = $302 + $303;
  12271. $305 = $265 * $279;
  12272. $306 = $304 - $305;
  12273. $307 = $306 / 20.0;
  12274. $308 = ((($0)) + 8|0);
  12275. $309 = +HEAPF32[$308>>2];
  12276. $310 = $307 + $309;
  12277. HEAPF32[$308>>2] = $310;
  12278. $311 = HEAP32[$2>>2]|0;
  12279. $312 = ($311|0)==(0);
  12280. if ($312) {
  12281. $261 = ((($2)) + 4|0);
  12282. $262 = HEAP32[$261>>2]|0;
  12283. $263 = ($262|0)==(0);
  12284. if ($263) {
  12285. $407 = ((($2)) + 8|0);
  12286. $408 = HEAP32[$407>>2]|0;
  12287. $409 = ($408|0)==(0);
  12288. if ($409) {
  12289. $410 = ((($2)) + 12|0);
  12290. $411 = HEAP32[$410>>2]|0;
  12291. $412 = ($411|0)==(0);
  12292. if ($412) {
  12293. $413 = ((($2)) + 16|0);
  12294. $414 = HEAP32[$413>>2]|0;
  12295. $415 = ($414|0)==(0);
  12296. if ($415) {
  12297. $416 = ((($2)) + 20|0);
  12298. $417 = HEAP32[$416>>2]|0;
  12299. $not$ = ($417|0)!=(0);
  12300. $$ = $not$&1;
  12301. $$0 = $$;
  12302. } else {
  12303. $$0 = 1;
  12304. }
  12305. } else {
  12306. $$0 = 1;
  12307. }
  12308. } else {
  12309. $$0 = 1;
  12310. }
  12311. } else {
  12312. $$0 = 1;
  12313. }
  12314. } else {
  12315. $$0 = 1;
  12316. }
  12317. $313 = $$sroa$095$0 * 0.0030000000260770321;
  12318. $314 = +HEAPF32[4704];
  12319. $315 = $314 - $313;
  12320. HEAPF32[4704] = $315;
  12321. $316 = $$sroa$9$0 * 0.0030000000260770321;
  12322. $317 = +HEAPF32[4705];
  12323. $318 = $317 - $316;
  12324. HEAPF32[4705] = $318;
  12325. $319 = HEAP32[4706]|0;
  12326. $320 = ($319|0)==(4);
  12327. if ($320) {
  12328. $321 = $318 > 0.087266460061073303;
  12329. if ($321) {
  12330. $$sink26 = 0.087266460061073303;
  12331. label = 49;
  12332. } else {
  12333. $322 = $318 < -1.483529806137085;
  12334. if ($322) {
  12335. $$sink26 = -1.483529806137085;
  12336. label = 49;
  12337. }
  12338. }
  12339. if ((label|0) == 49) {
  12340. HEAPF32[4705] = $$sink26;
  12341. }
  12342. $323 = (+($8|0));
  12343. $324 = $323 * 1.5;
  12344. $325 = +HEAPF32[4703];
  12345. $326 = $325 - $324;
  12346. $327 = $326 < 1.2000000476837158;
  12347. $storemerge = $327 ? 1.2000000476837158 : $326;
  12348. HEAPF32[4703] = $storemerge;
  12349. $328 = +HEAPF32[$0>>2];
  12350. $329 = +HEAPF32[4704];
  12351. $330 = (+Math_cos((+$329)));
  12352. $331 = $330 * 0.40000000596046448;
  12353. $332 = $328 + $331;
  12354. $333 = (+Math_sin((+$329)));
  12355. $334 = $333 * 0.0;
  12356. $335 = $332 + $334;
  12357. $336 = ((($0)) + 12|0);
  12358. HEAPF32[$336>>2] = $335;
  12359. $337 = +HEAPF32[$297>>2];
  12360. $338 = $337 + 0.0;
  12361. $339 = ((($0)) + 16|0);
  12362. HEAPF32[$339>>2] = $338;
  12363. $340 = +HEAPF32[$308>>2];
  12364. $341 = $334 + $340;
  12365. $342 = $333 * 0.40000000596046448;
  12366. $343 = $341 - $342;
  12367. $$sink = $343;$$sink17 = $336;
  12368. } else {
  12369. $344 = $318 > 1.483529806137085;
  12370. if ($344) {
  12371. $$sink28 = 1.483529806137085;
  12372. label = 53;
  12373. } else {
  12374. $345 = $318 < -1.483529806137085;
  12375. if ($345) {
  12376. $$sink28 = -1.483529806137085;
  12377. label = 53;
  12378. }
  12379. }
  12380. if ((label|0) == 53) {
  12381. HEAPF32[4705] = $$sink28;
  12382. }
  12383. $346 = +HEAPF32[$0>>2];
  12384. $347 = +HEAPF32[4704];
  12385. $348 = (+Math_sin((+$347)));
  12386. $349 = $348 * 25.0;
  12387. $350 = $346 - $349;
  12388. $351 = ((($0)) + 12|0);
  12389. HEAPF32[$351>>2] = $350;
  12390. $352 = +HEAPF32[$297>>2];
  12391. $353 = +HEAPF32[4705];
  12392. $354 = (+Math_sin((+$353)));
  12393. $355 = $354 * 25.0;
  12394. $356 = $352 + $355;
  12395. $357 = ((($0)) + 16|0);
  12396. HEAPF32[$357>>2] = $356;
  12397. $358 = +HEAPF32[$308>>2];
  12398. $359 = (+Math_cos((+$347)));
  12399. $360 = $359 * 25.0;
  12400. $361 = $358 - $360;
  12401. $362 = ((($0)) + 20|0);
  12402. HEAPF32[$362>>2] = $361;
  12403. $363 = ($$0|0)==(0);
  12404. if (!($363)) {
  12405. $364 = HEAP32[4707]|0;
  12406. $365 = (($364) + 1)|0;
  12407. HEAP32[4707] = $365;
  12408. }
  12409. $366 = +HEAPF32[12];
  12410. $367 = HEAP32[4707]|0;
  12411. $368 = (+($367|0));
  12412. $369 = $368 / 5.0;
  12413. $370 = (+Math_sin((+$369)));
  12414. $371 = $370 / 30.0;
  12415. $372 = $366 - $371;
  12416. HEAPF32[$297>>2] = $372;
  12417. $373 = $368 / 10.0;
  12418. $374 = (+Math_sin((+$373)));
  12419. $375 = $374 / 200.0;
  12420. $376 = ((($0)) + 24|0);
  12421. HEAPF32[$376>>2] = $375;
  12422. $377 = -$374;
  12423. $378 = $377 / 200.0;
  12424. $$sink = $378;$$sink17 = $376;
  12425. }
  12426. $379 = ((($$sink17)) + 8|0);
  12427. HEAPF32[$379>>2] = $$sink;
  12428. label = 58;
  12429. break L1;
  12430. break;
  12431. }
  12432. default: {
  12433. $380 = $$pr;
  12434. break L1;
  12435. }
  12436. }
  12437. }
  12438. } while(0);
  12439. if ((label|0) == 58) {
  12440. $$pr190 = HEAP32[4706]|0;
  12441. $380 = $$pr190;
  12442. }
  12443. switch ($380|0) {
  12444. case 1: case 2: case 4: {
  12445. break;
  12446. }
  12447. default: {
  12448. STACKTOP = sp;return;
  12449. }
  12450. }
  12451. $381 = +HEAPF32[4704];
  12452. $382 = (+Math_sin((+$381)));
  12453. $383 = +HEAPF32[4703];
  12454. $384 = $382 * $383;
  12455. $385 = +HEAPF32[4705];
  12456. $386 = (+Math_cos((+$385)));
  12457. $387 = $384 * $386;
  12458. $388 = ((($0)) + 12|0);
  12459. $389 = +HEAPF32[$388>>2];
  12460. $390 = $387 + $389;
  12461. HEAPF32[$0>>2] = $390;
  12462. $391 = !($385 <= 0.0);
  12463. $392 = (+Math_sin((+$385)));
  12464. $393 = +HEAPF32[4703];
  12465. $394 = ((($0)) + 16|0);
  12466. $395 = +HEAPF32[$394>>2];
  12467. $396 = $392 * $393;
  12468. $397 = $392 * $396;
  12469. $398 = -$397;
  12470. $$sink22$p = $391 ? $398 : $397;
  12471. $$sink22 = $395 + $$sink22$p;
  12472. $399 = ((($0)) + 4|0);
  12473. HEAPF32[$399>>2] = $$sink22;
  12474. $400 = (+Math_cos((+$381)));
  12475. $401 = $393 * $400;
  12476. $402 = $386 * $401;
  12477. $403 = ((($0)) + 20|0);
  12478. $404 = +HEAPF32[$403>>2];
  12479. $405 = $404 + $402;
  12480. $406 = ((($0)) + 8|0);
  12481. HEAPF32[$406>>2] = $405;
  12482. STACKTOP = sp;return;
  12483. }
  12484. function _GetMousePosition($0) {
  12485. $0 = $0|0;
  12486. var $1 = 0, $10 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  12487. sp = STACKTOP;
  12488. $1 = 18168;
  12489. $2 = $1;
  12490. $3 = HEAP32[$2>>2]|0;
  12491. $4 = (($1) + 4)|0;
  12492. $5 = $4;
  12493. $6 = HEAP32[$5>>2]|0;
  12494. $7 = $0;
  12495. $8 = $7;
  12496. HEAP32[$8>>2] = $3;
  12497. $9 = (($7) + 4)|0;
  12498. $10 = $9;
  12499. HEAP32[$10>>2] = $6;
  12500. return;
  12501. }
  12502. function _GetMouseWheelMove() {
  12503. var $0 = 0, $1 = 0, label = 0, sp = 0;
  12504. sp = STACKTOP;
  12505. $0 = HEAP32[4712]|0;
  12506. $1 = (($0|0) / 100)&-1;
  12507. return ($1|0);
  12508. }
  12509. function _IsMouseButtonDown($0) {
  12510. $0 = $0|0;
  12511. var $$ = 0, $1 = 0, $2 = 0, label = 0, sp = 0;
  12512. sp = STACKTOP;
  12513. $1 = (_GetMouseButtonStatus($0)|0);
  12514. $2 = ($1|0)==(1);
  12515. $$ = $2&1;
  12516. return ($$|0);
  12517. }
  12518. function _IsKeyDown($0) {
  12519. $0 = $0|0;
  12520. var $$ = 0, $1 = 0, $2 = 0, label = 0, sp = 0;
  12521. sp = STACKTOP;
  12522. $1 = (_GetKeyStatus($0)|0);
  12523. $2 = ($1|0)==(1);
  12524. $$ = $2&1;
  12525. return ($$|0);
  12526. }
  12527. function _GetScreenWidth() {
  12528. var $0 = 0, label = 0, sp = 0;
  12529. sp = STACKTOP;
  12530. $0 = HEAP32[4711]|0;
  12531. return ($0|0);
  12532. }
  12533. function _GetScreenHeight() {
  12534. var $0 = 0, label = 0, sp = 0;
  12535. sp = STACKTOP;
  12536. $0 = HEAP32[4710]|0;
  12537. return ($0|0);
  12538. }
  12539. function _HideCursor() {
  12540. var label = 0, sp = 0;
  12541. sp = STACKTOP;
  12542. HEAP32[4708] = 1;
  12543. return;
  12544. }
  12545. function _SetMousePosition($0) {
  12546. $0 = $0|0;
  12547. var $1 = 0, $10 = 0, $11 = 0, $12 = 0.0, $13 = 0.0, $14 = 0, $15 = 0.0, $16 = 0.0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  12548. sp = STACKTOP;
  12549. $1 = $0;
  12550. $2 = $1;
  12551. $3 = HEAP32[$2>>2]|0;
  12552. $4 = (($1) + 4)|0;
  12553. $5 = $4;
  12554. $6 = HEAP32[$5>>2]|0;
  12555. $7 = 18168;
  12556. $8 = $7;
  12557. HEAP32[$8>>2] = $3;
  12558. $9 = (($7) + 4)|0;
  12559. $10 = $9;
  12560. HEAP32[$10>>2] = $6;
  12561. $11 = HEAP32[4709]|0;
  12562. $12 = +HEAPF32[$0>>2];
  12563. $13 = $12;
  12564. $14 = ((($0)) + 4|0);
  12565. $15 = +HEAPF32[$14>>2];
  12566. $16 = $15;
  12567. _glfwSetCursorPos(($11|0),(+$13),(+$16));
  12568. return;
  12569. }
  12570. function _ShowCursor() {
  12571. var label = 0, sp = 0;
  12572. sp = STACKTOP;
  12573. HEAP32[4708] = 0;
  12574. return;
  12575. }
  12576. function _GetKeyStatus($0) {
  12577. $0 = $0|0;
  12578. var $1 = 0, $2 = 0, label = 0, sp = 0;
  12579. sp = STACKTOP;
  12580. $1 = HEAP32[4709]|0;
  12581. $2 = (_glfwGetKey(($1|0),($0|0))|0);
  12582. return ($2|0);
  12583. }
  12584. function _GetMouseButtonStatus($0) {
  12585. $0 = $0|0;
  12586. var $1 = 0, $2 = 0, label = 0, sp = 0;
  12587. sp = STACKTOP;
  12588. $1 = HEAP32[4709]|0;
  12589. $2 = (_glfwGetMouseButton(($1|0),($0|0))|0);
  12590. return ($2|0);
  12591. }
  12592. function _InitWindow($0,$1,$2) {
  12593. $0 = $0|0;
  12594. $1 = $1|0;
  12595. $2 = $2|0;
  12596. var $10 = 0, $3 = 0, $4 = 0.0, $5 = 0.0, $6 = 0, $7 = 0.0, $8 = 0.0, $9 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  12597. sp = STACKTOP;
  12598. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  12599. $vararg_buffer = sp;
  12600. _TraceLog(0,4685,$vararg_buffer);
  12601. HEAP32[4713] = $2;
  12602. _InitGraphicsDevice($0,$1);
  12603. _LoadDefaultFont();
  12604. _InitTimer();
  12605. (_emscripten_set_fullscreenchange_callback((0|0),(0|0),1,(5|0))|0);
  12606. (_emscripten_set_keypress_callback((4714|0),(0|0),1,(6|0))|0);
  12607. (_emscripten_set_click_callback((4714|0),(0|0),1,(7|0))|0);
  12608. (_emscripten_set_touchstart_callback((4714|0),(0|0),1,(8|0))|0);
  12609. (_emscripten_set_touchend_callback((4714|0),(0|0),1,(8|0))|0);
  12610. (_emscripten_set_touchmove_callback((4714|0),(0|0),1,(8|0))|0);
  12611. (_emscripten_set_touchcancel_callback((4714|0),(0|0),1,(8|0))|0);
  12612. (_emscripten_set_gamepadconnected_callback((0|0),1,(9|0))|0);
  12613. (_emscripten_set_gamepaddisconnected_callback((0|0),1,(9|0))|0);
  12614. $3 = HEAP32[4711]|0;
  12615. $4 = (+($3|0));
  12616. $5 = $4 * 0.5;
  12617. HEAPF32[4542] = $5;
  12618. $6 = HEAP32[4710]|0;
  12619. $7 = (+($6|0));
  12620. $8 = $7 * 0.5;
  12621. HEAPF32[(18172)>>2] = $8;
  12622. $9 = HEAP32[4714]|0;
  12623. $10 = ($9|0)==(0);
  12624. if ($10) {
  12625. STACKTOP = sp;return;
  12626. }
  12627. _SetTargetFPS(60);
  12628. _LogoAnimation();
  12629. STACKTOP = sp;return;
  12630. }
  12631. function _TraceLog($0,$1,$varargs) {
  12632. $0 = $0|0;
  12633. $1 = $1|0;
  12634. $varargs = $varargs|0;
  12635. var $10 = 0, $11 = 0, $12 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $endptr = 0, $strlen = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  12636. sp = STACKTOP;
  12637. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  12638. $2 = sp;
  12639. switch ($0|0) {
  12640. case 0: {
  12641. ;HEAP8[18208>>0]=HEAP8[9214>>0]|0;HEAP8[18208+1>>0]=HEAP8[9214+1>>0]|0;HEAP8[18208+2>>0]=HEAP8[9214+2>>0]|0;HEAP8[18208+3>>0]=HEAP8[9214+3>>0]|0;HEAP8[18208+4>>0]=HEAP8[9214+4>>0]|0;HEAP8[18208+5>>0]=HEAP8[9214+5>>0]|0;HEAP8[18208+6>>0]=HEAP8[9214+6>>0]|0;
  12642. break;
  12643. }
  12644. case 1: {
  12645. $3 = 18208;
  12646. $4 = $3;
  12647. HEAP32[$4>>2] = 1330795077;
  12648. $5 = (($3) + 4)|0;
  12649. $6 = $5;
  12650. HEAP32[$6>>2] = 2112082;
  12651. break;
  12652. }
  12653. case 2: {
  12654. dest=18208; src=9221; stop=dest+10|0; do { HEAP8[dest>>0]=HEAP8[src>>0]|0; dest=dest+1|0; src=src+1|0; } while ((dest|0) < (stop|0));
  12655. break;
  12656. }
  12657. case 3: {
  12658. $7 = 18208;
  12659. $8 = $7;
  12660. HEAP32[$8>>2] = 1430406468;
  12661. $9 = (($7) + 4)|0;
  12662. $10 = $9;
  12663. HEAP32[$10>>2] = 2112071;
  12664. break;
  12665. }
  12666. default: {
  12667. }
  12668. }
  12669. (_strcat(18208,$1)|0);
  12670. $strlen = (_strlen(18208)|0);
  12671. $endptr = (18208 + ($strlen)|0);
  12672. HEAP8[$endptr>>0]=10&255;HEAP8[$endptr+1>>0]=10>>8;
  12673. HEAP32[$2>>2] = $varargs;
  12674. $11 = ($0|0)==(3);
  12675. if ($11) {
  12676. STACKTOP = sp;return;
  12677. }
  12678. (_vprintf(18208,$2)|0);
  12679. $12 = ($0|0)==(1);
  12680. if ($12) {
  12681. _exit(1);
  12682. // unreachable;
  12683. } else {
  12684. STACKTOP = sp;return;
  12685. }
  12686. }
  12687. function _InitGraphicsDevice($0,$1) {
  12688. $0 = $0|0;
  12689. $1 = $1|0;
  12690. var $$015 = 0, $$byval_copy = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0;
  12691. var $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0;
  12692. var $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0;
  12693. var $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0.0, $79 = 0, $8 = 0, $80 = 0;
  12694. var $81 = 0, $82 = 0.0, $83 = 0, $84 = 0, $85 = 0, $9 = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, $vararg_buffer10 = 0, $vararg_buffer14 = 0, $vararg_buffer18 = 0, $vararg_buffer22 = 0, $vararg_buffer3 = 0, $vararg_buffer6 = 0, $vararg_buffer8 = 0, $vararg_ptr13 = 0, $vararg_ptr17 = 0, $vararg_ptr21 = 0, $vararg_ptr5 = 0, dest = 0;
  12695. var label = 0, sp = 0, src = 0, stop = 0;
  12696. sp = STACKTOP;
  12697. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  12698. $$byval_copy = sp + 136|0;
  12699. $vararg_buffer22 = sp + 64|0;
  12700. $vararg_buffer18 = sp + 56|0;
  12701. $vararg_buffer14 = sp + 48|0;
  12702. $vararg_buffer10 = sp + 40|0;
  12703. $vararg_buffer8 = sp + 32|0;
  12704. $vararg_buffer6 = sp + 24|0;
  12705. $vararg_buffer3 = sp + 16|0;
  12706. $vararg_buffer1 = sp + 8|0;
  12707. $vararg_buffer = sp;
  12708. $2 = sp + 72|0;
  12709. $3 = sp + 140|0;
  12710. HEAP32[4711] = $0;
  12711. HEAP32[4710] = $1;
  12712. _MatrixIdentity($2);
  12713. dest=18932; src=$2; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  12714. (_glfwSetErrorCallback((2|0))|0);
  12715. $4 = (_glfwInit()|0);
  12716. $5 = ($4|0)==(0);
  12717. if ($5) {
  12718. _TraceLog(1,5356,$vararg_buffer);
  12719. }
  12720. $6 = HEAP32[4711]|0;
  12721. HEAP32[4749] = $6;
  12722. $7 = HEAP32[4710]|0;
  12723. HEAP32[4750] = $7;
  12724. _glfwDefaultWindowHints();
  12725. $8 = HEAP8[21676]|0;
  12726. $9 = $8 & 4;
  12727. $10 = ($9<<24>>24)==(0);
  12728. if ($10) {
  12729. _glfwWindowHint(131075,0);
  12730. } else {
  12731. _glfwWindowHint(131075,1);
  12732. }
  12733. $11 = HEAP8[21676]|0;
  12734. $12 = $11 & 8;
  12735. $13 = ($12<<24>>24)==(0);
  12736. if (!($13)) {
  12737. _glfwWindowHint(131077,1);
  12738. }
  12739. $14 = HEAP8[21676]|0;
  12740. $15 = $14 & 32;
  12741. $16 = ($15<<24>>24)==(0);
  12742. if (!($16)) {
  12743. _glfwWindowHint(135181,4);
  12744. _TraceLog(0,5382,$vararg_buffer1);
  12745. }
  12746. $17 = (_rlGetVersion()|0);
  12747. $18 = ($17|0)==(2);
  12748. if ($18) {
  12749. _glfwWindowHint(139266,2);
  12750. _glfwWindowHint(139267,1);
  12751. } else {
  12752. $19 = (_rlGetVersion()|0);
  12753. $20 = ($19|0)==(3);
  12754. if ($20) {
  12755. _glfwWindowHint(139266,3);
  12756. _glfwWindowHint(139267,3);
  12757. _glfwWindowHint(139272,204801);
  12758. _glfwWindowHint(139270,0);
  12759. }
  12760. }
  12761. $21 = HEAP32[4751]|0;
  12762. $22 = ($21|0)==(0);
  12763. if ($22) {
  12764. $47 = HEAP32[4711]|0;
  12765. $48 = HEAP32[4710]|0;
  12766. $49 = HEAP32[4713]|0;
  12767. $50 = (_glfwCreateWindow(($47|0),($48|0),($49|0),(0|0),(0|0))|0);
  12768. HEAP32[4709] = $50;
  12769. $51 = HEAP32[4711]|0;
  12770. HEAP32[4752] = $51;
  12771. $52 = HEAP32[4710]|0;
  12772. HEAP32[4753] = $52;
  12773. $54 = $50;
  12774. } else {
  12775. $23 = (_glfwGetPrimaryMonitor()|0);
  12776. $24 = (_glfwGetVideoModes(($23|0),($$byval_copy|0))|0);
  12777. $25 = HEAP32[$$byval_copy>>2]|0;
  12778. $26 = ($25|0)>(0);
  12779. L22: do {
  12780. if ($26) {
  12781. $27 = HEAP32[4711]|0;
  12782. $28 = HEAP32[$$byval_copy>>2]|0;
  12783. $29 = HEAP32[4710]|0;
  12784. $$015 = 0;
  12785. while(1) {
  12786. $30 = (($24) + (($$015*24)|0)|0);
  12787. $31 = HEAP32[$30>>2]|0;
  12788. $32 = ($31|0)<($27|0);
  12789. if (!($32)) {
  12790. $33 = (((($24) + (($$015*24)|0)|0)) + 4|0);
  12791. $34 = HEAP32[$33>>2]|0;
  12792. $35 = ($34|0)<($29|0);
  12793. if (!($35)) {
  12794. break;
  12795. }
  12796. }
  12797. $36 = (($$015) + 1)|0;
  12798. $37 = ($36|0)<($28|0);
  12799. if ($37) {
  12800. $$015 = $36;
  12801. } else {
  12802. break L22;
  12803. }
  12804. }
  12805. HEAP32[4749] = $31;
  12806. HEAP32[4750] = $34;
  12807. }
  12808. } while(0);
  12809. $38 = HEAP32[4749]|0;
  12810. $39 = HEAP32[4750]|0;
  12811. HEAP32[$vararg_buffer3>>2] = $38;
  12812. $vararg_ptr5 = ((($vararg_buffer3)) + 4|0);
  12813. HEAP32[$vararg_ptr5>>2] = $39;
  12814. _TraceLog(2,5407,$vararg_buffer3);
  12815. $40 = HEAP32[4749]|0;
  12816. $41 = HEAP32[4750]|0;
  12817. _SetupFramebufferSize($40,$41);
  12818. $42 = HEAP32[4749]|0;
  12819. $43 = HEAP32[4750]|0;
  12820. $44 = HEAP32[4713]|0;
  12821. $45 = (_glfwGetPrimaryMonitor()|0);
  12822. $46 = (_glfwCreateWindow(($42|0),($43|0),($44|0),($45|0),(0|0))|0);
  12823. HEAP32[4709] = $46;
  12824. $54 = $46;
  12825. }
  12826. $53 = ($54|0)==(0|0);
  12827. if ($53) {
  12828. _glfwTerminate();
  12829. _TraceLog(1,5445,$vararg_buffer6);
  12830. } else {
  12831. _TraceLog(0,5478,$vararg_buffer8);
  12832. $55 = HEAP32[4752]|0;
  12833. $56 = HEAP32[4753]|0;
  12834. HEAP32[$vararg_buffer10>>2] = $55;
  12835. $vararg_ptr13 = ((($vararg_buffer10)) + 4|0);
  12836. HEAP32[$vararg_ptr13>>2] = $56;
  12837. _TraceLog(0,5518,$vararg_buffer10);
  12838. $57 = HEAP32[4711]|0;
  12839. $58 = HEAP32[4710]|0;
  12840. HEAP32[$vararg_buffer14>>2] = $57;
  12841. $vararg_ptr17 = ((($vararg_buffer14)) + 4|0);
  12842. HEAP32[$vararg_ptr17>>2] = $58;
  12843. _TraceLog(0,5539,$vararg_buffer14);
  12844. $59 = HEAP32[4754]|0;
  12845. $60 = HEAP32[4755]|0;
  12846. HEAP32[$vararg_buffer18>>2] = $59;
  12847. $vararg_ptr21 = ((($vararg_buffer18)) + 4|0);
  12848. HEAP32[$vararg_ptr21>>2] = $60;
  12849. _TraceLog(0,5560,$vararg_buffer18);
  12850. }
  12851. $61 = HEAP32[4709]|0;
  12852. (_glfwSetWindowSizeCallback(($61|0),(1|0))|0);
  12853. $62 = HEAP32[4709]|0;
  12854. (_glfwSetCursorEnterCallback(($62|0),(3|0))|0);
  12855. $63 = HEAP32[4709]|0;
  12856. (_glfwSetKeyCallback(($63|0),(1|0))|0);
  12857. $64 = HEAP32[4709]|0;
  12858. (_glfwSetMouseButtonCallback(($64|0),(1|0))|0);
  12859. $65 = HEAP32[4709]|0;
  12860. (_glfwSetCursorPosCallback(($65|0),(1|0))|0);
  12861. $66 = HEAP32[4709]|0;
  12862. (_glfwSetCharCallback(($66|0),(4|0))|0);
  12863. $67 = HEAP32[4709]|0;
  12864. (_glfwSetScrollCallback(($67|0),(2|0))|0);
  12865. $68 = HEAP32[4709]|0;
  12866. (_glfwSetWindowIconifyCallback(($68|0),(5|0))|0);
  12867. $69 = HEAP32[4709]|0;
  12868. _glfwMakeContextCurrent(($69|0));
  12869. _glfwSwapInterval(0);
  12870. $70 = HEAP8[21676]|0;
  12871. $71 = $70 & 64;
  12872. $72 = ($71<<24>>24)==(0);
  12873. if ($72) {
  12874. $73 = HEAP32[4711]|0;
  12875. $74 = HEAP32[4710]|0;
  12876. _rlglInit($73,$74);
  12877. _SetupViewport();
  12878. _rlMatrixMode(5889);
  12879. _rlLoadIdentity();
  12880. $75 = HEAP32[4752]|0;
  12881. $76 = HEAP32[4754]|0;
  12882. $77 = (($75) - ($76))|0;
  12883. $78 = (+($77|0));
  12884. $79 = HEAP32[4753]|0;
  12885. $80 = HEAP32[4755]|0;
  12886. $81 = (($79) - ($80))|0;
  12887. $82 = (+($81|0));
  12888. _rlOrtho(0.0,$78,$82,0.0,0.0,1.0);
  12889. _rlMatrixMode(5888);
  12890. _rlLoadIdentity();
  12891. HEAP8[$3>>0] = -11;
  12892. $83 = ((($3)) + 1|0);
  12893. HEAP8[$83>>0] = -11;
  12894. $84 = ((($3)) + 2|0);
  12895. HEAP8[$84>>0] = -11;
  12896. $85 = ((($3)) + 3|0);
  12897. HEAP8[$85>>0] = -1;
  12898. ;HEAP8[$$byval_copy>>0]=HEAP8[$3>>0]|0;HEAP8[$$byval_copy+1>>0]=HEAP8[$3+1>>0]|0;HEAP8[$$byval_copy+2>>0]=HEAP8[$3+2>>0]|0;HEAP8[$$byval_copy+3>>0]=HEAP8[$3+3>>0]|0;
  12899. _ClearBackground($$byval_copy);
  12900. STACKTOP = sp;return;
  12901. }
  12902. _glfwSwapInterval(1);
  12903. _TraceLog(0,5585,$vararg_buffer22);
  12904. $73 = HEAP32[4711]|0;
  12905. $74 = HEAP32[4710]|0;
  12906. _rlglInit($73,$74);
  12907. _SetupViewport();
  12908. _rlMatrixMode(5889);
  12909. _rlLoadIdentity();
  12910. $75 = HEAP32[4752]|0;
  12911. $76 = HEAP32[4754]|0;
  12912. $77 = (($75) - ($76))|0;
  12913. $78 = (+($77|0));
  12914. $79 = HEAP32[4753]|0;
  12915. $80 = HEAP32[4755]|0;
  12916. $81 = (($79) - ($80))|0;
  12917. $82 = (+($81|0));
  12918. _rlOrtho(0.0,$78,$82,0.0,0.0,1.0);
  12919. _rlMatrixMode(5888);
  12920. _rlLoadIdentity();
  12921. HEAP8[$3>>0] = -11;
  12922. $83 = ((($3)) + 1|0);
  12923. HEAP8[$83>>0] = -11;
  12924. $84 = ((($3)) + 2|0);
  12925. HEAP8[$84>>0] = -11;
  12926. $85 = ((($3)) + 3|0);
  12927. HEAP8[$85>>0] = -1;
  12928. ;HEAP8[$$byval_copy>>0]=HEAP8[$3>>0]|0;HEAP8[$$byval_copy+1>>0]=HEAP8[$3+1>>0]|0;HEAP8[$$byval_copy+2>>0]=HEAP8[$3+2>>0]|0;HEAP8[$$byval_copy+3>>0]=HEAP8[$3+3>>0]|0;
  12929. _ClearBackground($$byval_copy);
  12930. STACKTOP = sp;return;
  12931. }
  12932. function _LoadDefaultFont() {
  12933. var $$ = 0, $$0101 = 0, $$090100 = 0, $$09299 = 0, $$095104 = 0, $$096103 = 0, $$097102 = 0, $$191 = 0, $$193 = 0, $$byval_copy1 = 0, $$lcssa = 0, $$sroa$0$0$$sroa_idx = 0, $0 = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0;
  12934. var $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0;
  12935. var $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0;
  12936. var $vararg_buffer = 0, label = 0, sp = 0;
  12937. sp = STACKTOP;
  12938. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  12939. $$byval_copy1 = sp + 44|0;
  12940. $vararg_buffer = sp;
  12941. $0 = sp + 4|0;
  12942. $1 = sp + 24|0;
  12943. HEAP32[(18900)>>2] = 224;
  12944. $2 = (_malloc(65536)|0);
  12945. _memset(($2|0),0,65536)|0;
  12946. $$095104 = 0;$$096103 = 0;
  12947. while(1) {
  12948. $3 = (88 + ($$095104<<2)|0);
  12949. $4 = HEAP32[$3>>2]|0;
  12950. $$097102 = 31;
  12951. while(1) {
  12952. $16 = 1 << $$097102;
  12953. $17 = $4 & $16;
  12954. $18 = ($17|0)==(0);
  12955. if (!($18)) {
  12956. $19 = (($$097102) + ($$096103))|0;
  12957. $$sroa$0$0$$sroa_idx = (($2) + ($19<<2)|0);
  12958. HEAP8[$$sroa$0$0$$sroa_idx>>0]=-1&255;HEAP8[$$sroa$0$0$$sroa_idx+1>>0]=(-1>>8)&255;HEAP8[$$sroa$0$0$$sroa_idx+2>>0]=(-1>>16)&255;HEAP8[$$sroa$0$0$$sroa_idx+3>>0]=-1>>24;
  12959. }
  12960. $20 = (($$097102) + -1)|0;
  12961. $21 = ($$097102|0)>(0);
  12962. if ($21) {
  12963. $$097102 = $20;
  12964. } else {
  12965. break;
  12966. }
  12967. }
  12968. $12 = (($$095104) + 1)|0;
  12969. $13 = ($$095104|0)>(511);
  12970. $$ = $13 ? 0 : $12;
  12971. $14 = (($$096103) + 32)|0;
  12972. $15 = ($14|0)<(16384);
  12973. if ($15) {
  12974. $$095104 = $$;$$096103 = $14;
  12975. } else {
  12976. break;
  12977. }
  12978. }
  12979. _LoadImageEx($0,$2,128,128);
  12980. _ImageFormat($0,2);
  12981. _free($2);
  12982. ;HEAP32[$$byval_copy1>>2]=HEAP32[$0>>2]|0;HEAP32[$$byval_copy1+4>>2]=HEAP32[$0+4>>2]|0;HEAP32[$$byval_copy1+8>>2]=HEAP32[$0+8>>2]|0;HEAP32[$$byval_copy1+12>>2]=HEAP32[$0+12>>2]|0;HEAP32[$$byval_copy1+16>>2]=HEAP32[$0+16>>2]|0;
  12983. _LoadTextureFromImage($1,$$byval_copy1);
  12984. ;HEAP32[18876>>2]=HEAP32[$1>>2]|0;HEAP32[18876+4>>2]=HEAP32[$1+4>>2]|0;HEAP32[18876+8>>2]=HEAP32[$1+8>>2]|0;HEAP32[18876+12>>2]=HEAP32[$1+12>>2]|0;HEAP32[18876+16>>2]=HEAP32[$1+16>>2]|0;
  12985. ;HEAP32[$$byval_copy1>>2]=HEAP32[$0>>2]|0;HEAP32[$$byval_copy1+4>>2]=HEAP32[$0+4>>2]|0;HEAP32[$$byval_copy1+8>>2]=HEAP32[$0+8>>2]|0;HEAP32[$$byval_copy1+12>>2]=HEAP32[$0+12>>2]|0;HEAP32[$$byval_copy1+16>>2]=HEAP32[$0+16>>2]|0;
  12986. _UnloadImage($$byval_copy1);
  12987. $5 = HEAP32[(18900)>>2]|0;
  12988. $6 = $5 << 5;
  12989. $7 = (_malloc($6)|0);
  12990. HEAP32[(18904)>>2] = $7;
  12991. $8 = ($5|0)>(0);
  12992. if (!($8)) {
  12993. $$lcssa = $7;
  12994. $22 = ((($$lcssa)) + 16|0);
  12995. $23 = HEAP32[$22>>2]|0;
  12996. HEAP32[(18896)>>2] = $23;
  12997. $24 = HEAP32[4719]|0;
  12998. HEAP32[$vararg_buffer>>2] = $24;
  12999. _TraceLog(0,4909,$vararg_buffer);
  13000. STACKTOP = sp;return;
  13001. }
  13002. $9 = HEAP32[(18880)>>2]|0;
  13003. $10 = HEAP32[(18900)>>2]|0;
  13004. $11 = HEAP32[(18904)>>2]|0;
  13005. $$0101 = 0;$$090100 = 1;$$09299 = 0;$27 = $7;
  13006. while(1) {
  13007. $25 = (($$0101) + 32)|0;
  13008. $26 = (($27) + ($$0101<<5)|0);
  13009. HEAP32[$26>>2] = $25;
  13010. $28 = (((($27) + ($$0101<<5)|0)) + 4|0);
  13011. HEAP32[$28>>2] = $$090100;
  13012. $29 = ($$09299*11)|0;
  13013. $30 = (($29) + 1)|0;
  13014. $31 = (((($27) + ($$0101<<5)|0)) + 8|0);
  13015. HEAP32[$31>>2] = $30;
  13016. $32 = (2136 + ($$0101<<2)|0);
  13017. $33 = HEAP32[$32>>2]|0;
  13018. $34 = (((($27) + ($$0101<<5)|0)) + 12|0);
  13019. HEAP32[$34>>2] = $33;
  13020. $35 = (((($27) + ($$0101<<5)|0)) + 16|0);
  13021. HEAP32[$35>>2] = 10;
  13022. $36 = (($$090100) + 1)|0;
  13023. $37 = (($36) + ($33))|0;
  13024. $38 = ($37|0)<($9|0);
  13025. $39 = (($$09299) + 1)|0;
  13026. if ($38) {
  13027. $$191 = $37;$$193 = $$09299;
  13028. } else {
  13029. $40 = ($39*11)|0;
  13030. $41 = (($40) + 1)|0;
  13031. $42 = (($33) + 2)|0;
  13032. HEAP32[$28>>2] = 1;
  13033. HEAP32[$31>>2] = $41;
  13034. $$191 = $42;$$193 = $39;
  13035. }
  13036. $43 = (((($27) + ($$0101<<5)|0)) + 20|0);
  13037. HEAP32[$43>>2] = 0;
  13038. $44 = (((($27) + ($$0101<<5)|0)) + 24|0);
  13039. HEAP32[$44>>2] = 0;
  13040. $45 = (((($27) + ($$0101<<5)|0)) + 28|0);
  13041. HEAP32[$45>>2] = 0;
  13042. $46 = (($$0101) + 1)|0;
  13043. $47 = ($46|0)<($10|0);
  13044. if ($47) {
  13045. $$0101 = $46;$$090100 = $$191;$$09299 = $$193;$27 = $11;
  13046. } else {
  13047. $$lcssa = $11;
  13048. break;
  13049. }
  13050. }
  13051. $22 = ((($$lcssa)) + 16|0);
  13052. $23 = HEAP32[$22>>2]|0;
  13053. HEAP32[(18896)>>2] = $23;
  13054. $24 = HEAP32[4719]|0;
  13055. HEAP32[$vararg_buffer>>2] = $24;
  13056. _TraceLog(0,4909,$vararg_buffer);
  13057. STACKTOP = sp;return;
  13058. }
  13059. function _InitTimer() {
  13060. var $0 = 0, $1 = 0.0, label = 0, sp = 0;
  13061. sp = STACKTOP;
  13062. $0 = (_time((0|0))|0);
  13063. _srand($0);
  13064. $1 = (+_GetTime());
  13065. HEAPF64[2275] = $1;
  13066. return;
  13067. }
  13068. function _EmscriptenFullscreenChangeCallback($0,$1,$2) {
  13069. $0 = $0|0;
  13070. $1 = $1|0;
  13071. $2 = $2|0;
  13072. var $10 = 0, $11 = 0, $12 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $vararg_buffer = 0, $vararg_buffer4 = 0, $vararg_ptr1 = 0, $vararg_ptr2 = 0, $vararg_ptr3 = 0, $vararg_ptr7 = 0, $vararg_ptr8 = 0, $vararg_ptr9 = 0, label = 0, sp = 0;
  13073. sp = STACKTOP;
  13074. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  13075. $vararg_buffer4 = sp + 16|0;
  13076. $vararg_buffer = sp;
  13077. $3 = HEAP32[$1>>2]|0;
  13078. $4 = ($3|0)==(0);
  13079. $5 = ((($1)) + 264|0);
  13080. $6 = HEAP32[$5>>2]|0;
  13081. $7 = ((($1)) + 268|0);
  13082. $8 = HEAP32[$7>>2]|0;
  13083. $9 = ((($1)) + 272|0);
  13084. $10 = HEAP32[$9>>2]|0;
  13085. $11 = ((($1)) + 276|0);
  13086. $12 = HEAP32[$11>>2]|0;
  13087. if ($4) {
  13088. HEAP32[$vararg_buffer4>>2] = $6;
  13089. $vararg_ptr7 = ((($vararg_buffer4)) + 4|0);
  13090. HEAP32[$vararg_ptr7>>2] = $8;
  13091. $vararg_ptr8 = ((($vararg_buffer4)) + 8|0);
  13092. HEAP32[$vararg_ptr8>>2] = $10;
  13093. $vararg_ptr9 = ((($vararg_buffer4)) + 12|0);
  13094. HEAP32[$vararg_ptr9>>2] = $12;
  13095. _TraceLog(0,4842,$vararg_buffer4);
  13096. STACKTOP = sp;return 0;
  13097. } else {
  13098. HEAP32[$vararg_buffer>>2] = $6;
  13099. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  13100. HEAP32[$vararg_ptr1>>2] = $8;
  13101. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  13102. HEAP32[$vararg_ptr2>>2] = $10;
  13103. $vararg_ptr3 = ((($vararg_buffer)) + 12|0);
  13104. HEAP32[$vararg_ptr3>>2] = $12;
  13105. _TraceLog(0,4773,$vararg_buffer);
  13106. STACKTOP = sp;return 0;
  13107. }
  13108. return (0)|0;
  13109. }
  13110. function _EmscriptenKeyboardCallback($0,$1,$2) {
  13111. $0 = $0|0;
  13112. $1 = $1|0;
  13113. $2 = $2|0;
  13114. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  13115. sp = STACKTOP;
  13116. $3 = ($0|0)==(1);
  13117. if (!($3)) {
  13118. return 0;
  13119. }
  13120. $4 = ((($1)) + 32|0);
  13121. $5 = (_strcmp($4,4766)|0);
  13122. $6 = ($5|0)==(0);
  13123. if (!($6)) {
  13124. return 0;
  13125. }
  13126. (_emscripten_exit_pointerlock()|0);
  13127. return 0;
  13128. }
  13129. function _EmscriptenMouseCallback($0,$1,$2) {
  13130. $0 = $0|0;
  13131. $1 = $1|0;
  13132. $2 = $2|0;
  13133. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  13134. sp = STACKTOP;
  13135. STACKTOP = STACKTOP + 272|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(272|0);
  13136. $3 = sp;
  13137. $4 = ($0|0)==(4);
  13138. if (!($4)) {
  13139. STACKTOP = sp;return 0;
  13140. }
  13141. (_emscripten_get_pointerlock_status(($3|0))|0);
  13142. $5 = HEAP32[$3>>2]|0;
  13143. $6 = ($5|0)==(0);
  13144. if ($6) {
  13145. (_emscripten_request_pointerlock((0|0),1)|0);
  13146. } else {
  13147. (_emscripten_exit_pointerlock()|0);
  13148. (_emscripten_get_pointerlock_status(($3|0))|0);
  13149. }
  13150. STACKTOP = sp;return 0;
  13151. }
  13152. function _EmscriptenTouchCallback($0,$1,$2) {
  13153. $0 = $0|0;
  13154. $1 = $1|0;
  13155. $2 = $2|0;
  13156. var $$byval_copy = 0, $$sink = 0, $$sroa$0$0$$sroa_idx = 0, $$sroa$03$0$$sroa_idx = 0, $$sroa$2$0$$sroa_idx2 = 0, $$sroa$24$0$$sroa_idx5 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0.0, $15 = 0, $16 = 0, $17 = 0.0, $18 = 0, $19 = 0, $20 = 0.0, $21 = 0, $22 = 0, $23 = 0.0;
  13157. var $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0;
  13158. var $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0.0, $48 = 0.0, $49 = 0.0, $5 = 0, $50 = 0, $51 = 0.0, $52 = 0.0, $53 = 0.0, $54 = 0, $55 = 0.0, $56 = 0.0, $57 = 0.0, $58 = 0, $59 = 0.0, $6 = 0;
  13159. var $60 = 0.0, $61 = 0.0, $7 = 0, $8 = 0, $9 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  13160. sp = STACKTOP;
  13161. STACKTOP = STACKTOP + 112|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(112|0);
  13162. $$byval_copy = sp + 56|0;
  13163. $3 = sp;
  13164. switch ($0|0) {
  13165. case 22: {
  13166. $$sink = 1;
  13167. label = 4;
  13168. break;
  13169. }
  13170. case 23: {
  13171. $$sink = 0;
  13172. label = 4;
  13173. break;
  13174. }
  13175. case 24: {
  13176. $$sink = 2;
  13177. label = 4;
  13178. break;
  13179. }
  13180. default: {
  13181. }
  13182. }
  13183. if ((label|0) == 4) {
  13184. HEAP32[$3>>2] = $$sink;
  13185. }
  13186. $4 = HEAP32[$1>>2]|0;
  13187. $5 = ((($3)) + 4|0);
  13188. HEAP32[$5>>2] = $4;
  13189. $6 = ((($1)) + 20|0);
  13190. $7 = HEAP32[$6>>2]|0;
  13191. $8 = ((($3)) + 8|0);
  13192. HEAP32[$8>>2] = $7;
  13193. $9 = ((($1)) + 72|0);
  13194. $10 = HEAP32[$9>>2]|0;
  13195. $11 = ((($3)) + 12|0);
  13196. HEAP32[$11>>2] = $10;
  13197. $12 = ((($1)) + 56|0);
  13198. $13 = HEAP32[$12>>2]|0;
  13199. $14 = (+($13|0));
  13200. $15 = ((($1)) + 60|0);
  13201. $16 = HEAP32[$15>>2]|0;
  13202. $17 = (+($16|0));
  13203. $$sroa$03$0$$sroa_idx = ((($3)) + 24|0);
  13204. HEAPF32[$$sroa$03$0$$sroa_idx>>2] = $14;
  13205. $$sroa$24$0$$sroa_idx5 = ((($3)) + 28|0);
  13206. HEAPF32[$$sroa$24$0$$sroa_idx5>>2] = $17;
  13207. $18 = ((($1)) + 108|0);
  13208. $19 = HEAP32[$18>>2]|0;
  13209. $20 = (+($19|0));
  13210. $21 = ((($1)) + 112|0);
  13211. $22 = HEAP32[$21>>2]|0;
  13212. $23 = (+($22|0));
  13213. $$sroa$0$0$$sroa_idx = ((($3)) + 32|0);
  13214. HEAPF32[$$sroa$0$0$$sroa_idx>>2] = $20;
  13215. $$sroa$2$0$$sroa_idx2 = ((($3)) + 36|0);
  13216. HEAPF32[$$sroa$2$0$$sroa_idx2>>2] = $23;
  13217. $24 = ((($3)) + 24|0);
  13218. $25 = $24;
  13219. $26 = $25;
  13220. $27 = HEAP32[$26>>2]|0;
  13221. $28 = (($25) + 4)|0;
  13222. $29 = $28;
  13223. $30 = HEAP32[$29>>2]|0;
  13224. $31 = 18184;
  13225. $32 = $31;
  13226. HEAP32[$32>>2] = $27;
  13227. $33 = (($31) + 4)|0;
  13228. $34 = $33;
  13229. HEAP32[$34>>2] = $30;
  13230. $35 = ((($3)) + 32|0);
  13231. $36 = $35;
  13232. $37 = $36;
  13233. $38 = HEAP32[$37>>2]|0;
  13234. $39 = (($36) + 4)|0;
  13235. $40 = $39;
  13236. $41 = HEAP32[$40>>2]|0;
  13237. $42 = (18192);
  13238. $43 = $42;
  13239. HEAP32[$43>>2] = $38;
  13240. $44 = (($42) + 4)|0;
  13241. $45 = $44;
  13242. HEAP32[$45>>2] = $41;
  13243. $46 = (_GetScreenWidth()|0);
  13244. $47 = (+($46|0));
  13245. $48 = +HEAPF32[$24>>2];
  13246. $49 = $48 / $47;
  13247. HEAPF32[$24>>2] = $49;
  13248. $50 = (_GetScreenHeight()|0);
  13249. $51 = (+($50|0));
  13250. $52 = +HEAPF32[$$sroa$24$0$$sroa_idx5>>2];
  13251. $53 = $52 / $51;
  13252. HEAPF32[$$sroa$24$0$$sroa_idx5>>2] = $53;
  13253. $54 = (_GetScreenWidth()|0);
  13254. $55 = (+($54|0));
  13255. $56 = +HEAPF32[$35>>2];
  13256. $57 = $56 / $55;
  13257. HEAPF32[$35>>2] = $57;
  13258. $58 = (_GetScreenHeight()|0);
  13259. $59 = (+($58|0));
  13260. $60 = +HEAPF32[$$sroa$2$0$$sroa_idx2>>2];
  13261. $61 = $60 / $59;
  13262. HEAPF32[$$sroa$2$0$$sroa_idx2>>2] = $61;
  13263. dest=$$byval_copy; src=$3; stop=dest+56|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  13264. _ProcessGestureEvent($$byval_copy);
  13265. STACKTOP = sp;return 1;
  13266. }
  13267. function _EmscriptenGamepadCallback($0,$1,$2) {
  13268. $0 = $0|0;
  13269. $1 = $1|0;
  13270. $2 = $2|0;
  13271. var $$sink = 0, $10 = 0, $11 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  13272. sp = STACKTOP;
  13273. $3 = ((($1)) + 1296|0);
  13274. $4 = HEAP32[$3>>2]|0;
  13275. $5 = ($4|0)==(0);
  13276. if ($5) {
  13277. label = 3;
  13278. } else {
  13279. $6 = ((($1)) + 1300|0);
  13280. $7 = HEAP32[$6>>2]|0;
  13281. $8 = ($7|0)<(4);
  13282. if ($8) {
  13283. $$sink = 1;
  13284. } else {
  13285. label = 3;
  13286. }
  13287. }
  13288. if ((label|0) == 3) {
  13289. $$sink = 0;
  13290. }
  13291. $9 = ((($1)) + 1300|0);
  13292. $10 = HEAP32[$9>>2]|0;
  13293. $11 = (18860 + ($10<<2)|0);
  13294. HEAP32[$11>>2] = $$sink;
  13295. return 0;
  13296. }
  13297. function _SetTargetFPS($0) {
  13298. $0 = $0|0;
  13299. var $$ = 0.0, $$op = 0.0, $1 = 0, $2 = 0.0, $3 = 0.0, $4 = 0.0, $5 = 0.0, $6 = 0.0, $vararg_buffer = 0, label = 0, sp = 0;
  13300. sp = STACKTOP;
  13301. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  13302. $vararg_buffer = sp;
  13303. $1 = ($0|0)<(1);
  13304. $2 = (+($0|0));
  13305. $3 = 1.0 / $2;
  13306. $$ = $1 ? 0.0 : $3;
  13307. HEAPF64[2272] = $$;
  13308. $4 = $3;
  13309. $$op = $4 * 1000.0;
  13310. $5 = $$op;
  13311. $6 = $1 ? 0.0 : $5;
  13312. HEAPF64[$vararg_buffer>>3] = $6;
  13313. _TraceLog(0,4722,$vararg_buffer);
  13314. STACKTOP = sp;return;
  13315. }
  13316. function _LogoAnimation() {
  13317. var label = 0, sp = 0;
  13318. sp = STACKTOP;
  13319. HEAP32[4714] = 0;
  13320. return;
  13321. }
  13322. function _GetTime() {
  13323. var $0 = 0.0, label = 0, sp = 0;
  13324. sp = STACKTOP;
  13325. $0 = (+_glfwGetTime());
  13326. return (+$0);
  13327. }
  13328. function _LoadImageEx($0,$1,$2,$3) {
  13329. $0 = $0|0;
  13330. $1 = $1|0;
  13331. $2 = $2|0;
  13332. $3 = $3|0;
  13333. var $$03334 = 0, $$035 = 0, $$sroa$12$0$$sroa_idx21 = 0, $$sroa$15$0$$sroa_idx24 = 0, $$sroa$16$0$$sroa_idx26 = 0, $$sroa$9$0$$sroa_idx18 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0;
  13334. var $24 = 0, $25 = 0, $26 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $exitcond = 0, label = 0, sp = 0;
  13335. sp = STACKTOP;
  13336. $4 = $2 << 2;
  13337. $5 = Math_imul($4, $3)|0;
  13338. $6 = (_malloc($5)|0);
  13339. $7 = ($5|0)>(0);
  13340. if ($7) {
  13341. $8 = (($5) + -1)|0;
  13342. $9 = $8 >>> 2;
  13343. $$03334 = 0;$$035 = 0;
  13344. while(1) {
  13345. $10 = (($1) + ($$03334<<2)|0);
  13346. $11 = HEAP8[$10>>0]|0;
  13347. $12 = (($6) + ($$035)|0);
  13348. HEAP8[$12>>0] = $11;
  13349. $13 = (((($1) + ($$03334<<2)|0)) + 1|0);
  13350. $14 = HEAP8[$13>>0]|0;
  13351. $15 = $$035 | 1;
  13352. $16 = (($6) + ($15)|0);
  13353. HEAP8[$16>>0] = $14;
  13354. $17 = (((($1) + ($$03334<<2)|0)) + 2|0);
  13355. $18 = HEAP8[$17>>0]|0;
  13356. $19 = $$035 | 2;
  13357. $20 = (($6) + ($19)|0);
  13358. HEAP8[$20>>0] = $18;
  13359. $21 = (((($1) + ($$03334<<2)|0)) + 3|0);
  13360. $22 = HEAP8[$21>>0]|0;
  13361. $23 = $$035 | 3;
  13362. $24 = (($6) + ($23)|0);
  13363. HEAP8[$24>>0] = $22;
  13364. $25 = (($$03334) + 1)|0;
  13365. $26 = (($$035) + 4)|0;
  13366. $exitcond = ($$03334|0)==($9|0);
  13367. if ($exitcond) {
  13368. break;
  13369. } else {
  13370. $$03334 = $25;$$035 = $26;
  13371. }
  13372. }
  13373. }
  13374. HEAP32[$0>>2] = $6;
  13375. $$sroa$9$0$$sroa_idx18 = ((($0)) + 4|0);
  13376. HEAP32[$$sroa$9$0$$sroa_idx18>>2] = $2;
  13377. $$sroa$12$0$$sroa_idx21 = ((($0)) + 8|0);
  13378. HEAP32[$$sroa$12$0$$sroa_idx21>>2] = $3;
  13379. $$sroa$15$0$$sroa_idx24 = ((($0)) + 12|0);
  13380. HEAP32[$$sroa$15$0$$sroa_idx24>>2] = 1;
  13381. $$sroa$16$0$$sroa_idx26 = ((($0)) + 16|0);
  13382. HEAP32[$$sroa$16$0$$sroa_idx26>>2] = 7;
  13383. return;
  13384. }
  13385. function _ImageFormat($0,$1) {
  13386. $0 = $0|0;
  13387. $1 = $1|0;
  13388. var $$0166199 = 0, $$0167197 = 0, $$0168195 = 0, $$0169192 = 0, $$0170190 = 0, $$0171188 = 0, $$0172189 = 0, $$0202 = 0, $$1194 = 0, $$2201 = 0, $$byval_copy = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0.0, $103 = 0.0, $104 = 0.0, $105 = 0, $106 = 0, $107 = 0;
  13389. var $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0, $114 = 0, $115 = 0, $116 = 0, $117 = 0, $118 = 0, $119 = 0, $12 = 0, $120 = 0, $121 = 0, $122 = 0, $123 = 0, $124 = 0, $125 = 0;
  13390. var $126 = 0, $127 = 0, $128 = 0, $129 = 0, $13 = 0, $130 = 0, $131 = 0, $132 = 0, $133 = 0, $134 = 0, $135 = 0, $136 = 0, $137 = 0, $138 = 0, $139 = 0, $14 = 0, $140 = 0, $141 = 0, $142 = 0, $143 = 0;
  13391. var $144 = 0, $145 = 0, $146 = 0, $147 = 0, $148 = 0, $149 = 0, $15 = 0, $150 = 0, $151 = 0, $152 = 0, $153 = 0, $154 = 0, $155 = 0, $156 = 0, $157 = 0, $158 = 0, $159 = 0, $16 = 0, $160 = 0, $161 = 0;
  13392. var $162 = 0, $163 = 0, $164 = 0, $165 = 0, $166 = 0, $167 = 0, $168 = 0, $169 = 0.0, $17 = 0, $170 = 0.0, $171 = 0.0, $172 = 0, $173 = 0, $174 = 0, $175 = 0.0, $176 = 0.0, $177 = 0.0, $178 = 0, $179 = 0, $18 = 0;
  13393. var $180 = 0, $181 = 0.0, $182 = 0.0, $183 = 0.0, $184 = 0, $185 = 0, $186 = 0, $187 = 0, $188 = 0, $189 = 0, $19 = 0.0, $190 = 0, $191 = 0, $192 = 0, $193 = 0, $194 = 0, $195 = 0, $196 = 0, $197 = 0, $198 = 0;
  13394. var $199 = 0, $2 = 0, $20 = 0.0, $200 = 0, $201 = 0, $202 = 0, $203 = 0, $204 = 0, $205 = 0, $206 = 0, $207 = 0, $208 = 0, $209 = 0, $21 = 0, $210 = 0, $211 = 0, $212 = 0, $213 = 0, $214 = 0, $215 = 0;
  13395. var $216 = 0, $217 = 0, $218 = 0.0, $219 = 0.0, $22 = 0, $220 = 0.0, $221 = 0, $222 = 0, $223 = 0, $224 = 0.0, $225 = 0.0, $226 = 0.0, $227 = 0, $228 = 0, $229 = 0, $23 = 0.0, $230 = 0.0, $231 = 0.0, $232 = 0.0, $233 = 0;
  13396. var $234 = 0, $235 = 0, $236 = 0.0, $237 = 0.0, $238 = 0.0, $239 = 0, $24 = 0.0, $240 = 0, $241 = 0, $242 = 0, $243 = 0, $244 = 0, $245 = 0, $246 = 0, $247 = 0, $248 = 0, $249 = 0, $25 = 0.0, $250 = 0, $251 = 0;
  13397. var $252 = 0, $253 = 0, $254 = 0, $255 = 0, $256 = 0, $257 = 0, $258 = 0, $259 = 0, $26 = 0, $260 = 0, $261 = 0, $262 = 0, $263 = 0, $264 = 0, $265 = 0, $266 = 0, $267 = 0, $268 = 0, $269 = 0, $27 = 0;
  13398. var $270 = 0, $271 = 0, $272 = 0, $273 = 0, $274 = 0, $275 = 0, $276 = 0, $277 = 0, $278 = 0, $279 = 0, $28 = 0.0, $280 = 0, $281 = 0, $282 = 0, $283 = 0, $284 = 0, $285 = 0, $286 = 0, $287 = 0, $288 = 0;
  13399. var $289 = 0, $29 = 0.0, $290 = 0, $3 = 0, $30 = 0.0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0;
  13400. var $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0.0, $53 = 0.0, $54 = 0, $55 = 0, $56 = 0.0, $57 = 0.0, $58 = 0.0, $59 = 0, $6 = 0, $60 = 0, $61 = 0.0, $62 = 0.0;
  13401. var $63 = 0.0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0;
  13402. var $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0, $89 = 0, $9 = 0, $90 = 0.0, $91 = 0.0, $92 = 0.0, $93 = 0, $94 = 0, $95 = 0, $96 = 0.0, $97 = 0.0, $98 = 0.0, $99 = 0;
  13403. var $or$cond = 0, $roundf = 0.0, $roundf173 = 0.0, $roundf174 = 0.0, $roundf175 = 0.0, $roundf176 = 0.0, $roundf177 = 0.0, $roundf178 = 0.0, $roundf179 = 0.0, $roundf180 = 0.0, $roundf181 = 0.0, $vararg_buffer = 0, label = 0, sp = 0;
  13404. sp = STACKTOP;
  13405. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  13406. $$byval_copy = sp + 4|0;
  13407. $vararg_buffer = sp;
  13408. $2 = ((($0)) + 16|0);
  13409. $3 = HEAP32[$2>>2]|0;
  13410. $4 = ($3|0)==($1|0);
  13411. if ($4) {
  13412. STACKTOP = sp;return;
  13413. }
  13414. $5 = ($3|0)<(8);
  13415. $6 = ($1|0)<(8);
  13416. $or$cond = $6 & $5;
  13417. if (!($or$cond)) {
  13418. _TraceLog(2,5256,$vararg_buffer);
  13419. STACKTOP = sp;return;
  13420. }
  13421. ;HEAP32[$$byval_copy>>2]=HEAP32[$0>>2]|0;HEAP32[$$byval_copy+4>>2]=HEAP32[$0+4>>2]|0;HEAP32[$$byval_copy+8>>2]=HEAP32[$0+8>>2]|0;HEAP32[$$byval_copy+12>>2]=HEAP32[$0+12>>2]|0;HEAP32[$$byval_copy+16>>2]=HEAP32[$0+16>>2]|0;
  13422. $7 = (_GetImageData($$byval_copy)|0);
  13423. $8 = HEAP32[$0>>2]|0;
  13424. _free($8);
  13425. HEAP32[$2>>2] = $1;
  13426. switch ($1|0) {
  13427. case 1: {
  13428. $9 = ((($0)) + 4|0);
  13429. $10 = HEAP32[$9>>2]|0;
  13430. $11 = ((($0)) + 8|0);
  13431. $12 = HEAP32[$11>>2]|0;
  13432. $13 = Math_imul($12, $10)|0;
  13433. $14 = (_malloc($13)|0);
  13434. HEAP32[$0>>2] = $14;
  13435. $15 = Math_imul($12, $10)|0;
  13436. $16 = ($15|0)>(0);
  13437. if ($16) {
  13438. $$0171188 = 0;
  13439. while(1) {
  13440. $17 = (($7) + ($$0171188<<2)|0);
  13441. $18 = HEAP8[$17>>0]|0;
  13442. $19 = (+($18&255));
  13443. $20 = $19 * 0.29899999499320984;
  13444. $21 = (((($7) + ($$0171188<<2)|0)) + 1|0);
  13445. $22 = HEAP8[$21>>0]|0;
  13446. $23 = (+($22&255));
  13447. $24 = $23 * 0.58700001239776611;
  13448. $25 = $20 + $24;
  13449. $26 = (((($7) + ($$0171188<<2)|0)) + 2|0);
  13450. $27 = HEAP8[$26>>0]|0;
  13451. $28 = (+($27&255));
  13452. $29 = $28 * 0.11400000005960464;
  13453. $30 = $25 + $29;
  13454. $31 = (~~(($30))&255);
  13455. $32 = HEAP32[$0>>2]|0;
  13456. $33 = (($32) + ($$0171188)|0);
  13457. HEAP8[$33>>0] = $31;
  13458. $34 = (($$0171188) + 1)|0;
  13459. $35 = HEAP32[$9>>2]|0;
  13460. $36 = HEAP32[$11>>2]|0;
  13461. $37 = Math_imul($36, $35)|0;
  13462. $38 = ($34|0)<($37|0);
  13463. if ($38) {
  13464. $$0171188 = $34;
  13465. } else {
  13466. break;
  13467. }
  13468. }
  13469. }
  13470. break;
  13471. }
  13472. case 2: {
  13473. $39 = ((($0)) + 4|0);
  13474. $40 = HEAP32[$39>>2]|0;
  13475. $41 = ((($0)) + 8|0);
  13476. $42 = HEAP32[$41>>2]|0;
  13477. $43 = $40 << 1;
  13478. $44 = Math_imul($43, $42)|0;
  13479. $45 = (_malloc($44)|0);
  13480. HEAP32[$0>>2] = $45;
  13481. $46 = HEAP32[$39>>2]|0;
  13482. $47 = $46 << 1;
  13483. $48 = Math_imul($47, $42)|0;
  13484. $49 = ($48|0)>(0);
  13485. if ($49) {
  13486. $$0170190 = 0;$$0172189 = 0;
  13487. while(1) {
  13488. $50 = (($7) + ($$0172189<<2)|0);
  13489. $51 = HEAP8[$50>>0]|0;
  13490. $52 = (+($51&255));
  13491. $53 = $52 * 0.29899999499320984;
  13492. $54 = (((($7) + ($$0172189<<2)|0)) + 1|0);
  13493. $55 = HEAP8[$54>>0]|0;
  13494. $56 = (+($55&255));
  13495. $57 = $56 * 0.58700001239776611;
  13496. $58 = $53 + $57;
  13497. $59 = (((($7) + ($$0172189<<2)|0)) + 2|0);
  13498. $60 = HEAP8[$59>>0]|0;
  13499. $61 = (+($60&255));
  13500. $62 = $61 * 0.11400000005960464;
  13501. $63 = $58 + $62;
  13502. $64 = (~~(($63))&255);
  13503. $65 = HEAP32[$0>>2]|0;
  13504. $66 = (($65) + ($$0170190)|0);
  13505. HEAP8[$66>>0] = $64;
  13506. $67 = (((($7) + ($$0172189<<2)|0)) + 3|0);
  13507. $68 = HEAP8[$67>>0]|0;
  13508. $69 = HEAP32[$0>>2]|0;
  13509. $70 = $$0170190 | 1;
  13510. $71 = (($69) + ($70)|0);
  13511. HEAP8[$71>>0] = $68;
  13512. $72 = (($$0172189) + 1)|0;
  13513. $73 = (($$0170190) + 2)|0;
  13514. $74 = HEAP32[$39>>2]|0;
  13515. $75 = HEAP32[$41>>2]|0;
  13516. $76 = $74 << 1;
  13517. $77 = Math_imul($76, $75)|0;
  13518. $78 = ($73|0)<($77|0);
  13519. if ($78) {
  13520. $$0170190 = $73;$$0172189 = $72;
  13521. } else {
  13522. break;
  13523. }
  13524. }
  13525. }
  13526. break;
  13527. }
  13528. case 3: {
  13529. $79 = ((($0)) + 4|0);
  13530. $80 = HEAP32[$79>>2]|0;
  13531. $81 = ((($0)) + 8|0);
  13532. $82 = HEAP32[$81>>2]|0;
  13533. $83 = $80 << 1;
  13534. $84 = Math_imul($83, $82)|0;
  13535. $85 = (_malloc($84)|0);
  13536. HEAP32[$0>>2] = $85;
  13537. $86 = HEAP32[$79>>2]|0;
  13538. $87 = Math_imul($82, $86)|0;
  13539. $88 = ($87|0)>(0);
  13540. if ($88) {
  13541. $89 = HEAP8[$7>>0]|0;
  13542. $90 = (+($89&255));
  13543. $91 = $90 * 31.0;
  13544. $92 = $91 / 255.0;
  13545. $roundf179 = (+_roundf((+$92)));
  13546. $93 = (~~(($roundf179))&255);
  13547. $94 = ((($7)) + 1|0);
  13548. $95 = HEAP8[$94>>0]|0;
  13549. $96 = (+($95&255));
  13550. $97 = $96 * 63.0;
  13551. $98 = $97 / 255.0;
  13552. $roundf180 = (+_roundf((+$98)));
  13553. $99 = (~~(($roundf180))&255);
  13554. $100 = ((($7)) + 2|0);
  13555. $101 = HEAP8[$100>>0]|0;
  13556. $102 = (+($101&255));
  13557. $103 = $102 * 31.0;
  13558. $104 = $103 / 255.0;
  13559. $roundf181 = (+_roundf((+$104)));
  13560. $105 = (~~(($roundf181))&255);
  13561. $106 = $93&255;
  13562. $107 = $106 << 11;
  13563. $108 = $99&255;
  13564. $109 = $108 << 5;
  13565. $110 = $109 | $107;
  13566. $111 = $105&255;
  13567. $112 = $110 | $111;
  13568. $113 = $112&65535;
  13569. $114 = HEAP32[$0>>2]|0;
  13570. $115 = HEAP32[$79>>2]|0;
  13571. $116 = HEAP32[$81>>2]|0;
  13572. $117 = Math_imul($116, $115)|0;
  13573. $$0169192 = 0;
  13574. while(1) {
  13575. $118 = (($114) + ($$0169192<<1)|0);
  13576. HEAP16[$118>>1] = $113;
  13577. $119 = (($$0169192) + 1)|0;
  13578. $120 = ($119|0)<($117|0);
  13579. if ($120) {
  13580. $$0169192 = $119;
  13581. } else {
  13582. break;
  13583. }
  13584. }
  13585. }
  13586. break;
  13587. }
  13588. case 4: {
  13589. $121 = ((($0)) + 4|0);
  13590. $122 = HEAP32[$121>>2]|0;
  13591. $123 = ((($0)) + 8|0);
  13592. $124 = HEAP32[$123>>2]|0;
  13593. $125 = ($122*3)|0;
  13594. $126 = Math_imul($125, $124)|0;
  13595. $127 = (_malloc($126)|0);
  13596. HEAP32[$0>>2] = $127;
  13597. $128 = HEAP32[$121>>2]|0;
  13598. $129 = ($128*3)|0;
  13599. $130 = Math_imul($129, $124)|0;
  13600. $131 = ($130|0)>(0);
  13601. if ($131) {
  13602. $$0168195 = 0;$$1194 = 0;
  13603. while(1) {
  13604. $132 = (($7) + ($$1194<<2)|0);
  13605. $133 = HEAP8[$132>>0]|0;
  13606. $134 = HEAP32[$0>>2]|0;
  13607. $135 = (($134) + ($$0168195)|0);
  13608. HEAP8[$135>>0] = $133;
  13609. $136 = (((($7) + ($$1194<<2)|0)) + 1|0);
  13610. $137 = HEAP8[$136>>0]|0;
  13611. $138 = HEAP32[$0>>2]|0;
  13612. $139 = (($$0168195) + 1)|0;
  13613. $140 = (($138) + ($139)|0);
  13614. HEAP8[$140>>0] = $137;
  13615. $141 = (((($7) + ($$1194<<2)|0)) + 2|0);
  13616. $142 = HEAP8[$141>>0]|0;
  13617. $143 = HEAP32[$0>>2]|0;
  13618. $144 = (($$0168195) + 2)|0;
  13619. $145 = (($143) + ($144)|0);
  13620. HEAP8[$145>>0] = $142;
  13621. $146 = (($$1194) + 1)|0;
  13622. $147 = (($$0168195) + 3)|0;
  13623. $148 = HEAP32[$121>>2]|0;
  13624. $149 = HEAP32[$123>>2]|0;
  13625. $150 = ($148*3)|0;
  13626. $151 = Math_imul($150, $149)|0;
  13627. $152 = ($147|0)<($151|0);
  13628. if ($152) {
  13629. $$0168195 = $147;$$1194 = $146;
  13630. } else {
  13631. break;
  13632. }
  13633. }
  13634. }
  13635. break;
  13636. }
  13637. case 5: {
  13638. $153 = ((($0)) + 4|0);
  13639. $154 = HEAP32[$153>>2]|0;
  13640. $155 = ((($0)) + 8|0);
  13641. $156 = HEAP32[$155>>2]|0;
  13642. $157 = $154 << 1;
  13643. $158 = Math_imul($157, $156)|0;
  13644. $159 = (_malloc($158)|0);
  13645. HEAP32[$0>>2] = $159;
  13646. $160 = HEAP32[$153>>2]|0;
  13647. $161 = Math_imul($156, $160)|0;
  13648. $162 = ($161|0)>(0);
  13649. if ($162) {
  13650. $163 = HEAP32[$0>>2]|0;
  13651. $164 = HEAP32[$153>>2]|0;
  13652. $165 = HEAP32[$155>>2]|0;
  13653. $166 = Math_imul($165, $164)|0;
  13654. $$0167197 = 0;
  13655. while(1) {
  13656. $167 = (($7) + ($$0167197<<2)|0);
  13657. $168 = HEAP8[$167>>0]|0;
  13658. $169 = (+($168&255));
  13659. $170 = $169 * 31.0;
  13660. $171 = $170 / 255.0;
  13661. $roundf176 = (+_roundf((+$171)));
  13662. $172 = (~~(($roundf176))&255);
  13663. $173 = (((($7) + ($$0167197<<2)|0)) + 1|0);
  13664. $174 = HEAP8[$173>>0]|0;
  13665. $175 = (+($174&255));
  13666. $176 = $175 * 31.0;
  13667. $177 = $176 / 255.0;
  13668. $roundf177 = (+_roundf((+$177)));
  13669. $178 = (~~(($roundf177))&255);
  13670. $179 = (((($7) + ($$0167197<<2)|0)) + 2|0);
  13671. $180 = HEAP8[$179>>0]|0;
  13672. $181 = (+($180&255));
  13673. $182 = $181 * 31.0;
  13674. $183 = $182 / 255.0;
  13675. $roundf178 = (+_roundf((+$183)));
  13676. $184 = (~~(($roundf178))&255);
  13677. $185 = (((($7) + ($$0167197<<2)|0)) + 3|0);
  13678. $186 = HEAP8[$185>>0]|0;
  13679. $187 = ($186&255)>(50);
  13680. $188 = $172&255;
  13681. $189 = $188 << 11;
  13682. $190 = $178&255;
  13683. $191 = $190 << 6;
  13684. $192 = $191 | $189;
  13685. $193 = $184&255;
  13686. $194 = $193 << 1;
  13687. $195 = $192 | $194;
  13688. $196 = $187&1;
  13689. $197 = $195 | $196;
  13690. $198 = $197&65535;
  13691. $199 = (($163) + ($$0167197<<1)|0);
  13692. HEAP16[$199>>1] = $198;
  13693. $200 = (($$0167197) + 1)|0;
  13694. $201 = ($200|0)<($166|0);
  13695. if ($201) {
  13696. $$0167197 = $200;
  13697. } else {
  13698. break;
  13699. }
  13700. }
  13701. }
  13702. break;
  13703. }
  13704. case 6: {
  13705. $202 = ((($0)) + 4|0);
  13706. $203 = HEAP32[$202>>2]|0;
  13707. $204 = ((($0)) + 8|0);
  13708. $205 = HEAP32[$204>>2]|0;
  13709. $206 = $203 << 1;
  13710. $207 = Math_imul($206, $205)|0;
  13711. $208 = (_malloc($207)|0);
  13712. HEAP32[$0>>2] = $208;
  13713. $209 = HEAP32[$202>>2]|0;
  13714. $210 = Math_imul($205, $209)|0;
  13715. $211 = ($210|0)>(0);
  13716. if ($211) {
  13717. $212 = HEAP32[$0>>2]|0;
  13718. $213 = HEAP32[$202>>2]|0;
  13719. $214 = HEAP32[$204>>2]|0;
  13720. $215 = Math_imul($214, $213)|0;
  13721. $$0166199 = 0;
  13722. while(1) {
  13723. $216 = (($7) + ($$0166199<<2)|0);
  13724. $217 = HEAP8[$216>>0]|0;
  13725. $218 = (+($217&255));
  13726. $219 = $218 * 15.0;
  13727. $220 = $219 / 255.0;
  13728. $roundf = (+_roundf((+$220)));
  13729. $221 = (~~(($roundf))&255);
  13730. $222 = (((($7) + ($$0166199<<2)|0)) + 1|0);
  13731. $223 = HEAP8[$222>>0]|0;
  13732. $224 = (+($223&255));
  13733. $225 = $224 * 15.0;
  13734. $226 = $225 / 255.0;
  13735. $roundf173 = (+_roundf((+$226)));
  13736. $227 = (~~(($roundf173))&255);
  13737. $228 = (((($7) + ($$0166199<<2)|0)) + 2|0);
  13738. $229 = HEAP8[$228>>0]|0;
  13739. $230 = (+($229&255));
  13740. $231 = $230 * 15.0;
  13741. $232 = $231 / 255.0;
  13742. $roundf174 = (+_roundf((+$232)));
  13743. $233 = (~~(($roundf174))&255);
  13744. $234 = (((($7) + ($$0166199<<2)|0)) + 3|0);
  13745. $235 = HEAP8[$234>>0]|0;
  13746. $236 = (+($235&255));
  13747. $237 = $236 * 15.0;
  13748. $238 = $237 / 255.0;
  13749. $roundf175 = (+_roundf((+$238)));
  13750. $239 = (~~(($roundf175))&255);
  13751. $240 = $221&255;
  13752. $241 = $240 << 12;
  13753. $242 = $227&255;
  13754. $243 = $242 << 8;
  13755. $244 = $243 | $241;
  13756. $245 = $233&255;
  13757. $246 = $245 << 4;
  13758. $247 = $244 | $246;
  13759. $248 = $239&255;
  13760. $249 = $247 | $248;
  13761. $250 = $249&65535;
  13762. $251 = (($212) + ($$0166199<<1)|0);
  13763. HEAP16[$251>>1] = $250;
  13764. $252 = (($$0166199) + 1)|0;
  13765. $253 = ($252|0)<($215|0);
  13766. if ($253) {
  13767. $$0166199 = $252;
  13768. } else {
  13769. break;
  13770. }
  13771. }
  13772. }
  13773. break;
  13774. }
  13775. case 7: {
  13776. $254 = ((($0)) + 4|0);
  13777. $255 = HEAP32[$254>>2]|0;
  13778. $256 = ((($0)) + 8|0);
  13779. $257 = HEAP32[$256>>2]|0;
  13780. $258 = $255 << 2;
  13781. $259 = Math_imul($258, $257)|0;
  13782. $260 = (_malloc($259)|0);
  13783. HEAP32[$0>>2] = $260;
  13784. $261 = HEAP32[$254>>2]|0;
  13785. $262 = $261 << 2;
  13786. $263 = Math_imul($262, $257)|0;
  13787. $264 = ($263|0)>(0);
  13788. if ($264) {
  13789. $$0202 = 0;$$2201 = 0;
  13790. while(1) {
  13791. $265 = (($7) + ($$2201<<2)|0);
  13792. $266 = HEAP8[$265>>0]|0;
  13793. $267 = HEAP32[$0>>2]|0;
  13794. $268 = (($267) + ($$0202)|0);
  13795. HEAP8[$268>>0] = $266;
  13796. $269 = (((($7) + ($$2201<<2)|0)) + 1|0);
  13797. $270 = HEAP8[$269>>0]|0;
  13798. $271 = HEAP32[$0>>2]|0;
  13799. $272 = $$0202 | 1;
  13800. $273 = (($271) + ($272)|0);
  13801. HEAP8[$273>>0] = $270;
  13802. $274 = (((($7) + ($$2201<<2)|0)) + 2|0);
  13803. $275 = HEAP8[$274>>0]|0;
  13804. $276 = HEAP32[$0>>2]|0;
  13805. $277 = $$0202 | 2;
  13806. $278 = (($276) + ($277)|0);
  13807. HEAP8[$278>>0] = $275;
  13808. $279 = (((($7) + ($$2201<<2)|0)) + 3|0);
  13809. $280 = HEAP8[$279>>0]|0;
  13810. $281 = HEAP32[$0>>2]|0;
  13811. $282 = $$0202 | 3;
  13812. $283 = (($281) + ($282)|0);
  13813. HEAP8[$283>>0] = $280;
  13814. $284 = (($$2201) + 1)|0;
  13815. $285 = (($$0202) + 4)|0;
  13816. $286 = HEAP32[$254>>2]|0;
  13817. $287 = HEAP32[$256>>2]|0;
  13818. $288 = $286 << 2;
  13819. $289 = Math_imul($288, $287)|0;
  13820. $290 = ($285|0)<($289|0);
  13821. if ($290) {
  13822. $$0202 = $285;$$2201 = $284;
  13823. } else {
  13824. break;
  13825. }
  13826. }
  13827. }
  13828. break;
  13829. }
  13830. default: {
  13831. }
  13832. }
  13833. _free($7);
  13834. STACKTOP = sp;return;
  13835. }
  13836. function _LoadTextureFromImage($0,$1) {
  13837. $0 = $0|0;
  13838. $1 = $1|0;
  13839. var $$sroa$11$0$$sroa_idx8 = 0, $$sroa$5$0$$sroa_idx2 = 0, $$sroa$7$0$$sroa_idx4 = 0, $$sroa$9$0$$sroa_idx6 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  13840. sp = STACKTOP;
  13841. $2 = HEAP32[$1>>2]|0;
  13842. $3 = ((($1)) + 4|0);
  13843. $4 = HEAP32[$3>>2]|0;
  13844. $5 = ((($1)) + 8|0);
  13845. $6 = HEAP32[$5>>2]|0;
  13846. $7 = ((($1)) + 16|0);
  13847. $8 = HEAP32[$7>>2]|0;
  13848. $9 = ((($1)) + 12|0);
  13849. $10 = HEAP32[$9>>2]|0;
  13850. $11 = (_rlglLoadTexture($2,$4,$6,$8,$10)|0);
  13851. $12 = HEAP32[$3>>2]|0;
  13852. $13 = HEAP32[$5>>2]|0;
  13853. HEAP32[$0>>2] = $11;
  13854. $$sroa$5$0$$sroa_idx2 = ((($0)) + 4|0);
  13855. HEAP32[$$sroa$5$0$$sroa_idx2>>2] = $12;
  13856. $$sroa$7$0$$sroa_idx4 = ((($0)) + 8|0);
  13857. HEAP32[$$sroa$7$0$$sroa_idx4>>2] = $13;
  13858. $$sroa$9$0$$sroa_idx6 = ((($0)) + 12|0);
  13859. HEAP32[$$sroa$9$0$$sroa_idx6>>2] = $10;
  13860. $$sroa$11$0$$sroa_idx8 = ((($0)) + 16|0);
  13861. HEAP32[$$sroa$11$0$$sroa_idx8>>2] = $8;
  13862. return;
  13863. }
  13864. function _UnloadImage($0) {
  13865. $0 = $0|0;
  13866. var $1 = 0, label = 0, sp = 0;
  13867. sp = STACKTOP;
  13868. $1 = HEAP32[$0>>2]|0;
  13869. _free($1);
  13870. return;
  13871. }
  13872. function _rlglLoadTexture($0,$1,$2,$3,$4) {
  13873. $0 = $0|0;
  13874. $1 = $1|0;
  13875. $2 = $2|0;
  13876. $3 = $3|0;
  13877. $4 = $4|0;
  13878. var $$0 = 0, $$off = 0, $$off92 = 0, $$off93 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0;
  13879. var $26 = 0, $27 = 0, $28 = 0, $29 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0;
  13880. var $46 = 0, $47 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, $or$cond100 = 0, $or$cond7 = 0, $or$cond96 = 0, $or$cond98 = 0, $switch = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, $vararg_buffer11 = 0, $vararg_buffer15 = 0, $vararg_buffer3 = 0, $vararg_buffer5 = 0, $vararg_buffer7 = 0;
  13881. var $vararg_buffer9 = 0, $vararg_ptr13 = 0, $vararg_ptr14 = 0, label = 0, sp = 0;
  13882. sp = STACKTOP;
  13883. STACKTOP = STACKTOP + 80|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(80|0);
  13884. $vararg_buffer15 = sp + 64|0;
  13885. $vararg_buffer11 = sp + 48|0;
  13886. $vararg_buffer9 = sp + 40|0;
  13887. $vararg_buffer7 = sp + 32|0;
  13888. $vararg_buffer5 = sp + 24|0;
  13889. $vararg_buffer3 = sp + 16|0;
  13890. $vararg_buffer1 = sp + 8|0;
  13891. $vararg_buffer = sp;
  13892. $5 = sp + 68|0;
  13893. _glBindTexture(3553,0);
  13894. HEAP32[$5>>2] = 0;
  13895. $6 = HEAP32[4727]|0;
  13896. $7 = ($6|0)==(0);
  13897. $8 = $3 & -4;
  13898. $switch = ($8|0)==(8);
  13899. $or$cond100 = $switch & $7;
  13900. if ($or$cond100) {
  13901. _TraceLog(2,4954,$vararg_buffer);
  13902. $$0 = HEAP32[$5>>2]|0;
  13903. STACKTOP = sp;return ($$0|0);
  13904. }
  13905. $9 = HEAP32[4728]|0;
  13906. $10 = ($9|0)==(0);
  13907. $11 = ($3|0)==(12);
  13908. $or$cond7 = $11 & $10;
  13909. if ($or$cond7) {
  13910. _TraceLog(2,4998,$vararg_buffer1);
  13911. $$0 = HEAP32[$5>>2]|0;
  13912. STACKTOP = sp;return ($$0|0);
  13913. }
  13914. $12 = HEAP32[4729]|0;
  13915. $13 = ($12|0)==(0);
  13916. $$off = (($3) + -13)|0;
  13917. $14 = ($$off>>>0)<(2);
  13918. $or$cond = $14 & $13;
  13919. if ($or$cond) {
  13920. _TraceLog(2,5043,$vararg_buffer3);
  13921. $$0 = HEAP32[$5>>2]|0;
  13922. STACKTOP = sp;return ($$0|0);
  13923. }
  13924. $15 = HEAP32[4730]|0;
  13925. $16 = ($15|0)==(0);
  13926. $$off92 = (($3) + -15)|0;
  13927. $17 = ($$off92>>>0)<(2);
  13928. $or$cond96 = $17 & $16;
  13929. if ($or$cond96) {
  13930. _TraceLog(2,5088,$vararg_buffer5);
  13931. $$0 = HEAP32[$5>>2]|0;
  13932. STACKTOP = sp;return ($$0|0);
  13933. }
  13934. $18 = HEAP32[4731]|0;
  13935. $19 = ($18|0)==(0);
  13936. $$off93 = (($3) + -17)|0;
  13937. $20 = ($$off93>>>0)<(2);
  13938. $or$cond98 = $20 & $19;
  13939. if ($or$cond98) {
  13940. _TraceLog(2,5133,$vararg_buffer7);
  13941. $$0 = HEAP32[$5>>2]|0;
  13942. STACKTOP = sp;return ($$0|0);
  13943. }
  13944. _glGenTextures(1,($5|0));
  13945. $21 = HEAP32[$5>>2]|0;
  13946. _glBindTexture(3553,($21|0));
  13947. do {
  13948. switch ($3|0) {
  13949. case 1: {
  13950. _glTexImage2D(3553,0,6409,($1|0),($2|0),0,6409,5121,($0|0));
  13951. break;
  13952. }
  13953. case 2: {
  13954. _glTexImage2D(3553,0,6410,($1|0),($2|0),0,6410,5121,($0|0));
  13955. break;
  13956. }
  13957. case 3: {
  13958. _glTexImage2D(3553,0,6407,($1|0),($2|0),0,6407,33635,($0|0));
  13959. break;
  13960. }
  13961. case 4: {
  13962. _glTexImage2D(3553,0,6407,($1|0),($2|0),0,6407,5121,($0|0));
  13963. break;
  13964. }
  13965. case 5: {
  13966. _glTexImage2D(3553,0,6408,($1|0),($2|0),0,6408,32820,($0|0));
  13967. break;
  13968. }
  13969. case 6: {
  13970. _glTexImage2D(3553,0,6408,($1|0),($2|0),0,6408,32819,($0|0));
  13971. break;
  13972. }
  13973. case 7: {
  13974. _glTexImage2D(3553,0,6408,($1|0),($2|0),0,6408,5121,($0|0));
  13975. break;
  13976. }
  13977. case 8: {
  13978. $22 = HEAP32[4727]|0;
  13979. $23 = ($22|0)==(0);
  13980. if (!($23)) {
  13981. _LoadCompressedTexture($0,$1,$2,$4,33776);
  13982. }
  13983. break;
  13984. }
  13985. case 9: {
  13986. $24 = HEAP32[4727]|0;
  13987. $25 = ($24|0)==(0);
  13988. if (!($25)) {
  13989. _LoadCompressedTexture($0,$1,$2,$4,33777);
  13990. }
  13991. break;
  13992. }
  13993. case 10: {
  13994. $26 = HEAP32[4727]|0;
  13995. $27 = ($26|0)==(0);
  13996. if (!($27)) {
  13997. _LoadCompressedTexture($0,$1,$2,$4,33778);
  13998. }
  13999. break;
  14000. }
  14001. case 11: {
  14002. $28 = HEAP32[4727]|0;
  14003. $29 = ($28|0)==(0);
  14004. if (!($29)) {
  14005. _LoadCompressedTexture($0,$1,$2,$4,33779);
  14006. }
  14007. break;
  14008. }
  14009. case 12: {
  14010. $30 = HEAP32[4728]|0;
  14011. $31 = ($30|0)==(0);
  14012. if (!($31)) {
  14013. _LoadCompressedTexture($0,$1,$2,$4,36196);
  14014. }
  14015. break;
  14016. }
  14017. case 13: {
  14018. $32 = HEAP32[4729]|0;
  14019. $33 = ($32|0)==(0);
  14020. if (!($33)) {
  14021. _LoadCompressedTexture($0,$1,$2,$4,37492);
  14022. }
  14023. break;
  14024. }
  14025. case 14: {
  14026. $34 = HEAP32[4729]|0;
  14027. $35 = ($34|0)==(0);
  14028. if (!($35)) {
  14029. _LoadCompressedTexture($0,$1,$2,$4,37496);
  14030. }
  14031. break;
  14032. }
  14033. case 15: {
  14034. $36 = HEAP32[4730]|0;
  14035. $37 = ($36|0)==(0);
  14036. if (!($37)) {
  14037. _LoadCompressedTexture($0,$1,$2,$4,35840);
  14038. }
  14039. break;
  14040. }
  14041. case 16: {
  14042. $38 = HEAP32[4730]|0;
  14043. $39 = ($38|0)==(0);
  14044. if (!($39)) {
  14045. _LoadCompressedTexture($0,$1,$2,$4,35842);
  14046. }
  14047. break;
  14048. }
  14049. case 17: {
  14050. $40 = HEAP32[4731]|0;
  14051. $41 = ($40|0)==(0);
  14052. if (!($41)) {
  14053. _LoadCompressedTexture($0,$1,$2,$4,37808);
  14054. }
  14055. break;
  14056. }
  14057. case 18: {
  14058. $42 = HEAP32[4731]|0;
  14059. $43 = ($42|0)==(0);
  14060. if (!($43)) {
  14061. _LoadCompressedTexture($0,$1,$2,$4,37815);
  14062. }
  14063. break;
  14064. }
  14065. default: {
  14066. _TraceLog(2,5178,$vararg_buffer9);
  14067. }
  14068. }
  14069. } while(0);
  14070. $44 = HEAP32[4732]|0;
  14071. $45 = ($44|0)==(0);
  14072. if ($45) {
  14073. _glTexParameteri(3553,10242,33071);
  14074. _glTexParameteri(3553,10243,33071);
  14075. } else {
  14076. _glTexParameteri(3553,10242,10497);
  14077. _glTexParameteri(3553,10243,10497);
  14078. }
  14079. _glTexParameteri(3553,10240,9728);
  14080. _glTexParameteri(3553,10241,9728);
  14081. _glBindTexture(3553,0);
  14082. $46 = HEAP32[$5>>2]|0;
  14083. $47 = ($46|0)==(0);
  14084. if ($47) {
  14085. _TraceLog(2,11944,$vararg_buffer15);
  14086. $$0 = HEAP32[$5>>2]|0;
  14087. STACKTOP = sp;return ($$0|0);
  14088. } else {
  14089. HEAP32[$vararg_buffer11>>2] = $46;
  14090. $vararg_ptr13 = ((($vararg_buffer11)) + 4|0);
  14091. HEAP32[$vararg_ptr13>>2] = $1;
  14092. $vararg_ptr14 = ((($vararg_buffer11)) + 8|0);
  14093. HEAP32[$vararg_ptr14>>2] = $2;
  14094. _TraceLog(0,5207,$vararg_buffer11);
  14095. $$0 = HEAP32[$5>>2]|0;
  14096. STACKTOP = sp;return ($$0|0);
  14097. }
  14098. return (0)|0;
  14099. }
  14100. function _LoadCompressedTexture($0,$1,$2,$3,$4) {
  14101. $0 = $0|0;
  14102. $1 = $1|0;
  14103. $2 = $2|0;
  14104. $3 = $3|0;
  14105. $4 = $4|0;
  14106. var $$ = 0, $$03645 = 0, $$03744 = 0, $$038 = 0, $$03943 = 0, $$046 = 0, $$140 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0;
  14107. var $23 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, $or$cond42 = 0, label = 0, sp = 0;
  14108. sp = STACKTOP;
  14109. _glPixelStorei(3317,1);
  14110. switch ($4|0) {
  14111. case 33776: case 33777: case 36196: case 37492: {
  14112. $$038 = 8;
  14113. break;
  14114. }
  14115. default: {
  14116. $$038 = 16;
  14117. }
  14118. }
  14119. $5 = ($3|0)<(1);
  14120. $6 = $1 | $2;
  14121. $7 = ($6|0)==(0);
  14122. $or$cond42 = $5 | $7;
  14123. if ($or$cond42) {
  14124. return;
  14125. } else {
  14126. $$03645 = 0;$$03744 = 0;$$03943 = $2;$$046 = $1;
  14127. }
  14128. while(1) {
  14129. $8 = (($$046) + 3)|0;
  14130. $9 = (($8|0) / 4)&-1;
  14131. $10 = (($$03943) + 3)|0;
  14132. $11 = (($10|0) / 4)&-1;
  14133. $12 = Math_imul($11, $$038)|0;
  14134. $13 = Math_imul($12, $9)|0;
  14135. $14 = (($0) + ($$03744)|0);
  14136. _glCompressedTexImage2D(3553,($$03645|0),($4|0),($$046|0),($$03943|0),0,($13|0),($14|0));
  14137. $15 = (($13) + ($$03744))|0;
  14138. $16 = (($$046|0) / 2)&-1;
  14139. $17 = (($$03943|0) / 2)&-1;
  14140. $18 = ($$046|0)<(2);
  14141. $$ = $18 ? 1 : $16;
  14142. $19 = ($$03943|0)<(2);
  14143. $$140 = $19 ? 1 : $17;
  14144. $20 = (($$03645) + 1)|0;
  14145. $21 = ($20|0)>=($3|0);
  14146. $22 = $$ | $$140;
  14147. $23 = ($22|0)==(0);
  14148. $or$cond = $21 | $23;
  14149. if ($or$cond) {
  14150. break;
  14151. } else {
  14152. $$03645 = $20;$$03744 = $15;$$03943 = $$140;$$046 = $$;
  14153. }
  14154. }
  14155. return;
  14156. }
  14157. function _GetImageData($0) {
  14158. $0 = $0|0;
  14159. var $$0104105 = 0, $$0106 = 0, $$1 = 0, $1 = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0.0, $103 = 0.0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0;
  14160. var $114 = 0, $115 = 0, $116 = 0, $117 = 0, $118 = 0, $119 = 0, $12 = 0, $120 = 0, $121 = 0, $122 = 0, $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 0, $128 = 0, $129 = 0, $13 = 0, $130 = 0, $131 = 0;
  14161. var $132 = 0, $133 = 0, $134 = 0, $135 = 0, $136 = 0, $137 = 0, $138 = 0, $139 = 0, $14 = 0, $140 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0;
  14162. var $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0.0, $4 = 0, $40 = 0.0, $41 = 0;
  14163. var $42 = 0, $43 = 0, $44 = 0, $45 = 0.0, $46 = 0.0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0.0, $52 = 0.0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0;
  14164. var $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0.0, $65 = 0.0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0.0, $71 = 0.0, $72 = 0, $73 = 0, $74 = 0, $75 = 0.0, $76 = 0.0, $77 = 0, $78 = 0;
  14165. var $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0.0, $86 = 0.0, $87 = 0, $88 = 0, $89 = 0, $9 = 0, $90 = 0, $91 = 0.0, $92 = 0.0, $93 = 0, $94 = 0, $95 = 0, $96 = 0;
  14166. var $97 = 0.0, $98 = 0.0, $99 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  14167. sp = STACKTOP;
  14168. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  14169. $vararg_buffer = sp;
  14170. $1 = ((($0)) + 4|0);
  14171. $2 = HEAP32[$1>>2]|0;
  14172. $3 = ((($0)) + 8|0);
  14173. $4 = HEAP32[$3>>2]|0;
  14174. $5 = $2 << 2;
  14175. $6 = Math_imul($5, $4)|0;
  14176. $7 = (_malloc($6)|0);
  14177. $8 = HEAP32[$1>>2]|0;
  14178. $9 = Math_imul($4, $8)|0;
  14179. $10 = ($9|0)>(0);
  14180. if (!($10)) {
  14181. STACKTOP = sp;return ($7|0);
  14182. }
  14183. $11 = ((($0)) + 16|0);
  14184. $12 = HEAP32[$11>>2]|0;
  14185. $13 = HEAP32[$0>>2]|0;
  14186. $$0104105 = 0;$$0106 = 0;
  14187. while(1) {
  14188. switch ($12|0) {
  14189. case 1: {
  14190. $14 = (($13) + ($$0106)|0);
  14191. $15 = HEAP8[$14>>0]|0;
  14192. $16 = (($7) + ($$0104105<<2)|0);
  14193. HEAP8[$16>>0] = $15;
  14194. $17 = HEAP8[$14>>0]|0;
  14195. $18 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  14196. HEAP8[$18>>0] = $17;
  14197. $19 = HEAP8[$14>>0]|0;
  14198. $20 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  14199. HEAP8[$20>>0] = $19;
  14200. $21 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  14201. HEAP8[$21>>0] = -1;
  14202. $22 = (($$0106) + 1)|0;
  14203. $$1 = $22;
  14204. break;
  14205. }
  14206. case 2: {
  14207. $23 = (($13) + ($$0106)|0);
  14208. $24 = HEAP8[$23>>0]|0;
  14209. $25 = (($7) + ($$0104105<<2)|0);
  14210. HEAP8[$25>>0] = $24;
  14211. $26 = HEAP8[$23>>0]|0;
  14212. $27 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  14213. HEAP8[$27>>0] = $26;
  14214. $28 = HEAP8[$23>>0]|0;
  14215. $29 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  14216. HEAP8[$29>>0] = $28;
  14217. $30 = (($$0106) + 1)|0;
  14218. $31 = (($13) + ($30)|0);
  14219. $32 = HEAP8[$31>>0]|0;
  14220. $33 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  14221. HEAP8[$33>>0] = $32;
  14222. $34 = (($$0106) + 2)|0;
  14223. $$1 = $34;
  14224. break;
  14225. }
  14226. case 5: {
  14227. $35 = (($13) + ($$0106<<1)|0);
  14228. $36 = HEAP16[$35>>1]|0;
  14229. $37 = $36&65535;
  14230. $38 = $37 >>> 11;
  14231. $39 = (+($38|0));
  14232. $40 = $39 * 8.0;
  14233. $41 = (~~(($40))&255);
  14234. $42 = (($7) + ($$0104105<<2)|0);
  14235. HEAP8[$42>>0] = $41;
  14236. $43 = $37 >>> 6;
  14237. $44 = $43 & 31;
  14238. $45 = (+($44|0));
  14239. $46 = $45 * 8.0;
  14240. $47 = (~~(($46))&255);
  14241. $48 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  14242. HEAP8[$48>>0] = $47;
  14243. $49 = $37 >>> 1;
  14244. $50 = $49 & 31;
  14245. $51 = (+($50|0));
  14246. $52 = $51 * 8.0;
  14247. $53 = (~~(($52))&255);
  14248. $54 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  14249. HEAP8[$54>>0] = $53;
  14250. $55 = $37 & 1;
  14251. $56 = (0 - ($55))|0;
  14252. $57 = $56&255;
  14253. $58 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  14254. HEAP8[$58>>0] = $57;
  14255. $59 = (($$0106) + 1)|0;
  14256. $$1 = $59;
  14257. break;
  14258. }
  14259. case 3: {
  14260. $60 = (($13) + ($$0106<<1)|0);
  14261. $61 = HEAP16[$60>>1]|0;
  14262. $62 = $61&65535;
  14263. $63 = $62 >>> 11;
  14264. $64 = (+($63|0));
  14265. $65 = $64 * 8.0;
  14266. $66 = (~~(($65))&255);
  14267. $67 = (($7) + ($$0104105<<2)|0);
  14268. HEAP8[$67>>0] = $66;
  14269. $68 = $62 >>> 5;
  14270. $69 = $68 & 63;
  14271. $70 = (+($69|0));
  14272. $71 = $70 * 4.0;
  14273. $72 = (~~(($71))&255);
  14274. $73 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  14275. HEAP8[$73>>0] = $72;
  14276. $74 = $62 & 31;
  14277. $75 = (+($74|0));
  14278. $76 = $75 * 8.0;
  14279. $77 = (~~(($76))&255);
  14280. $78 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  14281. HEAP8[$78>>0] = $77;
  14282. $79 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  14283. HEAP8[$79>>0] = -1;
  14284. $80 = (($$0106) + 1)|0;
  14285. $$1 = $80;
  14286. break;
  14287. }
  14288. case 6: {
  14289. $81 = (($13) + ($$0106<<1)|0);
  14290. $82 = HEAP16[$81>>1]|0;
  14291. $83 = $82&65535;
  14292. $84 = $83 >>> 12;
  14293. $85 = (+($84|0));
  14294. $86 = $85 * 17.0;
  14295. $87 = (~~(($86))&255);
  14296. $88 = (($7) + ($$0104105<<2)|0);
  14297. HEAP8[$88>>0] = $87;
  14298. $89 = $83 >>> 8;
  14299. $90 = $89 & 15;
  14300. $91 = (+($90|0));
  14301. $92 = $91 * 17.0;
  14302. $93 = (~~(($92))&255);
  14303. $94 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  14304. HEAP8[$94>>0] = $93;
  14305. $95 = $83 >>> 4;
  14306. $96 = $95 & 15;
  14307. $97 = (+($96|0));
  14308. $98 = $97 * 17.0;
  14309. $99 = (~~(($98))&255);
  14310. $100 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  14311. HEAP8[$100>>0] = $99;
  14312. $101 = $83 & 15;
  14313. $102 = (+($101|0));
  14314. $103 = $102 * 17.0;
  14315. $104 = (~~(($103))&255);
  14316. $105 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  14317. HEAP8[$105>>0] = $104;
  14318. $106 = (($$0106) + 1)|0;
  14319. $$1 = $106;
  14320. break;
  14321. }
  14322. case 7: {
  14323. $107 = (($13) + ($$0106)|0);
  14324. $108 = HEAP8[$107>>0]|0;
  14325. $109 = (($7) + ($$0104105<<2)|0);
  14326. HEAP8[$109>>0] = $108;
  14327. $110 = (($$0106) + 1)|0;
  14328. $111 = (($13) + ($110)|0);
  14329. $112 = HEAP8[$111>>0]|0;
  14330. $113 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  14331. HEAP8[$113>>0] = $112;
  14332. $114 = (($$0106) + 2)|0;
  14333. $115 = (($13) + ($114)|0);
  14334. $116 = HEAP8[$115>>0]|0;
  14335. $117 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  14336. HEAP8[$117>>0] = $116;
  14337. $118 = (($$0106) + 3)|0;
  14338. $119 = (($13) + ($118)|0);
  14339. $120 = HEAP8[$119>>0]|0;
  14340. $121 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  14341. HEAP8[$121>>0] = $120;
  14342. $122 = (($$0106) + 4)|0;
  14343. $$1 = $122;
  14344. break;
  14345. }
  14346. case 4: {
  14347. $123 = (($13) + ($$0106)|0);
  14348. $124 = HEAP8[$123>>0]|0;
  14349. $125 = (($7) + ($$0104105<<2)|0);
  14350. HEAP8[$125>>0] = $124;
  14351. $126 = (($$0106) + 1)|0;
  14352. $127 = (($13) + ($126)|0);
  14353. $128 = HEAP8[$127>>0]|0;
  14354. $129 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  14355. HEAP8[$129>>0] = $128;
  14356. $130 = (($$0106) + 2)|0;
  14357. $131 = (($13) + ($130)|0);
  14358. $132 = HEAP8[$131>>0]|0;
  14359. $133 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  14360. HEAP8[$133>>0] = $132;
  14361. $134 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  14362. HEAP8[$134>>0] = -1;
  14363. $135 = (($$0106) + 3)|0;
  14364. $$1 = $135;
  14365. break;
  14366. }
  14367. default: {
  14368. _TraceLog(2,5310,$vararg_buffer);
  14369. $$1 = $$0106;
  14370. }
  14371. }
  14372. $136 = (($$0104105) + 1)|0;
  14373. $137 = HEAP32[$1>>2]|0;
  14374. $138 = HEAP32[$3>>2]|0;
  14375. $139 = Math_imul($138, $137)|0;
  14376. $140 = ($136|0)<($139|0);
  14377. if ($140) {
  14378. $$0104105 = $136;$$0106 = $$1;
  14379. } else {
  14380. break;
  14381. }
  14382. }
  14383. STACKTOP = sp;return ($7|0);
  14384. }
  14385. function _ErrorCallback($0,$1) {
  14386. $0 = $0|0;
  14387. $1 = $1|0;
  14388. var $vararg_buffer = 0, $vararg_ptr1 = 0, label = 0, sp = 0;
  14389. sp = STACKTOP;
  14390. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  14391. $vararg_buffer = sp;
  14392. HEAP32[$vararg_buffer>>2] = $0;
  14393. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  14394. HEAP32[$vararg_ptr1>>2] = $1;
  14395. _TraceLog(2,9176,$vararg_buffer);
  14396. STACKTOP = sp;return;
  14397. }
  14398. function _rlGetVersion() {
  14399. var label = 0, sp = 0;
  14400. sp = STACKTOP;
  14401. return 4;
  14402. }
  14403. function _SetupFramebufferSize($0,$1) {
  14404. $0 = $0|0;
  14405. $1 = $1|0;
  14406. var $$sink = 0, $$sink1 = 0, $10 = 0.0, $11 = 0.0, $12 = 0.0, $13 = 0, $14 = 0.0, $15 = 0.0, $16 = 0, $17 = 0, $18 = 0.0, $19 = 0.0, $2 = 0, $20 = 0, $21 = 0, $22 = 0.0, $23 = 0, $24 = 0, $25 = 0, $26 = 0.0;
  14407. var $27 = 0, $28 = 0.0, $29 = 0.0, $3 = 0, $30 = 0, $31 = 0, $32 = 0.0, $33 = 0.0, $34 = 0.0, $35 = 0, $36 = 0.0, $37 = 0, $38 = 0.0, $39 = 0.0, $4 = 0, $40 = 0, $41 = 0.0, $42 = 0, $43 = 0, $44 = 0.0;
  14408. var $45 = 0, $46 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0.0, $9 = 0, $or$cond = 0, $roundf = 0.0, $roundf38 = 0.0, $roundf39 = 0.0, $roundf40 = 0.0, $vararg_buffer = 0, $vararg_buffer4 = 0, $vararg_buffer8 = 0, $vararg_ptr1 = 0, $vararg_ptr11 = 0, $vararg_ptr12 = 0, $vararg_ptr13 = 0, $vararg_ptr2 = 0;
  14409. var $vararg_ptr3 = 0, $vararg_ptr7 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  14410. sp = STACKTOP;
  14411. STACKTOP = STACKTOP + 112|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(112|0);
  14412. $vararg_buffer8 = sp + 24|0;
  14413. $vararg_buffer4 = sp + 16|0;
  14414. $vararg_buffer = sp;
  14415. $2 = sp + 40|0;
  14416. $3 = HEAP32[4711]|0;
  14417. $4 = ($3|0)>($0|0);
  14418. if (!($4)) {
  14419. $5 = HEAP32[4710]|0;
  14420. $6 = ($5|0)>($1|0);
  14421. if (!($6)) {
  14422. $30 = ($3|0)<($0|0);
  14423. $31 = ($5|0)<($1|0);
  14424. $or$cond = $30 | $31;
  14425. if (!($or$cond)) {
  14426. HEAP32[4752] = $3;
  14427. HEAP32[4753] = $5;
  14428. HEAP32[4754] = 0;
  14429. HEAP32[4755] = 0;
  14430. STACKTOP = sp;return;
  14431. }
  14432. HEAP32[$vararg_buffer8>>2] = $3;
  14433. $vararg_ptr11 = ((($vararg_buffer8)) + 4|0);
  14434. HEAP32[$vararg_ptr11>>2] = $5;
  14435. $vararg_ptr12 = ((($vararg_buffer8)) + 8|0);
  14436. HEAP32[$vararg_ptr12>>2] = $0;
  14437. $vararg_ptr13 = ((($vararg_buffer8)) + 12|0);
  14438. HEAP32[$vararg_ptr13>>2] = $1;
  14439. _TraceLog(0,9110,$vararg_buffer8);
  14440. $32 = (+($0|0));
  14441. $33 = (+($1|0));
  14442. $34 = $32 / $33;
  14443. $35 = HEAP32[4711]|0;
  14444. $36 = (+($35|0));
  14445. $37 = HEAP32[4710]|0;
  14446. $38 = (+($37|0));
  14447. $39 = $36 / $38;
  14448. $40 = !($34 <= $39);
  14449. if ($40) {
  14450. $44 = $34 * $38;
  14451. $roundf = (+_roundf((+$44)));
  14452. $45 = (~~(($roundf)));
  14453. HEAP32[4752] = $45;
  14454. HEAP32[4753] = $37;
  14455. $46 = (($45) - ($35))|0;
  14456. HEAP32[4754] = $46;
  14457. $$sink1 = 0;
  14458. } else {
  14459. HEAP32[4752] = $35;
  14460. $41 = $36 / $34;
  14461. $roundf38 = (+_roundf((+$41)));
  14462. $42 = (~~(($roundf38)));
  14463. HEAP32[4753] = $42;
  14464. HEAP32[4754] = 0;
  14465. $43 = (($42) - ($37))|0;
  14466. $$sink1 = $43;
  14467. }
  14468. HEAP32[4755] = $$sink1;
  14469. STACKTOP = sp;return;
  14470. }
  14471. }
  14472. $7 = HEAP32[4710]|0;
  14473. HEAP32[$vararg_buffer>>2] = $3;
  14474. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  14475. HEAP32[$vararg_ptr1>>2] = $7;
  14476. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  14477. HEAP32[$vararg_ptr2>>2] = $0;
  14478. $vararg_ptr3 = ((($vararg_buffer)) + 12|0);
  14479. HEAP32[$vararg_ptr3>>2] = $1;
  14480. _TraceLog(2,8967,$vararg_buffer);
  14481. $8 = (+($0|0));
  14482. $9 = HEAP32[4711]|0;
  14483. $10 = (+($9|0));
  14484. $11 = $8 / $10;
  14485. $12 = (+($1|0));
  14486. $13 = HEAP32[4710]|0;
  14487. $14 = (+($13|0));
  14488. $15 = $12 / $14;
  14489. $16 = !($11 <= $15);
  14490. if ($16) {
  14491. $22 = $10 * $15;
  14492. $roundf39 = (+_roundf((+$22)));
  14493. $23 = (~~(($roundf39)));
  14494. HEAP32[4752] = $23;
  14495. HEAP32[4753] = $1;
  14496. $24 = (($0) - ($23))|0;
  14497. HEAP32[4754] = $24;
  14498. $$sink = 0;
  14499. } else {
  14500. HEAP32[4752] = $0;
  14501. $17 = HEAP32[4710]|0;
  14502. $18 = (+($17|0));
  14503. $19 = $11 * $18;
  14504. $roundf40 = (+_roundf((+$19)));
  14505. $20 = (~~(($roundf40)));
  14506. HEAP32[4753] = $20;
  14507. HEAP32[4754] = 0;
  14508. $21 = (($1) - ($20))|0;
  14509. $$sink = $21;
  14510. }
  14511. HEAP32[4755] = $$sink;
  14512. $25 = HEAP32[4752]|0;
  14513. $26 = (+($25|0));
  14514. $27 = HEAP32[4711]|0;
  14515. $28 = (+($27|0));
  14516. $29 = $26 / $28;
  14517. _MatrixScale($2,$29,$29,$29);
  14518. dest=18932; src=$2; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  14519. HEAP32[4752] = $0;
  14520. HEAP32[4753] = $1;
  14521. HEAP32[$vararg_buffer4>>2] = $0;
  14522. $vararg_ptr7 = ((($vararg_buffer4)) + 4|0);
  14523. HEAP32[$vararg_ptr7>>2] = $1;
  14524. _TraceLog(2,9045,$vararg_buffer4);
  14525. STACKTOP = sp;return;
  14526. }
  14527. function _WindowSizeCallback($0,$1,$2) {
  14528. $0 = $0|0;
  14529. $1 = $1|0;
  14530. $2 = $2|0;
  14531. var $3 = 0.0, $4 = 0.0, label = 0, sp = 0;
  14532. sp = STACKTOP;
  14533. _rlViewport(0,0,$1,$2);
  14534. _rlMatrixMode(5889);
  14535. _rlLoadIdentity();
  14536. $3 = (+($1|0));
  14537. $4 = (+($2|0));
  14538. _rlOrtho(0.0,$3,$4,0.0,0.0,1.0);
  14539. _rlMatrixMode(5888);
  14540. _rlLoadIdentity();
  14541. _rlClearScreenBuffers();
  14542. HEAP32[4711] = $1;
  14543. HEAP32[4710] = $2;
  14544. HEAP32[4752] = $1;
  14545. HEAP32[4753] = $2;
  14546. return;
  14547. }
  14548. function _CursorEnterCallback($0,$1) {
  14549. $0 = $0|0;
  14550. $1 = $1|0;
  14551. var label = 0, sp = 0;
  14552. sp = STACKTOP;
  14553. return;
  14554. }
  14555. function _KeyCallback($0,$1,$2,$3,$4) {
  14556. $0 = $0|0;
  14557. $1 = $1|0;
  14558. $2 = $2|0;
  14559. $3 = $3|0;
  14560. $4 = $4|0;
  14561. var $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, label = 0, sp = 0;
  14562. sp = STACKTOP;
  14563. $5 = HEAP32[759]|0;
  14564. $6 = ($5|0)==($1|0);
  14565. $7 = ($3|0)==(1);
  14566. $or$cond = $7 & $6;
  14567. if ($or$cond) {
  14568. _glfwSetWindowShouldClose(($0|0),1);
  14569. return;
  14570. }
  14571. $8 = $3&255;
  14572. $9 = (21683 + ($1)|0);
  14573. HEAP8[$9>>0] = $8;
  14574. if (!($7)) {
  14575. return;
  14576. }
  14577. HEAP32[758] = $1;
  14578. return;
  14579. }
  14580. function _MouseButtonCallback($0,$1,$2,$3) {
  14581. $0 = $0|0;
  14582. $1 = $1|0;
  14583. $2 = $2|0;
  14584. $3 = $3|0;
  14585. var $$byval_copy = 0, $$sink = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0.0, $27 = 0.0;
  14586. var $28 = 0.0, $29 = 0, $30 = 0.0, $31 = 0, $32 = 0.0, $33 = 0.0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  14587. sp = STACKTOP;
  14588. STACKTOP = STACKTOP + 128|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(128|0);
  14589. $$byval_copy = sp + 64|0;
  14590. $4 = sp + 8|0;
  14591. $5 = sp;
  14592. $6 = $2&255;
  14593. $7 = (21677 + ($1)|0);
  14594. HEAP8[$7>>0] = $6;
  14595. $8 = (_IsMouseButtonPressed(0)|0);
  14596. $9 = ($8|0)==(0);
  14597. if ($9) {
  14598. $10 = (_IsMouseButtonReleased(0)|0);
  14599. $11 = ($10|0)==(0);
  14600. if (!($11)) {
  14601. $$sink = 0;
  14602. label = 3;
  14603. }
  14604. } else {
  14605. $$sink = 1;
  14606. label = 3;
  14607. }
  14608. if ((label|0) == 3) {
  14609. HEAP32[$4>>2] = $$sink;
  14610. }
  14611. $12 = ((($4)) + 8|0);
  14612. HEAP32[$12>>2] = 0;
  14613. $13 = ((($4)) + 4|0);
  14614. HEAP32[$13>>2] = 1;
  14615. $14 = ((($4)) + 24|0);
  14616. _GetMousePosition($5);
  14617. $15 = $5;
  14618. $16 = $15;
  14619. $17 = HEAP32[$16>>2]|0;
  14620. $18 = (($15) + 4)|0;
  14621. $19 = $18;
  14622. $20 = HEAP32[$19>>2]|0;
  14623. $21 = $14;
  14624. $22 = $21;
  14625. HEAP32[$22>>2] = $17;
  14626. $23 = (($21) + 4)|0;
  14627. $24 = $23;
  14628. HEAP32[$24>>2] = $20;
  14629. $25 = (_GetScreenWidth()|0);
  14630. $26 = (+($25|0));
  14631. $27 = +HEAPF32[$14>>2];
  14632. $28 = $27 / $26;
  14633. HEAPF32[$14>>2] = $28;
  14634. $29 = (_GetScreenHeight()|0);
  14635. $30 = (+($29|0));
  14636. $31 = ((($4)) + 28|0);
  14637. $32 = +HEAPF32[$31>>2];
  14638. $33 = $32 / $30;
  14639. HEAPF32[$31>>2] = $33;
  14640. dest=$$byval_copy; src=$4; stop=dest+56|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  14641. _ProcessGestureEvent($$byval_copy);
  14642. STACKTOP = sp;return;
  14643. }
  14644. function _MouseCursorPosCallback($0,$1,$2) {
  14645. $0 = $0|0;
  14646. $1 = +$1;
  14647. $2 = +$2;
  14648. var $$byval_copy = 0, $$sroa$0$0$$sroa_idx = 0, $$sroa$2$0$$sroa_idx1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0.0, $21 = 0.0, $22 = 0.0, $23 = 0, $24 = 0.0, $25 = 0.0, $26 = 0.0;
  14649. var $3 = 0, $4 = 0, $5 = 0, $6 = 0.0, $7 = 0.0, $8 = 0, $9 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  14650. sp = STACKTOP;
  14651. STACKTOP = STACKTOP + 112|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(112|0);
  14652. $$byval_copy = sp + 56|0;
  14653. $3 = sp;
  14654. HEAP32[$3>>2] = 2;
  14655. $4 = ((($3)) + 8|0);
  14656. HEAP32[$4>>2] = 0;
  14657. $5 = ((($3)) + 4|0);
  14658. HEAP32[$5>>2] = 1;
  14659. $6 = $1;
  14660. $7 = $2;
  14661. $$sroa$0$0$$sroa_idx = ((($3)) + 24|0);
  14662. HEAPF32[$$sroa$0$0$$sroa_idx>>2] = $6;
  14663. $$sroa$2$0$$sroa_idx1 = ((($3)) + 28|0);
  14664. HEAPF32[$$sroa$2$0$$sroa_idx1>>2] = $7;
  14665. $8 = ((($3)) + 24|0);
  14666. $9 = $8;
  14667. $10 = $9;
  14668. $11 = HEAP32[$10>>2]|0;
  14669. $12 = (($9) + 4)|0;
  14670. $13 = $12;
  14671. $14 = HEAP32[$13>>2]|0;
  14672. $15 = 18184;
  14673. $16 = $15;
  14674. HEAP32[$16>>2] = $11;
  14675. $17 = (($15) + 4)|0;
  14676. $18 = $17;
  14677. HEAP32[$18>>2] = $14;
  14678. $19 = (_GetScreenWidth()|0);
  14679. $20 = (+($19|0));
  14680. $21 = +HEAPF32[$8>>2];
  14681. $22 = $21 / $20;
  14682. HEAPF32[$8>>2] = $22;
  14683. $23 = (_GetScreenHeight()|0);
  14684. $24 = (+($23|0));
  14685. $25 = +HEAPF32[$$sroa$2$0$$sroa_idx1>>2];
  14686. $26 = $25 / $24;
  14687. HEAPF32[$$sroa$2$0$$sroa_idx1>>2] = $26;
  14688. dest=$$byval_copy; src=$3; stop=dest+56|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  14689. _ProcessGestureEvent($$byval_copy);
  14690. STACKTOP = sp;return;
  14691. }
  14692. function _CharCallback($0,$1) {
  14693. $0 = $0|0;
  14694. $1 = $1|0;
  14695. var label = 0, sp = 0;
  14696. sp = STACKTOP;
  14697. HEAP32[758] = $1;
  14698. return;
  14699. }
  14700. function _ScrollCallback($0,$1,$2) {
  14701. $0 = $0|0;
  14702. $1 = +$1;
  14703. $2 = +$2;
  14704. var $3 = 0, label = 0, sp = 0;
  14705. sp = STACKTOP;
  14706. $3 = (~~(($2)));
  14707. HEAP32[5125] = $3;
  14708. return;
  14709. }
  14710. function _WindowIconifyCallback($0,$1) {
  14711. $0 = $0|0;
  14712. $1 = $1|0;
  14713. var $$sink = 0, $2 = 0, label = 0, sp = 0;
  14714. sp = STACKTOP;
  14715. $2 = ($1|0)!=(0);
  14716. $$sink = $2&1;
  14717. HEAP32[5124] = $$sink;
  14718. return;
  14719. }
  14720. function _rlglInit($0,$1) {
  14721. $0 = $0|0;
  14722. $1 = $1|0;
  14723. var $$05965 = 0, $$06066 = 0, $$06167 = 0, $$062 = 0, $$sink63 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0;
  14724. var $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0;
  14725. var $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0;
  14726. var $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0.0, $72 = 0.0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0;
  14727. var $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $9 = 0, $exitcond = 0, $exitcond69 = 0, $exitcond70 = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, $vararg_buffer10 = 0, $vararg_buffer13 = 0, $vararg_buffer15 = 0, $vararg_buffer17 = 0, $vararg_buffer19 = 0;
  14728. var $vararg_buffer21 = 0, $vararg_buffer23 = 0, $vararg_buffer25 = 0, $vararg_buffer27 = 0, $vararg_buffer29 = 0, $vararg_buffer31 = 0, $vararg_buffer34 = 0, $vararg_buffer36 = 0, $vararg_buffer39 = 0, $vararg_buffer4 = 0, $vararg_buffer41 = 0, $vararg_buffer7 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  14729. sp = STACKTOP;
  14730. STACKTOP = STACKTOP + 2464|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(2464|0);
  14731. $vararg_buffer41 = sp + 2184|0;
  14732. $vararg_buffer39 = sp + 2176|0;
  14733. $vararg_buffer36 = sp + 2168|0;
  14734. $vararg_buffer34 = sp + 2160|0;
  14735. $vararg_buffer31 = sp + 2152|0;
  14736. $vararg_buffer29 = sp + 2144|0;
  14737. $vararg_buffer27 = sp + 2136|0;
  14738. $vararg_buffer25 = sp + 2128|0;
  14739. $vararg_buffer23 = sp + 2120|0;
  14740. $vararg_buffer21 = sp + 2112|0;
  14741. $vararg_buffer19 = sp + 2104|0;
  14742. $vararg_buffer17 = sp + 2096|0;
  14743. $vararg_buffer15 = sp + 2088|0;
  14744. $vararg_buffer13 = sp + 2080|0;
  14745. $vararg_buffer10 = sp + 2072|0;
  14746. $vararg_buffer7 = sp + 24|0;
  14747. $vararg_buffer4 = sp + 16|0;
  14748. $vararg_buffer1 = sp + 8|0;
  14749. $vararg_buffer = sp;
  14750. $2 = sp + 2400|0;
  14751. $3 = sp + 2384|0;
  14752. $4 = sp + 2320|0;
  14753. $5 = sp + 2256|0;
  14754. $6 = sp + 2192|0;
  14755. $7 = (_glGetString(7936)|0);
  14756. HEAP32[$vararg_buffer>>2] = $7;
  14757. _TraceLog(0,5608,$vararg_buffer);
  14758. $8 = (_glGetString(7937)|0);
  14759. HEAP32[$vararg_buffer1>>2] = $8;
  14760. _TraceLog(0,5626,$vararg_buffer1);
  14761. $9 = (_glGetString(7938)|0);
  14762. HEAP32[$vararg_buffer4>>2] = $9;
  14763. _TraceLog(0,5644,$vararg_buffer4);
  14764. $10 = (_glGetString(35724)|0);
  14765. HEAP32[$vararg_buffer7>>2] = $10;
  14766. _TraceLog(0,5662,$vararg_buffer7);
  14767. $11 = (_glGetString(7939)|0);
  14768. $12 = (_strlen($11)|0);
  14769. $13 = (($12) + 1)|0;
  14770. $14 = (_malloc($13)|0);
  14771. _memcpy(($14|0),($11|0),($13|0))|0;
  14772. $$062 = 0;$$sink63 = $14;
  14773. while(1) {
  14774. $15 = (_strtok($$sink63,5680)|0);
  14775. $16 = (($vararg_buffer7) + ($$062<<2)|0);
  14776. HEAP32[$16>>2] = $15;
  14777. $17 = ($15|0)==(0|0);
  14778. $18 = (($$062) + 1)|0;
  14779. if ($17) {
  14780. break;
  14781. } else {
  14782. $$062 = $18;$$sink63 = 0;
  14783. }
  14784. }
  14785. _free($14);
  14786. $19 = (($$062) + -1)|0;
  14787. HEAP32[$vararg_buffer10>>2] = $19;
  14788. _TraceLog(0,5682,$vararg_buffer10);
  14789. $20 = ($$062|0)>(1);
  14790. if ($20) {
  14791. $$06167 = 0;
  14792. while(1) {
  14793. $23 = (($vararg_buffer7) + ($$06167<<2)|0);
  14794. $24 = HEAP32[$23>>2]|0;
  14795. $25 = (_strcmp($24,5717)|0);
  14796. $26 = ($25|0)==(0);
  14797. if ($26) {
  14798. HEAP32[4790] = 1;
  14799. $27 = (_eglGetProcAddress((5744|0))|0);
  14800. HEAP32[4791] = $27;
  14801. $28 = (_eglGetProcAddress((5765|0))|0);
  14802. HEAP32[4792] = $28;
  14803. $29 = (_eglGetProcAddress((5786|0))|0);
  14804. HEAP32[4793] = $29;
  14805. }
  14806. $30 = (_strcmp($24,5810)|0);
  14807. $31 = ($30|0)==(0);
  14808. if ($31) {
  14809. HEAP32[4732] = 1;
  14810. }
  14811. $32 = (_strcmp($24,5830)|0);
  14812. $33 = ($32|0)==(0);
  14813. if ($33) {
  14814. label = 12;
  14815. } else {
  14816. $34 = HEAP32[$23>>2]|0;
  14817. $35 = (_strcmp($34,5862)|0);
  14818. $36 = ($35|0)==(0);
  14819. if ($36) {
  14820. label = 12;
  14821. } else {
  14822. $37 = (_strcmp($34,5895)|0);
  14823. $38 = ($37|0)==(0);
  14824. if ($38) {
  14825. label = 12;
  14826. }
  14827. }
  14828. }
  14829. if ((label|0) == 12) {
  14830. label = 0;
  14831. HEAP32[4727] = 1;
  14832. }
  14833. $39 = (_strcmp($24,5935)|0);
  14834. $40 = ($39|0)==(0);
  14835. if ($40) {
  14836. label = 15;
  14837. } else {
  14838. $41 = HEAP32[$23>>2]|0;
  14839. $42 = (_strcmp($41,5971)|0);
  14840. $43 = ($42|0)==(0);
  14841. if ($43) {
  14842. label = 15;
  14843. }
  14844. }
  14845. if ((label|0) == 15) {
  14846. label = 0;
  14847. HEAP32[4728] = 1;
  14848. }
  14849. $44 = HEAP32[$23>>2]|0;
  14850. $45 = (_strcmp($44,6004)|0);
  14851. $46 = ($45|0)==(0);
  14852. if ($46) {
  14853. HEAP32[4729] = 1;
  14854. }
  14855. $47 = (_strcmp($44,6029)|0);
  14856. $48 = ($47|0)==(0);
  14857. if ($48) {
  14858. HEAP32[4730] = 1;
  14859. }
  14860. $49 = (_strcmp($44,6062)|0);
  14861. $50 = ($49|0)==(0);
  14862. if ($50) {
  14863. HEAP32[4731] = 1;
  14864. }
  14865. $51 = (_strcmp($44,6098)|0);
  14866. $52 = ($51|0)==(0);
  14867. if ($52) {
  14868. HEAP32[4794] = 1;
  14869. _glGetFloatv(34047,(19180|0));
  14870. }
  14871. $53 = HEAP32[$23>>2]|0;
  14872. $54 = (_strcmp($53,6132)|0);
  14873. $55 = ($54|0)==(0);
  14874. if ($55) {
  14875. HEAP32[4796] = 1;
  14876. }
  14877. $56 = (($$06167) + 1)|0;
  14878. $exitcond70 = ($56|0)==($19|0);
  14879. if ($exitcond70) {
  14880. break;
  14881. } else {
  14882. $$06167 = $56;
  14883. }
  14884. }
  14885. }
  14886. $21 = HEAP32[4790]|0;
  14887. $22 = ($21|0)==(0);
  14888. if ($22) {
  14889. _TraceLog(2,6235,$vararg_buffer15);
  14890. } else {
  14891. _TraceLog(0,6160,$vararg_buffer13);
  14892. }
  14893. $57 = HEAP32[4732]|0;
  14894. $58 = ($57|0)==(0);
  14895. if ($58) {
  14896. _TraceLog(2,6371,$vararg_buffer19);
  14897. } else {
  14898. _TraceLog(0,6296,$vararg_buffer17);
  14899. }
  14900. $59 = HEAP32[4727]|0;
  14901. $60 = ($59|0)==(0);
  14902. if (!($60)) {
  14903. _TraceLog(0,6463,$vararg_buffer21);
  14904. }
  14905. $61 = HEAP32[4728]|0;
  14906. $62 = ($61|0)==(0);
  14907. if (!($62)) {
  14908. _TraceLog(0,6509,$vararg_buffer23);
  14909. }
  14910. $63 = HEAP32[4729]|0;
  14911. $64 = ($63|0)==(0);
  14912. if (!($64)) {
  14913. _TraceLog(0,6556,$vararg_buffer25);
  14914. }
  14915. $65 = HEAP32[4730]|0;
  14916. $66 = ($65|0)==(0);
  14917. if (!($66)) {
  14918. _TraceLog(0,6607,$vararg_buffer27);
  14919. }
  14920. $67 = HEAP32[4731]|0;
  14921. $68 = ($67|0)==(0);
  14922. if (!($68)) {
  14923. _TraceLog(0,6654,$vararg_buffer29);
  14924. }
  14925. $69 = HEAP32[4794]|0;
  14926. $70 = ($69|0)==(0);
  14927. if (!($70)) {
  14928. $71 = +HEAPF32[4795];
  14929. $72 = $71;
  14930. HEAPF64[$vararg_buffer31>>3] = $72;
  14931. _TraceLog(0,6701,$vararg_buffer31);
  14932. }
  14933. $73 = HEAP32[4796]|0;
  14934. $74 = ($73|0)==(0);
  14935. if (!($74)) {
  14936. _TraceLog(0,6767,$vararg_buffer34);
  14937. }
  14938. HEAP32[$vararg_buffer10>>2] = -1;
  14939. $75 = (_rlglLoadTexture($vararg_buffer10,1,1,7,1)|0);
  14940. HEAP32[4797] = $75;
  14941. $76 = ($75|0)==(0);
  14942. if ($76) {
  14943. _TraceLog(2,6871,$vararg_buffer39);
  14944. } else {
  14945. HEAP32[$vararg_buffer36>>2] = $75;
  14946. _TraceLog(0,6820,$vararg_buffer36);
  14947. }
  14948. _LoadDefaultShader($2);
  14949. dest=19192; src=$2; stop=dest+56|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  14950. dest=19248; src=$2; stop=dest+56|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  14951. _LoadDefaultBuffers();
  14952. $77 = (_malloc(49152)|0);
  14953. HEAP32[4826] = $77;
  14954. $$06066 = 0;
  14955. while(1) {
  14956. $79 = HEAP32[4826]|0;
  14957. $80 = (($79) + (($$06066*12)|0)|0);
  14958. _VectorZero($3);
  14959. ;HEAP32[$80>>2]=HEAP32[$3>>2]|0;HEAP32[$80+4>>2]=HEAP32[$3+4>>2]|0;HEAP32[$80+8>>2]=HEAP32[$3+8>>2]|0;
  14960. $81 = (($$06066) + 1)|0;
  14961. $exitcond69 = ($81|0)==(4096);
  14962. if ($exitcond69) {
  14963. break;
  14964. } else {
  14965. $$06066 = $81;
  14966. }
  14967. }
  14968. $78 = (_malloc(36864)|0);
  14969. HEAP32[4827] = $78;
  14970. $$05965 = 0;
  14971. while(1) {
  14972. $82 = (((($78) + (($$05965*144)|0)|0)) + 8|0);
  14973. HEAP32[$82>>2] = 0;
  14974. $83 = (($78) + (($$05965*144)|0)|0);
  14975. HEAP32[$83>>2] = 0;
  14976. $84 = (($$05965) + 1)|0;
  14977. $exitcond = ($84|0)==(256);
  14978. if ($exitcond) {
  14979. break;
  14980. } else {
  14981. $$05965 = $84;
  14982. }
  14983. }
  14984. HEAP32[4828] = 1;
  14985. $85 = HEAP32[4797]|0;
  14986. $86 = ((($78)) + 8|0);
  14987. HEAP32[$86>>2] = $85;
  14988. HEAP32[4829] = 4;
  14989. _MatrixIdentity($4);
  14990. dest=19320; src=$4; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  14991. _MatrixIdentity($4);
  14992. dest=(19384); src=$4; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  14993. _MatrixIdentity($4);
  14994. dest=(19448); src=$4; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  14995. _MatrixIdentity($4);
  14996. dest=(19512); src=$4; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  14997. _MatrixIdentity($4);
  14998. dest=(19576); src=$4; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  14999. _MatrixIdentity($4);
  15000. dest=(19640); src=$4; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  15001. _MatrixIdentity($4);
  15002. dest=(19704); src=$4; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  15003. _MatrixIdentity($4);
  15004. dest=(19768); src=$4; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  15005. _MatrixIdentity($4);
  15006. dest=(19832); src=$4; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  15007. _MatrixIdentity($4);
  15008. dest=(19896); src=$4; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  15009. _MatrixIdentity($4);
  15010. dest=(19960); src=$4; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  15011. _MatrixIdentity($4);
  15012. dest=(20024); src=$4; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  15013. _MatrixIdentity($4);
  15014. dest=(20088); src=$4; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  15015. _MatrixIdentity($4);
  15016. dest=(20152); src=$4; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  15017. _MatrixIdentity($4);
  15018. dest=(20216); src=$4; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  15019. _MatrixIdentity($4);
  15020. dest=(20280); src=$4; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  15021. _MatrixIdentity($5);
  15022. dest=19028; src=$5; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  15023. _MatrixIdentity($6);
  15024. dest=19092; src=$6; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  15025. HEAP32[4756] = 19092;
  15026. _glDepthFunc(515);
  15027. _glDisable(2929);
  15028. _glBlendFunc(770,771);
  15029. _glEnable(3042);
  15030. _glCullFace(1029);
  15031. _glFrontFace(2305);
  15032. _glEnable(2884);
  15033. _glClearColor(0.0,0.0,0.0,1.0);
  15034. _glClearDepthf(1.0);
  15035. _glClear(16640);
  15036. HEAP32[5086] = $0;
  15037. HEAP32[5087] = $1;
  15038. _TraceLog(0,6910,$vararg_buffer41);
  15039. STACKTOP = sp;return;
  15040. }
  15041. function _SetupViewport() {
  15042. var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, label = 0, sp = 0;
  15043. sp = STACKTOP;
  15044. $0 = HEAP32[4754]|0;
  15045. $1 = (($0|0) / 2)&-1;
  15046. $2 = HEAP32[4755]|0;
  15047. $3 = (($2|0) / 2)&-1;
  15048. $4 = HEAP32[4752]|0;
  15049. $5 = (($4) - ($0))|0;
  15050. $6 = HEAP32[4753]|0;
  15051. $7 = (($6) - ($2))|0;
  15052. _rlViewport($1,$3,$5,$7);
  15053. return;
  15054. }
  15055. function _rlMatrixMode($0) {
  15056. $0 = $0|0;
  15057. var $modelview$sink = 0, label = 0, sp = 0;
  15058. sp = STACKTOP;
  15059. switch ($0|0) {
  15060. case 5889: {
  15061. $modelview$sink = 19028;
  15062. label = 3;
  15063. break;
  15064. }
  15065. case 5888: {
  15066. $modelview$sink = 19092;
  15067. label = 3;
  15068. break;
  15069. }
  15070. default: {
  15071. }
  15072. }
  15073. if ((label|0) == 3) {
  15074. HEAP32[4756] = $modelview$sink;
  15075. }
  15076. HEAP32[4789] = $0;
  15077. return;
  15078. }
  15079. function _rlLoadIdentity() {
  15080. var $0 = 0, $1 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  15081. sp = STACKTOP;
  15082. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  15083. $0 = sp;
  15084. $1 = HEAP32[4756]|0;
  15085. _MatrixIdentity($0);
  15086. dest=$1; src=$0; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  15087. STACKTOP = sp;return;
  15088. }
  15089. function _rlOrtho($0,$1,$2,$3,$4,$5) {
  15090. $0 = +$0;
  15091. $1 = +$1;
  15092. $2 = +$2;
  15093. $3 = +$3;
  15094. $4 = +$4;
  15095. $5 = +$5;
  15096. var $$byval_copy = 0, $$byval_copy1 = 0, $6 = 0, $7 = 0, $8 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  15097. sp = STACKTOP;
  15098. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  15099. $$byval_copy1 = sp + 192|0;
  15100. $$byval_copy = sp + 128|0;
  15101. $6 = sp + 64|0;
  15102. $7 = sp;
  15103. _MatrixOrtho($6,$0,$1,$2,$3,$4,$5);
  15104. _MatrixTranspose($6);
  15105. $8 = HEAP32[4756]|0;
  15106. dest=$$byval_copy; src=$8; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  15107. dest=$$byval_copy1; src=$6; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  15108. _MatrixMultiply($7,$$byval_copy,$$byval_copy1);
  15109. dest=$8; src=$7; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  15110. STACKTOP = sp;return;
  15111. }
  15112. function _ClearBackground($0) {
  15113. $0 = $0|0;
  15114. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, label = 0, sp = 0;
  15115. sp = STACKTOP;
  15116. $1 = HEAP8[$0>>0]|0;
  15117. $2 = ((($0)) + 1|0);
  15118. $3 = HEAP8[$2>>0]|0;
  15119. $4 = ((($0)) + 2|0);
  15120. $5 = HEAP8[$4>>0]|0;
  15121. $6 = ((($0)) + 3|0);
  15122. $7 = HEAP8[$6>>0]|0;
  15123. _rlClearColor($1,$3,$5,$7);
  15124. return;
  15125. }
  15126. function _rlClearColor($0,$1,$2,$3) {
  15127. $0 = $0|0;
  15128. $1 = $1|0;
  15129. $2 = $2|0;
  15130. $3 = $3|0;
  15131. var $10 = 0.0, $11 = 0.0, $4 = 0.0, $5 = 0.0, $6 = 0.0, $7 = 0.0, $8 = 0.0, $9 = 0.0, label = 0, sp = 0;
  15132. sp = STACKTOP;
  15133. $4 = (+($0&255));
  15134. $5 = $4 / 255.0;
  15135. $6 = (+($1&255));
  15136. $7 = $6 / 255.0;
  15137. $8 = (+($2&255));
  15138. $9 = $8 / 255.0;
  15139. $10 = (+($3&255));
  15140. $11 = $10 / 255.0;
  15141. _glClearColor((+$5),(+$7),(+$9),(+$11));
  15142. return;
  15143. }
  15144. function _rlViewport($0,$1,$2,$3) {
  15145. $0 = $0|0;
  15146. $1 = $1|0;
  15147. $2 = $2|0;
  15148. $3 = $3|0;
  15149. var label = 0, sp = 0;
  15150. sp = STACKTOP;
  15151. _glViewport(($0|0),($1|0),($2|0),($3|0));
  15152. return;
  15153. }
  15154. function _LoadDefaultShader($0) {
  15155. $0 = $0|0;
  15156. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  15157. sp = STACKTOP;
  15158. STACKTOP = STACKTOP + 1008|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(1008|0);
  15159. $vararg_buffer1 = sp + 8|0;
  15160. $vararg_buffer = sp;
  15161. $1 = sp + 16|0;
  15162. $2 = sp + 513|0;
  15163. $3 = sp + 72|0;
  15164. _memcpy(($2|0),(7486|0),489)|0;
  15165. _memcpy(($3|0),(7975|0),441)|0;
  15166. $4 = (_LoadShaderProgram($2,$3)|0);
  15167. HEAP32[$1>>2] = $4;
  15168. $5 = ($4|0)==(0);
  15169. if ($5) {
  15170. HEAP32[$vararg_buffer1>>2] = $4;
  15171. _TraceLog(2,8464,$vararg_buffer1);
  15172. } else {
  15173. HEAP32[$vararg_buffer>>2] = $4;
  15174. _TraceLog(0,8416,$vararg_buffer);
  15175. }
  15176. $6 = HEAP32[$1>>2]|0;
  15177. $7 = ($6|0)==(0);
  15178. if (!($7)) {
  15179. _LoadDefaultShaderLocations($1);
  15180. }
  15181. dest=$0; src=$1; stop=dest+56|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  15182. STACKTOP = sp;return;
  15183. }
  15184. function _LoadDefaultBuffers() {
  15185. var $$05365 = 0, $$05467 = 0, $$05770 = 0, $$05972 = 0, $$066 = 0, $0 = 0, $1 = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0;
  15186. var $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0;
  15187. var $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0;
  15188. var $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0;
  15189. var $71 = 0, $72 = 0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0, $89 = 0;
  15190. var $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $exitcond = 0, $exitcond75 = 0, $exitcond78 = 0, $exitcond80 = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, $vararg_buffer10 = 0, $vararg_buffer14 = 0, $vararg_buffer17 = 0;
  15191. var $vararg_buffer3 = 0, $vararg_buffer7 = 0, $vararg_ptr13 = 0, $vararg_ptr20 = 0, $vararg_ptr21 = 0, $vararg_ptr22 = 0, $vararg_ptr6 = 0, label = 0, sp = 0;
  15192. sp = STACKTOP;
  15193. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  15194. $vararg_buffer17 = sp + 48|0;
  15195. $vararg_buffer14 = sp + 40|0;
  15196. $vararg_buffer10 = sp + 32|0;
  15197. $vararg_buffer7 = sp + 24|0;
  15198. $vararg_buffer3 = sp + 16|0;
  15199. $vararg_buffer1 = sp + 8|0;
  15200. $vararg_buffer = sp;
  15201. $0 = (_malloc(24576)|0);
  15202. HEAP32[(20364)>>2] = $0;
  15203. $1 = (_malloc(8192)|0);
  15204. HEAP32[(20372)>>2] = $1;
  15205. HEAP32[(20368)>>2] = 0;
  15206. HEAP32[(20376)>>2] = 0;
  15207. _memset(($0|0),0,24576)|0;
  15208. $$05972 = 0;
  15209. while(1) {
  15210. $2 = HEAP32[(20372)>>2]|0;
  15211. $3 = (($2) + ($$05972)|0);
  15212. HEAP8[$3>>0] = 0;
  15213. $4 = (($$05972) + 1)|0;
  15214. $exitcond80 = ($4|0)==(8192);
  15215. if ($exitcond80) {
  15216. break;
  15217. } else {
  15218. $$05972 = $4;
  15219. }
  15220. }
  15221. HEAP32[5088] = 0;
  15222. HEAP32[(20360)>>2] = 0;
  15223. HEAP32[(20356)>>2] = 0;
  15224. $5 = (_malloc(73728)|0);
  15225. HEAP32[(20412)>>2] = $5;
  15226. $6 = (_malloc(24576)|0);
  15227. HEAP32[(20420)>>2] = $6;
  15228. HEAP32[(20416)>>2] = 0;
  15229. HEAP32[(20424)>>2] = 0;
  15230. _memset(($5|0),0,73728)|0;
  15231. $$05770 = 0;
  15232. while(1) {
  15233. $7 = HEAP32[(20420)>>2]|0;
  15234. $8 = (($7) + ($$05770)|0);
  15235. HEAP8[$8>>0] = 0;
  15236. $9 = (($$05770) + 1)|0;
  15237. $exitcond78 = ($9|0)==(24576);
  15238. if ($exitcond78) {
  15239. break;
  15240. } else {
  15241. $$05770 = $9;
  15242. }
  15243. }
  15244. HEAP32[5100] = 0;
  15245. HEAP32[(20408)>>2] = 0;
  15246. HEAP32[(20404)>>2] = 0;
  15247. $10 = (_malloc(49152)|0);
  15248. HEAP32[(20460)>>2] = $10;
  15249. $11 = (_malloc(32768)|0);
  15250. HEAP32[(20464)>>2] = $11;
  15251. $12 = (_malloc(16384)|0);
  15252. HEAP32[(20468)>>2] = $12;
  15253. $13 = (_malloc(12288)|0);
  15254. HEAP32[(20472)>>2] = $13;
  15255. $14 = HEAP32[(20460)>>2]|0;
  15256. _memset(($14|0),0,49152)|0;
  15257. $15 = HEAP32[(20464)>>2]|0;
  15258. _memset(($15|0),0,32768)|0;
  15259. $$05467 = 0;
  15260. while(1) {
  15261. $17 = HEAP32[(20468)>>2]|0;
  15262. $18 = (($17) + ($$05467)|0);
  15263. HEAP8[$18>>0] = 0;
  15264. $19 = (($$05467) + 1)|0;
  15265. $exitcond75 = ($19|0)==(16384);
  15266. if ($exitcond75) {
  15267. break;
  15268. } else {
  15269. $$05467 = $19;
  15270. }
  15271. }
  15272. $16 = HEAP32[(20472)>>2]|0;
  15273. $$05365 = 0;$$066 = 0;
  15274. while(1) {
  15275. $22 = $$05365 << 2;
  15276. $23 = $22&65535;
  15277. $24 = (($16) + ($$066<<1)|0);
  15278. HEAP16[$24>>1] = $23;
  15279. $25 = $22 | 1;
  15280. $26 = $25&65535;
  15281. $27 = $$066 | 1;
  15282. $28 = (($16) + ($27<<1)|0);
  15283. HEAP16[$28>>1] = $26;
  15284. $29 = $22 | 2;
  15285. $30 = $29&65535;
  15286. $31 = (($$066) + 2)|0;
  15287. $32 = (($16) + ($31<<1)|0);
  15288. HEAP16[$32>>1] = $30;
  15289. $33 = (($$066) + 3)|0;
  15290. $34 = (($16) + ($33<<1)|0);
  15291. HEAP16[$34>>1] = $23;
  15292. $35 = (($$066) + 4)|0;
  15293. $36 = (($16) + ($35<<1)|0);
  15294. HEAP16[$36>>1] = $30;
  15295. $37 = $22 | 3;
  15296. $38 = $37&65535;
  15297. $39 = (($$066) + 5)|0;
  15298. $40 = (($16) + ($39<<1)|0);
  15299. HEAP16[$40>>1] = $38;
  15300. $41 = (($$05365) + 1)|0;
  15301. $42 = (($$066) + 6)|0;
  15302. $exitcond = ($41|0)==(1024);
  15303. if ($exitcond) {
  15304. break;
  15305. } else {
  15306. $$05365 = $41;$$066 = $42;
  15307. }
  15308. }
  15309. HEAP32[5112] = 0;
  15310. HEAP32[(20452)>>2] = 0;
  15311. HEAP32[(20456)>>2] = 0;
  15312. _TraceLog(0,6957,$vararg_buffer);
  15313. $20 = HEAP32[4790]|0;
  15314. $21 = ($20|0)==(0);
  15315. if (!($21)) {
  15316. $43 = HEAP32[4791]|0;
  15317. FUNCTION_TABLE_vii[$43 & 63](1,(20380));
  15318. $44 = HEAP32[4792]|0;
  15319. $45 = HEAP32[(20380)>>2]|0;
  15320. FUNCTION_TABLE_vi[$44 & 31]($45);
  15321. }
  15322. _glGenBuffers(2,((20384)|0));
  15323. $46 = HEAP32[(20384)>>2]|0;
  15324. _glBindBuffer(34962,($46|0));
  15325. $47 = HEAP32[(20364)>>2]|0;
  15326. _glBufferData(34962,24576,($47|0),35048);
  15327. $48 = HEAP32[(19252)>>2]|0;
  15328. _glEnableVertexAttribArray(($48|0));
  15329. $49 = HEAP32[(19252)>>2]|0;
  15330. _glVertexAttribPointer(($49|0),3,5126,0,0,(0|0));
  15331. _glGenBuffers(2,((20388)|0));
  15332. $50 = HEAP32[(20388)>>2]|0;
  15333. _glBindBuffer(34962,($50|0));
  15334. $51 = HEAP32[(20372)>>2]|0;
  15335. _glBufferData(34962,8192,($51|0),35048);
  15336. $52 = HEAP32[(19272)>>2]|0;
  15337. _glEnableVertexAttribArray(($52|0));
  15338. $53 = HEAP32[(19272)>>2]|0;
  15339. _glVertexAttribPointer(($53|0),4,5121,1,0,(0|0));
  15340. $54 = HEAP32[4790]|0;
  15341. $55 = ($54|0)==(0);
  15342. if ($55) {
  15343. $57 = HEAP32[(20384)>>2]|0;
  15344. $58 = HEAP32[(20388)>>2]|0;
  15345. HEAP32[$vararg_buffer3>>2] = $57;
  15346. $vararg_ptr6 = ((($vararg_buffer3)) + 4|0);
  15347. HEAP32[$vararg_ptr6>>2] = $58;
  15348. _TraceLog(0,7095,$vararg_buffer3);
  15349. } else {
  15350. $56 = HEAP32[(20380)>>2]|0;
  15351. HEAP32[$vararg_buffer1>>2] = $56;
  15352. _TraceLog(0,7030,$vararg_buffer1);
  15353. }
  15354. $59 = HEAP32[4790]|0;
  15355. $60 = ($59|0)==(0);
  15356. if (!($60)) {
  15357. $61 = HEAP32[4791]|0;
  15358. FUNCTION_TABLE_vii[$61 & 63](1,(20428));
  15359. $62 = HEAP32[4792]|0;
  15360. $63 = HEAP32[(20428)>>2]|0;
  15361. FUNCTION_TABLE_vi[$62 & 31]($63);
  15362. }
  15363. _glGenBuffers(1,((20432)|0));
  15364. $64 = HEAP32[(20432)>>2]|0;
  15365. _glBindBuffer(34962,($64|0));
  15366. $65 = HEAP32[(20412)>>2]|0;
  15367. _glBufferData(34962,73728,($65|0),35048);
  15368. $66 = HEAP32[(19252)>>2]|0;
  15369. _glEnableVertexAttribArray(($66|0));
  15370. $67 = HEAP32[(19252)>>2]|0;
  15371. _glVertexAttribPointer(($67|0),3,5126,0,0,(0|0));
  15372. _glGenBuffers(1,((20436)|0));
  15373. $68 = HEAP32[(20436)>>2]|0;
  15374. _glBindBuffer(34962,($68|0));
  15375. $69 = HEAP32[(20420)>>2]|0;
  15376. _glBufferData(34962,24576,($69|0),35048);
  15377. $70 = HEAP32[(19272)>>2]|0;
  15378. _glEnableVertexAttribArray(($70|0));
  15379. $71 = HEAP32[(19272)>>2]|0;
  15380. _glVertexAttribPointer(($71|0),4,5121,1,0,(0|0));
  15381. $72 = HEAP32[4790]|0;
  15382. $73 = ($72|0)==(0);
  15383. if ($73) {
  15384. $75 = HEAP32[(20432)>>2]|0;
  15385. $76 = HEAP32[(20436)>>2]|0;
  15386. HEAP32[$vararg_buffer10>>2] = $75;
  15387. $vararg_ptr13 = ((($vararg_buffer10)) + 4|0);
  15388. HEAP32[$vararg_ptr13>>2] = $76;
  15389. _TraceLog(0,7241,$vararg_buffer10);
  15390. } else {
  15391. $74 = HEAP32[(20428)>>2]|0;
  15392. HEAP32[$vararg_buffer7>>2] = $74;
  15393. _TraceLog(0,7172,$vararg_buffer7);
  15394. }
  15395. $77 = HEAP32[4790]|0;
  15396. $78 = ($77|0)==(0);
  15397. if (!($78)) {
  15398. $79 = HEAP32[4791]|0;
  15399. FUNCTION_TABLE_vii[$79 & 63](1,(20476));
  15400. $80 = HEAP32[4792]|0;
  15401. $81 = HEAP32[(20476)>>2]|0;
  15402. FUNCTION_TABLE_vi[$80 & 31]($81);
  15403. }
  15404. _glGenBuffers(1,((20480)|0));
  15405. $82 = HEAP32[(20480)>>2]|0;
  15406. _glBindBuffer(34962,($82|0));
  15407. $83 = HEAP32[(20460)>>2]|0;
  15408. _glBufferData(34962,49152,($83|0),35048);
  15409. $84 = HEAP32[(19252)>>2]|0;
  15410. _glEnableVertexAttribArray(($84|0));
  15411. $85 = HEAP32[(19252)>>2]|0;
  15412. _glVertexAttribPointer(($85|0),3,5126,0,0,(0|0));
  15413. _glGenBuffers(1,((20484)|0));
  15414. $86 = HEAP32[(20484)>>2]|0;
  15415. _glBindBuffer(34962,($86|0));
  15416. $87 = HEAP32[(20464)>>2]|0;
  15417. _glBufferData(34962,32768,($87|0),35048);
  15418. $88 = HEAP32[(19256)>>2]|0;
  15419. _glEnableVertexAttribArray(($88|0));
  15420. $89 = HEAP32[(19256)>>2]|0;
  15421. _glVertexAttribPointer(($89|0),2,5126,0,0,(0|0));
  15422. _glGenBuffers(1,((20488)|0));
  15423. $90 = HEAP32[(20488)>>2]|0;
  15424. _glBindBuffer(34962,($90|0));
  15425. $91 = HEAP32[(20468)>>2]|0;
  15426. _glBufferData(34962,16384,($91|0),35048);
  15427. $92 = HEAP32[(19272)>>2]|0;
  15428. _glEnableVertexAttribArray(($92|0));
  15429. $93 = HEAP32[(19272)>>2]|0;
  15430. _glVertexAttribPointer(($93|0),4,5121,1,0,(0|0));
  15431. _glGenBuffers(1,((20492)|0));
  15432. $94 = HEAP32[(20492)>>2]|0;
  15433. _glBindBuffer(34963,($94|0));
  15434. $95 = HEAP32[(20472)>>2]|0;
  15435. _glBufferData(34963,12288,($95|0),35044);
  15436. $96 = HEAP32[4790]|0;
  15437. $97 = ($96|0)==(0);
  15438. if ($97) {
  15439. $99 = HEAP32[(20480)>>2]|0;
  15440. $100 = HEAP32[(20484)>>2]|0;
  15441. $101 = HEAP32[(20488)>>2]|0;
  15442. $102 = HEAP32[(20492)>>2]|0;
  15443. HEAP32[$vararg_buffer17>>2] = $99;
  15444. $vararg_ptr20 = ((($vararg_buffer17)) + 4|0);
  15445. HEAP32[$vararg_ptr20>>2] = $100;
  15446. $vararg_ptr21 = ((($vararg_buffer17)) + 8|0);
  15447. HEAP32[$vararg_ptr21>>2] = $101;
  15448. $vararg_ptr22 = ((($vararg_buffer17)) + 12|0);
  15449. HEAP32[$vararg_ptr22>>2] = $102;
  15450. _TraceLog(0,7387,$vararg_buffer17);
  15451. } else {
  15452. $98 = HEAP32[(20476)>>2]|0;
  15453. HEAP32[$vararg_buffer14>>2] = $98;
  15454. _TraceLog(0,7322,$vararg_buffer14);
  15455. }
  15456. $103 = HEAP32[4790]|0;
  15457. $104 = ($103|0)==(0);
  15458. if ($104) {
  15459. STACKTOP = sp;return;
  15460. }
  15461. $105 = HEAP32[4792]|0;
  15462. FUNCTION_TABLE_vi[$105 & 31](0);
  15463. STACKTOP = sp;return;
  15464. }
  15465. function _LoadShaderProgram($0,$1) {
  15466. $0 = $0|0;
  15467. $1 = $1|0;
  15468. var $$0 = 0, $$alloca_mul = 0, $$alloca_mul34 = 0, $$alloca_mul36 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0;
  15469. var $25 = 0, $26 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, $vararg_buffer10 = 0, $vararg_buffer13 = 0, $vararg_buffer16 = 0, $vararg_buffer19 = 0, $vararg_buffer22 = 0, $vararg_buffer4 = 0, $vararg_buffer7 = 0, label = 0, sp = 0;
  15470. sp = STACKTOP;
  15471. STACKTOP = STACKTOP + 96|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(96|0);
  15472. $vararg_buffer22 = sp + 64|0;
  15473. $vararg_buffer19 = sp + 56|0;
  15474. $vararg_buffer16 = sp + 48|0;
  15475. $vararg_buffer13 = sp + 40|0;
  15476. $vararg_buffer10 = sp + 32|0;
  15477. $vararg_buffer7 = sp + 24|0;
  15478. $vararg_buffer4 = sp + 16|0;
  15479. $vararg_buffer1 = sp + 8|0;
  15480. $vararg_buffer = sp;
  15481. $2 = sp + 80|0;
  15482. $3 = sp + 76|0;
  15483. $4 = sp + 72|0;
  15484. $5 = sp + 68|0;
  15485. $6 = (_glCreateShader(35633)|0);
  15486. $7 = (_glCreateShader(35632)|0);
  15487. HEAP32[$2>>2] = $0;
  15488. HEAP32[$3>>2] = $1;
  15489. _glShaderSource(($6|0),1,($2|0),(0|0));
  15490. _glShaderSource(($7|0),1,($3|0),(0|0));
  15491. HEAP32[$4>>2] = 0;
  15492. _glCompileShader(($6|0));
  15493. _glGetShaderiv(($6|0),35713,($4|0));
  15494. $8 = HEAP32[$4>>2]|0;
  15495. $9 = ($8|0)==(1);
  15496. if ($9) {
  15497. HEAP32[$vararg_buffer4>>2] = $6;
  15498. _TraceLog(0,8720,$vararg_buffer4);
  15499. } else {
  15500. HEAP32[$vararg_buffer>>2] = $6;
  15501. _TraceLog(2,8668,$vararg_buffer);
  15502. HEAP32[$vararg_buffer>>2] = 0;
  15503. _glGetShaderiv(($6|0),35716,($vararg_buffer|0));
  15504. $10 = HEAP32[$vararg_buffer>>2]|0;
  15505. $11 = (_llvm_stacksave()|0);
  15506. $$alloca_mul = $10;
  15507. $12 = STACKTOP; STACKTOP = STACKTOP + ((((1*$$alloca_mul)|0)+15)&-16)|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(((((1*$$alloca_mul)|0)+15)&-16)|0);;
  15508. $13 = HEAP32[$vararg_buffer>>2]|0;
  15509. _glGetShaderInfoLog(($6|0),($13|0),($5|0),($12|0));
  15510. HEAP32[$vararg_buffer1>>2] = $12;
  15511. _TraceLog(0,8717,$vararg_buffer1);
  15512. _llvm_stackrestore(($11|0));
  15513. }
  15514. _glCompileShader(($7|0));
  15515. _glGetShaderiv(($7|0),35713,($4|0));
  15516. $14 = HEAP32[$4>>2]|0;
  15517. $15 = ($14|0)==(1);
  15518. if ($15) {
  15519. HEAP32[$vararg_buffer13>>2] = $7;
  15520. _TraceLog(0,8821,$vararg_buffer13);
  15521. } else {
  15522. HEAP32[$vararg_buffer7>>2] = $7;
  15523. _TraceLog(2,8770,$vararg_buffer7);
  15524. HEAP32[$vararg_buffer7>>2] = 0;
  15525. _glGetShaderiv(($7|0),35716,($vararg_buffer7|0));
  15526. $16 = HEAP32[$vararg_buffer7>>2]|0;
  15527. $17 = (_llvm_stacksave()|0);
  15528. $$alloca_mul34 = $16;
  15529. $18 = STACKTOP; STACKTOP = STACKTOP + ((((1*$$alloca_mul34)|0)+15)&-16)|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(((((1*$$alloca_mul34)|0)+15)&-16)|0);;
  15530. $19 = HEAP32[$vararg_buffer7>>2]|0;
  15531. _glGetShaderInfoLog(($7|0),($19|0),($5|0),($18|0));
  15532. HEAP32[$vararg_buffer10>>2] = $18;
  15533. _TraceLog(0,8717,$vararg_buffer10);
  15534. _llvm_stackrestore(($17|0));
  15535. }
  15536. $20 = (_glCreateProgram()|0);
  15537. _glAttachShader(($20|0),($6|0));
  15538. _glAttachShader(($20|0),($7|0));
  15539. _glBindAttribLocation(($20|0),0,(8512|0));
  15540. _glBindAttribLocation(($20|0),1,(8527|0));
  15541. _glBindAttribLocation(($20|0),2,(8558|0));
  15542. _glBindAttribLocation(($20|0),3,(8585|0));
  15543. _glBindAttribLocation(($20|0),4,(8571|0));
  15544. _glBindAttribLocation(($20|0),5,(8542|0));
  15545. _glLinkProgram(($20|0));
  15546. _glGetProgramiv(($20|0),35714,($4|0));
  15547. $21 = HEAP32[$4>>2]|0;
  15548. $22 = ($21|0)==(0);
  15549. if ($22) {
  15550. HEAP32[$vararg_buffer16>>2] = $20;
  15551. _TraceLog(2,8873,$vararg_buffer16);
  15552. HEAP32[$vararg_buffer16>>2] = 0;
  15553. _glGetProgramiv(($20|0),35716,($vararg_buffer16|0));
  15554. $23 = HEAP32[$vararg_buffer16>>2]|0;
  15555. $24 = (_llvm_stacksave()|0);
  15556. $$alloca_mul36 = $23;
  15557. $25 = STACKTOP; STACKTOP = STACKTOP + ((((1*$$alloca_mul36)|0)+15)&-16)|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(((((1*$$alloca_mul36)|0)+15)&-16)|0);;
  15558. $26 = HEAP32[$vararg_buffer16>>2]|0;
  15559. _glGetProgramInfoLog(($20|0),($26|0),($5|0),($25|0));
  15560. HEAP32[$vararg_buffer19>>2] = $25;
  15561. _TraceLog(0,8717,$vararg_buffer19);
  15562. _glDeleteProgram(($20|0));
  15563. _llvm_stackrestore(($24|0));
  15564. $$0 = 0;
  15565. _glDeleteShader(($6|0));
  15566. _glDeleteShader(($7|0));
  15567. STACKTOP = sp;return ($$0|0);
  15568. } else {
  15569. HEAP32[$vararg_buffer22>>2] = $20;
  15570. _TraceLog(0,8919,$vararg_buffer22);
  15571. $$0 = $20;
  15572. _glDeleteShader(($6|0));
  15573. _glDeleteShader(($7|0));
  15574. STACKTOP = sp;return ($$0|0);
  15575. }
  15576. return (0)|0;
  15577. }
  15578. function _LoadDefaultShaderLocations($0) {
  15579. $0 = $0|0;
  15580. var $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0;
  15581. var $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0;
  15582. var sp = 0;
  15583. sp = STACKTOP;
  15584. $1 = HEAP32[$0>>2]|0;
  15585. $2 = (_glGetAttribLocation(($1|0),(8512|0))|0);
  15586. $3 = ((($0)) + 4|0);
  15587. HEAP32[$3>>2] = $2;
  15588. $4 = HEAP32[$0>>2]|0;
  15589. $5 = (_glGetAttribLocation(($4|0),(8527|0))|0);
  15590. $6 = ((($0)) + 8|0);
  15591. HEAP32[$6>>2] = $5;
  15592. $7 = HEAP32[$0>>2]|0;
  15593. $8 = (_glGetAttribLocation(($7|0),(8542|0))|0);
  15594. $9 = ((($0)) + 12|0);
  15595. HEAP32[$9>>2] = $8;
  15596. $10 = HEAP32[$0>>2]|0;
  15597. $11 = (_glGetAttribLocation(($10|0),(8558|0))|0);
  15598. $12 = ((($0)) + 16|0);
  15599. HEAP32[$12>>2] = $11;
  15600. $13 = HEAP32[$0>>2]|0;
  15601. $14 = (_glGetAttribLocation(($13|0),(8571|0))|0);
  15602. $15 = ((($0)) + 20|0);
  15603. HEAP32[$15>>2] = $14;
  15604. $16 = HEAP32[$0>>2]|0;
  15605. $17 = (_glGetAttribLocation(($16|0),(8585|0))|0);
  15606. $18 = ((($0)) + 24|0);
  15607. HEAP32[$18>>2] = $17;
  15608. $19 = HEAP32[$0>>2]|0;
  15609. $20 = (_glGetUniformLocation(($19|0),(8597|0))|0);
  15610. $21 = ((($0)) + 28|0);
  15611. HEAP32[$21>>2] = $20;
  15612. $22 = HEAP32[$0>>2]|0;
  15613. $23 = (_glGetUniformLocation(($22|0),(8607|0))|0);
  15614. $24 = ((($0)) + 32|0);
  15615. HEAP32[$24>>2] = $23;
  15616. $25 = HEAP32[$0>>2]|0;
  15617. $26 = (_glGetUniformLocation(($25|0),(8618|0))|0);
  15618. $27 = ((($0)) + 36|0);
  15619. HEAP32[$27>>2] = $26;
  15620. $28 = HEAP32[$0>>2]|0;
  15621. $29 = (_glGetUniformLocation(($28|0),(8629|0))|0);
  15622. $30 = ((($0)) + 40|0);
  15623. HEAP32[$30>>2] = $29;
  15624. $31 = HEAP32[$0>>2]|0;
  15625. $32 = (_glGetUniformLocation(($31|0),(8641|0))|0);
  15626. $33 = ((($0)) + 44|0);
  15627. HEAP32[$33>>2] = $32;
  15628. $34 = HEAP32[$0>>2]|0;
  15629. $35 = (_glGetUniformLocation(($34|0),(8650|0))|0);
  15630. $36 = ((($0)) + 48|0);
  15631. HEAP32[$36>>2] = $35;
  15632. $37 = HEAP32[$0>>2]|0;
  15633. $38 = (_glGetUniformLocation(($37|0),(8659|0))|0);
  15634. $39 = ((($0)) + 52|0);
  15635. HEAP32[$39>>2] = $38;
  15636. return;
  15637. }
  15638. function _IsMouseButtonPressed($0) {
  15639. $0 = $0|0;
  15640. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $or$cond = 0, label = 0, sp = 0;
  15641. sp = STACKTOP;
  15642. $1 = (21677 + ($0)|0);
  15643. $2 = HEAP8[$1>>0]|0;
  15644. $3 = (21680 + ($0)|0);
  15645. $4 = HEAP8[$3>>0]|0;
  15646. $5 = ($2<<24>>24)!=($4<<24>>24);
  15647. $6 = ($2<<24>>24)==(1);
  15648. $or$cond = $6 & $5;
  15649. $$0 = $or$cond&1;
  15650. return ($$0|0);
  15651. }
  15652. function _IsMouseButtonReleased($0) {
  15653. $0 = $0|0;
  15654. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $or$cond = 0, label = 0, sp = 0;
  15655. sp = STACKTOP;
  15656. $1 = (21677 + ($0)|0);
  15657. $2 = HEAP8[$1>>0]|0;
  15658. $3 = (21680 + ($0)|0);
  15659. $4 = HEAP8[$3>>0]|0;
  15660. $5 = ($2<<24>>24)!=($4<<24>>24);
  15661. $6 = ($2<<24>>24)==(0);
  15662. $or$cond = $6 & $5;
  15663. $$0 = $or$cond&1;
  15664. return ($$0|0);
  15665. }
  15666. function _rlClearScreenBuffers() {
  15667. var label = 0, sp = 0;
  15668. sp = STACKTOP;
  15669. _glClear(16640);
  15670. return;
  15671. }
  15672. function _CloseWindow() {
  15673. var $0 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  15674. sp = STACKTOP;
  15675. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  15676. $vararg_buffer = sp;
  15677. _UnloadDefaultFont();
  15678. _rlglClose();
  15679. $0 = HEAP32[4709]|0;
  15680. _glfwDestroyWindow(($0|0));
  15681. _glfwTerminate();
  15682. _TraceLog(0,9231,$vararg_buffer);
  15683. STACKTOP = sp;return;
  15684. }
  15685. function _UnloadDefaultFont() {
  15686. var $$byval_copy = 0, $0 = 0, label = 0, sp = 0;
  15687. sp = STACKTOP;
  15688. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  15689. $$byval_copy = sp;
  15690. ;HEAP32[$$byval_copy>>2]=HEAP32[18876>>2]|0;HEAP32[$$byval_copy+4>>2]=HEAP32[18876+4>>2]|0;HEAP32[$$byval_copy+8>>2]=HEAP32[18876+8>>2]|0;HEAP32[$$byval_copy+12>>2]=HEAP32[18876+12>>2]|0;HEAP32[$$byval_copy+16>>2]=HEAP32[18876+16>>2]|0;
  15691. _UnloadTexture($$byval_copy);
  15692. $0 = HEAP32[(18904)>>2]|0;
  15693. _free($0);
  15694. STACKTOP = sp;return;
  15695. }
  15696. function _rlglClose() {
  15697. var $0 = 0, $1 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  15698. sp = STACKTOP;
  15699. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  15700. $vararg_buffer = sp;
  15701. _UnloadDefaultShader();
  15702. _UnloadDefaultBuffers();
  15703. _glDeleteTextures(1,(19188|0));
  15704. $0 = HEAP32[4797]|0;
  15705. HEAP32[$vararg_buffer>>2] = $0;
  15706. _TraceLog(0,9258,$vararg_buffer);
  15707. $1 = HEAP32[4827]|0;
  15708. _free($1);
  15709. STACKTOP = sp;return;
  15710. }
  15711. function _UnloadDefaultShader() {
  15712. var $0 = 0, label = 0, sp = 0;
  15713. sp = STACKTOP;
  15714. _glUseProgram(0);
  15715. $0 = HEAP32[4798]|0;
  15716. _glDeleteProgram(($0|0));
  15717. return;
  15718. }
  15719. function _UnloadDefaultBuffers() {
  15720. var $0 = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  15721. sp = STACKTOP;
  15722. $0 = HEAP32[4790]|0;
  15723. $1 = ($0|0)==(0);
  15724. if (!($1)) {
  15725. $2 = HEAP32[4792]|0;
  15726. FUNCTION_TABLE_vi[$2 & 31](0);
  15727. }
  15728. _glDisableVertexAttribArray(0);
  15729. _glDisableVertexAttribArray(1);
  15730. _glDisableVertexAttribArray(2);
  15731. _glDisableVertexAttribArray(3);
  15732. _glBindBuffer(34962,0);
  15733. _glBindBuffer(34963,0);
  15734. _glDeleteBuffers(1,((20384)|0));
  15735. _glDeleteBuffers(1,((20388)|0));
  15736. _glDeleteBuffers(1,((20432)|0));
  15737. _glDeleteBuffers(1,((20436)|0));
  15738. _glDeleteBuffers(1,((20480)|0));
  15739. _glDeleteBuffers(1,((20484)|0));
  15740. _glDeleteBuffers(1,((20488)|0));
  15741. _glDeleteBuffers(1,((20492)|0));
  15742. $3 = HEAP32[4790]|0;
  15743. $4 = ($3|0)==(0);
  15744. if (!($4)) {
  15745. $5 = HEAP32[4793]|0;
  15746. FUNCTION_TABLE_vii[$5 & 63](1,(20380));
  15747. $6 = HEAP32[4793]|0;
  15748. FUNCTION_TABLE_vii[$6 & 63](1,(20428));
  15749. $7 = HEAP32[4793]|0;
  15750. FUNCTION_TABLE_vii[$7 & 63](1,(20476));
  15751. }
  15752. $8 = HEAP32[(20364)>>2]|0;
  15753. _free($8);
  15754. $9 = HEAP32[(20372)>>2]|0;
  15755. _free($9);
  15756. $10 = HEAP32[(20412)>>2]|0;
  15757. _free($10);
  15758. $11 = HEAP32[(20420)>>2]|0;
  15759. _free($11);
  15760. $12 = HEAP32[(20460)>>2]|0;
  15761. _free($12);
  15762. $13 = HEAP32[(20464)>>2]|0;
  15763. _free($13);
  15764. $14 = HEAP32[(20468)>>2]|0;
  15765. _free($14);
  15766. $15 = HEAP32[(20472)>>2]|0;
  15767. _free($15);
  15768. return;
  15769. }
  15770. function _UnloadTexture($0) {
  15771. $0 = $0|0;
  15772. var $1 = 0, $2 = 0, $3 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  15773. sp = STACKTOP;
  15774. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  15775. $vararg_buffer = sp;
  15776. $1 = HEAP32[$0>>2]|0;
  15777. $2 = ($1|0)==(0);
  15778. if ($2) {
  15779. STACKTOP = sp;return;
  15780. }
  15781. _rlDeleteTextures($1);
  15782. $3 = HEAP32[$0>>2]|0;
  15783. HEAP32[$vararg_buffer>>2] = $3;
  15784. _TraceLog(0,9323,$vararg_buffer);
  15785. STACKTOP = sp;return;
  15786. }
  15787. function _rlDeleteTextures($0) {
  15788. $0 = $0|0;
  15789. var $1 = 0, $2 = 0, label = 0, sp = 0;
  15790. sp = STACKTOP;
  15791. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  15792. $1 = sp;
  15793. HEAP32[$1>>2] = $0;
  15794. $2 = ($0|0)==(0);
  15795. if (!($2)) {
  15796. _glDeleteTextures(1,($1|0));
  15797. }
  15798. STACKTOP = sp;return;
  15799. }
  15800. function _BeginDrawing() {
  15801. var $0 = 0.0, $1 = 0.0, $2 = 0.0, $downscaleView$byval_copy = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  15802. sp = STACKTOP;
  15803. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  15804. $downscaleView$byval_copy = sp;
  15805. $0 = (+_GetTime());
  15806. HEAPF64[2292] = $0;
  15807. $1 = +HEAPF64[2275];
  15808. $2 = $0 - $1;
  15809. HEAPF64[2293] = $2;
  15810. HEAPF64[2275] = $0;
  15811. _rlClearScreenBuffers();
  15812. _rlLoadIdentity();
  15813. dest=$downscaleView$byval_copy; src=18932; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  15814. (_MatrixToFloat($downscaleView$byval_copy)|0);
  15815. _rlMultMatrixf(20504);
  15816. STACKTOP = sp;return;
  15817. }
  15818. function _MatrixToFloat($0) {
  15819. $0 = $0|0;
  15820. var $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0;
  15821. var $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  15822. sp = STACKTOP;
  15823. $1 = HEAP32[$0>>2]|0;
  15824. HEAP32[5126] = $1;
  15825. $2 = ((($0)) + 4|0);
  15826. $3 = HEAP32[$2>>2]|0;
  15827. HEAP32[(20508)>>2] = $3;
  15828. $4 = ((($0)) + 8|0);
  15829. $5 = HEAP32[$4>>2]|0;
  15830. HEAP32[(20512)>>2] = $5;
  15831. $6 = ((($0)) + 12|0);
  15832. $7 = HEAP32[$6>>2]|0;
  15833. HEAP32[(20516)>>2] = $7;
  15834. $8 = ((($0)) + 16|0);
  15835. $9 = HEAP32[$8>>2]|0;
  15836. HEAP32[(20520)>>2] = $9;
  15837. $10 = ((($0)) + 20|0);
  15838. $11 = HEAP32[$10>>2]|0;
  15839. HEAP32[(20524)>>2] = $11;
  15840. $12 = ((($0)) + 24|0);
  15841. $13 = HEAP32[$12>>2]|0;
  15842. HEAP32[(20528)>>2] = $13;
  15843. $14 = ((($0)) + 28|0);
  15844. $15 = HEAP32[$14>>2]|0;
  15845. HEAP32[(20532)>>2] = $15;
  15846. $16 = ((($0)) + 32|0);
  15847. $17 = HEAP32[$16>>2]|0;
  15848. HEAP32[(20536)>>2] = $17;
  15849. $18 = ((($0)) + 36|0);
  15850. $19 = HEAP32[$18>>2]|0;
  15851. HEAP32[(20540)>>2] = $19;
  15852. $20 = ((($0)) + 40|0);
  15853. $21 = HEAP32[$20>>2]|0;
  15854. HEAP32[(20544)>>2] = $21;
  15855. $22 = ((($0)) + 44|0);
  15856. $23 = HEAP32[$22>>2]|0;
  15857. HEAP32[(20548)>>2] = $23;
  15858. $24 = ((($0)) + 48|0);
  15859. $25 = HEAP32[$24>>2]|0;
  15860. HEAP32[(20552)>>2] = $25;
  15861. $26 = ((($0)) + 52|0);
  15862. $27 = HEAP32[$26>>2]|0;
  15863. HEAP32[(20556)>>2] = $27;
  15864. $28 = ((($0)) + 56|0);
  15865. $29 = HEAP32[$28>>2]|0;
  15866. HEAP32[(20560)>>2] = $29;
  15867. $30 = ((($0)) + 60|0);
  15868. $31 = HEAP32[$30>>2]|0;
  15869. HEAP32[(20564)>>2] = $31;
  15870. return (20504|0);
  15871. }
  15872. function _rlMultMatrixf($0) {
  15873. $0 = $0|0;
  15874. var $$byval_copy = 0, $$byval_copy1 = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0;
  15875. var $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0;
  15876. var $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  15877. sp = STACKTOP;
  15878. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  15879. $$byval_copy1 = sp + 192|0;
  15880. $$byval_copy = sp + 128|0;
  15881. $1 = sp + 64|0;
  15882. $2 = sp;
  15883. $3 = HEAP32[$0>>2]|0;
  15884. HEAP32[$1>>2] = $3;
  15885. $4 = ((($1)) + 4|0);
  15886. $5 = ((($0)) + 4|0);
  15887. $6 = HEAP32[$5>>2]|0;
  15888. HEAP32[$4>>2] = $6;
  15889. $7 = ((($1)) + 8|0);
  15890. $8 = ((($0)) + 8|0);
  15891. $9 = HEAP32[$8>>2]|0;
  15892. HEAP32[$7>>2] = $9;
  15893. $10 = ((($1)) + 12|0);
  15894. $11 = ((($0)) + 12|0);
  15895. $12 = HEAP32[$11>>2]|0;
  15896. HEAP32[$10>>2] = $12;
  15897. $13 = ((($1)) + 16|0);
  15898. $14 = ((($0)) + 16|0);
  15899. $15 = HEAP32[$14>>2]|0;
  15900. HEAP32[$13>>2] = $15;
  15901. $16 = ((($1)) + 20|0);
  15902. $17 = ((($0)) + 20|0);
  15903. $18 = HEAP32[$17>>2]|0;
  15904. HEAP32[$16>>2] = $18;
  15905. $19 = ((($1)) + 24|0);
  15906. $20 = ((($0)) + 24|0);
  15907. $21 = HEAP32[$20>>2]|0;
  15908. HEAP32[$19>>2] = $21;
  15909. $22 = ((($1)) + 28|0);
  15910. $23 = ((($0)) + 28|0);
  15911. $24 = HEAP32[$23>>2]|0;
  15912. HEAP32[$22>>2] = $24;
  15913. $25 = ((($1)) + 32|0);
  15914. $26 = ((($0)) + 32|0);
  15915. $27 = HEAP32[$26>>2]|0;
  15916. HEAP32[$25>>2] = $27;
  15917. $28 = ((($1)) + 36|0);
  15918. $29 = ((($0)) + 36|0);
  15919. $30 = HEAP32[$29>>2]|0;
  15920. HEAP32[$28>>2] = $30;
  15921. $31 = ((($1)) + 40|0);
  15922. $32 = ((($0)) + 40|0);
  15923. $33 = HEAP32[$32>>2]|0;
  15924. HEAP32[$31>>2] = $33;
  15925. $34 = ((($1)) + 44|0);
  15926. $35 = ((($0)) + 44|0);
  15927. $36 = HEAP32[$35>>2]|0;
  15928. HEAP32[$34>>2] = $36;
  15929. $37 = ((($1)) + 48|0);
  15930. $38 = ((($0)) + 48|0);
  15931. $39 = HEAP32[$38>>2]|0;
  15932. HEAP32[$37>>2] = $39;
  15933. $40 = ((($1)) + 52|0);
  15934. $41 = ((($0)) + 52|0);
  15935. $42 = HEAP32[$41>>2]|0;
  15936. HEAP32[$40>>2] = $42;
  15937. $43 = ((($1)) + 56|0);
  15938. $44 = ((($0)) + 56|0);
  15939. $45 = HEAP32[$44>>2]|0;
  15940. HEAP32[$43>>2] = $45;
  15941. $46 = ((($1)) + 60|0);
  15942. $47 = ((($0)) + 60|0);
  15943. $48 = HEAP32[$47>>2]|0;
  15944. HEAP32[$46>>2] = $48;
  15945. $49 = HEAP32[4756]|0;
  15946. dest=$$byval_copy; src=$49; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  15947. dest=$$byval_copy1; src=$1; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  15948. _MatrixMultiply($2,$$byval_copy,$$byval_copy1);
  15949. dest=$49; src=$2; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  15950. STACKTOP = sp;return;
  15951. }
  15952. function _EndDrawing() {
  15953. var $0 = 0.0, $1 = 0.0, $10 = 0.0, $11 = 0.0, $12 = 0.0, $13 = 0.0, $14 = 0.0, $2 = 0.0, $3 = 0.0, $4 = 0.0, $5 = 0.0, $6 = 0, $7 = 0.0, $8 = 0.0, $9 = 0.0, label = 0, sp = 0;
  15954. sp = STACKTOP;
  15955. _rlglDraw();
  15956. _SwapBuffers();
  15957. _PollInputEvents();
  15958. $0 = (+_GetTime());
  15959. HEAPF64[2292] = $0;
  15960. $1 = +HEAPF64[2275];
  15961. $2 = $0 - $1;
  15962. HEAPF64[2294] = $2;
  15963. HEAPF64[2275] = $0;
  15964. $3 = +HEAPF64[2293];
  15965. $4 = $2 + $3;
  15966. HEAPF64[2295] = $4;
  15967. $5 = +HEAPF64[2272];
  15968. $6 = $4 < $5;
  15969. if (!($6)) {
  15970. return;
  15971. }
  15972. $7 = $5 - $4;
  15973. $8 = $7 * 1000.0;
  15974. $9 = $8;
  15975. _Wait($9);
  15976. $10 = (+_GetTime());
  15977. HEAPF64[2292] = $10;
  15978. $11 = +HEAPF64[2275];
  15979. $12 = $10 - $11;
  15980. HEAPF64[2275] = $10;
  15981. $13 = +HEAPF64[2295];
  15982. $14 = $12 + $13;
  15983. HEAPF64[2295] = $14;
  15984. return;
  15985. }
  15986. function _rlglDraw() {
  15987. var label = 0, sp = 0;
  15988. sp = STACKTOP;
  15989. _UpdateDefaultBuffers();
  15990. _DrawDefaultBuffers();
  15991. return;
  15992. }
  15993. function _SwapBuffers() {
  15994. var $0 = 0, label = 0, sp = 0;
  15995. sp = STACKTOP;
  15996. $0 = HEAP32[4709]|0;
  15997. _glfwSwapBuffers(($0|0));
  15998. return;
  15999. }
  16000. function _PollInputEvents() {
  16001. var $$04857 = 0, $$05160 = 0, $$058 = 0, $$lcssa = 0, $0 = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0;
  16002. var $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0.0, $31 = 0.0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0.0, $40 = 0;
  16003. var $5 = 0.0, $6 = 0.0, $7 = 0.0, $8 = 0, $9 = 0, $scevgep = 0, $scevgep67 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  16004. sp = STACKTOP;
  16005. STACKTOP = STACKTOP + 1456|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(1456|0);
  16006. $0 = sp + 1440|0;
  16007. $1 = sp + 1432|0;
  16008. $2 = sp;
  16009. _UpdateGestures();
  16010. HEAP32[758] = -1;
  16011. HEAP32[760] = -1;
  16012. HEAP32[5142] = 0;
  16013. $3 = HEAP32[4709]|0;
  16014. _glfwGetCursorPos(($3|0),($0|0),($1|0));
  16015. $4 = +HEAPF64[$0>>3];
  16016. $5 = $4;
  16017. HEAPF32[4542] = $5;
  16018. $6 = +HEAPF64[$1>>3];
  16019. $7 = $6;
  16020. HEAPF32[(18172)>>2] = $7;
  16021. _memcpy((22195|0),(21683|0),512)|0;
  16022. ;HEAP8[21680>>0]=HEAP8[21677>>0]|0;HEAP8[21680+1>>0]=HEAP8[21677+1>>0]|0;HEAP8[21680+2>>0]=HEAP8[21677+2>>0]|0;
  16023. $8 = HEAP32[5125]|0;
  16024. HEAP32[4712] = $8;
  16025. HEAP32[5125] = 0;
  16026. $9 = (_emscripten_get_num_gamepads()|0);
  16027. $10 = ($9|0)>(0);
  16028. if (!($10)) {
  16029. STACKTOP = sp;return;
  16030. }
  16031. $11 = ((($2)) + 12|0);
  16032. $12 = ((($2)) + 8|0);
  16033. $$05160 = 0;
  16034. while(1) {
  16035. $scevgep = (22707 + ($$05160<<5)|0);
  16036. $scevgep67 = (22835 + ($$05160<<5)|0);
  16037. dest=$scevgep; src=$scevgep67; stop=dest+32|0; do { HEAP8[dest>>0]=HEAP8[src>>0]|0; dest=dest+1|0; src=src+1|0; } while ((dest|0) < (stop|0));
  16038. $13 = (_emscripten_get_gamepad_status(($$05160|0),($2|0))|0);
  16039. $14 = ($13|0)==(0);
  16040. if ($14) {
  16041. $15 = HEAP32[$11>>2]|0;
  16042. $16 = ($15|0)>(0);
  16043. if ($16) {
  16044. $17 = HEAP32[$11>>2]|0;
  16045. $$04857 = 0;
  16046. while(1) {
  16047. $21 = (((($2)) + 1040|0) + ($$04857<<2)|0);
  16048. $22 = HEAP32[$21>>2]|0;
  16049. $23 = ($22|0)==(1);
  16050. $24 = ((22835 + ($$05160<<5)|0) + ($$04857)|0);
  16051. if ($23) {
  16052. HEAP8[$24>>0] = 1;
  16053. HEAP32[760] = $$04857;
  16054. } else {
  16055. HEAP8[$24>>0] = 0;
  16056. }
  16057. $25 = (($$04857) + 1)|0;
  16058. $26 = ($25|0)<($17|0);
  16059. $27 = ($25|0)<(32);
  16060. $28 = $27 & $26;
  16061. if ($28) {
  16062. $$04857 = $25;
  16063. } else {
  16064. break;
  16065. }
  16066. }
  16067. }
  16068. $18 = HEAP32[$12>>2]|0;
  16069. $19 = ($18|0)>(0);
  16070. if ($19) {
  16071. $20 = HEAP32[$12>>2]|0;
  16072. $$058 = 0;
  16073. while(1) {
  16074. $29 = (((($2)) + 16|0) + ($$058<<3)|0);
  16075. $30 = +HEAPF64[$29>>3];
  16076. $31 = $30;
  16077. $32 = ((20572 + ($$05160<<5)|0) + ($$058<<2)|0);
  16078. HEAPF32[$32>>2] = $31;
  16079. $33 = (($$058) + 1)|0;
  16080. $34 = ($33|0)<($20|0);
  16081. $35 = ($33|0)<(8);
  16082. $36 = $35 & $34;
  16083. if ($36) {
  16084. $$058 = $33;
  16085. } else {
  16086. $$lcssa = $20;
  16087. break;
  16088. }
  16089. }
  16090. } else {
  16091. $$lcssa = $18;
  16092. }
  16093. HEAP32[5142] = $$lcssa;
  16094. }
  16095. $37 = (($$05160) + 1)|0;
  16096. $38 = ($37|0)<($9|0);
  16097. $39 = ($37|0)<(4);
  16098. $40 = $38 & $39;
  16099. if ($40) {
  16100. $$05160 = $37;
  16101. } else {
  16102. break;
  16103. }
  16104. }
  16105. STACKTOP = sp;return;
  16106. }
  16107. function _Wait($0) {
  16108. $0 = +$0;
  16109. var $1 = 0.0, $2 = 0.0, $3 = 0.0, $4 = 0.0, $5 = 0, $6 = 0.0, $7 = 0.0, $8 = 0, label = 0, sp = 0;
  16110. sp = STACKTOP;
  16111. $1 = (+_GetTime());
  16112. $2 = 0.0 - $1;
  16113. $3 = $0 / 1000.0;
  16114. $4 = $3;
  16115. $5 = $2 < $4;
  16116. if (!($5)) {
  16117. return;
  16118. }
  16119. while(1) {
  16120. $6 = (+_GetTime());
  16121. $7 = $6 - $1;
  16122. $8 = $7 < $4;
  16123. if (!($8)) {
  16124. break;
  16125. }
  16126. }
  16127. return;
  16128. }
  16129. function _UpdateDefaultBuffers() {
  16130. var $0 = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0;
  16131. var $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0;
  16132. var $45 = 0, $46 = 0, $47 = 0, $48 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  16133. sp = STACKTOP;
  16134. $0 = HEAP32[5088]|0;
  16135. $1 = ($0|0)>(0);
  16136. if ($1) {
  16137. $2 = HEAP32[4790]|0;
  16138. $3 = ($2|0)==(0);
  16139. if (!($3)) {
  16140. $4 = HEAP32[4792]|0;
  16141. $5 = HEAP32[(20380)>>2]|0;
  16142. FUNCTION_TABLE_vi[$4 & 31]($5);
  16143. }
  16144. $6 = HEAP32[(20384)>>2]|0;
  16145. _glBindBuffer(34962,($6|0));
  16146. $7 = HEAP32[5088]|0;
  16147. $8 = ($7*12)|0;
  16148. $9 = HEAP32[(20364)>>2]|0;
  16149. _glBufferSubData(34962,0,($8|0),($9|0));
  16150. $10 = HEAP32[(20388)>>2]|0;
  16151. _glBindBuffer(34962,($10|0));
  16152. $11 = HEAP32[(20360)>>2]|0;
  16153. $12 = $11 << 2;
  16154. $13 = HEAP32[(20372)>>2]|0;
  16155. _glBufferSubData(34962,0,($12|0),($13|0));
  16156. }
  16157. $14 = HEAP32[5100]|0;
  16158. $15 = ($14|0)>(0);
  16159. if ($15) {
  16160. $16 = HEAP32[4790]|0;
  16161. $17 = ($16|0)==(0);
  16162. if (!($17)) {
  16163. $18 = HEAP32[4792]|0;
  16164. $19 = HEAP32[(20428)>>2]|0;
  16165. FUNCTION_TABLE_vi[$18 & 31]($19);
  16166. }
  16167. $20 = HEAP32[(20432)>>2]|0;
  16168. _glBindBuffer(34962,($20|0));
  16169. $21 = HEAP32[5100]|0;
  16170. $22 = ($21*12)|0;
  16171. $23 = HEAP32[(20412)>>2]|0;
  16172. _glBufferSubData(34962,0,($22|0),($23|0));
  16173. $24 = HEAP32[(20436)>>2]|0;
  16174. _glBindBuffer(34962,($24|0));
  16175. $25 = HEAP32[(20408)>>2]|0;
  16176. $26 = $25 << 2;
  16177. $27 = HEAP32[(20420)>>2]|0;
  16178. _glBufferSubData(34962,0,($26|0),($27|0));
  16179. }
  16180. $28 = HEAP32[5112]|0;
  16181. $29 = ($28|0)>(0);
  16182. if ($29) {
  16183. $30 = HEAP32[4790]|0;
  16184. $31 = ($30|0)==(0);
  16185. if (!($31)) {
  16186. $32 = HEAP32[4792]|0;
  16187. $33 = HEAP32[(20476)>>2]|0;
  16188. FUNCTION_TABLE_vi[$32 & 31]($33);
  16189. }
  16190. $34 = HEAP32[(20480)>>2]|0;
  16191. _glBindBuffer(34962,($34|0));
  16192. $35 = HEAP32[5112]|0;
  16193. $36 = ($35*12)|0;
  16194. $37 = HEAP32[(20460)>>2]|0;
  16195. _glBufferSubData(34962,0,($36|0),($37|0));
  16196. $38 = HEAP32[(20484)>>2]|0;
  16197. _glBindBuffer(34962,($38|0));
  16198. $39 = HEAP32[5112]|0;
  16199. $40 = $39 << 3;
  16200. $41 = HEAP32[(20464)>>2]|0;
  16201. _glBufferSubData(34962,0,($40|0),($41|0));
  16202. $42 = HEAP32[(20488)>>2]|0;
  16203. _glBindBuffer(34962,($42|0));
  16204. $43 = HEAP32[5112]|0;
  16205. $44 = $43 << 2;
  16206. $45 = HEAP32[(20468)>>2]|0;
  16207. _glBufferSubData(34962,0,($44|0),($45|0));
  16208. }
  16209. $46 = HEAP32[4790]|0;
  16210. $47 = ($46|0)==(0);
  16211. if ($47) {
  16212. return;
  16213. }
  16214. $48 = HEAP32[4792]|0;
  16215. FUNCTION_TABLE_vi[$48 & 31](0);
  16216. return;
  16217. }
  16218. function _DrawDefaultBuffers() {
  16219. var $$ = 0, $$02830 = 0, $$02932 = 0, $$031 = 0, $$byval_copy2 = 0, $0 = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0;
  16220. var $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0;
  16221. var $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0;
  16222. var $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0, $75 = 0, $76 = 0;
  16223. var $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0, $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $modelview$byval_copy = 0;
  16224. var $or$cond = 0, $or$cond3 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  16225. sp = STACKTOP;
  16226. STACKTOP = STACKTOP + 320|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(320|0);
  16227. $$byval_copy2 = sp + 256|0;
  16228. $modelview$byval_copy = sp + 192|0;
  16229. $0 = sp + 128|0;
  16230. $1 = sp + 64|0;
  16231. $2 = sp;
  16232. dest=$0; src=19028; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16233. dest=$1; src=19092; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16234. $3 = HEAP32[5175]|0;
  16235. $4 = ($3|0)!=(0);
  16236. $$ = $4 ? 2 : 1;
  16237. $$02932 = 0;
  16238. while(1) {
  16239. if ($4) {
  16240. dest=$modelview$byval_copy; src=$0; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16241. dest=$$byval_copy2; src=$1; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16242. _SetStereoView($$02932,$modelview$byval_copy,$$byval_copy2);
  16243. }
  16244. $8 = HEAP32[5088]|0;
  16245. $9 = ($8|0)>(0);
  16246. $10 = HEAP32[5100]|0;
  16247. $11 = ($10|0)>(0);
  16248. $or$cond = $9 | $11;
  16249. $12 = HEAP32[5112]|0;
  16250. $13 = ($12|0)>(0);
  16251. $or$cond3 = $or$cond | $13;
  16252. if ($or$cond3) {
  16253. $14 = HEAP32[4812]|0;
  16254. _glUseProgram(($14|0));
  16255. dest=$modelview$byval_copy; src=19092; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16256. dest=$$byval_copy2; src=19028; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16257. _MatrixMultiply($2,$modelview$byval_copy,$$byval_copy2);
  16258. $15 = HEAP32[(19276)>>2]|0;
  16259. dest=$$byval_copy2; src=$2; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16260. $16 = (_MatrixToFloat($$byval_copy2)|0);
  16261. _glUniformMatrix4fv(($15|0),1,0,($16|0));
  16262. $17 = HEAP32[(19280)>>2]|0;
  16263. _glUniform4f(($17|0),1.0,1.0,1.0,1.0);
  16264. $18 = HEAP32[(19292)>>2]|0;
  16265. _glUniform1i(($18|0),0);
  16266. }
  16267. $19 = HEAP32[5088]|0;
  16268. $20 = ($19|0)>(0);
  16269. if ($20) {
  16270. $21 = HEAP32[4797]|0;
  16271. _glBindTexture(3553,($21|0));
  16272. $22 = HEAP32[4790]|0;
  16273. $23 = ($22|0)==(0);
  16274. if ($23) {
  16275. $26 = HEAP32[(20384)>>2]|0;
  16276. _glBindBuffer(34962,($26|0));
  16277. $27 = HEAP32[(19252)>>2]|0;
  16278. _glVertexAttribPointer(($27|0),3,5126,0,0,(0|0));
  16279. $28 = HEAP32[(19252)>>2]|0;
  16280. _glEnableVertexAttribArray(($28|0));
  16281. $29 = HEAP32[(20388)>>2]|0;
  16282. _glBindBuffer(34962,($29|0));
  16283. $30 = HEAP32[(19272)>>2]|0;
  16284. _glVertexAttribPointer(($30|0),4,5121,1,0,(0|0));
  16285. $31 = HEAP32[(19272)>>2]|0;
  16286. _glEnableVertexAttribArray(($31|0));
  16287. } else {
  16288. $24 = HEAP32[4792]|0;
  16289. $25 = HEAP32[(20380)>>2]|0;
  16290. FUNCTION_TABLE_vi[$24 & 31]($25);
  16291. }
  16292. $32 = HEAP32[5088]|0;
  16293. _glDrawArrays(1,0,($32|0));
  16294. $33 = HEAP32[4790]|0;
  16295. $34 = ($33|0)==(0);
  16296. if ($34) {
  16297. _glBindBuffer(34962,0);
  16298. }
  16299. _glBindTexture(3553,0);
  16300. }
  16301. $35 = HEAP32[5100]|0;
  16302. $36 = ($35|0)>(0);
  16303. if ($36) {
  16304. $37 = HEAP32[4797]|0;
  16305. _glBindTexture(3553,($37|0));
  16306. $38 = HEAP32[4790]|0;
  16307. $39 = ($38|0)==(0);
  16308. if ($39) {
  16309. $42 = HEAP32[(20432)>>2]|0;
  16310. _glBindBuffer(34962,($42|0));
  16311. $43 = HEAP32[(19252)>>2]|0;
  16312. _glVertexAttribPointer(($43|0),3,5126,0,0,(0|0));
  16313. $44 = HEAP32[(19252)>>2]|0;
  16314. _glEnableVertexAttribArray(($44|0));
  16315. $45 = HEAP32[(20436)>>2]|0;
  16316. _glBindBuffer(34962,($45|0));
  16317. $46 = HEAP32[(19272)>>2]|0;
  16318. _glVertexAttribPointer(($46|0),4,5121,1,0,(0|0));
  16319. $47 = HEAP32[(19272)>>2]|0;
  16320. _glEnableVertexAttribArray(($47|0));
  16321. } else {
  16322. $40 = HEAP32[4792]|0;
  16323. $41 = HEAP32[(20428)>>2]|0;
  16324. FUNCTION_TABLE_vi[$40 & 31]($41);
  16325. }
  16326. $48 = HEAP32[5100]|0;
  16327. _glDrawArrays(4,0,($48|0));
  16328. $49 = HEAP32[4790]|0;
  16329. $50 = ($49|0)==(0);
  16330. if ($50) {
  16331. _glBindBuffer(34962,0);
  16332. }
  16333. _glBindTexture(3553,0);
  16334. }
  16335. $51 = HEAP32[5112]|0;
  16336. $52 = ($51|0)>(0);
  16337. if ($52) {
  16338. $53 = HEAP32[4790]|0;
  16339. $54 = ($53|0)==(0);
  16340. if ($54) {
  16341. $57 = HEAP32[(20480)>>2]|0;
  16342. _glBindBuffer(34962,($57|0));
  16343. $58 = HEAP32[(19252)>>2]|0;
  16344. _glVertexAttribPointer(($58|0),3,5126,0,0,(0|0));
  16345. $59 = HEAP32[(19252)>>2]|0;
  16346. _glEnableVertexAttribArray(($59|0));
  16347. $60 = HEAP32[(20484)>>2]|0;
  16348. _glBindBuffer(34962,($60|0));
  16349. $61 = HEAP32[(19256)>>2]|0;
  16350. _glVertexAttribPointer(($61|0),2,5126,0,0,(0|0));
  16351. $62 = HEAP32[(19256)>>2]|0;
  16352. _glEnableVertexAttribArray(($62|0));
  16353. $63 = HEAP32[(20488)>>2]|0;
  16354. _glBindBuffer(34962,($63|0));
  16355. $64 = HEAP32[(19272)>>2]|0;
  16356. _glVertexAttribPointer(($64|0),4,5121,1,0,(0|0));
  16357. $65 = HEAP32[(19272)>>2]|0;
  16358. _glEnableVertexAttribArray(($65|0));
  16359. $66 = HEAP32[(20492)>>2]|0;
  16360. _glBindBuffer(34963,($66|0));
  16361. } else {
  16362. $55 = HEAP32[4792]|0;
  16363. $56 = HEAP32[(20476)>>2]|0;
  16364. FUNCTION_TABLE_vi[$55 & 31]($56);
  16365. }
  16366. $67 = HEAP32[4828]|0;
  16367. $68 = ($67|0)>(0);
  16368. if ($68) {
  16369. $$02830 = 0;$$031 = 0;
  16370. while(1) {
  16371. $71 = HEAP32[4827]|0;
  16372. $72 = (($71) + (($$031*144)|0)|0);
  16373. $73 = HEAP32[$72>>2]|0;
  16374. $74 = (($73|0) / 4)&-1;
  16375. $75 = ($74*6)|0;
  16376. $76 = (((($71) + (($$031*144)|0)|0)) + 8|0);
  16377. $77 = HEAP32[$76>>2]|0;
  16378. _glBindTexture(3553,($77|0));
  16379. $78 = $$02830 << 1;
  16380. $79 = $78;
  16381. _glDrawElements(4,($75|0),5123,($79|0));
  16382. $80 = HEAP32[4827]|0;
  16383. $81 = (($80) + (($$031*144)|0)|0);
  16384. $82 = HEAP32[$81>>2]|0;
  16385. $83 = (($82|0) / 4)&-1;
  16386. $84 = ($83*6)|0;
  16387. $85 = (($84) + ($$02830))|0;
  16388. $86 = (($$031) + 1)|0;
  16389. $87 = HEAP32[4828]|0;
  16390. $88 = ($86|0)<($87|0);
  16391. if ($88) {
  16392. $$02830 = $85;$$031 = $86;
  16393. } else {
  16394. break;
  16395. }
  16396. }
  16397. }
  16398. $69 = HEAP32[4790]|0;
  16399. $70 = ($69|0)==(0);
  16400. if ($70) {
  16401. _glBindBuffer(34962,0);
  16402. _glBindBuffer(34963,0);
  16403. }
  16404. _glBindTexture(3553,0);
  16405. }
  16406. $89 = HEAP32[4790]|0;
  16407. $90 = ($89|0)==(0);
  16408. if (!($90)) {
  16409. $91 = HEAP32[4792]|0;
  16410. FUNCTION_TABLE_vi[$91 & 31](0);
  16411. }
  16412. _glUseProgram(0);
  16413. $92 = (($$02932) + 1)|0;
  16414. $93 = ($92|0)<($$|0);
  16415. if ($93) {
  16416. $$02932 = $92;
  16417. } else {
  16418. break;
  16419. }
  16420. }
  16421. HEAP32[4828] = 1;
  16422. $5 = HEAP32[4797]|0;
  16423. $6 = HEAP32[4827]|0;
  16424. $7 = ((($6)) + 8|0);
  16425. HEAP32[$7>>2] = $5;
  16426. HEAP32[$6>>2] = 0;
  16427. HEAP32[5088] = 0;
  16428. HEAP32[(20360)>>2] = 0;
  16429. HEAP32[5100] = 0;
  16430. HEAP32[(20408)>>2] = 0;
  16431. HEAP32[5112] = 0;
  16432. HEAP32[(20452)>>2] = 0;
  16433. HEAP32[(20456)>>2] = 0;
  16434. HEAPF32[761] = -1.0;
  16435. dest=19028; src=$0; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16436. dest=19092; src=$1; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16437. STACKTOP = sp;return;
  16438. }
  16439. function _SetStereoView($0,$1,$2) {
  16440. $0 = $0|0;
  16441. $1 = $1|0;
  16442. $2 = $2|0;
  16443. var $$byval_copy = 0, $$byval_copy3 = 0, $10 = 0, $11 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  16444. sp = STACKTOP;
  16445. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  16446. $$byval_copy3 = sp + 192|0;
  16447. $$byval_copy = sp + 64|0;
  16448. $3 = sp;
  16449. $4 = sp + 128|0;
  16450. dest=$3; src=$1; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16451. $5 = HEAP32[5086]|0;
  16452. $6 = Math_imul($5, $0)|0;
  16453. $7 = (($6|0) / 2)&-1;
  16454. $8 = (($5|0) / 2)&-1;
  16455. $9 = HEAP32[5087]|0;
  16456. _rlViewport($7,0,$8,$9);
  16457. $10 = (20932 + ($0<<6)|0);
  16458. dest=$$byval_copy; src=$2; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16459. dest=$$byval_copy3; src=$10; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16460. _MatrixMultiply($4,$$byval_copy,$$byval_copy3);
  16461. $11 = (20804 + ($0<<6)|0);
  16462. dest=$3; src=$11; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16463. dest=$$byval_copy3; src=$4; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16464. _SetMatrixModelview($$byval_copy3);
  16465. dest=$$byval_copy3; src=$3; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16466. _SetMatrixProjection($$byval_copy3);
  16467. STACKTOP = sp;return;
  16468. }
  16469. function _SetMatrixModelview($0) {
  16470. $0 = $0|0;
  16471. var dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  16472. sp = STACKTOP;
  16473. dest=19092; src=$0; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16474. return;
  16475. }
  16476. function _SetMatrixProjection($0) {
  16477. $0 = $0|0;
  16478. var dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  16479. sp = STACKTOP;
  16480. dest=19028; src=$0; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16481. return;
  16482. }
  16483. function _Begin3dMode($0) {
  16484. $0 = $0|0;
  16485. var $$byval_copy = 0, $$byval_copy1 = 0, $$byval_copy3 = 0, $1 = 0, $10 = 0.0, $11 = 0.0, $12 = 0.0, $13 = 0.0, $14 = 0.0, $15 = 0.0, $16 = 0.0, $17 = 0.0, $18 = 0, $19 = 0, $2 = 0, $3 = 0.0, $4 = 0, $5 = 0.0, $6 = 0.0, $7 = 0;
  16486. var $8 = 0.0, $9 = 0.0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  16487. sp = STACKTOP;
  16488. STACKTOP = STACKTOP + 160|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(160|0);
  16489. $$byval_copy3 = sp + 88|0;
  16490. $$byval_copy1 = sp + 76|0;
  16491. $$byval_copy = sp + 64|0;
  16492. $1 = sp;
  16493. _rlglDraw();
  16494. _rlMatrixMode(5889);
  16495. _rlPushMatrix();
  16496. _rlLoadIdentity();
  16497. $2 = HEAP32[4711]|0;
  16498. $3 = (+($2|0));
  16499. $4 = HEAP32[4710]|0;
  16500. $5 = (+($4|0));
  16501. $6 = $3 / $5;
  16502. $7 = ((($0)) + 36|0);
  16503. $8 = +HEAPF32[$7>>2];
  16504. $9 = $8 * 3.1415927410125732;
  16505. $10 = $9;
  16506. $11 = $10 / 360.0;
  16507. $12 = (+Math_tan((+$11)));
  16508. $13 = $12 * 0.01;
  16509. $14 = $6;
  16510. $15 = $13 * $14;
  16511. $16 = -$15;
  16512. $17 = -$13;
  16513. _rlFrustum($16,$15,$17,$13,0.01,1000.0);
  16514. _rlMatrixMode(5888);
  16515. _rlLoadIdentity();
  16516. $18 = ((($0)) + 12|0);
  16517. $19 = ((($0)) + 24|0);
  16518. ;HEAP32[$$byval_copy>>2]=HEAP32[$0>>2]|0;HEAP32[$$byval_copy+4>>2]=HEAP32[$0+4>>2]|0;HEAP32[$$byval_copy+8>>2]=HEAP32[$0+8>>2]|0;
  16519. ;HEAP32[$$byval_copy1>>2]=HEAP32[$18>>2]|0;HEAP32[$$byval_copy1+4>>2]=HEAP32[$18+4>>2]|0;HEAP32[$$byval_copy1+8>>2]=HEAP32[$18+8>>2]|0;
  16520. ;HEAP32[$$byval_copy3>>2]=HEAP32[$19>>2]|0;HEAP32[$$byval_copy3+4>>2]=HEAP32[$19+4>>2]|0;HEAP32[$$byval_copy3+8>>2]=HEAP32[$19+8>>2]|0;
  16521. _MatrixLookAt($1,$$byval_copy,$$byval_copy1,$$byval_copy3);
  16522. dest=$$byval_copy3; src=$1; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16523. (_MatrixToFloat($$byval_copy3)|0);
  16524. _rlMultMatrixf(20504);
  16525. _rlEnableDepthTest();
  16526. STACKTOP = sp;return;
  16527. }
  16528. function _rlPushMatrix() {
  16529. var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $vararg_buffer = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  16530. sp = STACKTOP;
  16531. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  16532. $vararg_buffer = sp;
  16533. $0 = HEAP32[5265]|0;
  16534. $1 = ($0|0)==(15);
  16535. if ($1) {
  16536. HEAP32[$vararg_buffer>>2] = 16;
  16537. _TraceLog(1,9373,$vararg_buffer);
  16538. }
  16539. $2 = HEAP32[5265]|0;
  16540. $3 = (19320 + ($2<<6)|0);
  16541. $4 = HEAP32[4756]|0;
  16542. dest=$3; src=$4; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16543. _rlLoadIdentity();
  16544. $5 = HEAP32[5265]|0;
  16545. $6 = (($5) + 1)|0;
  16546. HEAP32[5265] = $6;
  16547. $7 = HEAP32[4789]|0;
  16548. $8 = ($7|0)==(5888);
  16549. if (!($8)) {
  16550. STACKTOP = sp;return;
  16551. }
  16552. HEAP32[5266] = 1;
  16553. STACKTOP = sp;return;
  16554. }
  16555. function _rlFrustum($0,$1,$2,$3,$4,$5) {
  16556. $0 = +$0;
  16557. $1 = +$1;
  16558. $2 = +$2;
  16559. $3 = +$3;
  16560. $4 = +$4;
  16561. $5 = +$5;
  16562. var $$byval_copy = 0, $$byval_copy1 = 0, $6 = 0, $7 = 0, $8 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  16563. sp = STACKTOP;
  16564. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  16565. $$byval_copy1 = sp + 192|0;
  16566. $$byval_copy = sp + 128|0;
  16567. $6 = sp + 64|0;
  16568. $7 = sp;
  16569. _MatrixFrustum($6,$0,$1,$2,$3,$4,$5);
  16570. _MatrixTranspose($6);
  16571. $8 = HEAP32[4756]|0;
  16572. dest=$$byval_copy; src=$8; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16573. dest=$$byval_copy1; src=$6; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16574. _MatrixMultiply($7,$$byval_copy,$$byval_copy1);
  16575. dest=$8; src=$7; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16576. STACKTOP = sp;return;
  16577. }
  16578. function _rlEnableDepthTest() {
  16579. var label = 0, sp = 0;
  16580. sp = STACKTOP;
  16581. _glEnable(2929);
  16582. return;
  16583. }
  16584. function _End3dMode() {
  16585. var label = 0, sp = 0;
  16586. sp = STACKTOP;
  16587. _rlglDraw();
  16588. _rlMatrixMode(5889);
  16589. _rlPopMatrix();
  16590. _rlMatrixMode(5888);
  16591. _rlLoadIdentity();
  16592. _rlDisableDepthTest();
  16593. return;
  16594. }
  16595. function _rlPopMatrix() {
  16596. var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  16597. sp = STACKTOP;
  16598. $0 = HEAP32[5265]|0;
  16599. $1 = ($0|0)>(0);
  16600. if (!($1)) {
  16601. return;
  16602. }
  16603. $2 = HEAP32[5265]|0;
  16604. $3 = (($2) + -1)|0;
  16605. $4 = (19320 + ($3<<6)|0);
  16606. $5 = HEAP32[4756]|0;
  16607. _memmove(($5|0),($4|0),64)|0;
  16608. $6 = (($2) + -1)|0;
  16609. HEAP32[5265] = $6;
  16610. return;
  16611. }
  16612. function _rlDisableDepthTest() {
  16613. var label = 0, sp = 0;
  16614. sp = STACKTOP;
  16615. _glDisable(2929);
  16616. return;
  16617. }
  16618. function _GetFPS() {
  16619. var $0 = 0.0, $1 = 0.0, $2 = 0, label = 0, sp = 0;
  16620. sp = STACKTOP;
  16621. $0 = (+_GetFrameTime());
  16622. $1 = 1.0 / $0;
  16623. $2 = (~~(($1)));
  16624. return ($2|0);
  16625. }
  16626. function _GetFrameTime() {
  16627. var $0 = 0.0, $1 = 0.0, label = 0, sp = 0;
  16628. sp = STACKTOP;
  16629. $0 = +HEAPF64[2295];
  16630. $1 = $0;
  16631. return (+$1);
  16632. }
  16633. function _IsFileExtension($0,$1) {
  16634. $0 = $0|0;
  16635. $1 = $1|0;
  16636. var $$ = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  16637. sp = STACKTOP;
  16638. $2 = (_strrchr($0,46)|0);
  16639. $3 = ($2|0)==(0|0);
  16640. if ($3) {
  16641. return 0;
  16642. } else {
  16643. $4 = (_strcmp($2,$1)|0);
  16644. $5 = ($4|0)==(0);
  16645. $$ = $5&1;
  16646. return ($$|0);
  16647. }
  16648. return (0)|0;
  16649. }
  16650. function _GetMouseRay($0,$1,$2) {
  16651. $0 = $0|0;
  16652. $1 = $1|0;
  16653. $2 = $2|0;
  16654. var $$byval_copy = 0, $$byval_copy10 = 0, $$byval_copy9 = 0, $10 = 0, $11 = 0.0, $12 = 0.0, $13 = 0, $14 = 0.0, $15 = 0.0, $16 = 0.0, $17 = 0, $18 = 0.0, $19 = 0.0, $20 = 0, $21 = 0.0, $22 = 0.0, $23 = 0.0, $24 = 0.0, $25 = 0.0, $26 = 0;
  16655. var $27 = 0.0, $28 = 0.0, $29 = 0, $3 = 0, $30 = 0.0, $31 = 0, $32 = 0.0, $33 = 0.0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0.0, $43 = 0.0, $44 = 0.0;
  16656. var $45 = 0, $46 = 0.0, $47 = 0.0, $48 = 0, $49 = 0.0, $5 = 0, $50 = 0.0, $51 = 0.0, $52 = 0.0, $53 = 0.0, $54 = 0.0, $55 = 0, $56 = 0.0, $57 = 0.0, $58 = 0, $59 = 0.0, $6 = 0, $60 = 0.0, $61 = 0.0, $62 = 0;
  16657. var $7 = 0, $8 = 0, $9 = 0, $vararg_ptr1 = 0, $vararg_ptr2 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  16658. sp = STACKTOP;
  16659. STACKTOP = STACKTOP + 416|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(416|0);
  16660. $$byval_copy10 = sp;
  16661. $$byval_copy9 = sp + 352|0;
  16662. $$byval_copy = sp + 288|0;
  16663. $3 = sp + 264|0;
  16664. $4 = sp + 200|0;
  16665. $5 = sp + 136|0;
  16666. $6 = sp + 120|0;
  16667. $7 = sp + 104|0;
  16668. $8 = sp + 88|0;
  16669. $9 = sp + 76|0;
  16670. $10 = sp + 64|0;
  16671. $11 = +HEAPF32[$1>>2];
  16672. $12 = $11 * 2.0;
  16673. $13 = (_GetScreenWidth()|0);
  16674. $14 = (+($13|0));
  16675. $15 = $12 / $14;
  16676. $16 = $15 + -1.0;
  16677. $17 = ((($1)) + 4|0);
  16678. $18 = +HEAPF32[$17>>2];
  16679. $19 = $18 * 2.0;
  16680. $20 = (_GetScreenHeight()|0);
  16681. $21 = (+($20|0));
  16682. $22 = $19 / $21;
  16683. $23 = 1.0 - $22;
  16684. $24 = $16;
  16685. $25 = $23;
  16686. HEAPF64[$$byval_copy10>>3] = $24;
  16687. $vararg_ptr1 = ((($$byval_copy10)) + 8|0);
  16688. HEAPF64[$vararg_ptr1>>3] = $25;
  16689. $vararg_ptr2 = ((($$byval_copy10)) + 16|0);
  16690. HEAPF64[$vararg_ptr2>>3] = 1.0;
  16691. _TraceLog(3,9411,$$byval_copy10);
  16692. $26 = ((($2)) + 36|0);
  16693. $27 = +HEAPF32[$26>>2];
  16694. $28 = $27;
  16695. $29 = (_GetScreenWidth()|0);
  16696. $30 = (+($29|0));
  16697. $31 = (_GetScreenHeight()|0);
  16698. $32 = (+($31|0));
  16699. $33 = $30 / $32;
  16700. _MatrixPerspective($4,$28,$33,0.01,1000.0);
  16701. $34 = ((($2)) + 12|0);
  16702. $35 = ((($2)) + 24|0);
  16703. ;HEAP32[$$byval_copy>>2]=HEAP32[$2>>2]|0;HEAP32[$$byval_copy+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$$byval_copy+8>>2]=HEAP32[$2+8>>2]|0;
  16704. ;HEAP32[$$byval_copy9>>2]=HEAP32[$34>>2]|0;HEAP32[$$byval_copy9+4>>2]=HEAP32[$34+4>>2]|0;HEAP32[$$byval_copy9+8>>2]=HEAP32[$34+8>>2]|0;
  16705. ;HEAP32[$$byval_copy10>>2]=HEAP32[$35>>2]|0;HEAP32[$$byval_copy10+4>>2]=HEAP32[$35+4>>2]|0;HEAP32[$$byval_copy10+8>>2]=HEAP32[$35+8>>2]|0;
  16706. _MatrixLookAt($5,$$byval_copy,$$byval_copy9,$$byval_copy10);
  16707. _MatrixTranspose($5);
  16708. dest=$$byval_copy9; src=$4; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16709. dest=$$byval_copy10; src=$5; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16710. _MatrixMultiply($$byval_copy,$$byval_copy9,$$byval_copy10);
  16711. _MatrixInvert($$byval_copy);
  16712. HEAPF32[$6>>2] = $16;
  16713. $36 = ((($6)) + 4|0);
  16714. HEAPF32[$36>>2] = $23;
  16715. $37 = ((($6)) + 8|0);
  16716. HEAPF32[$37>>2] = 0.0;
  16717. $38 = ((($6)) + 12|0);
  16718. HEAPF32[$38>>2] = 1.0;
  16719. HEAPF32[$7>>2] = $16;
  16720. $39 = ((($7)) + 4|0);
  16721. HEAPF32[$39>>2] = $23;
  16722. $40 = ((($7)) + 8|0);
  16723. HEAPF32[$40>>2] = 1.0;
  16724. $41 = ((($7)) + 12|0);
  16725. HEAPF32[$41>>2] = 1.0;
  16726. dest=$$byval_copy10; src=$$byval_copy; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16727. _QuaternionTransform($6,$$byval_copy10);
  16728. dest=$$byval_copy10; src=$$byval_copy; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16729. _QuaternionTransform($7,$$byval_copy10);
  16730. $42 = +HEAPF32[$6>>2];
  16731. $43 = +HEAPF32[$38>>2];
  16732. $44 = $42 / $43;
  16733. HEAPF32[$8>>2] = $44;
  16734. $45 = ((($8)) + 4|0);
  16735. $46 = +HEAPF32[$36>>2];
  16736. $47 = $46 / $43;
  16737. HEAPF32[$45>>2] = $47;
  16738. $48 = ((($8)) + 8|0);
  16739. $49 = +HEAPF32[$37>>2];
  16740. $50 = +HEAPF32[$38>>2];
  16741. $51 = $49 / $50;
  16742. HEAPF32[$48>>2] = $51;
  16743. $52 = +HEAPF32[$7>>2];
  16744. $53 = +HEAPF32[$41>>2];
  16745. $54 = $52 / $53;
  16746. HEAPF32[$9>>2] = $54;
  16747. $55 = ((($9)) + 4|0);
  16748. $56 = +HEAPF32[$39>>2];
  16749. $57 = $56 / $53;
  16750. HEAPF32[$55>>2] = $57;
  16751. $58 = ((($9)) + 8|0);
  16752. $59 = +HEAPF32[$40>>2];
  16753. $60 = +HEAPF32[$41>>2];
  16754. $61 = $59 / $60;
  16755. HEAPF32[$58>>2] = $61;
  16756. ;HEAP32[$$byval_copy9>>2]=HEAP32[$9>>2]|0;HEAP32[$$byval_copy9+4>>2]=HEAP32[$9+4>>2]|0;HEAP32[$$byval_copy9+8>>2]=HEAP32[$9+8>>2]|0;
  16757. ;HEAP32[$$byval_copy10>>2]=HEAP32[$8>>2]|0;HEAP32[$$byval_copy10+4>>2]=HEAP32[$8+4>>2]|0;HEAP32[$$byval_copy10+8>>2]=HEAP32[$8+8>>2]|0;
  16758. _VectorSubtract($10,$$byval_copy9,$$byval_copy10);
  16759. _VectorNormalize($10);
  16760. ;HEAP32[$3>>2]=HEAP32[$2>>2]|0;HEAP32[$3+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$3+8>>2]=HEAP32[$2+8>>2]|0;
  16761. $62 = ((($3)) + 12|0);
  16762. ;HEAP32[$62>>2]=HEAP32[$10>>2]|0;HEAP32[$62+4>>2]=HEAP32[$10+4>>2]|0;HEAP32[$62+8>>2]=HEAP32[$10+8>>2]|0;
  16763. ;HEAP32[$0>>2]=HEAP32[$3>>2]|0;HEAP32[$0+4>>2]=HEAP32[$3+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[$3+8>>2]|0;HEAP32[$0+12>>2]=HEAP32[$3+12>>2]|0;HEAP32[$0+16>>2]=HEAP32[$3+16>>2]|0;HEAP32[$0+20>>2]=HEAP32[$3+20>>2]|0;
  16764. STACKTOP = sp;return;
  16765. }
  16766. function _rlTranslatef($0,$1,$2) {
  16767. $0 = +$0;
  16768. $1 = +$1;
  16769. $2 = +$2;
  16770. var $$byval_copy = 0, $$byval_copy1 = 0, $3 = 0, $4 = 0, $5 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  16771. sp = STACKTOP;
  16772. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  16773. $$byval_copy1 = sp + 192|0;
  16774. $$byval_copy = sp + 128|0;
  16775. $3 = sp + 64|0;
  16776. $4 = sp;
  16777. _MatrixTranslate($3,$0,$1,$2);
  16778. _MatrixTranspose($3);
  16779. $5 = HEAP32[4756]|0;
  16780. dest=$$byval_copy; src=$5; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16781. dest=$$byval_copy1; src=$3; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16782. _MatrixMultiply($4,$$byval_copy,$$byval_copy1);
  16783. dest=$5; src=$4; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16784. STACKTOP = sp;return;
  16785. }
  16786. function _rlRotatef($0,$1,$2,$3) {
  16787. $0 = +$0;
  16788. $1 = +$1;
  16789. $2 = +$2;
  16790. $3 = +$3;
  16791. var $$byval_copy1 = 0, $$byval_copy2 = 0, $10 = 0.0, $11 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  16792. sp = STACKTOP;
  16793. STACKTOP = STACKTOP + 336|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(336|0);
  16794. $$byval_copy2 = sp + 272|0;
  16795. $$byval_copy1 = sp + 208|0;
  16796. $4 = sp + 144|0;
  16797. $5 = sp + 64|0;
  16798. $6 = sp + 80|0;
  16799. $7 = sp;
  16800. _MatrixIdentity($4);
  16801. HEAPF32[$5>>2] = $1;
  16802. $8 = ((($5)) + 4|0);
  16803. HEAPF32[$8>>2] = $2;
  16804. $9 = ((($5)) + 8|0);
  16805. HEAPF32[$9>>2] = $3;
  16806. _VectorNormalize($5);
  16807. $10 = $0 * 0.01745329238474369;
  16808. ;HEAP32[$$byval_copy2>>2]=HEAP32[$5>>2]|0;HEAP32[$$byval_copy2+4>>2]=HEAP32[$5+4>>2]|0;HEAP32[$$byval_copy2+8>>2]=HEAP32[$5+8>>2]|0;
  16809. _MatrixRotate($6,$$byval_copy2,$10);
  16810. dest=$4; src=$6; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16811. _MatrixTranspose($4);
  16812. $11 = HEAP32[4756]|0;
  16813. dest=$$byval_copy1; src=$11; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16814. dest=$$byval_copy2; src=$4; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16815. _MatrixMultiply($7,$$byval_copy1,$$byval_copy2);
  16816. dest=$11; src=$7; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16817. STACKTOP = sp;return;
  16818. }
  16819. function _rlBegin($0) {
  16820. $0 = $0|0;
  16821. var label = 0, sp = 0;
  16822. sp = STACKTOP;
  16823. HEAP32[4829] = $0;
  16824. return;
  16825. }
  16826. function _rlEnd() {
  16827. var $$03956 = 0, $$04052 = 0, $$04154 = 0, $$04248 = 0, $$04347 = 0, $$byval_copy = 0, $$promoted = 0, $0 = 0, $1 = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0;
  16828. var $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0, $114 = 0, $115 = 0, $116 = 0, $117 = 0, $118 = 0, $119 = 0, $12 = 0, $120 = 0, $121 = 0, $122 = 0, $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 0;
  16829. var $128 = 0, $129 = 0, $13 = 0.0, $130 = 0, $131 = 0, $132 = 0, $133 = 0, $134 = 0, $135 = 0, $136 = 0, $137 = 0, $138 = 0, $139 = 0, $14 = 0, $140 = 0, $141 = 0, $142 = 0, $143 = 0, $144 = 0, $145 = 0;
  16830. var $146 = 0, $147 = 0, $148 = 0.0, $149 = 0.0, $15 = 0.0, $16 = 0, $17 = 0.0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0;
  16831. var $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0;
  16832. var $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0;
  16833. var $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0;
  16834. var $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0, $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $exitcond = 0, $exitcond60 = 0, $exitcond63 = 0;
  16835. var $scevgep = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  16836. sp = STACKTOP;
  16837. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  16838. $$byval_copy = sp;
  16839. $0 = HEAP32[5266]|0;
  16840. $1 = ($0|0)==(0);
  16841. if (!($1)) {
  16842. $2 = HEAP32[5267]|0;
  16843. $3 = ($2|0)>(0);
  16844. if ($3) {
  16845. $$03956 = 0;
  16846. while(1) {
  16847. $6 = HEAP32[4826]|0;
  16848. $7 = (($6) + (($$03956*12)|0)|0);
  16849. $8 = HEAP32[4756]|0;
  16850. dest=$$byval_copy; src=$8; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  16851. _VectorTransform($7,$$byval_copy);
  16852. $9 = (($$03956) + 1)|0;
  16853. $5 = HEAP32[5267]|0;
  16854. $10 = ($9|0)<($5|0);
  16855. if ($10) {
  16856. $$03956 = $9;
  16857. } else {
  16858. break;
  16859. }
  16860. }
  16861. HEAP32[5266] = 0;
  16862. $4 = ($5|0)>(0);
  16863. if ($4) {
  16864. $$04154 = 0;
  16865. while(1) {
  16866. $11 = HEAP32[4826]|0;
  16867. $12 = (($11) + (($$04154*12)|0)|0);
  16868. $13 = +HEAPF32[$12>>2];
  16869. $14 = (((($11) + (($$04154*12)|0)|0)) + 4|0);
  16870. $15 = +HEAPF32[$14>>2];
  16871. $16 = (((($11) + (($$04154*12)|0)|0)) + 8|0);
  16872. $17 = +HEAPF32[$16>>2];
  16873. _rlVertex3f($13,$15,$17);
  16874. $18 = (($$04154) + 1)|0;
  16875. $19 = HEAP32[5267]|0;
  16876. $20 = ($18|0)<($19|0);
  16877. if ($20) {
  16878. $$04154 = $18;
  16879. } else {
  16880. break;
  16881. }
  16882. }
  16883. }
  16884. } else {
  16885. HEAP32[5266] = 0;
  16886. }
  16887. HEAP32[5267] = 0;
  16888. }
  16889. $21 = HEAP32[4829]|0;
  16890. switch ($21|0) {
  16891. case 1: {
  16892. $22 = HEAP32[5088]|0;
  16893. $23 = HEAP32[(20360)>>2]|0;
  16894. $24 = ($22|0)==($23|0);
  16895. if ($24) {
  16896. $148 = +HEAPF32[761];
  16897. $149 = $148 + 4.9999998736893758E-5;
  16898. HEAPF32[761] = $149;
  16899. STACKTOP = sp;return;
  16900. }
  16901. $25 = (($22) - ($23))|0;
  16902. $26 = ($25|0)>(0);
  16903. if ($26) {
  16904. $$04347 = 0;
  16905. } else {
  16906. $148 = +HEAPF32[761];
  16907. $149 = $148 + 4.9999998736893758E-5;
  16908. HEAPF32[761] = $149;
  16909. STACKTOP = sp;return;
  16910. }
  16911. while(1) {
  16912. $27 = HEAP32[(20372)>>2]|0;
  16913. $28 = HEAP32[(20360)>>2]|0;
  16914. $29 = $28 << 2;
  16915. $30 = (($29) + -4)|0;
  16916. $31 = (($27) + ($30)|0);
  16917. $32 = HEAP8[$31>>0]|0;
  16918. $33 = (($27) + ($29)|0);
  16919. HEAP8[$33>>0] = $32;
  16920. $34 = HEAP32[(20372)>>2]|0;
  16921. $35 = HEAP32[(20360)>>2]|0;
  16922. $36 = $35 << 2;
  16923. $37 = (($36) + -3)|0;
  16924. $38 = (($34) + ($37)|0);
  16925. $39 = HEAP8[$38>>0]|0;
  16926. $40 = $36 | 1;
  16927. $41 = (($34) + ($40)|0);
  16928. HEAP8[$41>>0] = $39;
  16929. $42 = HEAP32[(20372)>>2]|0;
  16930. $43 = HEAP32[(20360)>>2]|0;
  16931. $44 = $43 << 2;
  16932. $45 = (($44) + -2)|0;
  16933. $46 = (($42) + ($45)|0);
  16934. $47 = HEAP8[$46>>0]|0;
  16935. $48 = $44 | 2;
  16936. $49 = (($42) + ($48)|0);
  16937. HEAP8[$49>>0] = $47;
  16938. $50 = HEAP32[(20372)>>2]|0;
  16939. $51 = HEAP32[(20360)>>2]|0;
  16940. $52 = $51 << 2;
  16941. $53 = (($52) + -1)|0;
  16942. $54 = (($50) + ($53)|0);
  16943. $55 = HEAP8[$54>>0]|0;
  16944. $56 = $52 | 3;
  16945. $57 = (($50) + ($56)|0);
  16946. HEAP8[$57>>0] = $55;
  16947. $58 = HEAP32[(20360)>>2]|0;
  16948. $59 = (($58) + 1)|0;
  16949. HEAP32[(20360)>>2] = $59;
  16950. $60 = (($$04347) + 1)|0;
  16951. $exitcond = ($60|0)==($25|0);
  16952. if ($exitcond) {
  16953. break;
  16954. } else {
  16955. $$04347 = $60;
  16956. }
  16957. }
  16958. $148 = +HEAPF32[761];
  16959. $149 = $148 + 4.9999998736893758E-5;
  16960. HEAPF32[761] = $149;
  16961. STACKTOP = sp;return;
  16962. break;
  16963. }
  16964. case 4: {
  16965. $61 = HEAP32[5100]|0;
  16966. $62 = HEAP32[(20408)>>2]|0;
  16967. $63 = ($61|0)==($62|0);
  16968. if ($63) {
  16969. $148 = +HEAPF32[761];
  16970. $149 = $148 + 4.9999998736893758E-5;
  16971. HEAPF32[761] = $149;
  16972. STACKTOP = sp;return;
  16973. }
  16974. $64 = (($61) - ($62))|0;
  16975. $65 = ($64|0)>(0);
  16976. if ($65) {
  16977. $$04248 = 0;
  16978. } else {
  16979. $148 = +HEAPF32[761];
  16980. $149 = $148 + 4.9999998736893758E-5;
  16981. HEAPF32[761] = $149;
  16982. STACKTOP = sp;return;
  16983. }
  16984. while(1) {
  16985. $66 = HEAP32[(20420)>>2]|0;
  16986. $67 = HEAP32[(20408)>>2]|0;
  16987. $68 = $67 << 2;
  16988. $69 = (($68) + -4)|0;
  16989. $70 = (($66) + ($69)|0);
  16990. $71 = HEAP8[$70>>0]|0;
  16991. $72 = (($66) + ($68)|0);
  16992. HEAP8[$72>>0] = $71;
  16993. $73 = HEAP32[(20420)>>2]|0;
  16994. $74 = HEAP32[(20408)>>2]|0;
  16995. $75 = $74 << 2;
  16996. $76 = (($75) + -3)|0;
  16997. $77 = (($73) + ($76)|0);
  16998. $78 = HEAP8[$77>>0]|0;
  16999. $79 = $75 | 1;
  17000. $80 = (($73) + ($79)|0);
  17001. HEAP8[$80>>0] = $78;
  17002. $81 = HEAP32[(20420)>>2]|0;
  17003. $82 = HEAP32[(20408)>>2]|0;
  17004. $83 = $82 << 2;
  17005. $84 = (($83) + -2)|0;
  17006. $85 = (($81) + ($84)|0);
  17007. $86 = HEAP8[$85>>0]|0;
  17008. $87 = $83 | 2;
  17009. $88 = (($81) + ($87)|0);
  17010. HEAP8[$88>>0] = $86;
  17011. $89 = HEAP32[(20420)>>2]|0;
  17012. $90 = HEAP32[(20408)>>2]|0;
  17013. $91 = $90 << 2;
  17014. $92 = (($91) + -1)|0;
  17015. $93 = (($89) + ($92)|0);
  17016. $94 = HEAP8[$93>>0]|0;
  17017. $95 = $91 | 3;
  17018. $96 = (($89) + ($95)|0);
  17019. HEAP8[$96>>0] = $94;
  17020. $97 = HEAP32[(20408)>>2]|0;
  17021. $98 = (($97) + 1)|0;
  17022. HEAP32[(20408)>>2] = $98;
  17023. $99 = (($$04248) + 1)|0;
  17024. $exitcond60 = ($99|0)==($64|0);
  17025. if ($exitcond60) {
  17026. break;
  17027. } else {
  17028. $$04248 = $99;
  17029. }
  17030. }
  17031. $148 = +HEAPF32[761];
  17032. $149 = $148 + 4.9999998736893758E-5;
  17033. HEAPF32[761] = $149;
  17034. STACKTOP = sp;return;
  17035. break;
  17036. }
  17037. case 7: {
  17038. $100 = HEAP32[5112]|0;
  17039. $101 = HEAP32[(20456)>>2]|0;
  17040. $102 = ($100|0)==($101|0);
  17041. if (!($102)) {
  17042. $103 = (($100) - ($101))|0;
  17043. $104 = ($103|0)>(0);
  17044. if ($104) {
  17045. $$04052 = 0;
  17046. while(1) {
  17047. $105 = HEAP32[(20468)>>2]|0;
  17048. $106 = HEAP32[(20456)>>2]|0;
  17049. $107 = $106 << 2;
  17050. $108 = (($107) + -4)|0;
  17051. $109 = (($105) + ($108)|0);
  17052. $110 = HEAP8[$109>>0]|0;
  17053. $111 = (($105) + ($107)|0);
  17054. HEAP8[$111>>0] = $110;
  17055. $112 = HEAP32[(20468)>>2]|0;
  17056. $113 = HEAP32[(20456)>>2]|0;
  17057. $114 = $113 << 2;
  17058. $115 = (($114) + -3)|0;
  17059. $116 = (($112) + ($115)|0);
  17060. $117 = HEAP8[$116>>0]|0;
  17061. $118 = $114 | 1;
  17062. $119 = (($112) + ($118)|0);
  17063. HEAP8[$119>>0] = $117;
  17064. $120 = HEAP32[(20468)>>2]|0;
  17065. $121 = HEAP32[(20456)>>2]|0;
  17066. $122 = $121 << 2;
  17067. $123 = (($122) + -2)|0;
  17068. $124 = (($120) + ($123)|0);
  17069. $125 = HEAP8[$124>>0]|0;
  17070. $126 = $122 | 2;
  17071. $127 = (($120) + ($126)|0);
  17072. HEAP8[$127>>0] = $125;
  17073. $128 = HEAP32[(20468)>>2]|0;
  17074. $129 = HEAP32[(20456)>>2]|0;
  17075. $130 = $129 << 2;
  17076. $131 = (($130) + -1)|0;
  17077. $132 = (($128) + ($131)|0);
  17078. $133 = HEAP8[$132>>0]|0;
  17079. $134 = $130 | 3;
  17080. $135 = (($128) + ($134)|0);
  17081. HEAP8[$135>>0] = $133;
  17082. $136 = HEAP32[(20456)>>2]|0;
  17083. $137 = (($136) + 1)|0;
  17084. HEAP32[(20456)>>2] = $137;
  17085. $138 = (($$04052) + 1)|0;
  17086. $exitcond63 = ($138|0)==($103|0);
  17087. if ($exitcond63) {
  17088. break;
  17089. } else {
  17090. $$04052 = $138;
  17091. }
  17092. }
  17093. }
  17094. }
  17095. $139 = HEAP32[5112]|0;
  17096. $140 = HEAP32[(20452)>>2]|0;
  17097. $141 = ($139|0)>($140|0);
  17098. if (!($141)) {
  17099. $148 = +HEAPF32[761];
  17100. $149 = $148 + 4.9999998736893758E-5;
  17101. HEAPF32[761] = $149;
  17102. STACKTOP = sp;return;
  17103. }
  17104. $142 = HEAP32[(20464)>>2]|0;
  17105. $$promoted = HEAP32[(20452)>>2]|0;
  17106. $143 = $$promoted << 1;
  17107. $scevgep = (($142) + ($143<<2)|0);
  17108. $144 = (($139) - ($140))|0;
  17109. $145 = $144 << 3;
  17110. _memset(($scevgep|0),0,($145|0))|0;
  17111. $146 = (($139) + ($$promoted))|0;
  17112. $147 = (($146) - ($140))|0;
  17113. HEAP32[(20452)>>2] = $147;
  17114. $148 = +HEAPF32[761];
  17115. $149 = $148 + 4.9999998736893758E-5;
  17116. HEAPF32[761] = $149;
  17117. STACKTOP = sp;return;
  17118. break;
  17119. }
  17120. default: {
  17121. $148 = +HEAPF32[761];
  17122. $149 = $148 + 4.9999998736893758E-5;
  17123. HEAPF32[761] = $149;
  17124. STACKTOP = sp;return;
  17125. }
  17126. }
  17127. }
  17128. function _rlVertex3f($0,$1,$2) {
  17129. $0 = +$0;
  17130. $1 = +$1;
  17131. $2 = +$2;
  17132. var $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0;
  17133. var $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0;
  17134. var $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, $vararg_buffer3 = 0, label = 0, sp = 0;
  17135. sp = STACKTOP;
  17136. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  17137. $vararg_buffer3 = sp + 16|0;
  17138. $vararg_buffer1 = sp + 8|0;
  17139. $vararg_buffer = sp;
  17140. $3 = HEAP32[5266]|0;
  17141. $4 = ($3|0)==(0);
  17142. if (!($4)) {
  17143. $5 = HEAP32[4826]|0;
  17144. $6 = HEAP32[5267]|0;
  17145. $7 = (($5) + (($6*12)|0)|0);
  17146. HEAPF32[$7>>2] = $0;
  17147. $8 = (((($5) + (($6*12)|0)|0)) + 4|0);
  17148. HEAPF32[$8>>2] = $1;
  17149. $9 = (((($5) + (($6*12)|0)|0)) + 8|0);
  17150. HEAPF32[$9>>2] = $2;
  17151. $10 = (($6) + 1)|0;
  17152. HEAP32[5267] = $10;
  17153. STACKTOP = sp;return;
  17154. }
  17155. $11 = HEAP32[4829]|0;
  17156. switch ($11|0) {
  17157. case 1: {
  17158. $12 = HEAP32[5088]|0;
  17159. $13 = ($12|0)<(2048);
  17160. if ($13) {
  17161. $14 = HEAP32[(20364)>>2]|0;
  17162. $15 = ($12*3)|0;
  17163. $16 = (($14) + ($15<<2)|0);
  17164. HEAPF32[$16>>2] = $0;
  17165. $17 = (($15) + 1)|0;
  17166. $18 = (($14) + ($17<<2)|0);
  17167. HEAPF32[$18>>2] = $1;
  17168. $19 = (($15) + 2)|0;
  17169. $20 = (($14) + ($19<<2)|0);
  17170. HEAPF32[$20>>2] = $2;
  17171. $21 = (($12) + 1)|0;
  17172. HEAP32[5088] = $21;
  17173. STACKTOP = sp;return;
  17174. } else {
  17175. _TraceLog(1,9444,$vararg_buffer);
  17176. STACKTOP = sp;return;
  17177. }
  17178. break;
  17179. }
  17180. case 4: {
  17181. $22 = HEAP32[5100]|0;
  17182. $23 = ($22|0)<(6144);
  17183. if ($23) {
  17184. $24 = HEAP32[(20412)>>2]|0;
  17185. $25 = ($22*3)|0;
  17186. $26 = (($24) + ($25<<2)|0);
  17187. HEAPF32[$26>>2] = $0;
  17188. $27 = (($25) + 1)|0;
  17189. $28 = (($24) + ($27<<2)|0);
  17190. HEAPF32[$28>>2] = $1;
  17191. $29 = (($25) + 2)|0;
  17192. $30 = (($24) + ($29<<2)|0);
  17193. HEAPF32[$30>>2] = $2;
  17194. $31 = (($22) + 1)|0;
  17195. HEAP32[5100] = $31;
  17196. STACKTOP = sp;return;
  17197. } else {
  17198. _TraceLog(1,9469,$vararg_buffer1);
  17199. STACKTOP = sp;return;
  17200. }
  17201. break;
  17202. }
  17203. case 7: {
  17204. $32 = HEAP32[5112]|0;
  17205. $33 = ($32|0)<(4096);
  17206. if ($33) {
  17207. $34 = HEAP32[(20460)>>2]|0;
  17208. $35 = ($32*3)|0;
  17209. $36 = (($34) + ($35<<2)|0);
  17210. HEAPF32[$36>>2] = $0;
  17211. $37 = (($35) + 1)|0;
  17212. $38 = (($34) + ($37<<2)|0);
  17213. HEAPF32[$38>>2] = $1;
  17214. $39 = (($35) + 2)|0;
  17215. $40 = (($34) + ($39<<2)|0);
  17216. HEAPF32[$40>>2] = $2;
  17217. $41 = (($32) + 1)|0;
  17218. HEAP32[5112] = $41;
  17219. $42 = HEAP32[4827]|0;
  17220. $43 = HEAP32[4828]|0;
  17221. $44 = (($43) + -1)|0;
  17222. $45 = (($42) + (($44*144)|0)|0);
  17223. $46 = HEAP32[$45>>2]|0;
  17224. $47 = (($46) + 1)|0;
  17225. HEAP32[$45>>2] = $47;
  17226. STACKTOP = sp;return;
  17227. } else {
  17228. _TraceLog(1,9498,$vararg_buffer3);
  17229. STACKTOP = sp;return;
  17230. }
  17231. break;
  17232. }
  17233. default: {
  17234. STACKTOP = sp;return;
  17235. }
  17236. }
  17237. }
  17238. function _rlVertex2f($0,$1) {
  17239. $0 = +$0;
  17240. $1 = +$1;
  17241. var $2 = 0.0, label = 0, sp = 0;
  17242. sp = STACKTOP;
  17243. $2 = +HEAPF32[761];
  17244. _rlVertex3f($0,$1,$2);
  17245. return;
  17246. }
  17247. function _rlTexCoord2f($0,$1) {
  17248. $0 = +$0;
  17249. $1 = +$1;
  17250. var $10 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  17251. sp = STACKTOP;
  17252. $2 = HEAP32[4829]|0;
  17253. $3 = ($2|0)==(7);
  17254. if (!($3)) {
  17255. return;
  17256. }
  17257. $4 = HEAP32[(20464)>>2]|0;
  17258. $5 = HEAP32[(20452)>>2]|0;
  17259. $6 = $5 << 1;
  17260. $7 = (($4) + ($6<<2)|0);
  17261. HEAPF32[$7>>2] = $0;
  17262. $8 = $6 | 1;
  17263. $9 = (($4) + ($8<<2)|0);
  17264. HEAPF32[$9>>2] = $1;
  17265. $10 = (($5) + 1)|0;
  17266. HEAP32[(20452)>>2] = $10;
  17267. return;
  17268. }
  17269. function _rlNormal3f($0,$1,$2) {
  17270. $0 = +$0;
  17271. $1 = +$1;
  17272. $2 = +$2;
  17273. var label = 0, sp = 0;
  17274. sp = STACKTOP;
  17275. return;
  17276. }
  17277. function _rlColor4ub($0,$1,$2,$3) {
  17278. $0 = $0|0;
  17279. $1 = $1|0;
  17280. $2 = $2|0;
  17281. $3 = $3|0;
  17282. var $$sink37 = 0, $$sink38 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $4 = 0, $5 = 0;
  17283. var $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  17284. sp = STACKTOP;
  17285. $4 = HEAP32[4829]|0;
  17286. switch ($4|0) {
  17287. case 1: {
  17288. $$sink37 = (20360);$$sink38 = (20372);
  17289. break;
  17290. }
  17291. case 4: {
  17292. $$sink37 = (20408);$$sink38 = (20420);
  17293. break;
  17294. }
  17295. case 7: {
  17296. $$sink37 = (20456);$$sink38 = (20468);
  17297. break;
  17298. }
  17299. default: {
  17300. return;
  17301. }
  17302. }
  17303. $5 = HEAP32[$$sink38>>2]|0;
  17304. $6 = HEAP32[$$sink37>>2]|0;
  17305. $7 = $6 << 2;
  17306. $8 = (($5) + ($7)|0);
  17307. HEAP8[$8>>0] = $0;
  17308. $9 = HEAP32[$$sink38>>2]|0;
  17309. $10 = HEAP32[$$sink37>>2]|0;
  17310. $11 = $10 << 2;
  17311. $12 = $11 | 1;
  17312. $13 = (($9) + ($12)|0);
  17313. HEAP8[$13>>0] = $1;
  17314. $14 = HEAP32[$$sink38>>2]|0;
  17315. $15 = HEAP32[$$sink37>>2]|0;
  17316. $16 = $15 << 2;
  17317. $17 = $16 | 2;
  17318. $18 = (($14) + ($17)|0);
  17319. HEAP8[$18>>0] = $2;
  17320. $19 = HEAP32[$$sink38>>2]|0;
  17321. $20 = HEAP32[$$sink37>>2]|0;
  17322. $21 = $20 << 2;
  17323. $22 = $21 | 3;
  17324. $23 = (($19) + ($22)|0);
  17325. HEAP8[$23>>0] = $3;
  17326. $24 = HEAP32[$$sink37>>2]|0;
  17327. $25 = (($24) + 1)|0;
  17328. HEAP32[$$sink37>>2] = $25;
  17329. return;
  17330. }
  17331. function _rlColor3f($0,$1,$2) {
  17332. $0 = +$0;
  17333. $1 = +$1;
  17334. $2 = +$2;
  17335. var $3 = 0.0, $4 = 0, $5 = 0.0, $6 = 0, $7 = 0.0, $8 = 0, label = 0, sp = 0;
  17336. sp = STACKTOP;
  17337. $3 = $0 * 255.0;
  17338. $4 = (~~(($3))&255);
  17339. $5 = $1 * 255.0;
  17340. $6 = (~~(($5))&255);
  17341. $7 = $2 * 255.0;
  17342. $8 = (~~(($7))&255);
  17343. _rlColor4ub($4,$6,$8,-1);
  17344. return;
  17345. }
  17346. function _rlEnableTexture($0) {
  17347. $0 = $0|0;
  17348. var $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  17349. sp = STACKTOP;
  17350. $1 = HEAP32[4827]|0;
  17351. $2 = HEAP32[4828]|0;
  17352. $3 = (($2) + -1)|0;
  17353. $4 = (((($1) + (($3*144)|0)|0)) + 8|0);
  17354. $5 = HEAP32[$4>>2]|0;
  17355. $6 = ($5|0)==($0|0);
  17356. if ($6) {
  17357. return;
  17358. }
  17359. $7 = (($1) + (($3*144)|0)|0);
  17360. $8 = HEAP32[$7>>2]|0;
  17361. $9 = ($8|0)>(0);
  17362. if ($9) {
  17363. $10 = (($2) + 1)|0;
  17364. HEAP32[4828] = $10;
  17365. }
  17366. $11 = HEAP32[4828]|0;
  17367. $12 = (($11) + -1)|0;
  17368. $13 = (((($1) + (($12*144)|0)|0)) + 8|0);
  17369. HEAP32[$13>>2] = $0;
  17370. $14 = (($1) + (($12*144)|0)|0);
  17371. HEAP32[$14>>2] = 0;
  17372. return;
  17373. }
  17374. function _rlDisableTexture() {
  17375. var $0 = 0, $1 = 0, label = 0, sp = 0;
  17376. sp = STACKTOP;
  17377. $0 = HEAP32[5112]|0;
  17378. $1 = ($0|0)>(4095);
  17379. if (!($1)) {
  17380. return;
  17381. }
  17382. _rlglDraw();
  17383. return;
  17384. }
  17385. function _rlDeleteVertexArrays($0) {
  17386. $0 = $0|0;
  17387. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  17388. sp = STACKTOP;
  17389. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  17390. $vararg_buffer = sp;
  17391. $1 = sp + 4|0;
  17392. HEAP32[$1>>2] = $0;
  17393. $2 = HEAP32[4790]|0;
  17394. $3 = ($2|0)==(0);
  17395. if ($3) {
  17396. STACKTOP = sp;return;
  17397. }
  17398. $4 = ($0|0)==(0);
  17399. if (!($4)) {
  17400. $5 = HEAP32[4793]|0;
  17401. FUNCTION_TABLE_vii[$5 & 63](1,$1);
  17402. }
  17403. $6 = HEAP32[$1>>2]|0;
  17404. HEAP32[$vararg_buffer>>2] = $6;
  17405. _TraceLog(0,9523,$vararg_buffer);
  17406. STACKTOP = sp;return;
  17407. }
  17408. function _rlDeleteBuffers($0) {
  17409. $0 = $0|0;
  17410. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  17411. sp = STACKTOP;
  17412. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  17413. $vararg_buffer = sp;
  17414. $1 = sp + 4|0;
  17415. HEAP32[$1>>2] = $0;
  17416. $2 = ($0|0)==(0);
  17417. if ($2) {
  17418. STACKTOP = sp;return;
  17419. }
  17420. _glDeleteBuffers(1,($1|0));
  17421. $3 = HEAP32[4790]|0;
  17422. $4 = ($3|0)==(0);
  17423. if (!($4)) {
  17424. STACKTOP = sp;return;
  17425. }
  17426. $5 = HEAP32[$1>>2]|0;
  17427. HEAP32[$vararg_buffer>>2] = $5;
  17428. _TraceLog(0,9571,$vararg_buffer);
  17429. STACKTOP = sp;return;
  17430. }
  17431. function _rlglLoadMesh($0,$1) {
  17432. $0 = $0|0;
  17433. $1 = $1|0;
  17434. var $$ = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0;
  17435. var $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0;
  17436. var $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0;
  17437. var $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0, $81 = 0;
  17438. var $82 = 0, $83 = 0, $84 = 0, $85 = 0, $9 = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, $vararg_buffer3 = 0, label = 0, sp = 0;
  17439. sp = STACKTOP;
  17440. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  17441. $vararg_buffer3 = sp + 16|0;
  17442. $vararg_buffer1 = sp + 8|0;
  17443. $vararg_buffer = sp;
  17444. $2 = sp + 48|0;
  17445. $3 = sp + 20|0;
  17446. $4 = ((($0)) + 36|0);
  17447. $5 = ((($0)) + 40|0);
  17448. $6 = ((($0)) + 44|0);
  17449. $7 = ((($0)) + 48|0);
  17450. $8 = ((($0)) + 52|0);
  17451. $9 = ((($0)) + 56|0);
  17452. $10 = ((($0)) + 60|0);
  17453. $11 = ((($0)) + 64|0);
  17454. $12 = ($1|0)!=(0);
  17455. $$ = $12 ? 35048 : 35044;
  17456. ;HEAP32[$4>>2]=0|0;HEAP32[$4+4>>2]=0|0;HEAP32[$4+8>>2]=0|0;HEAP32[$4+12>>2]=0|0;HEAP32[$4+16>>2]=0|0;HEAP32[$4+20>>2]=0|0;HEAP32[$4+24>>2]=0|0;HEAP32[$4+28>>2]=0|0;
  17457. HEAP32[$2>>2] = 0;
  17458. ;HEAP32[$3>>2]=0|0;HEAP32[$3+4>>2]=0|0;HEAP32[$3+8>>2]=0|0;HEAP32[$3+12>>2]=0|0;HEAP32[$3+16>>2]=0|0;HEAP32[$3+20>>2]=0|0;HEAP32[$3+24>>2]=0|0;
  17459. $13 = HEAP32[4790]|0;
  17460. $14 = ($13|0)==(0);
  17461. if (!($14)) {
  17462. $15 = HEAP32[4791]|0;
  17463. FUNCTION_TABLE_vii[$15 & 63](1,$2);
  17464. $16 = HEAP32[4792]|0;
  17465. $17 = HEAP32[$2>>2]|0;
  17466. FUNCTION_TABLE_vi[$16 & 31]($17);
  17467. }
  17468. _glGenBuffers(1,($3|0));
  17469. $18 = HEAP32[$3>>2]|0;
  17470. _glBindBuffer(34962,($18|0));
  17471. $19 = HEAP32[$0>>2]|0;
  17472. $20 = ($19*12)|0;
  17473. $21 = ((($0)) + 8|0);
  17474. $22 = HEAP32[$21>>2]|0;
  17475. _glBufferData(34962,($20|0),($22|0),($$|0));
  17476. _glVertexAttribPointer(0,3,5126,0,0,(0|0));
  17477. _glEnableVertexAttribArray(0);
  17478. $23 = ((($3)) + 4|0);
  17479. _glGenBuffers(1,($23|0));
  17480. $24 = HEAP32[$23>>2]|0;
  17481. _glBindBuffer(34962,($24|0));
  17482. $25 = HEAP32[$0>>2]|0;
  17483. $26 = $25 << 3;
  17484. $27 = ((($0)) + 12|0);
  17485. $28 = HEAP32[$27>>2]|0;
  17486. _glBufferData(34962,($26|0),($28|0),($$|0));
  17487. _glVertexAttribPointer(1,2,5126,0,0,(0|0));
  17488. _glEnableVertexAttribArray(1);
  17489. $29 = ((($0)) + 20|0);
  17490. $30 = HEAP32[$29>>2]|0;
  17491. $31 = ($30|0)==(0|0);
  17492. if ($31) {
  17493. _glVertexAttrib3f(2,1.0,1.0,1.0);
  17494. _glDisableVertexAttribArray(2);
  17495. } else {
  17496. $32 = ((($3)) + 8|0);
  17497. _glGenBuffers(1,($32|0));
  17498. $33 = HEAP32[$32>>2]|0;
  17499. _glBindBuffer(34962,($33|0));
  17500. $34 = HEAP32[$0>>2]|0;
  17501. $35 = ($34*12)|0;
  17502. $36 = HEAP32[$29>>2]|0;
  17503. _glBufferData(34962,($35|0),($36|0),($$|0));
  17504. _glVertexAttribPointer(2,3,5126,0,0,(0|0));
  17505. _glEnableVertexAttribArray(2);
  17506. }
  17507. $37 = ((($0)) + 28|0);
  17508. $38 = HEAP32[$37>>2]|0;
  17509. $39 = ($38|0)==(0|0);
  17510. if ($39) {
  17511. _glVertexAttrib4f(3,1.0,1.0,1.0,1.0);
  17512. _glDisableVertexAttribArray(3);
  17513. } else {
  17514. $40 = ((($3)) + 12|0);
  17515. _glGenBuffers(1,($40|0));
  17516. $41 = HEAP32[$40>>2]|0;
  17517. _glBindBuffer(34962,($41|0));
  17518. $42 = HEAP32[$0>>2]|0;
  17519. $43 = $42 << 2;
  17520. $44 = HEAP32[$37>>2]|0;
  17521. _glBufferData(34962,($43|0),($44|0),($$|0));
  17522. _glVertexAttribPointer(3,4,5121,1,0,(0|0));
  17523. _glEnableVertexAttribArray(3);
  17524. }
  17525. $45 = ((($0)) + 24|0);
  17526. $46 = HEAP32[$45>>2]|0;
  17527. $47 = ($46|0)==(0|0);
  17528. if ($47) {
  17529. _glVertexAttrib3f(4,0.0,0.0,0.0);
  17530. _glDisableVertexAttribArray(4);
  17531. } else {
  17532. $48 = ((($3)) + 16|0);
  17533. _glGenBuffers(1,($48|0));
  17534. $49 = HEAP32[$48>>2]|0;
  17535. _glBindBuffer(34962,($49|0));
  17536. $50 = HEAP32[$0>>2]|0;
  17537. $51 = ($50*12)|0;
  17538. $52 = HEAP32[$45>>2]|0;
  17539. _glBufferData(34962,($51|0),($52|0),($$|0));
  17540. _glVertexAttribPointer(4,3,5126,0,0,(0|0));
  17541. _glEnableVertexAttribArray(4);
  17542. }
  17543. $53 = ((($0)) + 16|0);
  17544. $54 = HEAP32[$53>>2]|0;
  17545. $55 = ($54|0)==(0|0);
  17546. if ($55) {
  17547. _glVertexAttrib2f(5,0.0,0.0);
  17548. _glDisableVertexAttribArray(5);
  17549. } else {
  17550. $56 = ((($3)) + 20|0);
  17551. _glGenBuffers(1,($56|0));
  17552. $57 = HEAP32[$56>>2]|0;
  17553. _glBindBuffer(34962,($57|0));
  17554. $58 = HEAP32[$0>>2]|0;
  17555. $59 = $58 << 3;
  17556. $60 = HEAP32[$53>>2]|0;
  17557. _glBufferData(34962,($59|0),($60|0),($$|0));
  17558. _glVertexAttribPointer(5,2,5126,0,0,(0|0));
  17559. _glEnableVertexAttribArray(5);
  17560. }
  17561. $61 = ((($0)) + 32|0);
  17562. $62 = HEAP32[$61>>2]|0;
  17563. $63 = ($62|0)==(0|0);
  17564. if (!($63)) {
  17565. $64 = ((($3)) + 24|0);
  17566. _glGenBuffers(1,($64|0));
  17567. $65 = HEAP32[$64>>2]|0;
  17568. _glBindBuffer(34963,($65|0));
  17569. $66 = ((($0)) + 4|0);
  17570. $67 = HEAP32[$66>>2]|0;
  17571. $68 = ($67*6)|0;
  17572. $69 = HEAP32[$61>>2]|0;
  17573. _glBufferData(34963,($68|0),($69|0),35044);
  17574. }
  17575. $70 = HEAP32[$3>>2]|0;
  17576. HEAP32[$5>>2] = $70;
  17577. $71 = HEAP32[$23>>2]|0;
  17578. HEAP32[$6>>2] = $71;
  17579. $72 = ((($3)) + 8|0);
  17580. $73 = HEAP32[$72>>2]|0;
  17581. HEAP32[$7>>2] = $73;
  17582. $74 = ((($3)) + 12|0);
  17583. $75 = HEAP32[$74>>2]|0;
  17584. HEAP32[$8>>2] = $75;
  17585. $76 = ((($3)) + 16|0);
  17586. $77 = HEAP32[$76>>2]|0;
  17587. HEAP32[$9>>2] = $77;
  17588. $78 = ((($3)) + 20|0);
  17589. $79 = HEAP32[$78>>2]|0;
  17590. HEAP32[$10>>2] = $79;
  17591. $80 = ((($3)) + 24|0);
  17592. $81 = HEAP32[$80>>2]|0;
  17593. HEAP32[$11>>2] = $81;
  17594. $82 = HEAP32[4790]|0;
  17595. $83 = ($82|0)==(0);
  17596. if ($83) {
  17597. _TraceLog(0,9720,$vararg_buffer3);
  17598. STACKTOP = sp;return;
  17599. }
  17600. $84 = HEAP32[$2>>2]|0;
  17601. $85 = ($84|0)==(0);
  17602. if ($85) {
  17603. _TraceLog(2,9679,$vararg_buffer1);
  17604. STACKTOP = sp;return;
  17605. } else {
  17606. HEAP32[$4>>2] = $84;
  17607. HEAP32[$vararg_buffer>>2] = $84;
  17608. _TraceLog(0,9626,$vararg_buffer);
  17609. STACKTOP = sp;return;
  17610. }
  17611. }
  17612. function _rlglDrawMesh($0,$1,$2) {
  17613. $0 = $0|0;
  17614. $1 = $1|0;
  17615. $2 = $2|0;
  17616. var $$ = 0, $$020 = 0, $$byval_copy5 = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0, $114 = 0;
  17617. var $115 = 0, $116 = 0, $117 = 0, $118 = 0, $119 = 0, $12 = 0.0, $120 = 0, $121 = 0, $122 = 0, $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 0, $128 = 0, $129 = 0, $13 = 0.0, $130 = 0, $131 = 0, $132 = 0;
  17618. var $133 = 0, $134 = 0, $135 = 0, $136 = 0, $137 = 0, $138 = 0, $139 = 0, $14 = 0, $140 = 0, $141 = 0, $142 = 0, $143 = 0, $144 = 0, $145 = 0, $146 = 0, $147 = 0, $148 = 0, $149 = 0, $15 = 0, $150 = 0;
  17619. var $151 = 0, $152 = 0, $153 = 0, $154 = 0, $155 = 0, $156 = 0, $157 = 0, $158 = 0, $159 = 0, $16 = 0.0, $160 = 0, $161 = 0, $162 = 0, $163 = 0, $164 = 0, $165 = 0, $166 = 0, $167 = 0, $168 = 0, $169 = 0;
  17620. var $17 = 0.0, $170 = 0, $171 = 0, $172 = 0, $173 = 0, $174 = 0, $175 = 0, $176 = 0, $177 = 0, $18 = 0, $19 = 0, $20 = 0.0, $21 = 0.0, $22 = 0, $23 = 0, $24 = 0.0, $25 = 0.0, $26 = 0, $27 = 0, $28 = 0;
  17621. var $29 = 0, $3 = 0, $30 = 0, $31 = 0.0, $32 = 0.0, $33 = 0, $34 = 0, $35 = 0.0, $36 = 0.0, $37 = 0, $38 = 0, $39 = 0.0, $4 = 0, $40 = 0.0, $41 = 0, $42 = 0, $43 = 0.0, $44 = 0.0, $45 = 0, $46 = 0;
  17622. var $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0.0, $51 = 0.0, $52 = 0, $53 = 0, $54 = 0.0, $55 = 0.0, $56 = 0, $57 = 0, $58 = 0.0, $59 = 0.0, $6 = 0, $60 = 0, $61 = 0, $62 = 0.0, $63 = 0.0, $64 = 0;
  17623. var $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0.0, $75 = 0, $76 = 0.0, $77 = 0, $78 = 0.0, $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0.0;
  17624. var $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0, $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $modelview$byval_copy4 = 0, dest = 0;
  17625. var label = 0, sp = 0, src = 0, stop = 0;
  17626. sp = STACKTOP;
  17627. STACKTOP = STACKTOP + 384|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(384|0);
  17628. $$byval_copy5 = sp + 320|0;
  17629. $modelview$byval_copy4 = sp + 256|0;
  17630. $3 = sp + 192|0;
  17631. $4 = sp + 128|0;
  17632. $5 = sp + 64|0;
  17633. $6 = sp;
  17634. $7 = HEAP32[$1>>2]|0;
  17635. _glUseProgram(($7|0));
  17636. $8 = ((($1)) + 32|0);
  17637. $9 = HEAP32[$8>>2]|0;
  17638. $10 = ((($1)) + 116|0);
  17639. $11 = HEAP8[$10>>0]|0;
  17640. $12 = (+($11&255));
  17641. $13 = $12 / 255.0;
  17642. $14 = ((($1)) + 117|0);
  17643. $15 = HEAP8[$14>>0]|0;
  17644. $16 = (+($15&255));
  17645. $17 = $16 / 255.0;
  17646. $18 = ((($1)) + 118|0);
  17647. $19 = HEAP8[$18>>0]|0;
  17648. $20 = (+($19&255));
  17649. $21 = $20 / 255.0;
  17650. $22 = ((($1)) + 119|0);
  17651. $23 = HEAP8[$22>>0]|0;
  17652. $24 = (+($23&255));
  17653. $25 = $24 / 255.0;
  17654. _glUniform4f(($9|0),(+$13),(+$17),(+$21),(+$25));
  17655. $26 = ((($1)) + 36|0);
  17656. $27 = HEAP32[$26>>2]|0;
  17657. $28 = ($27|0)==(-1);
  17658. if (!($28)) {
  17659. $29 = ((($1)) + 120|0);
  17660. $30 = HEAP8[$29>>0]|0;
  17661. $31 = (+($30&255));
  17662. $32 = $31 / 255.0;
  17663. $33 = ((($1)) + 121|0);
  17664. $34 = HEAP8[$33>>0]|0;
  17665. $35 = (+($34&255));
  17666. $36 = $35 / 255.0;
  17667. $37 = ((($1)) + 122|0);
  17668. $38 = HEAP8[$37>>0]|0;
  17669. $39 = (+($38&255));
  17670. $40 = $39 / 255.0;
  17671. $41 = ((($1)) + 123|0);
  17672. $42 = HEAP8[$41>>0]|0;
  17673. $43 = (+($42&255));
  17674. $44 = $43 / 255.0;
  17675. _glUniform4f(($27|0),(+$32),(+$36),(+$40),(+$44));
  17676. }
  17677. $45 = ((($1)) + 40|0);
  17678. $46 = HEAP32[$45>>2]|0;
  17679. $47 = ($46|0)==(-1);
  17680. if (!($47)) {
  17681. $48 = ((($1)) + 124|0);
  17682. $49 = HEAP8[$48>>0]|0;
  17683. $50 = (+($49&255));
  17684. $51 = $50 / 255.0;
  17685. $52 = ((($1)) + 125|0);
  17686. $53 = HEAP8[$52>>0]|0;
  17687. $54 = (+($53&255));
  17688. $55 = $54 / 255.0;
  17689. $56 = ((($1)) + 126|0);
  17690. $57 = HEAP8[$56>>0]|0;
  17691. $58 = (+($57&255));
  17692. $59 = $58 / 255.0;
  17693. $60 = ((($1)) + 127|0);
  17694. $61 = HEAP8[$60>>0]|0;
  17695. $62 = (+($61&255));
  17696. $63 = $62 / 255.0;
  17697. _glUniform4f(($46|0),(+$51),(+$55),(+$59),(+$63));
  17698. }
  17699. dest=$3; src=19092; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  17700. dest=$4; src=19028; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  17701. dest=$modelview$byval_copy4; src=$2; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  17702. dest=$$byval_copy5; src=19092; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  17703. _MatrixMultiply($5,$modelview$byval_copy4,$$byval_copy5);
  17704. $64 = HEAP32[$1>>2]|0;
  17705. $65 = HEAP32[4798]|0;
  17706. $66 = ($64|0)==($65|0);
  17707. if (!($66)) {
  17708. $67 = (_glGetUniformLocation(($64|0),(9768|0))|0);
  17709. $68 = ($67|0)==(-1);
  17710. if (!($68)) {
  17711. dest=$modelview$byval_copy4; src=$2; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  17712. _MatrixTranspose($modelview$byval_copy4);
  17713. _MatrixInvert($modelview$byval_copy4);
  17714. dest=$$byval_copy5; src=$modelview$byval_copy4; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  17715. $69 = (_MatrixToFloat($$byval_copy5)|0);
  17716. _glUniformMatrix4fv(($67|0),1,0,($69|0));
  17717. }
  17718. $70 = HEAP32[$1>>2]|0;
  17719. $71 = (_glGetUniformLocation(($70|0),(9780|0))|0);
  17720. $72 = ($71|0)==(-1);
  17721. if (!($72)) {
  17722. $73 = ((($3)) + 8|0);
  17723. $74 = +HEAPF32[$73>>2];
  17724. $75 = ((($3)) + 24|0);
  17725. $76 = +HEAPF32[$75>>2];
  17726. $77 = ((($3)) + 40|0);
  17727. $78 = +HEAPF32[$77>>2];
  17728. _glUniform3f(($71|0),(+$74),(+$76),(+$78));
  17729. }
  17730. $79 = (_glGetUniformLocation(($70|0),(9788|0))|0);
  17731. $80 = ($79|0)==(-1);
  17732. if (!($80)) {
  17733. $81 = ((($1)) + 128|0);
  17734. $82 = +HEAPF32[$81>>2];
  17735. _glUniform1f(($79|0),(+$82));
  17736. }
  17737. }
  17738. _glActiveTexture(33984);
  17739. $83 = ((($1)) + 56|0);
  17740. $84 = HEAP32[$83>>2]|0;
  17741. _glBindTexture(3553,($84|0));
  17742. $85 = ((($1)) + 44|0);
  17743. $86 = HEAP32[$85>>2]|0;
  17744. _glUniform1i(($86|0),0);
  17745. $87 = ((($1)) + 76|0);
  17746. $88 = HEAP32[$87>>2]|0;
  17747. $89 = ($88|0)==(0);
  17748. if (!($89)) {
  17749. $90 = ((($1)) + 48|0);
  17750. $91 = HEAP32[$90>>2]|0;
  17751. $92 = ($91|0)==(-1);
  17752. if (!($92)) {
  17753. $93 = HEAP32[$1>>2]|0;
  17754. $94 = (_glGetUniformLocation(($93|0),(9799|0))|0);
  17755. _glUniform1i(($94|0),1);
  17756. _glActiveTexture(33985);
  17757. $95 = HEAP32[$87>>2]|0;
  17758. _glBindTexture(3553,($95|0));
  17759. $96 = HEAP32[$90>>2]|0;
  17760. _glUniform1i(($96|0),1);
  17761. }
  17762. }
  17763. $97 = ((($1)) + 96|0);
  17764. $98 = HEAP32[$97>>2]|0;
  17765. $99 = ($98|0)==(0);
  17766. if (!($99)) {
  17767. $100 = ((($1)) + 52|0);
  17768. $101 = HEAP32[$100>>2]|0;
  17769. $102 = ($101|0)==(-1);
  17770. if (!($102)) {
  17771. $103 = HEAP32[$1>>2]|0;
  17772. $104 = (_glGetUniformLocation(($103|0),(9809|0))|0);
  17773. _glUniform1i(($104|0),1);
  17774. _glActiveTexture(33986);
  17775. $105 = HEAP32[$97>>2]|0;
  17776. _glBindTexture(3553,($105|0));
  17777. $106 = HEAP32[$100>>2]|0;
  17778. _glUniform1i(($106|0),2);
  17779. }
  17780. }
  17781. $107 = HEAP32[4790]|0;
  17782. $108 = ($107|0)==(0);
  17783. if ($108) {
  17784. $112 = ((($0)) + 40|0);
  17785. $113 = HEAP32[$112>>2]|0;
  17786. _glBindBuffer(34962,($113|0));
  17787. $114 = ((($1)) + 4|0);
  17788. $115 = HEAP32[$114>>2]|0;
  17789. _glVertexAttribPointer(($115|0),3,5126,0,0,(0|0));
  17790. _glEnableVertexAttribArray(($115|0));
  17791. $116 = ((($0)) + 44|0);
  17792. $117 = HEAP32[$116>>2]|0;
  17793. _glBindBuffer(34962,($117|0));
  17794. $118 = ((($1)) + 8|0);
  17795. $119 = HEAP32[$118>>2]|0;
  17796. _glVertexAttribPointer(($119|0),2,5126,0,0,(0|0));
  17797. _glEnableVertexAttribArray(($119|0));
  17798. $120 = ((($1)) + 16|0);
  17799. $121 = HEAP32[$120>>2]|0;
  17800. $122 = ($121|0)==(-1);
  17801. if (!($122)) {
  17802. $123 = ((($0)) + 48|0);
  17803. $124 = HEAP32[$123>>2]|0;
  17804. _glBindBuffer(34962,($124|0));
  17805. $125 = HEAP32[$120>>2]|0;
  17806. _glVertexAttribPointer(($125|0),3,5126,0,0,(0|0));
  17807. $126 = HEAP32[$120>>2]|0;
  17808. _glEnableVertexAttribArray(($126|0));
  17809. }
  17810. $127 = ((($1)) + 24|0);
  17811. $128 = HEAP32[$127>>2]|0;
  17812. $129 = ($128|0)==(-1);
  17813. do {
  17814. if (!($129)) {
  17815. $130 = ((($0)) + 52|0);
  17816. $131 = HEAP32[$130>>2]|0;
  17817. $132 = ($131|0)==(0);
  17818. if ($132) {
  17819. _glVertexAttrib4f(($128|0),1.0,1.0,1.0,1.0);
  17820. $135 = HEAP32[$127>>2]|0;
  17821. _glDisableVertexAttribArray(($135|0));
  17822. break;
  17823. } else {
  17824. _glBindBuffer(34962,($131|0));
  17825. $133 = HEAP32[$127>>2]|0;
  17826. _glVertexAttribPointer(($133|0),4,5121,1,0,(0|0));
  17827. $134 = HEAP32[$127>>2]|0;
  17828. _glEnableVertexAttribArray(($134|0));
  17829. break;
  17830. }
  17831. }
  17832. } while(0);
  17833. $136 = ((($1)) + 20|0);
  17834. $137 = HEAP32[$136>>2]|0;
  17835. $138 = ($137|0)==(-1);
  17836. if (!($138)) {
  17837. $139 = ((($0)) + 56|0);
  17838. $140 = HEAP32[$139>>2]|0;
  17839. _glBindBuffer(34962,($140|0));
  17840. $141 = HEAP32[$136>>2]|0;
  17841. _glVertexAttribPointer(($141|0),3,5126,0,0,(0|0));
  17842. $142 = HEAP32[$136>>2]|0;
  17843. _glEnableVertexAttribArray(($142|0));
  17844. }
  17845. $143 = ((($1)) + 12|0);
  17846. $144 = HEAP32[$143>>2]|0;
  17847. $145 = ($144|0)==(-1);
  17848. if (!($145)) {
  17849. $146 = ((($0)) + 60|0);
  17850. $147 = HEAP32[$146>>2]|0;
  17851. _glBindBuffer(34962,($147|0));
  17852. $148 = HEAP32[$143>>2]|0;
  17853. _glVertexAttribPointer(($148|0),2,5126,0,0,(0|0));
  17854. $149 = HEAP32[$143>>2]|0;
  17855. _glEnableVertexAttribArray(($149|0));
  17856. }
  17857. $150 = ((($0)) + 32|0);
  17858. $151 = HEAP32[$150>>2]|0;
  17859. $152 = ($151|0)==(0|0);
  17860. if (!($152)) {
  17861. $153 = HEAP32[(20492)>>2]|0;
  17862. _glBindBuffer(34963,($153|0));
  17863. }
  17864. } else {
  17865. $109 = HEAP32[4792]|0;
  17866. $110 = ((($0)) + 36|0);
  17867. $111 = HEAP32[$110>>2]|0;
  17868. FUNCTION_TABLE_vi[$109 & 31]($111);
  17869. }
  17870. $154 = HEAP32[5175]|0;
  17871. $155 = ($154|0)!=(0);
  17872. $$ = $155 ? 2 : 1;
  17873. $156 = ((($1)) + 28|0);
  17874. $157 = ((($0)) + 32|0);
  17875. $158 = HEAP32[$0>>2]|0;
  17876. $159 = ((($0)) + 4|0);
  17877. $$020 = 0;
  17878. while(1) {
  17879. if ($155) {
  17880. dest=$modelview$byval_copy4; src=$4; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  17881. dest=$$byval_copy5; src=$5; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  17882. _SetStereoView($$020,$modelview$byval_copy4,$$byval_copy5);
  17883. } else {
  17884. dest=19092; src=$5; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  17885. }
  17886. dest=$modelview$byval_copy4; src=19092; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  17887. dest=$$byval_copy5; src=19028; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  17888. _MatrixMultiply($6,$modelview$byval_copy4,$$byval_copy5);
  17889. $162 = HEAP32[$156>>2]|0;
  17890. dest=$$byval_copy5; src=$6; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  17891. $163 = (_MatrixToFloat($$byval_copy5)|0);
  17892. _glUniformMatrix4fv(($162|0),1,0,($163|0));
  17893. $164 = HEAP32[$157>>2]|0;
  17894. $165 = ($164|0)==(0|0);
  17895. if ($165) {
  17896. _glDrawArrays(4,0,($158|0));
  17897. } else {
  17898. $166 = HEAP32[$159>>2]|0;
  17899. $167 = ($166*3)|0;
  17900. _glDrawElements(4,($167|0),5123,(0|0));
  17901. }
  17902. $168 = (($$020) + 1)|0;
  17903. $169 = ($168|0)<($$|0);
  17904. if ($169) {
  17905. $$020 = $168;
  17906. } else {
  17907. break;
  17908. }
  17909. }
  17910. $160 = HEAP32[$87>>2]|0;
  17911. $161 = ($160|0)==(0);
  17912. if (!($161)) {
  17913. _glActiveTexture(33985);
  17914. _glBindTexture(3553,0);
  17915. }
  17916. $170 = HEAP32[$97>>2]|0;
  17917. $171 = ($170|0)==(0);
  17918. if (!($171)) {
  17919. _glActiveTexture(33986);
  17920. _glBindTexture(3553,0);
  17921. }
  17922. _glActiveTexture(33984);
  17923. _glBindTexture(3553,0);
  17924. $172 = HEAP32[4790]|0;
  17925. $173 = ($172|0)==(0);
  17926. if (!($173)) {
  17927. $174 = HEAP32[4792]|0;
  17928. FUNCTION_TABLE_vi[$174 & 31](0);
  17929. _glUseProgram(0);
  17930. dest=19028; src=$4; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  17931. dest=19092; src=$3; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  17932. STACKTOP = sp;return;
  17933. }
  17934. _glBindBuffer(34962,0);
  17935. $175 = ((($0)) + 32|0);
  17936. $176 = HEAP32[$175>>2]|0;
  17937. $177 = ($176|0)==(0|0);
  17938. if ($177) {
  17939. _glUseProgram(0);
  17940. dest=19028; src=$4; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  17941. dest=19092; src=$3; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  17942. STACKTOP = sp;return;
  17943. }
  17944. _glBindBuffer(34963,0);
  17945. _glUseProgram(0);
  17946. dest=19028; src=$4; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  17947. dest=19092; src=$3; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  17948. STACKTOP = sp;return;
  17949. }
  17950. function _rlglUnloadMesh($0) {
  17951. $0 = $0|0;
  17952. var $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0;
  17953. var $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  17954. sp = STACKTOP;
  17955. $1 = ((($0)) + 8|0);
  17956. $2 = HEAP32[$1>>2]|0;
  17957. $3 = ($2|0)==(0|0);
  17958. if (!($3)) {
  17959. _free($2);
  17960. }
  17961. $4 = ((($0)) + 12|0);
  17962. $5 = HEAP32[$4>>2]|0;
  17963. $6 = ($5|0)==(0|0);
  17964. if (!($6)) {
  17965. _free($5);
  17966. }
  17967. $7 = ((($0)) + 20|0);
  17968. $8 = HEAP32[$7>>2]|0;
  17969. $9 = ($8|0)==(0|0);
  17970. if (!($9)) {
  17971. _free($8);
  17972. }
  17973. $10 = ((($0)) + 28|0);
  17974. $11 = HEAP32[$10>>2]|0;
  17975. $12 = ($11|0)==(0|0);
  17976. if (!($12)) {
  17977. _free($11);
  17978. }
  17979. $13 = ((($0)) + 24|0);
  17980. $14 = HEAP32[$13>>2]|0;
  17981. $15 = ($14|0)==(0|0);
  17982. if (!($15)) {
  17983. _free($14);
  17984. }
  17985. $16 = ((($0)) + 16|0);
  17986. $17 = HEAP32[$16>>2]|0;
  17987. $18 = ($17|0)==(0|0);
  17988. if (!($18)) {
  17989. _free($17);
  17990. }
  17991. $19 = ((($0)) + 32|0);
  17992. $20 = HEAP32[$19>>2]|0;
  17993. $21 = ($20|0)==(0|0);
  17994. if (!($21)) {
  17995. _free($20);
  17996. }
  17997. $22 = ((($0)) + 40|0);
  17998. $23 = HEAP32[$22>>2]|0;
  17999. _rlDeleteBuffers($23);
  18000. $24 = ((($0)) + 44|0);
  18001. $25 = HEAP32[$24>>2]|0;
  18002. _rlDeleteBuffers($25);
  18003. $26 = ((($0)) + 48|0);
  18004. $27 = HEAP32[$26>>2]|0;
  18005. _rlDeleteBuffers($27);
  18006. $28 = ((($0)) + 52|0);
  18007. $29 = HEAP32[$28>>2]|0;
  18008. _rlDeleteBuffers($29);
  18009. $30 = ((($0)) + 56|0);
  18010. $31 = HEAP32[$30>>2]|0;
  18011. _rlDeleteBuffers($31);
  18012. $32 = ((($0)) + 60|0);
  18013. $33 = HEAP32[$32>>2]|0;
  18014. _rlDeleteBuffers($33);
  18015. $34 = ((($0)) + 64|0);
  18016. $35 = HEAP32[$34>>2]|0;
  18017. _rlDeleteBuffers($35);
  18018. $36 = ((($0)) + 36|0);
  18019. $37 = HEAP32[$36>>2]|0;
  18020. _rlDeleteVertexArrays($37);
  18021. return;
  18022. }
  18023. function _GetDefaultTexture($0) {
  18024. $0 = $0|0;
  18025. var $$sroa$4$0$$sroa_idx2 = 0, $$sroa$5$0$$sroa_idx4 = 0, $$sroa$6$0$$sroa_idx6 = 0, $$sroa$7$0$$sroa_idx8 = 0, $1 = 0, label = 0, sp = 0;
  18026. sp = STACKTOP;
  18027. $1 = HEAP32[4797]|0;
  18028. HEAP32[$0>>2] = $1;
  18029. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  18030. HEAP32[$$sroa$4$0$$sroa_idx2>>2] = 1;
  18031. $$sroa$5$0$$sroa_idx4 = ((($0)) + 8|0);
  18032. HEAP32[$$sroa$5$0$$sroa_idx4>>2] = 1;
  18033. $$sroa$6$0$$sroa_idx6 = ((($0)) + 12|0);
  18034. HEAP32[$$sroa$6$0$$sroa_idx6>>2] = 1;
  18035. $$sroa$7$0$$sroa_idx8 = ((($0)) + 16|0);
  18036. HEAP32[$$sroa$7$0$$sroa_idx8>>2] = 7;
  18037. return;
  18038. }
  18039. function _GetDefaultShader($0) {
  18040. $0 = $0|0;
  18041. var dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  18042. sp = STACKTOP;
  18043. dest=$0; src=19192; stop=dest+56|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  18044. return;
  18045. }
  18046. function _stbi__err($0) {
  18047. $0 = $0|0;
  18048. var label = 0, sp = 0;
  18049. sp = STACKTOP;
  18050. HEAP32[5268] = $0;
  18051. return;
  18052. }
  18053. function _stbi_load_from_file($0,$1,$2,$3,$4) {
  18054. $0 = $0|0;
  18055. $1 = $1|0;
  18056. $2 = $2|0;
  18057. $3 = $3|0;
  18058. $4 = $4|0;
  18059. var $10 = 0, $11 = 0, $12 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  18060. sp = STACKTOP;
  18061. STACKTOP = STACKTOP + 192|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(192|0);
  18062. $5 = sp;
  18063. _stbi__start_file($5,$0);
  18064. $6 = (_stbi__load_and_postprocess_8bit($5,$1,$2,$3,$4)|0);
  18065. $7 = ($6|0)==(0|0);
  18066. if ($7) {
  18067. STACKTOP = sp;return ($6|0);
  18068. }
  18069. $8 = ((($5)) + 172|0);
  18070. $9 = HEAP32[$8>>2]|0;
  18071. $10 = ((($5)) + 168|0);
  18072. $11 = HEAP32[$10>>2]|0;
  18073. $12 = (($11) - ($9))|0;
  18074. (_fseek($0,$12,1)|0);
  18075. STACKTOP = sp;return ($6|0);
  18076. }
  18077. function _stbi__start_file($0,$1) {
  18078. $0 = $0|0;
  18079. $1 = $1|0;
  18080. var label = 0, sp = 0;
  18081. sp = STACKTOP;
  18082. _stbi__start_callbacks($0,3160,$1);
  18083. return;
  18084. }
  18085. function _stbi__load_and_postprocess_8bit($0,$1,$2,$3,$4) {
  18086. $0 = $0|0;
  18087. $1 = $1|0;
  18088. $2 = $2|0;
  18089. $3 = $3|0;
  18090. $4 = $4|0;
  18091. var $$0 = 0, $$070 = 0, $$07175 = 0, $$07276 = 0, $$07378 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0;
  18092. var $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $5 = 0, $6 = 0;
  18093. var $7 = 0, $8 = 0, $9 = 0, $exitcond = 0, $exitcond79 = 0, $exitcond80 = 0, label = 0, sp = 0;
  18094. sp = STACKTOP;
  18095. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  18096. $5 = sp;
  18097. $6 = (_stbi__load_main($0,$1,$2,$3,$4,$5)|0);
  18098. $7 = ($6|0)==(0|0);
  18099. if ($7) {
  18100. $$0 = 0;
  18101. STACKTOP = sp;return ($$0|0);
  18102. }
  18103. $8 = HEAP32[$5>>2]|0;
  18104. switch ($8|0) {
  18105. case 8: {
  18106. $$070 = $6;
  18107. break;
  18108. }
  18109. case 16: {
  18110. label = 4;
  18111. break;
  18112. }
  18113. default: {
  18114. ___assert_fail((9821|0),(9847|0),1041,(9870|0));
  18115. // unreachable;
  18116. }
  18117. }
  18118. if ((label|0) == 4) {
  18119. $9 = HEAP32[$1>>2]|0;
  18120. $10 = HEAP32[$2>>2]|0;
  18121. $11 = ($4|0)==(0);
  18122. if ($11) {
  18123. $12 = HEAP32[$3>>2]|0;
  18124. $13 = $12;
  18125. } else {
  18126. $13 = $4;
  18127. }
  18128. $14 = (_stbi__convert_16_to_8($6,$9,$10,$13)|0);
  18129. HEAP32[$5>>2] = 8;
  18130. $$070 = $14;
  18131. }
  18132. $15 = HEAP32[5269]|0;
  18133. $16 = ($15|0)==(0);
  18134. if ($16) {
  18135. $$0 = $$070;
  18136. STACKTOP = sp;return ($$0|0);
  18137. }
  18138. $17 = HEAP32[$1>>2]|0;
  18139. $18 = HEAP32[$2>>2]|0;
  18140. $19 = ($4|0)==(0);
  18141. if ($19) {
  18142. $20 = HEAP32[$3>>2]|0;
  18143. $25 = $20;
  18144. } else {
  18145. $25 = $4;
  18146. }
  18147. $21 = $18 >> 1;
  18148. $22 = ($21|0)>(0);
  18149. if (!($22)) {
  18150. $$0 = $$070;
  18151. STACKTOP = sp;return ($$0|0);
  18152. }
  18153. $23 = ($17|0)>(0);
  18154. $24 = ($25|0)>(0);
  18155. $26 = (($18) + -1)|0;
  18156. $$07378 = 0;
  18157. while(1) {
  18158. if ($23) {
  18159. $27 = Math_imul($$07378, $17)|0;
  18160. $28 = (($26) - ($$07378))|0;
  18161. $29 = Math_imul($28, $17)|0;
  18162. $$07276 = 0;
  18163. while(1) {
  18164. if ($24) {
  18165. $30 = (($$07276) + ($27))|0;
  18166. $31 = Math_imul($30, $25)|0;
  18167. $32 = (($$07276) + ($29))|0;
  18168. $33 = Math_imul($32, $25)|0;
  18169. $$07175 = 0;
  18170. while(1) {
  18171. $34 = (($$07175) + ($31))|0;
  18172. $35 = (($$070) + ($34)|0);
  18173. $36 = HEAP8[$35>>0]|0;
  18174. $37 = (($$07175) + ($33))|0;
  18175. $38 = (($$070) + ($37)|0);
  18176. $39 = HEAP8[$38>>0]|0;
  18177. HEAP8[$35>>0] = $39;
  18178. HEAP8[$38>>0] = $36;
  18179. $40 = (($$07175) + 1)|0;
  18180. $exitcond = ($40|0)==($25|0);
  18181. if ($exitcond) {
  18182. break;
  18183. } else {
  18184. $$07175 = $40;
  18185. }
  18186. }
  18187. }
  18188. $41 = (($$07276) + 1)|0;
  18189. $exitcond79 = ($41|0)==($17|0);
  18190. if ($exitcond79) {
  18191. break;
  18192. } else {
  18193. $$07276 = $41;
  18194. }
  18195. }
  18196. }
  18197. $42 = (($$07378) + 1)|0;
  18198. $exitcond80 = ($42|0)==($21|0);
  18199. if ($exitcond80) {
  18200. $$0 = $$070;
  18201. break;
  18202. } else {
  18203. $$07378 = $42;
  18204. }
  18205. }
  18206. STACKTOP = sp;return ($$0|0);
  18207. }
  18208. function _stbi__load_main($0,$1,$2,$3,$4,$5) {
  18209. $0 = $0|0;
  18210. $1 = $1|0;
  18211. $2 = $2|0;
  18212. $3 = $3|0;
  18213. $4 = $4|0;
  18214. $5 = $5|0;
  18215. var $$0 = 0, $10 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  18216. sp = STACKTOP;
  18217. HEAP32[$5>>2] = 8;
  18218. $6 = ((($5)) + 8|0);
  18219. HEAP32[$6>>2] = 0;
  18220. $7 = ((($5)) + 4|0);
  18221. HEAP32[$7>>2] = 0;
  18222. $8 = (_stbi__png_test($0)|0);
  18223. $9 = ($8|0)==(0);
  18224. if ($9) {
  18225. _stbi__err(9911);
  18226. $$0 = 0;
  18227. return ($$0|0);
  18228. } else {
  18229. $10 = (_stbi__png_load($0,$1,$2,$3,$4,$5)|0);
  18230. $$0 = $10;
  18231. return ($$0|0);
  18232. }
  18233. return (0)|0;
  18234. }
  18235. function _stbi__convert_16_to_8($0,$1,$2,$3) {
  18236. $0 = $0|0;
  18237. $1 = $1|0;
  18238. $2 = $2|0;
  18239. $3 = $3|0;
  18240. var $$0 = 0, $$01819 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $exitcond = 0, label = 0, sp = 0;
  18241. sp = STACKTOP;
  18242. $4 = Math_imul($2, $1)|0;
  18243. $5 = Math_imul($4, $3)|0;
  18244. $6 = (_stbi__malloc($5)|0);
  18245. $7 = ($6|0)==(0|0);
  18246. if ($7) {
  18247. _stbi__err(9902);
  18248. $$0 = 0;
  18249. return ($$0|0);
  18250. }
  18251. $8 = ($5|0)>(0);
  18252. if ($8) {
  18253. $$01819 = 0;
  18254. while(1) {
  18255. $9 = (($0) + ($$01819<<1)|0);
  18256. $10 = HEAP16[$9>>1]|0;
  18257. $11 = ($10&65535) >>> 8;
  18258. $12 = $11&255;
  18259. $13 = (($6) + ($$01819)|0);
  18260. HEAP8[$13>>0] = $12;
  18261. $14 = (($$01819) + 1)|0;
  18262. $exitcond = ($14|0)==($5|0);
  18263. if ($exitcond) {
  18264. break;
  18265. } else {
  18266. $$01819 = $14;
  18267. }
  18268. }
  18269. }
  18270. _free($0);
  18271. $$0 = $6;
  18272. return ($$0|0);
  18273. }
  18274. function _stbi__malloc($0) {
  18275. $0 = $0|0;
  18276. var $1 = 0, label = 0, sp = 0;
  18277. sp = STACKTOP;
  18278. $1 = (_malloc($0)|0);
  18279. return ($1|0);
  18280. }
  18281. function _stbi__png_test($0) {
  18282. $0 = $0|0;
  18283. var $1 = 0, label = 0, sp = 0;
  18284. sp = STACKTOP;
  18285. $1 = (_stbi__check_png_header($0)|0);
  18286. _stbi__rewind($0);
  18287. return ($1|0);
  18288. }
  18289. function _stbi__png_load($0,$1,$2,$3,$4,$5) {
  18290. $0 = $0|0;
  18291. $1 = $1|0;
  18292. $2 = $2|0;
  18293. $3 = $3|0;
  18294. $4 = $4|0;
  18295. $5 = $5|0;
  18296. var $6 = 0, $7 = 0, label = 0, sp = 0;
  18297. sp = STACKTOP;
  18298. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  18299. $6 = sp;
  18300. HEAP32[$6>>2] = $0;
  18301. $7 = (_stbi__do_png($6,$1,$2,$3,$4,$5)|0);
  18302. STACKTOP = sp;return ($7|0);
  18303. }
  18304. function _stbi__do_png($0,$1,$2,$3,$4,$5) {
  18305. $0 = $0|0;
  18306. $1 = $1|0;
  18307. $2 = $2|0;
  18308. $3 = $3|0;
  18309. $4 = $4|0;
  18310. $5 = $5|0;
  18311. var $$ = 0, $$0 = 0, $$045 = 0, $$1 = 0, $$2 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0;
  18312. var $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $6 = 0, $7 = 0, $8 = 0;
  18313. var $9 = 0, label = 0, sp = 0;
  18314. sp = STACKTOP;
  18315. $6 = ($4>>>0)>(4);
  18316. if ($6) {
  18317. _stbi__err(9930);
  18318. $$045 = 0;
  18319. return ($$045|0);
  18320. }
  18321. $7 = (_stbi__parse_png_file($0,0,$4)|0);
  18322. $8 = ($7|0)==(0);
  18323. if ($8) {
  18324. $$2 = 0;
  18325. } else {
  18326. $9 = ((($0)) + 16|0);
  18327. $10 = HEAP32[$9>>2]|0;
  18328. $11 = ($10|0)>(8);
  18329. $$ = $11 ? $10 : 8;
  18330. HEAP32[$5>>2] = $$;
  18331. $12 = ((($0)) + 12|0);
  18332. $13 = HEAP32[$12>>2]|0;
  18333. HEAP32[$12>>2] = 0;
  18334. $14 = ($4|0)==(0);
  18335. if ($14) {
  18336. $$1 = $13;
  18337. } else {
  18338. $15 = HEAP32[$0>>2]|0;
  18339. $16 = ((($15)) + 12|0);
  18340. $17 = HEAP32[$16>>2]|0;
  18341. $18 = ($17|0)==($4|0);
  18342. if ($18) {
  18343. $$1 = $13;
  18344. } else {
  18345. $19 = HEAP32[$5>>2]|0;
  18346. $20 = ($19|0)==(8);
  18347. $21 = ((($15)) + 4|0);
  18348. $22 = HEAP32[$21>>2]|0;
  18349. $23 = HEAP32[$15>>2]|0;
  18350. if ($20) {
  18351. $24 = (_stbi__convert_format($13,$17,$4,$23,$22)|0);
  18352. $$0 = $24;
  18353. } else {
  18354. $25 = (_stbi__convert_format16($13,$17,$4,$23,$22)|0);
  18355. $$0 = $25;
  18356. }
  18357. $26 = HEAP32[$0>>2]|0;
  18358. $27 = ((($26)) + 12|0);
  18359. HEAP32[$27>>2] = $4;
  18360. $28 = ($$0|0)==(0|0);
  18361. if ($28) {
  18362. $$045 = 0;
  18363. return ($$045|0);
  18364. } else {
  18365. $$1 = $$0;
  18366. }
  18367. }
  18368. }
  18369. $29 = HEAP32[$0>>2]|0;
  18370. $30 = HEAP32[$29>>2]|0;
  18371. HEAP32[$1>>2] = $30;
  18372. $31 = ((($29)) + 4|0);
  18373. $32 = HEAP32[$31>>2]|0;
  18374. HEAP32[$2>>2] = $32;
  18375. $33 = ($3|0)==(0|0);
  18376. if ($33) {
  18377. $$2 = $$1;
  18378. } else {
  18379. $34 = ((($29)) + 8|0);
  18380. $35 = HEAP32[$34>>2]|0;
  18381. HEAP32[$3>>2] = $35;
  18382. $$2 = $$1;
  18383. }
  18384. }
  18385. $36 = ((($0)) + 12|0);
  18386. $37 = HEAP32[$36>>2]|0;
  18387. _free($37);
  18388. HEAP32[$36>>2] = 0;
  18389. $38 = ((($0)) + 8|0);
  18390. $39 = HEAP32[$38>>2]|0;
  18391. _free($39);
  18392. HEAP32[$38>>2] = 0;
  18393. $40 = ((($0)) + 4|0);
  18394. $41 = HEAP32[$40>>2]|0;
  18395. _free($41);
  18396. HEAP32[$40>>2] = 0;
  18397. $$045 = $$2;
  18398. return ($$045|0);
  18399. }
  18400. function _stbi__parse_png_file($0,$1,$2) {
  18401. $0 = $0|0;
  18402. $1 = $1|0;
  18403. $2 = $2|0;
  18404. var $$ = 0, $$$0217 = 0, $$0206 = 0, $$0211 = 0, $$0214 = 0, $$0217 = 0, $$0226593 = 0, $$0228 = 0, $$0231 = 0, $$0235 = 0, $$0239591 = 0, $$0241 = 0, $$0245 = 0, $$1207 = 0, $$1212 = 0, $$1215 = 0, $$1218 = 0, $$1227588 = 0, $$1229 = 0, $$1240589 = 0;
  18405. var $$1246 = 0, $$2219 = 0, $$2233 = 0, $$2237 = 0, $$2243 = 0, $$254 = 0, $$3209 = 0, $$3220 = 0, $$4 = 0, $$6$ph = 0, $$7 = 0, $$lobit = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0;
  18406. var $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0, $114 = 0, $115 = 0, $116 = 0, $117 = 0, $118 = 0, $119 = 0, $12 = 0, $120 = 0, $121 = 0, $122 = 0, $123 = 0, $124 = 0;
  18407. var $125 = 0, $126 = 0, $127 = 0, $128 = 0, $129 = 0, $13 = 0, $130 = 0, $131 = 0, $132 = 0, $133 = 0, $134 = 0, $135 = 0, $136 = 0, $137 = 0, $138 = 0, $139 = 0, $14 = 0, $140 = 0, $141 = 0, $142 = 0;
  18408. var $143 = 0, $144 = 0, $145 = 0, $146 = 0, $147 = 0, $148 = 0, $149 = 0, $15 = 0, $150 = 0, $151 = 0, $152 = 0, $153 = 0, $154 = 0, $155 = 0, $156 = 0, $157 = 0, $158 = 0, $159 = 0, $16 = 0, $160 = 0;
  18409. var $161 = 0, $162 = 0, $163 = 0, $164 = 0, $165 = 0, $166 = 0, $167 = 0, $168 = 0, $169 = 0, $17 = 0, $170 = 0, $171 = 0, $172 = 0, $173 = 0, $174 = 0, $175 = 0, $176 = 0, $177 = 0, $178 = 0, $179 = 0;
  18410. var $18 = 0, $180 = 0, $181 = 0, $182 = 0, $183 = 0, $184 = 0, $185 = 0, $186 = 0, $187 = 0, $188 = 0, $189 = 0, $19 = 0, $190 = 0, $191 = 0, $192 = 0, $193 = 0, $194 = 0, $195 = 0, $196 = 0, $197 = 0;
  18411. var $198 = 0, $199 = 0, $20 = 0, $200 = 0, $201 = 0, $202 = 0, $203 = 0, $204 = 0, $205 = 0, $206 = 0, $207 = 0, $208 = 0, $209 = 0, $21 = 0, $210 = 0, $211 = 0, $212 = 0, $213 = 0, $22 = 0, $23 = 0;
  18412. var $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0;
  18413. var $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0;
  18414. var $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0;
  18415. var $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0, $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0;
  18416. var $97 = 0, $98 = 0, $99 = 0, $notlhs = 0, $notrhs = 0, $or$cond = 0, $or$cond11 = 0, $or$cond248 = 0, $or$cond5$not = 0, $or$cond7 = 0, $switch$split112D = 0, $switch$split142D = 0, $switch$split2D = 0, $switch$split52D = 0, $switch$split82D = 0, label = 0, sp = 0;
  18417. sp = STACKTOP;
  18418. STACKTOP = STACKTOP + 1056|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(1056|0);
  18419. $3 = sp + 32|0;
  18420. $4 = sp + 22|0;
  18421. $5 = sp + 16|0;
  18422. $6 = sp + 8|0;
  18423. $7 = sp;
  18424. $8 = HEAP32[$0>>2]|0;
  18425. $9 = ((($0)) + 8|0);
  18426. HEAP32[$9>>2] = 0;
  18427. $10 = ((($0)) + 4|0);
  18428. HEAP32[$10>>2] = 0;
  18429. $11 = ((($0)) + 12|0);
  18430. HEAP32[$11>>2] = 0;
  18431. $12 = (_stbi__check_png_header($8)|0);
  18432. $13 = ($12|0)==(0);
  18433. if ($13) {
  18434. $$7 = 0;
  18435. STACKTOP = sp;return ($$7|0);
  18436. }
  18437. $14 = ($1|0)==(1);
  18438. if ($14) {
  18439. $$7 = 1;
  18440. STACKTOP = sp;return ($$7|0);
  18441. }
  18442. $15 = ((($6)) + 4|0);
  18443. $16 = ((($8)) + 4|0);
  18444. $17 = ((($0)) + 16|0);
  18445. $18 = ((($8)) + 8|0);
  18446. $19 = ($1|0)==(2);
  18447. $20 = ((($8)) + 8|0);
  18448. $21 = ((($8)) + 8|0);
  18449. $22 = ((($0)) + 16|0);
  18450. $23 = ($1|0)==(2);
  18451. $24 = ($1|0)==(2);
  18452. $$0206 = 0;$$0211 = 0;$$0214 = 0;$$0217 = 0;$$0228 = 0;$$0231 = 0;$$0235 = 0;$$0241 = 1;$$0245 = 0;
  18453. L7: while(1) {
  18454. _stbi__get_chunk_header($6,$8);
  18455. $25 = HEAP32[$15>>2]|0;
  18456. $switch$split2D = ($25|0)<(1229472850);
  18457. L9: do {
  18458. if ($switch$split2D) {
  18459. $switch$split52D = ($25|0)<(1229209940);
  18460. if ($switch$split52D) {
  18461. switch ($25|0) {
  18462. case 1130840649: {
  18463. break;
  18464. }
  18465. default: {
  18466. label = 103;
  18467. break L9;
  18468. }
  18469. }
  18470. $26 = HEAP32[$6>>2]|0;
  18471. _stbi__skip($8,$26);
  18472. $$1212 = $$0211;$$1215 = $$0214;$$1229 = 1;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$0217;
  18473. break;
  18474. }
  18475. $switch$split112D = ($25|0)<(1229278788);
  18476. if (!($switch$split112D)) {
  18477. switch ($25|0) {
  18478. case 1229278788: {
  18479. label = 85;
  18480. break L7;
  18481. break;
  18482. }
  18483. default: {
  18484. label = 103;
  18485. break L9;
  18486. }
  18487. }
  18488. }
  18489. switch ($25|0) {
  18490. case 1229209940: {
  18491. break;
  18492. }
  18493. default: {
  18494. label = 103;
  18495. break L9;
  18496. }
  18497. }
  18498. $130 = ($$0241|0)==(0);
  18499. if (!($130)) {
  18500. label = 70;
  18501. break L7;
  18502. }
  18503. $131 = ($$0206<<24>>24)==(0);
  18504. $132 = ($$0245|0)!=(0);
  18505. $or$cond = $132 | $131;
  18506. if (!($or$cond)) {
  18507. label = 72;
  18508. break L7;
  18509. }
  18510. if ($24) {
  18511. label = 74;
  18512. break L7;
  18513. }
  18514. $135 = HEAP32[$6>>2]|0;
  18515. $136 = (($135) + ($$0214))|0;
  18516. $137 = ($136|0)<($$0214|0);
  18517. if ($137) {
  18518. $$6$ph = 0;
  18519. break L7;
  18520. }
  18521. $138 = ($136>>>0)>($$0217>>>0);
  18522. if ($138) {
  18523. $139 = ($$0217|0)==(0);
  18524. $140 = ($135>>>0)>(4096);
  18525. $141 = $140 ? $135 : 4096;
  18526. $$$0217 = $139 ? $141 : $$0217;
  18527. $142 = HEAP32[$6>>2]|0;
  18528. $143 = (($142) + ($$0214))|0;
  18529. $$1218 = $$$0217;
  18530. while(1) {
  18531. $144 = ($143>>>0)>($$1218>>>0);
  18532. $145 = $$1218 << 1;
  18533. if ($144) {
  18534. $$1218 = $145;
  18535. } else {
  18536. break;
  18537. }
  18538. }
  18539. $146 = HEAP32[$10>>2]|0;
  18540. $147 = (_realloc($146,$$1218)|0);
  18541. $148 = ($147|0)==(0|0);
  18542. if ($148) {
  18543. label = 81;
  18544. break L7;
  18545. }
  18546. HEAP32[$10>>2] = $147;
  18547. $$2219 = $$1218;
  18548. } else {
  18549. $$2219 = $$0217;
  18550. }
  18551. $149 = HEAP32[$10>>2]|0;
  18552. $150 = (($149) + ($$0214)|0);
  18553. $151 = HEAP32[$6>>2]|0;
  18554. $152 = (_stbi__getn($8,$150,$151)|0);
  18555. $153 = ($152|0)==(0);
  18556. if ($153) {
  18557. label = 83;
  18558. break L7;
  18559. }
  18560. $154 = HEAP32[$6>>2]|0;
  18561. $155 = (($154) + ($$0214))|0;
  18562. $$1212 = $$0211;$$1215 = $155;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$2219;
  18563. } else {
  18564. $switch$split82D = ($25|0)<(1347179589);
  18565. if ($switch$split82D) {
  18566. switch ($25|0) {
  18567. case 1229472850: {
  18568. break;
  18569. }
  18570. default: {
  18571. label = 103;
  18572. break L9;
  18573. }
  18574. }
  18575. $27 = ($$0241|0)==(0);
  18576. if ($27) {
  18577. label = 7;
  18578. break L7;
  18579. }
  18580. $28 = HEAP32[$6>>2]|0;
  18581. $29 = ($28|0)==(13);
  18582. if (!($29)) {
  18583. label = 9;
  18584. break L7;
  18585. }
  18586. $30 = (_stbi__get32be($8)|0);
  18587. HEAP32[$8>>2] = $30;
  18588. $31 = ($30>>>0)>(16777216);
  18589. if ($31) {
  18590. label = 11;
  18591. break L7;
  18592. }
  18593. $32 = (_stbi__get32be($8)|0);
  18594. HEAP32[$16>>2] = $32;
  18595. $33 = ($32>>>0)>(16777216);
  18596. if ($33) {
  18597. label = 13;
  18598. break L7;
  18599. }
  18600. $34 = (_stbi__get8($8)|0);
  18601. $35 = $34&255;
  18602. HEAP32[$17>>2] = $35;
  18603. switch ($34<<24>>24) {
  18604. case 16: case 8: case 4: case 2: case 1: {
  18605. break;
  18606. }
  18607. default: {
  18608. label = 15;
  18609. break L7;
  18610. }
  18611. }
  18612. $36 = (_stbi__get8($8)|0);
  18613. $37 = $36&255;
  18614. $38 = ($36&255)>(6);
  18615. if ($38) {
  18616. label = 17;
  18617. break L7;
  18618. }
  18619. $39 = ($36<<24>>24)==(3);
  18620. if ($39) {
  18621. $40 = HEAP32[$17>>2]|0;
  18622. $41 = ($40|0)==(16);
  18623. if ($41) {
  18624. label = 20;
  18625. break L7;
  18626. } else {
  18627. $$1207 = 3;
  18628. }
  18629. } else {
  18630. $42 = $37 & 1;
  18631. $43 = ($42|0)==(0);
  18632. if ($43) {
  18633. $$1207 = $$0206;
  18634. } else {
  18635. label = 22;
  18636. break L7;
  18637. }
  18638. }
  18639. $44 = (_stbi__get8($8)|0);
  18640. $45 = ($44<<24>>24)==(0);
  18641. if (!($45)) {
  18642. label = 24;
  18643. break L7;
  18644. }
  18645. $46 = (_stbi__get8($8)|0);
  18646. $47 = ($46<<24>>24)==(0);
  18647. if (!($47)) {
  18648. label = 26;
  18649. break L7;
  18650. }
  18651. $48 = (_stbi__get8($8)|0);
  18652. $49 = $48&255;
  18653. $50 = ($48&255)>(1);
  18654. if ($50) {
  18655. label = 28;
  18656. break L7;
  18657. }
  18658. $51 = HEAP32[$8>>2]|0;
  18659. $52 = ($51|0)==(0);
  18660. if ($52) {
  18661. label = 31;
  18662. break L7;
  18663. }
  18664. $53 = HEAP32[$16>>2]|0;
  18665. $54 = ($53|0)==(0);
  18666. if ($54) {
  18667. label = 31;
  18668. break L7;
  18669. }
  18670. $55 = ($$1207<<24>>24)==(0);
  18671. $56 = (1073741824 / ($51>>>0))&-1;
  18672. if (!($55)) {
  18673. HEAP32[$20>>2] = 1;
  18674. $63 = $56 >>> 2;
  18675. $64 = ($63>>>0)<($53>>>0);
  18676. if ($64) {
  18677. label = 37;
  18678. break L7;
  18679. } else {
  18680. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $37;$$2237 = $49;$$2243 = 0;$$3209 = $$1207;$$3220 = $$0217;
  18681. break;
  18682. }
  18683. }
  18684. $57 = $37 & 2;
  18685. $58 = $57 | 1;
  18686. $59 = $37 >>> 2;
  18687. $$lobit = $59 & 1;
  18688. $60 = (($58) + ($$lobit))|0;
  18689. HEAP32[$18>>2] = $60;
  18690. $61 = (($56>>>0) / ($60>>>0))&-1;
  18691. $62 = ($61>>>0)<($53>>>0);
  18692. if ($62) {
  18693. label = 34;
  18694. break L7;
  18695. }
  18696. if ($19) {
  18697. $$6$ph = 1;
  18698. break L7;
  18699. } else {
  18700. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $37;$$2237 = $49;$$2243 = 0;$$3209 = 0;$$3220 = $$0217;
  18701. break;
  18702. }
  18703. }
  18704. $switch$split142D = ($25|0)<(1951551059);
  18705. if ($switch$split142D) {
  18706. switch ($25|0) {
  18707. case 1347179589: {
  18708. break;
  18709. }
  18710. default: {
  18711. label = 103;
  18712. break L9;
  18713. }
  18714. }
  18715. $65 = ($$0241|0)==(0);
  18716. if (!($65)) {
  18717. label = 39;
  18718. break L7;
  18719. }
  18720. $66 = HEAP32[$6>>2]|0;
  18721. $67 = ($66>>>0)>(768);
  18722. if ($67) {
  18723. label = 41;
  18724. break L7;
  18725. }
  18726. $68 = (($66>>>0) / 3)&-1;
  18727. $69 = ($68*3)|0;
  18728. $70 = ($69|0)==($66|0);
  18729. if (!($70)) {
  18730. label = 44;
  18731. break L7;
  18732. }
  18733. $71 = ($66>>>0)>(2);
  18734. if ($71) {
  18735. $$0226593 = 0;
  18736. } else {
  18737. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $68;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = $$0206;$$3220 = $$0217;
  18738. break;
  18739. }
  18740. while(1) {
  18741. $72 = (_stbi__get8($8)|0);
  18742. $73 = $$0226593 << 2;
  18743. $74 = (($3) + ($73)|0);
  18744. HEAP8[$74>>0] = $72;
  18745. $75 = (_stbi__get8($8)|0);
  18746. $76 = $73 | 1;
  18747. $77 = (($3) + ($76)|0);
  18748. HEAP8[$77>>0] = $75;
  18749. $78 = (_stbi__get8($8)|0);
  18750. $79 = $73 | 2;
  18751. $80 = (($3) + ($79)|0);
  18752. HEAP8[$80>>0] = $78;
  18753. $81 = $73 | 3;
  18754. $82 = (($3) + ($81)|0);
  18755. HEAP8[$82>>0] = -1;
  18756. $83 = (($$0226593) + 1)|0;
  18757. $84 = ($83>>>0)<($68>>>0);
  18758. if ($84) {
  18759. $$0226593 = $83;
  18760. } else {
  18761. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $68;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$0217;
  18762. break L9;
  18763. }
  18764. }
  18765. }
  18766. switch ($25|0) {
  18767. case 1951551059: {
  18768. break;
  18769. }
  18770. default: {
  18771. label = 103;
  18772. break L9;
  18773. }
  18774. }
  18775. $85 = ($$0241|0)==(0);
  18776. if (!($85)) {
  18777. label = 47;
  18778. break L7;
  18779. }
  18780. $86 = HEAP32[$10>>2]|0;
  18781. $87 = ($86|0)==(0|0);
  18782. if (!($87)) {
  18783. label = 49;
  18784. break L7;
  18785. }
  18786. $88 = ($$0206<<24>>24)==(0);
  18787. if (!($88)) {
  18788. if ($23) {
  18789. label = 52;
  18790. break L7;
  18791. }
  18792. $90 = ($$0245|0)==(0);
  18793. if ($90) {
  18794. label = 54;
  18795. break L7;
  18796. }
  18797. $91 = HEAP32[$6>>2]|0;
  18798. $92 = ($91>>>0)>($$0245>>>0);
  18799. if ($92) {
  18800. label = 58;
  18801. break L7;
  18802. }
  18803. $93 = HEAP32[$6>>2]|0;
  18804. $94 = ($93|0)==(0);
  18805. if ($94) {
  18806. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = 4;$$3220 = $$0217;
  18807. break;
  18808. }
  18809. $95 = HEAP32[$6>>2]|0;
  18810. $$1227588 = 0;
  18811. while(1) {
  18812. $96 = (_stbi__get8($8)|0);
  18813. $97 = $$1227588 << 2;
  18814. $98 = $97 | 3;
  18815. $99 = (($3) + ($98)|0);
  18816. HEAP8[$99>>0] = $96;
  18817. $100 = (($$1227588) + 1)|0;
  18818. $101 = ($100>>>0)<($95>>>0);
  18819. if ($101) {
  18820. $$1227588 = $100;
  18821. } else {
  18822. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = 4;$$3220 = $$0217;
  18823. break L9;
  18824. }
  18825. }
  18826. }
  18827. $102 = HEAP32[$21>>2]|0;
  18828. $103 = $102 & 1;
  18829. $104 = ($103|0)==(0);
  18830. if ($104) {
  18831. label = 61;
  18832. break L7;
  18833. }
  18834. $105 = HEAP32[$6>>2]|0;
  18835. $106 = $102 << 1;
  18836. $107 = ($105|0)==($106|0);
  18837. if (!($107)) {
  18838. label = 63;
  18839. break L7;
  18840. }
  18841. $108 = HEAP32[$22>>2]|0;
  18842. $109 = ($108|0)==(16);
  18843. $110 = HEAP32[$21>>2]|0;
  18844. $111 = ($110|0)>(0);
  18845. if ($109) {
  18846. if ($111) {
  18847. $$0239591 = 0;
  18848. } else {
  18849. $$1212 = 1;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = 0;$$3220 = $$0217;
  18850. break;
  18851. }
  18852. while(1) {
  18853. $112 = (_stbi__get16be($8)|0);
  18854. $113 = $112&65535;
  18855. $114 = (($5) + ($$0239591<<1)|0);
  18856. HEAP16[$114>>1] = $113;
  18857. $115 = (($$0239591) + 1)|0;
  18858. $116 = HEAP32[$21>>2]|0;
  18859. $117 = ($115|0)<($116|0);
  18860. if ($117) {
  18861. $$0239591 = $115;
  18862. } else {
  18863. $$1212 = 1;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$0217;
  18864. break;
  18865. }
  18866. }
  18867. } else {
  18868. if ($111) {
  18869. $$1240589 = 0;
  18870. } else {
  18871. $$1212 = 1;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = 0;$$3220 = $$0217;
  18872. break;
  18873. }
  18874. while(1) {
  18875. $118 = (_stbi__get16be($8)|0);
  18876. $119 = $118 & 255;
  18877. $120 = HEAP32[$22>>2]|0;
  18878. $121 = (10246 + ($120)|0);
  18879. $122 = HEAP8[$121>>0]|0;
  18880. $123 = $122&255;
  18881. $124 = Math_imul($123, $119)|0;
  18882. $125 = $124&255;
  18883. $126 = (($4) + ($$1240589)|0);
  18884. HEAP8[$126>>0] = $125;
  18885. $127 = (($$1240589) + 1)|0;
  18886. $128 = HEAP32[$21>>2]|0;
  18887. $129 = ($127|0)<($128|0);
  18888. if ($129) {
  18889. $$1240589 = $127;
  18890. } else {
  18891. $$1212 = 1;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$0217;
  18892. break;
  18893. }
  18894. }
  18895. }
  18896. }
  18897. } while(0);
  18898. if ((label|0) == 103) {
  18899. label = 0;
  18900. $202 = ($$0241|0)==(0);
  18901. if (!($202)) {
  18902. label = 104;
  18903. break;
  18904. }
  18905. $203 = $25 & 536870912;
  18906. $204 = ($203|0)==(0);
  18907. if ($204) {
  18908. label = 106;
  18909. break;
  18910. }
  18911. $213 = HEAP32[$6>>2]|0;
  18912. _stbi__skip($8,$213);
  18913. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = $$0206;$$3220 = $$0217;
  18914. }
  18915. (_stbi__get32be($8)|0);
  18916. $$0206 = $$3209;$$0211 = $$1212;$$0214 = $$1215;$$0217 = $$3220;$$0228 = $$1229;$$0231 = $$2233;$$0235 = $$2237;$$0241 = $$2243;$$0245 = $$1246;
  18917. }
  18918. switch (label|0) {
  18919. case 7: {
  18920. _stbi__err(10020);
  18921. $$6$ph = 0;
  18922. break;
  18923. }
  18924. case 9: {
  18925. _stbi__err(10034);
  18926. $$6$ph = 0;
  18927. break;
  18928. }
  18929. case 11: {
  18930. _stbi__err(10047);
  18931. $$6$ph = 0;
  18932. break;
  18933. }
  18934. case 13: {
  18935. _stbi__err(10047);
  18936. $$6$ph = 0;
  18937. break;
  18938. }
  18939. case 15: {
  18940. _stbi__err(10057);
  18941. $$6$ph = 0;
  18942. break;
  18943. }
  18944. case 17: {
  18945. _stbi__err(10077);
  18946. $$6$ph = 0;
  18947. break;
  18948. }
  18949. case 20: {
  18950. _stbi__err(10077);
  18951. $$6$ph = 0;
  18952. break;
  18953. }
  18954. case 22: {
  18955. _stbi__err(10077);
  18956. $$6$ph = 0;
  18957. break;
  18958. }
  18959. case 24: {
  18960. _stbi__err(10087);
  18961. $$6$ph = 0;
  18962. break;
  18963. }
  18964. case 26: {
  18965. _stbi__err(10103);
  18966. $$6$ph = 0;
  18967. break;
  18968. }
  18969. case 28: {
  18970. _stbi__err(10121);
  18971. $$6$ph = 0;
  18972. break;
  18973. }
  18974. case 31: {
  18975. _stbi__err(10142);
  18976. $$6$ph = 0;
  18977. break;
  18978. }
  18979. case 34: {
  18980. _stbi__err(10047);
  18981. $$6$ph = 0;
  18982. break;
  18983. }
  18984. case 37: {
  18985. _stbi__err(10047);
  18986. $$6$ph = 0;
  18987. break;
  18988. }
  18989. case 39: {
  18990. _stbi__err(10156);
  18991. $$6$ph = 0;
  18992. break;
  18993. }
  18994. case 41: {
  18995. _stbi__err(10171);
  18996. $$6$ph = 0;
  18997. break;
  18998. }
  18999. case 44: {
  19000. _stbi__err(10171);
  19001. $$6$ph = 0;
  19002. break;
  19003. }
  19004. case 47: {
  19005. _stbi__err(10156);
  19006. $$6$ph = 0;
  19007. break;
  19008. }
  19009. case 49: {
  19010. _stbi__err(10184);
  19011. $$6$ph = 0;
  19012. break;
  19013. }
  19014. case 52: {
  19015. $89 = ((($8)) + 8|0);
  19016. HEAP32[$89>>2] = 4;
  19017. $$6$ph = 1;
  19018. break;
  19019. }
  19020. case 54: {
  19021. _stbi__err(10200);
  19022. $$6$ph = 0;
  19023. break;
  19024. }
  19025. case 58: {
  19026. _stbi__err(10217);
  19027. $$6$ph = 0;
  19028. break;
  19029. }
  19030. case 61: {
  19031. _stbi__err(10230);
  19032. $$6$ph = 0;
  19033. break;
  19034. }
  19035. case 63: {
  19036. _stbi__err(10217);
  19037. $$6$ph = 0;
  19038. break;
  19039. }
  19040. case 70: {
  19041. _stbi__err(10156);
  19042. $$6$ph = 0;
  19043. break;
  19044. }
  19045. case 72: {
  19046. _stbi__err(10255);
  19047. $$6$ph = 0;
  19048. break;
  19049. }
  19050. case 74: {
  19051. $133 = $$0206&255;
  19052. $134 = ((($8)) + 8|0);
  19053. HEAP32[$134>>2] = $133;
  19054. $$6$ph = 1;
  19055. break;
  19056. }
  19057. case 81: {
  19058. _stbi__err(9902);
  19059. $$6$ph = 0;
  19060. break;
  19061. }
  19062. case 83: {
  19063. _stbi__err(10263);
  19064. $$6$ph = 0;
  19065. break;
  19066. }
  19067. case 85: {
  19068. $156 = ($$0241|0)==(0);
  19069. do {
  19070. if ($156) {
  19071. $157 = ($1|0)==(0);
  19072. if ($157) {
  19073. $158 = HEAP32[$10>>2]|0;
  19074. $159 = ($158|0)==(0|0);
  19075. if ($159) {
  19076. _stbi__err(10273);
  19077. $$4 = 0;
  19078. break;
  19079. }
  19080. $160 = HEAP32[$8>>2]|0;
  19081. $161 = ((($0)) + 16|0);
  19082. $162 = HEAP32[$161>>2]|0;
  19083. $163 = Math_imul($162, $160)|0;
  19084. $164 = (($163) + 7)|0;
  19085. $165 = $164 >>> 3;
  19086. $166 = ((($8)) + 4|0);
  19087. $167 = HEAP32[$166>>2]|0;
  19088. $168 = ((($8)) + 8|0);
  19089. $169 = HEAP32[$168>>2]|0;
  19090. $170 = Math_imul($169, $167)|0;
  19091. $171 = Math_imul($170, $165)|0;
  19092. $172 = (($171) + ($167))|0;
  19093. HEAP32[$7>>2] = $172;
  19094. $173 = ($$0228|0)!=(0);
  19095. $174 = $173 ^ 1;
  19096. $175 = $174&1;
  19097. $176 = (_stbi_zlib_decode_malloc_guesssize_headerflag($158,$$0214,$172,$7,$175)|0);
  19098. HEAP32[$9>>2] = $176;
  19099. $177 = ($176|0)==(0|0);
  19100. if ($177) {
  19101. $$4 = 0;
  19102. } else {
  19103. $178 = HEAP32[$10>>2]|0;
  19104. _free($178);
  19105. HEAP32[$10>>2] = 0;
  19106. $179 = HEAP32[$168>>2]|0;
  19107. $180 = (($179) + 1)|0;
  19108. $notlhs = ($180|0)!=($2|0);
  19109. $notrhs = ($2|0)==(3);
  19110. $or$cond5$not = $notrhs | $notlhs;
  19111. $181 = ($$0206<<24>>24)!=(0);
  19112. $or$cond7 = $181 | $or$cond5$not;
  19113. $182 = ($$0211<<24>>24)==(0);
  19114. $or$cond248 = $182 & $or$cond7;
  19115. $$254 = $or$cond248 ? $179 : $180;
  19116. $183 = ((($8)) + 12|0);
  19117. HEAP32[$183>>2] = $$254;
  19118. $184 = HEAP32[$9>>2]|0;
  19119. $185 = HEAP32[$7>>2]|0;
  19120. $186 = HEAP32[$161>>2]|0;
  19121. $187 = (_stbi__create_png_image($0,$184,$185,$$254,$186,$$0231,$$0235)|0);
  19122. $188 = ($187|0)==(0);
  19123. if ($188) {
  19124. $$4 = 0;
  19125. } else {
  19126. do {
  19127. if (!($182)) {
  19128. $189 = HEAP32[$161>>2]|0;
  19129. $190 = ($189|0)==(16);
  19130. if ($190) {
  19131. $191 = HEAP32[$183>>2]|0;
  19132. _stbi__compute_transparency16($0,$5,$191);
  19133. break;
  19134. } else {
  19135. $192 = HEAP32[$183>>2]|0;
  19136. _stbi__compute_transparency($0,$4,$192);
  19137. break;
  19138. }
  19139. }
  19140. } while(0);
  19141. $193 = HEAP32[5270]|0;
  19142. $194 = ($193|0)!=(0);
  19143. $or$cond11 = $173 & $194;
  19144. if ($or$cond11) {
  19145. $195 = HEAP32[$183>>2]|0;
  19146. $196 = ($195|0)>(2);
  19147. if ($196) {
  19148. _stbi__de_iphone($0);
  19149. }
  19150. }
  19151. if ($181) {
  19152. $197 = $$0206&255;
  19153. HEAP32[$168>>2] = $197;
  19154. $198 = ($2|0)>(2);
  19155. $$ = $198 ? $2 : $197;
  19156. HEAP32[$183>>2] = $$;
  19157. $199 = (_stbi__expand_png_palette($0,$3,$$)|0);
  19158. $200 = ($199|0)==(0);
  19159. if ($200) {
  19160. $$4 = 0;
  19161. break;
  19162. }
  19163. }
  19164. $201 = HEAP32[$9>>2]|0;
  19165. _free($201);
  19166. HEAP32[$9>>2] = 0;
  19167. $$4 = 1;
  19168. }
  19169. }
  19170. } else {
  19171. $$4 = 1;
  19172. }
  19173. } else {
  19174. _stbi__err(10156);
  19175. $$4 = 0;
  19176. }
  19177. } while(0);
  19178. $$6$ph = $$4;
  19179. break;
  19180. }
  19181. case 104: {
  19182. _stbi__err(10156);
  19183. $$6$ph = 0;
  19184. break;
  19185. }
  19186. case 106: {
  19187. $205 = $25 >>> 24;
  19188. $206 = $205&255;
  19189. HEAP8[10281] = $206;
  19190. $207 = HEAP32[$15>>2]|0;
  19191. $208 = $207 >>> 16;
  19192. $209 = $208&255;
  19193. HEAP8[(10282)>>0] = $209;
  19194. $210 = $207 >>> 8;
  19195. $211 = $210&255;
  19196. HEAP8[(10283)>>0] = $211;
  19197. $212 = $207&255;
  19198. HEAP8[(10284)>>0] = $212;
  19199. _stbi__err(10281);
  19200. $$6$ph = 0;
  19201. break;
  19202. }
  19203. }
  19204. $$7 = $$6$ph;
  19205. STACKTOP = sp;return ($$7|0);
  19206. }
  19207. function _stbi__convert_format($0,$1,$2,$3,$4) {
  19208. $0 = $0|0;
  19209. $1 = $1|0;
  19210. $2 = $2|0;
  19211. $3 = $3|0;
  19212. $4 = $4|0;
  19213. var $$0151255 = 0, $$0163 = 0, $$0164259 = 0, $$0165 = 0, $$0165254 = 0, $$0165257 = 0, $$0256 = 0, $$10161205 = 0, $$10175 = 0, $$10175204 = 0, $$10175207 = 0, $$10206 = 0, $$11162201 = 0, $$11176 = 0, $$11176200 = 0, $$11176203 = 0, $$11202 = 0, $$1152250 = 0, $$1166 = 0, $$1166249 = 0;
  19214. var $$1166252 = 0, $$1251 = 0, $$2153245 = 0, $$2167 = 0, $$2167244 = 0, $$2167247 = 0, $$2246 = 0, $$3154240 = 0, $$3168 = 0, $$3168239 = 0, $$3168242 = 0, $$3241 = 0, $$4155235 = 0, $$4169 = 0, $$4169234 = 0, $$4169237 = 0, $$4236 = 0, $$5156230 = 0, $$5170 = 0, $$5170229 = 0;
  19215. var $$5170232 = 0, $$5231 = 0, $$6157225 = 0, $$6171 = 0, $$6171224 = 0, $$6171227 = 0, $$6226 = 0, $$7158220 = 0, $$7172 = 0, $$7172219 = 0, $$7172222 = 0, $$7221 = 0, $$8159215 = 0, $$8173 = 0, $$8173214 = 0, $$8173217 = 0, $$8216 = 0, $$9160210 = 0, $$9174 = 0, $$9174209 = 0;
  19216. var $$9174212 = 0, $$9211 = 0, $$off = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0, $114 = 0;
  19217. var $115 = 0, $116 = 0, $117 = 0, $118 = 0, $119 = 0, $12 = 0, $120 = 0, $121 = 0, $122 = 0, $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 0, $128 = 0, $129 = 0, $13 = 0, $130 = 0, $131 = 0, $132 = 0;
  19218. var $133 = 0, $134 = 0, $135 = 0, $136 = 0, $137 = 0, $138 = 0, $139 = 0, $14 = 0, $140 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0;
  19219. var $26 = 0, $27 = 0, $28 = 0, $29 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0;
  19220. var $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0;
  19221. var $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0, $81 = 0;
  19222. var $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0, $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, label = 0;
  19223. var sp = 0;
  19224. sp = STACKTOP;
  19225. $5 = ($2|0)==($1|0);
  19226. if ($5) {
  19227. $$0163 = $0;
  19228. return ($$0163|0);
  19229. }
  19230. $$off = (($2) + -1)|0;
  19231. $6 = ($$off>>>0)<(4);
  19232. if (!($6)) {
  19233. ___assert_fail((9943|0),(9847|0),1477,(9999|0));
  19234. // unreachable;
  19235. }
  19236. $7 = (_stbi__malloc_mad3($2,$3,$4)|0);
  19237. $8 = ($7|0)==(0|0);
  19238. if ($8) {
  19239. _free($0);
  19240. _stbi__err(9902);
  19241. $$0163 = 0;
  19242. return ($$0163|0);
  19243. }
  19244. $9 = ($4|0)>(0);
  19245. L11: do {
  19246. if ($9) {
  19247. $10 = $1 << 3;
  19248. $11 = (($10) + ($2))|0;
  19249. $$0165254 = (($3) + -1)|0;
  19250. $12 = ($$0165254|0)>(-1);
  19251. $$1166249 = (($3) + -1)|0;
  19252. $13 = ($$1166249|0)>(-1);
  19253. $$2167244 = (($3) + -1)|0;
  19254. $14 = ($$2167244|0)>(-1);
  19255. $$3168239 = (($3) + -1)|0;
  19256. $15 = ($$3168239|0)>(-1);
  19257. $$4169234 = (($3) + -1)|0;
  19258. $16 = ($$4169234|0)>(-1);
  19259. $$5170229 = (($3) + -1)|0;
  19260. $17 = ($$5170229|0)>(-1);
  19261. $$6171224 = (($3) + -1)|0;
  19262. $18 = ($$6171224|0)>(-1);
  19263. $$7172219 = (($3) + -1)|0;
  19264. $19 = ($$7172219|0)>(-1);
  19265. $$8173214 = (($3) + -1)|0;
  19266. $20 = ($$8173214|0)>(-1);
  19267. $$9174209 = (($3) + -1)|0;
  19268. $21 = ($$9174209|0)>(-1);
  19269. $$10175204 = (($3) + -1)|0;
  19270. $22 = ($$10175204|0)>(-1);
  19271. $$11176200 = (($3) + -1)|0;
  19272. $23 = ($$11176200|0)>(-1);
  19273. $$0164259 = 0;
  19274. L13: while(1) {
  19275. $24 = Math_imul($$0164259, $3)|0;
  19276. $25 = Math_imul($24, $1)|0;
  19277. $26 = (($0) + ($25)|0);
  19278. $27 = Math_imul($24, $2)|0;
  19279. $28 = (($7) + ($27)|0);
  19280. do {
  19281. switch ($11|0) {
  19282. case 10: {
  19283. if ($12) {
  19284. $$0151255 = $26;$$0165257 = $$0165254;$$0256 = $28;
  19285. while(1) {
  19286. $29 = HEAP8[$$0151255>>0]|0;
  19287. HEAP8[$$0256>>0] = $29;
  19288. $30 = ((($$0256)) + 1|0);
  19289. HEAP8[$30>>0] = -1;
  19290. $31 = ((($$0151255)) + 1|0);
  19291. $32 = ((($$0256)) + 2|0);
  19292. $$0165 = (($$0165257) + -1)|0;
  19293. $33 = ($$0165|0)>(-1);
  19294. if ($33) {
  19295. $$0151255 = $31;$$0165257 = $$0165;$$0256 = $32;
  19296. } else {
  19297. break;
  19298. }
  19299. }
  19300. }
  19301. break;
  19302. }
  19303. case 11: {
  19304. if ($13) {
  19305. $$1152250 = $26;$$1166252 = $$1166249;$$1251 = $28;
  19306. while(1) {
  19307. $34 = HEAP8[$$1152250>>0]|0;
  19308. $35 = ((($$1251)) + 2|0);
  19309. HEAP8[$35>>0] = $34;
  19310. $36 = ((($$1251)) + 1|0);
  19311. HEAP8[$36>>0] = $34;
  19312. HEAP8[$$1251>>0] = $34;
  19313. $37 = ((($$1152250)) + 1|0);
  19314. $38 = ((($$1251)) + 3|0);
  19315. $$1166 = (($$1166252) + -1)|0;
  19316. $39 = ($$1166|0)>(-1);
  19317. if ($39) {
  19318. $$1152250 = $37;$$1166252 = $$1166;$$1251 = $38;
  19319. } else {
  19320. break;
  19321. }
  19322. }
  19323. }
  19324. break;
  19325. }
  19326. case 12: {
  19327. if ($14) {
  19328. $$2153245 = $26;$$2167247 = $$2167244;$$2246 = $28;
  19329. while(1) {
  19330. $40 = HEAP8[$$2153245>>0]|0;
  19331. $41 = ((($$2246)) + 2|0);
  19332. HEAP8[$41>>0] = $40;
  19333. $42 = ((($$2246)) + 1|0);
  19334. HEAP8[$42>>0] = $40;
  19335. HEAP8[$$2246>>0] = $40;
  19336. $43 = ((($$2246)) + 3|0);
  19337. HEAP8[$43>>0] = -1;
  19338. $44 = ((($$2153245)) + 1|0);
  19339. $45 = ((($$2246)) + 4|0);
  19340. $$2167 = (($$2167247) + -1)|0;
  19341. $46 = ($$2167|0)>(-1);
  19342. if ($46) {
  19343. $$2153245 = $44;$$2167247 = $$2167;$$2246 = $45;
  19344. } else {
  19345. break;
  19346. }
  19347. }
  19348. }
  19349. break;
  19350. }
  19351. case 17: {
  19352. if ($15) {
  19353. $$3154240 = $26;$$3168242 = $$3168239;$$3241 = $28;
  19354. while(1) {
  19355. $47 = HEAP8[$$3154240>>0]|0;
  19356. HEAP8[$$3241>>0] = $47;
  19357. $48 = ((($$3154240)) + 2|0);
  19358. $49 = ((($$3241)) + 1|0);
  19359. $$3168 = (($$3168242) + -1)|0;
  19360. $50 = ($$3168|0)>(-1);
  19361. if ($50) {
  19362. $$3154240 = $48;$$3168242 = $$3168;$$3241 = $49;
  19363. } else {
  19364. break;
  19365. }
  19366. }
  19367. }
  19368. break;
  19369. }
  19370. case 19: {
  19371. if ($16) {
  19372. $$4155235 = $26;$$4169237 = $$4169234;$$4236 = $28;
  19373. while(1) {
  19374. $51 = HEAP8[$$4155235>>0]|0;
  19375. $52 = ((($$4236)) + 2|0);
  19376. HEAP8[$52>>0] = $51;
  19377. $53 = ((($$4236)) + 1|0);
  19378. HEAP8[$53>>0] = $51;
  19379. HEAP8[$$4236>>0] = $51;
  19380. $54 = ((($$4155235)) + 2|0);
  19381. $55 = ((($$4236)) + 3|0);
  19382. $$4169 = (($$4169237) + -1)|0;
  19383. $56 = ($$4169|0)>(-1);
  19384. if ($56) {
  19385. $$4155235 = $54;$$4169237 = $$4169;$$4236 = $55;
  19386. } else {
  19387. break;
  19388. }
  19389. }
  19390. }
  19391. break;
  19392. }
  19393. case 20: {
  19394. if ($17) {
  19395. $$5156230 = $26;$$5170232 = $$5170229;$$5231 = $28;
  19396. while(1) {
  19397. $57 = HEAP8[$$5156230>>0]|0;
  19398. $58 = ((($$5231)) + 2|0);
  19399. HEAP8[$58>>0] = $57;
  19400. $59 = ((($$5231)) + 1|0);
  19401. HEAP8[$59>>0] = $57;
  19402. HEAP8[$$5231>>0] = $57;
  19403. $60 = ((($$5156230)) + 1|0);
  19404. $61 = HEAP8[$60>>0]|0;
  19405. $62 = ((($$5231)) + 3|0);
  19406. HEAP8[$62>>0] = $61;
  19407. $63 = ((($$5156230)) + 2|0);
  19408. $64 = ((($$5231)) + 4|0);
  19409. $$5170 = (($$5170232) + -1)|0;
  19410. $65 = ($$5170|0)>(-1);
  19411. if ($65) {
  19412. $$5156230 = $63;$$5170232 = $$5170;$$5231 = $64;
  19413. } else {
  19414. break;
  19415. }
  19416. }
  19417. }
  19418. break;
  19419. }
  19420. case 28: {
  19421. if ($18) {
  19422. $$6157225 = $26;$$6171227 = $$6171224;$$6226 = $28;
  19423. while(1) {
  19424. $66 = HEAP8[$$6157225>>0]|0;
  19425. HEAP8[$$6226>>0] = $66;
  19426. $67 = ((($$6157225)) + 1|0);
  19427. $68 = HEAP8[$67>>0]|0;
  19428. $69 = ((($$6226)) + 1|0);
  19429. HEAP8[$69>>0] = $68;
  19430. $70 = ((($$6157225)) + 2|0);
  19431. $71 = HEAP8[$70>>0]|0;
  19432. $72 = ((($$6226)) + 2|0);
  19433. HEAP8[$72>>0] = $71;
  19434. $73 = ((($$6226)) + 3|0);
  19435. HEAP8[$73>>0] = -1;
  19436. $74 = ((($$6157225)) + 3|0);
  19437. $75 = ((($$6226)) + 4|0);
  19438. $$6171 = (($$6171227) + -1)|0;
  19439. $76 = ($$6171|0)>(-1);
  19440. if ($76) {
  19441. $$6157225 = $74;$$6171227 = $$6171;$$6226 = $75;
  19442. } else {
  19443. break;
  19444. }
  19445. }
  19446. }
  19447. break;
  19448. }
  19449. case 25: {
  19450. if ($19) {
  19451. $$7158220 = $26;$$7172222 = $$7172219;$$7221 = $28;
  19452. while(1) {
  19453. $77 = HEAP8[$$7158220>>0]|0;
  19454. $78 = $77&255;
  19455. $79 = ((($$7158220)) + 1|0);
  19456. $80 = HEAP8[$79>>0]|0;
  19457. $81 = $80&255;
  19458. $82 = ((($$7158220)) + 2|0);
  19459. $83 = HEAP8[$82>>0]|0;
  19460. $84 = $83&255;
  19461. $85 = (_stbi__compute_y($78,$81,$84)|0);
  19462. HEAP8[$$7221>>0] = $85;
  19463. $86 = ((($$7158220)) + 3|0);
  19464. $87 = ((($$7221)) + 1|0);
  19465. $$7172 = (($$7172222) + -1)|0;
  19466. $88 = ($$7172|0)>(-1);
  19467. if ($88) {
  19468. $$7158220 = $86;$$7172222 = $$7172;$$7221 = $87;
  19469. } else {
  19470. break;
  19471. }
  19472. }
  19473. }
  19474. break;
  19475. }
  19476. case 26: {
  19477. if ($20) {
  19478. $$8159215 = $26;$$8173217 = $$8173214;$$8216 = $28;
  19479. while(1) {
  19480. $89 = HEAP8[$$8159215>>0]|0;
  19481. $90 = $89&255;
  19482. $91 = ((($$8159215)) + 1|0);
  19483. $92 = HEAP8[$91>>0]|0;
  19484. $93 = $92&255;
  19485. $94 = ((($$8159215)) + 2|0);
  19486. $95 = HEAP8[$94>>0]|0;
  19487. $96 = $95&255;
  19488. $97 = (_stbi__compute_y($90,$93,$96)|0);
  19489. HEAP8[$$8216>>0] = $97;
  19490. $98 = ((($$8216)) + 1|0);
  19491. HEAP8[$98>>0] = -1;
  19492. $99 = ((($$8159215)) + 3|0);
  19493. $100 = ((($$8216)) + 2|0);
  19494. $$8173 = (($$8173217) + -1)|0;
  19495. $101 = ($$8173|0)>(-1);
  19496. if ($101) {
  19497. $$8159215 = $99;$$8173217 = $$8173;$$8216 = $100;
  19498. } else {
  19499. break;
  19500. }
  19501. }
  19502. }
  19503. break;
  19504. }
  19505. case 33: {
  19506. if ($21) {
  19507. $$9160210 = $26;$$9174212 = $$9174209;$$9211 = $28;
  19508. while(1) {
  19509. $102 = HEAP8[$$9160210>>0]|0;
  19510. $103 = $102&255;
  19511. $104 = ((($$9160210)) + 1|0);
  19512. $105 = HEAP8[$104>>0]|0;
  19513. $106 = $105&255;
  19514. $107 = ((($$9160210)) + 2|0);
  19515. $108 = HEAP8[$107>>0]|0;
  19516. $109 = $108&255;
  19517. $110 = (_stbi__compute_y($103,$106,$109)|0);
  19518. HEAP8[$$9211>>0] = $110;
  19519. $111 = ((($$9160210)) + 4|0);
  19520. $112 = ((($$9211)) + 1|0);
  19521. $$9174 = (($$9174212) + -1)|0;
  19522. $113 = ($$9174|0)>(-1);
  19523. if ($113) {
  19524. $$9160210 = $111;$$9174212 = $$9174;$$9211 = $112;
  19525. } else {
  19526. break;
  19527. }
  19528. }
  19529. }
  19530. break;
  19531. }
  19532. case 34: {
  19533. if ($22) {
  19534. $$10161205 = $26;$$10175207 = $$10175204;$$10206 = $28;
  19535. while(1) {
  19536. $114 = HEAP8[$$10161205>>0]|0;
  19537. $115 = $114&255;
  19538. $116 = ((($$10161205)) + 1|0);
  19539. $117 = HEAP8[$116>>0]|0;
  19540. $118 = $117&255;
  19541. $119 = ((($$10161205)) + 2|0);
  19542. $120 = HEAP8[$119>>0]|0;
  19543. $121 = $120&255;
  19544. $122 = (_stbi__compute_y($115,$118,$121)|0);
  19545. HEAP8[$$10206>>0] = $122;
  19546. $123 = ((($$10161205)) + 3|0);
  19547. $124 = HEAP8[$123>>0]|0;
  19548. $125 = ((($$10206)) + 1|0);
  19549. HEAP8[$125>>0] = $124;
  19550. $126 = ((($$10161205)) + 4|0);
  19551. $127 = ((($$10206)) + 2|0);
  19552. $$10175 = (($$10175207) + -1)|0;
  19553. $128 = ($$10175|0)>(-1);
  19554. if ($128) {
  19555. $$10161205 = $126;$$10175207 = $$10175;$$10206 = $127;
  19556. } else {
  19557. break;
  19558. }
  19559. }
  19560. }
  19561. break;
  19562. }
  19563. case 35: {
  19564. if ($23) {
  19565. $$11162201 = $26;$$11176203 = $$11176200;$$11202 = $28;
  19566. while(1) {
  19567. $129 = HEAP8[$$11162201>>0]|0;
  19568. HEAP8[$$11202>>0] = $129;
  19569. $130 = ((($$11162201)) + 1|0);
  19570. $131 = HEAP8[$130>>0]|0;
  19571. $132 = ((($$11202)) + 1|0);
  19572. HEAP8[$132>>0] = $131;
  19573. $133 = ((($$11162201)) + 2|0);
  19574. $134 = HEAP8[$133>>0]|0;
  19575. $135 = ((($$11202)) + 2|0);
  19576. HEAP8[$135>>0] = $134;
  19577. $136 = ((($$11162201)) + 4|0);
  19578. $137 = ((($$11202)) + 3|0);
  19579. $$11176 = (($$11176203) + -1)|0;
  19580. $138 = ($$11176|0)>(-1);
  19581. if ($138) {
  19582. $$11162201 = $136;$$11176203 = $$11176;$$11202 = $137;
  19583. } else {
  19584. break;
  19585. }
  19586. }
  19587. }
  19588. break;
  19589. }
  19590. default: {
  19591. break L13;
  19592. }
  19593. }
  19594. } while(0);
  19595. $139 = (($$0164259) + 1)|0;
  19596. $140 = ($139|0)<($4|0);
  19597. if ($140) {
  19598. $$0164259 = $139;
  19599. } else {
  19600. break L11;
  19601. }
  19602. }
  19603. ___assert_fail((9997|0),(9847|0),1506,(9999|0));
  19604. // unreachable;
  19605. }
  19606. } while(0);
  19607. _free($0);
  19608. $$0163 = $7;
  19609. return ($$0163|0);
  19610. }
  19611. function _stbi__convert_format16($0,$1,$2,$3,$4) {
  19612. $0 = $0|0;
  19613. $1 = $1|0;
  19614. $2 = $2|0;
  19615. $3 = $3|0;
  19616. $4 = $4|0;
  19617. var $$0151255 = 0, $$0163 = 0, $$0164259 = 0, $$0165 = 0, $$0165254 = 0, $$0165257 = 0, $$0256 = 0, $$10161205 = 0, $$10175 = 0, $$10175204 = 0, $$10175207 = 0, $$10206 = 0, $$11162201 = 0, $$11176 = 0, $$11176200 = 0, $$11176203 = 0, $$11202 = 0, $$1152250 = 0, $$1166 = 0, $$1166249 = 0;
  19618. var $$1166252 = 0, $$1251 = 0, $$2153245 = 0, $$2167 = 0, $$2167244 = 0, $$2167247 = 0, $$2246 = 0, $$3154240 = 0, $$3168 = 0, $$3168239 = 0, $$3168242 = 0, $$3241 = 0, $$4155235 = 0, $$4169 = 0, $$4169234 = 0, $$4169237 = 0, $$4236 = 0, $$5156230 = 0, $$5170 = 0, $$5170229 = 0;
  19619. var $$5170232 = 0, $$5231 = 0, $$6157225 = 0, $$6171 = 0, $$6171224 = 0, $$6171227 = 0, $$6226 = 0, $$7158220 = 0, $$7172 = 0, $$7172219 = 0, $$7172222 = 0, $$7221 = 0, $$8159215 = 0, $$8173 = 0, $$8173214 = 0, $$8173217 = 0, $$8216 = 0, $$9160210 = 0, $$9174 = 0, $$9174209 = 0;
  19620. var $$9174212 = 0, $$9211 = 0, $$off = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0, $114 = 0;
  19621. var $115 = 0, $116 = 0, $117 = 0, $118 = 0, $119 = 0, $12 = 0, $120 = 0, $121 = 0, $122 = 0, $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 0, $128 = 0, $129 = 0, $13 = 0, $130 = 0, $131 = 0, $132 = 0;
  19622. var $133 = 0, $134 = 0, $135 = 0, $136 = 0, $137 = 0, $138 = 0, $139 = 0, $14 = 0, $140 = 0, $141 = 0, $142 = 0, $143 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0;
  19623. var $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0;
  19624. var $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0;
  19625. var $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0;
  19626. var $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0, $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0;
  19627. var $98 = 0, $99 = 0, label = 0, sp = 0;
  19628. sp = STACKTOP;
  19629. $5 = ($2|0)==($1|0);
  19630. if ($5) {
  19631. $$0163 = $0;
  19632. return ($$0163|0);
  19633. }
  19634. $$off = (($2) + -1)|0;
  19635. $6 = ($$off>>>0)<(4);
  19636. if (!($6)) {
  19637. ___assert_fail((9943|0),(9847|0),1526,(9974|0));
  19638. // unreachable;
  19639. }
  19640. $7 = $2 << 1;
  19641. $8 = Math_imul($7, $3)|0;
  19642. $9 = Math_imul($8, $4)|0;
  19643. $10 = (_stbi__malloc($9)|0);
  19644. $11 = ($10|0)==(0|0);
  19645. if ($11) {
  19646. _free($0);
  19647. _stbi__err(9902);
  19648. $$0163 = 0;
  19649. return ($$0163|0);
  19650. }
  19651. $12 = ($4|0)>(0);
  19652. L11: do {
  19653. if ($12) {
  19654. $13 = $1 << 3;
  19655. $14 = (($13) + ($2))|0;
  19656. $$0165254 = (($3) + -1)|0;
  19657. $15 = ($$0165254|0)>(-1);
  19658. $$1166249 = (($3) + -1)|0;
  19659. $16 = ($$1166249|0)>(-1);
  19660. $$2167244 = (($3) + -1)|0;
  19661. $17 = ($$2167244|0)>(-1);
  19662. $$3168239 = (($3) + -1)|0;
  19663. $18 = ($$3168239|0)>(-1);
  19664. $$4169234 = (($3) + -1)|0;
  19665. $19 = ($$4169234|0)>(-1);
  19666. $$5170229 = (($3) + -1)|0;
  19667. $20 = ($$5170229|0)>(-1);
  19668. $$6171224 = (($3) + -1)|0;
  19669. $21 = ($$6171224|0)>(-1);
  19670. $$7172219 = (($3) + -1)|0;
  19671. $22 = ($$7172219|0)>(-1);
  19672. $$8173214 = (($3) + -1)|0;
  19673. $23 = ($$8173214|0)>(-1);
  19674. $$9174209 = (($3) + -1)|0;
  19675. $24 = ($$9174209|0)>(-1);
  19676. $$10175204 = (($3) + -1)|0;
  19677. $25 = ($$10175204|0)>(-1);
  19678. $$11176200 = (($3) + -1)|0;
  19679. $26 = ($$11176200|0)>(-1);
  19680. $$0164259 = 0;
  19681. L13: while(1) {
  19682. $27 = Math_imul($$0164259, $3)|0;
  19683. $28 = Math_imul($27, $1)|0;
  19684. $29 = (($0) + ($28<<1)|0);
  19685. $30 = Math_imul($27, $2)|0;
  19686. $31 = (($10) + ($30<<1)|0);
  19687. do {
  19688. switch ($14|0) {
  19689. case 10: {
  19690. if ($15) {
  19691. $$0151255 = $29;$$0165257 = $$0165254;$$0256 = $31;
  19692. while(1) {
  19693. $32 = HEAP16[$$0151255>>1]|0;
  19694. HEAP16[$$0256>>1] = $32;
  19695. $33 = ((($$0256)) + 2|0);
  19696. HEAP16[$33>>1] = -1;
  19697. $34 = ((($$0151255)) + 2|0);
  19698. $35 = ((($$0256)) + 4|0);
  19699. $$0165 = (($$0165257) + -1)|0;
  19700. $36 = ($$0165|0)>(-1);
  19701. if ($36) {
  19702. $$0151255 = $34;$$0165257 = $$0165;$$0256 = $35;
  19703. } else {
  19704. break;
  19705. }
  19706. }
  19707. }
  19708. break;
  19709. }
  19710. case 11: {
  19711. if ($16) {
  19712. $$1152250 = $29;$$1166252 = $$1166249;$$1251 = $31;
  19713. while(1) {
  19714. $37 = HEAP16[$$1152250>>1]|0;
  19715. $38 = ((($$1251)) + 4|0);
  19716. HEAP16[$38>>1] = $37;
  19717. $39 = ((($$1251)) + 2|0);
  19718. HEAP16[$39>>1] = $37;
  19719. HEAP16[$$1251>>1] = $37;
  19720. $40 = ((($$1152250)) + 2|0);
  19721. $41 = ((($$1251)) + 6|0);
  19722. $$1166 = (($$1166252) + -1)|0;
  19723. $42 = ($$1166|0)>(-1);
  19724. if ($42) {
  19725. $$1152250 = $40;$$1166252 = $$1166;$$1251 = $41;
  19726. } else {
  19727. break;
  19728. }
  19729. }
  19730. }
  19731. break;
  19732. }
  19733. case 12: {
  19734. if ($17) {
  19735. $$2153245 = $29;$$2167247 = $$2167244;$$2246 = $31;
  19736. while(1) {
  19737. $43 = HEAP16[$$2153245>>1]|0;
  19738. $44 = ((($$2246)) + 4|0);
  19739. HEAP16[$44>>1] = $43;
  19740. $45 = ((($$2246)) + 2|0);
  19741. HEAP16[$45>>1] = $43;
  19742. HEAP16[$$2246>>1] = $43;
  19743. $46 = ((($$2246)) + 6|0);
  19744. HEAP16[$46>>1] = -1;
  19745. $47 = ((($$2153245)) + 2|0);
  19746. $48 = ((($$2246)) + 8|0);
  19747. $$2167 = (($$2167247) + -1)|0;
  19748. $49 = ($$2167|0)>(-1);
  19749. if ($49) {
  19750. $$2153245 = $47;$$2167247 = $$2167;$$2246 = $48;
  19751. } else {
  19752. break;
  19753. }
  19754. }
  19755. }
  19756. break;
  19757. }
  19758. case 17: {
  19759. if ($18) {
  19760. $$3154240 = $29;$$3168242 = $$3168239;$$3241 = $31;
  19761. while(1) {
  19762. $50 = HEAP16[$$3154240>>1]|0;
  19763. HEAP16[$$3241>>1] = $50;
  19764. $51 = ((($$3154240)) + 4|0);
  19765. $52 = ((($$3241)) + 2|0);
  19766. $$3168 = (($$3168242) + -1)|0;
  19767. $53 = ($$3168|0)>(-1);
  19768. if ($53) {
  19769. $$3154240 = $51;$$3168242 = $$3168;$$3241 = $52;
  19770. } else {
  19771. break;
  19772. }
  19773. }
  19774. }
  19775. break;
  19776. }
  19777. case 19: {
  19778. if ($19) {
  19779. $$4155235 = $29;$$4169237 = $$4169234;$$4236 = $31;
  19780. while(1) {
  19781. $54 = HEAP16[$$4155235>>1]|0;
  19782. $55 = ((($$4236)) + 4|0);
  19783. HEAP16[$55>>1] = $54;
  19784. $56 = ((($$4236)) + 2|0);
  19785. HEAP16[$56>>1] = $54;
  19786. HEAP16[$$4236>>1] = $54;
  19787. $57 = ((($$4155235)) + 4|0);
  19788. $58 = ((($$4236)) + 6|0);
  19789. $$4169 = (($$4169237) + -1)|0;
  19790. $59 = ($$4169|0)>(-1);
  19791. if ($59) {
  19792. $$4155235 = $57;$$4169237 = $$4169;$$4236 = $58;
  19793. } else {
  19794. break;
  19795. }
  19796. }
  19797. }
  19798. break;
  19799. }
  19800. case 20: {
  19801. if ($20) {
  19802. $$5156230 = $29;$$5170232 = $$5170229;$$5231 = $31;
  19803. while(1) {
  19804. $60 = HEAP16[$$5156230>>1]|0;
  19805. $61 = ((($$5231)) + 4|0);
  19806. HEAP16[$61>>1] = $60;
  19807. $62 = ((($$5231)) + 2|0);
  19808. HEAP16[$62>>1] = $60;
  19809. HEAP16[$$5231>>1] = $60;
  19810. $63 = ((($$5156230)) + 2|0);
  19811. $64 = HEAP16[$63>>1]|0;
  19812. $65 = ((($$5231)) + 6|0);
  19813. HEAP16[$65>>1] = $64;
  19814. $66 = ((($$5156230)) + 4|0);
  19815. $67 = ((($$5231)) + 8|0);
  19816. $$5170 = (($$5170232) + -1)|0;
  19817. $68 = ($$5170|0)>(-1);
  19818. if ($68) {
  19819. $$5156230 = $66;$$5170232 = $$5170;$$5231 = $67;
  19820. } else {
  19821. break;
  19822. }
  19823. }
  19824. }
  19825. break;
  19826. }
  19827. case 28: {
  19828. if ($21) {
  19829. $$6157225 = $29;$$6171227 = $$6171224;$$6226 = $31;
  19830. while(1) {
  19831. $69 = HEAP16[$$6157225>>1]|0;
  19832. HEAP16[$$6226>>1] = $69;
  19833. $70 = ((($$6157225)) + 2|0);
  19834. $71 = HEAP16[$70>>1]|0;
  19835. $72 = ((($$6226)) + 2|0);
  19836. HEAP16[$72>>1] = $71;
  19837. $73 = ((($$6157225)) + 4|0);
  19838. $74 = HEAP16[$73>>1]|0;
  19839. $75 = ((($$6226)) + 4|0);
  19840. HEAP16[$75>>1] = $74;
  19841. $76 = ((($$6226)) + 6|0);
  19842. HEAP16[$76>>1] = -1;
  19843. $77 = ((($$6157225)) + 6|0);
  19844. $78 = ((($$6226)) + 8|0);
  19845. $$6171 = (($$6171227) + -1)|0;
  19846. $79 = ($$6171|0)>(-1);
  19847. if ($79) {
  19848. $$6157225 = $77;$$6171227 = $$6171;$$6226 = $78;
  19849. } else {
  19850. break;
  19851. }
  19852. }
  19853. }
  19854. break;
  19855. }
  19856. case 25: {
  19857. if ($22) {
  19858. $$7158220 = $29;$$7172222 = $$7172219;$$7221 = $31;
  19859. while(1) {
  19860. $80 = HEAP16[$$7158220>>1]|0;
  19861. $81 = $80&65535;
  19862. $82 = ((($$7158220)) + 2|0);
  19863. $83 = HEAP16[$82>>1]|0;
  19864. $84 = $83&65535;
  19865. $85 = ((($$7158220)) + 4|0);
  19866. $86 = HEAP16[$85>>1]|0;
  19867. $87 = $86&65535;
  19868. $88 = (_stbi__compute_y_16($81,$84,$87)|0);
  19869. HEAP16[$$7221>>1] = $88;
  19870. $89 = ((($$7158220)) + 6|0);
  19871. $90 = ((($$7221)) + 2|0);
  19872. $$7172 = (($$7172222) + -1)|0;
  19873. $91 = ($$7172|0)>(-1);
  19874. if ($91) {
  19875. $$7158220 = $89;$$7172222 = $$7172;$$7221 = $90;
  19876. } else {
  19877. break;
  19878. }
  19879. }
  19880. }
  19881. break;
  19882. }
  19883. case 26: {
  19884. if ($23) {
  19885. $$8159215 = $29;$$8173217 = $$8173214;$$8216 = $31;
  19886. while(1) {
  19887. $92 = HEAP16[$$8159215>>1]|0;
  19888. $93 = $92&65535;
  19889. $94 = ((($$8159215)) + 2|0);
  19890. $95 = HEAP16[$94>>1]|0;
  19891. $96 = $95&65535;
  19892. $97 = ((($$8159215)) + 4|0);
  19893. $98 = HEAP16[$97>>1]|0;
  19894. $99 = $98&65535;
  19895. $100 = (_stbi__compute_y_16($93,$96,$99)|0);
  19896. HEAP16[$$8216>>1] = $100;
  19897. $101 = ((($$8216)) + 2|0);
  19898. HEAP16[$101>>1] = -1;
  19899. $102 = ((($$8159215)) + 6|0);
  19900. $103 = ((($$8216)) + 4|0);
  19901. $$8173 = (($$8173217) + -1)|0;
  19902. $104 = ($$8173|0)>(-1);
  19903. if ($104) {
  19904. $$8159215 = $102;$$8173217 = $$8173;$$8216 = $103;
  19905. } else {
  19906. break;
  19907. }
  19908. }
  19909. }
  19910. break;
  19911. }
  19912. case 33: {
  19913. if ($24) {
  19914. $$9160210 = $29;$$9174212 = $$9174209;$$9211 = $31;
  19915. while(1) {
  19916. $105 = HEAP16[$$9160210>>1]|0;
  19917. $106 = $105&65535;
  19918. $107 = ((($$9160210)) + 2|0);
  19919. $108 = HEAP16[$107>>1]|0;
  19920. $109 = $108&65535;
  19921. $110 = ((($$9160210)) + 4|0);
  19922. $111 = HEAP16[$110>>1]|0;
  19923. $112 = $111&65535;
  19924. $113 = (_stbi__compute_y_16($106,$109,$112)|0);
  19925. HEAP16[$$9211>>1] = $113;
  19926. $114 = ((($$9160210)) + 8|0);
  19927. $115 = ((($$9211)) + 2|0);
  19928. $$9174 = (($$9174212) + -1)|0;
  19929. $116 = ($$9174|0)>(-1);
  19930. if ($116) {
  19931. $$9160210 = $114;$$9174212 = $$9174;$$9211 = $115;
  19932. } else {
  19933. break;
  19934. }
  19935. }
  19936. }
  19937. break;
  19938. }
  19939. case 34: {
  19940. if ($25) {
  19941. $$10161205 = $29;$$10175207 = $$10175204;$$10206 = $31;
  19942. while(1) {
  19943. $117 = HEAP16[$$10161205>>1]|0;
  19944. $118 = $117&65535;
  19945. $119 = ((($$10161205)) + 2|0);
  19946. $120 = HEAP16[$119>>1]|0;
  19947. $121 = $120&65535;
  19948. $122 = ((($$10161205)) + 4|0);
  19949. $123 = HEAP16[$122>>1]|0;
  19950. $124 = $123&65535;
  19951. $125 = (_stbi__compute_y_16($118,$121,$124)|0);
  19952. HEAP16[$$10206>>1] = $125;
  19953. $126 = ((($$10161205)) + 6|0);
  19954. $127 = HEAP16[$126>>1]|0;
  19955. $128 = ((($$10206)) + 2|0);
  19956. HEAP16[$128>>1] = $127;
  19957. $129 = ((($$10161205)) + 8|0);
  19958. $130 = ((($$10206)) + 4|0);
  19959. $$10175 = (($$10175207) + -1)|0;
  19960. $131 = ($$10175|0)>(-1);
  19961. if ($131) {
  19962. $$10161205 = $129;$$10175207 = $$10175;$$10206 = $130;
  19963. } else {
  19964. break;
  19965. }
  19966. }
  19967. }
  19968. break;
  19969. }
  19970. case 35: {
  19971. if ($26) {
  19972. $$11162201 = $29;$$11176203 = $$11176200;$$11202 = $31;
  19973. while(1) {
  19974. $132 = HEAP16[$$11162201>>1]|0;
  19975. HEAP16[$$11202>>1] = $132;
  19976. $133 = ((($$11162201)) + 2|0);
  19977. $134 = HEAP16[$133>>1]|0;
  19978. $135 = ((($$11202)) + 2|0);
  19979. HEAP16[$135>>1] = $134;
  19980. $136 = ((($$11162201)) + 4|0);
  19981. $137 = HEAP16[$136>>1]|0;
  19982. $138 = ((($$11202)) + 4|0);
  19983. HEAP16[$138>>1] = $137;
  19984. $139 = ((($$11162201)) + 8|0);
  19985. $140 = ((($$11202)) + 6|0);
  19986. $$11176 = (($$11176203) + -1)|0;
  19987. $141 = ($$11176|0)>(-1);
  19988. if ($141) {
  19989. $$11162201 = $139;$$11176203 = $$11176;$$11202 = $140;
  19990. } else {
  19991. break;
  19992. }
  19993. }
  19994. }
  19995. break;
  19996. }
  19997. default: {
  19998. break L13;
  19999. }
  20000. }
  20001. } while(0);
  20002. $142 = (($$0164259) + 1)|0;
  20003. $143 = ($142|0)<($4|0);
  20004. if ($143) {
  20005. $$0164259 = $142;
  20006. } else {
  20007. break L11;
  20008. }
  20009. }
  20010. ___assert_fail((9997|0),(9847|0),1555,(9974|0));
  20011. // unreachable;
  20012. }
  20013. } while(0);
  20014. _free($0);
  20015. $$0163 = $10;
  20016. return ($$0163|0);
  20017. }
  20018. function _stbi__compute_y_16($0,$1,$2) {
  20019. $0 = $0|0;
  20020. $1 = $1|0;
  20021. $2 = $2|0;
  20022. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  20023. sp = STACKTOP;
  20024. $3 = ($0*77)|0;
  20025. $4 = ($1*150)|0;
  20026. $5 = (($4) + ($3))|0;
  20027. $6 = ($2*29)|0;
  20028. $7 = (($5) + ($6))|0;
  20029. $8 = $7 >>> 8;
  20030. $9 = $8&65535;
  20031. return ($9|0);
  20032. }
  20033. function _stbi__malloc_mad3($0,$1,$2) {
  20034. $0 = $0|0;
  20035. $1 = $1|0;
  20036. $2 = $2|0;
  20037. var $$0 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, label = 0, sp = 0;
  20038. sp = STACKTOP;
  20039. $3 = (_stbi__mad3sizes_valid($0,$1,$2)|0);
  20040. $4 = ($3|0)==(0);
  20041. if ($4) {
  20042. $$0 = 0;
  20043. return ($$0|0);
  20044. }
  20045. $5 = Math_imul($1, $0)|0;
  20046. $6 = Math_imul($5, $2)|0;
  20047. $7 = (_stbi__malloc($6)|0);
  20048. $$0 = $7;
  20049. return ($$0|0);
  20050. }
  20051. function _stbi__compute_y($0,$1,$2) {
  20052. $0 = $0|0;
  20053. $1 = $1|0;
  20054. $2 = $2|0;
  20055. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  20056. sp = STACKTOP;
  20057. $3 = ($0*77)|0;
  20058. $4 = ($1*150)|0;
  20059. $5 = (($4) + ($3))|0;
  20060. $6 = ($2*29)|0;
  20061. $7 = (($5) + ($6))|0;
  20062. $8 = $7 >>> 8;
  20063. $9 = $8&255;
  20064. return ($9|0);
  20065. }
  20066. function _stbi__mad3sizes_valid($0,$1,$2) {
  20067. $0 = $0|0;
  20068. $1 = $1|0;
  20069. $2 = $2|0;
  20070. var $10 = 0, $11 = 0, $12 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  20071. sp = STACKTOP;
  20072. $3 = (_stbi__mul2sizes_valid($0,$1)|0);
  20073. $4 = ($3|0)==(0);
  20074. if ($4) {
  20075. $12 = 0;
  20076. } else {
  20077. $5 = Math_imul($1, $0)|0;
  20078. $6 = (_stbi__mul2sizes_valid($5,$2)|0);
  20079. $7 = ($6|0)==(0);
  20080. if ($7) {
  20081. $12 = 0;
  20082. } else {
  20083. $8 = Math_imul($5, $2)|0;
  20084. $9 = (_stbi__addsizes_valid($8)|0);
  20085. $10 = ($9|0)!=(0);
  20086. $12 = $10;
  20087. }
  20088. }
  20089. $11 = $12&1;
  20090. return ($11|0);
  20091. }
  20092. function _stbi__mul2sizes_valid($0,$1) {
  20093. $0 = $0|0;
  20094. $1 = $1|0;
  20095. var $$0 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, label = 0, sp = 0;
  20096. sp = STACKTOP;
  20097. $2 = $1 | $0;
  20098. $3 = ($2|0)<(0);
  20099. if ($3) {
  20100. $$0 = 0;
  20101. } else {
  20102. $4 = ($1|0)==(0);
  20103. if ($4) {
  20104. $$0 = 1;
  20105. } else {
  20106. $5 = (2147483647 / ($1|0))&-1;
  20107. $6 = ($5|0)>=($0|0);
  20108. $7 = $6&1;
  20109. $$0 = $7;
  20110. }
  20111. }
  20112. return ($$0|0);
  20113. }
  20114. function _stbi__addsizes_valid($0) {
  20115. $0 = $0|0;
  20116. var label = 0, sp = 0;
  20117. sp = STACKTOP;
  20118. return 1;
  20119. }
  20120. function _stbi__check_png_header($0) {
  20121. $0 = $0|0;
  20122. var $$05 = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  20123. sp = STACKTOP;
  20124. $1 = (_stbi__get8($0)|0);
  20125. $2 = ($1<<24>>24)==(-119);
  20126. if ($2) {
  20127. $3 = (_stbi__get8($0)|0);
  20128. $4 = ($3<<24>>24)==(80);
  20129. if ($4) {
  20130. $5 = (_stbi__get8($0)|0);
  20131. $6 = ($5<<24>>24)==(78);
  20132. if ($6) {
  20133. $7 = (_stbi__get8($0)|0);
  20134. $8 = ($7<<24>>24)==(71);
  20135. if ($8) {
  20136. $9 = (_stbi__get8($0)|0);
  20137. $10 = ($9<<24>>24)==(13);
  20138. if ($10) {
  20139. $11 = (_stbi__get8($0)|0);
  20140. $12 = ($11<<24>>24)==(10);
  20141. if ($12) {
  20142. $13 = (_stbi__get8($0)|0);
  20143. $14 = ($13<<24>>24)==(26);
  20144. if ($14) {
  20145. $15 = (_stbi__get8($0)|0);
  20146. $16 = ($15<<24>>24)==(10);
  20147. if ($16) {
  20148. $$05 = 1;
  20149. return ($$05|0);
  20150. }
  20151. }
  20152. }
  20153. }
  20154. }
  20155. }
  20156. }
  20157. }
  20158. _stbi__err(11258);
  20159. $$05 = 0;
  20160. return ($$05|0);
  20161. }
  20162. function _stbi__get_chunk_header($0,$1) {
  20163. $0 = $0|0;
  20164. $1 = $1|0;
  20165. var $$sroa$4$0$$sroa_idx2 = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  20166. sp = STACKTOP;
  20167. $2 = (_stbi__get32be($1)|0);
  20168. $3 = (_stbi__get32be($1)|0);
  20169. HEAP32[$0>>2] = $2;
  20170. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  20171. HEAP32[$$sroa$4$0$$sroa_idx2>>2] = $3;
  20172. return;
  20173. }
  20174. function _stbi__skip($0,$1) {
  20175. $0 = $0|0;
  20176. $1 = $1|0;
  20177. var $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0;
  20178. var $8 = 0, $9 = 0, label = 0, sp = 0;
  20179. sp = STACKTOP;
  20180. $2 = ($1|0)<(0);
  20181. if ($2) {
  20182. $3 = ((($0)) + 172|0);
  20183. $4 = HEAP32[$3>>2]|0;
  20184. $5 = ((($0)) + 168|0);
  20185. HEAP32[$5>>2] = $4;
  20186. return;
  20187. }
  20188. $6 = ((($0)) + 16|0);
  20189. $7 = HEAP32[$6>>2]|0;
  20190. $8 = ($7|0)==(0|0);
  20191. if (!($8)) {
  20192. $9 = ((($0)) + 172|0);
  20193. $10 = HEAP32[$9>>2]|0;
  20194. $11 = ((($0)) + 168|0);
  20195. $12 = HEAP32[$11>>2]|0;
  20196. $13 = $10;
  20197. $14 = (($13) - ($12))|0;
  20198. $15 = ($14|0)<($1|0);
  20199. if ($15) {
  20200. HEAP32[$11>>2] = $10;
  20201. $16 = ((($0)) + 20|0);
  20202. $17 = HEAP32[$16>>2]|0;
  20203. $18 = ((($0)) + 28|0);
  20204. $19 = HEAP32[$18>>2]|0;
  20205. $20 = (($1) - ($14))|0;
  20206. FUNCTION_TABLE_vii[$17 & 63]($19,$20);
  20207. return;
  20208. }
  20209. }
  20210. $21 = ((($0)) + 168|0);
  20211. $22 = HEAP32[$21>>2]|0;
  20212. $23 = (($22) + ($1)|0);
  20213. HEAP32[$21>>2] = $23;
  20214. return;
  20215. }
  20216. function _stbi__get32be($0) {
  20217. $0 = $0|0;
  20218. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, label = 0, sp = 0;
  20219. sp = STACKTOP;
  20220. $1 = (_stbi__get16be($0)|0);
  20221. $2 = $1 << 16;
  20222. $3 = (_stbi__get16be($0)|0);
  20223. $4 = (($2) + ($3))|0;
  20224. return ($4|0);
  20225. }
  20226. function _stbi__get8($0) {
  20227. $0 = $0|0;
  20228. var $$0 = 0, $$sink6 = 0, $1 = 0, $10 = 0, $11 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  20229. sp = STACKTOP;
  20230. $1 = ((($0)) + 168|0);
  20231. $2 = HEAP32[$1>>2]|0;
  20232. $3 = ((($0)) + 172|0);
  20233. $4 = HEAP32[$3>>2]|0;
  20234. $5 = ($2>>>0)<($4>>>0);
  20235. do {
  20236. if ($5) {
  20237. $$sink6 = $2;
  20238. } else {
  20239. $6 = ((($0)) + 32|0);
  20240. $7 = HEAP32[$6>>2]|0;
  20241. $8 = ($7|0)==(0);
  20242. if ($8) {
  20243. $$0 = 0;
  20244. return ($$0|0);
  20245. } else {
  20246. _stbi__refill_buffer($0);
  20247. $9 = HEAP32[$1>>2]|0;
  20248. $$sink6 = $9;
  20249. break;
  20250. }
  20251. }
  20252. } while(0);
  20253. $10 = ((($$sink6)) + 1|0);
  20254. HEAP32[$1>>2] = $10;
  20255. $11 = HEAP8[$$sink6>>0]|0;
  20256. $$0 = $11;
  20257. return ($$0|0);
  20258. }
  20259. function _stbi__get16be($0) {
  20260. $0 = $0|0;
  20261. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  20262. sp = STACKTOP;
  20263. $1 = (_stbi__get8($0)|0);
  20264. $2 = $1&255;
  20265. $3 = $2 << 8;
  20266. $4 = (_stbi__get8($0)|0);
  20267. $5 = $4&255;
  20268. $6 = $3 | $5;
  20269. return ($6|0);
  20270. }
  20271. function _stbi__getn($0,$1,$2) {
  20272. $0 = $0|0;
  20273. $1 = $1|0;
  20274. $2 = $2|0;
  20275. var $$1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0;
  20276. var $29 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  20277. sp = STACKTOP;
  20278. $3 = ((($0)) + 16|0);
  20279. $4 = HEAP32[$3>>2]|0;
  20280. $5 = ($4|0)==(0|0);
  20281. if (!($5)) {
  20282. $6 = ((($0)) + 172|0);
  20283. $7 = HEAP32[$6>>2]|0;
  20284. $8 = ((($0)) + 168|0);
  20285. $9 = HEAP32[$8>>2]|0;
  20286. $10 = $9;
  20287. $11 = (($7) - ($10))|0;
  20288. $12 = ($11|0)<($2|0);
  20289. if ($12) {
  20290. _memcpy(($1|0),($9|0),($11|0))|0;
  20291. $13 = HEAP32[$3>>2]|0;
  20292. $14 = ((($0)) + 28|0);
  20293. $15 = HEAP32[$14>>2]|0;
  20294. $16 = (($1) + ($11)|0);
  20295. $17 = (($2) - ($11))|0;
  20296. $18 = (FUNCTION_TABLE_iiii[$13 & 15]($15,$16,$17)|0);
  20297. $19 = ($18|0)==($17|0);
  20298. $20 = $19&1;
  20299. $21 = HEAP32[$6>>2]|0;
  20300. HEAP32[$8>>2] = $21;
  20301. $$1 = $20;
  20302. return ($$1|0);
  20303. }
  20304. }
  20305. $22 = ((($0)) + 168|0);
  20306. $23 = HEAP32[$22>>2]|0;
  20307. $24 = (($23) + ($2)|0);
  20308. $25 = ((($0)) + 172|0);
  20309. $26 = HEAP32[$25>>2]|0;
  20310. $27 = ($24>>>0)>($26>>>0);
  20311. if ($27) {
  20312. $$1 = 0;
  20313. return ($$1|0);
  20314. }
  20315. _memcpy(($1|0),($23|0),($2|0))|0;
  20316. $28 = HEAP32[$22>>2]|0;
  20317. $29 = (($28) + ($2)|0);
  20318. HEAP32[$22>>2] = $29;
  20319. $$1 = 1;
  20320. return ($$1|0);
  20321. }
  20322. function _stbi_zlib_decode_malloc_guesssize_headerflag($0,$1,$2,$3,$4) {
  20323. $0 = $0|0;
  20324. $1 = $1|0;
  20325. $2 = $2|0;
  20326. $3 = $3|0;
  20327. $4 = $4|0;
  20328. var $$0 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  20329. sp = STACKTOP;
  20330. STACKTOP = STACKTOP + 4080|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(4080|0);
  20331. $5 = sp;
  20332. $6 = (_stbi__malloc($2)|0);
  20333. $7 = ($6|0)==(0|0);
  20334. do {
  20335. if ($7) {
  20336. $$0 = 0;
  20337. } else {
  20338. HEAP32[$5>>2] = $0;
  20339. $8 = (($0) + ($1)|0);
  20340. $9 = ((($5)) + 4|0);
  20341. HEAP32[$9>>2] = $8;
  20342. $10 = (_stbi__do_zlib($5,$6,$2,1,$4)|0);
  20343. $11 = ($10|0)==(0);
  20344. $12 = ((($5)) + 20|0);
  20345. $13 = HEAP32[$12>>2]|0;
  20346. if ($11) {
  20347. _free($13);
  20348. $$0 = 0;
  20349. break;
  20350. }
  20351. $14 = ($3|0)==(0|0);
  20352. if ($14) {
  20353. $$0 = $13;
  20354. } else {
  20355. $15 = ((($5)) + 16|0);
  20356. $16 = HEAP32[$15>>2]|0;
  20357. $17 = $13;
  20358. $18 = (($16) - ($17))|0;
  20359. HEAP32[$3>>2] = $18;
  20360. $$0 = $13;
  20361. }
  20362. }
  20363. } while(0);
  20364. STACKTOP = sp;return ($$0|0);
  20365. }
  20366. function _stbi__create_png_image($0,$1,$2,$3,$4,$5,$6) {
  20367. $0 = $0|0;
  20368. $1 = $1|0;
  20369. $2 = $2|0;
  20370. $3 = $3|0;
  20371. $4 = $4|0;
  20372. $5 = $5|0;
  20373. $6 = $6|0;
  20374. var $$0103117 = 0, $$0106116 = 0, $$0107115 = 0, $$095119 = 0, $$099118 = 0, $$3102$ph = 0, $$398$ph = 0, $$4 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0;
  20375. var $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0;
  20376. var $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $60 = 0, $61 = 0;
  20377. var $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0;
  20378. var $80 = 0, $81 = 0, $82 = 0, $9 = 0, $or$cond = 0, label = 0, sp = 0;
  20379. sp = STACKTOP;
  20380. $7 = ($4|0)==(16);
  20381. $8 = $7 ? 2 : 1;
  20382. $9 = Math_imul($8, $3)|0;
  20383. $10 = ($6|0)==(0);
  20384. $11 = HEAP32[$0>>2]|0;
  20385. $12 = HEAP32[$11>>2]|0;
  20386. $13 = ((($11)) + 4|0);
  20387. $14 = HEAP32[$13>>2]|0;
  20388. if ($10) {
  20389. $15 = (_stbi__create_png_image_raw($0,$1,$2,$3,$12,$14,$4,$5)|0);
  20390. $$4 = $15;
  20391. return ($$4|0);
  20392. }
  20393. $16 = (_stbi__malloc_mad3($12,$14,$9)|0);
  20394. $17 = ((($0)) + 12|0);
  20395. $18 = ((($0)) + 12|0);
  20396. $$0103117 = 0;$$095119 = $1;$$099118 = $2;
  20397. while(1) {
  20398. $19 = HEAP32[$0>>2]|0;
  20399. $20 = HEAP32[$19>>2]|0;
  20400. $21 = (3048 + ($$0103117<<2)|0);
  20401. $22 = HEAP32[$21>>2]|0;
  20402. $23 = (3076 + ($$0103117<<2)|0);
  20403. $24 = HEAP32[$23>>2]|0;
  20404. $25 = (($20) + -1)|0;
  20405. $26 = (($25) - ($22))|0;
  20406. $27 = (($26) + ($24))|0;
  20407. $28 = (($27>>>0) / ($24>>>0))&-1;
  20408. $29 = ((($19)) + 4|0);
  20409. $30 = HEAP32[$29>>2]|0;
  20410. $31 = (3104 + ($$0103117<<2)|0);
  20411. $32 = HEAP32[$31>>2]|0;
  20412. $33 = (3132 + ($$0103117<<2)|0);
  20413. $34 = HEAP32[$33>>2]|0;
  20414. $35 = (($30) + -1)|0;
  20415. $36 = (($35) - ($32))|0;
  20416. $37 = (($36) + ($34))|0;
  20417. $38 = (($37>>>0) / ($34>>>0))&-1;
  20418. $39 = ($24>>>0)<=($27>>>0);
  20419. $40 = ($34>>>0)<=($37>>>0);
  20420. $or$cond = $39 & $40;
  20421. if ($or$cond) {
  20422. $41 = ((($19)) + 8|0);
  20423. $42 = HEAP32[$41>>2]|0;
  20424. $43 = Math_imul($28, $4)|0;
  20425. $44 = Math_imul($43, $42)|0;
  20426. $45 = (($44) + 7)|0;
  20427. $46 = $45 >> 3;
  20428. $47 = (($46) + 1)|0;
  20429. $48 = Math_imul($47, $38)|0;
  20430. $49 = (_stbi__create_png_image_raw($0,$$095119,$$099118,$3,$28,$38,$4,$5)|0);
  20431. $50 = ($49|0)==(0);
  20432. if ($50) {
  20433. label = 13;
  20434. break;
  20435. }
  20436. $51 = ($38|0)>(0);
  20437. if ($51) {
  20438. $52 = ($28|0)>(0);
  20439. $$0106116 = 0;
  20440. while(1) {
  20441. if ($52) {
  20442. $53 = HEAP32[$33>>2]|0;
  20443. $54 = Math_imul($53, $$0106116)|0;
  20444. $55 = HEAP32[$31>>2]|0;
  20445. $56 = (($54) + ($55))|0;
  20446. $57 = HEAP32[$23>>2]|0;
  20447. $58 = HEAP32[$21>>2]|0;
  20448. $59 = Math_imul($56, $9)|0;
  20449. $60 = Math_imul($$0106116, $28)|0;
  20450. $$0107115 = 0;
  20451. while(1) {
  20452. $61 = Math_imul($57, $$0107115)|0;
  20453. $62 = (($61) + ($58))|0;
  20454. $63 = HEAP32[$0>>2]|0;
  20455. $64 = HEAP32[$63>>2]|0;
  20456. $65 = Math_imul($59, $64)|0;
  20457. $66 = (($16) + ($65)|0);
  20458. $67 = Math_imul($62, $9)|0;
  20459. $68 = (($66) + ($67)|0);
  20460. $69 = HEAP32[$18>>2]|0;
  20461. $70 = (($$0107115) + ($60))|0;
  20462. $71 = Math_imul($70, $9)|0;
  20463. $72 = (($69) + ($71)|0);
  20464. _memcpy(($68|0),($72|0),($9|0))|0;
  20465. $73 = (($$0107115) + 1)|0;
  20466. $74 = ($73|0)<($28|0);
  20467. if ($74) {
  20468. $$0107115 = $73;
  20469. } else {
  20470. break;
  20471. }
  20472. }
  20473. }
  20474. $75 = (($$0106116) + 1)|0;
  20475. $76 = ($75|0)<($38|0);
  20476. if ($76) {
  20477. $$0106116 = $75;
  20478. } else {
  20479. break;
  20480. }
  20481. }
  20482. }
  20483. $77 = HEAP32[$17>>2]|0;
  20484. _free($77);
  20485. $78 = (($$095119) + ($48)|0);
  20486. $79 = (($$099118) - ($48))|0;
  20487. $$3102$ph = $79;$$398$ph = $78;
  20488. } else {
  20489. $$3102$ph = $$099118;$$398$ph = $$095119;
  20490. }
  20491. $80 = (($$0103117) + 1)|0;
  20492. $81 = ($80|0)<(7);
  20493. if ($81) {
  20494. $$0103117 = $80;$$095119 = $$398$ph;$$099118 = $$3102$ph;
  20495. } else {
  20496. label = 15;
  20497. break;
  20498. }
  20499. }
  20500. if ((label|0) == 13) {
  20501. _free($16);
  20502. $$4 = 0;
  20503. return ($$4|0);
  20504. }
  20505. else if ((label|0) == 15) {
  20506. $82 = ((($0)) + 12|0);
  20507. HEAP32[$82>>2] = $16;
  20508. $$4 = 1;
  20509. return ($$4|0);
  20510. }
  20511. return (0)|0;
  20512. }
  20513. function _stbi__compute_transparency16($0,$1,$2) {
  20514. $0 = $0|0;
  20515. $1 = $1|0;
  20516. $2 = $2|0;
  20517. var $$0323 = 0, $$04 = 0, $$1335 = 0, $$16 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0;
  20518. var $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $exitcond = 0, $exitcond9 = 0, $not$ = 0, label = 0, sp = 0;
  20519. sp = STACKTOP;
  20520. $3 = HEAP32[$0>>2]|0;
  20521. $4 = HEAP32[$3>>2]|0;
  20522. $5 = ((($3)) + 4|0);
  20523. $6 = HEAP32[$5>>2]|0;
  20524. $7 = Math_imul($6, $4)|0;
  20525. $8 = ((($0)) + 12|0);
  20526. $9 = HEAP32[$8>>2]|0;
  20527. switch ($2|0) {
  20528. case 2: {
  20529. $13 = ($7|0)==(0);
  20530. if ($13) {
  20531. return;
  20532. } else {
  20533. $$0323 = 0;$$04 = $9;
  20534. }
  20535. while(1) {
  20536. $14 = HEAP16[$$04>>1]|0;
  20537. $15 = HEAP16[$1>>1]|0;
  20538. $not$ = ($14<<16>>16)!=($15<<16>>16);
  20539. $16 = $not$ << 31 >> 31;
  20540. $17 = ((($$04)) + 2|0);
  20541. HEAP16[$17>>1] = $16;
  20542. $18 = ((($$04)) + 4|0);
  20543. $19 = (($$0323) + 1)|0;
  20544. $exitcond = ($19|0)==($7|0);
  20545. if ($exitcond) {
  20546. break;
  20547. } else {
  20548. $$0323 = $19;$$04 = $18;
  20549. }
  20550. }
  20551. return;
  20552. break;
  20553. }
  20554. case 4: {
  20555. $10 = ($7|0)==(0);
  20556. if ($10) {
  20557. return;
  20558. }
  20559. $11 = ((($1)) + 2|0);
  20560. $12 = ((($1)) + 4|0);
  20561. $$1335 = 0;$$16 = $9;
  20562. while(1) {
  20563. $20 = HEAP16[$$16>>1]|0;
  20564. $21 = HEAP16[$1>>1]|0;
  20565. $22 = ($20<<16>>16)==($21<<16>>16);
  20566. if ($22) {
  20567. $23 = ((($$16)) + 2|0);
  20568. $24 = HEAP16[$23>>1]|0;
  20569. $25 = HEAP16[$11>>1]|0;
  20570. $26 = ($24<<16>>16)==($25<<16>>16);
  20571. if ($26) {
  20572. $27 = ((($$16)) + 4|0);
  20573. $28 = HEAP16[$27>>1]|0;
  20574. $29 = HEAP16[$12>>1]|0;
  20575. $30 = ($28<<16>>16)==($29<<16>>16);
  20576. if ($30) {
  20577. $31 = ((($$16)) + 6|0);
  20578. HEAP16[$31>>1] = 0;
  20579. }
  20580. }
  20581. }
  20582. $32 = ((($$16)) + 8|0);
  20583. $33 = (($$1335) + 1)|0;
  20584. $exitcond9 = ($33|0)==($7|0);
  20585. if ($exitcond9) {
  20586. break;
  20587. } else {
  20588. $$1335 = $33;$$16 = $32;
  20589. }
  20590. }
  20591. return;
  20592. break;
  20593. }
  20594. default: {
  20595. ___assert_fail((10340|0),(9847|0),4569,(10392|0));
  20596. // unreachable;
  20597. }
  20598. }
  20599. }
  20600. function _stbi__compute_transparency($0,$1,$2) {
  20601. $0 = $0|0;
  20602. $1 = $1|0;
  20603. $2 = $2|0;
  20604. var $$0323 = 0, $$04 = 0, $$1335 = 0, $$16 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0;
  20605. var $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $exitcond = 0, $exitcond9 = 0, $not$ = 0, label = 0, sp = 0;
  20606. sp = STACKTOP;
  20607. $3 = HEAP32[$0>>2]|0;
  20608. $4 = HEAP32[$3>>2]|0;
  20609. $5 = ((($3)) + 4|0);
  20610. $6 = HEAP32[$5>>2]|0;
  20611. $7 = Math_imul($6, $4)|0;
  20612. $8 = ((($0)) + 12|0);
  20613. $9 = HEAP32[$8>>2]|0;
  20614. switch ($2|0) {
  20615. case 2: {
  20616. $13 = ($7|0)==(0);
  20617. if ($13) {
  20618. return;
  20619. } else {
  20620. $$0323 = 0;$$04 = $9;
  20621. }
  20622. while(1) {
  20623. $14 = HEAP8[$$04>>0]|0;
  20624. $15 = HEAP8[$1>>0]|0;
  20625. $not$ = ($14<<24>>24)!=($15<<24>>24);
  20626. $16 = $not$ << 31 >> 31;
  20627. $17 = ((($$04)) + 1|0);
  20628. HEAP8[$17>>0] = $16;
  20629. $18 = ((($$04)) + 2|0);
  20630. $19 = (($$0323) + 1)|0;
  20631. $exitcond = ($19|0)==($7|0);
  20632. if ($exitcond) {
  20633. break;
  20634. } else {
  20635. $$0323 = $19;$$04 = $18;
  20636. }
  20637. }
  20638. return;
  20639. break;
  20640. }
  20641. case 4: {
  20642. $10 = ($7|0)==(0);
  20643. if ($10) {
  20644. return;
  20645. }
  20646. $11 = ((($1)) + 1|0);
  20647. $12 = ((($1)) + 2|0);
  20648. $$1335 = 0;$$16 = $9;
  20649. while(1) {
  20650. $20 = HEAP8[$$16>>0]|0;
  20651. $21 = HEAP8[$1>>0]|0;
  20652. $22 = ($20<<24>>24)==($21<<24>>24);
  20653. if ($22) {
  20654. $23 = ((($$16)) + 1|0);
  20655. $24 = HEAP8[$23>>0]|0;
  20656. $25 = HEAP8[$11>>0]|0;
  20657. $26 = ($24<<24>>24)==($25<<24>>24);
  20658. if ($26) {
  20659. $27 = ((($$16)) + 2|0);
  20660. $28 = HEAP8[$27>>0]|0;
  20661. $29 = HEAP8[$12>>0]|0;
  20662. $30 = ($28<<24>>24)==($29<<24>>24);
  20663. if ($30) {
  20664. $31 = ((($$16)) + 3|0);
  20665. HEAP8[$31>>0] = 0;
  20666. }
  20667. }
  20668. }
  20669. $32 = ((($$16)) + 4|0);
  20670. $33 = (($$1335) + 1)|0;
  20671. $exitcond9 = ($33|0)==($7|0);
  20672. if ($exitcond9) {
  20673. break;
  20674. } else {
  20675. $$1335 = $33;$$16 = $32;
  20676. }
  20677. }
  20678. return;
  20679. break;
  20680. }
  20681. default: {
  20682. ___assert_fail((10340|0),(9847|0),4544,(10365|0));
  20683. // unreachable;
  20684. }
  20685. }
  20686. }
  20687. function _stbi__de_iphone($0) {
  20688. $0 = $0|0;
  20689. var $$05158 = 0, $$059 = 0, $$15263 = 0, $$164 = 0, $$25360 = 0, $$261 = 0, $$sink = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0;
  20690. var $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0;
  20691. var $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $exitcond = 0, $exitcond68 = 0, $exitcond69 = 0, label = 0, sp = 0;
  20692. sp = STACKTOP;
  20693. $1 = HEAP32[$0>>2]|0;
  20694. $2 = HEAP32[$1>>2]|0;
  20695. $3 = ((($1)) + 4|0);
  20696. $4 = HEAP32[$3>>2]|0;
  20697. $5 = Math_imul($4, $2)|0;
  20698. $6 = ((($0)) + 12|0);
  20699. $7 = HEAP32[$6>>2]|0;
  20700. $8 = ((($1)) + 12|0);
  20701. $9 = HEAP32[$8>>2]|0;
  20702. switch ($9|0) {
  20703. case 3: {
  20704. $10 = ($5|0)==(0);
  20705. if ($10) {
  20706. return;
  20707. } else {
  20708. $$05158 = $7;$$059 = 0;
  20709. }
  20710. while(1) {
  20711. $11 = HEAP8[$$05158>>0]|0;
  20712. $12 = ((($$05158)) + 2|0);
  20713. $13 = HEAP8[$12>>0]|0;
  20714. HEAP8[$$05158>>0] = $13;
  20715. HEAP8[$12>>0] = $11;
  20716. $14 = ((($$05158)) + 3|0);
  20717. $15 = (($$059) + 1)|0;
  20718. $exitcond = ($15|0)==($5|0);
  20719. if ($exitcond) {
  20720. break;
  20721. } else {
  20722. $$05158 = $14;$$059 = $15;
  20723. }
  20724. }
  20725. return;
  20726. break;
  20727. }
  20728. case 4: {
  20729. $16 = HEAP32[5271]|0;
  20730. $17 = ($16|0)==(0);
  20731. $18 = ($5|0)!=(0);
  20732. if ($17) {
  20733. if ($18) {
  20734. $$25360 = $7;$$261 = 0;
  20735. } else {
  20736. return;
  20737. }
  20738. while(1) {
  20739. $42 = HEAP8[$$25360>>0]|0;
  20740. $43 = ((($$25360)) + 2|0);
  20741. $44 = HEAP8[$43>>0]|0;
  20742. HEAP8[$$25360>>0] = $44;
  20743. HEAP8[$43>>0] = $42;
  20744. $45 = ((($$25360)) + 4|0);
  20745. $46 = (($$261) + 1)|0;
  20746. $exitcond68 = ($46|0)==($5|0);
  20747. if ($exitcond68) {
  20748. break;
  20749. } else {
  20750. $$25360 = $45;$$261 = $46;
  20751. }
  20752. }
  20753. return;
  20754. }
  20755. if ($18) {
  20756. $$15263 = $7;$$164 = 0;
  20757. } else {
  20758. return;
  20759. }
  20760. while(1) {
  20761. $19 = ((($$15263)) + 3|0);
  20762. $20 = HEAP8[$19>>0]|0;
  20763. $21 = HEAP8[$$15263>>0]|0;
  20764. $22 = ($20<<24>>24)==(0);
  20765. $23 = ((($$15263)) + 2|0);
  20766. $24 = HEAP8[$23>>0]|0;
  20767. if ($22) {
  20768. HEAP8[$$15263>>0] = $24;
  20769. $$sink = $21;
  20770. } else {
  20771. $25 = $24&255;
  20772. $26 = ($25*255)|0;
  20773. $27 = $20&255;
  20774. $28 = (($26>>>0) / ($27>>>0))&-1;
  20775. $29 = $28&255;
  20776. HEAP8[$$15263>>0] = $29;
  20777. $30 = ((($$15263)) + 1|0);
  20778. $31 = HEAP8[$30>>0]|0;
  20779. $32 = $31&255;
  20780. $33 = ($32*255)|0;
  20781. $34 = (($33>>>0) / ($27>>>0))&-1;
  20782. $35 = $34&255;
  20783. HEAP8[$30>>0] = $35;
  20784. $36 = $21&255;
  20785. $37 = ($36*255)|0;
  20786. $38 = (($37>>>0) / ($27>>>0))&-1;
  20787. $39 = $38&255;
  20788. $$sink = $39;
  20789. }
  20790. HEAP8[$23>>0] = $$sink;
  20791. $40 = ((($$15263)) + 4|0);
  20792. $41 = (($$164) + 1)|0;
  20793. $exitcond69 = ($41|0)==($5|0);
  20794. if ($exitcond69) {
  20795. break;
  20796. } else {
  20797. $$15263 = $40;$$164 = $41;
  20798. }
  20799. }
  20800. return;
  20801. break;
  20802. }
  20803. default: {
  20804. ___assert_fail((10306|0),(9847|0),4650,(10324|0));
  20805. // unreachable;
  20806. }
  20807. }
  20808. }
  20809. function _stbi__expand_png_palette($0,$1,$2) {
  20810. $0 = $0|0;
  20811. $1 = $1|0;
  20812. $2 = $2|0;
  20813. var $$0 = 0, $$0574 = 0, $$0583 = 0, $$1595 = 0, $$16 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0;
  20814. var $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0;
  20815. var $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $exitcond = 0, $exitcond9 = 0, label = 0, sp = 0;
  20816. sp = STACKTOP;
  20817. $3 = HEAP32[$0>>2]|0;
  20818. $4 = HEAP32[$3>>2]|0;
  20819. $5 = ((($3)) + 4|0);
  20820. $6 = HEAP32[$5>>2]|0;
  20821. $7 = Math_imul($6, $4)|0;
  20822. $8 = ((($0)) + 12|0);
  20823. $9 = HEAP32[$8>>2]|0;
  20824. $10 = (_stbi__malloc_mad2($7,$2)|0);
  20825. $11 = ($10|0)==(0|0);
  20826. if ($11) {
  20827. _stbi__err(9902);
  20828. $$0 = 0;
  20829. return ($$0|0);
  20830. }
  20831. $12 = ($2|0)==(3);
  20832. $13 = ($7|0)!=(0);
  20833. if ($12) {
  20834. if ($13) {
  20835. $$0574 = 0;$$0583 = $10;
  20836. while(1) {
  20837. $14 = (($9) + ($$0574)|0);
  20838. $15 = HEAP8[$14>>0]|0;
  20839. $16 = $15&255;
  20840. $17 = $16 << 2;
  20841. $18 = (($1) + ($17)|0);
  20842. $19 = HEAP8[$18>>0]|0;
  20843. HEAP8[$$0583>>0] = $19;
  20844. $20 = $17 | 1;
  20845. $21 = (($1) + ($20)|0);
  20846. $22 = HEAP8[$21>>0]|0;
  20847. $23 = ((($$0583)) + 1|0);
  20848. HEAP8[$23>>0] = $22;
  20849. $24 = $17 | 2;
  20850. $25 = (($1) + ($24)|0);
  20851. $26 = HEAP8[$25>>0]|0;
  20852. $27 = ((($$0583)) + 2|0);
  20853. HEAP8[$27>>0] = $26;
  20854. $28 = ((($$0583)) + 3|0);
  20855. $29 = (($$0574) + 1)|0;
  20856. $exitcond = ($29|0)==($7|0);
  20857. if ($exitcond) {
  20858. break;
  20859. } else {
  20860. $$0574 = $29;$$0583 = $28;
  20861. }
  20862. }
  20863. }
  20864. } else {
  20865. if ($13) {
  20866. $$1595 = $10;$$16 = 0;
  20867. while(1) {
  20868. $30 = (($9) + ($$16)|0);
  20869. $31 = HEAP8[$30>>0]|0;
  20870. $32 = $31&255;
  20871. $33 = $32 << 2;
  20872. $34 = (($1) + ($33)|0);
  20873. $35 = HEAP8[$34>>0]|0;
  20874. HEAP8[$$1595>>0] = $35;
  20875. $36 = $33 | 1;
  20876. $37 = (($1) + ($36)|0);
  20877. $38 = HEAP8[$37>>0]|0;
  20878. $39 = ((($$1595)) + 1|0);
  20879. HEAP8[$39>>0] = $38;
  20880. $40 = $33 | 2;
  20881. $41 = (($1) + ($40)|0);
  20882. $42 = HEAP8[$41>>0]|0;
  20883. $43 = ((($$1595)) + 2|0);
  20884. HEAP8[$43>>0] = $42;
  20885. $44 = $33 | 3;
  20886. $45 = (($1) + ($44)|0);
  20887. $46 = HEAP8[$45>>0]|0;
  20888. $47 = ((($$1595)) + 3|0);
  20889. HEAP8[$47>>0] = $46;
  20890. $48 = ((($$1595)) + 4|0);
  20891. $49 = (($$16) + 1)|0;
  20892. $exitcond9 = ($49|0)==($7|0);
  20893. if ($exitcond9) {
  20894. break;
  20895. } else {
  20896. $$1595 = $48;$$16 = $49;
  20897. }
  20898. }
  20899. }
  20900. }
  20901. $50 = HEAP32[$8>>2]|0;
  20902. _free($50);
  20903. HEAP32[$8>>2] = $10;
  20904. $$0 = 1;
  20905. return ($$0|0);
  20906. }
  20907. function _stbi__malloc_mad2($0,$1) {
  20908. $0 = $0|0;
  20909. $1 = $1|0;
  20910. var $$0 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  20911. sp = STACKTOP;
  20912. $2 = (_stbi__mad2sizes_valid($0,$1)|0);
  20913. $3 = ($2|0)==(0);
  20914. if ($3) {
  20915. $$0 = 0;
  20916. return ($$0|0);
  20917. }
  20918. $4 = Math_imul($1, $0)|0;
  20919. $5 = (_stbi__malloc($4)|0);
  20920. $$0 = $5;
  20921. return ($$0|0);
  20922. }
  20923. function _stbi__mad2sizes_valid($0,$1) {
  20924. $0 = $0|0;
  20925. $1 = $1|0;
  20926. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, label = 0, sp = 0;
  20927. sp = STACKTOP;
  20928. $2 = (_stbi__mul2sizes_valid($0,$1)|0);
  20929. $3 = ($2|0)==(0);
  20930. if ($3) {
  20931. $8 = 0;
  20932. $7 = $8&1;
  20933. return ($7|0);
  20934. }
  20935. $4 = Math_imul($1, $0)|0;
  20936. $5 = (_stbi__addsizes_valid($4)|0);
  20937. $6 = ($5|0)!=(0);
  20938. $8 = $6;
  20939. $7 = $8&1;
  20940. return ($7|0);
  20941. }
  20942. function _stbi__create_png_image_raw($0,$1,$2,$3,$4,$5,$6,$7) {
  20943. $0 = $0|0;
  20944. $1 = $1|0;
  20945. $2 = $2|0;
  20946. $3 = $3|0;
  20947. $4 = $4|0;
  20948. $5 = $5|0;
  20949. $6 = $6|0;
  20950. $7 = $7|0;
  20951. var $$0568 = 0, $$0568724 = 0, $$0568725 = 0, $$0571$lcssa = 0, $$0571715 = 0, $$0574$lcssa = 0, $$0574714 = 0, $$0577817 = 0, $$0588 = 0, $$0597 = 0, $$0608816 = 0, $$0611815 = 0, $$0614 = 0, $$0614793 = 0, $$0614796 = 0, $$0623814 = 0, $$0625734 = 0, $$0731 = 0, $$1 = 0, $$10635764 = 0;
  20952. var $$11$ph = 0, $$11636755 = 0, $$12747 = 0, $$13739 = 0, $$14$lcssa = 0, $$14713 = 0, $$15$lcssa = 0, $$15705 = 0, $$1572$lcssa = 0, $$1572707 = 0, $$1575$lcssa = 0, $$1575706 = 0, $$1578 = 0, $$16$lcssa = 0, $$1609 = 0, $$1612 = 0, $$1615 = 0, $$1615785 = 0, $$1615788 = 0, $$1624727 = 0;
  20953. var $$1626812 = 0, $$16700 = 0, $$1721 = 0, $$1722 = 0, $$2 = 0, $$2573$lcssa = 0, $$2573702 = 0, $$2579795 = 0, $$2599794 = 0, $$2616 = 0, $$2616776 = 0, $$2616780 = 0, $$2627810 = 0, $$3580787 = 0, $$3592778 = 0, $$3600786 = 0, $$3617 = 0, $$3617767 = 0, $$3617771 = 0, $$3628808 = 0;
  20954. var $$4$lcssa = 0, $$4581779 = 0, $$4593769 = 0, $$4601777 = 0, $$4618 = 0, $$4618758 = 0, $$4618762 = 0, $$4629806 = 0, $$4701 = 0, $$5582770 = 0, $$5594760 = 0, $$5602768 = 0, $$5619 = 0, $$5619750 = 0, $$5619753 = 0, $$5630804 = 0, $$6583761 = 0, $$6603759 = 0, $$6620 = 0, $$6620742 = 0;
  20955. var $$6620745 = 0, $$6631802 = 0, $$7584752 = 0, $$7604751 = 0, $$7621798 = 0, $$7632790 = 0, $$8585744 = 0, $$8605743 = 0, $$8622729 = 0, $$8633782 = 0, $$9586 = 0, $$9606799 = 0, $$9634773 = 0, $$not = 0, $$sink = 0, $$sink1 = 0, $$sink641 = 0, $10 = 0, $100 = 0, $101 = 0;
  20956. var $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0, $114 = 0, $115 = 0, $116 = 0, $117 = 0, $118 = 0, $119 = 0, $12 = 0;
  20957. var $120 = 0, $121 = 0, $122 = 0, $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 0, $128 = 0, $129 = 0, $13 = 0, $130 = 0, $131 = 0, $132 = 0, $133 = 0, $134 = 0, $135 = 0, $136 = 0, $137 = 0, $138 = 0;
  20958. var $139 = 0, $14 = 0, $140 = 0, $141 = 0, $142 = 0, $143 = 0, $144 = 0, $145 = 0, $146 = 0, $147 = 0, $148 = 0, $149 = 0, $15 = 0, $150 = 0, $151 = 0, $152 = 0, $153 = 0, $154 = 0, $155 = 0, $156 = 0;
  20959. var $157 = 0, $158 = 0, $159 = 0, $16 = 0, $160 = 0, $161 = 0, $162 = 0, $163 = 0, $164 = 0, $165 = 0, $166 = 0, $167 = 0, $168 = 0, $169 = 0, $17 = 0, $170 = 0, $171 = 0, $172 = 0, $173 = 0, $174 = 0;
  20960. var $175 = 0, $176 = 0, $177 = 0, $178 = 0, $179 = 0, $18 = 0, $180 = 0, $181 = 0, $182 = 0, $183 = 0, $184 = 0, $185 = 0, $186 = 0, $187 = 0, $188 = 0, $189 = 0, $19 = 0, $190 = 0, $191 = 0, $192 = 0;
  20961. var $193 = 0, $194 = 0, $195 = 0, $196 = 0, $197 = 0, $198 = 0, $199 = 0, $20 = 0, $200 = 0, $201 = 0, $202 = 0, $203 = 0, $204 = 0, $205 = 0, $206 = 0, $207 = 0, $208 = 0, $209 = 0, $21 = 0, $210 = 0;
  20962. var $211 = 0, $212 = 0, $213 = 0, $214 = 0, $215 = 0, $216 = 0, $217 = 0, $218 = 0, $219 = 0, $22 = 0, $220 = 0, $221 = 0, $222 = 0, $223 = 0, $224 = 0, $225 = 0, $226 = 0, $227 = 0, $228 = 0, $229 = 0;
  20963. var $23 = 0, $230 = 0, $231 = 0, $232 = 0, $233 = 0, $234 = 0, $235 = 0, $236 = 0, $237 = 0, $238 = 0, $239 = 0, $24 = 0, $240 = 0, $241 = 0, $242 = 0, $243 = 0, $244 = 0, $245 = 0, $246 = 0, $247 = 0;
  20964. var $248 = 0, $249 = 0, $25 = 0, $250 = 0, $251 = 0, $252 = 0, $253 = 0, $254 = 0, $255 = 0, $256 = 0, $257 = 0, $258 = 0, $259 = 0, $26 = 0, $260 = 0, $261 = 0, $262 = 0, $263 = 0, $264 = 0, $265 = 0;
  20965. var $266 = 0, $267 = 0, $268 = 0, $269 = 0, $27 = 0, $270 = 0, $271 = 0, $272 = 0, $273 = 0, $274 = 0, $275 = 0, $276 = 0, $277 = 0, $278 = 0, $279 = 0, $28 = 0, $280 = 0, $281 = 0, $282 = 0, $283 = 0;
  20966. var $284 = 0, $285 = 0, $286 = 0, $287 = 0, $288 = 0, $289 = 0, $29 = 0, $290 = 0, $291 = 0, $292 = 0, $293 = 0, $294 = 0, $295 = 0, $296 = 0, $297 = 0, $298 = 0, $299 = 0, $30 = 0, $300 = 0, $301 = 0;
  20967. var $302 = 0, $303 = 0, $304 = 0, $305 = 0, $306 = 0, $307 = 0, $308 = 0, $309 = 0, $31 = 0, $310 = 0, $311 = 0, $312 = 0, $313 = 0, $314 = 0, $315 = 0, $316 = 0, $317 = 0, $318 = 0, $319 = 0, $32 = 0;
  20968. var $320 = 0, $321 = 0, $322 = 0, $323 = 0, $324 = 0, $325 = 0, $326 = 0, $327 = 0, $328 = 0, $329 = 0, $33 = 0, $330 = 0, $331 = 0, $332 = 0, $333 = 0, $334 = 0, $335 = 0, $336 = 0, $337 = 0, $338 = 0;
  20969. var $339 = 0, $34 = 0, $340 = 0, $341 = 0, $342 = 0, $343 = 0, $344 = 0, $345 = 0, $346 = 0, $347 = 0, $348 = 0, $349 = 0, $35 = 0, $350 = 0, $351 = 0, $352 = 0, $353 = 0, $354 = 0, $355 = 0, $356 = 0;
  20970. var $357 = 0, $358 = 0, $359 = 0, $36 = 0, $360 = 0, $361 = 0, $362 = 0, $363 = 0, $364 = 0, $365 = 0, $366 = 0, $367 = 0, $368 = 0, $369 = 0, $37 = 0, $370 = 0, $371 = 0, $372 = 0, $373 = 0, $374 = 0;
  20971. var $375 = 0, $376 = 0, $377 = 0, $378 = 0, $379 = 0, $38 = 0, $380 = 0, $381 = 0, $382 = 0, $383 = 0, $384 = 0, $385 = 0, $386 = 0, $387 = 0, $388 = 0, $389 = 0, $39 = 0, $390 = 0, $391 = 0, $392 = 0;
  20972. var $393 = 0, $394 = 0, $395 = 0, $396 = 0, $397 = 0, $398 = 0, $399 = 0, $40 = 0, $400 = 0, $401 = 0, $402 = 0, $403 = 0, $404 = 0, $405 = 0, $406 = 0, $407 = 0, $408 = 0, $409 = 0, $41 = 0, $410 = 0;
  20973. var $411 = 0, $412 = 0, $413 = 0, $414 = 0, $415 = 0, $416 = 0, $417 = 0, $418 = 0, $419 = 0, $42 = 0, $420 = 0, $421 = 0, $422 = 0, $423 = 0, $424 = 0, $425 = 0, $426 = 0, $427 = 0, $428 = 0, $429 = 0;
  20974. var $43 = 0, $430 = 0, $431 = 0, $432 = 0, $433 = 0, $434 = 0, $435 = 0, $436 = 0, $437 = 0, $438 = 0, $439 = 0, $44 = 0, $440 = 0, $441 = 0, $442 = 0, $443 = 0, $444 = 0, $445 = 0, $446 = 0, $447 = 0;
  20975. var $448 = 0, $449 = 0, $45 = 0, $450 = 0, $451 = 0, $452 = 0, $453 = 0, $454 = 0, $455 = 0, $456 = 0, $457 = 0, $458 = 0, $459 = 0, $46 = 0, $460 = 0, $461 = 0, $462 = 0, $463 = 0, $464 = 0, $465 = 0;
  20976. var $466 = 0, $467 = 0, $468 = 0, $469 = 0, $47 = 0, $470 = 0, $471 = 0, $472 = 0, $473 = 0, $474 = 0, $475 = 0, $476 = 0, $477 = 0, $478 = 0, $479 = 0, $48 = 0, $480 = 0, $481 = 0, $482 = 0, $483 = 0;
  20977. var $484 = 0, $485 = 0, $486 = 0, $487 = 0, $488 = 0, $489 = 0, $49 = 0, $490 = 0, $491 = 0, $492 = 0, $493 = 0, $494 = 0, $495 = 0, $496 = 0, $497 = 0, $498 = 0, $499 = 0, $50 = 0, $500 = 0, $501 = 0;
  20978. var $502 = 0, $503 = 0, $504 = 0, $505 = 0, $506 = 0, $507 = 0, $508 = 0, $509 = 0, $51 = 0, $510 = 0, $511 = 0, $512 = 0, $513 = 0, $514 = 0, $515 = 0, $516 = 0, $517 = 0, $518 = 0, $519 = 0, $52 = 0;
  20979. var $520 = 0, $521 = 0, $522 = 0, $523 = 0, $524 = 0, $525 = 0, $526 = 0, $527 = 0, $528 = 0, $529 = 0, $53 = 0, $530 = 0, $531 = 0, $532 = 0, $533 = 0, $534 = 0, $535 = 0, $536 = 0, $537 = 0, $538 = 0;
  20980. var $539 = 0, $54 = 0, $540 = 0, $541 = 0, $542 = 0, $543 = 0, $544 = 0, $545 = 0, $546 = 0, $547 = 0, $548 = 0, $549 = 0, $55 = 0, $550 = 0, $551 = 0, $552 = 0, $553 = 0, $554 = 0, $555 = 0, $556 = 0;
  20981. var $557 = 0, $558 = 0, $559 = 0, $56 = 0, $560 = 0, $561 = 0, $562 = 0, $563 = 0, $564 = 0, $565 = 0, $566 = 0, $567 = 0, $568 = 0, $569 = 0, $57 = 0, $570 = 0, $571 = 0, $572 = 0, $573 = 0, $574 = 0;
  20982. var $575 = 0, $576 = 0, $577 = 0, $578 = 0, $579 = 0, $58 = 0, $580 = 0, $581 = 0, $582 = 0, $583 = 0, $584 = 0, $585 = 0, $586 = 0, $587 = 0, $588 = 0, $589 = 0, $59 = 0, $590 = 0, $591 = 0, $592 = 0;
  20983. var $593 = 0, $594 = 0, $595 = 0, $596 = 0, $597 = 0, $598 = 0, $599 = 0, $60 = 0, $600 = 0, $601 = 0, $602 = 0, $603 = 0, $604 = 0, $605 = 0, $606 = 0, $607 = 0, $608 = 0, $609 = 0, $61 = 0, $610 = 0;
  20984. var $611 = 0, $612 = 0, $613 = 0, $614 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0;
  20985. var $78 = 0, $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0, $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0;
  20986. var $96 = 0, $97 = 0, $98 = 0, $99 = 0, $brmerge = 0, $brmerge894 = 0, $exitcond = 0, $exitcond864 = 0, $exitcond865 = 0, $exitcond867 = 0, $exitcond869 = 0, $exitcond871 = 0, $exitcond873 = 0, $exitcond875 = 0, $exitcond877 = 0, $exitcond880 = 0, $exitcond881 = 0, $exitcond882 = 0, $exitcond883 = 0, $exitcond884 = 0;
  20987. var $exitcond885 = 0, $exitcond886 = 0, $indvars$iv = 0, $indvars$iv$next = 0, $indvars$iv$next849 = 0, $indvars$iv$next852 = 0, $indvars$iv$next855 = 0, $indvars$iv$next858 = 0, $indvars$iv$next861 = 0, $indvars$iv848 = 0, $indvars$iv851 = 0, $indvars$iv854 = 0, $indvars$iv857 = 0, $indvars$iv860 = 0, $or$cond = 0, $scevgep = 0, $scevgep850 = 0, $scevgep853 = 0, $scevgep856 = 0, $scevgep859 = 0;
  20988. var $scevgep862 = 0, $scevgep866 = 0, $scevgep868 = 0, $scevgep870 = 0, $scevgep872 = 0, $scevgep874 = 0, $scevgep876 = 0, $scevgep879 = 0, $trunc = 0, $trunc637 = 0, $trunc638 = 0, label = 0, sp = 0;
  20989. sp = STACKTOP;
  20990. $8 = ($6|0)==(16);
  20991. $9 = $8 ? 2 : 1;
  20992. $10 = HEAP32[$0>>2]|0;
  20993. $11 = Math_imul($4, $3)|0;
  20994. $12 = Math_imul($9, $11)|0;
  20995. $13 = ((($10)) + 8|0);
  20996. $14 = HEAP32[$13>>2]|0;
  20997. $15 = Math_imul($9, $3)|0;
  20998. $16 = Math_imul($14, $9)|0;
  20999. $17 = ($14|0)==($3|0);
  21000. $18 = (($14) + 1)|0;
  21001. $19 = ($18|0)==($3|0);
  21002. $or$cond = $17 | $19;
  21003. if (!($or$cond)) {
  21004. ___assert_fail((10421|0),(9847|0),4294,(10462|0));
  21005. // unreachable;
  21006. }
  21007. $20 = (_stbi__malloc_mad3($4,$5,$15)|0);
  21008. $21 = ((($0)) + 12|0);
  21009. HEAP32[$21>>2] = $20;
  21010. $22 = ($20|0)==(0|0);
  21011. if ($22) {
  21012. _stbi__err(9902);
  21013. $$2 = 0;
  21014. return ($$2|0);
  21015. }
  21016. $23 = Math_imul($14, $4)|0;
  21017. $24 = Math_imul($23, $6)|0;
  21018. $25 = (($24) + 7)|0;
  21019. $26 = $25 >>> 3;
  21020. $27 = (($26) + 1)|0;
  21021. $28 = Math_imul($27, $5)|0;
  21022. $29 = HEAP32[$10>>2]|0;
  21023. $30 = ($29|0)==($4|0);
  21024. if ($30) {
  21025. $31 = ((($10)) + 4|0);
  21026. $32 = HEAP32[$31>>2]|0;
  21027. $33 = ($32|0)==($5|0);
  21028. if ($33) {
  21029. $34 = ($28|0)==($2|0);
  21030. if (!($34)) {
  21031. _stbi__err(10489);
  21032. $$2 = 0;
  21033. return ($$2|0);
  21034. }
  21035. } else {
  21036. label = 9;
  21037. }
  21038. } else {
  21039. label = 9;
  21040. }
  21041. if ((label|0) == 9) {
  21042. $35 = ($28>>>0)>($2>>>0);
  21043. if ($35) {
  21044. _stbi__err(10489);
  21045. $$2 = 0;
  21046. return ($$2|0);
  21047. }
  21048. }
  21049. $36 = ($5|0)==(0);
  21050. L18: do {
  21051. if (!($36)) {
  21052. $37 = ($6|0)<(8);
  21053. $38 = ($26>>>0)>($4>>>0);
  21054. $39 = (($11) - ($26))|0;
  21055. $40 = (0 - ($12))|0;
  21056. $41 = ($6|0)==(8);
  21057. $brmerge = $37 | $17;
  21058. $42 = ($4|0)==(0);
  21059. $$0614793 = (($4) + -1)|0;
  21060. $43 = ($$0614793|0)==(0);
  21061. $$1615785 = (($4) + -1)|0;
  21062. $44 = ($$1615785|0)==(0);
  21063. $$2616776 = (($4) + -1)|0;
  21064. $45 = ($$2616776|0)==(0);
  21065. $$3617767 = (($4) + -1)|0;
  21066. $46 = ($$3617767|0)==(0);
  21067. $$4618758 = (($4) + -1)|0;
  21068. $47 = ($$4618758|0)==(0);
  21069. $$5619750 = (($4) + -1)|0;
  21070. $48 = ($$5619750|0)==(0);
  21071. $$6620742 = (($4) + -1)|0;
  21072. $49 = ($$6620742|0)==(0);
  21073. $$not = $8 ^ 1;
  21074. $brmerge894 = $42 | $$not;
  21075. $$0577817 = $1;$$0608816 = $4;$$0611815 = $16;$$0623814 = 0;
  21076. while(1) {
  21077. $50 = HEAP32[$21>>2]|0;
  21078. $51 = Math_imul($$0623814, $12)|0;
  21079. $52 = (($50) + ($51)|0);
  21080. $53 = ((($$0577817)) + 1|0);
  21081. $54 = HEAP8[$$0577817>>0]|0;
  21082. $55 = $54&255;
  21083. $56 = ($54&255)>(4);
  21084. if ($56) {
  21085. label = 105;
  21086. break;
  21087. }
  21088. if ($37) {
  21089. if ($38) {
  21090. label = 16;
  21091. break;
  21092. }
  21093. $57 = (($52) + ($39)|0);
  21094. $$0597 = $57;$$1609 = $26;$$1612 = 1;
  21095. } else {
  21096. $$0597 = $52;$$1609 = $$0608816;$$1612 = $$0611815;
  21097. }
  21098. $58 = (($$0597) + ($40)|0);
  21099. $59 = ($$0623814|0)==(0);
  21100. if ($59) {
  21101. $60 = (10528 + ($55)|0);
  21102. $61 = HEAP8[$60>>0]|0;
  21103. $62 = $61&255;
  21104. $$0588 = $62;
  21105. } else {
  21106. $$0588 = $55;
  21107. }
  21108. $63 = ($$1612|0)>(0);
  21109. L30: do {
  21110. if ($63) {
  21111. $trunc638 = $$0588&255;
  21112. $$0625734 = 0;
  21113. while(1) {
  21114. switch ($trunc638<<24>>24) {
  21115. case 0: {
  21116. $64 = (($53) + ($$0625734)|0);
  21117. $65 = HEAP8[$64>>0]|0;
  21118. $$sink = $65;
  21119. label = 30;
  21120. break;
  21121. }
  21122. case 1: {
  21123. $66 = (($53) + ($$0625734)|0);
  21124. $67 = HEAP8[$66>>0]|0;
  21125. $$sink = $67;
  21126. label = 30;
  21127. break;
  21128. }
  21129. case 2: {
  21130. $68 = (($53) + ($$0625734)|0);
  21131. $69 = HEAP8[$68>>0]|0;
  21132. $70 = $69&255;
  21133. $71 = (($58) + ($$0625734)|0);
  21134. $72 = HEAP8[$71>>0]|0;
  21135. $73 = $72&255;
  21136. $74 = (($73) + ($70))|0;
  21137. $75 = $74&255;
  21138. $$sink = $75;
  21139. label = 30;
  21140. break;
  21141. }
  21142. case 3: {
  21143. $76 = (($53) + ($$0625734)|0);
  21144. $77 = HEAP8[$76>>0]|0;
  21145. $78 = $77&255;
  21146. $79 = (($58) + ($$0625734)|0);
  21147. $80 = HEAP8[$79>>0]|0;
  21148. $81 = $80&255;
  21149. $82 = $81 >>> 1;
  21150. $83 = (($82) + ($78))|0;
  21151. $84 = $83&255;
  21152. $$sink = $84;
  21153. label = 30;
  21154. break;
  21155. }
  21156. case 4: {
  21157. $85 = (($53) + ($$0625734)|0);
  21158. $86 = HEAP8[$85>>0]|0;
  21159. $87 = $86&255;
  21160. $88 = (($58) + ($$0625734)|0);
  21161. $89 = HEAP8[$88>>0]|0;
  21162. $90 = $89&255;
  21163. $91 = (_stbi__paeth(0,$90,0)|0);
  21164. $92 = (($91) + ($87))|0;
  21165. $93 = $92&255;
  21166. $$sink = $93;
  21167. label = 30;
  21168. break;
  21169. }
  21170. case 5: {
  21171. $94 = (($53) + ($$0625734)|0);
  21172. $95 = HEAP8[$94>>0]|0;
  21173. $$sink = $95;
  21174. label = 30;
  21175. break;
  21176. }
  21177. case 6: {
  21178. $96 = (($53) + ($$0625734)|0);
  21179. $97 = HEAP8[$96>>0]|0;
  21180. $$sink = $97;
  21181. label = 30;
  21182. break;
  21183. }
  21184. default: {
  21185. }
  21186. }
  21187. if ((label|0) == 30) {
  21188. label = 0;
  21189. $$sink1 = (($$0597) + ($$0625734)|0);
  21190. HEAP8[$$sink1>>0] = $$sink;
  21191. }
  21192. $98 = (($$0625734) + 1)|0;
  21193. $exitcond864 = ($98|0)==($$1612|0);
  21194. if ($exitcond864) {
  21195. break L30;
  21196. } else {
  21197. $$0625734 = $98;
  21198. }
  21199. }
  21200. }
  21201. } while(0);
  21202. do {
  21203. if ($41) {
  21204. if (!($17)) {
  21205. $99 = (($$0597) + ($14)|0);
  21206. HEAP8[$99>>0] = -1;
  21207. }
  21208. $100 = (($53) + ($14)|0);
  21209. $$1578 = $100;$$sink641 = $3;
  21210. } else {
  21211. if (!($8)) {
  21212. $105 = ((($$0577817)) + 2|0);
  21213. $$1578 = $105;$$sink641 = 1;
  21214. break;
  21215. }
  21216. if (!($17)) {
  21217. $101 = (($$1612) + 1)|0;
  21218. $102 = (($$0597) + ($101)|0);
  21219. $103 = (($$0597) + ($$1612)|0);
  21220. HEAP8[$103>>0] = -1;
  21221. HEAP8[$102>>0] = -1;
  21222. }
  21223. $104 = (($53) + ($$1612)|0);
  21224. $$1578 = $104;$$sink641 = $15;
  21225. }
  21226. } while(0);
  21227. $106 = (($$0597) + ($$sink641)|0);
  21228. $107 = (($58) + ($$sink641)|0);
  21229. if ($brmerge) {
  21230. $108 = (($$1609) + -1)|0;
  21231. $109 = Math_imul($108, $$1612)|0;
  21232. $trunc637 = $$0588&255;
  21233. switch ($trunc637<<24>>24) {
  21234. case 0: {
  21235. _memcpy(($106|0),($$1578|0),($109|0))|0;
  21236. break;
  21237. }
  21238. case 1: {
  21239. $115 = ($109|0)>(0);
  21240. if ($115) {
  21241. $$1626812 = 0;
  21242. while(1) {
  21243. $116 = (($$1578) + ($$1626812)|0);
  21244. $117 = HEAP8[$116>>0]|0;
  21245. $118 = $117&255;
  21246. $119 = (($$1626812) - ($$1612))|0;
  21247. $120 = (($106) + ($119)|0);
  21248. $121 = HEAP8[$120>>0]|0;
  21249. $122 = $121&255;
  21250. $123 = (($122) + ($118))|0;
  21251. $124 = $123&255;
  21252. $125 = (($106) + ($$1626812)|0);
  21253. HEAP8[$125>>0] = $124;
  21254. $126 = (($$1626812) + 1)|0;
  21255. $exitcond886 = ($126|0)==($109|0);
  21256. if ($exitcond886) {
  21257. break;
  21258. } else {
  21259. $$1626812 = $126;
  21260. }
  21261. }
  21262. }
  21263. break;
  21264. }
  21265. case 2: {
  21266. $114 = ($109|0)>(0);
  21267. if ($114) {
  21268. $$2627810 = 0;
  21269. while(1) {
  21270. $127 = (($$1578) + ($$2627810)|0);
  21271. $128 = HEAP8[$127>>0]|0;
  21272. $129 = $128&255;
  21273. $130 = (($107) + ($$2627810)|0);
  21274. $131 = HEAP8[$130>>0]|0;
  21275. $132 = $131&255;
  21276. $133 = (($132) + ($129))|0;
  21277. $134 = $133&255;
  21278. $135 = (($106) + ($$2627810)|0);
  21279. HEAP8[$135>>0] = $134;
  21280. $136 = (($$2627810) + 1)|0;
  21281. $exitcond885 = ($136|0)==($109|0);
  21282. if ($exitcond885) {
  21283. break;
  21284. } else {
  21285. $$2627810 = $136;
  21286. }
  21287. }
  21288. }
  21289. break;
  21290. }
  21291. case 3: {
  21292. $113 = ($109|0)>(0);
  21293. if ($113) {
  21294. $$3628808 = 0;
  21295. while(1) {
  21296. $137 = (($$1578) + ($$3628808)|0);
  21297. $138 = HEAP8[$137>>0]|0;
  21298. $139 = $138&255;
  21299. $140 = (($107) + ($$3628808)|0);
  21300. $141 = HEAP8[$140>>0]|0;
  21301. $142 = $141&255;
  21302. $143 = (($$3628808) - ($$1612))|0;
  21303. $144 = (($106) + ($143)|0);
  21304. $145 = HEAP8[$144>>0]|0;
  21305. $146 = $145&255;
  21306. $147 = (($146) + ($142))|0;
  21307. $148 = $147 >>> 1;
  21308. $149 = (($148) + ($139))|0;
  21309. $150 = $149&255;
  21310. $151 = (($106) + ($$3628808)|0);
  21311. HEAP8[$151>>0] = $150;
  21312. $152 = (($$3628808) + 1)|0;
  21313. $exitcond884 = ($152|0)==($109|0);
  21314. if ($exitcond884) {
  21315. break;
  21316. } else {
  21317. $$3628808 = $152;
  21318. }
  21319. }
  21320. }
  21321. break;
  21322. }
  21323. case 4: {
  21324. $112 = ($109|0)>(0);
  21325. if ($112) {
  21326. $$4629806 = 0;
  21327. while(1) {
  21328. $153 = (($$1578) + ($$4629806)|0);
  21329. $154 = HEAP8[$153>>0]|0;
  21330. $155 = $154&255;
  21331. $156 = (($$4629806) - ($$1612))|0;
  21332. $157 = (($106) + ($156)|0);
  21333. $158 = HEAP8[$157>>0]|0;
  21334. $159 = $158&255;
  21335. $160 = (($107) + ($$4629806)|0);
  21336. $161 = HEAP8[$160>>0]|0;
  21337. $162 = $161&255;
  21338. $163 = (($107) + ($156)|0);
  21339. $164 = HEAP8[$163>>0]|0;
  21340. $165 = $164&255;
  21341. $166 = (_stbi__paeth($159,$162,$165)|0);
  21342. $167 = (($166) + ($155))|0;
  21343. $168 = $167&255;
  21344. $169 = (($106) + ($$4629806)|0);
  21345. HEAP8[$169>>0] = $168;
  21346. $170 = (($$4629806) + 1)|0;
  21347. $exitcond883 = ($170|0)==($109|0);
  21348. if ($exitcond883) {
  21349. break;
  21350. } else {
  21351. $$4629806 = $170;
  21352. }
  21353. }
  21354. }
  21355. break;
  21356. }
  21357. case 5: {
  21358. $111 = ($109|0)>(0);
  21359. if ($111) {
  21360. $$5630804 = 0;
  21361. while(1) {
  21362. $171 = (($$1578) + ($$5630804)|0);
  21363. $172 = HEAP8[$171>>0]|0;
  21364. $173 = $172&255;
  21365. $174 = (($$5630804) - ($$1612))|0;
  21366. $175 = (($106) + ($174)|0);
  21367. $176 = HEAP8[$175>>0]|0;
  21368. $177 = $176&255;
  21369. $178 = $177 >>> 1;
  21370. $179 = (($178) + ($173))|0;
  21371. $180 = $179&255;
  21372. $181 = (($106) + ($$5630804)|0);
  21373. HEAP8[$181>>0] = $180;
  21374. $182 = (($$5630804) + 1)|0;
  21375. $exitcond882 = ($182|0)==($109|0);
  21376. if ($exitcond882) {
  21377. break;
  21378. } else {
  21379. $$5630804 = $182;
  21380. }
  21381. }
  21382. }
  21383. break;
  21384. }
  21385. case 6: {
  21386. $110 = ($109|0)>(0);
  21387. if ($110) {
  21388. $$6631802 = 0;
  21389. while(1) {
  21390. $183 = (($$1578) + ($$6631802)|0);
  21391. $184 = HEAP8[$183>>0]|0;
  21392. $185 = $184&255;
  21393. $186 = (($$6631802) - ($$1612))|0;
  21394. $187 = (($106) + ($186)|0);
  21395. $188 = HEAP8[$187>>0]|0;
  21396. $189 = $188&255;
  21397. $190 = (_stbi__paeth($189,0,0)|0);
  21398. $191 = (($190) + ($185))|0;
  21399. $192 = $191&255;
  21400. $193 = (($106) + ($$6631802)|0);
  21401. HEAP8[$193>>0] = $192;
  21402. $194 = (($$6631802) + 1)|0;
  21403. $exitcond881 = ($194|0)==($109|0);
  21404. if ($exitcond881) {
  21405. break;
  21406. } else {
  21407. $$6631802 = $194;
  21408. }
  21409. }
  21410. }
  21411. break;
  21412. }
  21413. default: {
  21414. }
  21415. }
  21416. $195 = (($$1578) + ($109)|0);
  21417. $$11$ph = $195;
  21418. } else {
  21419. if (!($19)) {
  21420. label = 58;
  21421. break;
  21422. }
  21423. $trunc = $$0588&255;
  21424. switch ($trunc<<24>>24) {
  21425. case 0: {
  21426. if ($43) {
  21427. $$9586 = $$1578;
  21428. } else {
  21429. $208 = ($$1612|0)>(0);
  21430. $209 = Math_imul($$6620742, $$1612)|0;
  21431. $$0614796 = $$0614793;$$2579795 = $$1578;$$2599794 = $106;
  21432. while(1) {
  21433. if ($208) {
  21434. $$7632790 = 0;
  21435. while(1) {
  21436. $210 = (($$2579795) + ($$7632790)|0);
  21437. $211 = HEAP8[$210>>0]|0;
  21438. $212 = (($$2599794) + ($$7632790)|0);
  21439. HEAP8[$212>>0] = $211;
  21440. $213 = (($$7632790) + 1)|0;
  21441. $exitcond877 = ($213|0)==($$1612|0);
  21442. if ($exitcond877) {
  21443. break;
  21444. } else {
  21445. $$7632790 = $213;
  21446. }
  21447. }
  21448. }
  21449. $214 = (($$2599794) + ($$1612)|0);
  21450. HEAP8[$214>>0] = -1;
  21451. $215 = (($$2579795) + ($$1612)|0);
  21452. $216 = (($$2599794) + ($15)|0);
  21453. $$0614 = (($$0614796) + -1)|0;
  21454. $217 = ($$0614|0)==(0);
  21455. if ($217) {
  21456. break;
  21457. } else {
  21458. $$0614796 = $$0614;$$2579795 = $215;$$2599794 = $216;
  21459. }
  21460. }
  21461. $scevgep879 = (($$1578) + ($209)|0);
  21462. $$9586 = $scevgep879;
  21463. }
  21464. break;
  21465. }
  21466. case 1: {
  21467. if ($44) {
  21468. $$9586 = $$1578;
  21469. } else {
  21470. $206 = ($$1612|0)>(0);
  21471. $207 = Math_imul($$6620742, $$1612)|0;
  21472. $$1615788 = $$1615785;$$3580787 = $$1578;$$3600786 = $106;
  21473. while(1) {
  21474. if ($206) {
  21475. $$8633782 = 0;
  21476. while(1) {
  21477. $218 = (($$3580787) + ($$8633782)|0);
  21478. $219 = HEAP8[$218>>0]|0;
  21479. $220 = $219&255;
  21480. $221 = (($$8633782) - ($15))|0;
  21481. $222 = (($$3600786) + ($221)|0);
  21482. $223 = HEAP8[$222>>0]|0;
  21483. $224 = $223&255;
  21484. $225 = (($224) + ($220))|0;
  21485. $226 = $225&255;
  21486. $227 = (($$3600786) + ($$8633782)|0);
  21487. HEAP8[$227>>0] = $226;
  21488. $228 = (($$8633782) + 1)|0;
  21489. $exitcond875 = ($228|0)==($$1612|0);
  21490. if ($exitcond875) {
  21491. break;
  21492. } else {
  21493. $$8633782 = $228;
  21494. }
  21495. }
  21496. }
  21497. $229 = (($$3600786) + ($$1612)|0);
  21498. HEAP8[$229>>0] = -1;
  21499. $230 = (($$3580787) + ($$1612)|0);
  21500. $231 = (($$3600786) + ($15)|0);
  21501. $$1615 = (($$1615788) + -1)|0;
  21502. $232 = ($$1615|0)==(0);
  21503. if ($232) {
  21504. break;
  21505. } else {
  21506. $$1615788 = $$1615;$$3580787 = $230;$$3600786 = $231;
  21507. }
  21508. }
  21509. $scevgep876 = (($$1578) + ($207)|0);
  21510. $$9586 = $scevgep876;
  21511. }
  21512. break;
  21513. }
  21514. case 2: {
  21515. if ($45) {
  21516. $$9586 = $$1578;
  21517. } else {
  21518. $204 = ($$1612|0)>(0);
  21519. $205 = Math_imul($$6620742, $$1612)|0;
  21520. $$2616780 = $$2616776;$$3592778 = $107;$$4581779 = $$1578;$$4601777 = $106;
  21521. while(1) {
  21522. if ($204) {
  21523. $$9634773 = 0;
  21524. while(1) {
  21525. $233 = (($$4581779) + ($$9634773)|0);
  21526. $234 = HEAP8[$233>>0]|0;
  21527. $235 = $234&255;
  21528. $236 = (($$3592778) + ($$9634773)|0);
  21529. $237 = HEAP8[$236>>0]|0;
  21530. $238 = $237&255;
  21531. $239 = (($238) + ($235))|0;
  21532. $240 = $239&255;
  21533. $241 = (($$4601777) + ($$9634773)|0);
  21534. HEAP8[$241>>0] = $240;
  21535. $242 = (($$9634773) + 1)|0;
  21536. $exitcond873 = ($242|0)==($$1612|0);
  21537. if ($exitcond873) {
  21538. break;
  21539. } else {
  21540. $$9634773 = $242;
  21541. }
  21542. }
  21543. }
  21544. $243 = (($$4601777) + ($$1612)|0);
  21545. HEAP8[$243>>0] = -1;
  21546. $244 = (($$4581779) + ($$1612)|0);
  21547. $245 = (($$4601777) + ($15)|0);
  21548. $246 = (($$3592778) + ($15)|0);
  21549. $$2616 = (($$2616780) + -1)|0;
  21550. $247 = ($$2616|0)==(0);
  21551. if ($247) {
  21552. break;
  21553. } else {
  21554. $$2616780 = $$2616;$$3592778 = $246;$$4581779 = $244;$$4601777 = $245;
  21555. }
  21556. }
  21557. $scevgep874 = (($$1578) + ($205)|0);
  21558. $$9586 = $scevgep874;
  21559. }
  21560. break;
  21561. }
  21562. case 3: {
  21563. if ($46) {
  21564. $$9586 = $$1578;
  21565. } else {
  21566. $202 = ($$1612|0)>(0);
  21567. $203 = Math_imul($$6620742, $$1612)|0;
  21568. $$3617771 = $$3617767;$$4593769 = $107;$$5582770 = $$1578;$$5602768 = $106;
  21569. while(1) {
  21570. if ($202) {
  21571. $$10635764 = 0;
  21572. while(1) {
  21573. $248 = (($$5582770) + ($$10635764)|0);
  21574. $249 = HEAP8[$248>>0]|0;
  21575. $250 = $249&255;
  21576. $251 = (($$4593769) + ($$10635764)|0);
  21577. $252 = HEAP8[$251>>0]|0;
  21578. $253 = $252&255;
  21579. $254 = (($$10635764) - ($15))|0;
  21580. $255 = (($$5602768) + ($254)|0);
  21581. $256 = HEAP8[$255>>0]|0;
  21582. $257 = $256&255;
  21583. $258 = (($257) + ($253))|0;
  21584. $259 = $258 >>> 1;
  21585. $260 = (($259) + ($250))|0;
  21586. $261 = $260&255;
  21587. $262 = (($$5602768) + ($$10635764)|0);
  21588. HEAP8[$262>>0] = $261;
  21589. $263 = (($$10635764) + 1)|0;
  21590. $exitcond871 = ($263|0)==($$1612|0);
  21591. if ($exitcond871) {
  21592. break;
  21593. } else {
  21594. $$10635764 = $263;
  21595. }
  21596. }
  21597. }
  21598. $264 = (($$5602768) + ($$1612)|0);
  21599. HEAP8[$264>>0] = -1;
  21600. $265 = (($$5582770) + ($$1612)|0);
  21601. $266 = (($$5602768) + ($15)|0);
  21602. $267 = (($$4593769) + ($15)|0);
  21603. $$3617 = (($$3617771) + -1)|0;
  21604. $268 = ($$3617|0)==(0);
  21605. if ($268) {
  21606. break;
  21607. } else {
  21608. $$3617771 = $$3617;$$4593769 = $267;$$5582770 = $265;$$5602768 = $266;
  21609. }
  21610. }
  21611. $scevgep872 = (($$1578) + ($203)|0);
  21612. $$9586 = $scevgep872;
  21613. }
  21614. break;
  21615. }
  21616. case 4: {
  21617. if ($47) {
  21618. $$9586 = $$1578;
  21619. } else {
  21620. $200 = ($$1612|0)>(0);
  21621. $201 = Math_imul($$6620742, $$1612)|0;
  21622. $$4618762 = $$4618758;$$5594760 = $107;$$6583761 = $$1578;$$6603759 = $106;
  21623. while(1) {
  21624. if ($200) {
  21625. $$11636755 = 0;
  21626. while(1) {
  21627. $269 = (($$6583761) + ($$11636755)|0);
  21628. $270 = HEAP8[$269>>0]|0;
  21629. $271 = $270&255;
  21630. $272 = (($$11636755) - ($15))|0;
  21631. $273 = (($$6603759) + ($272)|0);
  21632. $274 = HEAP8[$273>>0]|0;
  21633. $275 = $274&255;
  21634. $276 = (($$5594760) + ($$11636755)|0);
  21635. $277 = HEAP8[$276>>0]|0;
  21636. $278 = $277&255;
  21637. $279 = (($$5594760) + ($272)|0);
  21638. $280 = HEAP8[$279>>0]|0;
  21639. $281 = $280&255;
  21640. $282 = (_stbi__paeth($275,$278,$281)|0);
  21641. $283 = (($282) + ($271))|0;
  21642. $284 = $283&255;
  21643. $285 = (($$6603759) + ($$11636755)|0);
  21644. HEAP8[$285>>0] = $284;
  21645. $286 = (($$11636755) + 1)|0;
  21646. $exitcond869 = ($286|0)==($$1612|0);
  21647. if ($exitcond869) {
  21648. break;
  21649. } else {
  21650. $$11636755 = $286;
  21651. }
  21652. }
  21653. }
  21654. $287 = (($$6603759) + ($$1612)|0);
  21655. HEAP8[$287>>0] = -1;
  21656. $288 = (($$6583761) + ($$1612)|0);
  21657. $289 = (($$6603759) + ($15)|0);
  21658. $290 = (($$5594760) + ($15)|0);
  21659. $$4618 = (($$4618762) + -1)|0;
  21660. $291 = ($$4618|0)==(0);
  21661. if ($291) {
  21662. break;
  21663. } else {
  21664. $$4618762 = $$4618;$$5594760 = $290;$$6583761 = $288;$$6603759 = $289;
  21665. }
  21666. }
  21667. $scevgep870 = (($$1578) + ($201)|0);
  21668. $$9586 = $scevgep870;
  21669. }
  21670. break;
  21671. }
  21672. case 5: {
  21673. if ($48) {
  21674. $$9586 = $$1578;
  21675. } else {
  21676. $198 = ($$1612|0)>(0);
  21677. $199 = Math_imul($$6620742, $$1612)|0;
  21678. $$5619753 = $$5619750;$$7584752 = $$1578;$$7604751 = $106;
  21679. while(1) {
  21680. if ($198) {
  21681. $$12747 = 0;
  21682. while(1) {
  21683. $292 = (($$7584752) + ($$12747)|0);
  21684. $293 = HEAP8[$292>>0]|0;
  21685. $294 = $293&255;
  21686. $295 = (($$12747) - ($15))|0;
  21687. $296 = (($$7604751) + ($295)|0);
  21688. $297 = HEAP8[$296>>0]|0;
  21689. $298 = $297&255;
  21690. $299 = $298 >>> 1;
  21691. $300 = (($299) + ($294))|0;
  21692. $301 = $300&255;
  21693. $302 = (($$7604751) + ($$12747)|0);
  21694. HEAP8[$302>>0] = $301;
  21695. $303 = (($$12747) + 1)|0;
  21696. $exitcond867 = ($303|0)==($$1612|0);
  21697. if ($exitcond867) {
  21698. break;
  21699. } else {
  21700. $$12747 = $303;
  21701. }
  21702. }
  21703. }
  21704. $304 = (($$7604751) + ($$1612)|0);
  21705. HEAP8[$304>>0] = -1;
  21706. $305 = (($$7584752) + ($$1612)|0);
  21707. $306 = (($$7604751) + ($15)|0);
  21708. $$5619 = (($$5619753) + -1)|0;
  21709. $307 = ($$5619|0)==(0);
  21710. if ($307) {
  21711. break;
  21712. } else {
  21713. $$5619753 = $$5619;$$7584752 = $305;$$7604751 = $306;
  21714. }
  21715. }
  21716. $scevgep868 = (($$1578) + ($199)|0);
  21717. $$9586 = $scevgep868;
  21718. }
  21719. break;
  21720. }
  21721. case 6: {
  21722. if ($49) {
  21723. $$9586 = $$1578;
  21724. } else {
  21725. $196 = ($$1612|0)>(0);
  21726. $197 = Math_imul($$6620742, $$1612)|0;
  21727. $$6620745 = $$6620742;$$8585744 = $$1578;$$8605743 = $106;
  21728. while(1) {
  21729. if ($196) {
  21730. $$13739 = 0;
  21731. while(1) {
  21732. $308 = (($$8585744) + ($$13739)|0);
  21733. $309 = HEAP8[$308>>0]|0;
  21734. $310 = $309&255;
  21735. $311 = (($$13739) - ($15))|0;
  21736. $312 = (($$8605743) + ($311)|0);
  21737. $313 = HEAP8[$312>>0]|0;
  21738. $314 = $313&255;
  21739. $315 = (_stbi__paeth($314,0,0)|0);
  21740. $316 = (($315) + ($310))|0;
  21741. $317 = $316&255;
  21742. $318 = (($$8605743) + ($$13739)|0);
  21743. HEAP8[$318>>0] = $317;
  21744. $319 = (($$13739) + 1)|0;
  21745. $exitcond865 = ($319|0)==($$1612|0);
  21746. if ($exitcond865) {
  21747. break;
  21748. } else {
  21749. $$13739 = $319;
  21750. }
  21751. }
  21752. }
  21753. $320 = (($$8605743) + ($$1612)|0);
  21754. HEAP8[$320>>0] = -1;
  21755. $321 = (($$8585744) + ($$1612)|0);
  21756. $322 = (($$8605743) + ($15)|0);
  21757. $$6620 = (($$6620745) + -1)|0;
  21758. $323 = ($$6620|0)==(0);
  21759. if ($323) {
  21760. break;
  21761. } else {
  21762. $$6620745 = $$6620;$$8585744 = $321;$$8605743 = $322;
  21763. }
  21764. }
  21765. $scevgep866 = (($$1578) + ($197)|0);
  21766. $$9586 = $scevgep866;
  21767. }
  21768. break;
  21769. }
  21770. default: {
  21771. $$9586 = $$1578;
  21772. }
  21773. }
  21774. if ($brmerge894) {
  21775. $$11$ph = $$9586;
  21776. } else {
  21777. $324 = HEAP32[$21>>2]|0;
  21778. $325 = (($324) + ($51)|0);
  21779. $326 = (($$1612) + 1)|0;
  21780. $$7621798 = 0;$$9606799 = $325;
  21781. while(1) {
  21782. $327 = (($$9606799) + ($326)|0);
  21783. HEAP8[$327>>0] = -1;
  21784. $328 = (($$7621798) + 1)|0;
  21785. $329 = (($$9606799) + ($15)|0);
  21786. $exitcond880 = ($328|0)==($4|0);
  21787. if ($exitcond880) {
  21788. $$11$ph = $$9586;
  21789. break;
  21790. } else {
  21791. $$7621798 = $328;$$9606799 = $329;
  21792. }
  21793. }
  21794. }
  21795. }
  21796. $330 = (($$0623814) + 1)|0;
  21797. $331 = ($330>>>0)<($5>>>0);
  21798. if ($331) {
  21799. $$0577817 = $$11$ph;$$0608816 = $$1609;$$0611815 = $$1612;$$0623814 = $330;
  21800. } else {
  21801. break L18;
  21802. }
  21803. }
  21804. if ((label|0) == 16) {
  21805. ___assert_fail((10507|0),(9847|0),4315,(10462|0));
  21806. // unreachable;
  21807. }
  21808. else if ((label|0) == 58) {
  21809. ___assert_fail((10533|0),(9847|0),4377,(10462|0));
  21810. // unreachable;
  21811. }
  21812. else if ((label|0) == 105) {
  21813. _stbi__err(10550);
  21814. $$2 = 0;
  21815. return ($$2|0);
  21816. }
  21817. }
  21818. } while(0);
  21819. $332 = ($6|0)<(8);
  21820. if (!($332)) {
  21821. if (!($8)) {
  21822. $$2 = 1;
  21823. return ($$2|0);
  21824. }
  21825. $601 = Math_imul($4, $3)|0;
  21826. $602 = Math_imul($601, $5)|0;
  21827. $603 = ($602|0)==(0);
  21828. if ($603) {
  21829. $$2 = 1;
  21830. return ($$2|0);
  21831. }
  21832. $604 = HEAP32[$21>>2]|0;
  21833. $$0731 = $604;$$8622729 = 0;
  21834. while(1) {
  21835. $605 = HEAP8[$$0731>>0]|0;
  21836. $606 = $605&255;
  21837. $607 = $606 << 8;
  21838. $608 = ((($$0731)) + 1|0);
  21839. $609 = HEAP8[$608>>0]|0;
  21840. $610 = $609&255;
  21841. $611 = $607 | $610;
  21842. $612 = $611&65535;
  21843. HEAP16[$$0731>>1] = $612;
  21844. $613 = (($$8622729) + 1)|0;
  21845. $614 = ((($$0731)) + 2|0);
  21846. $exitcond = ($613|0)==($602|0);
  21847. if ($exitcond) {
  21848. $$2 = 1;
  21849. break;
  21850. } else {
  21851. $$0731 = $614;$$8622729 = $613;
  21852. }
  21853. }
  21854. return ($$2|0);
  21855. }
  21856. $333 = ($5|0)==(0);
  21857. if ($333) {
  21858. $$2 = 1;
  21859. return ($$2|0);
  21860. }
  21861. $334 = (0 - ($26))|0;
  21862. $335 = ($7|0)==(0);
  21863. $336 = (10246 + ($6)|0);
  21864. $$0568724 = (($4) + -1)|0;
  21865. $337 = ($$0568724|0)>(-1);
  21866. $$1721 = (($4) + -1)|0;
  21867. $338 = ($$1721|0)>(-1);
  21868. $339 = ($23|0)>(1);
  21869. $340 = ($23|0)>(3);
  21870. $341 = ($23|0)>(7);
  21871. $342 = (($23) + -8)|0;
  21872. $343 = $342 >>> 3;
  21873. $344 = $343 << 3;
  21874. $345 = (($344) + 8)|0;
  21875. $346 = (($342) - ($344))|0;
  21876. $347 = (($343) + ($11))|0;
  21877. $348 = (($347) + 1)|0;
  21878. $349 = (($348) - ($26))|0;
  21879. $350 = (($23) + -4)|0;
  21880. $351 = $350 >>> 2;
  21881. $352 = $351 << 2;
  21882. $353 = (($352) + 4)|0;
  21883. $354 = (($350) - ($352))|0;
  21884. $355 = (($351) + ($11))|0;
  21885. $356 = (($355) + 1)|0;
  21886. $357 = (($356) - ($26))|0;
  21887. $358 = (($23) + -2)|0;
  21888. $359 = $358 >>> 1;
  21889. $360 = $359 << 1;
  21890. $361 = (($360) + 2)|0;
  21891. $362 = (($358) - ($360))|0;
  21892. $363 = (($359) + ($11))|0;
  21893. $364 = (($363) + 1)|0;
  21894. $365 = (($364) - ($26))|0;
  21895. $$1624727 = 0;$indvars$iv = $345;$indvars$iv848 = $349;$indvars$iv851 = $353;$indvars$iv854 = $357;$indvars$iv857 = $361;$indvars$iv860 = $365;
  21896. L174: while(1) {
  21897. $366 = HEAP32[$21>>2]|0;
  21898. $367 = Math_imul($$1624727, $12)|0;
  21899. $368 = (($366) + ($367)|0);
  21900. $369 = (($368) + ($11)|0);
  21901. $370 = (($369) + ($334)|0);
  21902. if ($335) {
  21903. $371 = HEAP8[$336>>0]|0;
  21904. $372 = $371&255;
  21905. $377 = $372;
  21906. } else {
  21907. $377 = 1;
  21908. }
  21909. switch ($6|0) {
  21910. case 4: {
  21911. if ($339) {
  21912. $scevgep859 = (($366) + ($indvars$iv857)|0);
  21913. $$0571715 = $370;$$0574714 = $368;$$14713 = $23;
  21914. while(1) {
  21915. $373 = HEAP8[$$0571715>>0]|0;
  21916. $374 = $373&255;
  21917. $375 = $374 >>> 4;
  21918. $376 = Math_imul($375, $377)|0;
  21919. $378 = $376&255;
  21920. $379 = ((($$0574714)) + 1|0);
  21921. HEAP8[$$0574714>>0] = $378;
  21922. $380 = HEAP8[$$0571715>>0]|0;
  21923. $381 = $380 & 15;
  21924. $382 = $381&255;
  21925. $383 = Math_imul($382, $377)|0;
  21926. $384 = $383&255;
  21927. $385 = ((($$0574714)) + 2|0);
  21928. HEAP8[$379>>0] = $384;
  21929. $386 = (($$14713) + -2)|0;
  21930. $387 = ((($$0571715)) + 1|0);
  21931. $388 = ($386|0)>(1);
  21932. if ($388) {
  21933. $$0571715 = $387;$$0574714 = $385;$$14713 = $386;
  21934. } else {
  21935. break;
  21936. }
  21937. }
  21938. $scevgep862 = (($366) + ($indvars$iv860)|0);
  21939. $$0571$lcssa = $scevgep862;$$0574$lcssa = $scevgep859;$$14$lcssa = $362;
  21940. } else {
  21941. $$0571$lcssa = $370;$$0574$lcssa = $368;$$14$lcssa = $23;
  21942. }
  21943. $389 = ($$14$lcssa|0)==(1);
  21944. if ($389) {
  21945. $390 = HEAP8[$$0571$lcssa>>0]|0;
  21946. $391 = $390&255;
  21947. $392 = $391 >>> 4;
  21948. $393 = Math_imul($392, $377)|0;
  21949. $394 = $393&255;
  21950. HEAP8[$$0574$lcssa>>0] = $394;
  21951. }
  21952. break;
  21953. }
  21954. case 2: {
  21955. if ($340) {
  21956. $scevgep853 = (($366) + ($indvars$iv851)|0);
  21957. $$15705 = $23;$$1572707 = $370;$$1575706 = $368;
  21958. while(1) {
  21959. $395 = HEAP8[$$1572707>>0]|0;
  21960. $396 = $395&255;
  21961. $397 = $396 >>> 6;
  21962. $398 = Math_imul($397, $377)|0;
  21963. $399 = $398&255;
  21964. $400 = ((($$1575706)) + 1|0);
  21965. HEAP8[$$1575706>>0] = $399;
  21966. $401 = HEAP8[$$1572707>>0]|0;
  21967. $402 = $401&255;
  21968. $403 = $402 >>> 4;
  21969. $404 = $403 & 3;
  21970. $405 = Math_imul($404, $377)|0;
  21971. $406 = $405&255;
  21972. $407 = ((($$1575706)) + 2|0);
  21973. HEAP8[$400>>0] = $406;
  21974. $408 = HEAP8[$$1572707>>0]|0;
  21975. $409 = $408&255;
  21976. $410 = $409 >>> 2;
  21977. $411 = $410 & 3;
  21978. $412 = Math_imul($411, $377)|0;
  21979. $413 = $412&255;
  21980. $414 = ((($$1575706)) + 3|0);
  21981. HEAP8[$407>>0] = $413;
  21982. $415 = HEAP8[$$1572707>>0]|0;
  21983. $416 = $415 & 3;
  21984. $417 = $416&255;
  21985. $418 = Math_imul($417, $377)|0;
  21986. $419 = $418&255;
  21987. $420 = ((($$1575706)) + 4|0);
  21988. HEAP8[$414>>0] = $419;
  21989. $421 = (($$15705) + -4)|0;
  21990. $422 = ((($$1572707)) + 1|0);
  21991. $423 = ($421|0)>(3);
  21992. if ($423) {
  21993. $$15705 = $421;$$1572707 = $422;$$1575706 = $420;
  21994. } else {
  21995. break;
  21996. }
  21997. }
  21998. $scevgep856 = (($366) + ($indvars$iv854)|0);
  21999. $$15$lcssa = $354;$$1572$lcssa = $scevgep856;$$1575$lcssa = $scevgep853;
  22000. } else {
  22001. $$15$lcssa = $23;$$1572$lcssa = $370;$$1575$lcssa = $368;
  22002. }
  22003. $424 = ($$15$lcssa|0)>(0);
  22004. if ($424) {
  22005. $425 = HEAP8[$$1572$lcssa>>0]|0;
  22006. $426 = $425&255;
  22007. $427 = $426 >>> 6;
  22008. $428 = Math_imul($427, $377)|0;
  22009. $429 = $428&255;
  22010. HEAP8[$$1575$lcssa>>0] = $429;
  22011. $430 = ($$15$lcssa|0)==(1);
  22012. if (!($430)) {
  22013. $431 = ((($$1575$lcssa)) + 1|0);
  22014. $432 = HEAP8[$$1572$lcssa>>0]|0;
  22015. $433 = $432&255;
  22016. $434 = $433 >>> 4;
  22017. $435 = $434 & 3;
  22018. $436 = Math_imul($435, $377)|0;
  22019. $437 = $436&255;
  22020. HEAP8[$431>>0] = $437;
  22021. $438 = ($$15$lcssa|0)>(2);
  22022. if ($438) {
  22023. $439 = ((($$1575$lcssa)) + 2|0);
  22024. $440 = HEAP8[$$1572$lcssa>>0]|0;
  22025. $441 = $440&255;
  22026. $442 = $441 >>> 2;
  22027. $443 = $442 & 3;
  22028. $444 = Math_imul($443, $377)|0;
  22029. $445 = $444&255;
  22030. HEAP8[$439>>0] = $445;
  22031. }
  22032. }
  22033. }
  22034. break;
  22035. }
  22036. case 1: {
  22037. if ($341) {
  22038. $scevgep = (($366) + ($indvars$iv)|0);
  22039. $$16700 = $23;$$2573702 = $370;$$4701 = $368;
  22040. while(1) {
  22041. $446 = HEAP8[$$2573702>>0]|0;
  22042. $447 = $446&255;
  22043. $448 = $447 >>> 7;
  22044. $449 = (0 - ($448))|0;
  22045. $450 = $377 & $449;
  22046. $451 = $450&255;
  22047. $452 = ((($$4701)) + 1|0);
  22048. HEAP8[$$4701>>0] = $451;
  22049. $453 = HEAP8[$$2573702>>0]|0;
  22050. $454 = $453&255;
  22051. $455 = $454 >>> 6;
  22052. $456 = $455 & 1;
  22053. $457 = (0 - ($456))|0;
  22054. $458 = $377 & $457;
  22055. $459 = $458&255;
  22056. $460 = ((($$4701)) + 2|0);
  22057. HEAP8[$452>>0] = $459;
  22058. $461 = HEAP8[$$2573702>>0]|0;
  22059. $462 = $461&255;
  22060. $463 = $462 >>> 5;
  22061. $464 = $463 & 1;
  22062. $465 = (0 - ($464))|0;
  22063. $466 = $377 & $465;
  22064. $467 = $466&255;
  22065. $468 = ((($$4701)) + 3|0);
  22066. HEAP8[$460>>0] = $467;
  22067. $469 = HEAP8[$$2573702>>0]|0;
  22068. $470 = $469&255;
  22069. $471 = $470 >>> 4;
  22070. $472 = $471 & 1;
  22071. $473 = (0 - ($472))|0;
  22072. $474 = $377 & $473;
  22073. $475 = $474&255;
  22074. $476 = ((($$4701)) + 4|0);
  22075. HEAP8[$468>>0] = $475;
  22076. $477 = HEAP8[$$2573702>>0]|0;
  22077. $478 = $477&255;
  22078. $479 = $478 >>> 3;
  22079. $480 = $479 & 1;
  22080. $481 = (0 - ($480))|0;
  22081. $482 = $377 & $481;
  22082. $483 = $482&255;
  22083. $484 = ((($$4701)) + 5|0);
  22084. HEAP8[$476>>0] = $483;
  22085. $485 = HEAP8[$$2573702>>0]|0;
  22086. $486 = $485&255;
  22087. $487 = $486 >>> 2;
  22088. $488 = $487 & 1;
  22089. $489 = (0 - ($488))|0;
  22090. $490 = $377 & $489;
  22091. $491 = $490&255;
  22092. $492 = ((($$4701)) + 6|0);
  22093. HEAP8[$484>>0] = $491;
  22094. $493 = HEAP8[$$2573702>>0]|0;
  22095. $494 = $493&255;
  22096. $495 = $494 >>> 1;
  22097. $496 = $495 & 1;
  22098. $497 = (0 - ($496))|0;
  22099. $498 = $377 & $497;
  22100. $499 = $498&255;
  22101. $500 = ((($$4701)) + 7|0);
  22102. HEAP8[$492>>0] = $499;
  22103. $501 = HEAP8[$$2573702>>0]|0;
  22104. $502 = $501 & 1;
  22105. $503 = $502&255;
  22106. $504 = (0 - ($503))|0;
  22107. $505 = $377 & $504;
  22108. $506 = $505&255;
  22109. $507 = ((($$4701)) + 8|0);
  22110. HEAP8[$500>>0] = $506;
  22111. $508 = (($$16700) + -8)|0;
  22112. $509 = ((($$2573702)) + 1|0);
  22113. $510 = ($508|0)>(7);
  22114. if ($510) {
  22115. $$16700 = $508;$$2573702 = $509;$$4701 = $507;
  22116. } else {
  22117. break;
  22118. }
  22119. }
  22120. $scevgep850 = (($366) + ($indvars$iv848)|0);
  22121. $$16$lcssa = $346;$$2573$lcssa = $scevgep850;$$4$lcssa = $scevgep;
  22122. } else {
  22123. $$16$lcssa = $23;$$2573$lcssa = $370;$$4$lcssa = $368;
  22124. }
  22125. $511 = ($$16$lcssa|0)>(0);
  22126. if ($511) {
  22127. $512 = HEAP8[$$2573$lcssa>>0]|0;
  22128. $513 = $512&255;
  22129. $514 = $513 >>> 7;
  22130. $515 = (0 - ($514))|0;
  22131. $516 = $377 & $515;
  22132. $517 = $516&255;
  22133. HEAP8[$$4$lcssa>>0] = $517;
  22134. $518 = ($$16$lcssa|0)==(1);
  22135. if (!($518)) {
  22136. $519 = ((($$4$lcssa)) + 1|0);
  22137. $520 = HEAP8[$$2573$lcssa>>0]|0;
  22138. $521 = $520&255;
  22139. $522 = $521 >>> 6;
  22140. $523 = $522 & 1;
  22141. $524 = (0 - ($523))|0;
  22142. $525 = $377 & $524;
  22143. $526 = $525&255;
  22144. HEAP8[$519>>0] = $526;
  22145. $527 = ($$16$lcssa|0)>(2);
  22146. if ($527) {
  22147. $528 = ((($$4$lcssa)) + 2|0);
  22148. $529 = HEAP8[$$2573$lcssa>>0]|0;
  22149. $530 = $529&255;
  22150. $531 = $530 >>> 5;
  22151. $532 = $531 & 1;
  22152. $533 = (0 - ($532))|0;
  22153. $534 = $377 & $533;
  22154. $535 = $534&255;
  22155. HEAP8[$528>>0] = $535;
  22156. $536 = ($$16$lcssa|0)==(3);
  22157. if (!($536)) {
  22158. $537 = ((($$4$lcssa)) + 3|0);
  22159. $538 = HEAP8[$$2573$lcssa>>0]|0;
  22160. $539 = $538&255;
  22161. $540 = $539 >>> 4;
  22162. $541 = $540 & 1;
  22163. $542 = (0 - ($541))|0;
  22164. $543 = $377 & $542;
  22165. $544 = $543&255;
  22166. HEAP8[$537>>0] = $544;
  22167. $545 = ($$16$lcssa|0)>(4);
  22168. if ($545) {
  22169. $546 = ((($$4$lcssa)) + 4|0);
  22170. $547 = HEAP8[$$2573$lcssa>>0]|0;
  22171. $548 = $547&255;
  22172. $549 = $548 >>> 3;
  22173. $550 = $549 & 1;
  22174. $551 = (0 - ($550))|0;
  22175. $552 = $377 & $551;
  22176. $553 = $552&255;
  22177. HEAP8[$546>>0] = $553;
  22178. $554 = ($$16$lcssa|0)==(5);
  22179. if (!($554)) {
  22180. $555 = ((($$4$lcssa)) + 5|0);
  22181. $556 = HEAP8[$$2573$lcssa>>0]|0;
  22182. $557 = $556&255;
  22183. $558 = $557 >>> 2;
  22184. $559 = $558 & 1;
  22185. $560 = (0 - ($559))|0;
  22186. $561 = $377 & $560;
  22187. $562 = $561&255;
  22188. HEAP8[$555>>0] = $562;
  22189. $563 = ($$16$lcssa|0)>(6);
  22190. if ($563) {
  22191. $564 = ((($$4$lcssa)) + 6|0);
  22192. $565 = HEAP8[$$2573$lcssa>>0]|0;
  22193. $566 = $565&255;
  22194. $567 = $566 >>> 1;
  22195. $568 = $567 & 1;
  22196. $569 = (0 - ($568))|0;
  22197. $570 = $377 & $569;
  22198. $571 = $570&255;
  22199. HEAP8[$564>>0] = $571;
  22200. }
  22201. }
  22202. }
  22203. }
  22204. }
  22205. }
  22206. }
  22207. break;
  22208. }
  22209. default: {
  22210. }
  22211. }
  22212. L213: do {
  22213. if (!($17)) {
  22214. $572 = HEAP32[$21>>2]|0;
  22215. $573 = (($572) + ($367)|0);
  22216. switch ($14|0) {
  22217. case 1: {
  22218. if ($337) {
  22219. $$0568725 = $$0568724;
  22220. } else {
  22221. break L213;
  22222. }
  22223. while(1) {
  22224. $574 = $$0568725 << 1;
  22225. $575 = $574 | 1;
  22226. $576 = (($573) + ($575)|0);
  22227. HEAP8[$576>>0] = -1;
  22228. $577 = (($573) + ($$0568725)|0);
  22229. $578 = HEAP8[$577>>0]|0;
  22230. $579 = (($573) + ($574)|0);
  22231. HEAP8[$579>>0] = $578;
  22232. $$0568 = (($$0568725) + -1)|0;
  22233. $580 = ($$0568|0)>(-1);
  22234. if ($580) {
  22235. $$0568725 = $$0568;
  22236. } else {
  22237. break;
  22238. }
  22239. }
  22240. break;
  22241. }
  22242. case 3: {
  22243. if ($338) {
  22244. $$1722 = $$1721;
  22245. } else {
  22246. break L213;
  22247. }
  22248. while(1) {
  22249. $581 = $$1722 << 2;
  22250. $582 = $581 | 3;
  22251. $583 = (($573) + ($582)|0);
  22252. HEAP8[$583>>0] = -1;
  22253. $584 = ($$1722*3)|0;
  22254. $585 = (($584) + 2)|0;
  22255. $586 = (($573) + ($585)|0);
  22256. $587 = HEAP8[$586>>0]|0;
  22257. $588 = $581 | 2;
  22258. $589 = (($573) + ($588)|0);
  22259. HEAP8[$589>>0] = $587;
  22260. $590 = (($584) + 1)|0;
  22261. $591 = (($573) + ($590)|0);
  22262. $592 = HEAP8[$591>>0]|0;
  22263. $593 = $581 | 1;
  22264. $594 = (($573) + ($593)|0);
  22265. HEAP8[$594>>0] = $592;
  22266. $595 = (($573) + ($584)|0);
  22267. $596 = HEAP8[$595>>0]|0;
  22268. $597 = (($573) + ($581)|0);
  22269. HEAP8[$597>>0] = $596;
  22270. $$1 = (($$1722) + -1)|0;
  22271. $598 = ($$1|0)>(-1);
  22272. if ($598) {
  22273. $$1722 = $$1;
  22274. } else {
  22275. break;
  22276. }
  22277. }
  22278. break;
  22279. }
  22280. default: {
  22281. label = 144;
  22282. break L174;
  22283. }
  22284. }
  22285. }
  22286. } while(0);
  22287. $599 = (($$1624727) + 1)|0;
  22288. $600 = ($599>>>0)<($5>>>0);
  22289. $indvars$iv$next = (($indvars$iv) + ($12))|0;
  22290. $indvars$iv$next849 = (($indvars$iv848) + ($12))|0;
  22291. $indvars$iv$next852 = (($indvars$iv851) + ($12))|0;
  22292. $indvars$iv$next855 = (($indvars$iv854) + ($12))|0;
  22293. $indvars$iv$next858 = (($indvars$iv857) + ($12))|0;
  22294. $indvars$iv$next861 = (($indvars$iv860) + ($12))|0;
  22295. if ($600) {
  22296. $$1624727 = $599;$indvars$iv = $indvars$iv$next;$indvars$iv848 = $indvars$iv$next849;$indvars$iv851 = $indvars$iv$next852;$indvars$iv854 = $indvars$iv$next855;$indvars$iv857 = $indvars$iv$next858;$indvars$iv860 = $indvars$iv$next861;
  22297. } else {
  22298. $$2 = 1;
  22299. label = 151;
  22300. break;
  22301. }
  22302. }
  22303. if ((label|0) == 144) {
  22304. ___assert_fail((10565|0),(9847|0),4466,(10462|0));
  22305. // unreachable;
  22306. }
  22307. else if ((label|0) == 151) {
  22308. return ($$2|0);
  22309. }
  22310. return (0)|0;
  22311. }
  22312. function _stbi__paeth($0,$1,$2) {
  22313. $0 = $0|0;
  22314. $1 = $1|0;
  22315. $2 = $2|0;
  22316. var $$ = 0, $$0 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $ispos = 0, $ispos26 = 0, $ispos28 = 0, $neg = 0, $neg27 = 0, $neg29 = 0, $or$cond = 0;
  22317. var label = 0, sp = 0;
  22318. sp = STACKTOP;
  22319. $3 = (($1) + ($0))|0;
  22320. $4 = (($3) - ($2))|0;
  22321. $5 = (($4) - ($0))|0;
  22322. $ispos = ($5|0)>(-1);
  22323. $neg = (0 - ($5))|0;
  22324. $6 = $ispos ? $5 : $neg;
  22325. $7 = (($4) - ($1))|0;
  22326. $ispos26 = ($7|0)>(-1);
  22327. $neg27 = (0 - ($7))|0;
  22328. $8 = $ispos26 ? $7 : $neg27;
  22329. $9 = (($4) - ($2))|0;
  22330. $ispos28 = ($9|0)>(-1);
  22331. $neg29 = (0 - ($9))|0;
  22332. $10 = $ispos28 ? $9 : $neg29;
  22333. $11 = ($6|0)>($8|0);
  22334. $12 = ($6|0)>($10|0);
  22335. $or$cond = $11 | $12;
  22336. $13 = ($8|0)>($10|0);
  22337. $$ = $13 ? $2 : $1;
  22338. $$0 = $or$cond ? $$ : $0;
  22339. return ($$0|0);
  22340. }
  22341. function _stbi__do_zlib($0,$1,$2,$3,$4) {
  22342. $0 = $0|0;
  22343. $1 = $1|0;
  22344. $2 = $2|0;
  22345. $3 = $3|0;
  22346. $4 = $4|0;
  22347. var $10 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  22348. sp = STACKTOP;
  22349. $5 = ((($0)) + 20|0);
  22350. HEAP32[$5>>2] = $1;
  22351. $6 = ((($0)) + 16|0);
  22352. HEAP32[$6>>2] = $1;
  22353. $7 = (($1) + ($2)|0);
  22354. $8 = ((($0)) + 24|0);
  22355. HEAP32[$8>>2] = $7;
  22356. $9 = ((($0)) + 28|0);
  22357. HEAP32[$9>>2] = $3;
  22358. $10 = (_stbi__parse_zlib($0,$4)|0);
  22359. return ($10|0);
  22360. }
  22361. function _stbi__parse_zlib($0,$1) {
  22362. $0 = $0|0;
  22363. $1 = $1|0;
  22364. var $$0 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0;
  22365. var $9 = 0, label = 0, sp = 0;
  22366. sp = STACKTOP;
  22367. $2 = ($1|0)==(0);
  22368. if (!($2)) {
  22369. $3 = (_stbi__parse_zlib_header($0)|0);
  22370. $4 = ($3|0)==(0);
  22371. if ($4) {
  22372. $$0 = 0;
  22373. return ($$0|0);
  22374. }
  22375. }
  22376. $5 = ((($0)) + 8|0);
  22377. HEAP32[$5>>2] = 0;
  22378. $6 = ((($0)) + 12|0);
  22379. HEAP32[$6>>2] = 0;
  22380. $7 = ((($0)) + 32|0);
  22381. $8 = ((($0)) + 2052|0);
  22382. L5: while(1) {
  22383. $9 = (_stbi__zreceive($0,1)|0);
  22384. $10 = (_stbi__zreceive($0,2)|0);
  22385. switch ($10|0) {
  22386. case 3: {
  22387. $$0 = 0;
  22388. label = 11;
  22389. break L5;
  22390. break;
  22391. }
  22392. case 0: {
  22393. $11 = (_stbi__parse_uncompressed_block($0)|0);
  22394. $12 = ($11|0)==(0);
  22395. if ($12) {
  22396. $$0 = 0;
  22397. label = 11;
  22398. break L5;
  22399. }
  22400. break;
  22401. }
  22402. case 1: {
  22403. $13 = (_stbi__zbuild_huffman($7,10576,288)|0);
  22404. $14 = ($13|0)==(0);
  22405. if ($14) {
  22406. $$0 = 0;
  22407. label = 11;
  22408. break L5;
  22409. }
  22410. $15 = (_stbi__zbuild_huffman($8,10864,32)|0);
  22411. $16 = ($15|0)==(0);
  22412. if ($16) {
  22413. $$0 = 0;
  22414. label = 11;
  22415. break L5;
  22416. } else {
  22417. label = 9;
  22418. }
  22419. break;
  22420. }
  22421. default: {
  22422. $17 = (_stbi__compute_huffman_codes($0)|0);
  22423. $18 = ($17|0)==(0);
  22424. if ($18) {
  22425. $$0 = 0;
  22426. label = 11;
  22427. break L5;
  22428. } else {
  22429. label = 9;
  22430. }
  22431. }
  22432. }
  22433. if ((label|0) == 9) {
  22434. label = 0;
  22435. $19 = (_stbi__parse_huffman_block($0)|0);
  22436. $20 = ($19|0)==(0);
  22437. if ($20) {
  22438. $$0 = 0;
  22439. label = 11;
  22440. break;
  22441. }
  22442. }
  22443. $21 = ($9|0)==(0);
  22444. if (!($21)) {
  22445. $$0 = 1;
  22446. label = 11;
  22447. break;
  22448. }
  22449. }
  22450. if ((label|0) == 11) {
  22451. return ($$0|0);
  22452. }
  22453. return (0)|0;
  22454. }
  22455. function _stbi__parse_zlib_header($0) {
  22456. $0 = $0|0;
  22457. var $$0 = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  22458. sp = STACKTOP;
  22459. $1 = (_stbi__zget8($0)|0);
  22460. $2 = $1&255;
  22461. $3 = $2 & 15;
  22462. $4 = (_stbi__zget8($0)|0);
  22463. $5 = $4&255;
  22464. $6 = $2 << 8;
  22465. $7 = $6 | $5;
  22466. $8 = (($7>>>0) % 31)&-1;
  22467. $9 = ($8|0)==(0);
  22468. if (!($9)) {
  22469. _stbi__err(11211);
  22470. $$0 = 0;
  22471. return ($$0|0);
  22472. }
  22473. $10 = $5 & 32;
  22474. $11 = ($10|0)==(0);
  22475. if (!($11)) {
  22476. _stbi__err(11227);
  22477. $$0 = 0;
  22478. return ($$0|0);
  22479. }
  22480. $12 = ($3|0)==(8);
  22481. if ($12) {
  22482. $$0 = 1;
  22483. return ($$0|0);
  22484. }
  22485. _stbi__err(11242);
  22486. $$0 = 0;
  22487. return ($$0|0);
  22488. }
  22489. function _stbi__zreceive($0,$1) {
  22490. $0 = $0|0;
  22491. $1 = $1|0;
  22492. var $10 = 0, $11 = 0, $12 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  22493. sp = STACKTOP;
  22494. $2 = ((($0)) + 8|0);
  22495. $3 = HEAP32[$2>>2]|0;
  22496. $4 = ($3|0)<($1|0);
  22497. if ($4) {
  22498. _stbi__fill_bits($0);
  22499. }
  22500. $5 = ((($0)) + 12|0);
  22501. $6 = HEAP32[$5>>2]|0;
  22502. $7 = 1 << $1;
  22503. $8 = (($7) + -1)|0;
  22504. $9 = $6 & $8;
  22505. $10 = $6 >>> $1;
  22506. HEAP32[$5>>2] = $10;
  22507. $11 = HEAP32[$2>>2]|0;
  22508. $12 = (($11) - ($1))|0;
  22509. HEAP32[$2>>2] = $12;
  22510. return ($9|0);
  22511. }
  22512. function _stbi__parse_uncompressed_block($0) {
  22513. $0 = $0|0;
  22514. var $$0$lcssa = 0, $$034 = 0, $$037 = 0, $$136 = 0, $$lcssa = 0, $$ph = 0, $$pr = 0, $$promoted = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0;
  22515. var $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0;
  22516. var $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0;
  22517. var $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $7 = 0, $8 = 0, $9 = 0, $exitcond = 0, $exitcond47 = 0, $smax = 0, label = 0, sp = 0;
  22518. sp = STACKTOP;
  22519. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  22520. $1 = sp;
  22521. $2 = ((($0)) + 8|0);
  22522. $3 = HEAP32[$2>>2]|0;
  22523. $4 = $3 & 7;
  22524. $5 = ($4|0)==(0);
  22525. if ($5) {
  22526. $$ph = $3;
  22527. } else {
  22528. (_stbi__zreceive($0,$4)|0);
  22529. $$pr = HEAP32[$2>>2]|0;
  22530. $$ph = $$pr;
  22531. }
  22532. $6 = ($$ph|0)>(0);
  22533. if ($6) {
  22534. $7 = ((($0)) + 12|0);
  22535. $$promoted = HEAP32[$7>>2]|0;
  22536. $8 = $$ph ^ -1;
  22537. $9 = ($8|0)>(-9);
  22538. $smax = $9 ? $8 : -9;
  22539. $10 = (($$ph) + ($smax))|0;
  22540. $11 = (($10) + 8)|0;
  22541. $12 = $11 >>> 3;
  22542. $13 = (($12) + 1)|0;
  22543. $14 = $12 << 3;
  22544. $$037 = 0;$16 = $$promoted;
  22545. while(1) {
  22546. $15 = $16&255;
  22547. $17 = (($$037) + 1)|0;
  22548. $18 = (($1) + ($$037)|0);
  22549. HEAP8[$18>>0] = $15;
  22550. $19 = $16 >>> 8;
  22551. $exitcond47 = ($17|0)==($13|0);
  22552. if ($exitcond47) {
  22553. break;
  22554. } else {
  22555. $$037 = $17;$16 = $19;
  22556. }
  22557. }
  22558. $20 = (($$ph) + -8)|0;
  22559. $21 = (($20) - ($14))|0;
  22560. HEAP32[$7>>2] = $19;
  22561. HEAP32[$2>>2] = $21;
  22562. $$0$lcssa = $13;$$lcssa = $21;
  22563. } else {
  22564. $$0$lcssa = 0;$$lcssa = $$ph;
  22565. }
  22566. $22 = ($$lcssa|0)==(0);
  22567. if (!($22)) {
  22568. ___assert_fail((11133|0),(9847|0),4033,(11150|0));
  22569. // unreachable;
  22570. }
  22571. $23 = ($$0$lcssa|0)<(4);
  22572. if ($23) {
  22573. $$136 = $$0$lcssa;
  22574. while(1) {
  22575. $24 = (_stbi__zget8($0)|0);
  22576. $25 = (($$136) + 1)|0;
  22577. $26 = (($1) + ($$136)|0);
  22578. HEAP8[$26>>0] = $24;
  22579. $exitcond = ($25|0)==(4);
  22580. if ($exitcond) {
  22581. break;
  22582. } else {
  22583. $$136 = $25;
  22584. }
  22585. }
  22586. }
  22587. $27 = ((($1)) + 1|0);
  22588. $28 = HEAP8[$27>>0]|0;
  22589. $29 = $28&255;
  22590. $30 = $29 << 8;
  22591. $31 = HEAP8[$1>>0]|0;
  22592. $32 = $31&255;
  22593. $33 = $30 | $32;
  22594. $34 = ((($1)) + 3|0);
  22595. $35 = HEAP8[$34>>0]|0;
  22596. $36 = $35&255;
  22597. $37 = $36 << 8;
  22598. $38 = ((($1)) + 2|0);
  22599. $39 = HEAP8[$38>>0]|0;
  22600. $40 = $39&255;
  22601. $41 = $37 | $40;
  22602. $42 = $33 ^ 65535;
  22603. $43 = ($41|0)==($42|0);
  22604. if (!($43)) {
  22605. _stbi__err(11181);
  22606. $$034 = 0;
  22607. STACKTOP = sp;return ($$034|0);
  22608. }
  22609. $44 = HEAP32[$0>>2]|0;
  22610. $45 = (($44) + ($33)|0);
  22611. $46 = ((($0)) + 4|0);
  22612. $47 = HEAP32[$46>>2]|0;
  22613. $48 = ($45>>>0)>($47>>>0);
  22614. if ($48) {
  22615. _stbi__err(11194);
  22616. $$034 = 0;
  22617. STACKTOP = sp;return ($$034|0);
  22618. }
  22619. $49 = ((($0)) + 16|0);
  22620. $50 = HEAP32[$49>>2]|0;
  22621. $51 = (($50) + ($33)|0);
  22622. $52 = ((($0)) + 24|0);
  22623. $53 = HEAP32[$52>>2]|0;
  22624. $54 = ($51>>>0)>($53>>>0);
  22625. if ($54) {
  22626. $55 = (_stbi__zexpand($0,$50,$33)|0);
  22627. $56 = ($55|0)==(0);
  22628. if ($56) {
  22629. $$034 = 0;
  22630. STACKTOP = sp;return ($$034|0);
  22631. }
  22632. }
  22633. $57 = HEAP32[$49>>2]|0;
  22634. $58 = HEAP32[$0>>2]|0;
  22635. _memcpy(($57|0),($58|0),($33|0))|0;
  22636. $59 = HEAP32[$0>>2]|0;
  22637. $60 = (($59) + ($33)|0);
  22638. HEAP32[$0>>2] = $60;
  22639. $61 = HEAP32[$49>>2]|0;
  22640. $62 = (($61) + ($33)|0);
  22641. HEAP32[$49>>2] = $62;
  22642. $$034 = 1;
  22643. STACKTOP = sp;return ($$034|0);
  22644. }
  22645. function _stbi__zbuild_huffman($0,$1,$2) {
  22646. $0 = $0|0;
  22647. $1 = $1|0;
  22648. $2 = $2|0;
  22649. var $$075 = 0, $$07688 = 0, $$07785 = 0, $$07884 = 0, $$081 = 0, $$286 = 0, $$382 = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0;
  22650. var $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0;
  22651. var $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0;
  22652. var $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0;
  22653. var $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0;
  22654. var $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $exitcond = 0, $exitcond91 = 0, $or$cond = 0, dest = 0, label = 0, sp = 0, stop = 0;
  22655. sp = STACKTOP;
  22656. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  22657. $3 = sp + 72|0;
  22658. $4 = sp;
  22659. dest=$4; stop=dest+68|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  22660. _memset(($0|0),0,1024)|0;
  22661. $5 = ($2|0)>(0);
  22662. if ($5) {
  22663. $$07688 = 0;
  22664. while(1) {
  22665. $6 = (($1) + ($$07688)|0);
  22666. $7 = HEAP8[$6>>0]|0;
  22667. $8 = $7&255;
  22668. $9 = (($4) + ($8<<2)|0);
  22669. $10 = HEAP32[$9>>2]|0;
  22670. $11 = (($10) + 1)|0;
  22671. HEAP32[$9>>2] = $11;
  22672. $12 = (($$07688) + 1)|0;
  22673. $exitcond91 = ($12|0)==($2|0);
  22674. if ($exitcond91) {
  22675. break;
  22676. } else {
  22677. $$07688 = $12;
  22678. }
  22679. }
  22680. }
  22681. HEAP32[$4>>2] = 0;
  22682. $16 = ((($4)) + 4|0);
  22683. $17 = HEAP32[$16>>2]|0;
  22684. $18 = ($17|0)>(2);
  22685. if (!($18)) {
  22686. $13 = ((($4)) + 8|0);
  22687. $14 = HEAP32[$13>>2]|0;
  22688. $15 = ($14|0)>(4);
  22689. if (!($15)) {
  22690. $69 = ((($4)) + 12|0);
  22691. $70 = HEAP32[$69>>2]|0;
  22692. $71 = ($70|0)>(8);
  22693. if (!($71)) {
  22694. $72 = ((($4)) + 16|0);
  22695. $73 = HEAP32[$72>>2]|0;
  22696. $74 = ($73|0)>(16);
  22697. if (!($74)) {
  22698. $75 = ((($4)) + 20|0);
  22699. $76 = HEAP32[$75>>2]|0;
  22700. $77 = ($76|0)>(32);
  22701. if (!($77)) {
  22702. $78 = ((($4)) + 24|0);
  22703. $79 = HEAP32[$78>>2]|0;
  22704. $80 = ($79|0)>(64);
  22705. if (!($80)) {
  22706. $81 = ((($4)) + 28|0);
  22707. $82 = HEAP32[$81>>2]|0;
  22708. $83 = ($82|0)>(128);
  22709. if (!($83)) {
  22710. $84 = ((($4)) + 32|0);
  22711. $85 = HEAP32[$84>>2]|0;
  22712. $86 = ($85|0)>(256);
  22713. if (!($86)) {
  22714. $87 = ((($4)) + 36|0);
  22715. $88 = HEAP32[$87>>2]|0;
  22716. $89 = ($88|0)>(512);
  22717. if (!($89)) {
  22718. $90 = ((($4)) + 40|0);
  22719. $91 = HEAP32[$90>>2]|0;
  22720. $92 = ($91|0)>(1024);
  22721. if (!($92)) {
  22722. $93 = ((($4)) + 44|0);
  22723. $94 = HEAP32[$93>>2]|0;
  22724. $95 = ($94|0)>(2048);
  22725. if (!($95)) {
  22726. $96 = ((($4)) + 48|0);
  22727. $97 = HEAP32[$96>>2]|0;
  22728. $98 = ($97|0)>(4096);
  22729. if (!($98)) {
  22730. $99 = ((($4)) + 52|0);
  22731. $100 = HEAP32[$99>>2]|0;
  22732. $101 = ($100|0)>(8192);
  22733. if (!($101)) {
  22734. $102 = ((($4)) + 56|0);
  22735. $103 = HEAP32[$102>>2]|0;
  22736. $104 = ($103|0)>(16384);
  22737. if (!($104)) {
  22738. $105 = ((($4)) + 60|0);
  22739. $106 = HEAP32[$105>>2]|0;
  22740. $107 = ($106|0)>(32768);
  22741. if (!($107)) {
  22742. $$07785 = 0;$$07884 = 0;$$286 = 1;
  22743. while(1) {
  22744. $19 = (($3) + ($$286<<2)|0);
  22745. HEAP32[$19>>2] = $$07884;
  22746. $20 = $$07884&65535;
  22747. $21 = (((($0)) + 1024|0) + ($$286<<1)|0);
  22748. HEAP16[$21>>1] = $20;
  22749. $22 = $$07785&65535;
  22750. $23 = (((($0)) + 1124|0) + ($$286<<1)|0);
  22751. HEAP16[$23>>1] = $22;
  22752. $24 = (($4) + ($$286<<2)|0);
  22753. $25 = HEAP32[$24>>2]|0;
  22754. $26 = (($25) + ($$07884))|0;
  22755. $27 = ($25|0)!=(0);
  22756. $28 = 1 << $$286;
  22757. $29 = ($26|0)>($28|0);
  22758. $or$cond = $27 & $29;
  22759. if ($or$cond) {
  22760. label = 7;
  22761. break;
  22762. }
  22763. $30 = (16 - ($$286))|0;
  22764. $31 = $26 << $30;
  22765. $32 = (((($0)) + 1056|0) + ($$286<<2)|0);
  22766. HEAP32[$32>>2] = $31;
  22767. $33 = $26 << 1;
  22768. $34 = (($25) + ($$07785))|0;
  22769. $35 = (($$286) + 1)|0;
  22770. $36 = ($35|0)<(16);
  22771. if ($36) {
  22772. $$07785 = $34;$$07884 = $33;$$286 = $35;
  22773. } else {
  22774. break;
  22775. }
  22776. }
  22777. if ((label|0) == 7) {
  22778. _stbi__err(11071);
  22779. $$075 = 0;
  22780. STACKTOP = sp;return ($$075|0);
  22781. }
  22782. $37 = ((($0)) + 1120|0);
  22783. HEAP32[$37>>2] = 65536;
  22784. $38 = ($2|0)>(0);
  22785. if ($38) {
  22786. $$382 = 0;
  22787. } else {
  22788. $$075 = 1;
  22789. STACKTOP = sp;return ($$075|0);
  22790. }
  22791. while(1) {
  22792. $39 = (($1) + ($$382)|0);
  22793. $40 = HEAP8[$39>>0]|0;
  22794. $41 = $40&255;
  22795. $42 = ($40<<24>>24)==(0);
  22796. if (!($42)) {
  22797. $43 = (($3) + ($41<<2)|0);
  22798. $44 = HEAP32[$43>>2]|0;
  22799. $45 = (((($0)) + 1024|0) + ($41<<1)|0);
  22800. $46 = HEAP16[$45>>1]|0;
  22801. $47 = $46&65535;
  22802. $48 = (($44) - ($47))|0;
  22803. $49 = (((($0)) + 1124|0) + ($41<<1)|0);
  22804. $50 = HEAP16[$49>>1]|0;
  22805. $51 = $50&65535;
  22806. $52 = (($48) + ($51))|0;
  22807. $53 = $41 << 9;
  22808. $54 = $53 | $$382;
  22809. $55 = $54&65535;
  22810. $56 = (((($0)) + 1156|0) + ($52)|0);
  22811. HEAP8[$56>>0] = $40;
  22812. $57 = $$382&65535;
  22813. $58 = (((($0)) + 1444|0) + ($52<<1)|0);
  22814. HEAP16[$58>>1] = $57;
  22815. $59 = ($40&255)<(10);
  22816. do {
  22817. if ($59) {
  22818. $60 = (_stbi__bit_reverse($44,$41)|0);
  22819. $61 = ($60|0)<(512);
  22820. if (!($61)) {
  22821. break;
  22822. }
  22823. $62 = 1 << $41;
  22824. $$081 = $60;
  22825. while(1) {
  22826. $63 = (($0) + ($$081<<1)|0);
  22827. HEAP16[$63>>1] = $55;
  22828. $64 = (($$081) + ($62))|0;
  22829. $65 = ($64|0)<(512);
  22830. if ($65) {
  22831. $$081 = $64;
  22832. } else {
  22833. break;
  22834. }
  22835. }
  22836. }
  22837. } while(0);
  22838. $66 = HEAP32[$43>>2]|0;
  22839. $67 = (($66) + 1)|0;
  22840. HEAP32[$43>>2] = $67;
  22841. }
  22842. $68 = (($$382) + 1)|0;
  22843. $exitcond = ($68|0)==($2|0);
  22844. if ($exitcond) {
  22845. $$075 = 1;
  22846. break;
  22847. } else {
  22848. $$382 = $68;
  22849. }
  22850. }
  22851. STACKTOP = sp;return ($$075|0);
  22852. }
  22853. }
  22854. }
  22855. }
  22856. }
  22857. }
  22858. }
  22859. }
  22860. }
  22861. }
  22862. }
  22863. }
  22864. }
  22865. }
  22866. }
  22867. _stbi__err(11123);
  22868. $$075 = 0;
  22869. STACKTOP = sp;return ($$075|0);
  22870. }
  22871. function _stbi__compute_huffman_codes($0) {
  22872. $0 = $0|0;
  22873. var $$ = 0, $$0 = 0, $$061 = 0, $$06579 = 0, $$066$be = 0, $$066$lcssa = 0, $$06678 = 0, $$4 = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0;
  22874. var $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0;
  22875. var $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $exitcond = 0, $not$ = 0, dest = 0;
  22876. var label = 0, sp = 0, stop = 0;
  22877. sp = STACKTOP;
  22878. STACKTOP = STACKTOP + 2496|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(2496|0);
  22879. $1 = sp;
  22880. $2 = sp + 2039|0;
  22881. $3 = sp + 2020|0;
  22882. $4 = (_stbi__zreceive($0,5)|0);
  22883. $5 = (($4) + 257)|0;
  22884. $6 = (_stbi__zreceive($0,5)|0);
  22885. $7 = (($6) + 1)|0;
  22886. $8 = (_stbi__zreceive($0,4)|0);
  22887. $9 = (($8) + 4)|0;
  22888. $10 = (($7) + ($5))|0;
  22889. dest=$3; stop=dest+19|0; do { HEAP8[dest>>0]=0|0; dest=dest+1|0; } while ((dest|0) < (stop|0));
  22890. $11 = ($9|0)>(0);
  22891. if ($11) {
  22892. $$06579 = 0;
  22893. while(1) {
  22894. $12 = (_stbi__zreceive($0,3)|0);
  22895. $13 = $12&255;
  22896. $14 = (11917 + ($$06579)|0);
  22897. $15 = HEAP8[$14>>0]|0;
  22898. $16 = $15&255;
  22899. $17 = (($3) + ($16)|0);
  22900. HEAP8[$17>>0] = $13;
  22901. $18 = (($$06579) + 1)|0;
  22902. $exitcond = ($18|0)==($9|0);
  22903. if ($exitcond) {
  22904. break;
  22905. } else {
  22906. $$06579 = $18;
  22907. }
  22908. }
  22909. }
  22910. $19 = (_stbi__zbuild_huffman($1,$3,19)|0);
  22911. $20 = ($19|0)==(0);
  22912. if ($20) {
  22913. $$4 = 0;
  22914. STACKTOP = sp;return ($$4|0);
  22915. }
  22916. $21 = ($10|0)>(0);
  22917. L8: do {
  22918. if ($21) {
  22919. $$06678 = 0;
  22920. L9: while(1) {
  22921. $22 = (_stbi__zhuffman_decode($0,$1)|0);
  22922. $23 = ($22>>>0)>(18);
  22923. if ($23) {
  22924. label = 6;
  22925. break;
  22926. }
  22927. $24 = ($22|0)<(16);
  22928. if ($24) {
  22929. $25 = $22&255;
  22930. $26 = (($$06678) + 1)|0;
  22931. $27 = (($2) + ($$06678)|0);
  22932. HEAP8[$27>>0] = $25;
  22933. $$066$be = $26;
  22934. } else {
  22935. switch ($22|0) {
  22936. case 16: {
  22937. $28 = (_stbi__zreceive($0,2)|0);
  22938. $29 = ($$06678|0)==(0);
  22939. if ($29) {
  22940. label = 11;
  22941. break L9;
  22942. }
  22943. $30 = (($28) + 3)|0;
  22944. $31 = (($$06678) + -1)|0;
  22945. $32 = (($2) + ($31)|0);
  22946. $33 = HEAP8[$32>>0]|0;
  22947. $$0 = $33;$$061 = $30;
  22948. break;
  22949. }
  22950. case 17: {
  22951. $34 = (_stbi__zreceive($0,3)|0);
  22952. $35 = (($34) + 3)|0;
  22953. $$0 = 0;$$061 = $35;
  22954. break;
  22955. }
  22956. case 18: {
  22957. $36 = (_stbi__zreceive($0,7)|0);
  22958. $37 = (($36) + 11)|0;
  22959. $$0 = 0;$$061 = $37;
  22960. break;
  22961. }
  22962. default: {
  22963. label = 14;
  22964. break L9;
  22965. }
  22966. }
  22967. $38 = (($10) - ($$06678))|0;
  22968. $39 = ($38|0)<($$061|0);
  22969. if ($39) {
  22970. label = 17;
  22971. break;
  22972. }
  22973. $40 = (($2) + ($$06678)|0);
  22974. _memset(($40|0),($$0|0),($$061|0))|0;
  22975. $41 = (($$061) + ($$06678))|0;
  22976. $$066$be = $41;
  22977. }
  22978. $42 = ($10|0)>($$066$be|0);
  22979. if ($42) {
  22980. $$06678 = $$066$be;
  22981. } else {
  22982. $$066$lcssa = $$066$be;
  22983. break L8;
  22984. }
  22985. }
  22986. if ((label|0) == 6) {
  22987. _stbi__err(11071);
  22988. $$4 = 0;
  22989. STACKTOP = sp;return ($$4|0);
  22990. }
  22991. else if ((label|0) == 11) {
  22992. _stbi__err(11071);
  22993. $$4 = 0;
  22994. STACKTOP = sp;return ($$4|0);
  22995. }
  22996. else if ((label|0) == 14) {
  22997. ___assert_fail((11087|0),(9847|0),4006,(11095|0));
  22998. // unreachable;
  22999. }
  23000. else if ((label|0) == 17) {
  23001. _stbi__err(11071);
  23002. $$4 = 0;
  23003. STACKTOP = sp;return ($$4|0);
  23004. }
  23005. } else {
  23006. $$066$lcssa = 0;
  23007. }
  23008. } while(0);
  23009. $43 = ($10|0)==($$066$lcssa|0);
  23010. if (!($43)) {
  23011. _stbi__err(11071);
  23012. $$4 = 0;
  23013. STACKTOP = sp;return ($$4|0);
  23014. }
  23015. $44 = ((($0)) + 32|0);
  23016. $45 = (_stbi__zbuild_huffman($44,$2,$5)|0);
  23017. $46 = ($45|0)==(0);
  23018. if ($46) {
  23019. $$4 = 0;
  23020. STACKTOP = sp;return ($$4|0);
  23021. }
  23022. $47 = ((($0)) + 2052|0);
  23023. $48 = (($2) + ($5)|0);
  23024. $49 = (_stbi__zbuild_huffman($47,$48,$7)|0);
  23025. $not$ = ($49|0)!=(0);
  23026. $$ = $not$&1;
  23027. $$4 = $$;
  23028. STACKTOP = sp;return ($$4|0);
  23029. }
  23030. function _stbi__parse_huffman_block($0) {
  23031. $0 = $0|0;
  23032. var $$063 = 0, $$064 = 0, $$067 = 0, $$070 = 0, $$171 = 0, $$266 = 0, $$272 = 0, $$3$ph = 0, $$5 = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0;
  23033. var $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0;
  23034. var $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0;
  23035. var $56 = 0, $57 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $scevgep = 0, $scevgep92 = 0, label = 0, sp = 0;
  23036. sp = STACKTOP;
  23037. $1 = ((($0)) + 16|0);
  23038. $2 = HEAP32[$1>>2]|0;
  23039. $3 = ((($0)) + 32|0);
  23040. $4 = ((($0)) + 24|0);
  23041. $5 = ((($0)) + 2052|0);
  23042. $6 = ((($0)) + 20|0);
  23043. $7 = ((($0)) + 24|0);
  23044. $$070 = $2;
  23045. while(1) {
  23046. $10 = (_stbi__zhuffman_decode($0,$3)|0);
  23047. $11 = ($10|0)<(256);
  23048. if ($11) {
  23049. $12 = ($10|0)<(0);
  23050. if ($12) {
  23051. label = 6;
  23052. break;
  23053. }
  23054. $13 = HEAP32[$4>>2]|0;
  23055. $14 = ($$070>>>0)<($13>>>0);
  23056. if ($14) {
  23057. $$171 = $$070;
  23058. } else {
  23059. $15 = (_stbi__zexpand($0,$$070,1)|0);
  23060. $16 = ($15|0)==(0);
  23061. if ($16) {
  23062. $$3$ph = 0;
  23063. label = 28;
  23064. break;
  23065. }
  23066. $17 = HEAP32[$1>>2]|0;
  23067. $$171 = $17;
  23068. }
  23069. $18 = $10&255;
  23070. $19 = ((($$171)) + 1|0);
  23071. HEAP8[$$171>>0] = $18;
  23072. $$070 = $19;
  23073. continue;
  23074. }
  23075. $20 = ($10|0)==(256);
  23076. if ($20) {
  23077. label = 12;
  23078. break;
  23079. }
  23080. $21 = (($10) + -257)|0;
  23081. $22 = (3308 + ($21<<2)|0);
  23082. $23 = HEAP32[$22>>2]|0;
  23083. $24 = (($10) + -265)|0;
  23084. $25 = ($24>>>0)<(20);
  23085. if ($25) {
  23086. $26 = (3184 + ($21<<2)|0);
  23087. $27 = HEAP32[$26>>2]|0;
  23088. $28 = (_stbi__zreceive($0,$27)|0);
  23089. $29 = (($28) + ($23))|0;
  23090. $$064 = $29;
  23091. } else {
  23092. $$064 = $23;
  23093. }
  23094. $30 = (_stbi__zhuffman_decode($0,$5)|0);
  23095. $31 = ($30|0)<(0);
  23096. if ($31) {
  23097. label = 16;
  23098. break;
  23099. }
  23100. $32 = (3560 + ($30<<2)|0);
  23101. $33 = HEAP32[$32>>2]|0;
  23102. $34 = (($30) + -4)|0;
  23103. $35 = ($34>>>0)<(26);
  23104. if ($35) {
  23105. $36 = (3432 + ($30<<2)|0);
  23106. $37 = HEAP32[$36>>2]|0;
  23107. $38 = (_stbi__zreceive($0,$37)|0);
  23108. $39 = (($38) + ($33))|0;
  23109. $$063 = $39;
  23110. } else {
  23111. $$063 = $33;
  23112. }
  23113. $40 = HEAP32[$6>>2]|0;
  23114. $41 = $$070;
  23115. $42 = (($41) - ($40))|0;
  23116. $43 = ($42|0)<($$063|0);
  23117. if ($43) {
  23118. label = 20;
  23119. break;
  23120. }
  23121. $44 = (($$070) + ($$064)|0);
  23122. $45 = HEAP32[$7>>2]|0;
  23123. $46 = ($44>>>0)>($45>>>0);
  23124. if ($46) {
  23125. $47 = (_stbi__zexpand($0,$$070,$$064)|0);
  23126. $48 = ($47|0)==(0);
  23127. if ($48) {
  23128. $$3$ph = 0;
  23129. label = 28;
  23130. break;
  23131. }
  23132. $49 = HEAP32[$1>>2]|0;
  23133. $$272 = $49;
  23134. } else {
  23135. $$272 = $$070;
  23136. }
  23137. $50 = (0 - ($$063))|0;
  23138. $9 = (($$272) + ($50)|0);
  23139. $51 = ($$063|0)==(1);
  23140. $52 = ($$064|0)!=(0);
  23141. if ($51) {
  23142. if (!($52)) {
  23143. $$070 = $$272;
  23144. continue;
  23145. }
  23146. $8 = HEAP8[$9>>0]|0;
  23147. _memset(($$272|0),($8|0),($$064|0))|0;
  23148. $scevgep92 = (($$272) + ($$064)|0);
  23149. $$070 = $scevgep92;
  23150. continue;
  23151. }
  23152. if ($52) {
  23153. $$067 = $9;$$266 = $$064;$$5 = $$272;
  23154. } else {
  23155. $$070 = $$272;
  23156. continue;
  23157. }
  23158. while(1) {
  23159. $53 = ((($$067)) + 1|0);
  23160. $54 = HEAP8[$$067>>0]|0;
  23161. $55 = ((($$5)) + 1|0);
  23162. HEAP8[$$5>>0] = $54;
  23163. $56 = (($$266) + -1)|0;
  23164. $57 = ($56|0)==(0);
  23165. if ($57) {
  23166. break;
  23167. } else {
  23168. $$067 = $53;$$266 = $56;$$5 = $55;
  23169. }
  23170. }
  23171. $scevgep = (($$272) + ($$064)|0);
  23172. $$070 = $scevgep;
  23173. }
  23174. if ((label|0) == 6) {
  23175. _stbi__err(10896);
  23176. $$3$ph = 0;
  23177. return ($$3$ph|0);
  23178. }
  23179. else if ((label|0) == 12) {
  23180. HEAP32[$1>>2] = $$070;
  23181. $$3$ph = 1;
  23182. return ($$3$ph|0);
  23183. }
  23184. else if ((label|0) == 16) {
  23185. _stbi__err(10896);
  23186. $$3$ph = 0;
  23187. return ($$3$ph|0);
  23188. }
  23189. else if ((label|0) == 20) {
  23190. _stbi__err(10913);
  23191. $$3$ph = 0;
  23192. return ($$3$ph|0);
  23193. }
  23194. else if ((label|0) == 28) {
  23195. return ($$3$ph|0);
  23196. }
  23197. return (0)|0;
  23198. }
  23199. function _stbi__zhuffman_decode($0,$1) {
  23200. $0 = $0|0;
  23201. $1 = $1|0;
  23202. var $$0 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  23203. sp = STACKTOP;
  23204. $2 = ((($0)) + 8|0);
  23205. $3 = HEAP32[$2>>2]|0;
  23206. $4 = ($3|0)<(16);
  23207. if ($4) {
  23208. _stbi__fill_bits($0);
  23209. }
  23210. $5 = ((($0)) + 12|0);
  23211. $6 = HEAP32[$5>>2]|0;
  23212. $7 = $6 & 511;
  23213. $8 = (($1) + ($7<<1)|0);
  23214. $9 = HEAP16[$8>>1]|0;
  23215. $10 = $9&65535;
  23216. $11 = ($9<<16>>16)==(0);
  23217. if ($11) {
  23218. $17 = (_stbi__zhuffman_decode_slowpath($0,$1)|0);
  23219. $$0 = $17;
  23220. return ($$0|0);
  23221. } else {
  23222. $12 = $10 >>> 9;
  23223. $13 = $6 >>> $12;
  23224. HEAP32[$5>>2] = $13;
  23225. $14 = HEAP32[$2>>2]|0;
  23226. $15 = (($14) - ($12))|0;
  23227. HEAP32[$2>>2] = $15;
  23228. $16 = $10 & 511;
  23229. $$0 = $16;
  23230. return ($$0|0);
  23231. }
  23232. return (0)|0;
  23233. }
  23234. function _stbi__zexpand($0,$1,$2) {
  23235. $0 = $0|0;
  23236. $1 = $1|0;
  23237. $2 = $2|0;
  23238. var $$0 = 0, $$029 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0;
  23239. var $9 = 0, label = 0, sp = 0;
  23240. sp = STACKTOP;
  23241. $3 = ((($0)) + 16|0);
  23242. HEAP32[$3>>2] = $1;
  23243. $4 = ((($0)) + 28|0);
  23244. $5 = HEAP32[$4>>2]|0;
  23245. $6 = ($5|0)==(0);
  23246. if ($6) {
  23247. _stbi__err(10922);
  23248. $$0 = 0;
  23249. return ($$0|0);
  23250. }
  23251. $7 = ((($0)) + 20|0);
  23252. $8 = HEAP32[$7>>2]|0;
  23253. $9 = $1;
  23254. $10 = $8;
  23255. $11 = (($9) - ($10))|0;
  23256. $12 = ((($0)) + 24|0);
  23257. $13 = HEAP32[$12>>2]|0;
  23258. $14 = (($13) - ($10))|0;
  23259. $15 = (($11) + ($2))|0;
  23260. $$029 = $14;
  23261. while(1) {
  23262. $16 = ($15|0)>($$029|0);
  23263. $17 = $$029 << 1;
  23264. if ($16) {
  23265. $$029 = $17;
  23266. } else {
  23267. break;
  23268. }
  23269. }
  23270. $18 = (_realloc($8,$$029)|0);
  23271. $19 = ($18|0)==(0|0);
  23272. if ($19) {
  23273. _stbi__err(9902);
  23274. $$0 = 0;
  23275. return ($$0|0);
  23276. } else {
  23277. HEAP32[$7>>2] = $18;
  23278. $20 = (($18) + ($11)|0);
  23279. HEAP32[$3>>2] = $20;
  23280. $21 = (($18) + ($$029)|0);
  23281. HEAP32[$12>>2] = $21;
  23282. $$0 = 1;
  23283. return ($$0|0);
  23284. }
  23285. return (0)|0;
  23286. }
  23287. function _stbi__fill_bits($0) {
  23288. $0 = $0|0;
  23289. var $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  23290. sp = STACKTOP;
  23291. $1 = ((($0)) + 12|0);
  23292. $2 = ((($0)) + 8|0);
  23293. while(1) {
  23294. $3 = HEAP32[$1>>2]|0;
  23295. $4 = HEAP32[$2>>2]|0;
  23296. $5 = 1 << $4;
  23297. $6 = ($3>>>0)<($5>>>0);
  23298. if (!($6)) {
  23299. label = 3;
  23300. break;
  23301. }
  23302. $7 = (_stbi__zget8($0)|0);
  23303. $8 = $7&255;
  23304. $9 = HEAP32[$2>>2]|0;
  23305. $10 = $8 << $9;
  23306. $11 = HEAP32[$1>>2]|0;
  23307. $12 = $11 | $10;
  23308. HEAP32[$1>>2] = $12;
  23309. $13 = (($9) + 8)|0;
  23310. HEAP32[$2>>2] = $13;
  23311. $14 = ($13|0)<(25);
  23312. if (!($14)) {
  23313. label = 5;
  23314. break;
  23315. }
  23316. }
  23317. if ((label|0) == 3) {
  23318. ___assert_fail((11018|0),(9847|0),3848,(11055|0));
  23319. // unreachable;
  23320. }
  23321. else if ((label|0) == 5) {
  23322. return;
  23323. }
  23324. }
  23325. function _stbi__zhuffman_decode_slowpath($0,$1) {
  23326. $0 = $0|0;
  23327. $1 = $1|0;
  23328. var $$0 = 0, $$025 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0;
  23329. var $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  23330. sp = STACKTOP;
  23331. $2 = ((($0)) + 12|0);
  23332. $3 = HEAP32[$2>>2]|0;
  23333. $4 = (_stbi__bit_reverse($3,16)|0);
  23334. $$025 = 10;
  23335. while(1) {
  23336. $5 = (((($1)) + 1056|0) + ($$025<<2)|0);
  23337. $6 = HEAP32[$5>>2]|0;
  23338. $7 = ($4|0)<($6|0);
  23339. $8 = (($$025) + 1)|0;
  23340. if ($7) {
  23341. break;
  23342. } else {
  23343. $$025 = $8;
  23344. }
  23345. }
  23346. $9 = ($$025|0)==(16);
  23347. if ($9) {
  23348. $$0 = -1;
  23349. return ($$0|0);
  23350. }
  23351. $10 = (16 - ($$025))|0;
  23352. $11 = $4 >> $10;
  23353. $12 = (((($1)) + 1024|0) + ($$025<<1)|0);
  23354. $13 = HEAP16[$12>>1]|0;
  23355. $14 = $13&65535;
  23356. $15 = (($11) - ($14))|0;
  23357. $16 = (((($1)) + 1124|0) + ($$025<<1)|0);
  23358. $17 = HEAP16[$16>>1]|0;
  23359. $18 = $17&65535;
  23360. $19 = (($15) + ($18))|0;
  23361. $20 = (((($1)) + 1156|0) + ($19)|0);
  23362. $21 = HEAP8[$20>>0]|0;
  23363. $22 = $21&255;
  23364. $23 = ($22|0)==($$025|0);
  23365. if (!($23)) {
  23366. ___assert_fail((10942|0),(9847|0),3876,(10958|0));
  23367. // unreachable;
  23368. }
  23369. $24 = HEAP32[$2>>2]|0;
  23370. $25 = $24 >>> $$025;
  23371. HEAP32[$2>>2] = $25;
  23372. $26 = ((($0)) + 8|0);
  23373. $27 = HEAP32[$26>>2]|0;
  23374. $28 = (($27) - ($$025))|0;
  23375. HEAP32[$26>>2] = $28;
  23376. $29 = (((($1)) + 1444|0) + ($19<<1)|0);
  23377. $30 = HEAP16[$29>>1]|0;
  23378. $31 = $30&65535;
  23379. $$0 = $31;
  23380. return ($$0|0);
  23381. }
  23382. function _stbi__bit_reverse($0,$1) {
  23383. $0 = $0|0;
  23384. $1 = $1|0;
  23385. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  23386. sp = STACKTOP;
  23387. $2 = ($1|0)<(17);
  23388. if ($2) {
  23389. $3 = (_stbi__bitreverse16($0)|0);
  23390. $4 = (16 - ($1))|0;
  23391. $5 = $3 >> $4;
  23392. return ($5|0);
  23393. } else {
  23394. ___assert_fail((10989|0),(9847|0),3766,(11000|0));
  23395. // unreachable;
  23396. }
  23397. return (0)|0;
  23398. }
  23399. function _stbi__bitreverse16($0) {
  23400. $0 = $0|0;
  23401. var $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0;
  23402. var sp = 0;
  23403. sp = STACKTOP;
  23404. $1 = $0 >>> 1;
  23405. $2 = $1 & 21845;
  23406. $3 = $0 << 1;
  23407. $4 = $3 & 43690;
  23408. $5 = $2 | $4;
  23409. $6 = $5 >>> 2;
  23410. $7 = $6 & 13107;
  23411. $8 = $5 << 2;
  23412. $9 = $8 & 52428;
  23413. $10 = $7 | $9;
  23414. $11 = $10 >>> 4;
  23415. $12 = $11 & 3855;
  23416. $13 = $10 << 4;
  23417. $14 = $13 & 61680;
  23418. $15 = $12 | $14;
  23419. $16 = $15 >>> 8;
  23420. $17 = $15 << 8;
  23421. $18 = $17 & 65280;
  23422. $19 = $18 | $16;
  23423. return ($19|0);
  23424. }
  23425. function _stbi__zget8($0) {
  23426. $0 = $0|0;
  23427. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  23428. sp = STACKTOP;
  23429. $1 = HEAP32[$0>>2]|0;
  23430. $2 = ((($0)) + 4|0);
  23431. $3 = HEAP32[$2>>2]|0;
  23432. $4 = ($1>>>0)<($3>>>0);
  23433. if (!($4)) {
  23434. $$0 = 0;
  23435. return ($$0|0);
  23436. }
  23437. $5 = ((($1)) + 1|0);
  23438. HEAP32[$0>>2] = $5;
  23439. $6 = HEAP8[$1>>0]|0;
  23440. $$0 = $6;
  23441. return ($$0|0);
  23442. }
  23443. function _stbi__refill_buffer($0) {
  23444. $0 = $0|0;
  23445. var $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  23446. sp = STACKTOP;
  23447. $1 = ((($0)) + 16|0);
  23448. $2 = HEAP32[$1>>2]|0;
  23449. $3 = ((($0)) + 28|0);
  23450. $4 = HEAP32[$3>>2]|0;
  23451. $5 = ((($0)) + 40|0);
  23452. $6 = ((($0)) + 36|0);
  23453. $7 = HEAP32[$6>>2]|0;
  23454. $8 = (FUNCTION_TABLE_iiii[$2 & 15]($4,$5,$7)|0);
  23455. $9 = ($8|0)==(0);
  23456. if ($9) {
  23457. $10 = ((($0)) + 32|0);
  23458. HEAP32[$10>>2] = 0;
  23459. $11 = ((($0)) + 168|0);
  23460. HEAP32[$11>>2] = $5;
  23461. $12 = ((($0)) + 41|0);
  23462. $13 = ((($0)) + 172|0);
  23463. HEAP32[$13>>2] = $12;
  23464. HEAP8[$5>>0] = 0;
  23465. return;
  23466. } else {
  23467. $14 = ((($0)) + 168|0);
  23468. HEAP32[$14>>2] = $5;
  23469. $15 = (((($0)) + 40|0) + ($8)|0);
  23470. $16 = ((($0)) + 172|0);
  23471. HEAP32[$16>>2] = $15;
  23472. return;
  23473. }
  23474. }
  23475. function _stbi__rewind($0) {
  23476. $0 = $0|0;
  23477. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  23478. sp = STACKTOP;
  23479. $1 = ((($0)) + 176|0);
  23480. $2 = HEAP32[$1>>2]|0;
  23481. $3 = ((($0)) + 168|0);
  23482. HEAP32[$3>>2] = $2;
  23483. $4 = ((($0)) + 180|0);
  23484. $5 = HEAP32[$4>>2]|0;
  23485. $6 = ((($0)) + 172|0);
  23486. HEAP32[$6>>2] = $5;
  23487. return;
  23488. }
  23489. function _stbi__start_callbacks($0,$1,$2) {
  23490. $0 = $0|0;
  23491. $1 = $1|0;
  23492. $2 = $2|0;
  23493. var $10 = 0, $11 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  23494. sp = STACKTOP;
  23495. $3 = ((($0)) + 16|0);
  23496. ;HEAP32[$3>>2]=HEAP32[$1>>2]|0;HEAP32[$3+4>>2]=HEAP32[$1+4>>2]|0;HEAP32[$3+8>>2]=HEAP32[$1+8>>2]|0;
  23497. $4 = ((($0)) + 28|0);
  23498. HEAP32[$4>>2] = $2;
  23499. $5 = ((($0)) + 36|0);
  23500. HEAP32[$5>>2] = 128;
  23501. $6 = ((($0)) + 32|0);
  23502. HEAP32[$6>>2] = 1;
  23503. $7 = ((($0)) + 40|0);
  23504. $8 = ((($0)) + 176|0);
  23505. HEAP32[$8>>2] = $7;
  23506. _stbi__refill_buffer($0);
  23507. $9 = ((($0)) + 172|0);
  23508. $10 = HEAP32[$9>>2]|0;
  23509. $11 = ((($0)) + 180|0);
  23510. HEAP32[$11>>2] = $10;
  23511. return;
  23512. }
  23513. function _stbi__stdio_read($0,$1,$2) {
  23514. $0 = $0|0;
  23515. $1 = $1|0;
  23516. $2 = $2|0;
  23517. var $3 = 0, label = 0, sp = 0;
  23518. sp = STACKTOP;
  23519. $3 = (_fread($1,1,$2,$0)|0);
  23520. return ($3|0);
  23521. }
  23522. function _stbi__stdio_skip($0,$1) {
  23523. $0 = $0|0;
  23524. $1 = $1|0;
  23525. var label = 0, sp = 0;
  23526. sp = STACKTOP;
  23527. (_fseek($0,$1,1)|0);
  23528. return;
  23529. }
  23530. function _stbi__stdio_eof($0) {
  23531. $0 = $0|0;
  23532. var $1 = 0, label = 0, sp = 0;
  23533. sp = STACKTOP;
  23534. $1 = (_feof($0)|0);
  23535. return ($1|0);
  23536. }
  23537. function _LoadImage($0,$1) {
  23538. $0 = $0|0;
  23539. $1 = $1|0;
  23540. var $$sink = 0, $$sroa$0$0 = 0, $$sroa$0$0$copyload = 0, $$sroa$0$1 = 0, $$sroa$0$144 = 0, $$sroa$10$0 = 0, $$sroa$10$0$$sroa_idx19 = 0, $$sroa$10$0$$sroa_idx20 = 0, $$sroa$10$0$copyload = 0, $$sroa$10$1 = 0, $$sroa$10$140 = 0, $$sroa$10$141 = 0, $$sroa$13$0 = 0, $$sroa$13$0$$sroa_idx23 = 0, $$sroa$13$0$$sroa_idx24 = 0, $$sroa$13$0$copyload = 0, $$sroa$13$1 = 0, $$sroa$13$146 = 0, $$sroa$13$147 = 0, $$sroa$15$0 = 0;
  23541. var $$sroa$15$0$$sroa_idx27 = 0, $$sroa$15$0$$sroa_idx28 = 0, $$sroa$15$0$copyload = 0, $$sroa$15$1 = 0, $$sroa$15$2 = 0, $$sroa$15$248 = 0, $$sroa$15$249 = 0, $$sroa$7$0 = 0, $$sroa$7$0$$sroa_idx15 = 0, $$sroa$7$0$$sroa_idx16 = 0, $$sroa$7$0$copyload = 0, $$sroa$7$1 = 0, $$sroa$7$142 = 0, $$sroa$7$143 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0;
  23542. var $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $vararg_buffer = 0;
  23543. var $vararg_buffer1 = 0, $vararg_buffer4 = 0, $vararg_buffer9 = 0, $vararg_ptr7 = 0, $vararg_ptr8 = 0, label = 0, sp = 0;
  23544. sp = STACKTOP;
  23545. STACKTOP = STACKTOP + 80|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(80|0);
  23546. $vararg_buffer9 = sp + 32|0;
  23547. $vararg_buffer4 = sp + 16|0;
  23548. $vararg_buffer1 = sp + 8|0;
  23549. $vararg_buffer = sp;
  23550. $2 = sp + 48|0;
  23551. $3 = sp + 44|0;
  23552. $4 = sp + 40|0;
  23553. $5 = sp + 36|0;
  23554. $6 = (_IsFileExtension($1,11270)|0);
  23555. $7 = ($6|0)==(0);
  23556. do {
  23557. if ($7) {
  23558. $19 = (_IsFileExtension($1,11323)|0);
  23559. $20 = ($19|0)==(0);
  23560. if ($20) {
  23561. HEAP32[$vararg_buffer1>>2] = $1;
  23562. _TraceLog(2,11328,$vararg_buffer1);
  23563. $$sroa$10$141 = 0;$$sroa$13$147 = 0;$$sroa$15$249 = 0;$$sroa$7$143 = 0;
  23564. break;
  23565. }
  23566. HEAP32[$3>>2] = 0;
  23567. HEAP32[$4>>2] = 0;
  23568. HEAP32[$5>>2] = 0;
  23569. $21 = (_fopen($1,11462)|0);
  23570. $22 = (_stbi_load_from_file($21,$3,$4,$5,0)|0);
  23571. (_fclose($21)|0);
  23572. $23 = HEAP32[$3>>2]|0;
  23573. $24 = HEAP32[$4>>2]|0;
  23574. $25 = HEAP32[$5>>2]|0;
  23575. switch ($25|0) {
  23576. case 1: {
  23577. $$sink = 1;
  23578. label = 11;
  23579. break;
  23580. }
  23581. case 2: {
  23582. $$sink = 2;
  23583. label = 11;
  23584. break;
  23585. }
  23586. case 3: {
  23587. $$sink = 4;
  23588. label = 11;
  23589. break;
  23590. }
  23591. case 4: {
  23592. $$sink = 7;
  23593. label = 11;
  23594. break;
  23595. }
  23596. default: {
  23597. $$sroa$15$1 = 0;
  23598. }
  23599. }
  23600. if ((label|0) == 11) {
  23601. $$sroa$15$1 = $$sink;
  23602. }
  23603. $$sroa$0$1 = $22;$$sroa$10$1 = $24;$$sroa$13$1 = 1;$$sroa$15$2 = $$sroa$15$1;$$sroa$7$1 = $23;
  23604. label = 14;
  23605. } else {
  23606. $8 = (_LoadResource($1,0)|0);
  23607. $9 = HEAP32[$8>>2]|0;
  23608. $10 = ($9|0)==(1);
  23609. if ($10) {
  23610. $11 = ((($8)) + 20|0);
  23611. $12 = HEAP32[$11>>2]|0;
  23612. $13 = ((($8)) + 4|0);
  23613. $14 = HEAP32[$13>>2]|0;
  23614. $15 = ((($8)) + 8|0);
  23615. $16 = HEAP32[$15>>2]|0;
  23616. $17 = ((($8)) + 12|0);
  23617. $18 = HEAP32[$17>>2]|0;
  23618. _LoadImagePro($2,$12,$14,$16,$18);
  23619. $$sroa$0$0$copyload = HEAP32[$2>>2]|0;
  23620. $$sroa$7$0$$sroa_idx15 = ((($2)) + 4|0);
  23621. $$sroa$7$0$copyload = HEAP32[$$sroa$7$0$$sroa_idx15>>2]|0;
  23622. $$sroa$10$0$$sroa_idx19 = ((($2)) + 8|0);
  23623. $$sroa$10$0$copyload = HEAP32[$$sroa$10$0$$sroa_idx19>>2]|0;
  23624. $$sroa$13$0$$sroa_idx23 = ((($2)) + 12|0);
  23625. $$sroa$13$0$copyload = HEAP32[$$sroa$13$0$$sroa_idx23>>2]|0;
  23626. $$sroa$15$0$$sroa_idx27 = ((($2)) + 16|0);
  23627. $$sroa$15$0$copyload = HEAP32[$$sroa$15$0$$sroa_idx27>>2]|0;
  23628. $$sroa$0$0 = $$sroa$0$0$copyload;$$sroa$10$0 = $$sroa$10$0$copyload;$$sroa$13$0 = $$sroa$13$0$copyload;$$sroa$15$0 = $$sroa$15$0$copyload;$$sroa$7$0 = $$sroa$7$0$copyload;
  23629. } else {
  23630. HEAP32[$vararg_buffer>>2] = $1;
  23631. _TraceLog(2,11276,$vararg_buffer);
  23632. $$sroa$0$0 = 0;$$sroa$10$0 = 0;$$sroa$13$0 = 0;$$sroa$15$0 = 0;$$sroa$7$0 = 0;
  23633. }
  23634. _UnloadResource($8);
  23635. $$sroa$0$1 = $$sroa$0$0;$$sroa$10$1 = $$sroa$10$0;$$sroa$13$1 = $$sroa$13$0;$$sroa$15$2 = $$sroa$15$0;$$sroa$7$1 = $$sroa$7$0;
  23636. label = 14;
  23637. }
  23638. } while(0);
  23639. if ((label|0) == 14) {
  23640. $26 = ($$sroa$0$1|0)==(0|0);
  23641. if ($26) {
  23642. $$sroa$10$141 = $$sroa$10$1;$$sroa$13$147 = $$sroa$13$1;$$sroa$15$249 = $$sroa$15$2;$$sroa$7$143 = $$sroa$7$1;
  23643. } else {
  23644. HEAP32[$vararg_buffer4>>2] = $1;
  23645. $vararg_ptr7 = ((($vararg_buffer4)) + 4|0);
  23646. HEAP32[$vararg_ptr7>>2] = $$sroa$7$1;
  23647. $vararg_ptr8 = ((($vararg_buffer4)) + 8|0);
  23648. HEAP32[$vararg_ptr8>>2] = $$sroa$10$1;
  23649. _TraceLog(0,11364,$vararg_buffer4);
  23650. $$sroa$0$144 = $$sroa$0$1;$$sroa$10$140 = $$sroa$10$1;$$sroa$13$146 = $$sroa$13$1;$$sroa$15$248 = $$sroa$15$2;$$sroa$7$142 = $$sroa$7$1;
  23651. HEAP32[$0>>2] = $$sroa$0$144;
  23652. $$sroa$7$0$$sroa_idx16 = ((($0)) + 4|0);
  23653. HEAP32[$$sroa$7$0$$sroa_idx16>>2] = $$sroa$7$142;
  23654. $$sroa$10$0$$sroa_idx20 = ((($0)) + 8|0);
  23655. HEAP32[$$sroa$10$0$$sroa_idx20>>2] = $$sroa$10$140;
  23656. $$sroa$13$0$$sroa_idx24 = ((($0)) + 12|0);
  23657. HEAP32[$$sroa$13$0$$sroa_idx24>>2] = $$sroa$13$146;
  23658. $$sroa$15$0$$sroa_idx28 = ((($0)) + 16|0);
  23659. HEAP32[$$sroa$15$0$$sroa_idx28>>2] = $$sroa$15$248;
  23660. STACKTOP = sp;return;
  23661. }
  23662. }
  23663. HEAP32[$vararg_buffer9>>2] = $1;
  23664. _TraceLog(2,11403,$vararg_buffer9);
  23665. $$sroa$0$144 = 0;$$sroa$10$140 = $$sroa$10$141;$$sroa$13$146 = $$sroa$13$147;$$sroa$15$248 = $$sroa$15$249;$$sroa$7$142 = $$sroa$7$143;
  23666. HEAP32[$0>>2] = $$sroa$0$144;
  23667. $$sroa$7$0$$sroa_idx16 = ((($0)) + 4|0);
  23668. HEAP32[$$sroa$7$0$$sroa_idx16>>2] = $$sroa$7$142;
  23669. $$sroa$10$0$$sroa_idx20 = ((($0)) + 8|0);
  23670. HEAP32[$$sroa$10$0$$sroa_idx20>>2] = $$sroa$10$140;
  23671. $$sroa$13$0$$sroa_idx24 = ((($0)) + 12|0);
  23672. HEAP32[$$sroa$13$0$$sroa_idx24>>2] = $$sroa$13$146;
  23673. $$sroa$15$0$$sroa_idx28 = ((($0)) + 16|0);
  23674. HEAP32[$$sroa$15$0$$sroa_idx28>>2] = $$sroa$15$248;
  23675. STACKTOP = sp;return;
  23676. }
  23677. function _LoadResource($0,$1) {
  23678. $0 = $0|0;
  23679. $1 = $1|0;
  23680. var $$0$lcssa = 0, $$05665 = 0, $$05764 = 0, $$1 = 0, $$2 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0;
  23681. var $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0;
  23682. var $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0;
  23683. var $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0, $8 = 0, $9 = 0, $or$cond = 0, $or$cond60 = 0;
  23684. var $or$cond62 = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, $vararg_buffer4 = 0, $vararg_buffer8 = 0, $vararg_ptr11 = 0, $vararg_ptr7 = 0, label = 0, sp = 0;
  23685. sp = STACKTOP;
  23686. STACKTOP = STACKTOP + 80|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(80|0);
  23687. $vararg_buffer8 = sp + 24|0;
  23688. $vararg_buffer4 = sp + 16|0;
  23689. $vararg_buffer1 = sp + 8|0;
  23690. $vararg_buffer = sp;
  23691. $2 = sp + 64|0;
  23692. $3 = sp + 32|0;
  23693. $4 = (_fopen($0,11462)|0);
  23694. $5 = ($4|0)==(0|0);
  23695. if ($5) {
  23696. HEAP32[$vararg_buffer>>2] = $0;
  23697. _TraceLog(2,11465,$vararg_buffer);
  23698. $$2 = 0;
  23699. STACKTOP = sp;return ($$2|0);
  23700. }
  23701. (_fread($2,1,1,$4)|0);
  23702. $6 = ((($2)) + 1|0);
  23703. (_fread($6,1,1,$4)|0);
  23704. $7 = ((($2)) + 2|0);
  23705. (_fread($7,1,1,$4)|0);
  23706. $8 = ((($2)) + 3|0);
  23707. (_fread($8,1,1,$4)|0);
  23708. $9 = ((($2)) + 4|0);
  23709. (_fread($9,2,1,$4)|0);
  23710. $10 = ((($2)) + 6|0);
  23711. (_fread($10,2,1,$4)|0);
  23712. $11 = HEAP8[$2>>0]|0;
  23713. $12 = ($11<<24>>24)==(114);
  23714. $13 = HEAP8[$6>>0]|0;
  23715. $14 = ($13<<24>>24)==(82);
  23716. $or$cond = $12 | $14;
  23717. $15 = HEAP8[$7>>0]|0;
  23718. $16 = ($15<<24>>24)==(69);
  23719. $or$cond60 = $or$cond | $16;
  23720. $17 = HEAP8[$8>>0]|0;
  23721. $18 = ($17<<24>>24)==(83);
  23722. $or$cond62 = $or$cond60 | $18;
  23723. if ($or$cond62) {
  23724. $19 = HEAP16[$10>>1]|0;
  23725. $20 = ($19<<16>>16)==(0);
  23726. if ($20) {
  23727. $$0$lcssa = 0;
  23728. } else {
  23729. $21 = ((($3)) + 7|0);
  23730. $22 = HEAP16[$10>>1]|0;
  23731. $23 = $22&65535;
  23732. $24 = ((($3)) + 8|0);
  23733. $25 = ((($3)) + 4|0);
  23734. $26 = ((($3)) + 16|0);
  23735. $27 = ((($3)) + 20|0);
  23736. $28 = ((($3)) + 24|0);
  23737. $29 = ((($3)) + 28|0);
  23738. $30 = ((($3)) + 8|0);
  23739. $31 = ((($3)) + 5|0);
  23740. $32 = ((($3)) + 12|0);
  23741. $$05665 = 0;
  23742. while(1) {
  23743. (_fread($3,32,1,$4)|0);
  23744. $36 = HEAP8[$21>>0]|0;
  23745. $37 = $36&255;
  23746. $38 = ($37*24)|0;
  23747. $39 = (_malloc($38)|0);
  23748. $40 = HEAP32[$3>>2]|0;
  23749. $41 = ($40|0)==($1|0);
  23750. if ($41) {
  23751. $42 = HEAP8[$21>>0]|0;
  23752. $43 = ($42<<24>>24)==(0);
  23753. if (!($43)) {
  23754. $$05764 = 0;
  23755. while(1) {
  23756. $44 = HEAP8[$25>>0]|0;
  23757. $45 = $44&255;
  23758. $46 = (($39) + (($$05764*24)|0)|0);
  23759. HEAP32[$46>>2] = $45;
  23760. $47 = HEAP32[$26>>2]|0;
  23761. $48 = (((($39) + (($$05764*24)|0)|0)) + 4|0);
  23762. HEAP32[$48>>2] = $47;
  23763. $49 = HEAP32[$27>>2]|0;
  23764. $50 = (((($39) + (($$05764*24)|0)|0)) + 8|0);
  23765. HEAP32[$50>>2] = $49;
  23766. $51 = HEAP32[$28>>2]|0;
  23767. $52 = (((($39) + (($$05764*24)|0)|0)) + 12|0);
  23768. HEAP32[$52>>2] = $51;
  23769. $53 = HEAP32[$29>>2]|0;
  23770. $54 = (((($39) + (($$05764*24)|0)|0)) + 16|0);
  23771. HEAP32[$54>>2] = $53;
  23772. $55 = HEAP32[$30>>2]|0;
  23773. $56 = (_malloc($55)|0);
  23774. (_fread($56,$55,1,$4)|0);
  23775. $57 = HEAP8[$31>>0]|0;
  23776. $58 = ($57<<24>>24)==(1);
  23777. if ($58) {
  23778. $59 = HEAP32[$30>>2]|0;
  23779. $60 = HEAP32[$32>>2]|0;
  23780. $61 = (_DecompressData($56,$59,$60)|0);
  23781. $62 = (((($39) + (($$05764*24)|0)|0)) + 20|0);
  23782. HEAP32[$62>>2] = $61;
  23783. _free($56);
  23784. } else {
  23785. $63 = (((($39) + (($$05764*24)|0)|0)) + 20|0);
  23786. HEAP32[$63>>2] = $56;
  23787. }
  23788. $64 = (((($39) + (($$05764*24)|0)|0)) + 20|0);
  23789. $65 = HEAP32[$64>>2]|0;
  23790. $66 = ($65|0)==(0|0);
  23791. if (!($66)) {
  23792. $67 = HEAP32[$3>>2]|0;
  23793. HEAP32[$vararg_buffer4>>2] = $0;
  23794. $vararg_ptr7 = ((($vararg_buffer4)) + 4|0);
  23795. HEAP32[$vararg_ptr7>>2] = $67;
  23796. _TraceLog(0,11562,$vararg_buffer4);
  23797. }
  23798. (_fread($3,32,1,$4)|0);
  23799. $68 = (($$05764) + 1)|0;
  23800. $69 = HEAP8[$21>>0]|0;
  23801. $70 = $69&255;
  23802. $71 = ($68|0)<($70|0);
  23803. if ($71) {
  23804. $$05764 = $68;
  23805. } else {
  23806. break;
  23807. }
  23808. }
  23809. }
  23810. } else {
  23811. $72 = HEAP32[$24>>2]|0;
  23812. (_fseek($4,$72,1)|0);
  23813. }
  23814. $73 = (($$05665) + 1)|0;
  23815. $74 = ($73|0)<($23|0);
  23816. if ($74) {
  23817. $$05665 = $73;
  23818. } else {
  23819. $$0$lcssa = $39;
  23820. break;
  23821. }
  23822. }
  23823. }
  23824. $33 = ((($$0$lcssa)) + 20|0);
  23825. $34 = HEAP32[$33>>2]|0;
  23826. $35 = ($34|0)==(0|0);
  23827. if ($35) {
  23828. HEAP32[$vararg_buffer8>>2] = $0;
  23829. $vararg_ptr11 = ((($vararg_buffer8)) + 4|0);
  23830. HEAP32[$vararg_ptr11>>2] = $1;
  23831. _TraceLog(2,11608,$vararg_buffer8);
  23832. $$1 = $$0$lcssa;
  23833. } else {
  23834. $$1 = $$0$lcssa;
  23835. }
  23836. } else {
  23837. HEAP32[$vararg_buffer1>>2] = $0;
  23838. _TraceLog(2,11516,$vararg_buffer1);
  23839. $$1 = 0;
  23840. }
  23841. (_fclose($4)|0);
  23842. $$2 = $$1;
  23843. STACKTOP = sp;return ($$2|0);
  23844. }
  23845. function _LoadImagePro($0,$1,$2,$3,$4) {
  23846. $0 = $0|0;
  23847. $1 = $1|0;
  23848. $2 = $2|0;
  23849. $3 = $3|0;
  23850. $4 = $4|0;
  23851. var $$byval_copy = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  23852. sp = STACKTOP;
  23853. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  23854. $$byval_copy = sp + 20|0;
  23855. $5 = sp;
  23856. HEAP32[$5>>2] = $1;
  23857. $6 = ((($5)) + 4|0);
  23858. HEAP32[$6>>2] = $2;
  23859. $7 = ((($5)) + 8|0);
  23860. HEAP32[$7>>2] = $3;
  23861. $8 = ((($5)) + 12|0);
  23862. HEAP32[$8>>2] = 1;
  23863. $9 = ((($5)) + 16|0);
  23864. HEAP32[$9>>2] = $4;
  23865. ;HEAP32[$$byval_copy>>2]=HEAP32[$5>>2]|0;HEAP32[$$byval_copy+4>>2]=HEAP32[$5+4>>2]|0;HEAP32[$$byval_copy+8>>2]=HEAP32[$5+8>>2]|0;HEAP32[$$byval_copy+12>>2]=HEAP32[$5+12>>2]|0;HEAP32[$$byval_copy+16>>2]=HEAP32[$5+16>>2]|0;
  23866. _ImageCopy($0,$$byval_copy);
  23867. STACKTOP = sp;return;
  23868. }
  23869. function _UnloadResource($0) {
  23870. $0 = $0|0;
  23871. var $1 = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  23872. sp = STACKTOP;
  23873. $1 = ((($0)) + 20|0);
  23874. $2 = HEAP32[$1>>2]|0;
  23875. $3 = ($2|0)==(0|0);
  23876. if ($3) {
  23877. return;
  23878. }
  23879. _free($2);
  23880. return;
  23881. }
  23882. function _ImageCopy($0,$1) {
  23883. $0 = $0|0;
  23884. $1 = $1|0;
  23885. var $$0 = 0, $$sroa$6$0 = 0, $$sroa$6$0$$sroa_idx10 = 0, $$sroa$7$0 = 0, $$sroa$7$0$$sroa_idx12 = 0, $$sroa$8$0 = 0, $$sroa$8$0$$sroa_idx14 = 0, $$sroa$9$0 = 0, $$sroa$9$0$$sroa_idx16 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0;
  23886. var $20 = 0, $21 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  23887. sp = STACKTOP;
  23888. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  23889. $vararg_buffer = sp;
  23890. $2 = ((($1)) + 4|0);
  23891. $3 = HEAP32[$2>>2]|0;
  23892. $4 = ((($1)) + 8|0);
  23893. $5 = HEAP32[$4>>2]|0;
  23894. $6 = Math_imul($5, $3)|0;
  23895. $7 = ((($1)) + 16|0);
  23896. $8 = HEAP32[$7>>2]|0;
  23897. switch ($8|0) {
  23898. case 17: case 14: case 11: case 10: case 1: {
  23899. $$0 = $6;
  23900. break;
  23901. }
  23902. case 6: case 5: case 3: case 2: {
  23903. $9 = $6 << 1;
  23904. $$0 = $9;
  23905. break;
  23906. }
  23907. case 4: {
  23908. $10 = ($6*3)|0;
  23909. $$0 = $10;
  23910. break;
  23911. }
  23912. case 7: {
  23913. $11 = $6 << 2;
  23914. $$0 = $11;
  23915. break;
  23916. }
  23917. case 16: case 15: case 13: case 12: case 9: case 8: {
  23918. $12 = (($6|0) / 2)&-1;
  23919. $$0 = $12;
  23920. break;
  23921. }
  23922. case 18: {
  23923. $13 = (($6|0) / 4)&-1;
  23924. $$0 = $13;
  23925. break;
  23926. }
  23927. default: {
  23928. _TraceLog(2,11434,$vararg_buffer);
  23929. $$0 = $6;
  23930. }
  23931. }
  23932. $14 = (_malloc($$0)|0);
  23933. $15 = ($14|0)==(0|0);
  23934. if ($15) {
  23935. $$sroa$6$0 = 0;$$sroa$7$0 = 0;$$sroa$8$0 = 0;$$sroa$9$0 = 0;
  23936. } else {
  23937. $16 = HEAP32[$1>>2]|0;
  23938. _memcpy(($14|0),($16|0),($$0|0))|0;
  23939. $17 = HEAP32[$2>>2]|0;
  23940. $18 = HEAP32[$4>>2]|0;
  23941. $19 = ((($1)) + 12|0);
  23942. $20 = HEAP32[$19>>2]|0;
  23943. $21 = HEAP32[$7>>2]|0;
  23944. $$sroa$6$0 = $17;$$sroa$7$0 = $18;$$sroa$8$0 = $20;$$sroa$9$0 = $21;
  23945. }
  23946. HEAP32[$0>>2] = $14;
  23947. $$sroa$6$0$$sroa_idx10 = ((($0)) + 4|0);
  23948. HEAP32[$$sroa$6$0$$sroa_idx10>>2] = $$sroa$6$0;
  23949. $$sroa$7$0$$sroa_idx12 = ((($0)) + 8|0);
  23950. HEAP32[$$sroa$7$0$$sroa_idx12>>2] = $$sroa$7$0;
  23951. $$sroa$8$0$$sroa_idx14 = ((($0)) + 12|0);
  23952. HEAP32[$$sroa$8$0$$sroa_idx14>>2] = $$sroa$8$0;
  23953. $$sroa$9$0$$sroa_idx16 = ((($0)) + 16|0);
  23954. HEAP32[$$sroa$9$0$$sroa_idx16>>2] = $$sroa$9$0;
  23955. STACKTOP = sp;return;
  23956. }
  23957. function _DecompressData($0,$1,$2) {
  23958. $0 = $0|0;
  23959. $1 = $1|0;
  23960. $2 = $2|0;
  23961. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, $vararg_buffer10 = 0, $vararg_buffer3 = 0, $vararg_buffer5 = 0, $vararg_buffer7 = 0, $vararg_ptr13 = 0, label = 0, sp = 0;
  23962. sp = STACKTOP;
  23963. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  23964. $vararg_buffer10 = sp + 40|0;
  23965. $vararg_buffer7 = sp + 32|0;
  23966. $vararg_buffer5 = sp + 24|0;
  23967. $vararg_buffer3 = sp + 16|0;
  23968. $vararg_buffer1 = sp + 8|0;
  23969. $vararg_buffer = sp;
  23970. $3 = (_malloc($2)|0);
  23971. $4 = ($3|0)==(0|0);
  23972. if ($4) {
  23973. _TraceLog(2,11658,$vararg_buffer);
  23974. STACKTOP = sp;return ($3|0);
  23975. }
  23976. $5 = (_tinfl_decompress_mem_to_mem($3,$2,$0,$1,1)|0);
  23977. $6 = ($5|0)==(-1);
  23978. if ($6) {
  23979. _TraceLog(2,11697,$vararg_buffer1);
  23980. _free($3);
  23981. }
  23982. $7 = ($5|0)==($2|0);
  23983. if (!($7)) {
  23984. _TraceLog(2,11723,$vararg_buffer3);
  23985. HEAP32[$vararg_buffer5>>2] = $2;
  23986. _TraceLog(2,11786,$vararg_buffer5);
  23987. HEAP32[$vararg_buffer7>>2] = $5;
  23988. _TraceLog(2,11821,$vararg_buffer7);
  23989. }
  23990. HEAP32[$vararg_buffer10>>2] = $1;
  23991. $vararg_ptr13 = ((($vararg_buffer10)) + 4|0);
  23992. HEAP32[$vararg_ptr13>>2] = $5;
  23993. _TraceLog(0,11856,$vararg_buffer10);
  23994. STACKTOP = sp;return ($3|0);
  23995. }
  23996. function _tinfl_decompress_mem_to_mem($0,$1,$2,$3,$4) {
  23997. $0 = $0|0;
  23998. $1 = $1|0;
  23999. $2 = $2|0;
  24000. $3 = $3|0;
  24001. $4 = $4|0;
  24002. var $10 = 0, $11 = 0, $12 = 0, $13 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  24003. sp = STACKTOP;
  24004. STACKTOP = STACKTOP + 11008|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(11008|0);
  24005. $5 = sp + 11000|0;
  24006. $6 = sp;
  24007. $7 = sp + 8|0;
  24008. HEAP32[$5>>2] = $1;
  24009. HEAP32[$6>>2] = $3;
  24010. HEAP32[$7>>2] = 0;
  24011. $8 = $4 & -7;
  24012. $9 = $8 | 4;
  24013. $10 = (_tinfl_decompress($7,$2,$6,$0,$0,$5,$9)|0);
  24014. $11 = ($10|0)!=(0);
  24015. $12 = HEAP32[$5>>2]|0;
  24016. $13 = $11 ? -1 : $12;
  24017. STACKTOP = sp;return ($13|0);
  24018. }
  24019. function _tinfl_decompress($0,$1,$2,$3,$4,$5,$6) {
  24020. $0 = $0|0;
  24021. $1 = $1|0;
  24022. $2 = $2|0;
  24023. $3 = $3|0;
  24024. $4 = $4|0;
  24025. $5 = $5|0;
  24026. $6 = $6|0;
  24027. var $$ = 0, $$$301127 = 0, $$010861840 = 0, $$010871839 = 0, $$010881838 = 0, $$010911856 = 0, $$010941846 = 0, $$010951864 = 0, $$01097 = 0, $$01194 = 0, $$011971855 = 0, $$01202 = 0, $$01202$shrunk = 0, $$01203 = 0, $$01300 = 0, $$01300$shrunk = 0, $$01309 = 0, $$01410 = 0, $$01410$shrunk = 0, $$01411 = 0;
  24028. var $$01411$shrunk = 0, $$01412 = 0, $$01413 = 0, $$01413$shrunk = 0, $$01416 = 0, $$01507 = 0, $$01607 = 0, $$01834 = 0, $$0937$lcssa = 0, $$09371833 = 0, $$0938$lcssa = 0, $$09381832 = 0, $$0941$lcssa = 0, $$09411816 = 0, $$09431831 = 0, $$09441830 = 0, $$0947 = 0, $$0947$shrunk = 0, $$0948 = 0, $$0949 = 0;
  24029. var $$0950 = 0, $$0950$shrunk = 0, $$0951 = 0, $$0952 = 0, $$0952$shrunk = 0, $$0953 = 0, $$0956 = 0, $$0959 = 0, $$0959$shrunk = 0, $$0960 = 0, $$0963 = 0, $$0967 = 0, $$0971 = 0, $$0971$shrunk = 0, $$0972 = 0, $$0975 = 0, $$0978 = 0, $$0979 = 0, $$0979$shrunk = 0, $$0980 = 0;
  24030. var $$0980$shrunk = 0, $$0981 = 0, $$0984 = 0, $$0987 = 0, $$0991 = 0, $$1$lcssa = 0, $$100 = 0, $$1001409 = 0, $$101426 = 0, $$101617 = 0, $$110891852 = 0, $$11098 = 0, $$11098$ph = 0, $$111427 = 0, $$111518 = 0, $$111618 = 0, $$11198 = 0, $$11204 = 0, $$11204$ph = 0, $$11310 = 0;
  24031. var $$11310$ph = 0, $$11417 = 0, $$11508 = 0, $$11608 = 0, $$11818 = 0, $$121428 = 0, $$121428$ph = 0, $$121519 = 0, $$121619 = 0, $$121619$ph = 0, $$13 = 0, $$131004 = 0, $$131110 = 0, $$131216 = 0, $$131322 = 0, $$131429 = 0, $$131520 = 0, $$131620 = 0, $$14 = 0, $$141005 = 0;
  24032. var $$141111 = 0, $$141217 = 0, $$141323 = 0, $$141430 = 0, $$141521 = 0, $$141621 = 0, $$15 = 0, $$151006 = 0, $$151112 = 0, $$151218 = 0, $$151324 = 0, $$151431 = 0, $$151522 = 0, $$151622 = 0, $$16 = 0, $$161007 = 0, $$161113 = 0, $$161113$ph = 0, $$161219 = 0, $$161325 = 0;
  24033. var $$161432 = 0, $$161523 = 0, $$161623 = 0, $$17 = 0, $$17$ph = 0, $$171008 = 0, $$171008$ph = 0, $$171114 = 0, $$171220 = 0, $$171220$ph = 0, $$171326 = 0, $$171326$ph = 0, $$171433 = 0, $$171524 = 0, $$171624 = 0, $$1753 = 0, $$1754 = 0, $$18 = 0, $$181009 = 0, $$181115 = 0;
  24034. var $$181221 = 0, $$181327 = 0, $$181434 = 0, $$181525 = 0, $$181625 = 0, $$19 = 0, $$191010 = 0, $$191116 = 0, $$191222 = 0, $$191328 = 0, $$191435 = 0, $$191526 = 0, $$191626 = 0, $$1939$lcssa = 0, $$19391817 = 0, $$19421823 = 0, $$1945$lcssa = 0, $$19451815 = 0, $$1954 = 0, $$1957 = 0;
  24035. var $$1961 = 0, $$1961$ = 0, $$1964 = 0, $$1968 = 0, $$1973 = 0, $$1976 = 0, $$1982 = 0, $$1985 = 0, $$1988 = 0, $$1988$ph = 0, $$1992 = 0, $$1992$ph = 0, $$2$lcssa = 0, $$20 = 0, $$201011 = 0, $$201117 = 0, $$201223 = 0, $$201329 = 0, $$201436 = 0, $$201527 = 0;
  24036. var $$201627 = 0, $$21 = 0, $$21099 = 0, $$211012 = 0, $$211118 = 0, $$211224 = 0, $$211330 = 0, $$211437 = 0, $$211437$ph = 0, $$211528 = 0, $$211628 = 0, $$211628$ph = 0, $$21196 = 0, $$21199$lcssa = 0, $$211991845 = 0, $$21205 = 0, $$21311 = 0, $$21418 = 0, $$21509 = 0, $$21609 = 0;
  24037. var $$21825 = 0, $$22 = 0, $$221013 = 0, $$221119 = 0, $$221225 = 0, $$221331 = 0, $$221438 = 0, $$221529 = 0, $$221629 = 0, $$23 = 0, $$231014 = 0, $$231120 = 0, $$231226 = 0, $$231332 = 0, $$231439 = 0, $$231530 = 0, $$231630 = 0, $$24 = 0, $$241015 = 0, $$241121 = 0;
  24038. var $$241227 = 0, $$241333 = 0, $$241440 = 0, $$241531 = 0, $$241631 = 0, $$25 = 0, $$251016 = 0, $$251122 = 0, $$251122$ph = 0, $$251228 = 0, $$251334 = 0, $$251441 = 0, $$251532 = 0, $$251632 = 0, $$26 = 0, $$26$ph = 0, $$261017 = 0, $$261017$ph = 0, $$261123 = 0, $$261229 = 0;
  24039. var $$261229$ph = 0, $$261335 = 0, $$261335$ph = 0, $$261442 = 0, $$261533 = 0, $$261633 = 0, $$27 = 0, $$271018 = 0, $$271124 = 0, $$271230 = 0, $$271336 = 0, $$271443 = 0, $$271534 = 0, $$271634 = 0, $$28 = 0, $$281019 = 0, $$281125 = 0, $$281231 = 0, $$281337 = 0, $$281444 = 0;
  24040. var $$281535 = 0, $$281635 = 0, $$29 = 0, $$291020 = 0, $$291126 = 0, $$291232 = 0, $$291338 = 0, $$291445 = 0, $$291536 = 0, $$291636 = 0, $$2940$lcssa = 0, $$29401824 = 0, $$2946$lcssa = 0, $$29461822 = 0, $$2955 = 0, $$2958 = 0, $$2965 = 0, $$2969 = 0, $$2974 = 0, $$2977 = 0;
  24041. var $$2983 = 0, $$2986 = 0, $$2989 = 0, $$2993 = 0, $$30 = 0, $$301021 = 0, $$301127 = 0, $$301233 = 0, $$301339 = 0, $$301446 = 0, $$301537 = 0, $$301637 = 0, $$31 = 0, $$31100$v = 0, $$311022 = 0, $$311128 = 0, $$311234 = 0, $$311340 = 0, $$311447 = 0, $$311538 = 0;
  24042. var $$311638 = 0, $$31200 = 0, $$31206 = 0, $$31206$ph = 0, $$31312 = 0, $$31312$ph = 0, $$31419 = 0, $$31419$ph = 0, $$31610 = 0, $$31610$ph = 0, $$32 = 0, $$321023 = 0, $$321129 = 0, $$321235 = 0, $$321341 = 0, $$321448 = 0, $$321448$ph = 0, $$321539 = 0, $$321639 = 0, $$321639$ph = 0;
  24043. var $$33 = 0, $$331024 = 0, $$331130 = 0, $$331236 = 0, $$331342 = 0, $$331449 = 0, $$331540 = 0, $$331640 = 0, $$34 = 0, $$341025 = 0, $$341131 = 0, $$341237 = 0, $$341343 = 0, $$341450 = 0, $$341541 = 0, $$341641 = 0, $$35 = 0, $$351026 = 0, $$351132 = 0, $$351238 = 0;
  24044. var $$351344 = 0, $$351451 = 0, $$351542 = 0, $$351642 = 0, $$36 = 0, $$361027 = 0, $$361027$ph = 0, $$361133 = 0, $$361133$ph = 0, $$361239 = 0, $$361345 = 0, $$361452 = 0, $$361543 = 0, $$361643 = 0, $$37 = 0, $$37$ph = 0, $$371028 = 0, $$371134 = 0, $$371240 = 0, $$371240$ph = 0;
  24045. var $$371346 = 0, $$371346$ph = 0, $$371453 = 0, $$371453$ph = 0, $$371544 = 0, $$371644 = 0, $$371644$ph = 0, $$38 = 0, $$381029 = 0, $$381135 = 0, $$381241 = 0, $$381347 = 0, $$381454 = 0, $$381545 = 0, $$381645 = 0, $$39 = 0, $$391030 = 0, $$391136 = 0, $$391242 = 0, $$391348 = 0;
  24046. var $$391455 = 0, $$391546 = 0, $$391646 = 0, $$3966 = 0, $$3970 = 0, $$3990 = 0, $$3990$ph = 0, $$3994 = 0, $$3994$ph = 0, $$40 = 0, $$401031 = 0, $$401137 = 0, $$401243 = 0, $$401349 = 0, $$401456 = 0, $$401547 = 0, $$401647 = 0, $$41 = 0, $$411032 = 0, $$411032$ph = 0;
  24047. var $$411138 = 0, $$411138$ph = 0, $$411244 = 0, $$411350 = 0, $$411457 = 0, $$411548 = 0, $$411648 = 0, $$41201 = 0, $$41420 = 0, $$41511 = 0, $$41611 = 0, $$42 = 0, $$42$ph = 0, $$421033 = 0, $$421139 = 0, $$421245 = 0, $$421245$ph = 0, $$421351 = 0, $$421351$ph = 0, $$421458 = 0;
  24048. var $$421549 = 0, $$421649 = 0, $$43 = 0, $$431034 = 0, $$431140 = 0, $$431246 = 0, $$431352 = 0, $$431459 = 0, $$431550 = 0, $$431650 = 0, $$44 = 0, $$441035 = 0, $$441141 = 0, $$441247 = 0, $$441353 = 0, $$441460 = 0, $$441460$ph = 0, $$441551 = 0, $$441651 = 0, $$441651$ph = 0;
  24049. var $$45 = 0, $$451036 = 0, $$451142 = 0, $$451248 = 0, $$451354 = 0, $$451461 = 0, $$451552 = 0, $$451652 = 0, $$46 = 0, $$461037 = 0, $$461143 = 0, $$461249 = 0, $$461355 = 0, $$461462 = 0, $$461553 = 0, $$461653 = 0, $$47 = 0, $$471038 = 0, $$471144 = 0, $$471250 = 0;
  24050. var $$471356 = 0, $$471463 = 0, $$471554 = 0, $$471654 = 0, $$48 = 0, $$481039 = 0, $$481039$ph = 0, $$481145 = 0, $$481145$ph = 0, $$481251 = 0, $$481357 = 0, $$481464 = 0, $$481555 = 0, $$481655 = 0, $$49 = 0, $$49$ph = 0, $$491040 = 0, $$491146 = 0, $$491252 = 0, $$491252$ph = 0;
  24051. var $$491358 = 0, $$491358$ph = 0, $$491465 = 0, $$491465$ph = 0, $$491556 = 0, $$491656 = 0, $$491656$ph = 0, $$5 = 0, $$50 = 0, $$501041 = 0, $$501147 = 0, $$501253 = 0, $$501359 = 0, $$501466 = 0, $$501557 = 0, $$501657 = 0, $$51 = 0, $$51102 = 0, $$511042 = 0, $$511148 = 0;
  24052. var $$511254 = 0, $$511360 = 0, $$511467 = 0, $$511558 = 0, $$511658 = 0, $$51208 = 0, $$51314 = 0, $$51512 = 0, $$52 = 0, $$521043 = 0, $$521043$ph = 0, $$521149 = 0, $$521255 = 0, $$521361 = 0, $$521468 = 0, $$521559 = 0, $$521659 = 0, $$53 = 0, $$531044 = 0, $$531150 = 0;
  24053. var $$531150$ph = 0, $$531256 = 0, $$531362 = 0, $$531469 = 0, $$531560 = 0, $$531660 = 0, $$54 = 0, $$54$ph = 0, $$541045 = 0, $$541151 = 0, $$541257 = 0, $$541257$ph = 0, $$541363 = 0, $$541363$ph = 0, $$541470$ph = 0, $$541561 = 0, $$541661$lcssa = 0, $$541661$ph = 0, $$5416611868 = 0, $$55 = 0;
  24054. var $$551046 = 0, $$551152 = 0, $$551258 = 0, $$551364 = 0, $$551471 = 0, $$551562 = 0, $$551662 = 0, $$56 = 0, $$561047 = 0, $$561153 = 0, $$561259 = 0, $$561365 = 0, $$561472 = 0, $$561563 = 0, $$561663 = 0, $$57 = 0, $$571048$ph = 0, $$571154 = 0, $$571260 = 0, $$571366 = 0;
  24055. var $$571473 = 0, $$571473$ph = 0, $$571564 = 0, $$571664 = 0, $$571664$ph = 0, $$58 = 0, $$581049 = 0, $$581155$lcssa = 0, $$581155$ph = 0, $$5811551871 = 0, $$581261 = 0, $$581367 = 0, $$581474 = 0, $$581565$lcssa = 0, $$581565$ph = 0, $$5815651869 = 0, $$581665 = 0, $$59$lcssa = 0, $$59$ph = 0, $$591050 = 0;
  24056. var $$591156 = 0, $$591262$ph = 0, $$591368$lcssa = 0, $$591368$ph = 0, $$5913681870 = 0, $$591475 = 0, $$591566 = 0, $$591666 = 0, $$591872 = 0, $$5996 = 0, $$6 = 0, $$60 = 0, $$601051 = 0, $$601051$ph = 0, $$601157 = 0, $$601263 = 0, $$601369 = 0, $$601476 = 0, $$601567 = 0, $$61 = 0;
  24057. var $$61103 = 0, $$611052 = 0, $$611158 = 0, $$611158$ph = 0, $$611264 = 0, $$611370 = 0, $$611477 = 0, $$611568 = 0, $$611668 = 0, $$61209 = 0, $$61315 = 0, $$61513 = 0, $$62 = 0, $$62$ph = 0, $$621053 = 0, $$621159 = 0, $$621265 = 0, $$621265$ph = 0, $$621371 = 0, $$621371$ph = 0;
  24058. var $$621478 = 0, $$621569 = 0, $$621669 = 0, $$63 = 0, $$631054 = 0, $$631266 = 0, $$631372 = 0, $$631479 = 0, $$631479$ph = 0, $$631570 = 0, $$631670 = 0, $$64 = 0, $$641055 = 0, $$641161 = 0, $$641267 = 0, $$641373 = 0, $$641480 = 0, $$641571 = 0, $$641671 = 0, $$641671$ph = 0;
  24059. var $$65 = 0, $$651056 = 0, $$651162 = 0, $$651268 = 0, $$651374 = 0, $$651481 = 0, $$651572 = 0, $$651672 = 0, $$66 = 0, $$661057 = 0, $$661057$ph = 0, $$661163 = 0, $$661269 = 0, $$661375 = 0, $$661482 = 0, $$661673 = 0, $$671058 = 0, $$671164 = 0, $$671164$ph = 0, $$671270 = 0;
  24060. var $$671483 = 0, $$671574 = 0, $$671674 = 0, $$68 = 0, $$681059 = 0, $$681165 = 0, $$681271 = 0, $$681271$ph = 0, $$681377 = 0, $$681484 = 0, $$681484$ph = 0, $$681575 = 0, $$681675 = 0, $$69 = 0, $$691060 = 0, $$691166 = 0, $$691272 = 0, $$691378 = 0, $$691485 = 0, $$691576 = 0;
  24061. var $$691676 = 0, $$691676$ph = 0, $$6997 = 0, $$7 = 0, $$70 = 0, $$701061 = 0, $$701167 = 0, $$701273 = 0, $$701379 = 0, $$701486 = 0, $$701577 = 0, $$701677 = 0, $$71 = 0, $$71$ph = 0, $$71104 = 0, $$711062 = 0, $$711062$ph = 0, $$711168 = 0, $$711274 = 0, $$711380 = 0;
  24062. var $$711380$ph = 0, $$711487 = 0, $$711578 = 0, $$711678 = 0, $$71210 = 0, $$71316 = 0, $$71514 = 0, $$72 = 0, $$721063 = 0, $$721169 = 0, $$721169$ph = 0, $$721275 = 0, $$721381 = 0, $$721488 = 0, $$721488$ph = 0, $$721579 = 0, $$721679 = 0, $$73 = 0, $$731064 = 0, $$731170 = 0;
  24063. var $$731276 = 0, $$731276$ph = 0, $$731382 = 0, $$731489 = 0, $$731580 = 0, $$731680 = 0, $$731680$ph = 0, $$74 = 0, $$741065 = 0, $$741065$ph = 0, $$741171 = 0, $$741277 = 0, $$741383 = 0, $$741490 = 0, $$741581 = 0, $$741681 = 0, $$75 = 0, $$751066 = 0, $$751172 = 0, $$751278 = 0;
  24064. var $$751384 = 0, $$751491 = 0, $$751582 = 0, $$751682 = 0, $$76 = 0, $$76$ph = 0, $$761067 = 0, $$761173 = 0, $$761173$ph = 0, $$761279 = 0, $$761279$ph = 0, $$761385 = 0, $$761385$ph = 0, $$761492 = 0, $$761583 = 0, $$761683 = 0, $$77 = 0, $$771068 = 0, $$771174 = 0, $$771280 = 0;
  24065. var $$771386 = 0, $$771584 = 0, $$771684 = 0, $$78 = 0, $$781069 = 0, $$781175 = 0, $$781281 = 0, $$781387 = 0, $$781585 = 0, $$781685 = 0, $$79 = 0, $$791070 = 0, $$791176 = 0, $$791282 = 0, $$791388 = 0, $$791586 = 0, $$791686 = 0, $$7998 = 0, $$8 = 0, $$8$ph = 0;
  24066. var $$80 = 0, $$80$ph = 0, $$801071 = 0, $$801177 = 0, $$801283 = 0, $$801389 = 0, $$801389$ph = 0, $$801496 = 0, $$801587 = 0, $$801687 = 0, $$81 = 0, $$81105 = 0, $$81105$ph = 0, $$811178 = 0, $$811284 = 0, $$811390 = 0, $$811497 = 0, $$811588 = 0, $$81211 = 0, $$81211$ph = 0;
  24067. var $$81317 = 0, $$81317$ph = 0, $$81424 = 0, $$81515 = 0, $$81615 = 0, $$82 = 0, $$821179 = 0, $$821285 = 0, $$821391 = 0, $$821498 = 0, $$821589 = 0, $$83 = 0, $$831180 = 0, $$831392 = 0, $$831499 = 0, $$831590 = 0, $$84 = 0, $$841075 = 0, $$841393 = 0, $$841500 = 0;
  24068. var $$841500$ph = 0, $$841591 = 0, $$841691 = 0, $$85 = 0, $$851076 = 0, $$851394 = 0, $$851501 = 0, $$851592 = 0, $$851692 = 0, $$86 = 0, $$861077 = 0, $$861289 = 0, $$861395 = 0, $$861502 = 0, $$861693 = 0, $$871078 = 0, $$871184 = 0, $$871290 = 0, $$871503 = 0, $$871694 = 0;
  24069. var $$881079 = 0, $$881079$ph = 0, $$881185 = 0, $$881291 = 0, $$881504 = 0, $$881595 = 0, $$881695 = 0, $$881695$ph = 0, $$891080 = 0, $$891186 = 0, $$891292 = 0, $$891505 = 0, $$891596 = 0, $$891696 = 0, $$8999 = 0, $$8999$ph = 0, $$9 = 0, $$90 = 0, $$901081 = 0, $$901187 = 0;
  24070. var $$901187$ph = 0, $$901293 = 0, $$901293$ph = 0, $$901399 = 0, $$901506 = 0, $$901597 = 0, $$901697 = 0, $$91 = 0, $$91000 = 0, $$91106 = 0, $$911082 = 0, $$911188 = 0, $$911294 = 0, $$911400 = 0, $$911598 = 0, $$911698 = 0, $$91212 = 0, $$91318 = 0, $$91425 = 0, $$91616 = 0;
  24071. var $$92 = 0, $$921083 = 0, $$921189 = 0, $$921295 = 0, $$921401 = 0, $$921599 = 0, $$921699 = 0, $$93 = 0, $$931084 = 0, $$931190 = 0, $$931296 = 0, $$931402 = 0, $$931600 = 0, $$931700 = 0, $$94 = 0, $$94$ph = 0, $$941085 = 0, $$941191 = 0, $$941297 = 0, $$941403 = 0;
  24072. var $$941403$ph = 0, $$941601 = 0, $$941701 = 0, $$95 = 0, $$951192 = 0, $$951298 = 0, $$951404 = 0, $$951602 = 0, $$96 = 0, $$961193 = 0, $$961299 = 0, $$961405 = 0, $$961603 = 0, $$97 = 0, $$971406 = 0, $$971604 = 0, $$98 = 0, $$981407 = 0, $$981605 = 0, $$99 = 0;
  24073. var $$991408 = 0, $$991606 = 0, $$lcssa1778 = 0, $$lcssa1779 = 0, $$lcssa1799 = 0, $$lcssa1802 = 0, $$not = 0, $$not1747 = 0, $$sink12 = 0, $$sink13 = 0, $$sink16 = 0, $$sink17 = 0, $$sink1705 = 0, $$sink1710 = 0, $$sink1713 = 0, $$sink1716 = 0, $$sink1719 = 0, $$sink1722 = 0, $$sink1729 = 0, $$sink1732 = 0;
  24074. var $$sink1736 = 0, $$sink1739 = 0, $$sink1743 = 0, $$sink1746 = 0, $$sink1750 = 0, $$sink3 = 0, $$sink3$shrunk = 0, $$sink30 = 0, $$sink9 = 0, $$sink9$shrunk = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0;
  24075. var $109 = 0, $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0, $114 = 0, $115 = 0, $116 = 0, $117 = 0, $118 = 0, $119 = 0, $12 = 0, $120 = 0, $121 = 0, $122 = 0, $123 = 0, $124 = 0, $125 = 0, $126 = 0;
  24076. var $127 = 0, $128 = 0, $129 = 0, $13 = 0, $130 = 0, $131 = 0, $132 = 0, $133 = 0, $134 = 0, $135 = 0, $136 = 0, $137 = 0, $138 = 0, $139 = 0, $14 = 0, $140 = 0, $141 = 0, $142 = 0, $143 = 0, $144 = 0;
  24077. var $145 = 0, $146 = 0, $147 = 0, $148 = 0, $149 = 0, $15 = 0, $150 = 0, $151 = 0, $152 = 0, $153 = 0, $154 = 0, $155 = 0, $156 = 0, $157 = 0, $158 = 0, $159 = 0, $16 = 0, $160 = 0, $161 = 0, $162 = 0;
  24078. var $163 = 0, $164 = 0, $165 = 0, $166 = 0, $167 = 0, $168 = 0, $169 = 0, $17 = 0, $170 = 0, $171 = 0, $172 = 0, $173 = 0, $174 = 0, $175 = 0, $176 = 0, $177 = 0, $178 = 0, $179 = 0, $18 = 0, $180 = 0;
  24079. var $181 = 0, $182 = 0, $183 = 0, $184 = 0, $185 = 0, $186 = 0, $187 = 0, $188 = 0, $189 = 0, $19 = 0, $190 = 0, $191 = 0, $192 = 0, $193 = 0, $194 = 0, $195 = 0, $196 = 0, $197 = 0, $198 = 0, $199 = 0;
  24080. var $20 = 0, $200 = 0, $201 = 0, $202 = 0, $203 = 0, $204 = 0, $205 = 0, $206 = 0, $207 = 0, $208 = 0, $209 = 0, $21 = 0, $210 = 0, $211 = 0, $212 = 0, $213 = 0, $214 = 0, $215 = 0, $216 = 0, $217 = 0;
  24081. var $218 = 0, $219 = 0, $22 = 0, $220 = 0, $221 = 0, $222 = 0, $223 = 0, $224 = 0, $225 = 0, $226 = 0, $227 = 0, $228 = 0, $229 = 0, $23 = 0, $230 = 0, $231 = 0, $232 = 0, $233 = 0, $234 = 0, $235 = 0;
  24082. var $236 = 0, $237 = 0, $238 = 0, $239 = 0, $24 = 0, $240 = 0, $241 = 0, $242 = 0, $243 = 0, $244 = 0, $245 = 0, $246 = 0, $247 = 0, $248 = 0, $249 = 0, $25 = 0, $250 = 0, $251 = 0, $252 = 0, $253 = 0;
  24083. var $254 = 0, $255 = 0, $256 = 0, $257 = 0, $258 = 0, $259 = 0, $26 = 0, $260 = 0, $261 = 0, $262 = 0, $263 = 0, $264 = 0, $265 = 0, $266 = 0, $267 = 0, $268 = 0, $269 = 0, $27 = 0, $270 = 0, $271 = 0;
  24084. var $272 = 0, $273 = 0, $274 = 0, $275 = 0, $276 = 0, $277 = 0, $278 = 0, $279 = 0, $28 = 0, $280 = 0, $281 = 0, $282 = 0, $283 = 0, $284 = 0, $285 = 0, $286 = 0, $287 = 0, $288 = 0, $289 = 0, $29 = 0;
  24085. var $290 = 0, $291 = 0, $292 = 0, $293 = 0, $294 = 0, $295 = 0, $296 = 0, $297 = 0, $298 = 0, $299 = 0, $30 = 0, $300 = 0, $301 = 0, $302 = 0, $303 = 0, $304 = 0, $305 = 0, $306 = 0, $307 = 0, $308 = 0;
  24086. var $309 = 0, $31 = 0, $310 = 0, $311 = 0, $312 = 0, $313 = 0, $314 = 0, $315 = 0, $316 = 0, $317 = 0, $318 = 0, $319 = 0, $32 = 0, $320 = 0, $321 = 0, $322 = 0, $323 = 0, $324 = 0, $325 = 0, $326 = 0;
  24087. var $327 = 0, $328 = 0, $329 = 0, $33 = 0, $330 = 0, $331 = 0, $332 = 0, $333 = 0, $334 = 0, $335 = 0, $336 = 0, $337 = 0, $338 = 0, $339 = 0, $34 = 0, $340 = 0, $341 = 0, $342 = 0, $343 = 0, $344 = 0;
  24088. var $345 = 0, $346 = 0, $347 = 0, $348 = 0, $349 = 0, $35 = 0, $350 = 0, $351 = 0, $352 = 0, $353 = 0, $354 = 0, $355 = 0, $356 = 0, $357 = 0, $358 = 0, $359 = 0, $36 = 0, $360 = 0, $361 = 0, $362 = 0;
  24089. var $363 = 0, $364 = 0, $365 = 0, $366 = 0, $367 = 0, $368 = 0, $369 = 0, $37 = 0, $370 = 0, $371 = 0, $372 = 0, $373 = 0, $374 = 0, $375 = 0, $376 = 0, $377 = 0, $378 = 0, $379 = 0, $38 = 0, $380 = 0;
  24090. var $381 = 0, $382 = 0, $383 = 0, $384 = 0, $385 = 0, $386 = 0, $387 = 0, $388 = 0, $389 = 0, $39 = 0, $390 = 0, $391 = 0, $392 = 0, $393 = 0, $394 = 0, $395 = 0, $396 = 0, $397 = 0, $398 = 0, $399 = 0;
  24091. var $40 = 0, $400 = 0, $401 = 0, $402 = 0, $403 = 0, $404 = 0, $405 = 0, $406 = 0, $407 = 0, $408 = 0, $409 = 0, $41 = 0, $410 = 0, $411 = 0, $412 = 0, $413 = 0, $414 = 0, $415 = 0, $416 = 0, $417 = 0;
  24092. var $418 = 0, $419 = 0, $42 = 0, $420 = 0, $421 = 0, $422 = 0, $423 = 0, $424 = 0, $425 = 0, $426 = 0, $427 = 0, $428 = 0, $429 = 0, $43 = 0, $430 = 0, $431 = 0, $432 = 0, $433 = 0, $434 = 0, $435 = 0;
  24093. var $436 = 0, $437 = 0, $438 = 0, $439 = 0, $44 = 0, $440 = 0, $441 = 0, $442 = 0, $443 = 0, $444 = 0, $445 = 0, $446 = 0, $447 = 0, $448 = 0, $449 = 0, $45 = 0, $450 = 0, $451 = 0, $452 = 0, $453 = 0;
  24094. var $454 = 0, $455 = 0, $456 = 0, $457 = 0, $458 = 0, $459 = 0, $46 = 0, $460 = 0, $461 = 0, $462 = 0, $463 = 0, $464 = 0, $465 = 0, $466 = 0, $467 = 0, $468 = 0, $469 = 0, $47 = 0, $470 = 0, $471 = 0;
  24095. var $472 = 0, $473 = 0, $474 = 0, $475 = 0, $476 = 0, $477 = 0, $478 = 0, $479 = 0, $48 = 0, $480 = 0, $481 = 0, $482 = 0, $483 = 0, $484 = 0, $485 = 0, $486 = 0, $487 = 0, $488 = 0, $489 = 0, $49 = 0;
  24096. var $490 = 0, $491 = 0, $492 = 0, $493 = 0, $494 = 0, $495 = 0, $496 = 0, $497 = 0, $498 = 0, $499 = 0, $50 = 0, $500 = 0, $501 = 0, $502 = 0, $503 = 0, $504 = 0, $505 = 0, $506 = 0, $507 = 0, $508 = 0;
  24097. var $509 = 0, $51 = 0, $510 = 0, $511 = 0, $512 = 0, $513 = 0, $514 = 0, $515 = 0, $516 = 0, $517 = 0, $518 = 0, $519 = 0, $52 = 0, $520 = 0, $521 = 0, $522 = 0, $523 = 0, $524 = 0, $525 = 0, $526 = 0;
  24098. var $527 = 0, $528 = 0, $529 = 0, $53 = 0, $530 = 0, $531 = 0, $532 = 0, $533 = 0, $534 = 0, $535 = 0, $536 = 0, $537 = 0, $538 = 0, $539 = 0, $54 = 0, $540 = 0, $541 = 0, $542 = 0, $543 = 0, $544 = 0;
  24099. var $545 = 0, $546 = 0, $547 = 0, $548 = 0, $549 = 0, $55 = 0, $550 = 0, $551 = 0, $552 = 0, $553 = 0, $554 = 0, $555 = 0, $556 = 0, $557 = 0, $558 = 0, $559 = 0, $56 = 0, $560 = 0, $561 = 0, $562 = 0;
  24100. var $563 = 0, $564 = 0, $565 = 0, $566 = 0, $567 = 0, $568 = 0, $569 = 0, $57 = 0, $570 = 0, $571 = 0, $572 = 0, $573 = 0, $574 = 0, $575 = 0, $576 = 0, $577 = 0, $578 = 0, $579 = 0, $58 = 0, $580 = 0;
  24101. var $581 = 0, $582 = 0, $583 = 0, $584 = 0, $585 = 0, $586 = 0, $587 = 0, $588 = 0, $589 = 0, $59 = 0, $590 = 0, $591 = 0, $592 = 0, $593 = 0, $594 = 0, $595 = 0, $596 = 0, $597 = 0, $598 = 0, $599 = 0;
  24102. var $60 = 0, $600 = 0, $601 = 0, $602 = 0, $603 = 0, $604 = 0, $605 = 0, $606 = 0, $607 = 0, $608 = 0, $609 = 0, $61 = 0, $610 = 0, $611 = 0, $612 = 0, $613 = 0, $614 = 0, $615 = 0, $616 = 0, $617 = 0;
  24103. var $618 = 0, $619 = 0, $62 = 0, $620 = 0, $621 = 0, $622 = 0, $623 = 0, $624 = 0, $625 = 0, $626 = 0, $627 = 0, $628 = 0, $629 = 0, $63 = 0, $630 = 0, $631 = 0, $632 = 0, $633 = 0, $634 = 0, $635 = 0;
  24104. var $636 = 0, $637 = 0, $638 = 0, $639 = 0, $64 = 0, $640 = 0, $641 = 0, $642 = 0, $643 = 0, $644 = 0, $645 = 0, $646 = 0, $647 = 0, $648 = 0, $649 = 0, $65 = 0, $650 = 0, $651 = 0, $652 = 0, $653 = 0;
  24105. var $654 = 0, $655 = 0, $656 = 0, $657 = 0, $658 = 0, $659 = 0, $66 = 0, $660 = 0, $661 = 0, $662 = 0, $663 = 0, $664 = 0, $665 = 0, $666 = 0, $667 = 0, $668 = 0, $669 = 0, $67 = 0, $670 = 0, $671 = 0;
  24106. var $672 = 0, $673 = 0, $674 = 0, $675 = 0, $676 = 0, $677 = 0, $678 = 0, $679 = 0, $68 = 0, $680 = 0, $681 = 0, $682 = 0, $683 = 0, $684 = 0, $685 = 0, $686 = 0, $687 = 0, $688 = 0, $689 = 0, $69 = 0;
  24107. var $690 = 0, $691 = 0, $692 = 0, $693 = 0, $694 = 0, $695 = 0, $696 = 0, $697 = 0, $698 = 0, $699 = 0, $7 = 0, $70 = 0, $700 = 0, $701 = 0, $702 = 0, $703 = 0, $704 = 0, $705 = 0, $706 = 0, $707 = 0;
  24108. var $708 = 0, $709 = 0, $71 = 0, $710 = 0, $711 = 0, $712 = 0, $713 = 0, $714 = 0, $715 = 0, $716 = 0, $717 = 0, $718 = 0, $719 = 0, $72 = 0, $720 = 0, $721 = 0, $722 = 0, $723 = 0, $724 = 0, $725 = 0;
  24109. var $726 = 0, $727 = 0, $728 = 0, $729 = 0, $73 = 0, $730 = 0, $731 = 0, $732 = 0, $733 = 0, $734 = 0, $735 = 0, $736 = 0, $737 = 0, $738 = 0, $739 = 0, $74 = 0, $740 = 0, $741 = 0, $742 = 0, $743 = 0;
  24110. var $744 = 0, $745 = 0, $746 = 0, $747 = 0, $748 = 0, $749 = 0, $75 = 0, $750 = 0, $751 = 0, $752 = 0, $753 = 0, $754 = 0, $755 = 0, $756 = 0, $757 = 0, $758 = 0, $759 = 0, $76 = 0, $760 = 0, $761 = 0;
  24111. var $762 = 0, $763 = 0, $764 = 0, $765 = 0, $766 = 0, $767 = 0, $768 = 0, $769 = 0, $77 = 0, $770 = 0, $771 = 0, $772 = 0, $773 = 0, $774 = 0, $775 = 0, $776 = 0, $777 = 0, $778 = 0, $779 = 0, $78 = 0;
  24112. var $780 = 0, $781 = 0, $782 = 0, $783 = 0, $784 = 0, $785 = 0, $786 = 0, $787 = 0, $788 = 0, $789 = 0, $79 = 0, $790 = 0, $791 = 0, $792 = 0, $793 = 0, $794 = 0, $795 = 0, $796 = 0, $797 = 0, $798 = 0;
  24113. var $799 = 0, $8 = 0, $80 = 0, $800 = 0, $801 = 0, $802 = 0, $803 = 0, $804 = 0, $805 = 0, $806 = 0, $807 = 0, $808 = 0, $809 = 0, $81 = 0, $810 = 0, $811 = 0, $812 = 0, $813 = 0, $814 = 0, $815 = 0;
  24114. var $816 = 0, $817 = 0, $818 = 0, $819 = 0, $82 = 0, $820 = 0, $821 = 0, $822 = 0, $823 = 0, $824 = 0, $825 = 0, $826 = 0, $827 = 0, $828 = 0, $829 = 0, $83 = 0, $830 = 0, $831 = 0, $832 = 0, $833 = 0;
  24115. var $834 = 0, $835 = 0, $836 = 0, $837 = 0, $838 = 0, $839 = 0, $84 = 0, $840 = 0, $841 = 0, $842 = 0, $843 = 0, $844 = 0, $845 = 0, $846 = 0, $847 = 0, $848 = 0, $849 = 0, $85 = 0, $850 = 0, $851 = 0;
  24116. var $852 = 0, $853 = 0, $854 = 0, $855 = 0, $856 = 0, $857 = 0, $858 = 0, $859 = 0, $86 = 0, $860 = 0, $861 = 0, $862 = 0, $863 = 0, $864 = 0, $865 = 0, $866 = 0, $867 = 0, $868 = 0, $869 = 0, $87 = 0;
  24117. var $870 = 0, $871 = 0, $872 = 0, $873 = 0, $874 = 0, $875 = 0, $876 = 0, $877 = 0, $878 = 0, $879 = 0, $88 = 0, $880 = 0, $881 = 0, $882 = 0, $883 = 0, $884 = 0, $885 = 0, $886 = 0, $887 = 0, $888 = 0;
  24118. var $889 = 0, $89 = 0, $890 = 0, $891 = 0, $892 = 0, $893 = 0, $894 = 0, $895 = 0, $896 = 0, $897 = 0, $898 = 0, $899 = 0, $9 = 0, $90 = 0, $900 = 0, $901 = 0, $902 = 0, $903 = 0, $904 = 0, $905 = 0;
  24119. var $906 = 0, $907 = 0, $908 = 0, $909 = 0, $91 = 0, $910 = 0, $911 = 0, $912 = 0, $913 = 0, $914 = 0, $915 = 0, $916 = 0, $917 = 0, $918 = 0, $919 = 0, $92 = 0, $920 = 0, $921 = 0, $922 = 0, $923 = 0;
  24120. var $924 = 0, $925 = 0, $926 = 0, $927 = 0, $928 = 0, $929 = 0, $93 = 0, $930 = 0, $931 = 0, $932 = 0, $933 = 0, $934 = 0, $935 = 0, $936 = 0, $937 = 0, $938 = 0, $939 = 0, $94 = 0, $940 = 0, $941 = 0;
  24121. var $942 = 0, $943 = 0, $944 = 0, $945 = 0, $946 = 0, $947 = 0, $948 = 0, $949 = 0, $95 = 0, $950 = 0, $951 = 0, $952 = 0, $953 = 0, $954 = 0, $955 = 0, $956 = 0, $957 = 0, $958 = 0, $959 = 0, $96 = 0;
  24122. var $960 = 0, $961 = 0, $962 = 0, $963 = 0, $964 = 0, $965 = 0, $966 = 0, $97 = 0, $98 = 0, $99 = 0, $brmerge = 0, $exitcond = 0, $not$ = 0, $not$1755 = 0, $or$cond = 0, $or$cond1702 = 0, $or$cond1752 = 0, $or$cond24 = 0, $or$cond29 = 0, $scevgep = 0;
  24123. var $scevgep1947 = 0, $scevgep1948 = 0, $scevgep1955 = 0, $scevgep1957 = 0, $scevgep1959 = 0, $scevgep19611962 = 0, $trunc = 0, $trunc$clear = 0, dest = 0, label = 0, sp = 0, stop = 0;
  24124. sp = STACKTOP;
  24125. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  24126. $7 = sp + 64|0;
  24127. $8 = sp;
  24128. $9 = HEAP32[$2>>2]|0;
  24129. $10 = (($1) + ($9)|0);
  24130. $11 = HEAP32[$5>>2]|0;
  24131. $12 = (($4) + ($11)|0);
  24132. $13 = $6 & 4;
  24133. $14 = ($13|0)!=(0);
  24134. $15 = $4;
  24135. $16 = $3;
  24136. $17 = $16 ^ -1;
  24137. $18 = (($15) + ($17))|0;
  24138. $19 = (($18) + ($11))|0;
  24139. $$1753 = $14 ? -1 : $19;
  24140. $20 = (($$1753) + 1)|0;
  24141. $21 = $20 & $$1753;
  24142. $22 = ($21|0)!=(0);
  24143. $23 = ($4>>>0)<($3>>>0);
  24144. $or$cond1702 = $23 | $22;
  24145. if ($or$cond1702) {
  24146. HEAP32[$5>>2] = 0;
  24147. HEAP32[$2>>2] = 0;
  24148. $$0951 = -3;
  24149. STACKTOP = sp;return ($$0951|0);
  24150. }
  24151. $24 = ((($0)) + 4|0);
  24152. $25 = HEAP32[$24>>2]|0;
  24153. $26 = ((($0)) + 56|0);
  24154. $27 = HEAP32[$26>>2]|0;
  24155. $28 = ((($0)) + 32|0);
  24156. $29 = HEAP32[$28>>2]|0;
  24157. $30 = ((($0)) + 36|0);
  24158. $31 = HEAP32[$30>>2]|0;
  24159. $32 = ((($0)) + 40|0);
  24160. $33 = HEAP32[$32>>2]|0;
  24161. $34 = ((($0)) + 60|0);
  24162. $35 = HEAP32[$34>>2]|0;
  24163. $36 = HEAP32[$0>>2]|0;
  24164. L5: do {
  24165. switch ($36|0) {
  24166. case 0: {
  24167. $37 = ((($0)) + 12|0);
  24168. HEAP32[$37>>2] = 0;
  24169. $38 = ((($0)) + 8|0);
  24170. HEAP32[$38>>2] = 0;
  24171. $39 = ((($0)) + 28|0);
  24172. HEAP32[$39>>2] = 1;
  24173. $40 = ((($0)) + 16|0);
  24174. HEAP32[$40>>2] = 1;
  24175. $41 = $6 & 1;
  24176. $42 = ($41|0)==(0);
  24177. if ($42) {
  24178. $$01416 = $35;$$01607 = $4;$$41511 = $1;$$5 = 0;$$51102 = 0;$$51208 = 0;$$51314 = 0;$$5996 = 0;
  24179. label = 14;
  24180. } else {
  24181. $43 = ($9|0)<(1);
  24182. if ($43) {
  24183. $$01097 = 0;$$01203 = 0;$$01309 = 0;$$0987 = 0;$$0991 = 0;
  24184. label = 6;
  24185. } else {
  24186. $$11098$ph = 0;$$11204$ph = 0;$$11310$ph = 0;$$1988$ph = 0;$$1992$ph = 0;
  24187. label = 8;
  24188. }
  24189. }
  24190. break;
  24191. }
  24192. case 1: {
  24193. $46 = ($9|0)>(0);
  24194. if ($46) {
  24195. $$11098$ph = $31;$$11204$ph = $33;$$11310$ph = $27;$$1988$ph = $25;$$1992$ph = $29;
  24196. label = 8;
  24197. } else {
  24198. $$01097 = $31;$$01203 = $33;$$01309 = $27;$$0987 = $25;$$0991 = $29;
  24199. label = 6;
  24200. }
  24201. break;
  24202. }
  24203. case 2: {
  24204. $53 = ($9|0)>(0);
  24205. if ($53) {
  24206. $$31206$ph = $33;$$31312$ph = $27;$$3990$ph = $25;$$3994$ph = $29;$$sink1705 = $1;
  24207. label = 12;
  24208. } else {
  24209. $$11508 = $1;$$21099 = $31;$$21205 = $33;$$21311 = $27;$$2989 = $25;$$2993 = $29;
  24210. label = 10;
  24211. }
  24212. break;
  24213. }
  24214. case 36: {
  24215. $$0960 = -1;$$891505 = $35;$$931084 = $29;$$931700 = $4;$$951192 = $31;$$951298 = $33;$$981605 = $1;$$99 = $25;$$991408 = $27;$$sink30 = 36;
  24216. label = 243;
  24217. break;
  24218. }
  24219. case 3: {
  24220. $75 = ($9|0)>(0);
  24221. if ($75) {
  24222. $$31419$ph = $35;$$31610$ph = $4;$$8$ph = $25;$$81105$ph = $31;$$81211$ph = $33;$$81317$ph = $27;$$8999$ph = $29;$$sink1710 = $1;
  24223. label = 18;
  24224. } else {
  24225. $$21418 = $35;$$21609 = $4;$$61513 = $1;$$7 = $25;$$71104 = $31;$$71210 = $33;$$71316 = $27;$$7998 = $29;
  24226. label = 16;
  24227. }
  24228. break;
  24229. }
  24230. case 5: {
  24231. $90 = ($9|0)>(0);
  24232. if ($90) {
  24233. $91 = ((($1)) + 1|0);
  24234. $92 = HEAP8[$1>>0]|0;
  24235. $93 = $92&255;
  24236. $$01412 = $93;$$111518 = $91;
  24237. } else {
  24238. $88 = $6 & 2;
  24239. $89 = ($88|0)==(0);
  24240. if ($89) {
  24241. $$01412 = 0;$$111518 = $1;
  24242. } else {
  24243. $$0960 = 1;$$891505 = $35;$$931084 = $29;$$931700 = $4;$$951192 = $31;$$951298 = $33;$$981605 = $1;$$99 = $25;$$991408 = $27;$$sink30 = 5;
  24244. label = 243;
  24245. break L5;
  24246. }
  24247. }
  24248. $94 = $$01412 << $25;
  24249. $95 = $94 | $27;
  24250. $96 = (($25) + 8)|0;
  24251. $$121519 = $$111518;$$13 = $96;$$131004 = $29;$$131216 = $33;$$131322 = $95;$$81424 = $35;$$81615 = $4;
  24252. label = 25;
  24253. break;
  24254. }
  24255. case 6: {
  24256. $106 = ($9|0)>(0);
  24257. if ($106) {
  24258. $$121428$ph = $35;$$121619$ph = $4;$$161113$ph = $31;$$17$ph = $25;$$171008$ph = $29;$$171220$ph = $33;$$171326$ph = $27;$$sink1713 = $1;
  24259. label = 32;
  24260. } else {
  24261. $$111427 = $35;$$111618 = $4;$$151112 = $31;$$151522 = $1;$$16 = $25;$$161007 = $29;$$161219 = $33;$$161325 = $27;
  24262. label = 30;
  24263. }
  24264. break;
  24265. }
  24266. case 7: {
  24267. $120 = ($9|0)>(0);
  24268. if ($120) {
  24269. $121 = ((($1)) + 1|0);
  24270. $122 = HEAP8[$1>>0]|0;
  24271. $$151431 = $35;$$151622 = $4;$$191116 = $31;$$191526 = $121;$$20 = $25;$$201011 = $29;$$201223 = $33;$$201329 = $27;$$sink12 = $122;
  24272. label = 39;
  24273. } else {
  24274. $$141430 = $35;$$141621 = $4;$$181115 = $31;$$181525 = $1;$$19 = $25;$$191010 = $29;$$191222 = $33;$$191328 = $27;
  24275. label = 36;
  24276. }
  24277. break;
  24278. }
  24279. case 39: {
  24280. $$171433 = $35;$$171624 = $4;$$211118 = $31;$$211528 = $1;$$22 = $25;$$221013 = $29;$$221225 = $33;$$221331 = $27;
  24281. label = 43;
  24282. break;
  24283. }
  24284. case 51: {
  24285. $152 = ($9|0)>(0);
  24286. if ($152) {
  24287. $$211437$ph = $35;$$211628$ph = $4;$$251122$ph = $31;$$26$ph = $25;$$261017$ph = $29;$$261229$ph = $33;$$261335$ph = $27;$$sink1716 = $1;
  24288. label = 49;
  24289. } else {
  24290. $$201436 = $35;$$201627 = $4;$$241121 = $31;$$241531 = $1;$$25 = $25;$$251016 = $29;$$251228 = $33;$$251334 = $27;
  24291. label = 47;
  24292. }
  24293. break;
  24294. }
  24295. case 52: {
  24296. $$231439 = $35;$$231630 = $4;$$271018 = $29;$$271124 = $31;$$271534 = $1;$$28 = $25;$$281231 = $33;$$281337 = $27;
  24297. label = 52;
  24298. break;
  24299. }
  24300. case 9: {
  24301. $$251441 = $35;$$251632 = $4;$$291020 = $29;$$291126 = $31;$$291536 = $1;$$30 = $25;$$301233 = $33;$$301339 = $27;
  24302. label = 55;
  24303. break;
  24304. }
  24305. case 38: {
  24306. $$261442 = $35;$$261633 = $4;$$301021 = $29;$$301127 = $31;$$301537 = $1;$$31 = $25;$$311234 = $33;$$311340 = $27;
  24307. label = 56;
  24308. break;
  24309. }
  24310. case 40: {
  24311. $$271443 = $35;$$271634 = $4;$$311022 = $29;$$311128 = $31;$$311538 = $1;$$32 = $25;$$321235 = $33;$$321341 = $27;
  24312. label = 58;
  24313. break;
  24314. }
  24315. case 10: {
  24316. $$281444 = $35;$$281635 = $4;$$321023 = $29;$$321129 = $31;$$321539 = $1;$$33 = $25;$$331236 = $33;$$331342 = $27;
  24317. label = 60;
  24318. break;
  24319. }
  24320. case 11: {
  24321. $193 = ($9|0)>(0);
  24322. if ($193) {
  24323. $$321448$ph = $35;$$321639$ph = $4;$$361027$ph = $29;$$361133$ph = $31;$$37$ph = $25;$$371240$ph = $33;$$371346$ph = $27;$$sink1719 = $1;
  24324. label = 66;
  24325. } else {
  24326. $$311447 = $35;$$311638 = $4;$$351026 = $29;$$351132 = $31;$$351542 = $1;$$36 = $25;$$361239 = $33;$$361345 = $27;
  24327. label = 64;
  24328. }
  24329. break;
  24330. }
  24331. case 14: {
  24332. $224 = ($9|0)>(0);
  24333. if ($224) {
  24334. $$371453$ph = $35;$$371644$ph = $4;$$411032$ph = $29;$$411138$ph = $31;$$42$ph = $25;$$421245$ph = $33;$$421351$ph = $27;$$sink1722 = $1;
  24335. label = 75;
  24336. } else {
  24337. $$361452 = $35;$$361643 = $4;$$401031 = $29;$$401137 = $31;$$401547 = $1;$$41 = $25;$$411244 = $33;$$411350 = $27;
  24338. label = 73;
  24339. }
  24340. break;
  24341. }
  24342. case 35: {
  24343. $$401456 = $35;$$401647 = $4;$$441035 = $29;$$441141 = $31;$$441551 = $1;$$45 = $25;$$451248 = $33;$$451354 = $27;
  24344. label = 86;
  24345. break;
  24346. }
  24347. case 16: {
  24348. $452 = ($9|0)>(0);
  24349. if ($452) {
  24350. $$441460$ph = $35;$$441651$ph = $4;$$481039$ph = $29;$$481145$ph = $31;$$49$ph = $25;$$491252$ph = $33;$$491358$ph = $27;$$sink1729 = $1;
  24351. label = 116;
  24352. } else {
  24353. $$431459 = $35;$$431650 = $4;$$471038 = $29;$$471144 = $31;$$471554 = $1;$$48 = $25;$$481251 = $33;$$481357 = $27;
  24354. label = 114;
  24355. }
  24356. break;
  24357. }
  24358. case 17: {
  24359. $$461462 = $35;$$461653 = $4;$$491040 = $29;$$501147 = $31;$$501557 = $1;$$51 = $25;$$511254 = $33;$$511360 = $27;
  24360. label = 125;
  24361. break;
  24362. }
  24363. case 18: {
  24364. $503 = ($9|0)>(0);
  24365. if ($503) {
  24366. $$491465$ph = $35;$$491656$ph = $4;$$521043$ph = $29;$$531150$ph = $31;$$54$ph = $25;$$541257$ph = $33;$$541363$ph = $27;$$sink1732 = $1;
  24367. label = 130;
  24368. } else {
  24369. $$481464 = $35;$$481655 = $4;$$511042 = $29;$$521149 = $31;$$521559 = $1;$$53 = $25;$$531256 = $33;$$531362 = $27;
  24370. label = 128;
  24371. }
  24372. break;
  24373. }
  24374. case 21: {
  24375. $$511467 = $35;$$511658 = $4;$$541045 = $29;$$551152 = $31;$$551562 = $1;$$56 = $25;$$561259 = $33;$$561365 = $27;
  24376. label = 136;
  24377. break;
  24378. }
  24379. case 23: {
  24380. $572 = ($9|0)>(0);
  24381. if ($572) {
  24382. $$571473$ph = $35;$$571664$ph = $4;$$601051$ph = $29;$$611158$ph = $31;$$62$ph = $25;$$621265$ph = $33;$$621371$ph = $27;$$sink1736 = $1;
  24383. label = 153;
  24384. } else {
  24385. $$561472 = $35;$$561663 = $4;$$591050 = $29;$$601157 = $31;$$601567 = $1;$$61 = $25;$$611264 = $33;$$611370 = $27;
  24386. label = 151;
  24387. }
  24388. break;
  24389. }
  24390. case 24: {
  24391. $$591475 = $35;$$591666 = $4;$$621053 = $29;$$621159 = $31;$$631570 = $1;$$64 = $25;$$641267 = $33;$$641373 = $27;
  24392. label = 160;
  24393. break;
  24394. }
  24395. case 25: {
  24396. $696 = ($9|0)>(0);
  24397. if ($696) {
  24398. $$631479$ph = $35;$$641671$ph = $4;$$661057$ph = $29;$$671164$ph = $31;$$681271$ph = $33;$$71$ph = $25;$$711380$ph = $27;$$sink1739 = $1;
  24399. label = 182;
  24400. } else {
  24401. $$621478 = $35;$$631670 = $4;$$651056 = $29;$$661163 = $31;$$671270 = $33;$$691576 = $1;$$70 = $25;$$701379 = $27;
  24402. label = 180;
  24403. }
  24404. break;
  24405. }
  24406. case 26: {
  24407. $737 = ($9|0)>(0);
  24408. if ($737) {
  24409. $$681484$ph = $35;$$691676$ph = $4;$$711062$ph = $29;$$721169$ph = $31;$$731276$ph = $33;$$76$ph = $25;$$761385$ph = $27;$$sink1743 = $1;
  24410. label = 195;
  24411. } else {
  24412. $$671483 = $35;$$681675 = $4;$$701061 = $29;$$711168 = $31;$$721275 = $33;$$741581 = $1;$$75 = $25;$$751384 = $27;
  24413. label = 193;
  24414. }
  24415. break;
  24416. }
  24417. case 27: {
  24418. $784 = ($9|0)>(0);
  24419. if ($784) {
  24420. $$721488$ph = $35;$$731680$ph = $4;$$741065$ph = $29;$$761173$ph = $31;$$761279$ph = $33;$$80$ph = $25;$$801389$ph = $27;$$sink1746 = $1;
  24421. label = 206;
  24422. } else {
  24423. $$711487 = $35;$$721679 = $4;$$731064 = $29;$$751172 = $31;$$751278 = $33;$$781585 = $1;$$79 = $25;$$791388 = $27;
  24424. label = 204;
  24425. }
  24426. break;
  24427. }
  24428. case 37: {
  24429. $$731489 = $35;$$761683 = $4;$$771068 = $29;$$791176 = $31;$$791282 = $33;$$821589 = $1;$$83 = $25;$$831392 = $27;
  24430. label = 210;
  24431. break;
  24432. }
  24433. case 53: {
  24434. $$751491 = $35;$$781685 = $4;$$791070 = $29;$$811178 = $31;$$811284 = $33;$$841591 = $1;$$85 = $25;$$851394 = $27;
  24435. label = 213;
  24436. break;
  24437. }
  24438. case 32: {
  24439. $842 = ($9|0)>(0);
  24440. if ($842) {
  24441. $843 = ((($1)) + 1|0);
  24442. $844 = HEAP8[$1>>0]|0;
  24443. $845 = $844&255;
  24444. $$0949 = $845;$$881595 = $843;
  24445. } else {
  24446. $840 = $6 & 2;
  24447. $841 = ($840|0)==(0);
  24448. if ($841) {
  24449. $$0949 = 0;$$881595 = $1;
  24450. } else {
  24451. $$0960 = 1;$$891505 = $35;$$931084 = $29;$$931700 = $4;$$951192 = $31;$$951298 = $33;$$981605 = $1;$$99 = $25;$$991408 = $27;$$sink30 = 32;
  24452. label = 243;
  24453. break L5;
  24454. }
  24455. }
  24456. $846 = $$0949 << $25;
  24457. $847 = $846 | $27;
  24458. $848 = (($25) + 8)|0;
  24459. $$801496 = $35;$$841075 = $29;$$841691 = $4;$$861289 = $33;$$891596 = $$881595;$$90 = $848;$$901399 = $847;
  24460. label = 226;
  24461. break;
  24462. }
  24463. case 41: {
  24464. $858 = ($9|0)>(0);
  24465. if ($858) {
  24466. $$841500$ph = $35;$$881079$ph = $29;$$881695$ph = $4;$$901187$ph = $31;$$901293$ph = $33;$$94$ph = $25;$$941403$ph = $27;$$sink1750 = $1;
  24467. label = 233;
  24468. } else {
  24469. $$831499 = $35;$$871078 = $29;$$871694 = $4;$$891186 = $31;$$891292 = $33;$$921599 = $1;$$93 = $25;$$931402 = $27;
  24470. label = 231;
  24471. }
  24472. break;
  24473. }
  24474. case 42: {
  24475. $871 = ($9|0)>(0);
  24476. if ($871) {
  24477. $872 = ((($1)) + 1|0);
  24478. $873 = HEAP8[$1>>0]|0;
  24479. $874 = $873&255;
  24480. $$0948 = $874;$$871503 = $35;$$911082 = $29;$$911698 = $4;$$931190 = $31;$$931296 = $33;$$961603 = $872;$$97 = $25;$$971406 = $27;
  24481. label = 241;
  24482. } else {
  24483. $$861502 = $35;$$901081 = $29;$$901697 = $4;$$921189 = $31;$$921295 = $33;$$951602 = $1;$$96 = $25;$$961405 = $27;
  24484. label = 237;
  24485. }
  24486. break;
  24487. }
  24488. case 34: {
  24489. $$881504 = $35;$$921083 = $29;$$921699 = $4;$$941191 = $31;$$941297 = $33;$$971604 = $1;$$98 = $25;$$981407 = $27;
  24490. label = 242;
  24491. break;
  24492. }
  24493. default: {
  24494. $$100 = $25;$$1001409 = $27;$$1961 = -1;$$901506 = $35;$$941085 = $29;$$941701 = $4;$$961193 = $31;$$961299 = $33;$$991606 = $1;
  24495. label = 244;
  24496. }
  24497. }
  24498. } while(0);
  24499. if ((label|0) == 6) {
  24500. $44 = $6 & 2;
  24501. $45 = ($44|0)==(0);
  24502. if ($45) {
  24503. $$01507 = $1;$$11098 = $$01097;$$11204 = $$01203;$$11310 = $$01309;$$1988 = $$0987;$$1992 = $$0991;$$sink3$shrunk = 0;
  24504. label = 9;
  24505. } else {
  24506. $$0960 = 1;$$891505 = $35;$$931084 = $$0991;$$931700 = $4;$$951192 = $$01097;$$951298 = $$01203;$$981605 = $1;$$99 = $$0987;$$991408 = $$01309;$$sink30 = 1;
  24507. label = 243;
  24508. }
  24509. }
  24510. else if ((label|0) == 8) {
  24511. $47 = ((($1)) + 1|0);
  24512. $48 = HEAP8[$1>>0]|0;
  24513. $$01507 = $47;$$11098 = $$11098$ph;$$11204 = $$11204$ph;$$11310 = $$11310$ph;$$1988 = $$1988$ph;$$1992 = $$1992$ph;$$sink3$shrunk = $48;
  24514. label = 9;
  24515. }
  24516. if ((label|0) == 9) {
  24517. $$sink3 = $$sink3$shrunk&255;
  24518. $49 = ((($0)) + 8|0);
  24519. HEAP32[$49>>2] = $$sink3;
  24520. $50 = ($$01507>>>0)<($10>>>0);
  24521. if ($50) {
  24522. $$31206$ph = $$11204;$$31312$ph = $$11310;$$3990$ph = $$1988;$$3994$ph = $$1992;$$sink1705 = $$01507;
  24523. label = 12;
  24524. } else {
  24525. $$11508 = $$01507;$$21099 = $$11098;$$21205 = $$11204;$$21311 = $$11310;$$2989 = $$1988;$$2993 = $$1992;
  24526. label = 10;
  24527. }
  24528. }
  24529. if ((label|0) == 10) {
  24530. $51 = $6 & 2;
  24531. $52 = ($51|0)==(0);
  24532. if ($52) {
  24533. $$21509 = $$11508;$$31206 = $$21205;$$31312 = $$21311;$$3990 = $$2989;$$3994 = $$2993;$$sink9$shrunk = 0;
  24534. label = 13;
  24535. } else {
  24536. $$0960 = 1;$$891505 = $35;$$931084 = $$2993;$$931700 = $4;$$951192 = $$21099;$$951298 = $$21205;$$981605 = $$11508;$$99 = $$2989;$$991408 = $$21311;$$sink30 = 2;
  24537. label = 243;
  24538. }
  24539. }
  24540. else if ((label|0) == 12) {
  24541. $54 = ((($$sink1705)) + 1|0);
  24542. $55 = HEAP8[$$sink1705>>0]|0;
  24543. $$21509 = $54;$$31206 = $$31206$ph;$$31312 = $$31312$ph;$$3990 = $$3990$ph;$$3994 = $$3994$ph;$$sink9$shrunk = $55;
  24544. label = 13;
  24545. }
  24546. if ((label|0) == 13) {
  24547. $$sink9 = $$sink9$shrunk&255;
  24548. $56 = ((($0)) + 12|0);
  24549. HEAP32[$56>>2] = $$sink9;
  24550. $57 = ((($0)) + 8|0);
  24551. $58 = HEAP32[$57>>2]|0;
  24552. $59 = $58 << 8;
  24553. $60 = $59 | $$sink9;
  24554. $61 = (($60>>>0) % 31)&-1;
  24555. $62 = $$sink9 & 32;
  24556. $63 = $61 | $62;
  24557. $64 = $58 & 15;
  24558. $65 = ($64|0)!=(8);
  24559. $not$ = ($63|0)!=(0);
  24560. $$1754 = $65 | $not$;
  24561. $66 = $58 >>> 4;
  24562. $67 = 256 << $66;
  24563. $68 = ($67>>>0)>(32768);
  24564. $69 = ($20>>>0)<($67>>>0);
  24565. $$ = $68 | $69;
  24566. $not$1755 = $14 ^ 1;
  24567. $70 = $$ & $not$1755;
  24568. $$31100$v = $70 | $$1754;
  24569. if ($$31100$v) {
  24570. $$0960 = -1;$$891505 = $35;$$931084 = $$3994;$$931700 = $4;$$951192 = 1;$$951298 = $$31206;$$981605 = $$21509;$$99 = $$3990;$$991408 = $$31312;$$sink30 = 36;
  24571. label = 243;
  24572. } else {
  24573. $$01416 = $35;$$01607 = $4;$$41511 = $$21509;$$5 = $$3990;$$51102 = 0;$$51208 = $$31206;$$51314 = $$31312;$$5996 = $$3994;
  24574. label = 14;
  24575. }
  24576. }
  24577. L46: while(1) {
  24578. switch (label|0) {
  24579. case 14: {
  24580. label = 0;
  24581. $71 = ($$5>>>0)<(3);
  24582. if ($71) {
  24583. $$11417 = $$01416;$$11608 = $$01607;$$51512 = $$41511;$$6 = $$5;$$61103 = $$51102;$$61209 = $$51208;$$61315 = $$51314;$$6997 = $$5996;
  24584. label = 15;
  24585. } else {
  24586. $$41420 = $$01416;$$41611 = $$01607;$$81515 = $$41511;$$9 = $$5;$$91000 = $$5996;$$91106 = $$51102;$$91212 = $$51208;$$91318 = $$51314;
  24587. label = 20;
  24588. }
  24589. break;
  24590. }
  24591. case 16: {
  24592. label = 0;
  24593. $73 = $6 & 2;
  24594. $74 = ($73|0)==(0);
  24595. if ($74) {
  24596. $$01413$shrunk = 0;$$31419 = $$21418;$$31610 = $$21609;$$71514 = $$61513;$$8 = $$7;$$81105 = $$71104;$$81211 = $$71210;$$81317 = $$71316;$$8999 = $$7998;
  24597. label = 19;
  24598. } else {
  24599. $$0960 = 1;$$891505 = $$21418;$$931084 = $$7998;$$931700 = $$21609;$$951192 = $$71104;$$951298 = $$71210;$$981605 = $$61513;$$99 = $$7;$$991408 = $$71316;$$sink30 = 3;
  24600. label = 243;
  24601. continue L46;
  24602. }
  24603. break;
  24604. }
  24605. case 18: {
  24606. label = 0;
  24607. $76 = ((($$sink1710)) + 1|0);
  24608. $77 = HEAP8[$$sink1710>>0]|0;
  24609. $$01413$shrunk = $77;$$31419 = $$31419$ph;$$31610 = $$31610$ph;$$71514 = $76;$$8 = $$8$ph;$$81105 = $$81105$ph;$$81211 = $$81211$ph;$$81317 = $$81317$ph;$$8999 = $$8999$ph;
  24610. label = 19;
  24611. break;
  24612. }
  24613. case 25: {
  24614. label = 0;
  24615. $97 = $$13 & 7;
  24616. $98 = $$131322 >>> $97;
  24617. $99 = (($$13) - ($97))|0;
  24618. $$131110 = 0;$$131520 = $$121519;$$14 = $99;$$141005 = $$131004;$$141217 = $$131216;$$141323 = $98;$$91425 = $$81424;$$91616 = $$81615;
  24619. label = 26;
  24620. break;
  24621. }
  24622. case 30: {
  24623. label = 0;
  24624. $104 = $6 & 2;
  24625. $105 = ($104|0)==(0);
  24626. if ($105) {
  24627. $$01411$shrunk = 0;$$121428 = $$111427;$$121619 = $$111618;$$161113 = $$151112;$$161523 = $$151522;$$17 = $$16;$$171008 = $$161007;$$171220 = $$161219;$$171326 = $$161325;
  24628. label = 33;
  24629. } else {
  24630. $$0960 = 1;$$891505 = $$111427;$$931084 = $$161007;$$931700 = $$111618;$$951192 = $$151112;$$951298 = $$161219;$$981605 = $$151522;$$99 = $$16;$$991408 = $$161325;$$sink30 = 6;
  24631. label = 243;
  24632. continue L46;
  24633. }
  24634. break;
  24635. }
  24636. case 32: {
  24637. label = 0;
  24638. $107 = ((($$sink1713)) + 1|0);
  24639. $108 = HEAP8[$$sink1713>>0]|0;
  24640. $$01411$shrunk = $108;$$121428 = $$121428$ph;$$121619 = $$121619$ph;$$161113 = $$161113$ph;$$161523 = $107;$$17 = $$17$ph;$$171008 = $$171008$ph;$$171220 = $$171220$ph;$$171326 = $$171326$ph;
  24641. label = 33;
  24642. break;
  24643. }
  24644. case 36: {
  24645. label = 0;
  24646. $118 = $6 & 2;
  24647. $119 = ($118|0)==(0);
  24648. if ($119) {
  24649. $$151431 = $$141430;$$151622 = $$141621;$$191116 = $$181115;$$191526 = $$181525;$$20 = $$19;$$201011 = $$191010;$$201223 = $$191222;$$201329 = $$191328;$$sink12 = 0;
  24650. label = 39;
  24651. continue L46;
  24652. } else {
  24653. $$0960 = 1;$$891505 = $$141430;$$931084 = $$191010;$$931700 = $$141621;$$951192 = $$181115;$$951298 = $$191222;$$981605 = $$181525;$$99 = $$19;$$991408 = $$191328;$$sink30 = 7;
  24654. label = 243;
  24655. continue L46;
  24656. }
  24657. break;
  24658. }
  24659. case 39: {
  24660. label = 0;
  24661. $$sink13 = (((($0)) + 10528|0) + ($$191116)|0);
  24662. HEAP8[$$sink13>>0] = $$sink12;
  24663. $$161432 = $$151431;$$161623 = $$151622;$$201117 = $$191116;$$201527 = $$191526;$$21 = $$20;$$211012 = $$201011;$$211224 = $$201223;$$211330 = $$201329;
  24664. label = 41;
  24665. break;
  24666. }
  24667. case 43: {
  24668. label = 0;
  24669. $$0960 = -1;$$891505 = $$171433;$$931084 = $$221013;$$931700 = $$171624;$$951192 = $$211118;$$951298 = $$221225;$$981605 = $$211528;$$99 = $$22;$$991408 = $$221331;$$sink30 = 39;
  24670. label = 243;
  24671. continue L46;
  24672. break;
  24673. }
  24674. case 47: {
  24675. label = 0;
  24676. $150 = $6 & 2;
  24677. $151 = ($150|0)==(0);
  24678. if ($151) {
  24679. $$01410$shrunk = 0;$$211437 = $$201436;$$211628 = $$201627;$$251122 = $$241121;$$251532 = $$241531;$$26 = $$25;$$261017 = $$251016;$$261229 = $$251228;$$261335 = $$251334;
  24680. label = 50;
  24681. } else {
  24682. $$0960 = 1;$$891505 = $$201436;$$931084 = $$251016;$$931700 = $$201627;$$951192 = $$241121;$$951298 = $$251228;$$981605 = $$241531;$$99 = $$25;$$991408 = $$251334;$$sink30 = 51;
  24683. label = 243;
  24684. continue L46;
  24685. }
  24686. break;
  24687. }
  24688. case 49: {
  24689. label = 0;
  24690. $153 = ((($$sink1716)) + 1|0);
  24691. $154 = HEAP8[$$sink1716>>0]|0;
  24692. $$01410$shrunk = $154;$$211437 = $$211437$ph;$$211628 = $$211628$ph;$$251122 = $$251122$ph;$$251532 = $153;$$26 = $$26$ph;$$261017 = $$261017$ph;$$261229 = $$261229$ph;$$261335 = $$261335$ph;
  24693. label = 50;
  24694. break;
  24695. }
  24696. case 52: {
  24697. label = 0;
  24698. $162 = ($$231630>>>0)<($12>>>0);
  24699. if (!($162)) {
  24700. $$0960 = 2;$$891505 = $$231439;$$931084 = $$271018;$$931700 = $$231630;$$951192 = $$271124;$$951298 = $$281231;$$981605 = $$271534;$$99 = $$28;$$991408 = $$281337;$$sink30 = 52;
  24701. label = 243;
  24702. continue L46;
  24703. }
  24704. $163 = $$271018&255;
  24705. $164 = ((($$231630)) + 1|0);
  24706. HEAP8[$$231630>>0] = $163;
  24707. $165 = (($$271124) + -1)|0;
  24708. $$181434 = $$231439;$$181625 = $164;$$221119 = $165;$$221529 = $$271534;$$23 = $$28;$$231014 = $$271018;$$231226 = $$281231;$$231332 = $$281337;
  24709. label = 44;
  24710. break;
  24711. }
  24712. case 55: {
  24713. label = 0;
  24714. $167 = ($$251632>>>0)<($12>>>0);
  24715. if ($167) {
  24716. $$261442 = $$251441;$$261633 = $$251632;$$301021 = $$291020;$$301127 = $$291126;$$301537 = $$291536;$$31 = $$30;$$311234 = $$301233;$$311340 = $$301339;
  24717. label = 56;
  24718. continue L46;
  24719. } else {
  24720. $$0960 = 2;$$891505 = $$251441;$$931084 = $$291020;$$931700 = $$251632;$$951192 = $$291126;$$951298 = $$301233;$$981605 = $$291536;$$99 = $$30;$$991408 = $$301339;$$sink30 = 9;
  24721. label = 243;
  24722. continue L46;
  24723. }
  24724. break;
  24725. }
  24726. case 56: {
  24727. label = 0;
  24728. $168 = ($$301537>>>0)<($10>>>0);
  24729. if ($168) {
  24730. $171 = $12;
  24731. $172 = $$261633;
  24732. $173 = (($171) - ($172))|0;
  24733. $174 = $10;
  24734. $175 = $$301537;
  24735. $176 = (($174) - ($175))|0;
  24736. $177 = ($173>>>0)<($176>>>0);
  24737. $$sink17 = $177 ? $12 : $10;
  24738. $$sink16 = $177 ? $$261633 : $$301537;
  24739. $178 = $$sink17;
  24740. $179 = $$sink16;
  24741. $180 = (($178) - ($179))|0;
  24742. $181 = ($180>>>0)<($$301127>>>0);
  24743. $$$301127 = $181 ? $180 : $$301127;
  24744. _memcpy(($$261633|0),($$301537|0),($$$301127|0))|0;
  24745. $182 = (($$301537) + ($$$301127)|0);
  24746. $183 = (($$261633) + ($$$301127)|0);
  24747. $184 = (($$301127) - ($$$301127))|0;
  24748. $$241440 = $$261442;$$241631 = $183;$$281019 = $$301021;$$281125 = $184;$$281535 = $182;$$29 = $$31;$$291232 = $$311234;$$291338 = $$311340;
  24749. label = 54;
  24750. break;
  24751. } else {
  24752. $169 = $6 & 2;
  24753. $170 = ($169|0)==(0);
  24754. if ($170) {
  24755. $$271443 = $$261442;$$271634 = $$261633;$$311022 = $$301021;$$311128 = $$301127;$$311538 = $$301537;$$32 = $$31;$$321235 = $$311234;$$321341 = $$311340;
  24756. label = 58;
  24757. continue L46;
  24758. } else {
  24759. $$0960 = 1;$$891505 = $$261442;$$931084 = $$301021;$$931700 = $$261633;$$951192 = $$301127;$$951298 = $$311234;$$981605 = $$301537;$$99 = $$31;$$991408 = $$311340;$$sink30 = 38;
  24760. label = 243;
  24761. continue L46;
  24762. }
  24763. }
  24764. break;
  24765. }
  24766. case 58: {
  24767. label = 0;
  24768. $$0960 = -1;$$891505 = $$271443;$$931084 = $$311022;$$931700 = $$271634;$$951192 = $$311128;$$951298 = $$321235;$$981605 = $$311538;$$99 = $$32;$$991408 = $$321341;$$sink30 = 40;
  24769. label = 243;
  24770. continue L46;
  24771. break;
  24772. }
  24773. case 60: {
  24774. label = 0;
  24775. $$0960 = -1;$$891505 = $$281444;$$931084 = $$321023;$$931700 = $$281635;$$951192 = $$321129;$$951298 = $$331236;$$981605 = $$321539;$$99 = $$33;$$991408 = $$331342;$$sink30 = 10;
  24776. label = 243;
  24777. continue L46;
  24778. break;
  24779. }
  24780. case 64: {
  24781. label = 0;
  24782. $191 = $6 & 2;
  24783. $192 = ($191|0)==(0);
  24784. if ($192) {
  24785. $$01300$shrunk = 0;$$321448 = $$311447;$$321639 = $$311638;$$361027 = $$351026;$$361133 = $$351132;$$361543 = $$351542;$$37 = $$36;$$371240 = $$361239;$$371346 = $$361345;
  24786. label = 67;
  24787. } else {
  24788. $$0960 = 1;$$891505 = $$311447;$$931084 = $$351026;$$931700 = $$311638;$$951192 = $$351132;$$951298 = $$361239;$$981605 = $$351542;$$99 = $$36;$$991408 = $$361345;$$sink30 = 11;
  24789. label = 243;
  24790. continue L46;
  24791. }
  24792. break;
  24793. }
  24794. case 66: {
  24795. label = 0;
  24796. $194 = ((($$sink1719)) + 1|0);
  24797. $195 = HEAP8[$$sink1719>>0]|0;
  24798. $$01300$shrunk = $195;$$321448 = $$321448$ph;$$321639 = $$321639$ph;$$361027 = $$361027$ph;$$361133 = $$361133$ph;$$361543 = $194;$$37 = $$37$ph;$$371240 = $$371240$ph;$$371346 = $$371346$ph;
  24799. label = 67;
  24800. break;
  24801. }
  24802. case 73: {
  24803. label = 0;
  24804. $222 = $6 & 2;
  24805. $223 = ($222|0)==(0);
  24806. if ($223) {
  24807. $$01202$shrunk = 0;$$371453 = $$361452;$$371644 = $$361643;$$411032 = $$401031;$$411138 = $$401137;$$411548 = $$401547;$$42 = $$41;$$421245 = $$411244;$$421351 = $$411350;
  24808. label = 76;
  24809. } else {
  24810. $$0960 = 1;$$891505 = $$361452;$$931084 = $$401031;$$931700 = $$361643;$$951192 = $$401137;$$951298 = $$411244;$$981605 = $$401547;$$99 = $$41;$$991408 = $$411350;$$sink30 = 14;
  24811. label = 243;
  24812. continue L46;
  24813. }
  24814. break;
  24815. }
  24816. case 75: {
  24817. label = 0;
  24818. $225 = ((($$sink1722)) + 1|0);
  24819. $226 = HEAP8[$$sink1722>>0]|0;
  24820. $$01202$shrunk = $226;$$371453 = $$371453$ph;$$371644 = $$371644$ph;$$411032 = $$411032$ph;$$411138 = $$411138$ph;$$411548 = $225;$$42 = $$42$ph;$$421245 = $$421245$ph;$$421351 = $$421351$ph;
  24821. label = 76;
  24822. break;
  24823. }
  24824. case 86: {
  24825. label = 0;
  24826. $$0960 = -1;$$891505 = $$401456;$$931084 = $$441035;$$931700 = $$401647;$$951192 = $$441141;$$951298 = $$451248;$$981605 = $$441551;$$99 = $$45;$$991408 = $$451354;$$sink30 = 35;
  24827. label = 243;
  24828. continue L46;
  24829. break;
  24830. }
  24831. case 114: {
  24832. label = 0;
  24833. $450 = $6 & 2;
  24834. $451 = ($450|0)==(0);
  24835. if ($451) {
  24836. $$0980$shrunk = 0;$$441460 = $$431459;$$441651 = $$431650;$$481039 = $$471038;$$481145 = $$471144;$$481555 = $$471554;$$49 = $$48;$$491252 = $$481251;$$491358 = $$481357;
  24837. label = 117;
  24838. } else {
  24839. $$0960 = 1;$$891505 = $$431459;$$931084 = $$471038;$$931700 = $$431650;$$951192 = $$471144;$$951298 = $$481251;$$981605 = $$471554;$$99 = $$48;$$991408 = $$481357;$$sink30 = 16;
  24840. label = 243;
  24841. continue L46;
  24842. }
  24843. break;
  24844. }
  24845. case 116: {
  24846. label = 0;
  24847. $453 = ((($$sink1729)) + 1|0);
  24848. $454 = HEAP8[$$sink1729>>0]|0;
  24849. $$0980$shrunk = $454;$$441460 = $$441460$ph;$$441651 = $$441651$ph;$$481039 = $$481039$ph;$$481145 = $$481145$ph;$$481555 = $453;$$49 = $$49$ph;$$491252 = $$491252$ph;$$491358 = $$491358$ph;
  24850. label = 117;
  24851. break;
  24852. }
  24853. case 125: {
  24854. label = 0;
  24855. $$0960 = -1;$$891505 = $$461462;$$931084 = $$491040;$$931700 = $$461653;$$951192 = $$501147;$$951298 = $$511254;$$981605 = $$501557;$$99 = $$51;$$991408 = $$511360;$$sink30 = 17;
  24856. label = 243;
  24857. continue L46;
  24858. break;
  24859. }
  24860. case 128: {
  24861. label = 0;
  24862. $501 = $6 & 2;
  24863. $502 = ($501|0)==(0);
  24864. if ($502) {
  24865. $$0979$shrunk = 0;$$491465 = $$481464;$$491656 = $$481655;$$521043 = $$511042;$$531150 = $$521149;$$531560 = $$521559;$$54 = $$53;$$541257 = $$531256;$$541363 = $$531362;
  24866. label = 131;
  24867. } else {
  24868. $$0960 = 1;$$891505 = $$481464;$$931084 = $$511042;$$931700 = $$481655;$$951192 = $$521149;$$951298 = $$531256;$$981605 = $$521559;$$99 = $$53;$$991408 = $$531362;$$sink30 = 18;
  24869. label = 243;
  24870. continue L46;
  24871. }
  24872. break;
  24873. }
  24874. case 130: {
  24875. label = 0;
  24876. $504 = ((($$sink1732)) + 1|0);
  24877. $505 = HEAP8[$$sink1732>>0]|0;
  24878. $$0979$shrunk = $505;$$491465 = $$491465$ph;$$491656 = $$491656$ph;$$521043 = $$521043$ph;$$531150 = $$531150$ph;$$531560 = $504;$$54 = $$54$ph;$$541257 = $$541257$ph;$$541363 = $$541363$ph;
  24879. label = 131;
  24880. break;
  24881. }
  24882. case 136: {
  24883. label = 0;
  24884. $$0960 = -1;$$891505 = $$511467;$$931084 = $$541045;$$931700 = $$511658;$$951192 = $$551152;$$951298 = $$561259;$$981605 = $$551562;$$99 = $$56;$$991408 = $$561365;$$sink30 = 21;
  24885. label = 243;
  24886. continue L46;
  24887. break;
  24888. }
  24889. case 151: {
  24890. label = 0;
  24891. $570 = $6 & 2;
  24892. $571 = ($570|0)==(0);
  24893. if ($571) {
  24894. $$0971$shrunk = 0;$$571473 = $$561472;$$571664 = $$561663;$$601051 = $$591050;$$611158 = $$601157;$$611568 = $$601567;$$62 = $$61;$$621265 = $$611264;$$621371 = $$611370;
  24895. label = 154;
  24896. } else {
  24897. $$0960 = 1;$$891505 = $$561472;$$931084 = $$591050;$$931700 = $$561663;$$951192 = $$601157;$$951298 = $$611264;$$981605 = $$601567;$$99 = $$61;$$991408 = $$611370;$$sink30 = 23;
  24898. label = 243;
  24899. continue L46;
  24900. }
  24901. break;
  24902. }
  24903. case 153: {
  24904. label = 0;
  24905. $573 = ((($$sink1736)) + 1|0);
  24906. $574 = HEAP8[$$sink1736>>0]|0;
  24907. $$0971$shrunk = $574;$$571473 = $$571473$ph;$$571664 = $$571664$ph;$$601051 = $$601051$ph;$$611158 = $$611158$ph;$$611568 = $573;$$62 = $$62$ph;$$621265 = $$621265$ph;$$621371 = $$621371$ph;
  24908. label = 154;
  24909. break;
  24910. }
  24911. case 160: {
  24912. label = 0;
  24913. $610 = ($$591666>>>0)<($12>>>0);
  24914. if (!($610)) {
  24915. $$0960 = 2;$$891505 = $$591475;$$931084 = $$621053;$$931700 = $$591666;$$951192 = $$621159;$$951298 = $$641267;$$981605 = $$631570;$$99 = $$64;$$991408 = $$641373;$$sink30 = 24;
  24916. label = 243;
  24917. continue L46;
  24918. }
  24919. $611 = $$621159&255;
  24920. $612 = ((($$591666)) + 1|0);
  24921. HEAP8[$$591666>>0] = $611;
  24922. $$541470$ph = $$591475;$$541661$ph = $612;$$571048$ph = $$621053;$$581155$ph = $$621159;$$581565$ph = $$631570;$$59$ph = $$64;$$591262$ph = $$641267;$$591368$ph = $$641373;
  24923. label = 140;
  24924. break;
  24925. }
  24926. case 180: {
  24927. label = 0;
  24928. $694 = $6 & 2;
  24929. $695 = ($694|0)==(0);
  24930. if ($695) {
  24931. $$0959$shrunk = 0;$$631479 = $$621478;$$641671 = $$631670;$$661057 = $$651056;$$671164 = $$661163;$$681271 = $$671270;$$701577 = $$691576;$$71 = $$70;$$711380 = $$701379;
  24932. label = 183;
  24933. } else {
  24934. $$0960 = 1;$$891505 = $$621478;$$931084 = $$651056;$$931700 = $$631670;$$951192 = $$661163;$$951298 = $$671270;$$981605 = $$691576;$$99 = $$70;$$991408 = $$701379;$$sink30 = 25;
  24935. label = 243;
  24936. continue L46;
  24937. }
  24938. break;
  24939. }
  24940. case 182: {
  24941. label = 0;
  24942. $697 = ((($$sink1739)) + 1|0);
  24943. $698 = HEAP8[$$sink1739>>0]|0;
  24944. $$0959$shrunk = $698;$$631479 = $$631479$ph;$$641671 = $$641671$ph;$$661057 = $$661057$ph;$$671164 = $$671164$ph;$$681271 = $$681271$ph;$$701577 = $697;$$71 = $$71$ph;$$711380 = $$711380$ph;
  24945. label = 183;
  24946. break;
  24947. }
  24948. case 193: {
  24949. label = 0;
  24950. $735 = $6 & 2;
  24951. $736 = ($735|0)==(0);
  24952. if ($736) {
  24953. $$0952$shrunk = 0;$$681484 = $$671483;$$691676 = $$681675;$$711062 = $$701061;$$721169 = $$711168;$$731276 = $$721275;$$751582 = $$741581;$$76 = $$75;$$761385 = $$751384;
  24954. label = 196;
  24955. } else {
  24956. $$0960 = 1;$$891505 = $$671483;$$931084 = $$701061;$$931700 = $$681675;$$951192 = $$711168;$$951298 = $$721275;$$981605 = $$741581;$$99 = $$75;$$991408 = $$751384;$$sink30 = 26;
  24957. label = 243;
  24958. continue L46;
  24959. }
  24960. break;
  24961. }
  24962. case 195: {
  24963. label = 0;
  24964. $738 = ((($$sink1743)) + 1|0);
  24965. $739 = HEAP8[$$sink1743>>0]|0;
  24966. $$0952$shrunk = $739;$$681484 = $$681484$ph;$$691676 = $$691676$ph;$$711062 = $$711062$ph;$$721169 = $$721169$ph;$$731276 = $$731276$ph;$$751582 = $738;$$76 = $$76$ph;$$761385 = $$761385$ph;
  24967. label = 196;
  24968. break;
  24969. }
  24970. case 204: {
  24971. label = 0;
  24972. $782 = $6 & 2;
  24973. $783 = ($782|0)==(0);
  24974. if ($783) {
  24975. $$0950$shrunk = 0;$$721488 = $$711487;$$731680 = $$721679;$$741065 = $$731064;$$761173 = $$751172;$$761279 = $$751278;$$791586 = $$781585;$$80 = $$79;$$801389 = $$791388;
  24976. label = 207;
  24977. } else {
  24978. $$0960 = 1;$$891505 = $$711487;$$931084 = $$731064;$$931700 = $$721679;$$951192 = $$751172;$$951298 = $$751278;$$981605 = $$781585;$$99 = $$79;$$991408 = $$791388;$$sink30 = 27;
  24979. label = 243;
  24980. continue L46;
  24981. }
  24982. break;
  24983. }
  24984. case 206: {
  24985. label = 0;
  24986. $785 = ((($$sink1746)) + 1|0);
  24987. $786 = HEAP8[$$sink1746>>0]|0;
  24988. $$0950$shrunk = $786;$$721488 = $$721488$ph;$$731680 = $$731680$ph;$$741065 = $$741065$ph;$$761173 = $$761173$ph;$$761279 = $$761279$ph;$$791586 = $785;$$80 = $$80$ph;$$801389 = $$801389$ph;
  24989. label = 207;
  24990. break;
  24991. }
  24992. case 210: {
  24993. label = 0;
  24994. $$0960 = -1;$$891505 = $$731489;$$931084 = $$771068;$$931700 = $$761683;$$951192 = $$791176;$$951298 = $$791282;$$981605 = $$821589;$$99 = $$83;$$991408 = $$831392;$$sink30 = 37;
  24995. label = 243;
  24996. continue L46;
  24997. break;
  24998. }
  24999. case 213: {
  25000. label = 0;
  25001. $809 = ($$781685>>>0)<($12>>>0);
  25002. if (!($809)) {
  25003. $$0960 = 2;$$891505 = $$751491;$$931084 = $$791070;$$931700 = $$781685;$$951192 = $$811178;$$951298 = $$811284;$$981605 = $$841591;$$99 = $$85;$$991408 = $$851394;$$sink30 = 53;
  25004. label = 243;
  25005. continue L46;
  25006. }
  25007. $810 = (($$751491) + 1)|0;
  25008. $811 = (($$751491) - ($$791070))|0;
  25009. $812 = $811 & $$1753;
  25010. $813 = (($3) + ($812)|0);
  25011. $814 = HEAP8[$813>>0]|0;
  25012. $815 = ((($$781685)) + 1|0);
  25013. HEAP8[$$781685>>0] = $814;
  25014. $$741490 = $810;$$771684 = $815;$$781069 = $$791070;$$801177 = $$811178;$$801283 = $$811284;$$831590 = $$841591;$$84 = $$85;$$841393 = $$851394;
  25015. label = 212;
  25016. break;
  25017. }
  25018. case 226: {
  25019. label = 0;
  25020. $849 = $$90 & 7;
  25021. $850 = $$901399 >>> $849;
  25022. $851 = (($$90) - ($849))|0;
  25023. $$811497 = $$801496;$$851076 = $$841075;$$851692 = $$841691;$$871184 = 0;$$871290 = $$861289;$$901597 = $$891596;$$91 = $851;$$911400 = $850;
  25024. label = 227;
  25025. break;
  25026. }
  25027. case 231: {
  25028. label = 0;
  25029. $856 = $6 & 2;
  25030. $857 = ($856|0)==(0);
  25031. if ($857) {
  25032. $$0947$shrunk = 0;$$841500 = $$831499;$$881079 = $$871078;$$881695 = $$871694;$$901187 = $$891186;$$901293 = $$891292;$$931600 = $$921599;$$94 = $$93;$$941403 = $$931402;
  25033. label = 234;
  25034. } else {
  25035. $$0960 = 1;$$891505 = $$831499;$$931084 = $$871078;$$931700 = $$871694;$$951192 = $$891186;$$951298 = $$891292;$$981605 = $$921599;$$99 = $$93;$$991408 = $$931402;$$sink30 = 41;
  25036. label = 243;
  25037. continue L46;
  25038. }
  25039. break;
  25040. }
  25041. case 233: {
  25042. label = 0;
  25043. $859 = ((($$sink1750)) + 1|0);
  25044. $860 = HEAP8[$$sink1750>>0]|0;
  25045. $$0947$shrunk = $860;$$841500 = $$841500$ph;$$881079 = $$881079$ph;$$881695 = $$881695$ph;$$901187 = $$901187$ph;$$901293 = $$901293$ph;$$931600 = $859;$$94 = $$94$ph;$$941403 = $$941403$ph;
  25046. label = 234;
  25047. break;
  25048. }
  25049. case 237: {
  25050. label = 0;
  25051. $869 = $6 & 2;
  25052. $870 = ($869|0)==(0);
  25053. if ($870) {
  25054. $$0948 = 0;$$871503 = $$861502;$$911082 = $$901081;$$911698 = $$901697;$$931190 = $$921189;$$931296 = $$921295;$$961603 = $$951602;$$97 = $$96;$$971406 = $$961405;
  25055. label = 241;
  25056. continue L46;
  25057. } else {
  25058. $$0960 = 1;$$891505 = $$861502;$$931084 = $$901081;$$931700 = $$901697;$$951192 = $$921189;$$951298 = $$921295;$$981605 = $$951602;$$99 = $$96;$$991408 = $$961405;$$sink30 = 42;
  25059. label = 243;
  25060. continue L46;
  25061. }
  25062. break;
  25063. }
  25064. case 241: {
  25065. label = 0;
  25066. $878 = ((($0)) + 16|0);
  25067. $879 = HEAP32[$878>>2]|0;
  25068. $880 = $879 << 8;
  25069. $881 = $880 | $$0948;
  25070. HEAP32[$878>>2] = $881;
  25071. $882 = (($$931190) + 1)|0;
  25072. $$811497 = $$871503;$$851076 = $$911082;$$851692 = $$911698;$$871184 = $882;$$871290 = $$931296;$$901597 = $$961603;$$91 = $$97;$$911400 = $$971406;
  25073. label = 227;
  25074. break;
  25075. }
  25076. case 242: {
  25077. label = 0;
  25078. $$0960 = 0;$$891505 = $$881504;$$931084 = $$921083;$$931700 = $$921699;$$951192 = $$941191;$$951298 = $$941297;$$981605 = $$971604;$$99 = $$98;$$991408 = $$981407;$$sink30 = 34;
  25079. label = 243;
  25080. continue L46;
  25081. break;
  25082. }
  25083. case 243: {
  25084. label = 0;
  25085. HEAP32[$0>>2] = $$sink30;
  25086. $$100 = $$99;$$1001409 = $$991408;$$1961 = $$0960;$$901506 = $$891505;$$941085 = $$931084;$$941701 = $$931700;$$961193 = $$951192;$$961299 = $$951298;$$991606 = $$981605;
  25087. label = 244;
  25088. continue L46;
  25089. break;
  25090. }
  25091. case 244: {
  25092. label = 0;
  25093. HEAP32[$24>>2] = $$100;
  25094. HEAP32[$26>>2] = $$1001409;
  25095. HEAP32[$28>>2] = $$941085;
  25096. HEAP32[$30>>2] = $$961193;
  25097. HEAP32[$32>>2] = $$961299;
  25098. HEAP32[$34>>2] = $$901506;
  25099. $883 = $$991606;
  25100. $884 = $1;
  25101. $885 = (($883) - ($884))|0;
  25102. HEAP32[$2>>2] = $885;
  25103. $886 = $$941701;
  25104. $887 = $4;
  25105. $888 = (($886) - ($887))|0;
  25106. HEAP32[$5>>2] = $888;
  25107. $889 = $6 & 9;
  25108. $890 = ($889|0)!=(0);
  25109. $891 = ($$1961|0)>(-1);
  25110. $or$cond29 = $890 & $891;
  25111. if ($or$cond29) {
  25112. break L46;
  25113. } else {
  25114. $$0951 = $$1961;
  25115. label = 258;
  25116. break L46;
  25117. }
  25118. break;
  25119. }
  25120. }
  25121. switch (label|0) {
  25122. case 19: {
  25123. label = 0;
  25124. $$01413 = $$01413$shrunk&255;
  25125. $78 = $$01413 << $$8;
  25126. $79 = $78 | $$81317;
  25127. $80 = (($$8) + 8)|0;
  25128. $81 = ($80>>>0)<(3);
  25129. if ($81) {
  25130. $$11417 = $$31419;$$11608 = $$31610;$$51512 = $$71514;$$6 = $80;$$61103 = $$81105;$$61209 = $$81211;$$61315 = $79;$$6997 = $$8999;
  25131. label = 15;
  25132. } else {
  25133. $$41420 = $$31419;$$41611 = $$31610;$$81515 = $$71514;$$9 = $80;$$91000 = $$8999;$$91106 = $$81105;$$91212 = $$81211;$$91318 = $79;
  25134. label = 20;
  25135. }
  25136. break;
  25137. }
  25138. case 33: {
  25139. label = 0;
  25140. $$01411 = $$01411$shrunk&255;
  25141. $109 = $$01411 << $$17;
  25142. $110 = $109 | $$171326;
  25143. $111 = (($$17) + 8)|0;
  25144. $112 = ($$17>>>0)>(4294967287);
  25145. if ($112) {
  25146. $$101426 = $$121428;$$101617 = $$121619;$$141111 = $$161113;$$141521 = $$161523;$$15 = $111;$$151006 = $$171008;$$151218 = $$171220;$$151324 = $110;
  25147. label = 29;
  25148. } else {
  25149. $$131429 = $$121428;$$131620 = $$121619;$$171114 = $$161113;$$171524 = $$161523;$$18 = $111;$$181009 = $$171008;$$181221 = $$171220;$$181327 = $110;
  25150. label = 34;
  25151. }
  25152. break;
  25153. }
  25154. case 50: {
  25155. label = 0;
  25156. $$01410 = $$01410$shrunk&255;
  25157. $155 = $$01410 << $$26;
  25158. $156 = $155 | $$261335;
  25159. $157 = (($$26) + 8)|0;
  25160. $158 = ($$26>>>0)>(4294967287);
  25161. if ($158) {
  25162. $$191435 = $$211437;$$191626 = $$211628;$$231120 = $$251122;$$231530 = $$251532;$$24 = $157;$$241015 = $$261017;$$241227 = $$261229;$$241333 = $156;
  25163. label = 46;
  25164. } else {
  25165. $$221438 = $$211437;$$221629 = $$211628;$$261123 = $$251122;$$261533 = $$251532;$$27 = $157;$$271230 = $$261229;$$271336 = $156;
  25166. label = 51;
  25167. }
  25168. break;
  25169. }
  25170. case 67: {
  25171. label = 0;
  25172. $$01300 = $$01300$shrunk&255;
  25173. $196 = $$01300 << $$37;
  25174. $197 = $196 | $$371346;
  25175. $198 = (($$37) + 8)|0;
  25176. $199 = (11913 + ($$361133)|0);
  25177. $200 = HEAP8[$199>>0]|0;
  25178. $201 = $200 << 24 >> 24;
  25179. $202 = ($198>>>0)<($201>>>0);
  25180. if ($202) {
  25181. $$301446 = $$321448;$$301637 = $$321639;$$341025 = $$361027;$$341131 = $$361133;$$341541 = $$361543;$$35 = $198;$$351238 = $$371240;$$351344 = $197;
  25182. label = 63;
  25183. } else {
  25184. $$331449 = $$321448;$$331640 = $$321639;$$371028 = $$361027;$$371134 = $$361133;$$371544 = $$361543;$$38 = $198;$$381241 = $$371240;$$381347 = $197;
  25185. label = 68;
  25186. }
  25187. break;
  25188. }
  25189. case 76: {
  25190. label = 0;
  25191. $$01202 = $$01202$shrunk&255;
  25192. $227 = $$01202 << $$42;
  25193. $228 = $227 | $$421351;
  25194. $229 = (($$42) + 8)|0;
  25195. $230 = ($229>>>0)<(3);
  25196. if ($230) {
  25197. $$351451 = $$371453;$$351642 = $$371644;$$391030 = $$411032;$$391136 = $$411138;$$391546 = $$411548;$$40 = $229;$$401243 = $$421245;$$401349 = $228;
  25198. label = 72;
  25199. } else {
  25200. $$381454 = $$371453;$$381645 = $$371644;$$421033 = $$411032;$$421139 = $$411138;$$421549 = $$411548;$$43 = $229;$$431246 = $$421245;$$431352 = $228;
  25201. label = 77;
  25202. }
  25203. break;
  25204. }
  25205. case 117: {
  25206. label = 0;
  25207. $$0980 = $$0980$shrunk&255;
  25208. $455 = $$0980 << $$49;
  25209. $456 = $455 | $$491358;
  25210. $457 = (($$49) + 8)|0;
  25211. $458 = ($457>>>0)<(15);
  25212. if ($458) {
  25213. $$421458 = $$441460;$$421649 = $$441651;$$461037 = $$481039;$$461143 = $$481145;$$461553 = $$481555;$$47 = $457;$$471250 = $$491252;$$471356 = $456;
  25214. label = 108;
  25215. } else {
  25216. $$451461 = $$441460;$$451652 = $$441651;$$491146 = $$481145;$$491556 = $$481555;$$50 = $457;$$501253 = $$491252;$$501359 = $456;
  25217. label = 119;
  25218. }
  25219. break;
  25220. }
  25221. case 131: {
  25222. label = 0;
  25223. $$0979 = $$0979$shrunk&255;
  25224. $506 = $$0979 << $$54;
  25225. $507 = $506 | $$541363;
  25226. $508 = (($$54) + 8)|0;
  25227. $509 = ($508>>>0)<($$541257>>>0);
  25228. if ($509) {
  25229. $$471463 = $$491465;$$471654 = $$491656;$$501041 = $$521043;$$511148 = $$531150;$$511558 = $$531560;$$52 = $508;$$521255 = $$541257;$$521361 = $507;
  25230. label = 127;
  25231. } else {
  25232. $$501466 = $$491465;$$501657 = $$491656;$$531044 = $$521043;$$541151 = $$531150;$$541561 = $$531560;$$55 = $508;$$551258 = $$541257;$$551364 = $507;
  25233. label = 132;
  25234. }
  25235. break;
  25236. }
  25237. case 154: {
  25238. label = 0;
  25239. $$0971 = $$0971$shrunk&255;
  25240. $575 = $$0971 << $$62;
  25241. $576 = $575 | $$621371;
  25242. $577 = (($$62) + 8)|0;
  25243. $578 = ($577>>>0)<(15);
  25244. if ($578) {
  25245. $$551471 = $$571473;$$551662 = $$571664;$$581049 = $$601051;$$591156 = $$611158;$$591566 = $$611568;$$60 = $577;$$601263 = $$621265;$$601369 = $576;
  25246. label = 145;
  25247. } else {
  25248. $$581474 = $$571473;$$581665 = $$571664;$$611052 = $$601051;$$621569 = $$611568;$$63 = $577;$$631266 = $$621265;$$631372 = $576;
  25249. label = 156;
  25250. }
  25251. break;
  25252. }
  25253. case 183: {
  25254. label = 0;
  25255. $$0959 = $$0959$shrunk&255;
  25256. $699 = $$0959 << $$71;
  25257. $700 = $699 | $$711380;
  25258. $701 = (($$71) + 8)|0;
  25259. $702 = ($701>>>0)<($$681271>>>0);
  25260. if ($702) {
  25261. $$611477 = $$631479;$$621669 = $$641671;$$641055 = $$661057;$$651162 = $$671164;$$661269 = $$681271;$$681575 = $$701577;$$69 = $701;$$691378 = $700;
  25262. label = 179;
  25263. } else {
  25264. $$641480 = $$631479;$$651672 = $$641671;$$671058 = $$661057;$$681165 = $$671164;$$691272 = $$681271;$$711578 = $$701577;$$72 = $701;$$721381 = $700;
  25265. label = 184;
  25266. }
  25267. break;
  25268. }
  25269. case 196: {
  25270. label = 0;
  25271. $$0952 = $$0952$shrunk&255;
  25272. $740 = $$0952 << $$76;
  25273. $741 = $740 | $$761385;
  25274. $742 = (($$76) + 8)|0;
  25275. $743 = ($742>>>0)<(15);
  25276. if ($743) {
  25277. $$661482 = $$681484;$$671674 = $$691676;$$691060 = $$711062;$$701167 = $$721169;$$711274 = $$731276;$$731580 = $$751582;$$74 = $742;$$741383 = $741;
  25278. label = 187;
  25279. } else {
  25280. $$691485 = $$681484;$$701677 = $$691676;$$731170 = $$721169;$$761583 = $$751582;$$77 = $742;$$771386 = $741;
  25281. label = 198;
  25282. }
  25283. break;
  25284. }
  25285. case 207: {
  25286. label = 0;
  25287. $$0950 = $$0950$shrunk&255;
  25288. $787 = $$0950 << $$80;
  25289. $788 = $787 | $$801389;
  25290. $789 = (($$80) + 8)|0;
  25291. $790 = ($789>>>0)<($$761279>>>0);
  25292. if ($790) {
  25293. $$701486 = $$721488;$$711678 = $$731680;$$721063 = $$741065;$$741171 = $$761173;$$741277 = $$761279;$$771584 = $$791586;$$78 = $789;$$781387 = $788;
  25294. label = 203;
  25295. } else {
  25296. $$741681 = $$731680;$$751066 = $$741065;$$771174 = $$761173;$$771280 = $$761279;$$801587 = $$791586;$$81 = $789;$$811390 = $788;
  25297. label = 208;
  25298. }
  25299. break;
  25300. }
  25301. case 227: {
  25302. label = 0;
  25303. $852 = ($$871184>>>0)<(4);
  25304. if (!($852)) {
  25305. $$881504 = $$811497;$$921083 = $$851076;$$921699 = $$851692;$$941191 = $$871184;$$941297 = $$871290;$$971604 = $$901597;$$98 = $$91;$$981407 = $$911400;
  25306. label = 242;
  25307. continue L46;
  25308. }
  25309. $853 = ($$91|0)==(0);
  25310. if (!($853)) {
  25311. $854 = ($$91>>>0)<(8);
  25312. if ($854) {
  25313. $$821498 = $$811497;$$861077 = $$851076;$$861693 = $$851692;$$881185 = $$871184;$$881291 = $$871290;$$911598 = $$901597;$$92 = $$91;$$921401 = $$911400;
  25314. label = 230;
  25315. break;
  25316. } else {
  25317. $$851501 = $$811497;$$891080 = $$851076;$$891696 = $$851692;$$911188 = $$871184;$$911294 = $$871290;$$941601 = $$901597;$$95 = $$91;$$951404 = $$911400;
  25318. label = 235;
  25319. break;
  25320. }
  25321. }
  25322. $868 = ($$901597>>>0)<($10>>>0);
  25323. if (!($868)) {
  25324. $$861502 = $$811497;$$901081 = $$851076;$$901697 = $$851692;$$921189 = $$871184;$$921295 = $$871290;$$951602 = $$901597;$$96 = 0;$$961405 = $$911400;
  25325. label = 237;
  25326. continue L46;
  25327. }
  25328. $875 = ((($$901597)) + 1|0);
  25329. $876 = HEAP8[$$901597>>0]|0;
  25330. $877 = $876&255;
  25331. $$0948 = $877;$$871503 = $$811497;$$911082 = $$851076;$$911698 = $$851692;$$931190 = $$871184;$$931296 = $$871290;$$961603 = $875;$$97 = 0;$$971406 = $$911400;
  25332. label = 241;
  25333. continue L46;
  25334. break;
  25335. }
  25336. case 234: {
  25337. label = 0;
  25338. $$0947 = $$0947$shrunk&255;
  25339. $861 = $$0947 << $$94;
  25340. $862 = $861 | $$941403;
  25341. $863 = (($$94) + 8)|0;
  25342. $864 = ($$94>>>0)>(4294967287);
  25343. if ($864) {
  25344. $$821498 = $$841500;$$861077 = $$881079;$$861693 = $$881695;$$881185 = $$901187;$$881291 = $$901293;$$911598 = $$931600;$$92 = $863;$$921401 = $862;
  25345. label = 230;
  25346. } else {
  25347. $$851501 = $$841500;$$891080 = $$881079;$$891696 = $$881695;$$911188 = $$901187;$$911294 = $$901293;$$941601 = $$931600;$$95 = $863;$$951404 = $862;
  25348. label = 235;
  25349. }
  25350. break;
  25351. }
  25352. }
  25353. L119: do {
  25354. if ((label|0) == 15) {
  25355. label = 0;
  25356. $72 = ($$51512>>>0)<($10>>>0);
  25357. if ($72) {
  25358. $$31419$ph = $$11417;$$31610$ph = $$11608;$$8$ph = $$6;$$81105$ph = $$61103;$$81211$ph = $$61209;$$81317$ph = $$61315;$$8999$ph = $$6997;$$sink1710 = $$51512;
  25359. label = 18;
  25360. continue L46;
  25361. } else {
  25362. $$21418 = $$11417;$$21609 = $$11608;$$61513 = $$51512;$$7 = $$6;$$71104 = $$61103;$$71210 = $$61209;$$71316 = $$61315;$$7998 = $$6997;
  25363. label = 16;
  25364. continue L46;
  25365. }
  25366. }
  25367. else if ((label|0) == 20) {
  25368. label = 0;
  25369. $82 = $$91318 & 7;
  25370. $83 = ((($0)) + 20|0);
  25371. HEAP32[$83>>2] = $82;
  25372. $84 = $$91318 >>> 3;
  25373. $85 = (($$9) + -3)|0;
  25374. $86 = $82 >>> 1;
  25375. $87 = ((($0)) + 24|0);
  25376. HEAP32[$87>>2] = $86;
  25377. $trunc = $86&255;
  25378. $trunc$clear = $trunc & 3;
  25379. switch ($trunc$clear<<24>>24) {
  25380. case 0: {
  25381. $$121519 = $$81515;$$13 = $85;$$131004 = $$91000;$$131216 = $$91212;$$131322 = $84;$$81424 = $$41420;$$81615 = $$41611;
  25382. label = 25;
  25383. continue L46;
  25384. break;
  25385. }
  25386. case 3: {
  25387. $$281444 = $$41420;$$281635 = $$41611;$$321023 = $$91000;$$321129 = $$91106;$$321539 = $$81515;$$33 = $85;$$331236 = $$91212;$$331342 = $84;
  25388. label = 60;
  25389. continue L46;
  25390. break;
  25391. }
  25392. case 1: {
  25393. break;
  25394. }
  25395. default: {
  25396. $$291445 = $$41420;$$291636 = $$41611;$$331024 = $$91000;$$331130 = 0;$$331540 = $$81515;$$34 = $85;$$341237 = $$91212;$$341343 = $84;
  25397. label = 61;
  25398. break L119;
  25399. }
  25400. }
  25401. $240 = ((($0)) + 44|0);
  25402. HEAP32[$240>>2] = 288;
  25403. $241 = ((($0)) + 48|0);
  25404. HEAP32[$241>>2] = 32;
  25405. $242 = ((($0)) + 3552|0);
  25406. ;HEAP32[$242>>2]=84215045|0;HEAP32[$242+4>>2]=84215045|0;HEAP32[$242+8>>2]=84215045|0;HEAP32[$242+12>>2]=84215045|0;HEAP32[$242+16>>2]=84215045|0;HEAP32[$242+20>>2]=84215045|0;HEAP32[$242+24>>2]=84215045|0;HEAP32[$242+28>>2]=84215045|0;
  25407. $scevgep19611962 = ((($0)) + 64|0);
  25408. _memset(($scevgep19611962|0),8,144)|0;
  25409. $scevgep1959 = ((($0)) + 208|0);
  25410. dest=$scevgep1959; stop=dest+112|0; do { HEAP8[dest>>0]=9|0; dest=dest+1|0; } while ((dest|0) < (stop|0));
  25411. $scevgep1957 = ((($0)) + 320|0);
  25412. dest=$scevgep1957; stop=dest+24|0; do { HEAP8[dest>>0]=7|0; dest=dest+1|0; } while ((dest|0) < (stop|0));
  25413. $scevgep1955 = ((($0)) + 344|0);
  25414. $243 = $scevgep1955;
  25415. $244 = $243;
  25416. HEAP8[$244>>0]=134744072&255;HEAP8[$244+1>>0]=(134744072>>8)&255;HEAP8[$244+2>>0]=(134744072>>16)&255;HEAP8[$244+3>>0]=134744072>>24;
  25417. $245 = (($243) + 4)|0;
  25418. $246 = $245;
  25419. HEAP8[$246>>0]=134744072&255;HEAP8[$246+1>>0]=(134744072>>8)&255;HEAP8[$246+2>>0]=(134744072>>16)&255;HEAP8[$246+3>>0]=134744072>>24;
  25420. $$391455 = $$41420;$$391646 = $$41611;$$431034 = $$91000;$$431140 = $$91106;$$431550 = $$81515;$$44 = $85;$$441247 = $$91212;$$441353 = $84;
  25421. label = 80;
  25422. }
  25423. else if ((label|0) == 230) {
  25424. label = 0;
  25425. $855 = ($$911598>>>0)<($10>>>0);
  25426. if ($855) {
  25427. $$841500$ph = $$821498;$$881079$ph = $$861077;$$881695$ph = $$861693;$$901187$ph = $$881185;$$901293$ph = $$881291;$$94$ph = $$92;$$941403$ph = $$921401;$$sink1750 = $$911598;
  25428. label = 233;
  25429. continue L46;
  25430. } else {
  25431. $$831499 = $$821498;$$871078 = $$861077;$$871694 = $$861693;$$891186 = $$881185;$$891292 = $$881291;$$921599 = $$911598;$$93 = $$92;$$931402 = $$921401;
  25432. label = 231;
  25433. continue L46;
  25434. }
  25435. }
  25436. else if ((label|0) == 235) {
  25437. label = 0;
  25438. $865 = $$951404 & 255;
  25439. $866 = $$951404 >>> 8;
  25440. $867 = (($$95) + -8)|0;
  25441. $$0948 = $865;$$871503 = $$851501;$$911082 = $$891080;$$911698 = $$891696;$$931190 = $$911188;$$931296 = $$911294;$$961603 = $$941601;$$97 = $867;$$971406 = $866;
  25442. label = 241;
  25443. continue L46;
  25444. }
  25445. } while(0);
  25446. L125: while(1) {
  25447. L126: switch (label|0) {
  25448. case 26: {
  25449. label = 0;
  25450. $100 = ($$131110>>>0)<(4);
  25451. if (!($100)) {
  25452. $127 = ((($0)) + 10528|0);
  25453. $128 = HEAP8[$127>>0]|0;
  25454. $129 = $128&255;
  25455. $130 = ((($0)) + 10529|0);
  25456. $131 = HEAP8[$130>>0]|0;
  25457. $132 = $131&255;
  25458. $133 = $132 << 8;
  25459. $134 = $133 | $129;
  25460. $135 = ((($0)) + 10530|0);
  25461. $136 = HEAP8[$135>>0]|0;
  25462. $137 = $136&255;
  25463. $138 = ((($0)) + 10531|0);
  25464. $139 = HEAP8[$138>>0]|0;
  25465. $140 = $139&255;
  25466. $141 = $140 << 8;
  25467. $142 = $141 | $137;
  25468. $143 = $142 ^ 65535;
  25469. $144 = ($134|0)==($143|0);
  25470. if ($144) {
  25471. $$181434 = $$91425;$$181625 = $$91616;$$221119 = $134;$$221529 = $$131520;$$23 = $$14;$$231014 = $$141005;$$231226 = $$141217;$$231332 = $$141323;
  25472. label = 44;
  25473. continue L125;
  25474. } else {
  25475. $$171433 = $$91425;$$171624 = $$91616;$$211118 = $134;$$211528 = $$131520;$$22 = $$14;$$221013 = $$141005;$$221225 = $$141217;$$221331 = $$141323;
  25476. label = 43;
  25477. continue L46;
  25478. }
  25479. }
  25480. $101 = ($$14|0)==(0);
  25481. if (!($101)) {
  25482. $102 = ($$14>>>0)<(8);
  25483. if ($102) {
  25484. $$101426 = $$91425;$$101617 = $$91616;$$141111 = $$131110;$$141521 = $$131520;$$15 = $$14;$$151006 = $$141005;$$151218 = $$141217;$$151324 = $$141323;
  25485. label = 29;
  25486. continue L125;
  25487. } else {
  25488. $$131429 = $$91425;$$131620 = $$91616;$$171114 = $$131110;$$171524 = $$131520;$$18 = $$14;$$181009 = $$141005;$$181221 = $$141217;$$181327 = $$141323;
  25489. label = 34;
  25490. continue L125;
  25491. }
  25492. }
  25493. $117 = ($$131520>>>0)<($10>>>0);
  25494. if (!($117)) {
  25495. $$141430 = $$91425;$$141621 = $$91616;$$181115 = $$131110;$$181525 = $$131520;$$19 = 0;$$191010 = $$141005;$$191222 = $$141217;$$191328 = $$141323;
  25496. label = 36;
  25497. continue L46;
  25498. }
  25499. $123 = ((($$131520)) + 1|0);
  25500. $124 = HEAP8[$$131520>>0]|0;
  25501. $125 = (((($0)) + 10528|0) + ($$131110)|0);
  25502. HEAP8[$125>>0] = $124;
  25503. $$161432 = $$91425;$$161623 = $$91616;$$201117 = $$131110;$$201527 = $123;$$21 = 0;$$211012 = $$141005;$$211224 = $$141217;$$211330 = $$141323;
  25504. label = 41;
  25505. continue L125;
  25506. break;
  25507. }
  25508. case 29: {
  25509. label = 0;
  25510. $103 = ($$141521>>>0)<($10>>>0);
  25511. if ($103) {
  25512. $$121428$ph = $$101426;$$121619$ph = $$101617;$$161113$ph = $$141111;$$17$ph = $$15;$$171008$ph = $$151006;$$171220$ph = $$151218;$$171326$ph = $$151324;$$sink1713 = $$141521;
  25513. label = 32;
  25514. continue L46;
  25515. } else {
  25516. $$111427 = $$101426;$$111618 = $$101617;$$151112 = $$141111;$$151522 = $$141521;$$16 = $$15;$$161007 = $$151006;$$161219 = $$151218;$$161325 = $$151324;
  25517. label = 30;
  25518. continue L46;
  25519. }
  25520. break;
  25521. }
  25522. case 34: {
  25523. label = 0;
  25524. $113 = $$181327&255;
  25525. $114 = (((($0)) + 10528|0) + ($$171114)|0);
  25526. HEAP8[$114>>0] = $113;
  25527. $115 = $$181327 >>> 8;
  25528. $116 = (($$18) + -8)|0;
  25529. $$161432 = $$131429;$$161623 = $$131620;$$201117 = $$171114;$$201527 = $$171524;$$21 = $116;$$211012 = $$181009;$$211224 = $$181221;$$211330 = $115;
  25530. label = 41;
  25531. continue L125;
  25532. break;
  25533. }
  25534. case 41: {
  25535. label = 0;
  25536. $126 = (($$201117) + 1)|0;
  25537. $$131110 = $126;$$131520 = $$201527;$$14 = $$21;$$141005 = $$211012;$$141217 = $$211224;$$141323 = $$211330;$$91425 = $$161432;$$91616 = $$161623;
  25538. label = 26;
  25539. continue L125;
  25540. break;
  25541. }
  25542. case 44: {
  25543. label = 0;
  25544. $145 = ($$221119|0)!=(0);
  25545. $146 = ($$23|0)!=(0);
  25546. $147 = $145 & $146;
  25547. if (!($147)) {
  25548. $$241440 = $$181434;$$241631 = $$181625;$$281019 = $$231014;$$281125 = $$221119;$$281535 = $$221529;$$29 = $$23;$$291232 = $$231226;$$291338 = $$231332;
  25549. label = 54;
  25550. continue L125;
  25551. }
  25552. $148 = ($$23>>>0)<(8);
  25553. if ($148) {
  25554. $$191435 = $$181434;$$191626 = $$181625;$$231120 = $$221119;$$231530 = $$221529;$$24 = $$23;$$241015 = $$231014;$$241227 = $$231226;$$241333 = $$231332;
  25555. label = 46;
  25556. continue L125;
  25557. } else {
  25558. $$221438 = $$181434;$$221629 = $$181625;$$261123 = $$221119;$$261533 = $$221529;$$27 = $$23;$$271230 = $$231226;$$271336 = $$231332;
  25559. label = 51;
  25560. continue L125;
  25561. }
  25562. break;
  25563. }
  25564. case 46: {
  25565. label = 0;
  25566. $149 = ($$231530>>>0)<($10>>>0);
  25567. if ($149) {
  25568. $$211437$ph = $$191435;$$211628$ph = $$191626;$$251122$ph = $$231120;$$26$ph = $$24;$$261017$ph = $$241015;$$261229$ph = $$241227;$$261335$ph = $$241333;$$sink1716 = $$231530;
  25569. label = 49;
  25570. continue L46;
  25571. } else {
  25572. $$201436 = $$191435;$$201627 = $$191626;$$241121 = $$231120;$$241531 = $$231530;$$25 = $$24;$$251016 = $$241015;$$251228 = $$241227;$$251334 = $$241333;
  25573. label = 47;
  25574. continue L46;
  25575. }
  25576. break;
  25577. }
  25578. case 51: {
  25579. label = 0;
  25580. $159 = $$271336 & 255;
  25581. $160 = $$271336 >>> 8;
  25582. $161 = (($$27) + -8)|0;
  25583. $$231439 = $$221438;$$231630 = $$221629;$$271018 = $159;$$271124 = $$261123;$$271534 = $$261533;$$28 = $161;$$281231 = $$271230;$$281337 = $160;
  25584. label = 52;
  25585. continue L46;
  25586. break;
  25587. }
  25588. case 54: {
  25589. label = 0;
  25590. $166 = ($$281125|0)==(0);
  25591. if ($166) {
  25592. $$761492 = $$241440;$$801071 = $$281019;$$801687 = $$241631;$$821285 = $$291232;$$831180 = 0;$$851592 = $$281535;$$86 = $$29;$$861395 = $$291338;
  25593. label = 220;
  25594. break L125;
  25595. } else {
  25596. $$251441 = $$241440;$$251632 = $$241631;$$291020 = $$281019;$$291126 = $$281125;$$291536 = $$281535;$$30 = $$29;$$301233 = $$291232;$$301339 = $$291338;
  25597. label = 55;
  25598. continue L46;
  25599. }
  25600. break;
  25601. }
  25602. case 61: {
  25603. label = 0;
  25604. $185 = ($$331130>>>0)<(3);
  25605. if ($185) {
  25606. $186 = (11913 + ($$331130)|0);
  25607. $187 = HEAP8[$186>>0]|0;
  25608. $188 = $187 << 24 >> 24;
  25609. $189 = ($$34>>>0)<($188>>>0);
  25610. if ($189) {
  25611. $$301446 = $$291445;$$301637 = $$291636;$$341025 = $$331024;$$341131 = $$331130;$$341541 = $$331540;$$35 = $$34;$$351238 = $$341237;$$351344 = $$341343;
  25612. label = 63;
  25613. continue L125;
  25614. } else {
  25615. $$331449 = $$291445;$$331640 = $$291636;$$371028 = $$331024;$$371134 = $$331130;$$371544 = $$331540;$$38 = $$34;$$381241 = $$341237;$$381347 = $$341343;
  25616. label = 68;
  25617. continue L125;
  25618. }
  25619. } else {
  25620. $216 = ((($0)) + 7040|0);
  25621. _memset(($216|0),0,288)|0;
  25622. $$341450 = $$291445;$$341641 = $$291636;$$381029 = $$331024;$$381135 = 0;$$381545 = $$331540;$$39 = $$34;$$391242 = $$341237;$$391348 = $$341343;
  25623. label = 70;
  25624. break;
  25625. }
  25626. break;
  25627. }
  25628. case 63: {
  25629. label = 0;
  25630. $190 = ($$341541>>>0)<($10>>>0);
  25631. if ($190) {
  25632. $$321448$ph = $$301446;$$321639$ph = $$301637;$$361027$ph = $$341025;$$361133$ph = $$341131;$$37$ph = $$35;$$371240$ph = $$351238;$$371346$ph = $$351344;$$sink1719 = $$341541;
  25633. label = 66;
  25634. continue L46;
  25635. } else {
  25636. $$311447 = $$301446;$$311638 = $$301637;$$351026 = $$341025;$$351132 = $$341131;$$351542 = $$341541;$$36 = $$35;$$361239 = $$351238;$$361345 = $$351344;
  25637. label = 64;
  25638. continue L46;
  25639. }
  25640. break;
  25641. }
  25642. case 68: {
  25643. label = 0;
  25644. $203 = (11913 + ($$371134)|0);
  25645. $204 = HEAP8[$203>>0]|0;
  25646. $205 = $204 << 24 >> 24;
  25647. $206 = 1 << $205;
  25648. $207 = (($206) + -1)|0;
  25649. $208 = $207 & $$381347;
  25650. $209 = (((($0)) + 44|0) + ($$371134<<2)|0);
  25651. $210 = $$381347 >>> $205;
  25652. $211 = (($$38) - ($205))|0;
  25653. $212 = (3172 + ($$371134<<2)|0);
  25654. $213 = HEAP32[$212>>2]|0;
  25655. $214 = (($208) + ($213))|0;
  25656. HEAP32[$209>>2] = $214;
  25657. $215 = (($$371134) + 1)|0;
  25658. $$291445 = $$331449;$$291636 = $$331640;$$331024 = $$371028;$$331130 = $215;$$331540 = $$371544;$$34 = $211;$$341237 = $$381241;$$341343 = $210;
  25659. label = 61;
  25660. continue L125;
  25661. break;
  25662. }
  25663. case 72: {
  25664. label = 0;
  25665. $221 = ($$391546>>>0)<($10>>>0);
  25666. if ($221) {
  25667. $$371453$ph = $$351451;$$371644$ph = $$351642;$$411032$ph = $$391030;$$411138$ph = $$391136;$$42$ph = $$40;$$421245$ph = $$401243;$$421351$ph = $$401349;$$sink1722 = $$391546;
  25668. label = 75;
  25669. continue L46;
  25670. } else {
  25671. $$361452 = $$351451;$$361643 = $$351642;$$401031 = $$391030;$$401137 = $$391136;$$401547 = $$391546;$$41 = $$40;$$411244 = $$401243;$$411350 = $$401349;
  25672. label = 73;
  25673. continue L46;
  25674. }
  25675. break;
  25676. }
  25677. case 77: {
  25678. label = 0;
  25679. $231 = $$431352 & 7;
  25680. $232 = $$431352 >>> 3;
  25681. $233 = (($$43) + -3)|0;
  25682. $234 = $231&255;
  25683. $235 = (11917 + ($$421139)|0);
  25684. $236 = HEAP8[$235>>0]|0;
  25685. $237 = $236&255;
  25686. $238 = (((($0)) + 7040|0) + ($237)|0);
  25687. HEAP8[$238>>0] = $234;
  25688. $239 = (($$421139) + 1)|0;
  25689. $$341450 = $$381454;$$341641 = $$381645;$$381029 = $$421033;$$381135 = $239;$$381545 = $$421549;$$39 = $233;$$391242 = $$431246;$$391348 = $232;
  25690. label = 70;
  25691. break;
  25692. }
  25693. case 80: {
  25694. label = 0;
  25695. $247 = ((($0)) + 24|0);
  25696. $248 = HEAP32[$247>>2]|0;
  25697. $249 = ($248|0)>(-1);
  25698. if ($249) {
  25699. dest=$8; stop=dest+64|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  25700. $250 = (((((($0)) + 64|0) + (($248*3488)|0)|0)) + 288|0);
  25701. _memset(($250|0),0,3200)|0;
  25702. $251 = HEAP32[$247>>2]|0;
  25703. $252 = (((($0)) + 44|0) + ($251<<2)|0);
  25704. $253 = HEAP32[$252>>2]|0;
  25705. $254 = ($253|0)==(0);
  25706. if (!($254)) {
  25707. $255 = HEAP32[$247>>2]|0;
  25708. $256 = (((($0)) + 44|0) + ($255<<2)|0);
  25709. $257 = HEAP32[$256>>2]|0;
  25710. $$010951864 = 0;
  25711. while(1) {
  25712. $258 = ((((($0)) + 64|0) + (($248*3488)|0)|0) + ($$010951864)|0);
  25713. $259 = HEAP8[$258>>0]|0;
  25714. $260 = $259&255;
  25715. $261 = (($8) + ($260<<2)|0);
  25716. $262 = HEAP32[$261>>2]|0;
  25717. $263 = (($262) + 1)|0;
  25718. HEAP32[$261>>2] = $263;
  25719. $264 = (($$010951864) + 1)|0;
  25720. $265 = ($264>>>0)<($257>>>0);
  25721. if ($265) {
  25722. $$010951864 = $264;
  25723. } else {
  25724. break;
  25725. }
  25726. }
  25727. }
  25728. $266 = ((($7)) + 4|0);
  25729. HEAP32[$266>>2] = 0;
  25730. HEAP32[$7>>2] = 0;
  25731. $267 = ((($8)) + 4|0);
  25732. $268 = HEAP32[$267>>2]|0;
  25733. $269 = $268 << 1;
  25734. $270 = ((($7)) + 8|0);
  25735. HEAP32[$270>>2] = $269;
  25736. $271 = ((($8)) + 8|0);
  25737. $272 = HEAP32[$271>>2]|0;
  25738. $273 = (($272) + ($268))|0;
  25739. $274 = (($272) + ($269))|0;
  25740. $275 = $274 << 1;
  25741. $276 = ((($7)) + 12|0);
  25742. HEAP32[$276>>2] = $275;
  25743. $277 = ((($8)) + 12|0);
  25744. $278 = HEAP32[$277>>2]|0;
  25745. $279 = (($278) + ($273))|0;
  25746. $280 = (($278) + ($275))|0;
  25747. $281 = $280 << 1;
  25748. $282 = ((($7)) + 16|0);
  25749. HEAP32[$282>>2] = $281;
  25750. $283 = ((($8)) + 16|0);
  25751. $284 = HEAP32[$283>>2]|0;
  25752. $285 = (($284) + ($279))|0;
  25753. $286 = (($284) + ($281))|0;
  25754. $287 = $286 << 1;
  25755. $288 = ((($7)) + 20|0);
  25756. HEAP32[$288>>2] = $287;
  25757. $289 = ((($8)) + 20|0);
  25758. $290 = HEAP32[$289>>2]|0;
  25759. $291 = (($290) + ($285))|0;
  25760. $292 = (($290) + ($287))|0;
  25761. $293 = $292 << 1;
  25762. $294 = ((($7)) + 24|0);
  25763. HEAP32[$294>>2] = $293;
  25764. $295 = ((($8)) + 24|0);
  25765. $296 = HEAP32[$295>>2]|0;
  25766. $297 = (($296) + ($291))|0;
  25767. $298 = (($296) + ($293))|0;
  25768. $299 = $298 << 1;
  25769. $300 = ((($7)) + 28|0);
  25770. HEAP32[$300>>2] = $299;
  25771. $301 = ((($8)) + 28|0);
  25772. $302 = HEAP32[$301>>2]|0;
  25773. $303 = (($302) + ($297))|0;
  25774. $304 = (($302) + ($299))|0;
  25775. $305 = $304 << 1;
  25776. $306 = ((($7)) + 32|0);
  25777. HEAP32[$306>>2] = $305;
  25778. $307 = ((($8)) + 32|0);
  25779. $308 = HEAP32[$307>>2]|0;
  25780. $309 = (($308) + ($303))|0;
  25781. $310 = (($308) + ($305))|0;
  25782. $311 = $310 << 1;
  25783. $312 = ((($7)) + 36|0);
  25784. HEAP32[$312>>2] = $311;
  25785. $313 = ((($8)) + 36|0);
  25786. $314 = HEAP32[$313>>2]|0;
  25787. $315 = (($314) + ($309))|0;
  25788. $316 = (($314) + ($311))|0;
  25789. $317 = $316 << 1;
  25790. $318 = ((($7)) + 40|0);
  25791. HEAP32[$318>>2] = $317;
  25792. $319 = ((($8)) + 40|0);
  25793. $320 = HEAP32[$319>>2]|0;
  25794. $321 = (($320) + ($315))|0;
  25795. $322 = (($320) + ($317))|0;
  25796. $323 = $322 << 1;
  25797. $324 = ((($7)) + 44|0);
  25798. HEAP32[$324>>2] = $323;
  25799. $325 = ((($8)) + 44|0);
  25800. $326 = HEAP32[$325>>2]|0;
  25801. $327 = (($326) + ($321))|0;
  25802. $328 = (($326) + ($323))|0;
  25803. $329 = $328 << 1;
  25804. $330 = ((($7)) + 48|0);
  25805. HEAP32[$330>>2] = $329;
  25806. $331 = ((($8)) + 48|0);
  25807. $332 = HEAP32[$331>>2]|0;
  25808. $333 = (($332) + ($327))|0;
  25809. $334 = (($332) + ($329))|0;
  25810. $335 = $334 << 1;
  25811. $336 = ((($7)) + 52|0);
  25812. HEAP32[$336>>2] = $335;
  25813. $337 = ((($8)) + 52|0);
  25814. $338 = HEAP32[$337>>2]|0;
  25815. $339 = (($338) + ($333))|0;
  25816. $340 = (($338) + ($335))|0;
  25817. $341 = $340 << 1;
  25818. $342 = ((($7)) + 56|0);
  25819. HEAP32[$342>>2] = $341;
  25820. $343 = ((($8)) + 56|0);
  25821. $344 = HEAP32[$343>>2]|0;
  25822. $345 = (($344) + ($339))|0;
  25823. $346 = (($344) + ($341))|0;
  25824. $347 = $346 << 1;
  25825. $348 = ((($7)) + 60|0);
  25826. HEAP32[$348>>2] = $347;
  25827. $349 = ((($8)) + 60|0);
  25828. $350 = HEAP32[$349>>2]|0;
  25829. $351 = (($350) + ($345))|0;
  25830. $352 = (($350) + ($347))|0;
  25831. $353 = $352 << 1;
  25832. $354 = ((($7)) + 64|0);
  25833. HEAP32[$354>>2] = $353;
  25834. $355 = ($353|0)!=(65536);
  25835. $356 = ($351>>>0)>(1);
  25836. $or$cond = $355 & $356;
  25837. if ($or$cond) {
  25838. $$401456 = $$391455;$$401647 = $$391646;$$441035 = $$431034;$$441141 = $$431140;$$441551 = $$431550;$$45 = $$44;$$451248 = $$441247;$$451354 = $$441353;
  25839. label = 86;
  25840. continue L46;
  25841. }
  25842. $357 = HEAP32[$247>>2]|0;
  25843. $358 = (((($0)) + 44|0) + ($357<<2)|0);
  25844. $359 = HEAP32[$358>>2]|0;
  25845. $360 = ($359|0)==(0);
  25846. if ($360) {
  25847. $$lcssa1779 = $357;
  25848. } else {
  25849. $$010911856 = 0;$$011971855 = -1;
  25850. while(1) {
  25851. $361 = ((((($0)) + 64|0) + (($248*3488)|0)|0) + ($$010911856)|0);
  25852. $362 = HEAP8[$361>>0]|0;
  25853. $363 = $362&255;
  25854. $364 = ($362<<24>>24)==(0);
  25855. L142: do {
  25856. if ($364) {
  25857. $$41201 = $$011971855;
  25858. } else {
  25859. $365 = (($7) + ($363<<2)|0);
  25860. $366 = HEAP32[$365>>2]|0;
  25861. $367 = (($366) + 1)|0;
  25862. HEAP32[$365>>2] = $367;
  25863. $$010861840 = $366;$$010871839 = $363;$$010881838 = 0;
  25864. while(1) {
  25865. $368 = $$010881838 << 1;
  25866. $369 = $$010861840 & 1;
  25867. $370 = $369 | $368;
  25868. $371 = (($$010871839) + -1)|0;
  25869. $372 = $$010861840 >>> 1;
  25870. $373 = ($371|0)==(0);
  25871. if ($373) {
  25872. break;
  25873. } else {
  25874. $$010861840 = $372;$$010871839 = $371;$$010881838 = $370;
  25875. }
  25876. }
  25877. $374 = ($362&255)<(11);
  25878. if ($374) {
  25879. $375 = $363 << 9;
  25880. $376 = $375 | $$010911856;
  25881. $377 = $376&65535;
  25882. $378 = ($370>>>0)<(1024);
  25883. if (!($378)) {
  25884. $$41201 = $$011971855;
  25885. break;
  25886. }
  25887. $379 = 1 << $363;
  25888. $$110891852 = $370;
  25889. while(1) {
  25890. $380 = ((((((($0)) + 64|0) + (($248*3488)|0)|0)) + 288|0) + ($$110891852<<1)|0);
  25891. HEAP16[$380>>1] = $377;
  25892. $381 = (($$110891852) + ($379))|0;
  25893. $382 = ($381>>>0)<(1024);
  25894. if ($382) {
  25895. $$110891852 = $381;
  25896. } else {
  25897. $$41201 = $$011971855;
  25898. break L142;
  25899. }
  25900. }
  25901. }
  25902. $383 = $370 & 1023;
  25903. $384 = ((((((($0)) + 64|0) + (($248*3488)|0)|0)) + 288|0) + ($383<<1)|0);
  25904. $385 = HEAP16[$384>>1]|0;
  25905. $386 = $385 << 16 >> 16;
  25906. $387 = ($385<<16>>16)==(0);
  25907. if ($387) {
  25908. $388 = (($$011971855) + -2)|0;
  25909. $389 = $$011971855&65535;
  25910. HEAP16[$384>>1] = $389;
  25911. $$01194 = $$011971855;$$11198 = $388;
  25912. } else {
  25913. $$01194 = $386;$$11198 = $$011971855;
  25914. }
  25915. $390 = $$010881838 >>> 9;
  25916. $391 = ($362&255)>(11);
  25917. $392 = $390 & 1;
  25918. $393 = (($392) - ($$01194))|0;
  25919. $394 = (($393) + -1)|0;
  25920. if ($391) {
  25921. $395 = $390 & 4194303;
  25922. $$010941846 = $363;$$211991845 = $$11198;$397 = $394;$406 = $395;
  25923. while(1) {
  25924. $396 = ((((((($0)) + 64|0) + (($248*3488)|0)|0)) + 2336|0) + ($397<<1)|0);
  25925. $398 = HEAP16[$396>>1]|0;
  25926. $399 = ($398<<16>>16)==(0);
  25927. if ($399) {
  25928. $400 = $$211991845&65535;
  25929. HEAP16[$396>>1] = $400;
  25930. $401 = (($$211991845) + -2)|0;
  25931. $$21196 = $$211991845;$$31200 = $401;
  25932. } else {
  25933. $402 = $398 << 16 >> 16;
  25934. $$21196 = $402;$$31200 = $$211991845;
  25935. }
  25936. $403 = (($$010941846) + -1)|0;
  25937. $404 = ($403>>>0)>(11);
  25938. $405 = $406 >>> 1;
  25939. $407 = $405 & 1;
  25940. $408 = (($407) - ($$21196))|0;
  25941. $409 = (($408) + -1)|0;
  25942. if ($404) {
  25943. $$010941846 = $403;$$211991845 = $$31200;$397 = $409;$406 = $405;
  25944. } else {
  25945. $$21199$lcssa = $$31200;$$lcssa1778 = $409;
  25946. break;
  25947. }
  25948. }
  25949. } else {
  25950. $$21199$lcssa = $$11198;$$lcssa1778 = $394;
  25951. }
  25952. $410 = $$010911856&65535;
  25953. $411 = ((((((($0)) + 64|0) + (($248*3488)|0)|0)) + 2336|0) + ($$lcssa1778<<1)|0);
  25954. HEAP16[$411>>1] = $410;
  25955. $$41201 = $$21199$lcssa;
  25956. }
  25957. } while(0);
  25958. $412 = (($$010911856) + 1)|0;
  25959. $413 = HEAP32[$247>>2]|0;
  25960. $414 = (((($0)) + 44|0) + ($413<<2)|0);
  25961. $415 = HEAP32[$414>>2]|0;
  25962. $416 = ($412>>>0)<($415>>>0);
  25963. if ($416) {
  25964. $$010911856 = $412;$$011971855 = $$41201;
  25965. } else {
  25966. $$lcssa1779 = $413;
  25967. break;
  25968. }
  25969. }
  25970. }
  25971. $417 = ($$lcssa1779|0)==(2);
  25972. if ($417) {
  25973. $$411457 = $$391455;$$411648 = $$391646;$$451036 = $$431034;$$451142 = 0;$$451552 = $$431550;$$46 = $$44;$$461249 = $$441247;$$461355 = $$441353;
  25974. label = 105;
  25975. } else {
  25976. $$521468 = $$391455;$$521659 = $$391646;$$551046 = $$431034;$$561153 = $$431140;$$561563 = $$431550;$$57 = $$44;$$571260 = $$441247;$$571366 = $$441353;
  25977. label = 138;
  25978. }
  25979. } else {
  25980. $$531469 = $$391455;$$531660 = $$391646;$$561047 = $$431034;$$571154 = $$431140;$$571564 = $$431550;$$58 = $$44;$$581261 = $$441247;$$581367 = $$441353;
  25981. label = 139;
  25982. }
  25983. break;
  25984. }
  25985. case 108: {
  25986. label = 0;
  25987. $429 = $$471356 & 1023;
  25988. $430 = (((($0)) + 7328|0) + ($429<<1)|0);
  25989. $431 = HEAP16[$430>>1]|0;
  25990. $432 = $431 << 16 >> 16;
  25991. $433 = ($431<<16>>16)>(-1);
  25992. if ($433) {
  25993. $434 = $432 >> 9;
  25994. $435 = (($434) + -1)|0;
  25995. $436 = ($435>>>0)<($$47>>>0);
  25996. if ($436) {
  25997. $$451461 = $$421458;$$451652 = $$421649;$$491146 = $$461143;$$491556 = $$461553;$$50 = $$47;$$501253 = $$471250;$$501359 = $$471356;
  25998. label = 119;
  25999. continue L125;
  26000. } else {
  26001. label = 113;
  26002. break L125;
  26003. }
  26004. }
  26005. $437 = ($$47>>>0)>(10);
  26006. if ($437) {
  26007. $$0981 = 10;$$0984 = $432;
  26008. } else {
  26009. label = 113;
  26010. break L125;
  26011. }
  26012. while(1) {
  26013. $438 = $$0984 ^ -1;
  26014. $439 = $$471356 >>> $$0981;
  26015. $440 = $439 & 1;
  26016. $441 = (($440) + ($438))|0;
  26017. $442 = (((($0)) + 9376|0) + ($441<<1)|0);
  26018. $443 = HEAP16[$442>>1]|0;
  26019. $444 = ($443<<16>>16)<(0);
  26020. if (!($444)) {
  26021. $$451461 = $$421458;$$451652 = $$421649;$$491146 = $$461143;$$491556 = $$461553;$$50 = $$47;$$501253 = $$471250;$$501359 = $$471356;
  26022. label = 119;
  26023. continue L125;
  26024. }
  26025. $445 = (($$0981) + 1)|0;
  26026. $446 = $443 << 16 >> 16;
  26027. $447 = (($$0981) + 2)|0;
  26028. $448 = ($$47>>>0)<($447>>>0);
  26029. if ($448) {
  26030. label = 113;
  26031. break L125;
  26032. } else {
  26033. $$0981 = $445;$$0984 = $446;
  26034. }
  26035. }
  26036. break;
  26037. }
  26038. case 119: {
  26039. label = 0;
  26040. $471 = $$501359 & 1023;
  26041. $472 = (((($0)) + 7328|0) + ($471<<1)|0);
  26042. $473 = HEAP16[$472>>1]|0;
  26043. $474 = $473 << 16 >> 16;
  26044. $475 = ($473<<16>>16)>(-1);
  26045. if ($475) {
  26046. $476 = $474 >> 9;
  26047. $477 = $474 & 511;
  26048. $$2983 = $476;$$2986 = $477;
  26049. } else {
  26050. $$1982 = 10;$$1985 = $474;
  26051. while(1) {
  26052. $478 = $$1985 ^ -1;
  26053. $479 = (($$1982) + 1)|0;
  26054. $480 = $$501359 >>> $$1982;
  26055. $481 = $480 & 1;
  26056. $482 = (($481) + ($478))|0;
  26057. $483 = (((($0)) + 9376|0) + ($482<<1)|0);
  26058. $484 = HEAP16[$483>>1]|0;
  26059. $485 = $484 << 16 >> 16;
  26060. $486 = ($484<<16>>16)<(0);
  26061. if ($486) {
  26062. $$1982 = $479;$$1985 = $485;
  26063. } else {
  26064. $$2983 = $479;$$2986 = $485;
  26065. break;
  26066. }
  26067. }
  26068. }
  26069. $487 = $$501359 >>> $$2983;
  26070. $488 = (($$50) - ($$2983))|0;
  26071. $489 = ($$2986>>>0)<(16);
  26072. if ($489) {
  26073. $490 = $$2986&255;
  26074. $491 = (($$491146) + 1)|0;
  26075. $492 = (((($0)) + 10532|0) + ($$491146)|0);
  26076. HEAP8[$492>>0] = $490;
  26077. $$411457 = $$451461;$$411648 = $$451652;$$451036 = $$2986;$$451142 = $491;$$451552 = $$491556;$$46 = $488;$$461249 = $$501253;$$461355 = $487;
  26078. label = 105;
  26079. break;
  26080. }
  26081. $493 = ($$2986|0)!=(16);
  26082. $494 = ($$491146|0)!=(0);
  26083. $or$cond24 = $494 | $493;
  26084. if (!($or$cond24)) {
  26085. $$461462 = $$451461;$$461653 = $$451652;$$491040 = $$2986;$$501147 = $$491146;$$501557 = $$491556;$$51 = $488;$$511254 = $$501253;$$511360 = $487;
  26086. label = 125;
  26087. continue L46;
  26088. }
  26089. $495 = (($$2986) + -16)|0;
  26090. $496 = (11936 + ($495)|0);
  26091. $497 = HEAP8[$496>>0]|0;
  26092. $498 = $497 << 24 >> 24;
  26093. $499 = ($488>>>0)<($498>>>0);
  26094. if ($499) {
  26095. $$471463 = $$451461;$$471654 = $$451652;$$501041 = $$2986;$$511148 = $$491146;$$511558 = $$491556;$$52 = $488;$$521255 = $498;$$521361 = $487;
  26096. label = 127;
  26097. continue L125;
  26098. } else {
  26099. $$501466 = $$451461;$$501657 = $$451652;$$531044 = $$2986;$$541151 = $$491146;$$541561 = $$491556;$$55 = $488;$$551258 = $498;$$551364 = $487;
  26100. label = 132;
  26101. continue L125;
  26102. }
  26103. break;
  26104. }
  26105. case 127: {
  26106. label = 0;
  26107. $500 = ($$511558>>>0)<($10>>>0);
  26108. if ($500) {
  26109. $$491465$ph = $$471463;$$491656$ph = $$471654;$$521043$ph = $$501041;$$531150$ph = $$511148;$$54$ph = $$52;$$541257$ph = $$521255;$$541363$ph = $$521361;$$sink1732 = $$511558;
  26110. label = 130;
  26111. continue L46;
  26112. } else {
  26113. $$481464 = $$471463;$$481655 = $$471654;$$511042 = $$501041;$$521149 = $$511148;$$521559 = $$511558;$$53 = $$52;$$531256 = $$521255;$$531362 = $$521361;
  26114. label = 128;
  26115. continue L46;
  26116. }
  26117. break;
  26118. }
  26119. case 132: {
  26120. label = 0;
  26121. $510 = 1 << $$551258;
  26122. $511 = (($510) + -1)|0;
  26123. $512 = $511 & $$551364;
  26124. $513 = $$551364 >>> $$551258;
  26125. $514 = (($$55) - ($$551258))|0;
  26126. $515 = (($$531044) + -16)|0;
  26127. $516 = (11940 + ($515)|0);
  26128. $517 = HEAP8[$516>>0]|0;
  26129. $518 = $517 << 24 >> 24;
  26130. $519 = (($518) + ($512))|0;
  26131. $520 = (((($0)) + 10532|0) + ($$541151)|0);
  26132. $521 = ($$531044|0)==(16);
  26133. if ($521) {
  26134. $522 = (($$541151) + -1)|0;
  26135. $523 = (((($0)) + 10532|0) + ($522)|0);
  26136. $524 = HEAP8[$523>>0]|0;
  26137. $525 = $524&255;
  26138. $527 = $525;
  26139. } else {
  26140. $527 = 0;
  26141. }
  26142. $526 = $527&255;
  26143. _memset(($520|0),($526|0),($519|0))|0;
  26144. $528 = (($519) + ($$541151))|0;
  26145. $$411457 = $$501466;$$411648 = $$501657;$$451036 = $$531044;$$451142 = $528;$$451552 = $$541561;$$46 = $514;$$461249 = $$551258;$$461355 = $513;
  26146. label = 105;
  26147. break;
  26148. }
  26149. case 140: {
  26150. label = 0;
  26151. $539 = $10;
  26152. $540 = $$581565$ph;
  26153. $541 = (($539) - ($540))|0;
  26154. $542 = ($541|0)<(4);
  26155. $543 = ($$59$ph>>>0)<(15);
  26156. L241: do {
  26157. if ($542) {
  26158. $$541661$lcssa = $$541661$ph;$$581155$lcssa = $$581155$ph;$$581565$lcssa = $$581565$ph;$$59$lcssa = $$59$ph;$$591368$lcssa = $$591368$ph;$$lcssa1799 = $543;$$lcssa1802 = $541;
  26159. } else {
  26160. $544 = $12;
  26161. $$5416611868 = $$541661$ph;$$5811551871 = $$581155$ph;$$5815651869 = $$581565$ph;$$5913681870 = $$591368$ph;$$591872 = $$59$ph;$965 = $543;$966 = $541;
  26162. while(1) {
  26163. $545 = $$5416611868;
  26164. $546 = (($544) - ($545))|0;
  26165. $547 = ($546|0)<(2);
  26166. if ($547) {
  26167. $$541661$lcssa = $$5416611868;$$581155$lcssa = $$5811551871;$$581565$lcssa = $$5815651869;$$59$lcssa = $$591872;$$591368$lcssa = $$5913681870;$$lcssa1799 = $965;$$lcssa1802 = $966;
  26168. break L241;
  26169. }
  26170. if ($965) {
  26171. $613 = HEAP8[$$5815651869>>0]|0;
  26172. $614 = $613&255;
  26173. $615 = ((($$5815651869)) + 1|0);
  26174. $616 = HEAP8[$615>>0]|0;
  26175. $617 = $616&255;
  26176. $618 = $617 << 8;
  26177. $619 = $618 | $614;
  26178. $620 = $619 << $$591872;
  26179. $621 = $620 | $$5913681870;
  26180. $622 = ((($$5815651869)) + 2|0);
  26181. $623 = (($$591872) + 16)|0;
  26182. $$641571 = $622;$$65 = $623;$$651374 = $621;
  26183. } else {
  26184. $$641571 = $$5815651869;$$65 = $$591872;$$651374 = $$5913681870;
  26185. }
  26186. $624 = $$651374 & 1023;
  26187. $625 = (((($0)) + 352|0) + ($624<<1)|0);
  26188. $626 = HEAP16[$625>>1]|0;
  26189. $627 = $626 << 16 >> 16;
  26190. $628 = ($626<<16>>16)>(-1);
  26191. if ($628) {
  26192. $629 = $627 >> 9;
  26193. $$1964 = $629;$$1968 = $627;
  26194. } else {
  26195. $$0963 = 10;$$0967 = $627;
  26196. while(1) {
  26197. $630 = $$0967 ^ -1;
  26198. $631 = (($$0963) + 1)|0;
  26199. $632 = $$651374 >>> $$0963;
  26200. $633 = $632 & 1;
  26201. $634 = (($633) + ($630))|0;
  26202. $635 = (((($0)) + 2400|0) + ($634<<1)|0);
  26203. $636 = HEAP16[$635>>1]|0;
  26204. $637 = $636 << 16 >> 16;
  26205. $638 = ($636<<16>>16)<(0);
  26206. if ($638) {
  26207. $$0963 = $631;$$0967 = $637;
  26208. } else {
  26209. $$1964 = $631;$$1968 = $637;
  26210. break;
  26211. }
  26212. }
  26213. }
  26214. $639 = $$651374 >>> $$1964;
  26215. $640 = (($$65) - ($$1964))|0;
  26216. $641 = $$1968 & 256;
  26217. $642 = ($641|0)==(0);
  26218. if (!($642)) {
  26219. $$601476 = $$541470$ph;$$611668 = $$5416611868;$$631054 = $$571048$ph;$$641161 = $$1968;$$651268 = $$591262$ph;$$671574 = $$641571;$$68 = $640;$$681377 = $639;
  26220. label = 176;
  26221. break L126;
  26222. }
  26223. $643 = ($640>>>0)<(15);
  26224. if ($643) {
  26225. $644 = HEAP8[$$641571>>0]|0;
  26226. $645 = $644&255;
  26227. $646 = ((($$641571)) + 1|0);
  26228. $647 = HEAP8[$646>>0]|0;
  26229. $648 = $647&255;
  26230. $649 = $648 << 8;
  26231. $650 = $649 | $645;
  26232. $651 = $650 << $640;
  26233. $652 = $651 | $639;
  26234. $653 = ((($$641571)) + 2|0);
  26235. $654 = (($640) + 16)|0;
  26236. $$651572 = $653;$$66 = $654;$$661375 = $652;
  26237. } else {
  26238. $$651572 = $$641571;$$66 = $640;$$661375 = $639;
  26239. }
  26240. $655 = $$661375 & 1023;
  26241. $656 = (((($0)) + 352|0) + ($655<<1)|0);
  26242. $657 = HEAP16[$656>>1]|0;
  26243. $658 = $657 << 16 >> 16;
  26244. $659 = ($657<<16>>16)>(-1);
  26245. if ($659) {
  26246. $660 = $658 >> 9;
  26247. $$3966 = $660;$$3970 = $658;
  26248. } else {
  26249. $$2965 = 10;$$2969 = $658;
  26250. while(1) {
  26251. $661 = $$2969 ^ -1;
  26252. $662 = (($$2965) + 1)|0;
  26253. $663 = $$661375 >>> $$2965;
  26254. $664 = $663 & 1;
  26255. $665 = (($664) + ($661))|0;
  26256. $666 = (((($0)) + 2400|0) + ($665<<1)|0);
  26257. $667 = HEAP16[$666>>1]|0;
  26258. $668 = $667 << 16 >> 16;
  26259. $669 = ($667<<16>>16)<(0);
  26260. if ($669) {
  26261. $$2965 = $662;$$2969 = $668;
  26262. } else {
  26263. $$3966 = $662;$$3970 = $668;
  26264. break;
  26265. }
  26266. }
  26267. }
  26268. $670 = $$661375 >>> $$3966;
  26269. $671 = (($$66) - ($$3966))|0;
  26270. $672 = $$1968&255;
  26271. HEAP8[$$5416611868>>0] = $672;
  26272. $673 = $$3970 & 256;
  26273. $674 = ($673|0)==(0);
  26274. if (!($674)) {
  26275. break;
  26276. }
  26277. $676 = $$3970&255;
  26278. $677 = ((($$5416611868)) + 1|0);
  26279. HEAP8[$677>>0] = $676;
  26280. $678 = ((($$5416611868)) + 2|0);
  26281. $679 = $$651572;
  26282. $680 = (($539) - ($679))|0;
  26283. $681 = ($680|0)<(4);
  26284. $682 = ($671>>>0)<(15);
  26285. if ($681) {
  26286. $$541661$lcssa = $678;$$581155$lcssa = $$1968;$$581565$lcssa = $$651572;$$59$lcssa = $671;$$591368$lcssa = $670;$$lcssa1799 = $682;$$lcssa1802 = $680;
  26287. break L241;
  26288. } else {
  26289. $$5416611868 = $678;$$5811551871 = $$1968;$$5815651869 = $$651572;$$5913681870 = $670;$$591872 = $671;$965 = $682;$966 = $680;
  26290. }
  26291. }
  26292. $675 = ((($$5416611868)) + 1|0);
  26293. $$601476 = $$541470$ph;$$611668 = $675;$$631054 = $$571048$ph;$$641161 = $$3970;$$651268 = $$591262$ph;$$671574 = $$651572;$$68 = $671;$$681377 = $670;
  26294. label = 176;
  26295. break L126;
  26296. }
  26297. } while(0);
  26298. if (!($$lcssa1799)) {
  26299. $$581474 = $$541470$ph;$$581665 = $$541661$lcssa;$$611052 = $$571048$ph;$$621569 = $$581565$lcssa;$$63 = $$59$lcssa;$$631266 = $$591262$ph;$$631372 = $$591368$lcssa;
  26300. label = 156;
  26301. continue L125;
  26302. }
  26303. $548 = ($$lcssa1802|0)<(2);
  26304. if ($548) {
  26305. $$551471 = $$541470$ph;$$551662 = $$541661$lcssa;$$581049 = $$571048$ph;$$591156 = $$581155$lcssa;$$591566 = $$581565$lcssa;$$60 = $$59$lcssa;$$601263 = $$591262$ph;$$601369 = $$591368$lcssa;
  26306. label = 145;
  26307. continue L125;
  26308. }
  26309. $579 = HEAP8[$$581565$lcssa>>0]|0;
  26310. $580 = $579&255;
  26311. $581 = $580 << $$59$lcssa;
  26312. $582 = ((($$581565$lcssa)) + 1|0);
  26313. $583 = HEAP8[$582>>0]|0;
  26314. $584 = $583&255;
  26315. $585 = (($$59$lcssa) + 8)|0;
  26316. $586 = $584 << $585;
  26317. $587 = $581 | $$591368$lcssa;
  26318. $588 = $587 | $586;
  26319. $589 = ((($$581565$lcssa)) + 2|0);
  26320. $590 = (($$59$lcssa) + 16)|0;
  26321. $$581474 = $$541470$ph;$$581665 = $$541661$lcssa;$$611052 = $$571048$ph;$$621569 = $589;$$63 = $590;$$631266 = $$591262$ph;$$631372 = $588;
  26322. label = 156;
  26323. continue L125;
  26324. break;
  26325. }
  26326. case 145: {
  26327. label = 0;
  26328. $549 = $$601369 & 1023;
  26329. $550 = (((($0)) + 352|0) + ($549<<1)|0);
  26330. $551 = HEAP16[$550>>1]|0;
  26331. $552 = $551 << 16 >> 16;
  26332. $553 = ($551<<16>>16)>(-1);
  26333. if ($553) {
  26334. $554 = $552 >> 9;
  26335. $555 = (($554) + -1)|0;
  26336. $556 = ($555>>>0)<($$60>>>0);
  26337. if ($556) {
  26338. $$581474 = $$551471;$$581665 = $$551662;$$611052 = $$581049;$$621569 = $$591566;$$63 = $$60;$$631266 = $$601263;$$631372 = $$601369;
  26339. label = 156;
  26340. continue L125;
  26341. } else {
  26342. label = 150;
  26343. break L125;
  26344. }
  26345. }
  26346. $557 = ($$60>>>0)>(10);
  26347. if ($557) {
  26348. $$0972 = 10;$$0975 = $552;
  26349. } else {
  26350. label = 150;
  26351. break L125;
  26352. }
  26353. while(1) {
  26354. $558 = $$0975 ^ -1;
  26355. $559 = $$601369 >>> $$0972;
  26356. $560 = $559 & 1;
  26357. $561 = (($560) + ($558))|0;
  26358. $562 = (((($0)) + 2400|0) + ($561<<1)|0);
  26359. $563 = HEAP16[$562>>1]|0;
  26360. $564 = ($563<<16>>16)<(0);
  26361. if (!($564)) {
  26362. $$581474 = $$551471;$$581665 = $$551662;$$611052 = $$581049;$$621569 = $$591566;$$63 = $$60;$$631266 = $$601263;$$631372 = $$601369;
  26363. label = 156;
  26364. continue L125;
  26365. }
  26366. $565 = (($$0972) + 1)|0;
  26367. $566 = $563 << 16 >> 16;
  26368. $567 = (($$0972) + 2)|0;
  26369. $568 = ($$60>>>0)<($567>>>0);
  26370. if ($568) {
  26371. label = 150;
  26372. break L125;
  26373. } else {
  26374. $$0972 = $565;$$0975 = $566;
  26375. }
  26376. }
  26377. break;
  26378. }
  26379. case 156: {
  26380. label = 0;
  26381. $591 = $$631372 & 1023;
  26382. $592 = (((($0)) + 352|0) + ($591<<1)|0);
  26383. $593 = HEAP16[$592>>1]|0;
  26384. $594 = $593 << 16 >> 16;
  26385. $595 = ($593<<16>>16)>(-1);
  26386. if ($595) {
  26387. $596 = $594 >> 9;
  26388. $597 = $594 & 511;
  26389. $$2974 = $596;$$2977 = $597;
  26390. } else {
  26391. $$1973 = 10;$$1976 = $594;
  26392. while(1) {
  26393. $598 = $$1976 ^ -1;
  26394. $599 = (($$1973) + 1)|0;
  26395. $600 = $$631372 >>> $$1973;
  26396. $601 = $600 & 1;
  26397. $602 = (($601) + ($598))|0;
  26398. $603 = (((($0)) + 2400|0) + ($602<<1)|0);
  26399. $604 = HEAP16[$603>>1]|0;
  26400. $605 = $604 << 16 >> 16;
  26401. $606 = ($604<<16>>16)<(0);
  26402. if ($606) {
  26403. $$1973 = $599;$$1976 = $605;
  26404. } else {
  26405. $$2974 = $599;$$2977 = $605;
  26406. break;
  26407. }
  26408. }
  26409. }
  26410. $607 = $$631372 >>> $$2974;
  26411. $608 = (($$63) - ($$2974))|0;
  26412. $609 = ($$2977>>>0)>(255);
  26413. if ($609) {
  26414. $$601476 = $$581474;$$611668 = $$581665;$$631054 = $$611052;$$641161 = $$2977;$$651268 = $$631266;$$671574 = $$621569;$$68 = $608;$$681377 = $607;
  26415. label = 176;
  26416. } else {
  26417. $$591475 = $$581474;$$591666 = $$581665;$$621053 = $$611052;$$621159 = $$2977;$$631570 = $$621569;$$64 = $608;$$641267 = $$631266;$$641373 = $607;
  26418. label = 160;
  26419. continue L46;
  26420. }
  26421. break;
  26422. }
  26423. case 179: {
  26424. label = 0;
  26425. $693 = ($$681575>>>0)<($10>>>0);
  26426. if ($693) {
  26427. $$631479$ph = $$611477;$$641671$ph = $$621669;$$661057$ph = $$641055;$$671164$ph = $$651162;$$681271$ph = $$661269;$$71$ph = $$69;$$711380$ph = $$691378;$$sink1739 = $$681575;
  26428. label = 182;
  26429. continue L46;
  26430. } else {
  26431. $$621478 = $$611477;$$631670 = $$621669;$$651056 = $$641055;$$661163 = $$651162;$$671270 = $$661269;$$691576 = $$681575;$$70 = $$69;$$701379 = $$691378;
  26432. label = 180;
  26433. continue L46;
  26434. }
  26435. break;
  26436. }
  26437. case 184: {
  26438. label = 0;
  26439. $703 = 1 << $$691272;
  26440. $704 = (($703) + -1)|0;
  26441. $705 = $704 & $$721381;
  26442. $706 = $$721381 >>> $$691272;
  26443. $707 = (($$72) - ($$691272))|0;
  26444. $708 = (($705) + ($$681165))|0;
  26445. $$651481 = $$641480;$$661673 = $$651672;$$681059 = $$671058;$$691166 = $708;$$701273 = $$691272;$$721579 = $$711578;$$73 = $707;$$731382 = $706;
  26446. label = 185;
  26447. break;
  26448. }
  26449. case 187: {
  26450. label = 0;
  26451. $714 = $$741383 & 1023;
  26452. $715 = (((($0)) + 3840|0) + ($714<<1)|0);
  26453. $716 = HEAP16[$715>>1]|0;
  26454. $717 = $716 << 16 >> 16;
  26455. $718 = ($716<<16>>16)>(-1);
  26456. if ($718) {
  26457. $719 = $717 >> 9;
  26458. $720 = (($719) + -1)|0;
  26459. $721 = ($720>>>0)<($$74>>>0);
  26460. if ($721) {
  26461. $$691485 = $$661482;$$701677 = $$671674;$$731170 = $$701167;$$761583 = $$731580;$$77 = $$74;$$771386 = $$741383;
  26462. label = 198;
  26463. continue L125;
  26464. } else {
  26465. label = 192;
  26466. break L125;
  26467. }
  26468. }
  26469. $722 = ($$74>>>0)>(10);
  26470. if ($722) {
  26471. $$0953 = 10;$$0956 = $717;
  26472. } else {
  26473. label = 192;
  26474. break L125;
  26475. }
  26476. while(1) {
  26477. $723 = $$0956 ^ -1;
  26478. $724 = $$741383 >>> $$0953;
  26479. $725 = $724 & 1;
  26480. $726 = (($725) + ($723))|0;
  26481. $727 = (((($0)) + 5888|0) + ($726<<1)|0);
  26482. $728 = HEAP16[$727>>1]|0;
  26483. $729 = ($728<<16>>16)<(0);
  26484. if (!($729)) {
  26485. $$691485 = $$661482;$$701677 = $$671674;$$731170 = $$701167;$$761583 = $$731580;$$77 = $$74;$$771386 = $$741383;
  26486. label = 198;
  26487. continue L125;
  26488. }
  26489. $730 = (($$0953) + 1)|0;
  26490. $731 = $728 << 16 >> 16;
  26491. $732 = (($$0953) + 2)|0;
  26492. $733 = ($$74>>>0)<($732>>>0);
  26493. if ($733) {
  26494. label = 192;
  26495. break L125;
  26496. } else {
  26497. $$0953 = $730;$$0956 = $731;
  26498. }
  26499. }
  26500. break;
  26501. }
  26502. case 198: {
  26503. label = 0;
  26504. $756 = $$771386 & 1023;
  26505. $757 = (((($0)) + 3840|0) + ($756<<1)|0);
  26506. $758 = HEAP16[$757>>1]|0;
  26507. $759 = $758 << 16 >> 16;
  26508. $760 = ($758<<16>>16)>(-1);
  26509. if ($760) {
  26510. $761 = $759 >> 9;
  26511. $762 = $759 & 511;
  26512. $$2955 = $761;$$2958 = $762;
  26513. } else {
  26514. $$1954 = 10;$$1957 = $759;
  26515. while(1) {
  26516. $763 = $$1957 ^ -1;
  26517. $764 = (($$1954) + 1)|0;
  26518. $765 = $$771386 >>> $$1954;
  26519. $766 = $765 & 1;
  26520. $767 = (($766) + ($763))|0;
  26521. $768 = (((($0)) + 5888|0) + ($767<<1)|0);
  26522. $769 = HEAP16[$768>>1]|0;
  26523. $770 = $769 << 16 >> 16;
  26524. $771 = ($769<<16>>16)<(0);
  26525. if ($771) {
  26526. $$1954 = $764;$$1957 = $770;
  26527. } else {
  26528. $$2955 = $764;$$2958 = $770;
  26529. break;
  26530. }
  26531. }
  26532. }
  26533. $772 = $$771386 >>> $$2955;
  26534. $773 = (($$77) - ($$2955))|0;
  26535. $774 = (3432 + ($$2958<<2)|0);
  26536. $775 = HEAP32[$774>>2]|0;
  26537. $776 = (3560 + ($$2958<<2)|0);
  26538. $777 = HEAP32[$776>>2]|0;
  26539. $778 = (($$2958) + -4)|0;
  26540. $779 = ($778>>>0)<(26);
  26541. if ($779) {
  26542. $780 = ($773>>>0)<($775>>>0);
  26543. if ($780) {
  26544. $$701486 = $$691485;$$711678 = $$701677;$$721063 = $777;$$741171 = $$731170;$$741277 = $775;$$771584 = $$761583;$$78 = $773;$$781387 = $772;
  26545. label = 203;
  26546. continue L125;
  26547. } else {
  26548. $$741681 = $$701677;$$751066 = $777;$$771174 = $$731170;$$771280 = $775;$$801587 = $$761583;$$81 = $773;$$811390 = $772;
  26549. label = 208;
  26550. continue L125;
  26551. }
  26552. } else {
  26553. $$751682 = $$701677;$$761067 = $777;$$781175 = $$731170;$$781281 = $775;$$811588 = $$761583;$$82 = $773;$$821391 = $772;
  26554. label = 209;
  26555. }
  26556. break;
  26557. }
  26558. case 203: {
  26559. label = 0;
  26560. $781 = ($$771584>>>0)<($10>>>0);
  26561. if ($781) {
  26562. $$721488$ph = $$701486;$$731680$ph = $$711678;$$741065$ph = $$721063;$$761173$ph = $$741171;$$761279$ph = $$741277;$$80$ph = $$78;$$801389$ph = $$781387;$$sink1746 = $$771584;
  26563. label = 206;
  26564. continue L46;
  26565. } else {
  26566. $$711487 = $$701486;$$721679 = $$711678;$$731064 = $$721063;$$751172 = $$741171;$$751278 = $$741277;$$781585 = $$771584;$$79 = $$78;$$791388 = $$781387;
  26567. label = 204;
  26568. continue L46;
  26569. }
  26570. break;
  26571. }
  26572. case 208: {
  26573. label = 0;
  26574. $791 = 1 << $$771280;
  26575. $792 = (($791) + -1)|0;
  26576. $793 = $792 & $$811390;
  26577. $794 = $$811390 >>> $$771280;
  26578. $795 = (($$81) - ($$771280))|0;
  26579. $796 = (($793) + ($$751066))|0;
  26580. $$751682 = $$741681;$$761067 = $796;$$781175 = $$771174;$$781281 = $$771280;$$811588 = $$801587;$$82 = $795;$$821391 = $794;
  26581. label = 209;
  26582. break;
  26583. }
  26584. case 212: {
  26585. label = 0;
  26586. $807 = (($$801177) + -1)|0;
  26587. $808 = ($$801177|0)==(0);
  26588. if ($808) {
  26589. $$531469 = $$741490;$$531660 = $$771684;$$561047 = $$781069;$$571154 = $807;$$571564 = $$831590;$$58 = $$84;$$581261 = $$801283;$$581367 = $$841393;
  26590. label = 139;
  26591. } else {
  26592. $$751491 = $$741490;$$781685 = $$771684;$$791070 = $$781069;$$811178 = $807;$$811284 = $$801283;$$841591 = $$831590;$$85 = $$84;$$851394 = $$841393;
  26593. label = 213;
  26594. continue L46;
  26595. }
  26596. break;
  26597. }
  26598. }
  26599. do {
  26600. if ((label|0) == 70) {
  26601. label = 0;
  26602. $217 = ((($0)) + 52|0);
  26603. $218 = HEAP32[$217>>2]|0;
  26604. $219 = ($$381135>>>0)<($218>>>0);
  26605. if ($219) {
  26606. $220 = ($$39>>>0)<(3);
  26607. if ($220) {
  26608. $$351451 = $$341450;$$351642 = $$341641;$$391030 = $$381029;$$391136 = $$381135;$$391546 = $$381545;$$40 = $$39;$$401243 = $$391242;$$401349 = $$391348;
  26609. label = 72;
  26610. continue L125;
  26611. } else {
  26612. $$381454 = $$341450;$$381645 = $$341641;$$421033 = $$381029;$$421139 = $$381135;$$421549 = $$381545;$$43 = $$39;$$431246 = $$391242;$$431352 = $$391348;
  26613. label = 77;
  26614. continue L125;
  26615. }
  26616. } else {
  26617. HEAP32[$217>>2] = 19;
  26618. $$391455 = $$341450;$$391646 = $$341641;$$431034 = $$381029;$$431140 = $$381135;$$431550 = $$381545;$$44 = $$39;$$441247 = $$391242;$$441353 = $$391348;
  26619. label = 80;
  26620. continue L125;
  26621. }
  26622. }
  26623. else if ((label|0) == 105) {
  26624. label = 0;
  26625. $418 = ((($0)) + 44|0);
  26626. $419 = HEAP32[$418>>2]|0;
  26627. $420 = ((($0)) + 48|0);
  26628. $421 = HEAP32[$420>>2]|0;
  26629. $422 = (($421) + ($419))|0;
  26630. $423 = ($$451142>>>0)<($422>>>0);
  26631. if (!($423)) {
  26632. $529 = ($422|0)==($$451142|0);
  26633. if (!($529)) {
  26634. $$511467 = $$411457;$$511658 = $$411648;$$541045 = $$451036;$$551152 = $$451142;$$551562 = $$451552;$$56 = $$46;$$561259 = $$461249;$$561365 = $$461355;
  26635. label = 136;
  26636. continue L46;
  26637. }
  26638. $530 = ((($0)) + 64|0);
  26639. $531 = ((($0)) + 10532|0);
  26640. _memcpy(($530|0),($531|0),($419|0))|0;
  26641. $532 = ((($0)) + 3552|0);
  26642. $533 = HEAP32[$418>>2]|0;
  26643. $534 = (((($0)) + 10532|0) + ($533)|0);
  26644. $535 = HEAP32[$420>>2]|0;
  26645. _memcpy(($532|0),($534|0),($535|0))|0;
  26646. $$521468 = $$411457;$$521659 = $$411648;$$551046 = $$451036;$$561153 = $$451142;$$561563 = $$451552;$$57 = $$46;$$571260 = $$461249;$$571366 = $$461355;
  26647. label = 138;
  26648. break;
  26649. }
  26650. $424 = ($$46>>>0)<(15);
  26651. if (!($424)) {
  26652. $$451461 = $$411457;$$451652 = $$411648;$$491146 = $$451142;$$491556 = $$451552;$$50 = $$46;$$501253 = $$461249;$$501359 = $$461355;
  26653. label = 119;
  26654. continue L125;
  26655. }
  26656. $425 = $10;
  26657. $426 = $$451552;
  26658. $427 = (($425) - ($426))|0;
  26659. $428 = ($427|0)<(2);
  26660. if ($428) {
  26661. $$421458 = $$411457;$$421649 = $$411648;$$461037 = $$451036;$$461143 = $$451142;$$461553 = $$451552;$$47 = $$46;$$471250 = $$461249;$$471356 = $$461355;
  26662. label = 108;
  26663. continue L125;
  26664. }
  26665. $459 = HEAP8[$$451552>>0]|0;
  26666. $460 = $459&255;
  26667. $461 = $460 << $$46;
  26668. $462 = ((($$451552)) + 1|0);
  26669. $463 = HEAP8[$462>>0]|0;
  26670. $464 = $463&255;
  26671. $465 = (($$46) + 8)|0;
  26672. $466 = $464 << $465;
  26673. $467 = $461 | $$461355;
  26674. $468 = $467 | $466;
  26675. $469 = ((($$451552)) + 2|0);
  26676. $470 = (($$46) + 16)|0;
  26677. $$451461 = $$411457;$$451652 = $$411648;$$491146 = $$451142;$$491556 = $469;$$50 = $470;$$501253 = $$461249;$$501359 = $468;
  26678. label = 119;
  26679. continue L125;
  26680. }
  26681. else if ((label|0) == 176) {
  26682. label = 0;
  26683. $683 = $$641161 & 511;
  26684. $684 = ($683|0)==(256);
  26685. if ($684) {
  26686. $$761492 = $$601476;$$801071 = $$631054;$$801687 = $$611668;$$821285 = $$651268;$$831180 = 256;$$851592 = $$671574;$$86 = $$68;$$861395 = $$681377;
  26687. label = 220;
  26688. break L125;
  26689. }
  26690. $685 = (($683) + -257)|0;
  26691. $686 = (3184 + ($685<<2)|0);
  26692. $687 = HEAP32[$686>>2]|0;
  26693. $688 = (3308 + ($685<<2)|0);
  26694. $689 = HEAP32[$688>>2]|0;
  26695. $690 = (($683) + -265)|0;
  26696. $691 = ($690>>>0)<(20);
  26697. if ($691) {
  26698. $692 = ($$68>>>0)<($687>>>0);
  26699. if ($692) {
  26700. $$611477 = $$601476;$$621669 = $$611668;$$641055 = $$631054;$$651162 = $689;$$661269 = $687;$$681575 = $$671574;$$69 = $$68;$$691378 = $$681377;
  26701. label = 179;
  26702. continue L125;
  26703. } else {
  26704. $$641480 = $$601476;$$651672 = $$611668;$$671058 = $$631054;$$681165 = $689;$$691272 = $687;$$711578 = $$671574;$$72 = $$68;$$721381 = $$681377;
  26705. label = 184;
  26706. continue L125;
  26707. }
  26708. } else {
  26709. $$651481 = $$601476;$$661673 = $$611668;$$681059 = $$631054;$$691166 = $689;$$701273 = $687;$$721579 = $$671574;$$73 = $$68;$$731382 = $$681377;
  26710. label = 185;
  26711. }
  26712. }
  26713. else if ((label|0) == 209) {
  26714. label = 0;
  26715. $797 = $$751682;
  26716. $798 = $3;
  26717. $799 = (($797) - ($798))|0;
  26718. $$not = ($799>>>0)>=($$761067>>>0);
  26719. $$not1747 = $14 ^ 1;
  26720. $brmerge = $$not | $$not1747;
  26721. if (!($brmerge)) {
  26722. $$731489 = $799;$$761683 = $$751682;$$771068 = $$761067;$$791176 = $$781175;$$791282 = $$781281;$$821589 = $$811588;$$83 = $$82;$$831392 = $$821391;
  26723. label = 210;
  26724. continue L46;
  26725. }
  26726. $800 = (($799) - ($$761067))|0;
  26727. $801 = $800 & $$1753;
  26728. $802 = (($3) + ($801)|0);
  26729. $803 = ($$751682>>>0)>($802>>>0);
  26730. $804 = $803 ? $$751682 : $802;
  26731. $805 = (($804) + ($$781175)|0);
  26732. $806 = ($805>>>0)>($12>>>0);
  26733. if ($806) {
  26734. $$741490 = $799;$$771684 = $$751682;$$781069 = $$761067;$$801177 = $$781175;$$801283 = $$781281;$$831590 = $$811588;$$84 = $$82;$$841393 = $$821391;
  26735. label = 212;
  26736. continue L125;
  26737. } else {
  26738. $$0978 = $802;$$791686 = $$751682;$$821179 = $$781175;
  26739. }
  26740. while(1) {
  26741. $816 = HEAP8[$$0978>>0]|0;
  26742. HEAP8[$$791686>>0] = $816;
  26743. $817 = ((($$0978)) + 1|0);
  26744. $818 = HEAP8[$817>>0]|0;
  26745. $819 = ((($$791686)) + 1|0);
  26746. HEAP8[$819>>0] = $818;
  26747. $820 = ((($$0978)) + 2|0);
  26748. $821 = HEAP8[$820>>0]|0;
  26749. $822 = ((($$791686)) + 2|0);
  26750. HEAP8[$822>>0] = $821;
  26751. $823 = ((($$791686)) + 3|0);
  26752. $824 = ((($$0978)) + 3|0);
  26753. $825 = (($$821179) + -3)|0;
  26754. $826 = ($825|0)>(2);
  26755. if ($826) {
  26756. $$0978 = $824;$$791686 = $823;$$821179 = $825;
  26757. } else {
  26758. break;
  26759. }
  26760. }
  26761. $827 = ($825|0)>(0);
  26762. if ($827) {
  26763. $828 = HEAP8[$824>>0]|0;
  26764. HEAP8[$823>>0] = $828;
  26765. $829 = ($825|0)==(1);
  26766. if (!($829)) {
  26767. $830 = ((($$0978)) + 4|0);
  26768. $831 = HEAP8[$830>>0]|0;
  26769. $832 = ((($$791686)) + 4|0);
  26770. HEAP8[$832>>0] = $831;
  26771. }
  26772. $833 = (($823) + ($825)|0);
  26773. $$531469 = $799;$$531660 = $833;$$561047 = $$761067;$$571154 = $825;$$571564 = $$811588;$$58 = $$82;$$581261 = $$781281;$$581367 = $$821391;
  26774. label = 139;
  26775. } else {
  26776. $$531469 = $799;$$531660 = $823;$$561047 = $$761067;$$571154 = $825;$$571564 = $$811588;$$58 = $$82;$$581261 = $$781281;$$581367 = $$821391;
  26777. label = 139;
  26778. }
  26779. }
  26780. } while(0);
  26781. if ((label|0) == 138) {
  26782. label = 0;
  26783. $536 = ((($0)) + 24|0);
  26784. $537 = HEAP32[$536>>2]|0;
  26785. $538 = (($537) + -1)|0;
  26786. HEAP32[$536>>2] = $538;
  26787. $$391455 = $$521468;$$391646 = $$521659;$$431034 = $$551046;$$431140 = $$561153;$$431550 = $$561563;$$44 = $$57;$$441247 = $$571260;$$441353 = $$571366;
  26788. label = 80;
  26789. continue;
  26790. }
  26791. else if ((label|0) == 139) {
  26792. label = 0;
  26793. $$541470$ph = $$531469;$$541661$ph = $$531660;$$571048$ph = $$561047;$$581155$ph = $$571154;$$581565$ph = $$571564;$$59$ph = $$58;$$591262$ph = $$581261;$$591368$ph = $$581367;
  26794. label = 140;
  26795. continue;
  26796. }
  26797. else if ((label|0) == 185) {
  26798. label = 0;
  26799. $709 = ($$73>>>0)<(15);
  26800. if (!($709)) {
  26801. $$691485 = $$651481;$$701677 = $$661673;$$731170 = $$691166;$$761583 = $$721579;$$77 = $$73;$$771386 = $$731382;
  26802. label = 198;
  26803. continue;
  26804. }
  26805. $710 = $10;
  26806. $711 = $$721579;
  26807. $712 = (($710) - ($711))|0;
  26808. $713 = ($712|0)<(2);
  26809. if ($713) {
  26810. $$661482 = $$651481;$$671674 = $$661673;$$691060 = $$681059;$$701167 = $$691166;$$711274 = $$701273;$$731580 = $$721579;$$74 = $$73;$$741383 = $$731382;
  26811. label = 187;
  26812. continue;
  26813. }
  26814. $744 = HEAP8[$$721579>>0]|0;
  26815. $745 = $744&255;
  26816. $746 = $745 << $$73;
  26817. $747 = ((($$721579)) + 1|0);
  26818. $748 = HEAP8[$747>>0]|0;
  26819. $749 = $748&255;
  26820. $750 = (($$73) + 8)|0;
  26821. $751 = $749 << $750;
  26822. $752 = $746 | $$731382;
  26823. $753 = $752 | $751;
  26824. $754 = ((($$721579)) + 2|0);
  26825. $755 = (($$73) + 16)|0;
  26826. $$691485 = $$651481;$$701677 = $$661673;$$731170 = $$691166;$$761583 = $754;$$77 = $755;$$771386 = $753;
  26827. label = 198;
  26828. continue;
  26829. }
  26830. }
  26831. if ((label|0) == 113) {
  26832. label = 0;
  26833. $449 = ($$461553>>>0)<($10>>>0);
  26834. if ($449) {
  26835. $$441460$ph = $$421458;$$441651$ph = $$421649;$$481039$ph = $$461037;$$481145$ph = $$461143;$$49$ph = $$47;$$491252$ph = $$471250;$$491358$ph = $$471356;$$sink1729 = $$461553;
  26836. label = 116;
  26837. continue;
  26838. } else {
  26839. $$431459 = $$421458;$$431650 = $$421649;$$471038 = $$461037;$$471144 = $$461143;$$471554 = $$461553;$$48 = $$47;$$481251 = $$471250;$$481357 = $$471356;
  26840. label = 114;
  26841. continue;
  26842. }
  26843. }
  26844. else if ((label|0) == 150) {
  26845. label = 0;
  26846. $569 = ($$591566>>>0)<($10>>>0);
  26847. if ($569) {
  26848. $$571473$ph = $$551471;$$571664$ph = $$551662;$$601051$ph = $$581049;$$611158$ph = $$591156;$$62$ph = $$60;$$621265$ph = $$601263;$$621371$ph = $$601369;$$sink1736 = $$591566;
  26849. label = 153;
  26850. continue;
  26851. } else {
  26852. $$561472 = $$551471;$$561663 = $$551662;$$591050 = $$581049;$$601157 = $$591156;$$601567 = $$591566;$$61 = $$60;$$611264 = $$601263;$$611370 = $$601369;
  26853. label = 151;
  26854. continue;
  26855. }
  26856. }
  26857. else if ((label|0) == 192) {
  26858. label = 0;
  26859. $734 = ($$731580>>>0)<($10>>>0);
  26860. if ($734) {
  26861. $$681484$ph = $$661482;$$691676$ph = $$671674;$$711062$ph = $$691060;$$721169$ph = $$701167;$$731276$ph = $$711274;$$76$ph = $$74;$$761385$ph = $$741383;$$sink1743 = $$731580;
  26862. label = 195;
  26863. continue;
  26864. } else {
  26865. $$671483 = $$661482;$$681675 = $$671674;$$701061 = $$691060;$$711168 = $$701167;$$721275 = $$711274;$$741581 = $$731580;$$75 = $$74;$$751384 = $$741383;
  26866. label = 193;
  26867. continue;
  26868. }
  26869. }
  26870. else if ((label|0) == 220) {
  26871. label = 0;
  26872. $834 = ((($0)) + 20|0);
  26873. $835 = HEAP32[$834>>2]|0;
  26874. $836 = $835 & 1;
  26875. $837 = ($836|0)==(0);
  26876. if ($837) {
  26877. $$01416 = $$761492;$$01607 = $$801687;$$41511 = $$851592;$$5 = $$86;$$51102 = $$831180;$$51208 = $$821285;$$51314 = $$861395;$$5996 = $$801071;
  26878. label = 14;
  26879. continue;
  26880. }
  26881. $838 = $6 & 1;
  26882. $839 = ($838|0)==(0);
  26883. if ($839) {
  26884. $$881504 = $$761492;$$921083 = $$801071;$$921699 = $$801687;$$941191 = $$831180;$$941297 = $$821285;$$971604 = $$851592;$$98 = $$86;$$981407 = $$861395;
  26885. label = 242;
  26886. continue;
  26887. } else {
  26888. $$801496 = $$761492;$$841075 = $$801071;$$841691 = $$801687;$$861289 = $$821285;$$891596 = $$851592;$$90 = $$86;$$901399 = $$861395;
  26889. label = 226;
  26890. continue;
  26891. }
  26892. }
  26893. }
  26894. if ((label|0) == 258) {
  26895. STACKTOP = sp;return ($$0951|0);
  26896. }
  26897. $892 = ((($0)) + 28|0);
  26898. $893 = HEAP32[$892>>2]|0;
  26899. $894 = $893 & 65535;
  26900. $895 = $893 >>> 16;
  26901. $896 = ($888|0)==(0);
  26902. if ($896) {
  26903. $$0937$lcssa = $895;$$0938$lcssa = $894;
  26904. } else {
  26905. $897 = (($888>>>0) % 5552)&-1;
  26906. $$01834 = $897;$$09371833 = $895;$$09381832 = $894;$$09431831 = $888;$$09441830 = $4;
  26907. while(1) {
  26908. $898 = ($$01834>>>0)>(7);
  26909. if ($898) {
  26910. $899 = (($$01834) + -8)|0;
  26911. $900 = $899 & -8;
  26912. $scevgep = ((($$09441830)) + 8|0);
  26913. $$09411816 = 0;$$11818 = $$09371833;$$19391817 = $$09381832;$$19451815 = $$09441830;
  26914. while(1) {
  26915. $904 = HEAP8[$$19451815>>0]|0;
  26916. $905 = $904&255;
  26917. $906 = (($905) + ($$19391817))|0;
  26918. $907 = (($906) + ($$11818))|0;
  26919. $908 = ((($$19451815)) + 1|0);
  26920. $909 = HEAP8[$908>>0]|0;
  26921. $910 = $909&255;
  26922. $911 = (($906) + ($910))|0;
  26923. $912 = (($907) + ($911))|0;
  26924. $913 = ((($$19451815)) + 2|0);
  26925. $914 = HEAP8[$913>>0]|0;
  26926. $915 = $914&255;
  26927. $916 = (($911) + ($915))|0;
  26928. $917 = (($912) + ($916))|0;
  26929. $918 = ((($$19451815)) + 3|0);
  26930. $919 = HEAP8[$918>>0]|0;
  26931. $920 = $919&255;
  26932. $921 = (($916) + ($920))|0;
  26933. $922 = (($917) + ($921))|0;
  26934. $923 = ((($$19451815)) + 4|0);
  26935. $924 = HEAP8[$923>>0]|0;
  26936. $925 = $924&255;
  26937. $926 = (($921) + ($925))|0;
  26938. $927 = (($922) + ($926))|0;
  26939. $928 = ((($$19451815)) + 5|0);
  26940. $929 = HEAP8[$928>>0]|0;
  26941. $930 = $929&255;
  26942. $931 = (($926) + ($930))|0;
  26943. $932 = (($927) + ($931))|0;
  26944. $933 = ((($$19451815)) + 6|0);
  26945. $934 = HEAP8[$933>>0]|0;
  26946. $935 = $934&255;
  26947. $936 = (($931) + ($935))|0;
  26948. $937 = (($932) + ($936))|0;
  26949. $938 = ((($$19451815)) + 7|0);
  26950. $939 = HEAP8[$938>>0]|0;
  26951. $940 = $939&255;
  26952. $941 = (($936) + ($940))|0;
  26953. $942 = (($937) + ($941))|0;
  26954. $943 = (($$09411816) + 8)|0;
  26955. $944 = ((($$19451815)) + 8|0);
  26956. $945 = $943 | 7;
  26957. $946 = ($945>>>0)<($$01834>>>0);
  26958. if ($946) {
  26959. $$09411816 = $943;$$11818 = $942;$$19391817 = $941;$$19451815 = $944;
  26960. } else {
  26961. break;
  26962. }
  26963. }
  26964. $901 = (($900) + 8)|0;
  26965. $scevgep1947 = (($scevgep) + ($900)|0);
  26966. $$0941$lcssa = $901;$$1$lcssa = $942;$$1939$lcssa = $941;$$1945$lcssa = $scevgep1947;
  26967. } else {
  26968. $$0941$lcssa = 0;$$1$lcssa = $$09371833;$$1939$lcssa = $$09381832;$$1945$lcssa = $$09441830;
  26969. }
  26970. $902 = ($$01834>>>0)>($$0941$lcssa>>>0);
  26971. if ($902) {
  26972. $903 = (($$01834) - ($$0941$lcssa))|0;
  26973. $$19421823 = $$0941$lcssa;$$21825 = $$1$lcssa;$$29401824 = $$1939$lcssa;$$29461822 = $$1945$lcssa;
  26974. while(1) {
  26975. $947 = ((($$29461822)) + 1|0);
  26976. $948 = HEAP8[$$29461822>>0]|0;
  26977. $949 = $948&255;
  26978. $950 = (($949) + ($$29401824))|0;
  26979. $951 = (($950) + ($$21825))|0;
  26980. $952 = (($$19421823) + 1)|0;
  26981. $exitcond = ($952|0)==($$01834|0);
  26982. if ($exitcond) {
  26983. break;
  26984. } else {
  26985. $$19421823 = $952;$$21825 = $951;$$29401824 = $950;$$29461822 = $947;
  26986. }
  26987. }
  26988. $scevgep1948 = (($$1945$lcssa) + ($903)|0);
  26989. $$2$lcssa = $951;$$2940$lcssa = $950;$$2946$lcssa = $scevgep1948;
  26990. } else {
  26991. $$2$lcssa = $$1$lcssa;$$2940$lcssa = $$1939$lcssa;$$2946$lcssa = $$1945$lcssa;
  26992. }
  26993. $953 = (($$2940$lcssa>>>0) % 65521)&-1;
  26994. $954 = (($$2$lcssa>>>0) % 65521)&-1;
  26995. $955 = (($$09431831) - ($$01834))|0;
  26996. $956 = ($955|0)==(0);
  26997. if ($956) {
  26998. $$0937$lcssa = $954;$$0938$lcssa = $953;
  26999. break;
  27000. } else {
  27001. $$01834 = 5552;$$09371833 = $954;$$09381832 = $953;$$09431831 = $955;$$09441830 = $$2946$lcssa;
  27002. }
  27003. }
  27004. }
  27005. $957 = $$0937$lcssa << 16;
  27006. $958 = $957 | $$0938$lcssa;
  27007. HEAP32[$892>>2] = $958;
  27008. $959 = ($$1961|0)!=(0);
  27009. $960 = $6 & 1;
  27010. $961 = ($960|0)==(0);
  27011. $or$cond1752 = $961 | $959;
  27012. if ($or$cond1752) {
  27013. $$0951 = $$1961;
  27014. STACKTOP = sp;return ($$0951|0);
  27015. } else {
  27016. $962 = ((($0)) + 16|0);
  27017. $963 = HEAP32[$962>>2]|0;
  27018. $964 = ($958|0)==($963|0);
  27019. $$1961$ = $964 ? $$1961 : -2;
  27020. STACKTOP = sp;return ($$1961$|0);
  27021. }
  27022. return (0)|0;
  27023. }
  27024. function _LoadTexture($0,$1) {
  27025. $0 = $0|0;
  27026. $1 = $1|0;
  27027. var $$byval_copy1 = 0, $$sroa$0$0 = 0, $$sroa$0$0$copyload = 0, $$sroa$5 = 0, $$sroa$5$0$$sroa_idx = 0, $$sroa$5$0$$sroa_idx5 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  27028. sp = STACKTOP;
  27029. STACKTOP = STACKTOP + 80|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(80|0);
  27030. $$byval_copy1 = sp + 60|0;
  27031. $vararg_buffer = sp + 16|0;
  27032. $$sroa$5 = sp;
  27033. $2 = sp + 20|0;
  27034. $3 = sp + 40|0;
  27035. _LoadImage($2,$1);
  27036. $4 = HEAP32[$2>>2]|0;
  27037. $5 = ($4|0)==(0|0);
  27038. if ($5) {
  27039. _TraceLog(2,11944,$vararg_buffer);
  27040. $$sroa$0$0 = 0;
  27041. } else {
  27042. ;HEAP32[$$byval_copy1>>2]=HEAP32[$2>>2]|0;HEAP32[$$byval_copy1+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$$byval_copy1+8>>2]=HEAP32[$2+8>>2]|0;HEAP32[$$byval_copy1+12>>2]=HEAP32[$2+12>>2]|0;HEAP32[$$byval_copy1+16>>2]=HEAP32[$2+16>>2]|0;
  27043. _LoadTextureFromImage($3,$$byval_copy1);
  27044. $$sroa$0$0$copyload = HEAP32[$3>>2]|0;
  27045. $$sroa$5$0$$sroa_idx = ((($3)) + 4|0);
  27046. ;HEAP32[$$sroa$5>>2]=HEAP32[$$sroa$5$0$$sroa_idx>>2]|0;HEAP32[$$sroa$5+4>>2]=HEAP32[$$sroa$5$0$$sroa_idx+4>>2]|0;HEAP32[$$sroa$5+8>>2]=HEAP32[$$sroa$5$0$$sroa_idx+8>>2]|0;HEAP32[$$sroa$5+12>>2]=HEAP32[$$sroa$5$0$$sroa_idx+12>>2]|0;
  27047. ;HEAP32[$$byval_copy1>>2]=HEAP32[$2>>2]|0;HEAP32[$$byval_copy1+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$$byval_copy1+8>>2]=HEAP32[$2+8>>2]|0;HEAP32[$$byval_copy1+12>>2]=HEAP32[$2+12>>2]|0;HEAP32[$$byval_copy1+16>>2]=HEAP32[$2+16>>2]|0;
  27048. _UnloadImage($$byval_copy1);
  27049. $$sroa$0$0 = $$sroa$0$0$copyload;
  27050. }
  27051. HEAP32[$0>>2] = $$sroa$0$0;
  27052. $$sroa$5$0$$sroa_idx5 = ((($0)) + 4|0);
  27053. ;HEAP32[$$sroa$5$0$$sroa_idx5>>2]=HEAP32[$$sroa$5>>2]|0;HEAP32[$$sroa$5$0$$sroa_idx5+4>>2]=HEAP32[$$sroa$5+4>>2]|0;HEAP32[$$sroa$5$0$$sroa_idx5+8>>2]=HEAP32[$$sroa$5+8>>2]|0;HEAP32[$$sroa$5$0$$sroa_idx5+12>>2]=HEAP32[$$sroa$5+12>>2]|0;
  27054. STACKTOP = sp;return;
  27055. }
  27056. function _GetDefaultFont($0) {
  27057. $0 = $0|0;
  27058. var label = 0, sp = 0;
  27059. sp = STACKTOP;
  27060. ;HEAP32[$0>>2]=HEAP32[18876>>2]|0;HEAP32[$0+4>>2]=HEAP32[18876+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[18876+8>>2]|0;HEAP32[$0+12>>2]=HEAP32[18876+12>>2]|0;HEAP32[$0+16>>2]=HEAP32[18876+16>>2]|0;HEAP32[$0+20>>2]=HEAP32[18876+20>>2]|0;HEAP32[$0+24>>2]=HEAP32[18876+24>>2]|0;HEAP32[$0+28>>2]=HEAP32[18876+28>>2]|0;
  27061. return;
  27062. }
  27063. function _GetCharIndex($0,$1) {
  27064. $0 = $0|0;
  27065. $1 = $1|0;
  27066. var $$08 = 0, $$09 = 0, $10 = 0, $11 = 0, $12 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  27067. sp = STACKTOP;
  27068. $2 = ((($0)) + 24|0);
  27069. $3 = HEAP32[$2>>2]|0;
  27070. $4 = ($3|0)>(0);
  27071. if (!($4)) {
  27072. $$08 = 0;
  27073. return ($$08|0);
  27074. }
  27075. $5 = ((($0)) + 28|0);
  27076. $6 = HEAP32[$5>>2]|0;
  27077. $$09 = 0;
  27078. while(1) {
  27079. $7 = (($6) + ($$09<<5)|0);
  27080. $8 = HEAP32[$7>>2]|0;
  27081. $9 = ($8|0)==($1|0);
  27082. if ($9) {
  27083. $$08 = $$09;
  27084. label = 5;
  27085. break;
  27086. }
  27087. $10 = (($$09) + 1)|0;
  27088. $11 = HEAP32[$2>>2]|0;
  27089. $12 = ($10|0)<($11|0);
  27090. if ($12) {
  27091. $$09 = $10;
  27092. } else {
  27093. $$08 = 0;
  27094. label = 5;
  27095. break;
  27096. }
  27097. }
  27098. if ((label|0) == 5) {
  27099. return ($$08|0);
  27100. }
  27101. return (0)|0;
  27102. }
  27103. function _DrawTexturePro($0,$1,$2,$3,$4,$5) {
  27104. $0 = $0|0;
  27105. $1 = $1|0;
  27106. $2 = $2|0;
  27107. $3 = $3|0;
  27108. $4 = +$4;
  27109. $5 = $5|0;
  27110. var $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0.0, $22 = 0, $23 = 0, $24 = 0.0, $25 = 0.0, $26 = 0.0, $27 = 0, $28 = 0.0, $29 = 0.0;
  27111. var $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0.0, $39 = 0, $40 = 0, $41 = 0.0, $42 = 0.0, $43 = 0, $44 = 0, $45 = 0.0, $46 = 0, $47 = 0, $48 = 0.0, $49 = 0.0;
  27112. var $50 = 0, $51 = 0.0, $52 = 0, $53 = 0.0, $54 = 0.0, $55 = 0, $56 = 0, $57 = 0, $58 = 0.0, $59 = 0, $6 = 0, $60 = 0.0, $61 = 0.0, $62 = 0, $63 = 0, $64 = 0.0, $65 = 0, $66 = 0, $67 = 0, $68 = 0.0;
  27113. var $69 = 0, $7 = 0, $70 = 0.0, $71 = 0.0, $72 = 0, $73 = 0, $74 = 0, $75 = 0.0, $76 = 0, $77 = 0.0, $78 = 0.0, $79 = 0, $8 = 0, $80 = 0, $81 = 0.0, $82 = 0, $83 = 0.0, $84 = 0, $85 = 0, $86 = 0;
  27114. var $87 = 0.0, $88 = 0, $89 = 0.0, $9 = 0, $90 = 0.0, $91 = 0, $92 = 0.0, $93 = 0, $94 = 0.0, $95 = 0.0, $96 = 0, $97 = 0.0, label = 0, sp = 0;
  27115. sp = STACKTOP;
  27116. $6 = HEAP32[$0>>2]|0;
  27117. $7 = ($6|0)==(0);
  27118. if ($7) {
  27119. return;
  27120. }
  27121. $8 = ((($1)) + 8|0);
  27122. $9 = HEAP32[$8>>2]|0;
  27123. $10 = ($9|0)<(0);
  27124. if ($10) {
  27125. $11 = HEAP32[$1>>2]|0;
  27126. $12 = (($11) - ($9))|0;
  27127. HEAP32[$1>>2] = $12;
  27128. }
  27129. $13 = ((($1)) + 12|0);
  27130. $14 = HEAP32[$13>>2]|0;
  27131. $15 = ($14|0)<(0);
  27132. if ($15) {
  27133. $16 = ((($1)) + 4|0);
  27134. $17 = HEAP32[$16>>2]|0;
  27135. $18 = (($17) - ($14))|0;
  27136. HEAP32[$16>>2] = $18;
  27137. }
  27138. $19 = HEAP32[$0>>2]|0;
  27139. _rlEnableTexture($19);
  27140. _rlPushMatrix();
  27141. $20 = HEAP32[$2>>2]|0;
  27142. $21 = (+($20|0));
  27143. $22 = ((($2)) + 4|0);
  27144. $23 = HEAP32[$22>>2]|0;
  27145. $24 = (+($23|0));
  27146. _rlTranslatef($21,$24,0.0);
  27147. _rlRotatef($4,0.0,0.0,1.0);
  27148. $25 = +HEAPF32[$3>>2];
  27149. $26 = -$25;
  27150. $27 = ((($3)) + 4|0);
  27151. $28 = +HEAPF32[$27>>2];
  27152. $29 = -$28;
  27153. _rlTranslatef($26,$29,0.0);
  27154. _rlBegin(7);
  27155. $30 = HEAP8[$5>>0]|0;
  27156. $31 = ((($5)) + 1|0);
  27157. $32 = HEAP8[$31>>0]|0;
  27158. $33 = ((($5)) + 2|0);
  27159. $34 = HEAP8[$33>>0]|0;
  27160. $35 = ((($5)) + 3|0);
  27161. $36 = HEAP8[$35>>0]|0;
  27162. _rlColor4ub($30,$32,$34,$36);
  27163. $37 = HEAP32[$1>>2]|0;
  27164. $38 = (+($37|0));
  27165. $39 = ((($0)) + 4|0);
  27166. $40 = HEAP32[$39>>2]|0;
  27167. $41 = (+($40|0));
  27168. $42 = $38 / $41;
  27169. $43 = ((($1)) + 4|0);
  27170. $44 = HEAP32[$43>>2]|0;
  27171. $45 = (+($44|0));
  27172. $46 = ((($0)) + 8|0);
  27173. $47 = HEAP32[$46>>2]|0;
  27174. $48 = (+($47|0));
  27175. $49 = $45 / $48;
  27176. _rlTexCoord2f($42,$49);
  27177. _rlVertex2f(0.0,0.0);
  27178. $50 = HEAP32[$1>>2]|0;
  27179. $51 = (+($50|0));
  27180. $52 = HEAP32[$39>>2]|0;
  27181. $53 = (+($52|0));
  27182. $54 = $51 / $53;
  27183. $55 = HEAP32[$43>>2]|0;
  27184. $56 = HEAP32[$13>>2]|0;
  27185. $57 = (($56) + ($55))|0;
  27186. $58 = (+($57|0));
  27187. $59 = HEAP32[$46>>2]|0;
  27188. $60 = (+($59|0));
  27189. $61 = $58 / $60;
  27190. _rlTexCoord2f($54,$61);
  27191. $62 = ((($2)) + 12|0);
  27192. $63 = HEAP32[$62>>2]|0;
  27193. $64 = (+($63|0));
  27194. _rlVertex2f(0.0,$64);
  27195. $65 = HEAP32[$1>>2]|0;
  27196. $66 = HEAP32[$8>>2]|0;
  27197. $67 = (($66) + ($65))|0;
  27198. $68 = (+($67|0));
  27199. $69 = HEAP32[$39>>2]|0;
  27200. $70 = (+($69|0));
  27201. $71 = $68 / $70;
  27202. $72 = HEAP32[$43>>2]|0;
  27203. $73 = HEAP32[$13>>2]|0;
  27204. $74 = (($73) + ($72))|0;
  27205. $75 = (+($74|0));
  27206. $76 = HEAP32[$46>>2]|0;
  27207. $77 = (+($76|0));
  27208. $78 = $75 / $77;
  27209. _rlTexCoord2f($71,$78);
  27210. $79 = ((($2)) + 8|0);
  27211. $80 = HEAP32[$79>>2]|0;
  27212. $81 = (+($80|0));
  27213. $82 = HEAP32[$62>>2]|0;
  27214. $83 = (+($82|0));
  27215. _rlVertex2f($81,$83);
  27216. $84 = HEAP32[$1>>2]|0;
  27217. $85 = HEAP32[$8>>2]|0;
  27218. $86 = (($85) + ($84))|0;
  27219. $87 = (+($86|0));
  27220. $88 = HEAP32[$39>>2]|0;
  27221. $89 = (+($88|0));
  27222. $90 = $87 / $89;
  27223. $91 = HEAP32[$43>>2]|0;
  27224. $92 = (+($91|0));
  27225. $93 = HEAP32[$46>>2]|0;
  27226. $94 = (+($93|0));
  27227. $95 = $92 / $94;
  27228. _rlTexCoord2f($90,$95);
  27229. $96 = HEAP32[$79>>2]|0;
  27230. $97 = (+($96|0));
  27231. _rlVertex2f($97,0.0);
  27232. _rlEnd();
  27233. _rlPopMatrix();
  27234. _rlDisableTexture();
  27235. return;
  27236. }
  27237. function _DrawText($0,$1,$2,$3,$4) {
  27238. $0 = $0|0;
  27239. $1 = $1|0;
  27240. $2 = $2|0;
  27241. $3 = $3|0;
  27242. $4 = $4|0;
  27243. var $$ = 0, $$byval_copy = 0, $$byval_copy1 = 0, $$byval_copy2 = 0, $10 = 0.0, $11 = 0, $12 = 0.0, $13 = 0, $14 = 0, $15 = 0.0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  27244. sp = STACKTOP;
  27245. STACKTOP = STACKTOP + 128|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(128|0);
  27246. $$byval_copy2 = sp + 112|0;
  27247. $$byval_copy1 = sp + 104|0;
  27248. $$byval_copy = sp + 72|0;
  27249. $5 = sp + 32|0;
  27250. $6 = sp + 64|0;
  27251. $7 = sp;
  27252. _GetDefaultFont($5);
  27253. $8 = HEAP32[$5>>2]|0;
  27254. $9 = ($8|0)==(0);
  27255. if ($9) {
  27256. STACKTOP = sp;return;
  27257. }
  27258. $10 = (+($1|0));
  27259. HEAPF32[$6>>2] = $10;
  27260. $11 = ((($6)) + 4|0);
  27261. $12 = (+($2|0));
  27262. HEAPF32[$11>>2] = $12;
  27263. $13 = ($3|0)>(10);
  27264. $$ = $13 ? $3 : 10;
  27265. $14 = (($$>>>0) / 10)&-1;
  27266. _GetDefaultFont($7);
  27267. $15 = (+($$|0));
  27268. ;HEAP32[$$byval_copy>>2]=HEAP32[$7>>2]|0;HEAP32[$$byval_copy+4>>2]=HEAP32[$7+4>>2]|0;HEAP32[$$byval_copy+8>>2]=HEAP32[$7+8>>2]|0;HEAP32[$$byval_copy+12>>2]=HEAP32[$7+12>>2]|0;HEAP32[$$byval_copy+16>>2]=HEAP32[$7+16>>2]|0;HEAP32[$$byval_copy+20>>2]=HEAP32[$7+20>>2]|0;HEAP32[$$byval_copy+24>>2]=HEAP32[$7+24>>2]|0;HEAP32[$$byval_copy+28>>2]=HEAP32[$7+28>>2]|0;
  27269. ;HEAP32[$$byval_copy1>>2]=HEAP32[$6>>2]|0;HEAP32[$$byval_copy1+4>>2]=HEAP32[$6+4>>2]|0;
  27270. ;HEAP8[$$byval_copy2>>0]=HEAP8[$4>>0]|0;HEAP8[$$byval_copy2+1>>0]=HEAP8[$4+1>>0]|0;HEAP8[$$byval_copy2+2>>0]=HEAP8[$4+2>>0]|0;HEAP8[$$byval_copy2+3>>0]=HEAP8[$4+3>>0]|0;
  27271. _DrawTextEx($$byval_copy,$0,$$byval_copy1,$15,$14,$$byval_copy2);
  27272. STACKTOP = sp;return;
  27273. }
  27274. function _DrawTextEx($0,$1,$2,$3,$4,$5) {
  27275. $0 = $0|0;
  27276. $1 = $1|0;
  27277. $2 = $2|0;
  27278. $3 = +$3;
  27279. $4 = $4|0;
  27280. $5 = $5|0;
  27281. var $$04954 = 0, $$05153 = 0, $$055 = 0, $$1 = 0, $$150 = 0, $$152 = 0, $$2 = 0, $$byval_copy1 = 0, $$byval_copy2 = 0, $$byval_copy3 = 0, $$byval_copy4 = 0, $$byval_copy5 = 0, $$sink = 0, $10 = 0, $11 = 0.0, $12 = 0.0, $13 = 0, $14 = 0, $15 = 0.0, $16 = 0;
  27282. var $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0.0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0.0, $28 = 0.0, $29 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0;
  27283. var $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0.0, $45 = 0.0, $46 = 0, $47 = 0, $48 = 0.0, $49 = 0.0, $50 = 0.0, $51 = 0, $52 = 0.0, $53 = 0.0, $54 = 0.0, $55 = 0, $56 = 0;
  27284. var $57 = 0.0, $58 = 0.0, $59 = 0.0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0.0, $64 = 0.0, $65 = 0, $66 = 0, $67 = 0, $68 = 0.0, $69 = 0.0, $7 = 0, $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0;
  27285. var $75 = 0, $76 = 0, $77 = 0.0, $78 = 0.0, $79 = 0.0, $8 = 0, $80 = 0, $81 = 0, $82 = 0.0, $83 = 0.0, $84 = 0.0, $85 = 0, $86 = 0, $87 = 0, $88 = 0, $9 = 0, label = 0, sp = 0;
  27286. sp = STACKTOP;
  27287. STACKTOP = STACKTOP + 128|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(128|0);
  27288. $$byval_copy5 = sp + 88|0;
  27289. $$byval_copy4 = sp + 80|0;
  27290. $$byval_copy3 = sp + 64|0;
  27291. $$byval_copy2 = sp + 48|0;
  27292. $$byval_copy1 = sp + 24|0;
  27293. $6 = sp + 8|0;
  27294. $7 = sp;
  27295. $8 = (_strlen($1)|0);
  27296. $9 = ((($0)) + 20|0);
  27297. $10 = HEAP32[$9>>2]|0;
  27298. $11 = (+($10|0));
  27299. $12 = $3 / $11;
  27300. $13 = ($8|0)>(0);
  27301. if (!($13)) {
  27302. STACKTOP = sp;return;
  27303. }
  27304. $14 = ((($0)) + 28|0);
  27305. $15 = +HEAPF32[$2>>2];
  27306. $16 = ((($6)) + 4|0);
  27307. $17 = ((($2)) + 4|0);
  27308. $18 = ((($6)) + 8|0);
  27309. $19 = ((($6)) + 12|0);
  27310. $20 = ((($7)) + 4|0);
  27311. $21 = (+($4|0));
  27312. $$04954 = 0;$$05153 = 0;$$055 = 0;
  27313. while(1) {
  27314. $22 = (($1) + ($$055)|0);
  27315. $23 = HEAP8[$22>>0]|0;
  27316. switch ($23<<24>>24) {
  27317. case 10: {
  27318. $24 = HEAP32[$9>>2]|0;
  27319. $25 = (($24|0) / 2)&-1;
  27320. $26 = (($25) + ($24))|0;
  27321. $27 = (+($26|0));
  27322. $28 = $12 * $27;
  27323. $29 = (~~(($28)));
  27324. $30 = (($29) + ($$05153))|0;
  27325. $$150 = 0;$$152 = $30;$$2 = $$055;
  27326. break;
  27327. }
  27328. case -62: {
  27329. $31 = (($$055) + 1)|0;
  27330. $32 = (($1) + ($31)|0);
  27331. $33 = HEAP8[$32>>0]|0;
  27332. $34 = $33&255;
  27333. $$1 = $31;$$sink = $34;
  27334. label = 9;
  27335. break;
  27336. }
  27337. case -61: {
  27338. $35 = (($$055) + 1)|0;
  27339. $36 = (($1) + ($35)|0);
  27340. $37 = HEAP8[$36>>0]|0;
  27341. $38 = $37&255;
  27342. $39 = (($38) + 64)|0;
  27343. $$1 = $35;$$sink = $39;
  27344. label = 9;
  27345. break;
  27346. }
  27347. default: {
  27348. $40 = $23 << 24 >> 24;
  27349. $$1 = $$055;$$sink = $40;
  27350. label = 9;
  27351. }
  27352. }
  27353. do {
  27354. if ((label|0) == 9) {
  27355. label = 0;
  27356. ;HEAP32[$$byval_copy5>>2]=HEAP32[$0>>2]|0;HEAP32[$$byval_copy5+4>>2]=HEAP32[$0+4>>2]|0;HEAP32[$$byval_copy5+8>>2]=HEAP32[$0+8>>2]|0;HEAP32[$$byval_copy5+12>>2]=HEAP32[$0+12>>2]|0;HEAP32[$$byval_copy5+16>>2]=HEAP32[$0+16>>2]|0;HEAP32[$$byval_copy5+20>>2]=HEAP32[$0+20>>2]|0;HEAP32[$$byval_copy5+24>>2]=HEAP32[$0+24>>2]|0;HEAP32[$$byval_copy5+28>>2]=HEAP32[$0+28>>2]|0;
  27357. $41 = (_GetCharIndex($$byval_copy5,$$sink)|0);
  27358. $42 = HEAP32[$14>>2]|0;
  27359. $43 = (((($42) + ($41<<5)|0)) + 4|0);
  27360. $44 = (+($$04954|0));
  27361. $45 = $44 + $15;
  27362. $46 = (((($42) + ($41<<5)|0)) + 20|0);
  27363. $47 = HEAP32[$46>>2]|0;
  27364. $48 = (+($47|0));
  27365. $49 = $12 * $48;
  27366. $50 = $45 + $49;
  27367. $51 = (~~(($50)));
  27368. HEAP32[$6>>2] = $51;
  27369. $52 = +HEAPF32[$17>>2];
  27370. $53 = (+($$05153|0));
  27371. $54 = $53 + $52;
  27372. $55 = (((($42) + ($41<<5)|0)) + 24|0);
  27373. $56 = HEAP32[$55>>2]|0;
  27374. $57 = (+($56|0));
  27375. $58 = $12 * $57;
  27376. $59 = $54 + $58;
  27377. $60 = (~~(($59)));
  27378. HEAP32[$16>>2] = $60;
  27379. $61 = (((($42) + ($41<<5)|0)) + 12|0);
  27380. $62 = HEAP32[$61>>2]|0;
  27381. $63 = (+($62|0));
  27382. $64 = $12 * $63;
  27383. $65 = (~~(($64)));
  27384. HEAP32[$18>>2] = $65;
  27385. $66 = (((($42) + ($41<<5)|0)) + 16|0);
  27386. $67 = HEAP32[$66>>2]|0;
  27387. $68 = (+($67|0));
  27388. $69 = $12 * $68;
  27389. $70 = (~~(($69)));
  27390. HEAP32[$19>>2] = $70;
  27391. HEAPF32[$7>>2] = 0.0;
  27392. HEAPF32[$20>>2] = 0.0;
  27393. ;HEAP32[$$byval_copy1>>2]=HEAP32[$0>>2]|0;HEAP32[$$byval_copy1+4>>2]=HEAP32[$0+4>>2]|0;HEAP32[$$byval_copy1+8>>2]=HEAP32[$0+8>>2]|0;HEAP32[$$byval_copy1+12>>2]=HEAP32[$0+12>>2]|0;HEAP32[$$byval_copy1+16>>2]=HEAP32[$0+16>>2]|0;
  27394. ;HEAP32[$$byval_copy2>>2]=HEAP32[$43>>2]|0;HEAP32[$$byval_copy2+4>>2]=HEAP32[$43+4>>2]|0;HEAP32[$$byval_copy2+8>>2]=HEAP32[$43+8>>2]|0;HEAP32[$$byval_copy2+12>>2]=HEAP32[$43+12>>2]|0;
  27395. ;HEAP32[$$byval_copy3>>2]=HEAP32[$6>>2]|0;HEAP32[$$byval_copy3+4>>2]=HEAP32[$6+4>>2]|0;HEAP32[$$byval_copy3+8>>2]=HEAP32[$6+8>>2]|0;HEAP32[$$byval_copy3+12>>2]=HEAP32[$6+12>>2]|0;
  27396. ;HEAP32[$$byval_copy4>>2]=HEAP32[$7>>2]|0;HEAP32[$$byval_copy4+4>>2]=HEAP32[$7+4>>2]|0;
  27397. ;HEAP8[$$byval_copy5>>0]=HEAP8[$5>>0]|0;HEAP8[$$byval_copy5+1>>0]=HEAP8[$5+1>>0]|0;HEAP8[$$byval_copy5+2>>0]=HEAP8[$5+2>>0]|0;HEAP8[$$byval_copy5+3>>0]=HEAP8[$5+3>>0]|0;
  27398. _DrawTexturePro($$byval_copy1,$$byval_copy2,$$byval_copy3,$$byval_copy4,0.0,$$byval_copy5);
  27399. $71 = HEAP32[$14>>2]|0;
  27400. $72 = (((($71) + ($41<<5)|0)) + 28|0);
  27401. $73 = HEAP32[$72>>2]|0;
  27402. $74 = ($73|0)==(0);
  27403. if ($74) {
  27404. $75 = (((($71) + ($41<<5)|0)) + 12|0);
  27405. $76 = HEAP32[$75>>2]|0;
  27406. $77 = (+($76|0));
  27407. $78 = $12 * $77;
  27408. $79 = $21 + $78;
  27409. $80 = (~~(($79)));
  27410. $81 = (($80) + ($$04954))|0;
  27411. $$150 = $81;$$152 = $$05153;$$2 = $$1;
  27412. break;
  27413. } else {
  27414. $82 = (+($73|0));
  27415. $83 = $12 * $82;
  27416. $84 = $21 + $83;
  27417. $85 = (~~(($84)));
  27418. $86 = (($85) + ($$04954))|0;
  27419. $$150 = $86;$$152 = $$05153;$$2 = $$1;
  27420. break;
  27421. }
  27422. }
  27423. } while(0);
  27424. $87 = (($$2) + 1)|0;
  27425. $88 = ($87|0)<($8|0);
  27426. if ($88) {
  27427. $$04954 = $$150;$$05153 = $$152;$$055 = $87;
  27428. } else {
  27429. break;
  27430. }
  27431. }
  27432. STACKTOP = sp;return;
  27433. }
  27434. function _FormatText($0,$varargs) {
  27435. $0 = $0|0;
  27436. $varargs = $varargs|0;
  27437. var $1 = 0, label = 0, sp = 0;
  27438. sp = STACKTOP;
  27439. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  27440. $1 = sp;
  27441. HEAP32[$1>>2] = $varargs;
  27442. (_vsprintf(22963,$0,$1)|0);
  27443. STACKTOP = sp;return (22963|0);
  27444. }
  27445. function _DrawFPS($0,$1) {
  27446. $0 = $0|0;
  27447. $1 = $1|0;
  27448. var $$byval_copy = 0, $$sink = 0, $10 = 0, $11 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  27449. sp = STACKTOP;
  27450. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  27451. $$byval_copy = sp;
  27452. $2 = sp + 4|0;
  27453. $3 = HEAP32[5272]|0;
  27454. $4 = HEAP32[922]|0;
  27455. $5 = ($3|0)<($4|0);
  27456. if ($5) {
  27457. $6 = (($3) + 1)|0;
  27458. $$sink = $6;
  27459. } else {
  27460. $7 = (_GetFPS()|0);
  27461. HEAP32[5273] = $7;
  27462. HEAP32[922] = $7;
  27463. $$sink = 0;
  27464. }
  27465. HEAP32[5272] = $$sink;
  27466. $8 = HEAP32[5273]|0;
  27467. HEAP32[$$byval_copy>>2] = $8;
  27468. (_FormatText(11973,$$byval_copy)|0);
  27469. HEAP8[$2>>0] = 0;
  27470. $9 = ((($2)) + 1|0);
  27471. HEAP8[$9>>0] = -98;
  27472. $10 = ((($2)) + 2|0);
  27473. HEAP8[$10>>0] = 47;
  27474. $11 = ((($2)) + 3|0);
  27475. HEAP8[$11>>0] = -1;
  27476. ;HEAP8[$$byval_copy>>0]=HEAP8[$2>>0]|0;HEAP8[$$byval_copy+1>>0]=HEAP8[$2+1>>0]|0;HEAP8[$$byval_copy+2>>0]=HEAP8[$2+2>>0]|0;HEAP8[$$byval_copy+3>>0]=HEAP8[$2+3>>0]|0;
  27477. _DrawText(22963,$0,$1,20,$$byval_copy);
  27478. STACKTOP = sp;return;
  27479. }
  27480. function _DrawLine3D($0,$1,$2) {
  27481. $0 = $0|0;
  27482. $1 = $1|0;
  27483. $2 = $2|0;
  27484. var $10 = 0.0, $11 = 0, $12 = 0.0, $13 = 0, $14 = 0.0, $15 = 0.0, $16 = 0, $17 = 0.0, $18 = 0, $19 = 0.0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  27485. sp = STACKTOP;
  27486. _rlBegin(1);
  27487. $3 = HEAP8[$2>>0]|0;
  27488. $4 = ((($2)) + 1|0);
  27489. $5 = HEAP8[$4>>0]|0;
  27490. $6 = ((($2)) + 2|0);
  27491. $7 = HEAP8[$6>>0]|0;
  27492. $8 = ((($2)) + 3|0);
  27493. $9 = HEAP8[$8>>0]|0;
  27494. _rlColor4ub($3,$5,$7,$9);
  27495. $10 = +HEAPF32[$0>>2];
  27496. $11 = ((($0)) + 4|0);
  27497. $12 = +HEAPF32[$11>>2];
  27498. $13 = ((($0)) + 8|0);
  27499. $14 = +HEAPF32[$13>>2];
  27500. _rlVertex3f($10,$12,$14);
  27501. $15 = +HEAPF32[$1>>2];
  27502. $16 = ((($1)) + 4|0);
  27503. $17 = +HEAPF32[$16>>2];
  27504. $18 = ((($1)) + 8|0);
  27505. $19 = +HEAPF32[$18>>2];
  27506. _rlVertex3f($15,$17,$19);
  27507. _rlEnd();
  27508. return;
  27509. }
  27510. function _DrawCube($0,$1,$2,$3,$4) {
  27511. $0 = $0|0;
  27512. $1 = +$1;
  27513. $2 = +$2;
  27514. $3 = +$3;
  27515. $4 = $4|0;
  27516. var $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0.0, $18 = 0.0, $19 = 0.0, $20 = 0.0, $21 = 0.0, $22 = 0.0, $23 = 0.0, $24 = 0.0, $25 = 0.0, $5 = 0.0, $6 = 0, $7 = 0.0, $8 = 0;
  27517. var $9 = 0.0, label = 0, sp = 0;
  27518. sp = STACKTOP;
  27519. _rlPushMatrix();
  27520. $5 = +HEAPF32[$0>>2];
  27521. $6 = ((($0)) + 4|0);
  27522. $7 = +HEAPF32[$6>>2];
  27523. $8 = ((($0)) + 8|0);
  27524. $9 = +HEAPF32[$8>>2];
  27525. _rlTranslatef($5,$7,$9);
  27526. _rlBegin(4);
  27527. $10 = HEAP8[$4>>0]|0;
  27528. $11 = ((($4)) + 1|0);
  27529. $12 = HEAP8[$11>>0]|0;
  27530. $13 = ((($4)) + 2|0);
  27531. $14 = HEAP8[$13>>0]|0;
  27532. $15 = ((($4)) + 3|0);
  27533. $16 = HEAP8[$15>>0]|0;
  27534. _rlColor4ub($10,$12,$14,$16);
  27535. $17 = $1 * 0.5;
  27536. $18 = 0.0 - $17;
  27537. $19 = $2 * 0.5;
  27538. $20 = 0.0 - $19;
  27539. $21 = $3 * 0.5;
  27540. $22 = $21 + 0.0;
  27541. _rlVertex3f($18,$20,$22);
  27542. $23 = $17 + 0.0;
  27543. _rlVertex3f($23,$20,$22);
  27544. $24 = $19 + 0.0;
  27545. _rlVertex3f($18,$24,$22);
  27546. _rlVertex3f($23,$24,$22);
  27547. _rlVertex3f($18,$24,$22);
  27548. _rlVertex3f($23,$20,$22);
  27549. $25 = 0.0 - $21;
  27550. _rlVertex3f($18,$20,$25);
  27551. _rlVertex3f($18,$24,$25);
  27552. _rlVertex3f($23,$20,$25);
  27553. _rlVertex3f($23,$24,$25);
  27554. _rlVertex3f($23,$20,$25);
  27555. _rlVertex3f($18,$24,$25);
  27556. _rlVertex3f($18,$24,$25);
  27557. _rlVertex3f($18,$24,$22);
  27558. _rlVertex3f($23,$24,$22);
  27559. _rlVertex3f($23,$24,$25);
  27560. _rlVertex3f($18,$24,$25);
  27561. _rlVertex3f($23,$24,$22);
  27562. _rlVertex3f($18,$20,$25);
  27563. _rlVertex3f($23,$20,$22);
  27564. _rlVertex3f($18,$20,$22);
  27565. _rlVertex3f($23,$20,$25);
  27566. _rlVertex3f($23,$20,$22);
  27567. _rlVertex3f($18,$20,$25);
  27568. _rlVertex3f($23,$20,$25);
  27569. _rlVertex3f($23,$24,$25);
  27570. _rlVertex3f($23,$24,$22);
  27571. _rlVertex3f($23,$20,$22);
  27572. _rlVertex3f($23,$20,$25);
  27573. _rlVertex3f($23,$24,$22);
  27574. _rlVertex3f($18,$20,$25);
  27575. _rlVertex3f($18,$24,$22);
  27576. _rlVertex3f($18,$24,$25);
  27577. _rlVertex3f($18,$20,$22);
  27578. _rlVertex3f($18,$24,$22);
  27579. _rlVertex3f($18,$20,$25);
  27580. _rlEnd();
  27581. _rlPopMatrix();
  27582. return;
  27583. }
  27584. function _DrawCubeWires($0,$1,$2,$3,$4) {
  27585. $0 = $0|0;
  27586. $1 = +$1;
  27587. $2 = +$2;
  27588. $3 = +$3;
  27589. $4 = $4|0;
  27590. var $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0.0, $18 = 0.0, $19 = 0.0, $20 = 0.0, $21 = 0.0, $22 = 0.0, $23 = 0.0, $24 = 0.0, $25 = 0.0, $5 = 0.0, $6 = 0, $7 = 0.0, $8 = 0;
  27591. var $9 = 0.0, label = 0, sp = 0;
  27592. sp = STACKTOP;
  27593. _rlPushMatrix();
  27594. $5 = +HEAPF32[$0>>2];
  27595. $6 = ((($0)) + 4|0);
  27596. $7 = +HEAPF32[$6>>2];
  27597. $8 = ((($0)) + 8|0);
  27598. $9 = +HEAPF32[$8>>2];
  27599. _rlTranslatef($5,$7,$9);
  27600. _rlBegin(1);
  27601. $10 = HEAP8[$4>>0]|0;
  27602. $11 = ((($4)) + 1|0);
  27603. $12 = HEAP8[$11>>0]|0;
  27604. $13 = ((($4)) + 2|0);
  27605. $14 = HEAP8[$13>>0]|0;
  27606. $15 = ((($4)) + 3|0);
  27607. $16 = HEAP8[$15>>0]|0;
  27608. _rlColor4ub($10,$12,$14,$16);
  27609. $17 = $1 * 0.5;
  27610. $18 = 0.0 - $17;
  27611. $19 = $2 * 0.5;
  27612. $20 = 0.0 - $19;
  27613. $21 = $3 * 0.5;
  27614. $22 = $21 + 0.0;
  27615. _rlVertex3f($18,$20,$22);
  27616. $23 = $17 + 0.0;
  27617. _rlVertex3f($23,$20,$22);
  27618. _rlVertex3f($23,$20,$22);
  27619. $24 = $19 + 0.0;
  27620. _rlVertex3f($23,$24,$22);
  27621. _rlVertex3f($23,$24,$22);
  27622. _rlVertex3f($18,$24,$22);
  27623. _rlVertex3f($18,$24,$22);
  27624. _rlVertex3f($18,$20,$22);
  27625. $25 = 0.0 - $21;
  27626. _rlVertex3f($18,$20,$25);
  27627. _rlVertex3f($23,$20,$25);
  27628. _rlVertex3f($23,$20,$25);
  27629. _rlVertex3f($23,$24,$25);
  27630. _rlVertex3f($23,$24,$25);
  27631. _rlVertex3f($18,$24,$25);
  27632. _rlVertex3f($18,$24,$25);
  27633. _rlVertex3f($18,$20,$25);
  27634. _rlVertex3f($18,$24,$22);
  27635. _rlVertex3f($18,$24,$25);
  27636. _rlVertex3f($23,$24,$22);
  27637. _rlVertex3f($23,$24,$25);
  27638. _rlVertex3f($18,$20,$22);
  27639. _rlVertex3f($18,$20,$25);
  27640. _rlVertex3f($23,$20,$22);
  27641. _rlVertex3f($23,$20,$25);
  27642. _rlEnd();
  27643. _rlPopMatrix();
  27644. return;
  27645. }
  27646. function _DrawRay($0,$1) {
  27647. $0 = $0|0;
  27648. $1 = $1|0;
  27649. var $10 = 0, $11 = 0.0, $12 = 0, $13 = 0.0, $14 = 0, $15 = 0.0, $16 = 0, $17 = 0.0, $18 = 0.0, $19 = 0.0, $2 = 0, $20 = 0.0, $21 = 0, $22 = 0.0, $23 = 0.0, $24 = 0.0, $25 = 0.0, $26 = 0, $27 = 0.0, $28 = 0.0;
  27650. var $29 = 0.0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  27651. sp = STACKTOP;
  27652. _rlBegin(1);
  27653. $2 = HEAP8[$1>>0]|0;
  27654. $3 = ((($1)) + 1|0);
  27655. $4 = HEAP8[$3>>0]|0;
  27656. $5 = ((($1)) + 2|0);
  27657. $6 = HEAP8[$5>>0]|0;
  27658. $7 = ((($1)) + 3|0);
  27659. $8 = HEAP8[$7>>0]|0;
  27660. _rlColor4ub($2,$4,$6,$8);
  27661. $9 = HEAP8[$1>>0]|0;
  27662. $10 = HEAP8[$3>>0]|0;
  27663. _rlColor4ub($9,$10,$6,$8);
  27664. $11 = +HEAPF32[$0>>2];
  27665. $12 = ((($0)) + 4|0);
  27666. $13 = +HEAPF32[$12>>2];
  27667. $14 = ((($0)) + 8|0);
  27668. $15 = +HEAPF32[$14>>2];
  27669. _rlVertex3f($11,$13,$15);
  27670. $16 = ((($0)) + 12|0);
  27671. $17 = +HEAPF32[$16>>2];
  27672. $18 = $17 * 1.0E+4;
  27673. $19 = $11 + $18;
  27674. $20 = +HEAPF32[$12>>2];
  27675. $21 = ((($0)) + 16|0);
  27676. $22 = +HEAPF32[$21>>2];
  27677. $23 = $22 * 1.0E+4;
  27678. $24 = $20 + $23;
  27679. $25 = +HEAPF32[$14>>2];
  27680. $26 = ((($0)) + 20|0);
  27681. $27 = +HEAPF32[$26>>2];
  27682. $28 = $27 * 1.0E+4;
  27683. $29 = $25 + $28;
  27684. _rlVertex3f($19,$24,$29);
  27685. _rlEnd();
  27686. return;
  27687. }
  27688. function _DrawGrid($0,$1) {
  27689. $0 = $0|0;
  27690. $1 = +$1;
  27691. var $$024 = 0, $10 = 0.0, $11 = 0.0, $12 = 0, $13 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0.0, $6 = 0.0, $7 = 0.0, $8 = 0.0, $9 = 0, label = 0, sp = 0;
  27692. sp = STACKTOP;
  27693. $2 = (($0|0) / 2)&-1;
  27694. _rlBegin(1);
  27695. $3 = (0 - ($2))|0;
  27696. $4 = ($2|0)<($3|0);
  27697. if ($4) {
  27698. _rlEnd();
  27699. return;
  27700. }
  27701. $5 = (+($3|0));
  27702. $6 = $5 * $1;
  27703. $7 = (+($2|0));
  27704. $8 = $7 * $1;
  27705. $$024 = $3;
  27706. while(1) {
  27707. $9 = ($$024|0)==(0);
  27708. if ($9) {
  27709. _rlColor3f(0.5,0.5,0.5);
  27710. _rlColor3f(0.5,0.5,0.5);
  27711. _rlColor3f(0.5,0.5,0.5);
  27712. _rlColor3f(0.5,0.5,0.5);
  27713. } else {
  27714. _rlColor3f(0.75,0.75,0.75);
  27715. _rlColor3f(0.75,0.75,0.75);
  27716. _rlColor3f(0.75,0.75,0.75);
  27717. _rlColor3f(0.75,0.75,0.75);
  27718. }
  27719. $10 = (+($$024|0));
  27720. $11 = $10 * $1;
  27721. _rlVertex3f($11,0.0,$6);
  27722. _rlVertex3f($11,0.0,$8);
  27723. _rlVertex3f($6,0.0,$11);
  27724. _rlVertex3f($8,0.0,$11);
  27725. $12 = (($$024) + 1)|0;
  27726. $13 = ($$024|0)<($2|0);
  27727. if ($13) {
  27728. $$024 = $12;
  27729. } else {
  27730. break;
  27731. }
  27732. }
  27733. _rlEnd();
  27734. return;
  27735. }
  27736. function _LoadMesh($0,$1) {
  27737. $0 = $0|0;
  27738. $1 = $1|0;
  27739. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $vararg_buffer = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  27740. sp = STACKTOP;
  27741. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  27742. $vararg_buffer = sp;
  27743. $2 = sp + 72|0;
  27744. $3 = sp + 4|0;
  27745. dest=$2; stop=dest+68|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  27746. $4 = (_IsFileExtension($1,11981)|0);
  27747. $5 = ($4|0)==(0);
  27748. if (!($5)) {
  27749. _LoadOBJ($3,$1);
  27750. dest=$2; src=$3; stop=dest+68|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  27751. }
  27752. $6 = HEAP32[$2>>2]|0;
  27753. $7 = ($6|0)==(0);
  27754. if ($7) {
  27755. _TraceLog(2,11986,$vararg_buffer);
  27756. } else {
  27757. _rlglLoadMesh($2,0);
  27758. }
  27759. dest=$0; src=$2; stop=dest+68|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  27760. STACKTOP = sp;return;
  27761. }
  27762. function _LoadOBJ($0,$1) {
  27763. $0 = $0|0;
  27764. $1 = $1|0;
  27765. var $$0$ph374433 = 0, $$0$ph377422 = 0, $$0$ph379$lcssa386 = 0, $$0$ph379412 = 0, $$0$ph445 = 0, $$0344$ph373432 = 0, $$0344$ph376$lcssa388 = 0, $$0344$ph376421 = 0, $$0344$ph444 = 0, $$0345$ph372$lcssa389 = 0, $$0345$ph372431 = 0, $$0345$ph443 = 0, $$0346$ph$lcssa = 0, $$0346$ph442 = 0, $$0347392 = 0, $$0348391 = 0, $$0350$ph = 0, $$0350$ph$ph = 0, $$0351$ph$ph = 0, $$0352$ph = 0;
  27766. var $$0352$ph$ph = 0, $$0353$ph365399 = 0, $$0353$ph367397 = 0, $$0353$ph402 = 0, $$0354$ph364398 = 0, $$0354$ph401 = 0, $$0355$ph400 = 0, $$0356 = 0, $$0357 = 0, $$1 = 0, $$byval_copy102 = 0, $$byval_copy103 = 0, $$sroa$12$0$$sroa_idx244 = 0, $$sroa$12247$0$$sroa_idx249 = 0, $$sroa$31$0$$sroa_idx270 = 0, $$sroa$45$0$$sroa_idx286 = 0, $$sroa$45289$0$$sroa_idx291 = 0, $$sroa$64$0 = 0, $$sroa$64$0$$sroa_idx312 = 0, $$sroa$74$0$$sroa_idx324 = 0;
  27767. var $$sroa$75 = 0, $$sroa$75$0$$sroa_idx = 0, $$sroa$75$0$$sroa_idx328 = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0, $114 = 0;
  27768. var $115 = 0, $116 = 0, $117 = 0, $118 = 0, $119 = 0, $12 = 0, $120 = 0, $121 = 0, $122 = 0, $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 0, $128 = 0, $129 = 0, $13 = 0, $130 = 0, $131 = 0, $132 = 0;
  27769. var $133 = 0, $134 = 0, $135 = 0, $136 = 0, $137 = 0, $138 = 0, $139 = 0, $14 = 0, $140 = 0, $141 = 0, $142 = 0, $143 = 0, $144 = 0, $145 = 0, $146 = 0, $147 = 0, $148 = 0, $149 = 0, $15 = 0, $150 = 0;
  27770. var $151 = 0, $152 = 0, $153 = 0, $154 = 0, $155 = 0, $156 = 0, $157 = 0, $158 = 0, $159 = 0, $16 = 0, $160 = 0, $161 = 0, $162 = 0, $163 = 0, $164 = 0, $165 = 0, $166 = 0, $167 = 0, $168 = 0, $169 = 0;
  27771. var $17 = 0, $170 = 0, $171 = 0, $172 = 0, $173 = 0, $174 = 0, $175 = 0, $176 = 0, $177 = 0, $178 = 0, $179 = 0, $18 = 0, $180 = 0, $181 = 0, $182 = 0, $183 = 0, $184 = 0, $185 = 0, $186 = 0, $187 = 0;
  27772. var $188 = 0, $189 = 0, $19 = 0, $190 = 0, $191 = 0, $192 = 0, $193 = 0, $194 = 0, $195 = 0, $196 = 0, $197 = 0, $198 = 0, $199 = 0, $2 = 0, $20 = 0, $200 = 0, $201 = 0, $202 = 0, $203 = 0, $204 = 0;
  27773. var $205 = 0, $206 = 0, $207 = 0, $208 = 0, $209 = 0, $21 = 0, $210 = 0, $211 = 0, $212 = 0, $213 = 0, $214 = 0, $215 = 0, $216 = 0, $217 = 0, $218 = 0, $219 = 0, $22 = 0, $220 = 0, $221 = 0, $222 = 0;
  27774. var $223 = 0, $224 = 0, $225 = 0, $226 = 0, $227 = 0, $228 = 0, $229 = 0, $23 = 0, $230 = 0, $231 = 0, $232 = 0, $233 = 0, $234 = 0, $235 = 0, $236 = 0, $237 = 0.0, $238 = 0.0, $239 = 0, $24 = 0, $240 = 0;
  27775. var $241 = 0, $242 = 0, $243 = 0, $244 = 0, $245 = 0, $246 = 0, $247 = 0, $248 = 0.0, $249 = 0.0, $25 = 0, $250 = 0, $251 = 0, $252 = 0, $253 = 0, $254 = 0, $255 = 0, $256 = 0, $257 = 0, $258 = 0, $259 = 0.0;
  27776. var $26 = 0, $260 = 0.0, $261 = 0, $262 = 0, $263 = 0, $264 = 0, $265 = 0, $266 = 0, $267 = 0, $268 = 0, $269 = 0, $27 = 0, $270 = 0, $271 = 0, $272 = 0, $273 = 0, $274 = 0, $275 = 0, $276 = 0, $277 = 0;
  27777. var $278 = 0, $279 = 0, $28 = 0, $280 = 0, $281 = 0, $282 = 0, $283 = 0, $284 = 0, $285 = 0, $286 = 0, $287 = 0, $288 = 0, $289 = 0, $29 = 0, $290 = 0, $291 = 0, $292 = 0, $293 = 0, $294 = 0, $295 = 0;
  27778. var $296 = 0, $297 = 0, $298 = 0, $299 = 0, $3 = 0, $30 = 0, $300 = 0, $301 = 0, $302 = 0, $303 = 0, $304 = 0, $305 = 0, $306 = 0, $307 = 0, $308 = 0, $309 = 0, $31 = 0, $310 = 0, $311 = 0.0, $312 = 0;
  27779. var $313 = 0, $314 = 0.0, $315 = 0, $316 = 0, $317 = 0.0, $318 = 0, $319 = 0, $32 = 0, $320 = 0.0, $321 = 0, $322 = 0, $323 = 0.0, $324 = 0, $325 = 0, $326 = 0.0, $327 = 0.0, $328 = 0.0, $329 = 0.0, $33 = 0, $330 = 0.0;
  27780. var $331 = 0.0, $332 = 0.0, $333 = 0.0, $334 = 0.0, $335 = 0.0, $336 = 0.0, $337 = 0.0, $338 = 0.0, $339 = 0.0, $34 = 0, $340 = 0.0, $341 = 0.0, $342 = 0.0, $343 = 0.0, $344 = 0.0, $345 = 0.0, $346 = 0.0, $347 = 0, $348 = 0, $349 = 0;
  27781. var $35 = 0, $350 = 0, $351 = 0, $352 = 0, $353 = 0, $354 = 0, $355 = 0, $356 = 0, $357 = 0, $358 = 0, $359 = 0, $36 = 0, $360 = 0, $361 = 0, $362 = 0, $363 = 0, $364 = 0, $365 = 0, $366 = 0, $367 = 0;
  27782. var $368 = 0, $369 = 0, $37 = 0, $370 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0;
  27783. var $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0;
  27784. var $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0;
  27785. var $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, $vararg_buffer11 = 0, $vararg_buffer23 = 0, $vararg_buffer26 = 0, $vararg_buffer29 = 0, $vararg_buffer33 = 0, $vararg_buffer36 = 0;
  27786. var $vararg_buffer4 = 0, $vararg_buffer41 = 0, $vararg_buffer44 = 0, $vararg_buffer49 = 0, $vararg_buffer52 = 0, $vararg_buffer55 = 0, $vararg_buffer58 = 0, $vararg_buffer63 = 0, $vararg_buffer7 = 0, $vararg_buffer71 = 0, $vararg_buffer79 = 0, $vararg_buffer90 = 0, $vararg_ptr10 = 0, $vararg_ptr14 = 0, $vararg_ptr18 = 0, $vararg_ptr22 = 0, $vararg_ptr32 = 0, $vararg_ptr39 = 0, $vararg_ptr40 = 0, $vararg_ptr47 = 0;
  27787. var $vararg_ptr48 = 0, $vararg_ptr61 = 0, $vararg_ptr62 = 0, $vararg_ptr66 = 0, $vararg_ptr67 = 0, $vararg_ptr68 = 0, $vararg_ptr69 = 0, $vararg_ptr70 = 0, $vararg_ptr74 = 0, $vararg_ptr75 = 0, $vararg_ptr76 = 0, $vararg_ptr77 = 0, $vararg_ptr78 = 0, $vararg_ptr82 = 0, $vararg_ptr83 = 0, $vararg_ptr84 = 0, $vararg_ptr85 = 0, $vararg_ptr86 = 0, $vararg_ptr87 = 0, $vararg_ptr88 = 0;
  27788. var $vararg_ptr89 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  27789. sp = STACKTOP;
  27790. STACKTOP = STACKTOP + 672|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(672|0);
  27791. $$byval_copy103 = sp + 320|0;
  27792. $$byval_copy102 = sp + 304|0;
  27793. $vararg_buffer90 = sp + 296|0;
  27794. $vararg_buffer79 = sp + 256|0;
  27795. $vararg_buffer71 = sp + 232|0;
  27796. $vararg_buffer63 = sp + 208|0;
  27797. $vararg_buffer58 = sp + 192|0;
  27798. $vararg_buffer55 = sp + 184|0;
  27799. $vararg_buffer52 = sp + 176|0;
  27800. $vararg_buffer49 = sp + 168|0;
  27801. $vararg_buffer44 = sp + 152|0;
  27802. $vararg_buffer41 = sp + 144|0;
  27803. $vararg_buffer36 = sp + 128|0;
  27804. $vararg_buffer33 = sp + 120|0;
  27805. $vararg_buffer29 = sp + 112|0;
  27806. $vararg_buffer26 = sp + 104|0;
  27807. $vararg_buffer23 = sp + 96|0;
  27808. $vararg_buffer11 = sp + 80|0;
  27809. $vararg_buffer7 = sp + 64|0;
  27810. $vararg_buffer4 = sp + 56|0;
  27811. $vararg_buffer1 = sp + 48|0;
  27812. $vararg_buffer = sp + 40|0;
  27813. $$sroa$75 = sp;
  27814. $2 = sp + 664|0;
  27815. $3 = sp + 464|0;
  27816. $4 = sp + 428|0;
  27817. $5 = sp + 416|0;
  27818. $6 = sp + 452|0;
  27819. $7 = sp + 440|0;
  27820. $8 = sp + 404|0;
  27821. $9 = sp + 392|0;
  27822. $10 = sp + 380|0;
  27823. $11 = sp + 368|0;
  27824. $12 = sp + 356|0;
  27825. $13 = sp + 344|0;
  27826. $14 = sp + 332|0;
  27827. dest=$$sroa$75; stop=dest+36|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  27828. $15 = (_fopen($1,12011)|0);
  27829. $16 = ($15|0)==(0|0);
  27830. if ($16) {
  27831. HEAP32[$vararg_buffer>>2] = $1;
  27832. _TraceLog(2,12014,$vararg_buffer);
  27833. $$sroa$75$0$$sroa_idx = ((($0)) + 32|0);
  27834. ;HEAP32[$0>>2]=0|0;HEAP32[$0+4>>2]=0|0;HEAP32[$0+8>>2]=0|0;HEAP32[$0+12>>2]=0|0;HEAP32[$0+16>>2]=0|0;HEAP32[$0+20>>2]=0|0;HEAP32[$0+24>>2]=0|0;HEAP32[$0+28>>2]=0|0;
  27835. dest=$$sroa$75$0$$sroa_idx; src=$$sroa$75; stop=dest+36|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  27836. STACKTOP = sp;return;
  27837. }
  27838. $17 = (_feof($15)|0);
  27839. $18 = ($17|0)==(0);
  27840. L5: do {
  27841. if ($18) {
  27842. $$0$ph445 = 0;$$0344$ph444 = 0;$$0345$ph443 = 0;$$0346$ph442 = 0;
  27843. while(1) {
  27844. $$0$ph374433 = $$0$ph445;$$0344$ph373432 = $$0344$ph444;$$0345$ph372431 = $$0345$ph443;
  27845. L8: while(1) {
  27846. $$0$ph377422 = $$0$ph374433;$$0344$ph376421 = $$0344$ph373432;
  27847. L10: while(1) {
  27848. $$0$ph379412 = $$0$ph377422;
  27849. L12: while(1) {
  27850. L14: while(1) {
  27851. HEAP32[$vararg_buffer1>>2] = $2;
  27852. (_fscanf($15,12048,$vararg_buffer1)|0);
  27853. $19 = HEAP8[$2>>0]|0;
  27854. $20 = $19 << 24 >> 24;
  27855. switch ($20|0) {
  27856. case 102: {
  27857. break L8;
  27858. break;
  27859. }
  27860. case 118: {
  27861. break L14;
  27862. break;
  27863. }
  27864. case 117: case 109: case 115: case 103: case 111: case 35: {
  27865. (_fgets($3,200,$15)|0);
  27866. break;
  27867. }
  27868. default: {
  27869. }
  27870. }
  27871. $21 = (_feof($15)|0);
  27872. $22 = ($21|0)==(0);
  27873. if (!($22)) {
  27874. $$0$ph379$lcssa386 = $$0$ph379412;$$0344$ph376$lcssa388 = $$0344$ph376421;$$0345$ph372$lcssa389 = $$0345$ph372431;$$0346$ph$lcssa = $$0346$ph442;
  27875. break L5;
  27876. }
  27877. }
  27878. HEAP32[$vararg_buffer4>>2] = $2;
  27879. (_fscanf($15,12048,$vararg_buffer4)|0);
  27880. $23 = HEAP8[$2>>0]|0;
  27881. switch ($23<<24>>24) {
  27882. case 116: {
  27883. break L10;
  27884. break;
  27885. }
  27886. case 110: {
  27887. break L12;
  27888. break;
  27889. }
  27890. default: {
  27891. }
  27892. }
  27893. $30 = (($$0$ph379412) + 1)|0;
  27894. (_fgets($3,200,$15)|0);
  27895. $31 = (_feof($15)|0);
  27896. $32 = ($31|0)==(0);
  27897. if ($32) {
  27898. $$0$ph379412 = $30;
  27899. } else {
  27900. $$0$ph379$lcssa386 = $30;$$0344$ph376$lcssa388 = $$0344$ph376421;$$0345$ph372$lcssa389 = $$0345$ph372431;$$0346$ph$lcssa = $$0346$ph442;
  27901. break L5;
  27902. }
  27903. }
  27904. $27 = (($$0344$ph376421) + 1)|0;
  27905. (_fgets($3,200,$15)|0);
  27906. $28 = (_feof($15)|0);
  27907. $29 = ($28|0)==(0);
  27908. if ($29) {
  27909. $$0$ph377422 = $$0$ph379412;$$0344$ph376421 = $27;
  27910. } else {
  27911. $$0$ph379$lcssa386 = $$0$ph379412;$$0344$ph376$lcssa388 = $27;$$0345$ph372$lcssa389 = $$0345$ph372431;$$0346$ph$lcssa = $$0346$ph442;
  27912. break L5;
  27913. }
  27914. }
  27915. $24 = (($$0345$ph372431) + 1)|0;
  27916. (_fgets($3,200,$15)|0);
  27917. $25 = (_feof($15)|0);
  27918. $26 = ($25|0)==(0);
  27919. if ($26) {
  27920. $$0$ph374433 = $$0$ph379412;$$0344$ph373432 = $$0344$ph376421;$$0345$ph372431 = $24;
  27921. } else {
  27922. $$0$ph379$lcssa386 = $$0$ph379412;$$0344$ph376$lcssa388 = $$0344$ph376421;$$0345$ph372$lcssa389 = $24;$$0346$ph$lcssa = $$0346$ph442;
  27923. break L5;
  27924. }
  27925. }
  27926. $33 = (($$0346$ph442) + 1)|0;
  27927. (_fgets($3,200,$15)|0);
  27928. $34 = (_feof($15)|0);
  27929. $35 = ($34|0)==(0);
  27930. if ($35) {
  27931. $$0$ph445 = $$0$ph379412;$$0344$ph444 = $$0344$ph376421;$$0345$ph443 = $$0345$ph372431;$$0346$ph442 = $33;
  27932. } else {
  27933. $$0$ph379$lcssa386 = $$0$ph379412;$$0344$ph376$lcssa388 = $$0344$ph376421;$$0345$ph372$lcssa389 = $$0345$ph372431;$$0346$ph$lcssa = $33;
  27934. break;
  27935. }
  27936. }
  27937. } else {
  27938. $$0$ph379$lcssa386 = 0;$$0344$ph376$lcssa388 = 0;$$0345$ph372$lcssa389 = 0;$$0346$ph$lcssa = 0;
  27939. }
  27940. } while(0);
  27941. HEAP32[$vararg_buffer7>>2] = $1;
  27942. $vararg_ptr10 = ((($vararg_buffer7)) + 4|0);
  27943. HEAP32[$vararg_ptr10>>2] = $$0$ph379$lcssa386;
  27944. _TraceLog(3,12051,$vararg_buffer7);
  27945. HEAP32[$vararg_buffer11>>2] = $1;
  27946. $vararg_ptr14 = ((($vararg_buffer11)) + 4|0);
  27947. HEAP32[$vararg_ptr14>>2] = $$0345$ph372$lcssa389;
  27948. _TraceLog(3,12079,$vararg_buffer11);
  27949. HEAP32[$$byval_copy102>>2] = $1;
  27950. $vararg_ptr18 = ((($$byval_copy102)) + 4|0);
  27951. HEAP32[$vararg_ptr18>>2] = $$0344$ph376$lcssa388;
  27952. _TraceLog(3,12108,$$byval_copy102);
  27953. HEAP32[$$byval_copy103>>2] = $1;
  27954. $vararg_ptr22 = ((($$byval_copy103)) + 4|0);
  27955. HEAP32[$vararg_ptr22>>2] = $$0346$ph$lcssa;
  27956. _TraceLog(3,12135,$$byval_copy103);
  27957. $36 = ($$0$ph379$lcssa386*12)|0;
  27958. $37 = (_malloc($36)|0);
  27959. $38 = ($$0344$ph376$lcssa388|0)>(0);
  27960. if ($38) {
  27961. $39 = ($$0344$ph376$lcssa388*12)|0;
  27962. $40 = (_malloc($39)|0);
  27963. $$0357 = $40;$369 = $40;
  27964. } else {
  27965. $$0357 = 0;$369 = 0;
  27966. }
  27967. $41 = ($$0345$ph372$lcssa389|0)>(0);
  27968. if ($41) {
  27969. $42 = $$0345$ph372$lcssa389 << 3;
  27970. $43 = (_malloc($42)|0);
  27971. $$0356 = $43;$370 = $43;
  27972. } else {
  27973. $$0356 = 0;$370 = 0;
  27974. }
  27975. _rewind($15);
  27976. $44 = (_feof($15)|0);
  27977. $45 = ($44|0)==(0);
  27978. L31: do {
  27979. if ($45) {
  27980. $$0353$ph402 = 0;$$0354$ph401 = 0;$$0355$ph400 = 0;
  27981. while(1) {
  27982. $$0353$ph365399 = $$0353$ph402;$$0354$ph364398 = $$0354$ph401;
  27983. L34: while(1) {
  27984. $$0353$ph367397 = $$0353$ph365399;
  27985. L36: while(1) {
  27986. L38: while(1) {
  27987. HEAP32[$vararg_buffer23>>2] = $2;
  27988. (_fscanf($15,12048,$vararg_buffer23)|0);
  27989. $46 = HEAP8[$2>>0]|0;
  27990. $47 = $46 << 24 >> 24;
  27991. switch ($47|0) {
  27992. case 118: {
  27993. break L38;
  27994. break;
  27995. }
  27996. case 102: case 117: case 109: case 115: case 103: case 111: case 35: {
  27997. (_fgets($3,200,$15)|0);
  27998. break;
  27999. }
  28000. default: {
  28001. }
  28002. }
  28003. $48 = (_feof($15)|0);
  28004. $49 = ($48|0)==(0);
  28005. if (!($49)) {
  28006. break L31;
  28007. }
  28008. }
  28009. HEAP32[$vararg_buffer26>>2] = $2;
  28010. (_fscanf($15,12048,$vararg_buffer26)|0);
  28011. $50 = HEAP8[$2>>0]|0;
  28012. switch ($50<<24>>24) {
  28013. case 110: {
  28014. break L36;
  28015. break;
  28016. }
  28017. case 116: {
  28018. break;
  28019. }
  28020. default: {
  28021. break L34;
  28022. }
  28023. }
  28024. $51 = (($$0356) + ($$0353$ph367397<<3)|0);
  28025. $52 = (((($$0356) + ($$0353$ph367397<<3)|0)) + 4|0);
  28026. HEAP32[$vararg_buffer29>>2] = $51;
  28027. $vararg_ptr32 = ((($vararg_buffer29)) + 4|0);
  28028. HEAP32[$vararg_ptr32>>2] = $52;
  28029. (_fscanf($15,12164,$vararg_buffer29)|0);
  28030. $53 = (($$0353$ph367397) + 1)|0;
  28031. HEAP32[$vararg_buffer33>>2] = $2;
  28032. (_fscanf($15,12048,$vararg_buffer33)|0);
  28033. $54 = (_feof($15)|0);
  28034. $55 = ($54|0)==(0);
  28035. if ($55) {
  28036. $$0353$ph367397 = $53;
  28037. } else {
  28038. break L31;
  28039. }
  28040. }
  28041. $56 = (($$0357) + (($$0354$ph364398*12)|0)|0);
  28042. $57 = (((($$0357) + (($$0354$ph364398*12)|0)|0)) + 4|0);
  28043. $58 = (((($$0357) + (($$0354$ph364398*12)|0)|0)) + 8|0);
  28044. HEAP32[$vararg_buffer36>>2] = $56;
  28045. $vararg_ptr39 = ((($vararg_buffer36)) + 4|0);
  28046. HEAP32[$vararg_ptr39>>2] = $57;
  28047. $vararg_ptr40 = ((($vararg_buffer36)) + 8|0);
  28048. HEAP32[$vararg_ptr40>>2] = $58;
  28049. (_fscanf($15,12178,$vararg_buffer36)|0);
  28050. $59 = (($$0354$ph364398) + 1)|0;
  28051. HEAP32[$vararg_buffer41>>2] = $2;
  28052. (_fscanf($15,12048,$vararg_buffer41)|0);
  28053. $60 = (_feof($15)|0);
  28054. $61 = ($60|0)==(0);
  28055. if ($61) {
  28056. $$0353$ph365399 = $$0353$ph367397;$$0354$ph364398 = $59;
  28057. } else {
  28058. break L31;
  28059. }
  28060. }
  28061. $62 = (($37) + (($$0355$ph400*12)|0)|0);
  28062. $63 = (((($37) + (($$0355$ph400*12)|0)|0)) + 4|0);
  28063. $64 = (((($37) + (($$0355$ph400*12)|0)|0)) + 8|0);
  28064. HEAP32[$vararg_buffer44>>2] = $62;
  28065. $vararg_ptr47 = ((($vararg_buffer44)) + 4|0);
  28066. HEAP32[$vararg_ptr47>>2] = $63;
  28067. $vararg_ptr48 = ((($vararg_buffer44)) + 8|0);
  28068. HEAP32[$vararg_ptr48>>2] = $64;
  28069. (_fscanf($15,12178,$vararg_buffer44)|0);
  28070. $65 = (($$0355$ph400) + 1)|0;
  28071. HEAP32[$vararg_buffer49>>2] = $2;
  28072. (_fscanf($15,12048,$vararg_buffer49)|0);
  28073. $66 = (_feof($15)|0);
  28074. $67 = ($66|0)==(0);
  28075. if ($67) {
  28076. $$0353$ph402 = $$0353$ph367397;$$0354$ph401 = $$0354$ph364398;$$0355$ph400 = $65;
  28077. } else {
  28078. break;
  28079. }
  28080. }
  28081. }
  28082. } while(0);
  28083. $68 = ($$0346$ph$lcssa*3)|0;
  28084. $69 = ($$0346$ph$lcssa*9)|0;
  28085. $70 = ($$0346$ph$lcssa*36)|0;
  28086. $71 = (_malloc($70)|0);
  28087. $72 = ($$0346$ph$lcssa*6)|0;
  28088. $73 = ($$0346$ph$lcssa*24)|0;
  28089. $74 = (_malloc($73)|0);
  28090. $75 = (_malloc($70)|0);
  28091. _rewind($15);
  28092. $76 = ($$0344$ph376$lcssa388|0)==(0);
  28093. if ($76) {
  28094. HEAP32[$vararg_buffer52>>2] = $1;
  28095. _TraceLog(0,12187,$vararg_buffer52);
  28096. }
  28097. $77 = ($$0345$ph372$lcssa389|0)==(0);
  28098. $78 = $$0344$ph376$lcssa388 | $$0345$ph372$lcssa389;
  28099. $79 = ($78|0)==(0);
  28100. $80 = ((($vararg_buffer11)) + 4|0);
  28101. $81 = ((($vararg_buffer11)) + 8|0);
  28102. $82 = ((($vararg_buffer11)) + 4|0);
  28103. $83 = ((($vararg_buffer11)) + 8|0);
  28104. $84 = ((($4)) + 4|0);
  28105. $85 = ((($4)) + 8|0);
  28106. $86 = ((($5)) + 4|0);
  28107. $87 = ((($5)) + 8|0);
  28108. $88 = ((($vararg_buffer11)) + 4|0);
  28109. $89 = ((($vararg_buffer7)) + 4|0);
  28110. $90 = ((($vararg_buffer11)) + 8|0);
  28111. $91 = ((($vararg_buffer7)) + 8|0);
  28112. $92 = ((($vararg_buffer11)) + 4|0);
  28113. $93 = ((($4)) + 4|0);
  28114. $94 = ((($vararg_buffer11)) + 8|0);
  28115. $95 = ((($4)) + 8|0);
  28116. $96 = ((($vararg_buffer11)) + 4|0);
  28117. $97 = ((($vararg_buffer7)) + 4|0);
  28118. $98 = ((($4)) + 4|0);
  28119. $99 = ((($vararg_buffer11)) + 8|0);
  28120. $100 = ((($vararg_buffer7)) + 8|0);
  28121. $101 = ((($4)) + 8|0);
  28122. $102 = ((($vararg_buffer7)) + 4|0);
  28123. $103 = ((($vararg_buffer7)) + 8|0);
  28124. $$0350$ph$ph = 0;$$0351$ph$ph = 0;$$0352$ph$ph = 0;
  28125. L51: while(1) {
  28126. $$0350$ph = $$0350$ph$ph;$$0352$ph = $$0352$ph$ph;
  28127. while(1) {
  28128. $104 = (_feof($15)|0);
  28129. $105 = ($104|0)==(0);
  28130. if (!($105)) {
  28131. break L51;
  28132. }
  28133. L55: while(1) {
  28134. HEAP32[$vararg_buffer55>>2] = $2;
  28135. (_fscanf($15,12048,$vararg_buffer55)|0);
  28136. $106 = HEAP8[$2>>0]|0;
  28137. $107 = $106 << 24 >> 24;
  28138. switch ($107|0) {
  28139. case 102: {
  28140. break L55;
  28141. break;
  28142. }
  28143. case 118: case 117: case 109: case 115: case 103: case 111: case 35: {
  28144. (_fgets($3,200,$15)|0);
  28145. break;
  28146. }
  28147. default: {
  28148. }
  28149. }
  28150. $108 = (_feof($15)|0);
  28151. $109 = ($108|0)==(0);
  28152. if (!($109)) {
  28153. break L51;
  28154. }
  28155. }
  28156. do {
  28157. if ($79) {
  28158. HEAP32[$vararg_buffer58>>2] = $vararg_buffer11;
  28159. $vararg_ptr61 = ((($vararg_buffer58)) + 4|0);
  28160. HEAP32[$vararg_ptr61>>2] = $80;
  28161. $vararg_ptr62 = ((($vararg_buffer58)) + 8|0);
  28162. HEAP32[$vararg_ptr62>>2] = $81;
  28163. (_fscanf($15,12258,$vararg_buffer58)|0);
  28164. } else {
  28165. if ($76) {
  28166. HEAP32[$vararg_buffer63>>2] = $vararg_buffer11;
  28167. $vararg_ptr66 = ((($vararg_buffer63)) + 4|0);
  28168. HEAP32[$vararg_ptr66>>2] = $vararg_buffer7;
  28169. $vararg_ptr67 = ((($vararg_buffer63)) + 8|0);
  28170. HEAP32[$vararg_ptr67>>2] = $88;
  28171. $vararg_ptr68 = ((($vararg_buffer63)) + 12|0);
  28172. HEAP32[$vararg_ptr68>>2] = $89;
  28173. $vararg_ptr69 = ((($vararg_buffer63)) + 16|0);
  28174. HEAP32[$vararg_ptr69>>2] = $90;
  28175. $vararg_ptr70 = ((($vararg_buffer63)) + 20|0);
  28176. HEAP32[$vararg_ptr70>>2] = $91;
  28177. (_fscanf($15,12267,$vararg_buffer63)|0);
  28178. break;
  28179. }
  28180. if ($77) {
  28181. HEAP32[$vararg_buffer71>>2] = $vararg_buffer11;
  28182. $vararg_ptr74 = ((($vararg_buffer71)) + 4|0);
  28183. HEAP32[$vararg_ptr74>>2] = $4;
  28184. $vararg_ptr75 = ((($vararg_buffer71)) + 8|0);
  28185. HEAP32[$vararg_ptr75>>2] = $92;
  28186. $vararg_ptr76 = ((($vararg_buffer71)) + 12|0);
  28187. HEAP32[$vararg_ptr76>>2] = $93;
  28188. $vararg_ptr77 = ((($vararg_buffer71)) + 16|0);
  28189. HEAP32[$vararg_ptr77>>2] = $94;
  28190. $vararg_ptr78 = ((($vararg_buffer71)) + 20|0);
  28191. HEAP32[$vararg_ptr78>>2] = $95;
  28192. (_fscanf($15,12285,$vararg_buffer71)|0);
  28193. break;
  28194. } else {
  28195. HEAP32[$vararg_buffer79>>2] = $vararg_buffer11;
  28196. $vararg_ptr82 = ((($vararg_buffer79)) + 4|0);
  28197. HEAP32[$vararg_ptr82>>2] = $vararg_buffer7;
  28198. $vararg_ptr83 = ((($vararg_buffer79)) + 8|0);
  28199. HEAP32[$vararg_ptr83>>2] = $4;
  28200. $vararg_ptr84 = ((($vararg_buffer79)) + 12|0);
  28201. HEAP32[$vararg_ptr84>>2] = $96;
  28202. $vararg_ptr85 = ((($vararg_buffer79)) + 16|0);
  28203. HEAP32[$vararg_ptr85>>2] = $97;
  28204. $vararg_ptr86 = ((($vararg_buffer79)) + 20|0);
  28205. HEAP32[$vararg_ptr86>>2] = $98;
  28206. $vararg_ptr87 = ((($vararg_buffer79)) + 24|0);
  28207. HEAP32[$vararg_ptr87>>2] = $99;
  28208. $vararg_ptr88 = ((($vararg_buffer79)) + 28|0);
  28209. HEAP32[$vararg_ptr88>>2] = $100;
  28210. $vararg_ptr89 = ((($vararg_buffer79)) + 32|0);
  28211. HEAP32[$vararg_ptr89>>2] = $101;
  28212. (_fscanf($15,12306,$vararg_buffer79)|0);
  28213. break;
  28214. }
  28215. }
  28216. } while(0);
  28217. $110 = HEAP32[$vararg_buffer11>>2]|0;
  28218. $111 = (($110) + -1)|0;
  28219. $112 = (($37) + (($111*12)|0)|0);
  28220. $113 = HEAP32[$112>>2]|0;
  28221. $114 = (($71) + ($$0352$ph<<2)|0);
  28222. HEAP32[$114>>2] = $113;
  28223. $115 = (((($37) + (($111*12)|0)|0)) + 4|0);
  28224. $116 = HEAP32[$115>>2]|0;
  28225. $117 = (($$0352$ph) + 1)|0;
  28226. $118 = (($71) + ($117<<2)|0);
  28227. HEAP32[$118>>2] = $116;
  28228. $119 = (((($37) + (($111*12)|0)|0)) + 8|0);
  28229. $120 = HEAP32[$119>>2]|0;
  28230. $121 = (($$0352$ph) + 2)|0;
  28231. $122 = (($71) + ($121<<2)|0);
  28232. HEAP32[$122>>2] = $120;
  28233. $123 = (($$0352$ph) + 3)|0;
  28234. $124 = HEAP32[$82>>2]|0;
  28235. $125 = (($124) + -1)|0;
  28236. $126 = (($37) + (($125*12)|0)|0);
  28237. $127 = HEAP32[$126>>2]|0;
  28238. $128 = (($71) + ($123<<2)|0);
  28239. HEAP32[$128>>2] = $127;
  28240. $129 = (((($37) + (($125*12)|0)|0)) + 4|0);
  28241. $130 = HEAP32[$129>>2]|0;
  28242. $131 = (($$0352$ph) + 4)|0;
  28243. $132 = (($71) + ($131<<2)|0);
  28244. HEAP32[$132>>2] = $130;
  28245. $133 = (((($37) + (($125*12)|0)|0)) + 8|0);
  28246. $134 = HEAP32[$133>>2]|0;
  28247. $135 = (($$0352$ph) + 5)|0;
  28248. $136 = (($71) + ($135<<2)|0);
  28249. HEAP32[$136>>2] = $134;
  28250. $137 = (($$0352$ph) + 6)|0;
  28251. $138 = HEAP32[$83>>2]|0;
  28252. $139 = (($138) + -1)|0;
  28253. $140 = (($37) + (($139*12)|0)|0);
  28254. $141 = HEAP32[$140>>2]|0;
  28255. $142 = (($71) + ($137<<2)|0);
  28256. HEAP32[$142>>2] = $141;
  28257. $143 = (((($37) + (($139*12)|0)|0)) + 4|0);
  28258. $144 = HEAP32[$143>>2]|0;
  28259. $145 = (($$0352$ph) + 7)|0;
  28260. $146 = (($71) + ($145<<2)|0);
  28261. HEAP32[$146>>2] = $144;
  28262. $147 = (((($37) + (($139*12)|0)|0)) + 8|0);
  28263. $148 = HEAP32[$147>>2]|0;
  28264. $149 = (($$0352$ph) + 8)|0;
  28265. $150 = (($71) + ($149<<2)|0);
  28266. HEAP32[$150>>2] = $148;
  28267. $151 = (($$0352$ph) + 9)|0;
  28268. if ($38) {
  28269. $152 = HEAP32[$4>>2]|0;
  28270. $153 = (($152) + -1)|0;
  28271. $154 = (($$0357) + (($153*12)|0)|0);
  28272. $155 = HEAP32[$154>>2]|0;
  28273. $156 = (($75) + ($$0350$ph<<2)|0);
  28274. HEAP32[$156>>2] = $155;
  28275. $157 = (((($$0357) + (($153*12)|0)|0)) + 4|0);
  28276. $158 = HEAP32[$157>>2]|0;
  28277. $159 = (($$0350$ph) + 1)|0;
  28278. $160 = (($75) + ($159<<2)|0);
  28279. HEAP32[$160>>2] = $158;
  28280. $161 = (((($$0357) + (($153*12)|0)|0)) + 8|0);
  28281. $162 = HEAP32[$161>>2]|0;
  28282. $163 = (($$0350$ph) + 2)|0;
  28283. $164 = (($75) + ($163<<2)|0);
  28284. HEAP32[$164>>2] = $162;
  28285. $165 = (($$0350$ph) + 3)|0;
  28286. $166 = HEAP32[$84>>2]|0;
  28287. $167 = (($166) + -1)|0;
  28288. $168 = (($$0357) + (($167*12)|0)|0);
  28289. $169 = HEAP32[$168>>2]|0;
  28290. $170 = (($75) + ($165<<2)|0);
  28291. HEAP32[$170>>2] = $169;
  28292. $171 = (((($$0357) + (($167*12)|0)|0)) + 4|0);
  28293. $172 = HEAP32[$171>>2]|0;
  28294. $173 = (($$0350$ph) + 4)|0;
  28295. $174 = (($75) + ($173<<2)|0);
  28296. HEAP32[$174>>2] = $172;
  28297. $175 = (((($$0357) + (($167*12)|0)|0)) + 8|0);
  28298. $176 = HEAP32[$175>>2]|0;
  28299. $177 = (($$0350$ph) + 5)|0;
  28300. $178 = (($75) + ($177<<2)|0);
  28301. HEAP32[$178>>2] = $176;
  28302. $179 = (($$0350$ph) + 6)|0;
  28303. $180 = HEAP32[$85>>2]|0;
  28304. $181 = (($180) + -1)|0;
  28305. $182 = (($$0357) + (($181*12)|0)|0);
  28306. $183 = HEAP32[$182>>2]|0;
  28307. $184 = (($75) + ($179<<2)|0);
  28308. HEAP32[$184>>2] = $183;
  28309. $185 = (((($$0357) + (($181*12)|0)|0)) + 4|0);
  28310. $186 = HEAP32[$185>>2]|0;
  28311. $187 = (($$0350$ph) + 7)|0;
  28312. $188 = (($75) + ($187<<2)|0);
  28313. HEAP32[$188>>2] = $186;
  28314. $189 = (((($$0357) + (($181*12)|0)|0)) + 8|0);
  28315. $190 = HEAP32[$189>>2]|0;
  28316. $191 = (($$0350$ph) + 8)|0;
  28317. $192 = (($75) + ($191<<2)|0);
  28318. HEAP32[$192>>2] = $190;
  28319. } else {
  28320. $193 = HEAP32[$82>>2]|0;
  28321. $194 = (($193) + -1)|0;
  28322. $195 = (($37) + (($194*12)|0)|0);
  28323. $196 = HEAP32[$vararg_buffer11>>2]|0;
  28324. $197 = (($196) + -1)|0;
  28325. $198 = (($37) + (($197*12)|0)|0);
  28326. ;HEAP32[$$byval_copy102>>2]=HEAP32[$195>>2]|0;HEAP32[$$byval_copy102+4>>2]=HEAP32[$195+4>>2]|0;HEAP32[$$byval_copy102+8>>2]=HEAP32[$195+8>>2]|0;
  28327. ;HEAP32[$$byval_copy103>>2]=HEAP32[$198>>2]|0;HEAP32[$$byval_copy103+4>>2]=HEAP32[$198+4>>2]|0;HEAP32[$$byval_copy103+8>>2]=HEAP32[$198+8>>2]|0;
  28328. _VectorSubtract($6,$$byval_copy102,$$byval_copy103);
  28329. $199 = HEAP32[$83>>2]|0;
  28330. $200 = (($199) + -1)|0;
  28331. $201 = (($37) + (($200*12)|0)|0);
  28332. $202 = HEAP32[$vararg_buffer11>>2]|0;
  28333. $203 = (($202) + -1)|0;
  28334. $204 = (($37) + (($203*12)|0)|0);
  28335. ;HEAP32[$$byval_copy102>>2]=HEAP32[$201>>2]|0;HEAP32[$$byval_copy102+4>>2]=HEAP32[$201+4>>2]|0;HEAP32[$$byval_copy102+8>>2]=HEAP32[$201+8>>2]|0;
  28336. ;HEAP32[$$byval_copy103>>2]=HEAP32[$204>>2]|0;HEAP32[$$byval_copy103+4>>2]=HEAP32[$204+4>>2]|0;HEAP32[$$byval_copy103+8>>2]=HEAP32[$204+8>>2]|0;
  28337. _VectorSubtract($7,$$byval_copy102,$$byval_copy103);
  28338. ;HEAP32[$$byval_copy102>>2]=HEAP32[$6>>2]|0;HEAP32[$$byval_copy102+4>>2]=HEAP32[$6+4>>2]|0;HEAP32[$$byval_copy102+8>>2]=HEAP32[$6+8>>2]|0;
  28339. ;HEAP32[$$byval_copy103>>2]=HEAP32[$7>>2]|0;HEAP32[$$byval_copy103+4>>2]=HEAP32[$7+4>>2]|0;HEAP32[$$byval_copy103+8>>2]=HEAP32[$7+8>>2]|0;
  28340. _VectorCrossProduct($5,$$byval_copy102,$$byval_copy103);
  28341. _VectorNormalize($5);
  28342. $205 = HEAP32[$5>>2]|0;
  28343. $206 = (($75) + ($$0350$ph<<2)|0);
  28344. HEAP32[$206>>2] = $205;
  28345. $207 = HEAP32[$86>>2]|0;
  28346. $208 = (($$0350$ph) + 1)|0;
  28347. $209 = (($75) + ($208<<2)|0);
  28348. HEAP32[$209>>2] = $207;
  28349. $210 = HEAP32[$87>>2]|0;
  28350. $211 = (($$0350$ph) + 2)|0;
  28351. $212 = (($75) + ($211<<2)|0);
  28352. HEAP32[$212>>2] = $210;
  28353. $213 = (($$0350$ph) + 3)|0;
  28354. $214 = HEAP32[$5>>2]|0;
  28355. $215 = (($75) + ($213<<2)|0);
  28356. HEAP32[$215>>2] = $214;
  28357. $216 = HEAP32[$86>>2]|0;
  28358. $217 = (($$0350$ph) + 4)|0;
  28359. $218 = (($75) + ($217<<2)|0);
  28360. HEAP32[$218>>2] = $216;
  28361. $219 = HEAP32[$87>>2]|0;
  28362. $220 = (($$0350$ph) + 5)|0;
  28363. $221 = (($75) + ($220<<2)|0);
  28364. HEAP32[$221>>2] = $219;
  28365. $222 = (($$0350$ph) + 6)|0;
  28366. $223 = HEAP32[$5>>2]|0;
  28367. $224 = (($75) + ($222<<2)|0);
  28368. HEAP32[$224>>2] = $223;
  28369. $225 = HEAP32[$86>>2]|0;
  28370. $226 = (($$0350$ph) + 7)|0;
  28371. $227 = (($75) + ($226<<2)|0);
  28372. HEAP32[$227>>2] = $225;
  28373. $228 = HEAP32[$87>>2]|0;
  28374. $229 = (($$0350$ph) + 8)|0;
  28375. $230 = (($75) + ($229<<2)|0);
  28376. HEAP32[$230>>2] = $228;
  28377. }
  28378. $$1 = (($$0350$ph) + 9)|0;
  28379. if ($41) {
  28380. break;
  28381. } else {
  28382. $$0350$ph = $$1;$$0352$ph = $151;
  28383. }
  28384. }
  28385. $231 = HEAP32[$vararg_buffer7>>2]|0;
  28386. $232 = (($231) + -1)|0;
  28387. $233 = (($$0356) + ($232<<3)|0);
  28388. $234 = HEAP32[$233>>2]|0;
  28389. $235 = (($74) + ($$0351$ph$ph<<2)|0);
  28390. HEAP32[$235>>2] = $234;
  28391. $236 = (((($$0356) + ($232<<3)|0)) + 4|0);
  28392. $237 = +HEAPF32[$236>>2];
  28393. $238 = 1.0 - $237;
  28394. $239 = $$0351$ph$ph | 1;
  28395. $240 = (($74) + ($239<<2)|0);
  28396. HEAPF32[$240>>2] = $238;
  28397. $241 = (($$0351$ph$ph) + 2)|0;
  28398. $242 = HEAP32[$102>>2]|0;
  28399. $243 = (($242) + -1)|0;
  28400. $244 = (($$0356) + ($243<<3)|0);
  28401. $245 = HEAP32[$244>>2]|0;
  28402. $246 = (($74) + ($241<<2)|0);
  28403. HEAP32[$246>>2] = $245;
  28404. $247 = (((($$0356) + ($243<<3)|0)) + 4|0);
  28405. $248 = +HEAPF32[$247>>2];
  28406. $249 = 1.0 - $248;
  28407. $250 = (($$0351$ph$ph) + 3)|0;
  28408. $251 = (($74) + ($250<<2)|0);
  28409. HEAPF32[$251>>2] = $249;
  28410. $252 = (($$0351$ph$ph) + 4)|0;
  28411. $253 = HEAP32[$103>>2]|0;
  28412. $254 = (($253) + -1)|0;
  28413. $255 = (($$0356) + ($254<<3)|0);
  28414. $256 = HEAP32[$255>>2]|0;
  28415. $257 = (($74) + ($252<<2)|0);
  28416. HEAP32[$257>>2] = $256;
  28417. $258 = (((($$0356) + ($254<<3)|0)) + 4|0);
  28418. $259 = +HEAPF32[$258>>2];
  28419. $260 = 1.0 - $259;
  28420. $261 = (($$0351$ph$ph) + 5)|0;
  28421. $262 = (($74) + ($261<<2)|0);
  28422. HEAPF32[$262>>2] = $260;
  28423. $263 = (($$0351$ph$ph) + 6)|0;
  28424. $$0350$ph$ph = $$1;$$0351$ph$ph = $263;$$0352$ph$ph = $151;
  28425. }
  28426. (_fclose($15)|0);
  28427. $264 = ($$0345$ph372$lcssa389|0)==(0);
  28428. if ($264) {
  28429. $265 = ($72|0)>(0);
  28430. if ($265) {
  28431. $368 = ($$0346$ph$lcssa*24)|0;
  28432. _memset(($74|0),0,($368|0))|0;
  28433. $$sroa$64$0 = 0;
  28434. } else {
  28435. $$sroa$64$0 = 0;
  28436. }
  28437. } else {
  28438. $266 = (_malloc($70)|0);
  28439. $267 = ($69|0)>(0);
  28440. if ($267) {
  28441. $268 = ((($5)) + 4|0);
  28442. $269 = ((($5)) + 8|0);
  28443. $270 = ((($8)) + 4|0);
  28444. $271 = ((($8)) + 8|0);
  28445. $272 = ((($9)) + 4|0);
  28446. $273 = ((($9)) + 8|0);
  28447. $274 = ((($12)) + 4|0);
  28448. $275 = ((($10)) + 4|0);
  28449. $276 = ((($12)) + 8|0);
  28450. $277 = ((($10)) + 8|0);
  28451. $278 = ((($13)) + 4|0);
  28452. $279 = ((($11)) + 4|0);
  28453. $280 = ((($13)) + 8|0);
  28454. $281 = ((($11)) + 8|0);
  28455. $282 = ((($14)) + 4|0);
  28456. $283 = ((($14)) + 8|0);
  28457. $$0347392 = 0;$$0348391 = 0;
  28458. while(1) {
  28459. $284 = (($71) + ($$0348391<<2)|0);
  28460. $285 = HEAP32[$284>>2]|0;
  28461. HEAP32[$5>>2] = $285;
  28462. $286 = (($$0348391) + 1)|0;
  28463. $287 = (($71) + ($286<<2)|0);
  28464. $288 = HEAP32[$287>>2]|0;
  28465. HEAP32[$268>>2] = $288;
  28466. $289 = (($$0348391) + 2)|0;
  28467. $290 = (($71) + ($289<<2)|0);
  28468. $291 = HEAP32[$290>>2]|0;
  28469. HEAP32[$269>>2] = $291;
  28470. $292 = (($$0348391) + 3)|0;
  28471. $293 = (($71) + ($292<<2)|0);
  28472. $294 = HEAP32[$293>>2]|0;
  28473. HEAP32[$8>>2] = $294;
  28474. $295 = (($$0348391) + 4)|0;
  28475. $296 = (($71) + ($295<<2)|0);
  28476. $297 = HEAP32[$296>>2]|0;
  28477. HEAP32[$270>>2] = $297;
  28478. $298 = (($$0348391) + 5)|0;
  28479. $299 = (($71) + ($298<<2)|0);
  28480. $300 = HEAP32[$299>>2]|0;
  28481. HEAP32[$271>>2] = $300;
  28482. $301 = (($$0348391) + 6)|0;
  28483. $302 = (($71) + ($301<<2)|0);
  28484. $303 = HEAP32[$302>>2]|0;
  28485. HEAP32[$9>>2] = $303;
  28486. $304 = (($$0348391) + 7)|0;
  28487. $305 = (($71) + ($304<<2)|0);
  28488. $306 = HEAP32[$305>>2]|0;
  28489. HEAP32[$272>>2] = $306;
  28490. $307 = (($$0348391) + 8)|0;
  28491. $308 = (($71) + ($307<<2)|0);
  28492. $309 = HEAP32[$308>>2]|0;
  28493. HEAP32[$273>>2] = $309;
  28494. $310 = (($74) + ($$0347392<<2)|0);
  28495. $311 = +HEAPF32[$310>>2];
  28496. $312 = $$0347392 | 1;
  28497. $313 = (($74) + ($312<<2)|0);
  28498. $314 = +HEAPF32[$313>>2];
  28499. $315 = (($$0347392) + 2)|0;
  28500. $316 = (($74) + ($315<<2)|0);
  28501. $317 = +HEAPF32[$316>>2];
  28502. $318 = (($$0347392) + 3)|0;
  28503. $319 = (($74) + ($318<<2)|0);
  28504. $320 = +HEAPF32[$319>>2];
  28505. $321 = (($$0347392) + 4)|0;
  28506. $322 = (($74) + ($321<<2)|0);
  28507. $323 = +HEAPF32[$322>>2];
  28508. $324 = (($$0347392) + 5)|0;
  28509. $325 = (($74) + ($324<<2)|0);
  28510. $326 = +HEAPF32[$325>>2];
  28511. ;HEAP32[$$byval_copy102>>2]=HEAP32[$8>>2]|0;HEAP32[$$byval_copy102+4>>2]=HEAP32[$8+4>>2]|0;HEAP32[$$byval_copy102+8>>2]=HEAP32[$8+8>>2]|0;
  28512. ;HEAP32[$$byval_copy103>>2]=HEAP32[$5>>2]|0;HEAP32[$$byval_copy103+4>>2]=HEAP32[$5+4>>2]|0;HEAP32[$$byval_copy103+8>>2]=HEAP32[$5+8>>2]|0;
  28513. _VectorSubtract($10,$$byval_copy102,$$byval_copy103);
  28514. ;HEAP32[$$byval_copy102>>2]=HEAP32[$9>>2]|0;HEAP32[$$byval_copy102+4>>2]=HEAP32[$9+4>>2]|0;HEAP32[$$byval_copy102+8>>2]=HEAP32[$9+8>>2]|0;
  28515. ;HEAP32[$$byval_copy103>>2]=HEAP32[$5>>2]|0;HEAP32[$$byval_copy103+4>>2]=HEAP32[$5+4>>2]|0;HEAP32[$$byval_copy103+8>>2]=HEAP32[$5+8>>2]|0;
  28516. _VectorSubtract($11,$$byval_copy102,$$byval_copy103);
  28517. $327 = $317 - $311;
  28518. $328 = $320 - $314;
  28519. $329 = $323 - $311;
  28520. $330 = $326 - $314;
  28521. $331 = $327 * $330;
  28522. $332 = $328 * $329;
  28523. $333 = $331 - $332;
  28524. $334 = 1.0 / $333;
  28525. $335 = +HEAPF32[$10>>2];
  28526. $336 = $330 * $335;
  28527. HEAPF32[$12>>2] = $336;
  28528. $337 = +HEAPF32[$275>>2];
  28529. $338 = $330 * $337;
  28530. HEAPF32[$274>>2] = $338;
  28531. $339 = +HEAPF32[$277>>2];
  28532. $340 = $330 * $339;
  28533. HEAPF32[$276>>2] = $340;
  28534. $341 = +HEAPF32[$11>>2];
  28535. $342 = $328 * $341;
  28536. HEAPF32[$13>>2] = $342;
  28537. $343 = +HEAPF32[$279>>2];
  28538. $344 = $328 * $343;
  28539. HEAPF32[$278>>2] = $344;
  28540. $345 = +HEAPF32[$281>>2];
  28541. $346 = $328 * $345;
  28542. HEAPF32[$280>>2] = $346;
  28543. ;HEAP32[$$byval_copy102>>2]=HEAP32[$12>>2]|0;HEAP32[$$byval_copy102+4>>2]=HEAP32[$12+4>>2]|0;HEAP32[$$byval_copy102+8>>2]=HEAP32[$12+8>>2]|0;
  28544. ;HEAP32[$$byval_copy103>>2]=HEAP32[$13>>2]|0;HEAP32[$$byval_copy103+4>>2]=HEAP32[$13+4>>2]|0;HEAP32[$$byval_copy103+8>>2]=HEAP32[$13+8>>2]|0;
  28545. _VectorSubtract($14,$$byval_copy102,$$byval_copy103);
  28546. _VectorScale($14,$334);
  28547. $347 = HEAP32[$14>>2]|0;
  28548. $348 = (($266) + ($$0348391<<2)|0);
  28549. HEAP32[$348>>2] = $347;
  28550. $349 = HEAP32[$282>>2]|0;
  28551. $350 = (($266) + ($286<<2)|0);
  28552. HEAP32[$350>>2] = $349;
  28553. $351 = HEAP32[$283>>2]|0;
  28554. $352 = (($266) + ($289<<2)|0);
  28555. HEAP32[$352>>2] = $351;
  28556. $353 = HEAP32[$14>>2]|0;
  28557. $354 = (($266) + ($292<<2)|0);
  28558. HEAP32[$354>>2] = $353;
  28559. $355 = HEAP32[$282>>2]|0;
  28560. $356 = (($266) + ($295<<2)|0);
  28561. HEAP32[$356>>2] = $355;
  28562. $357 = HEAP32[$283>>2]|0;
  28563. $358 = (($266) + ($298<<2)|0);
  28564. HEAP32[$358>>2] = $357;
  28565. $359 = HEAP32[$14>>2]|0;
  28566. $360 = (($266) + ($301<<2)|0);
  28567. HEAP32[$360>>2] = $359;
  28568. $361 = HEAP32[$282>>2]|0;
  28569. $362 = (($266) + ($304<<2)|0);
  28570. HEAP32[$362>>2] = $361;
  28571. $363 = HEAP32[$283>>2]|0;
  28572. $364 = (($266) + ($307<<2)|0);
  28573. HEAP32[$364>>2] = $363;
  28574. $365 = (($$0348391) + 9)|0;
  28575. $366 = (($$0347392) + 6)|0;
  28576. $367 = ($365|0)<($69|0);
  28577. if ($367) {
  28578. $$0347392 = $366;$$0348391 = $365;
  28579. } else {
  28580. $$sroa$64$0 = $266;
  28581. break;
  28582. }
  28583. }
  28584. } else {
  28585. $$sroa$64$0 = $266;
  28586. }
  28587. }
  28588. _free($37);
  28589. _free($369);
  28590. _free($370);
  28591. HEAP32[$vararg_buffer90>>2] = $1;
  28592. _TraceLog(0,12333,$vararg_buffer90);
  28593. HEAP32[$0>>2] = $68;
  28594. $$sroa$12$0$$sroa_idx244 = ((($0)) + 4|0);
  28595. HEAP32[$$sroa$12$0$$sroa_idx244>>2] = 0;
  28596. $$sroa$12247$0$$sroa_idx249 = ((($0)) + 8|0);
  28597. HEAP32[$$sroa$12247$0$$sroa_idx249>>2] = $71;
  28598. $$sroa$31$0$$sroa_idx270 = ((($0)) + 12|0);
  28599. HEAP32[$$sroa$31$0$$sroa_idx270>>2] = $74;
  28600. $$sroa$45$0$$sroa_idx286 = ((($0)) + 16|0);
  28601. HEAP32[$$sroa$45$0$$sroa_idx286>>2] = 0;
  28602. $$sroa$45289$0$$sroa_idx291 = ((($0)) + 20|0);
  28603. HEAP32[$$sroa$45289$0$$sroa_idx291>>2] = $75;
  28604. $$sroa$64$0$$sroa_idx312 = ((($0)) + 24|0);
  28605. HEAP32[$$sroa$64$0$$sroa_idx312>>2] = $$sroa$64$0;
  28606. $$sroa$74$0$$sroa_idx324 = ((($0)) + 28|0);
  28607. HEAP32[$$sroa$74$0$$sroa_idx324>>2] = 0;
  28608. $$sroa$75$0$$sroa_idx328 = ((($0)) + 32|0);
  28609. dest=$$sroa$75$0$$sroa_idx328; src=$$sroa$75; stop=dest+36|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  28610. STACKTOP = sp;return;
  28611. }
  28612. function _LoadModel($0,$1) {
  28613. $0 = $0|0;
  28614. $1 = $1|0;
  28615. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  28616. sp = STACKTOP;
  28617. STACKTOP = STACKTOP + 464|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(464|0);
  28618. $2 = sp + 200|0;
  28619. $3 = sp + 136|0;
  28620. $4 = sp;
  28621. _memset(($2|0),0,264)|0;
  28622. _LoadMesh($2,$1);
  28623. $5 = ((($2)) + 68|0);
  28624. _MatrixIdentity($3);
  28625. dest=$5; src=$3; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  28626. $6 = ((($2)) + 132|0);
  28627. _LoadDefaultMaterial($4);
  28628. _memcpy(($6|0),($4|0),132)|0;
  28629. _memcpy(($0|0),($2|0),264)|0;
  28630. STACKTOP = sp;return;
  28631. }
  28632. function _LoadDefaultMaterial($0) {
  28633. $0 = $0|0;
  28634. var $$sroa$09 = 0, $$sroa$09$56$sroa_idx = 0, $$sroa$18$0$$sroa_idx15 = 0, $$sroa$6$0$$sroa_idx = 0, $1 = 0, $2 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  28635. sp = STACKTOP;
  28636. STACKTOP = STACKTOP + 192|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(192|0);
  28637. $$sroa$09 = sp;
  28638. $1 = sp + 136|0;
  28639. $2 = sp + 116|0;
  28640. dest=$$sroa$09; stop=dest+116|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  28641. _GetDefaultShader($1);
  28642. dest=$$sroa$09; src=$1; stop=dest+56|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  28643. _GetDefaultTexture($2);
  28644. $$sroa$09$56$sroa_idx = ((($$sroa$09)) + 56|0);
  28645. ;HEAP32[$$sroa$09$56$sroa_idx>>2]=HEAP32[$2>>2]|0;HEAP32[$$sroa$09$56$sroa_idx+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$$sroa$09$56$sroa_idx+8>>2]=HEAP32[$2+8>>2]|0;HEAP32[$$sroa$09$56$sroa_idx+12>>2]=HEAP32[$2+12>>2]|0;HEAP32[$$sroa$09$56$sroa_idx+16>>2]=HEAP32[$2+16>>2]|0;
  28646. dest=$0; src=$$sroa$09; stop=dest+116|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  28647. $$sroa$6$0$$sroa_idx = ((($0)) + 116|0);
  28648. $$sroa$18$0$$sroa_idx15 = ((($0)) + 128|0);
  28649. ;HEAP32[$$sroa$6$0$$sroa_idx>>2]=4294967295|0;HEAP32[$$sroa$6$0$$sroa_idx+4>>2]=4294967295|0;HEAP32[$$sroa$6$0$$sroa_idx+8>>2]=4294967295|0;
  28650. HEAPF32[$$sroa$18$0$$sroa_idx15>>2] = 100.0;
  28651. STACKTOP = sp;return;
  28652. }
  28653. function _UnloadMesh($0) {
  28654. $0 = $0|0;
  28655. var label = 0, sp = 0;
  28656. sp = STACKTOP;
  28657. _rlglUnloadMesh($0);
  28658. return;
  28659. }
  28660. function _UnloadModel($0) {
  28661. $0 = $0|0;
  28662. var $$byval_copy = 0, $1 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  28663. sp = STACKTOP;
  28664. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  28665. $$byval_copy = sp + 4|0;
  28666. $vararg_buffer = sp;
  28667. _UnloadMesh($0);
  28668. $1 = ((($0)) + 132|0);
  28669. _memcpy(($$byval_copy|0),($1|0),132)|0;
  28670. _UnloadMaterial($$byval_copy);
  28671. _TraceLog(0,12377,$vararg_buffer);
  28672. STACKTOP = sp;return;
  28673. }
  28674. function _UnloadMaterial($0) {
  28675. $0 = $0|0;
  28676. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  28677. sp = STACKTOP;
  28678. $1 = ((($0)) + 56|0);
  28679. $2 = HEAP32[$1>>2]|0;
  28680. _rlDeleteTextures($2);
  28681. $3 = ((($0)) + 76|0);
  28682. $4 = HEAP32[$3>>2]|0;
  28683. _rlDeleteTextures($4);
  28684. $5 = ((($0)) + 96|0);
  28685. $6 = HEAP32[$5>>2]|0;
  28686. _rlDeleteTextures($6);
  28687. return;
  28688. }
  28689. function _DrawModel($0,$1,$2,$3) {
  28690. $0 = $0|0;
  28691. $1 = $1|0;
  28692. $2 = +$2;
  28693. $3 = $3|0;
  28694. var $$byval_copy = 0, $$byval_copy1 = 0, $$byval_copy2 = 0, $$byval_copy3 = 0, $$byval_copy4 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, label = 0, sp = 0;
  28695. sp = STACKTOP;
  28696. STACKTOP = STACKTOP + 336|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(336|0);
  28697. $$byval_copy4 = sp + 324|0;
  28698. $$byval_copy3 = sp + 312|0;
  28699. $$byval_copy2 = sp + 300|0;
  28700. $$byval_copy1 = sp + 288|0;
  28701. $$byval_copy = sp + 24|0;
  28702. $4 = sp + 12|0;
  28703. $5 = sp;
  28704. HEAPF32[$4>>2] = $2;
  28705. $6 = ((($4)) + 4|0);
  28706. HEAPF32[$6>>2] = $2;
  28707. $7 = ((($4)) + 8|0);
  28708. HEAPF32[$7>>2] = $2;
  28709. ;HEAP32[$5>>2]=0|0;HEAP32[$5+4>>2]=0|0;HEAP32[$5+8>>2]=0|0;
  28710. _memcpy(($$byval_copy|0),($0|0),264)|0;
  28711. ;HEAP32[$$byval_copy1>>2]=HEAP32[$1>>2]|0;HEAP32[$$byval_copy1+4>>2]=HEAP32[$1+4>>2]|0;HEAP32[$$byval_copy1+8>>2]=HEAP32[$1+8>>2]|0;
  28712. ;HEAP32[$$byval_copy2>>2]=HEAP32[$5>>2]|0;HEAP32[$$byval_copy2+4>>2]=HEAP32[$5+4>>2]|0;HEAP32[$$byval_copy2+8>>2]=HEAP32[$5+8>>2]|0;
  28713. ;HEAP32[$$byval_copy3>>2]=HEAP32[$4>>2]|0;HEAP32[$$byval_copy3+4>>2]=HEAP32[$4+4>>2]|0;HEAP32[$$byval_copy3+8>>2]=HEAP32[$4+8>>2]|0;
  28714. ;HEAP8[$$byval_copy4>>0]=HEAP8[$3>>0]|0;HEAP8[$$byval_copy4+1>>0]=HEAP8[$3+1>>0]|0;HEAP8[$$byval_copy4+2>>0]=HEAP8[$3+2>>0]|0;HEAP8[$$byval_copy4+3>>0]=HEAP8[$3+3>>0]|0;
  28715. _DrawModelEx($$byval_copy,$$byval_copy1,$$byval_copy2,0.0,$$byval_copy3,$$byval_copy4);
  28716. STACKTOP = sp;return;
  28717. }
  28718. function _DrawModelEx($0,$1,$2,$3,$4,$5) {
  28719. $0 = $0|0;
  28720. $1 = $1|0;
  28721. $2 = $2|0;
  28722. $3 = +$3;
  28723. $4 = $4|0;
  28724. $5 = $5|0;
  28725. var $$byval_copy5 = 0, $$byval_copy6 = 0, $$byval_copy7 = 0, $10 = 0, $11 = 0.0, $12 = 0.0, $13 = 0, $14 = 0.0, $15 = 0, $16 = 0.0, $17 = 0.0, $18 = 0, $19 = 0.0, $20 = 0, $21 = 0.0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $6 = 0;
  28726. var $7 = 0, $8 = 0, $9 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  28727. sp = STACKTOP;
  28728. STACKTOP = STACKTOP + 592|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(592|0);
  28729. $$byval_copy7 = sp + 520|0;
  28730. $$byval_copy6 = sp + 388|0;
  28731. $$byval_copy5 = sp + 320|0;
  28732. $6 = sp + 128|0;
  28733. $7 = sp + 64|0;
  28734. $8 = sp;
  28735. $9 = sp + 256|0;
  28736. $10 = sp + 192|0;
  28737. $11 = $3 * 0.01745329238474369;
  28738. ;HEAP32[$$byval_copy7>>2]=HEAP32[$2>>2]|0;HEAP32[$$byval_copy7+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$$byval_copy7+8>>2]=HEAP32[$2+8>>2]|0;
  28739. _MatrixRotate($6,$$byval_copy7,$11);
  28740. $12 = +HEAPF32[$4>>2];
  28741. $13 = ((($4)) + 4|0);
  28742. $14 = +HEAPF32[$13>>2];
  28743. $15 = ((($4)) + 8|0);
  28744. $16 = +HEAPF32[$15>>2];
  28745. _MatrixScale($7,$12,$14,$16);
  28746. $17 = +HEAPF32[$1>>2];
  28747. $18 = ((($1)) + 4|0);
  28748. $19 = +HEAPF32[$18>>2];
  28749. $20 = ((($1)) + 8|0);
  28750. $21 = +HEAPF32[$20>>2];
  28751. _MatrixTranslate($8,$17,$19,$21);
  28752. $22 = ((($0)) + 68|0);
  28753. dest=$$byval_copy6; src=$7; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  28754. dest=$$byval_copy7; src=$6; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  28755. _MatrixMultiply($9,$$byval_copy6,$$byval_copy7);
  28756. dest=$$byval_copy6; src=$9; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  28757. dest=$$byval_copy7; src=$8; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  28758. _MatrixMultiply($10,$$byval_copy6,$$byval_copy7);
  28759. dest=$22; src=$10; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  28760. $23 = ((($0)) + 132|0);
  28761. $24 = ((($0)) + 248|0);
  28762. $25 = HEAPU8[$5>>0]|(HEAPU8[$5+1>>0]<<8)|(HEAPU8[$5+2>>0]<<16)|(HEAPU8[$5+3>>0]<<24);
  28763. HEAP32[$24>>2] = $25;
  28764. dest=$$byval_copy5; src=$0; stop=dest+68|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  28765. _memcpy(($$byval_copy6|0),($23|0),132)|0;
  28766. dest=$$byval_copy7; src=$10; stop=dest+64|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  28767. _rlglDrawMesh($$byval_copy5,$$byval_copy6,$$byval_copy7);
  28768. STACKTOP = sp;return;
  28769. }
  28770. function _DrawBoundingBox($0,$1) {
  28771. $0 = $0|0;
  28772. $1 = $1|0;
  28773. var $$byval_copy = 0, $$byval_copy1 = 0, $10 = 0, $11 = 0.0, $12 = 0.0, $13 = 0.0, $14 = 0, $15 = 0.0, $16 = 0, $17 = 0.0, $18 = 0.0, $19 = 0.0, $2 = 0, $20 = 0.0, $21 = 0.0, $22 = 0.0, $23 = 0, $24 = 0.0, $25 = 0.0, $26 = 0.0;
  28774. var $27 = 0, $28 = 0.0, $29 = 0.0, $3 = 0, $30 = 0.0, $4 = 0.0, $5 = 0.0, $6 = 0.0, $7 = 0.0, $8 = 0, $9 = 0.0, label = 0, sp = 0;
  28775. sp = STACKTOP;
  28776. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  28777. $$byval_copy1 = sp + 24|0;
  28778. $$byval_copy = sp + 12|0;
  28779. $2 = sp;
  28780. $3 = ((($0)) + 12|0);
  28781. $4 = +HEAPF32[$3>>2];
  28782. $5 = +HEAPF32[$0>>2];
  28783. $6 = $4 - $5;
  28784. $7 = (+Math_abs((+$6)));
  28785. $8 = ((($0)) + 16|0);
  28786. $9 = +HEAPF32[$8>>2];
  28787. $10 = ((($0)) + 4|0);
  28788. $11 = +HEAPF32[$10>>2];
  28789. $12 = $9 - $11;
  28790. $13 = (+Math_abs((+$12)));
  28791. $14 = ((($0)) + 20|0);
  28792. $15 = +HEAPF32[$14>>2];
  28793. $16 = ((($0)) + 8|0);
  28794. $17 = +HEAPF32[$16>>2];
  28795. $18 = $15 - $17;
  28796. $19 = (+Math_abs((+$18)));
  28797. $20 = +HEAPF32[$0>>2];
  28798. $21 = $7 * 0.5;
  28799. $22 = $21 + $20;
  28800. HEAPF32[$2>>2] = $22;
  28801. $23 = ((($2)) + 4|0);
  28802. $24 = +HEAPF32[$10>>2];
  28803. $25 = $13 * 0.5;
  28804. $26 = $25 + $24;
  28805. HEAPF32[$23>>2] = $26;
  28806. $27 = ((($2)) + 8|0);
  28807. $28 = +HEAPF32[$16>>2];
  28808. $29 = $19 * 0.5;
  28809. $30 = $29 + $28;
  28810. HEAPF32[$27>>2] = $30;
  28811. ;HEAP32[$$byval_copy>>2]=HEAP32[$2>>2]|0;HEAP32[$$byval_copy+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$$byval_copy+8>>2]=HEAP32[$2+8>>2]|0;
  28812. ;HEAP8[$$byval_copy1>>0]=HEAP8[$1>>0]|0;HEAP8[$$byval_copy1+1>>0]=HEAP8[$1+1>>0]|0;HEAP8[$$byval_copy1+2>>0]=HEAP8[$1+2>>0]|0;HEAP8[$$byval_copy1+3>>0]=HEAP8[$1+3>>0]|0;
  28813. _DrawCubeWires($$byval_copy,$7,$13,$19,$$byval_copy1);
  28814. STACKTOP = sp;return;
  28815. }
  28816. function _CheckCollisionRayBox($0,$1) {
  28817. $0 = $0|0;
  28818. $1 = $1|0;
  28819. var $10 = 0.0, $11 = 0.0, $12 = 0, $13 = 0.0, $14 = 0, $15 = 0.0, $16 = 0.0, $17 = 0, $18 = 0.0, $19 = 0.0, $2 = 0.0, $20 = 0, $21 = 0.0, $22 = 0.0, $23 = 0.0, $24 = 0, $25 = 0.0, $26 = 0, $27 = 0.0, $28 = 0.0;
  28820. var $29 = 0, $3 = 0.0, $30 = 0.0, $31 = 0.0, $32 = 0, $33 = 0.0, $34 = 0.0, $35 = 0.0, $36 = 0, $37 = 0, $38 = 0, $4 = 0.0, $5 = 0, $6 = 0.0, $7 = 0.0, $8 = 0, $9 = 0.0, $fmaxf = 0.0, $fmaxf19 = 0.0, $fmaxf20 = 0.0;
  28821. var $fmaxf21 = 0.0, $fmaxf23 = 0.0, $fminf = 0.0, $fminf17 = 0.0, $fminf18 = 0.0, $fminf22 = 0.0, $fminf24 = 0.0, $phitmp = 0, label = 0, sp = 0;
  28822. sp = STACKTOP;
  28823. $2 = +HEAPF32[$1>>2];
  28824. $3 = +HEAPF32[$0>>2];
  28825. $4 = $2 - $3;
  28826. $5 = ((($0)) + 12|0);
  28827. $6 = +HEAPF32[$5>>2];
  28828. $7 = $4 / $6;
  28829. $8 = ((($1)) + 12|0);
  28830. $9 = +HEAPF32[$8>>2];
  28831. $10 = $9 - $3;
  28832. $11 = $10 / $6;
  28833. $12 = ((($1)) + 4|0);
  28834. $13 = +HEAPF32[$12>>2];
  28835. $14 = ((($0)) + 4|0);
  28836. $15 = +HEAPF32[$14>>2];
  28837. $16 = $13 - $15;
  28838. $17 = ((($0)) + 16|0);
  28839. $18 = +HEAPF32[$17>>2];
  28840. $19 = $16 / $18;
  28841. $20 = ((($1)) + 16|0);
  28842. $21 = +HEAPF32[$20>>2];
  28843. $22 = $21 - $15;
  28844. $23 = $22 / $18;
  28845. $24 = ((($1)) + 8|0);
  28846. $25 = +HEAPF32[$24>>2];
  28847. $26 = ((($0)) + 8|0);
  28848. $27 = +HEAPF32[$26>>2];
  28849. $28 = $25 - $27;
  28850. $29 = ((($0)) + 20|0);
  28851. $30 = +HEAPF32[$29>>2];
  28852. $31 = $28 / $30;
  28853. $32 = ((($1)) + 20|0);
  28854. $33 = +HEAPF32[$32>>2];
  28855. $34 = $33 - $27;
  28856. $35 = $34 / $30;
  28857. $fmaxf20 = (+_fmaxf($7,$11));
  28858. $fmaxf21 = (+_fmaxf($19,$23));
  28859. $fminf22 = (+_fminf($fmaxf20,$fmaxf21));
  28860. $fmaxf23 = (+_fmaxf($31,$35));
  28861. $fminf24 = (+_fminf($fminf22,$fmaxf23));
  28862. $36 = $fminf24 < 0.0;
  28863. if ($36) {
  28864. $38 = 0;
  28865. $37 = $38&1;
  28866. return ($37|0);
  28867. }
  28868. $fminf = (+_fminf($7,$11));
  28869. $fminf17 = (+_fminf($19,$23));
  28870. $fmaxf = (+_fmaxf($fminf,$fminf17));
  28871. $fminf18 = (+_fminf($31,$35));
  28872. $fmaxf19 = (+_fmaxf($fmaxf,$fminf18));
  28873. $phitmp = !($fmaxf19 > $fminf24);
  28874. $38 = $phitmp;
  28875. $37 = $38&1;
  28876. return ($37|0);
  28877. }
  28878. function _GetCollisionRayMesh($0,$1,$2) {
  28879. $0 = $0|0;
  28880. $1 = $1|0;
  28881. $2 = $2|0;
  28882. var $$051 = 0, $$byval_copy = 0, $$byval_copy1 = 0, $$byval_copy2 = 0, $$byval_copy3 = 0, $$sroa$0$0$lcssa = 0, $$sroa$0$050 = 0, $$sroa$0$1 = 0, $$sroa$7$0$$sroa_idx23 = 0, $$sroa$7$0$$sroa_idx26 = 0, $$sroa$7$0$lcssa = 0.0, $$sroa$7$052 = 0.0, $$sroa$7$1 = 0.0, $$sroa$8 = 0, $$sroa$8$0$$sroa_idx = 0, $$sroa$8$0$$sroa_idx31 = 0, $$sroa$8$0$$sroa_idx34 = 0, $10 = 0, $11 = 0, $12 = 0;
  28883. var $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0;
  28884. var $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0.0, $44 = 0, $45 = 0, $46 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0;
  28885. var $9 = 0, $or$cond = 0, label = 0, sp = 0;
  28886. sp = STACKTOP;
  28887. STACKTOP = STACKTOP + 160|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(160|0);
  28888. $$byval_copy3 = sp + 144|0;
  28889. $$byval_copy2 = sp + 132|0;
  28890. $$byval_copy1 = sp + 120|0;
  28891. $$byval_copy = sp + 96|0;
  28892. $$sroa$8 = sp;
  28893. $3 = sp + 80|0;
  28894. $4 = sp + 68|0;
  28895. $5 = sp + 56|0;
  28896. $6 = sp + 24|0;
  28897. ;HEAP32[$$sroa$8>>2]=0|0;HEAP32[$$sroa$8+4>>2]=0|0;HEAP32[$$sroa$8+8>>2]=0|0;HEAP32[$$sroa$8+12>>2]=0|0;HEAP32[$$sroa$8+16>>2]=0|0;HEAP32[$$sroa$8+20>>2]=0|0;
  28898. $7 = ((($2)) + 8|0);
  28899. $8 = HEAP32[$7>>2]|0;
  28900. $9 = ($8|0)==(0|0);
  28901. if ($9) {
  28902. HEAP32[$0>>2] = 0;
  28903. $$sroa$7$0$$sroa_idx23 = ((($0)) + 4|0);
  28904. HEAPF32[$$sroa$7$0$$sroa_idx23>>2] = 0.0;
  28905. $$sroa$8$0$$sroa_idx = ((($0)) + 8|0);
  28906. ;HEAP32[$$sroa$8$0$$sroa_idx>>2]=HEAP32[$$sroa$8>>2]|0;HEAP32[$$sroa$8$0$$sroa_idx+4>>2]=HEAP32[$$sroa$8+4>>2]|0;HEAP32[$$sroa$8$0$$sroa_idx+8>>2]=HEAP32[$$sroa$8+8>>2]|0;HEAP32[$$sroa$8$0$$sroa_idx+12>>2]=HEAP32[$$sroa$8+12>>2]|0;HEAP32[$$sroa$8$0$$sroa_idx+16>>2]=HEAP32[$$sroa$8+16>>2]|0;HEAP32[$$sroa$8$0$$sroa_idx+20>>2]=HEAP32[$$sroa$8+20>>2]|0;
  28907. STACKTOP = sp;return;
  28908. }
  28909. $10 = HEAP32[$2>>2]|0;
  28910. $11 = (($10|0) / 3)&-1;
  28911. $12 = ($10|0)>(2);
  28912. if ($12) {
  28913. $13 = ((($2)) + 32|0);
  28914. $14 = ((($6)) + 4|0);
  28915. $$sroa$8$0$$sroa_idx31 = ((($6)) + 8|0);
  28916. $$051 = 0;$$sroa$0$050 = 0;$$sroa$7$052 = 0.0;
  28917. while(1) {
  28918. $15 = HEAP32[$7>>2]|0;
  28919. $16 = HEAP32[$13>>2]|0;
  28920. $17 = ($16|0)==(0|0);
  28921. $18 = ($$051*3)|0;
  28922. if ($17) {
  28923. $35 = (($15) + (($18*12)|0)|0);
  28924. ;HEAP32[$3>>2]=HEAP32[$35>>2]|0;HEAP32[$3+4>>2]=HEAP32[$35+4>>2]|0;HEAP32[$3+8>>2]=HEAP32[$35+8>>2]|0;
  28925. $36 = (($18) + 1)|0;
  28926. $37 = (($15) + (($36*12)|0)|0);
  28927. ;HEAP32[$4>>2]=HEAP32[$37>>2]|0;HEAP32[$4+4>>2]=HEAP32[$37+4>>2]|0;HEAP32[$4+8>>2]=HEAP32[$37+8>>2]|0;
  28928. $38 = (($18) + 2)|0;
  28929. $39 = (($15) + (($38*12)|0)|0);
  28930. ;HEAP32[$5>>2]=HEAP32[$39>>2]|0;HEAP32[$5+4>>2]=HEAP32[$39+4>>2]|0;HEAP32[$5+8>>2]=HEAP32[$39+8>>2]|0;
  28931. } else {
  28932. $19 = (($16) + ($18<<1)|0);
  28933. $20 = HEAP16[$19>>1]|0;
  28934. $21 = $20&65535;
  28935. $22 = (($15) + (($21*12)|0)|0);
  28936. ;HEAP32[$3>>2]=HEAP32[$22>>2]|0;HEAP32[$3+4>>2]=HEAP32[$22+4>>2]|0;HEAP32[$3+8>>2]=HEAP32[$22+8>>2]|0;
  28937. $23 = HEAP32[$13>>2]|0;
  28938. $24 = (($18) + 1)|0;
  28939. $25 = (($23) + ($24<<1)|0);
  28940. $26 = HEAP16[$25>>1]|0;
  28941. $27 = $26&65535;
  28942. $28 = (($15) + (($27*12)|0)|0);
  28943. ;HEAP32[$4>>2]=HEAP32[$28>>2]|0;HEAP32[$4+4>>2]=HEAP32[$28+4>>2]|0;HEAP32[$4+8>>2]=HEAP32[$28+8>>2]|0;
  28944. $29 = HEAP32[$13>>2]|0;
  28945. $30 = (($18) + 2)|0;
  28946. $31 = (($29) + ($30<<1)|0);
  28947. $32 = HEAP16[$31>>1]|0;
  28948. $33 = $32&65535;
  28949. $34 = (($15) + (($33*12)|0)|0);
  28950. ;HEAP32[$5>>2]=HEAP32[$34>>2]|0;HEAP32[$5+4>>2]=HEAP32[$34+4>>2]|0;HEAP32[$5+8>>2]=HEAP32[$34+8>>2]|0;
  28951. }
  28952. ;HEAP32[$$byval_copy>>2]=HEAP32[$1>>2]|0;HEAP32[$$byval_copy+4>>2]=HEAP32[$1+4>>2]|0;HEAP32[$$byval_copy+8>>2]=HEAP32[$1+8>>2]|0;HEAP32[$$byval_copy+12>>2]=HEAP32[$1+12>>2]|0;HEAP32[$$byval_copy+16>>2]=HEAP32[$1+16>>2]|0;HEAP32[$$byval_copy+20>>2]=HEAP32[$1+20>>2]|0;
  28953. ;HEAP32[$$byval_copy1>>2]=HEAP32[$3>>2]|0;HEAP32[$$byval_copy1+4>>2]=HEAP32[$3+4>>2]|0;HEAP32[$$byval_copy1+8>>2]=HEAP32[$3+8>>2]|0;
  28954. ;HEAP32[$$byval_copy2>>2]=HEAP32[$4>>2]|0;HEAP32[$$byval_copy2+4>>2]=HEAP32[$4+4>>2]|0;HEAP32[$$byval_copy2+8>>2]=HEAP32[$4+8>>2]|0;
  28955. ;HEAP32[$$byval_copy3>>2]=HEAP32[$5>>2]|0;HEAP32[$$byval_copy3+4>>2]=HEAP32[$5+4>>2]|0;HEAP32[$$byval_copy3+8>>2]=HEAP32[$5+8>>2]|0;
  28956. _GetCollisionRayTriangle($6,$$byval_copy,$$byval_copy1,$$byval_copy2,$$byval_copy3);
  28957. $40 = HEAP32[$6>>2]|0;
  28958. $41 = ($40|0)==(0);
  28959. if ($41) {
  28960. $$sroa$0$1 = $$sroa$0$050;$$sroa$7$1 = $$sroa$7$052;
  28961. } else {
  28962. $42 = ($$sroa$0$050|0)==(0);
  28963. $43 = +HEAPF32[$14>>2];
  28964. $44 = $$sroa$7$052 > $43;
  28965. $or$cond = $42 | $44;
  28966. if ($or$cond) {
  28967. ;HEAP32[$$sroa$8>>2]=HEAP32[$$sroa$8$0$$sroa_idx31>>2]|0;HEAP32[$$sroa$8+4>>2]=HEAP32[$$sroa$8$0$$sroa_idx31+4>>2]|0;HEAP32[$$sroa$8+8>>2]=HEAP32[$$sroa$8$0$$sroa_idx31+8>>2]|0;HEAP32[$$sroa$8+12>>2]=HEAP32[$$sroa$8$0$$sroa_idx31+12>>2]|0;HEAP32[$$sroa$8+16>>2]=HEAP32[$$sroa$8$0$$sroa_idx31+16>>2]|0;HEAP32[$$sroa$8+20>>2]=HEAP32[$$sroa$8$0$$sroa_idx31+20>>2]|0;
  28968. $$sroa$0$1 = $40;$$sroa$7$1 = $43;
  28969. } else {
  28970. $$sroa$0$1 = $$sroa$0$050;$$sroa$7$1 = $$sroa$7$052;
  28971. }
  28972. }
  28973. $45 = (($$051) + 1)|0;
  28974. $46 = ($45|0)<($11|0);
  28975. if ($46) {
  28976. $$051 = $45;$$sroa$0$050 = $$sroa$0$1;$$sroa$7$052 = $$sroa$7$1;
  28977. } else {
  28978. $$sroa$0$0$lcssa = $$sroa$0$1;$$sroa$7$0$lcssa = $$sroa$7$1;
  28979. break;
  28980. }
  28981. }
  28982. } else {
  28983. $$sroa$0$0$lcssa = 0;$$sroa$7$0$lcssa = 0.0;
  28984. }
  28985. HEAP32[$0>>2] = $$sroa$0$0$lcssa;
  28986. $$sroa$7$0$$sroa_idx26 = ((($0)) + 4|0);
  28987. HEAPF32[$$sroa$7$0$$sroa_idx26>>2] = $$sroa$7$0$lcssa;
  28988. $$sroa$8$0$$sroa_idx34 = ((($0)) + 8|0);
  28989. ;HEAP32[$$sroa$8$0$$sroa_idx34>>2]=HEAP32[$$sroa$8>>2]|0;HEAP32[$$sroa$8$0$$sroa_idx34+4>>2]=HEAP32[$$sroa$8+4>>2]|0;HEAP32[$$sroa$8$0$$sroa_idx34+8>>2]=HEAP32[$$sroa$8+8>>2]|0;HEAP32[$$sroa$8$0$$sroa_idx34+12>>2]=HEAP32[$$sroa$8+12>>2]|0;HEAP32[$$sroa$8$0$$sroa_idx34+16>>2]=HEAP32[$$sroa$8+16>>2]|0;HEAP32[$$sroa$8$0$$sroa_idx34+20>>2]=HEAP32[$$sroa$8+20>>2]|0;
  28990. STACKTOP = sp;return;
  28991. }
  28992. function _GetCollisionRayTriangle($0,$1,$2,$3,$4) {
  28993. $0 = $0|0;
  28994. $1 = $1|0;
  28995. $2 = $2|0;
  28996. $3 = $3|0;
  28997. $4 = $4|0;
  28998. var $$byval_copy20 = 0, $$byval_copy21 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0.0, $21 = 0.0, $22 = 0, $23 = 0, $24 = 0.0, $25 = 0.0, $26 = 0.0, $27 = 0;
  28999. var $28 = 0, $29 = 0.0, $30 = 0.0, $31 = 0, $32 = 0.0, $33 = 0, $34 = 0.0, $35 = 0.0, $36 = 0.0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, $or$cond24 = 0;
  29000. var $or$cond26 = 0, label = 0, sp = 0;
  29001. sp = STACKTOP;
  29002. STACKTOP = STACKTOP + 224|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(224|0);
  29003. $$byval_copy21 = sp + 204|0;
  29004. $$byval_copy20 = sp + 192|0;
  29005. $5 = sp + 96|0;
  29006. $6 = sp + 84|0;
  29007. $7 = sp + 72|0;
  29008. $8 = sp + 60|0;
  29009. $9 = sp + 48|0;
  29010. $10 = sp + 16|0;
  29011. $11 = sp + 180|0;
  29012. $12 = sp + 168|0;
  29013. $13 = sp + 156|0;
  29014. $14 = sp + 144|0;
  29015. $15 = sp + 132|0;
  29016. $16 = sp + 120|0;
  29017. $17 = sp;
  29018. $18 = sp + 108|0;
  29019. ;HEAP32[$10>>2]=0|0;HEAP32[$10+4>>2]=0|0;HEAP32[$10+8>>2]=0|0;HEAP32[$10+12>>2]=0|0;HEAP32[$10+16>>2]=0|0;HEAP32[$10+20>>2]=0|0;HEAP32[$10+24>>2]=0|0;HEAP32[$10+28>>2]=0|0;
  29020. ;HEAP32[$$byval_copy20>>2]=HEAP32[$3>>2]|0;HEAP32[$$byval_copy20+4>>2]=HEAP32[$3+4>>2]|0;HEAP32[$$byval_copy20+8>>2]=HEAP32[$3+8>>2]|0;
  29021. ;HEAP32[$$byval_copy21>>2]=HEAP32[$2>>2]|0;HEAP32[$$byval_copy21+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$$byval_copy21+8>>2]=HEAP32[$2+8>>2]|0;
  29022. _VectorSubtract($11,$$byval_copy20,$$byval_copy21);
  29023. ;HEAP32[$5>>2]=HEAP32[$11>>2]|0;HEAP32[$5+4>>2]=HEAP32[$11+4>>2]|0;HEAP32[$5+8>>2]=HEAP32[$11+8>>2]|0;
  29024. ;HEAP32[$$byval_copy20>>2]=HEAP32[$4>>2]|0;HEAP32[$$byval_copy20+4>>2]=HEAP32[$4+4>>2]|0;HEAP32[$$byval_copy20+8>>2]=HEAP32[$4+8>>2]|0;
  29025. ;HEAP32[$$byval_copy21>>2]=HEAP32[$2>>2]|0;HEAP32[$$byval_copy21+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$$byval_copy21+8>>2]=HEAP32[$2+8>>2]|0;
  29026. _VectorSubtract($12,$$byval_copy20,$$byval_copy21);
  29027. ;HEAP32[$6>>2]=HEAP32[$12>>2]|0;HEAP32[$6+4>>2]=HEAP32[$12+4>>2]|0;HEAP32[$6+8>>2]=HEAP32[$12+8>>2]|0;
  29028. $19 = ((($1)) + 12|0);
  29029. ;HEAP32[$$byval_copy20>>2]=HEAP32[$19>>2]|0;HEAP32[$$byval_copy20+4>>2]=HEAP32[$19+4>>2]|0;HEAP32[$$byval_copy20+8>>2]=HEAP32[$19+8>>2]|0;
  29030. ;HEAP32[$$byval_copy21>>2]=HEAP32[$12>>2]|0;HEAP32[$$byval_copy21+4>>2]=HEAP32[$12+4>>2]|0;HEAP32[$$byval_copy21+8>>2]=HEAP32[$12+8>>2]|0;
  29031. _VectorCrossProduct($13,$$byval_copy20,$$byval_copy21);
  29032. ;HEAP32[$7>>2]=HEAP32[$13>>2]|0;HEAP32[$7+4>>2]=HEAP32[$13+4>>2]|0;HEAP32[$7+8>>2]=HEAP32[$13+8>>2]|0;
  29033. ;HEAP32[$$byval_copy20>>2]=HEAP32[$5>>2]|0;HEAP32[$$byval_copy20+4>>2]=HEAP32[$5+4>>2]|0;HEAP32[$$byval_copy20+8>>2]=HEAP32[$5+8>>2]|0;
  29034. ;HEAP32[$$byval_copy21>>2]=HEAP32[$13>>2]|0;HEAP32[$$byval_copy21+4>>2]=HEAP32[$13+4>>2]|0;HEAP32[$$byval_copy21+8>>2]=HEAP32[$13+8>>2]|0;
  29035. $20 = (+_VectorDotProduct($$byval_copy20,$$byval_copy21));
  29036. $21 = $20;
  29037. $22 = $21 > -9.9999999999999995E-7;
  29038. $23 = $21 < 9.9999999999999995E-7;
  29039. $or$cond24 = $22 & $23;
  29040. if ($or$cond24) {
  29041. ;HEAP32[$0>>2]=HEAP32[$10>>2]|0;HEAP32[$0+4>>2]=HEAP32[$10+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[$10+8>>2]|0;HEAP32[$0+12>>2]=HEAP32[$10+12>>2]|0;HEAP32[$0+16>>2]=HEAP32[$10+16>>2]|0;HEAP32[$0+20>>2]=HEAP32[$10+20>>2]|0;HEAP32[$0+24>>2]=HEAP32[$10+24>>2]|0;HEAP32[$0+28>>2]=HEAP32[$10+28>>2]|0;
  29042. STACKTOP = sp;return;
  29043. }
  29044. $24 = 1.0 / $20;
  29045. ;HEAP32[$$byval_copy20>>2]=HEAP32[$1>>2]|0;HEAP32[$$byval_copy20+4>>2]=HEAP32[$1+4>>2]|0;HEAP32[$$byval_copy20+8>>2]=HEAP32[$1+8>>2]|0;
  29046. ;HEAP32[$$byval_copy21>>2]=HEAP32[$2>>2]|0;HEAP32[$$byval_copy21+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$$byval_copy21+8>>2]=HEAP32[$2+8>>2]|0;
  29047. _VectorSubtract($14,$$byval_copy20,$$byval_copy21);
  29048. ;HEAP32[$9>>2]=HEAP32[$14>>2]|0;HEAP32[$9+4>>2]=HEAP32[$14+4>>2]|0;HEAP32[$9+8>>2]=HEAP32[$14+8>>2]|0;
  29049. ;HEAP32[$$byval_copy20>>2]=HEAP32[$14>>2]|0;HEAP32[$$byval_copy20+4>>2]=HEAP32[$14+4>>2]|0;HEAP32[$$byval_copy20+8>>2]=HEAP32[$14+8>>2]|0;
  29050. ;HEAP32[$$byval_copy21>>2]=HEAP32[$7>>2]|0;HEAP32[$$byval_copy21+4>>2]=HEAP32[$7+4>>2]|0;HEAP32[$$byval_copy21+8>>2]=HEAP32[$7+8>>2]|0;
  29051. $25 = (+_VectorDotProduct($$byval_copy20,$$byval_copy21));
  29052. $26 = $24 * $25;
  29053. $27 = $26 < 0.0;
  29054. $28 = $26 > 1.0;
  29055. $or$cond = $27 | $28;
  29056. if ($or$cond) {
  29057. ;HEAP32[$0>>2]=HEAP32[$10>>2]|0;HEAP32[$0+4>>2]=HEAP32[$10+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[$10+8>>2]|0;HEAP32[$0+12>>2]=HEAP32[$10+12>>2]|0;HEAP32[$0+16>>2]=HEAP32[$10+16>>2]|0;HEAP32[$0+20>>2]=HEAP32[$10+20>>2]|0;HEAP32[$0+24>>2]=HEAP32[$10+24>>2]|0;HEAP32[$0+28>>2]=HEAP32[$10+28>>2]|0;
  29058. STACKTOP = sp;return;
  29059. }
  29060. ;HEAP32[$$byval_copy20>>2]=HEAP32[$9>>2]|0;HEAP32[$$byval_copy20+4>>2]=HEAP32[$9+4>>2]|0;HEAP32[$$byval_copy20+8>>2]=HEAP32[$9+8>>2]|0;
  29061. ;HEAP32[$$byval_copy21>>2]=HEAP32[$5>>2]|0;HEAP32[$$byval_copy21+4>>2]=HEAP32[$5+4>>2]|0;HEAP32[$$byval_copy21+8>>2]=HEAP32[$5+8>>2]|0;
  29062. _VectorCrossProduct($15,$$byval_copy20,$$byval_copy21);
  29063. ;HEAP32[$8>>2]=HEAP32[$15>>2]|0;HEAP32[$8+4>>2]=HEAP32[$15+4>>2]|0;HEAP32[$8+8>>2]=HEAP32[$15+8>>2]|0;
  29064. ;HEAP32[$$byval_copy20>>2]=HEAP32[$19>>2]|0;HEAP32[$$byval_copy20+4>>2]=HEAP32[$19+4>>2]|0;HEAP32[$$byval_copy20+8>>2]=HEAP32[$19+8>>2]|0;
  29065. ;HEAP32[$$byval_copy21>>2]=HEAP32[$15>>2]|0;HEAP32[$$byval_copy21+4>>2]=HEAP32[$15+4>>2]|0;HEAP32[$$byval_copy21+8>>2]=HEAP32[$15+8>>2]|0;
  29066. $29 = (+_VectorDotProduct($$byval_copy20,$$byval_copy21));
  29067. $30 = $24 * $29;
  29068. $31 = $30 < 0.0;
  29069. $32 = $26 + $30;
  29070. $33 = $32 > 1.0;
  29071. $or$cond26 = $31 | $33;
  29072. if ($or$cond26) {
  29073. ;HEAP32[$0>>2]=HEAP32[$10>>2]|0;HEAP32[$0+4>>2]=HEAP32[$10+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[$10+8>>2]|0;HEAP32[$0+12>>2]=HEAP32[$10+12>>2]|0;HEAP32[$0+16>>2]=HEAP32[$10+16>>2]|0;HEAP32[$0+20>>2]=HEAP32[$10+20>>2]|0;HEAP32[$0+24>>2]=HEAP32[$10+24>>2]|0;HEAP32[$0+28>>2]=HEAP32[$10+28>>2]|0;
  29074. STACKTOP = sp;return;
  29075. }
  29076. ;HEAP32[$$byval_copy20>>2]=HEAP32[$6>>2]|0;HEAP32[$$byval_copy20+4>>2]=HEAP32[$6+4>>2]|0;HEAP32[$$byval_copy20+8>>2]=HEAP32[$6+8>>2]|0;
  29077. ;HEAP32[$$byval_copy21>>2]=HEAP32[$8>>2]|0;HEAP32[$$byval_copy21+4>>2]=HEAP32[$8+4>>2]|0;HEAP32[$$byval_copy21+8>>2]=HEAP32[$8+8>>2]|0;
  29078. $34 = (+_VectorDotProduct($$byval_copy20,$$byval_copy21));
  29079. $35 = $24 * $34;
  29080. $36 = $35;
  29081. $37 = $36 > 9.9999999999999995E-7;
  29082. if ($37) {
  29083. $38 = ((($10)) + 4|0);
  29084. HEAPF32[$38>>2] = $35;
  29085. HEAP32[$10>>2] = 1;
  29086. $39 = ((($10)) + 20|0);
  29087. ;HEAP32[$$byval_copy20>>2]=HEAP32[$5>>2]|0;HEAP32[$$byval_copy20+4>>2]=HEAP32[$5+4>>2]|0;HEAP32[$$byval_copy20+8>>2]=HEAP32[$5+8>>2]|0;
  29088. ;HEAP32[$$byval_copy21>>2]=HEAP32[$6>>2]|0;HEAP32[$$byval_copy21+4>>2]=HEAP32[$6+4>>2]|0;HEAP32[$$byval_copy21+8>>2]=HEAP32[$6+8>>2]|0;
  29089. _VectorCrossProduct($16,$$byval_copy20,$$byval_copy21);
  29090. ;HEAP32[$39>>2]=HEAP32[$16>>2]|0;HEAP32[$39+4>>2]=HEAP32[$16+4>>2]|0;HEAP32[$39+8>>2]=HEAP32[$16+8>>2]|0;
  29091. _VectorNormalize($39);
  29092. ;HEAP32[$17>>2]=HEAP32[$19>>2]|0;HEAP32[$17+4>>2]=HEAP32[$19+4>>2]|0;HEAP32[$17+8>>2]=HEAP32[$19+8>>2]|0;
  29093. _VectorScale($17,$35);
  29094. $40 = ((($10)) + 8|0);
  29095. ;HEAP32[$$byval_copy20>>2]=HEAP32[$1>>2]|0;HEAP32[$$byval_copy20+4>>2]=HEAP32[$1+4>>2]|0;HEAP32[$$byval_copy20+8>>2]=HEAP32[$1+8>>2]|0;
  29096. ;HEAP32[$$byval_copy21>>2]=HEAP32[$17>>2]|0;HEAP32[$$byval_copy21+4>>2]=HEAP32[$17+4>>2]|0;HEAP32[$$byval_copy21+8>>2]=HEAP32[$17+8>>2]|0;
  29097. _VectorAdd($18,$$byval_copy20,$$byval_copy21);
  29098. ;HEAP32[$40>>2]=HEAP32[$18>>2]|0;HEAP32[$40+4>>2]=HEAP32[$18+4>>2]|0;HEAP32[$40+8>>2]=HEAP32[$18+8>>2]|0;
  29099. }
  29100. ;HEAP32[$0>>2]=HEAP32[$10>>2]|0;HEAP32[$0+4>>2]=HEAP32[$10+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[$10+8>>2]|0;HEAP32[$0+12>>2]=HEAP32[$10+12>>2]|0;HEAP32[$0+16>>2]=HEAP32[$10+16>>2]|0;HEAP32[$0+20>>2]=HEAP32[$10+20>>2]|0;HEAP32[$0+24>>2]=HEAP32[$10+24>>2]|0;HEAP32[$0+28>>2]=HEAP32[$10+28>>2]|0;
  29101. STACKTOP = sp;return;
  29102. }
  29103. function _GetCollisionRayGround($0,$1,$2) {
  29104. $0 = $0|0;
  29105. $1 = $1|0;
  29106. $2 = +$2;
  29107. var $$byval_copy = 0, $$byval_copy1 = 0, $$sroa$06$1 = 0, $$sroa$5$0$$sroa_idx8 = 0, $$sroa$5$1 = 0.0, $$sroa$6 = 0, $$sroa$6$0$$sroa_idx = 0, $$sroa$7$0$$sroa_idx13 = 0, $$sroa$8$0$$sroa_idx15 = 0, $$sroa$8$1 = 0.0, $$sroa$9$0$$sroa_idx17 = 0, $10 = 0, $11 = 0, $12 = 0.0, $13 = 0.0, $14 = 0.0, $15 = 0.0, $16 = 0, $3 = 0, $4 = 0;
  29108. var $5 = 0, $6 = 0, $7 = 0.0, $8 = 0.0, $9 = 0.0, label = 0, sp = 0;
  29109. sp = STACKTOP;
  29110. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  29111. $$byval_copy1 = sp + 48|0;
  29112. $$byval_copy = sp + 36|0;
  29113. $$sroa$6 = sp;
  29114. $3 = sp + 24|0;
  29115. $4 = sp + 12|0;
  29116. ;HEAP32[$$sroa$6>>2]=0|0;HEAP32[$$sroa$6+4>>2]=0|0;HEAP32[$$sroa$6+8>>2]=0|0;
  29117. $5 = ((($1)) + 12|0);
  29118. $6 = ((($1)) + 16|0);
  29119. $7 = +HEAPF32[$6>>2];
  29120. $8 = (+Math_abs((+$7)));
  29121. $9 = $8;
  29122. $10 = $9 > 9.9999999999999995E-7;
  29123. if ($10) {
  29124. $11 = ((($1)) + 4|0);
  29125. $12 = +HEAPF32[$11>>2];
  29126. $13 = $12 - $2;
  29127. $14 = -$7;
  29128. $15 = $13 / $14;
  29129. $16 = !($15 >= 0.0);
  29130. if ($16) {
  29131. $$sroa$06$1 = 0;$$sroa$5$1 = 0.0;$$sroa$8$1 = 0.0;
  29132. } else {
  29133. ;HEAP32[$3>>2]=HEAP32[$5>>2]|0;HEAP32[$3+4>>2]=HEAP32[$5+4>>2]|0;HEAP32[$3+8>>2]=HEAP32[$5+8>>2]|0;
  29134. _VectorScale($3,$15);
  29135. ;HEAP32[$$byval_copy>>2]=HEAP32[$1>>2]|0;HEAP32[$$byval_copy+4>>2]=HEAP32[$1+4>>2]|0;HEAP32[$$byval_copy+8>>2]=HEAP32[$1+8>>2]|0;
  29136. ;HEAP32[$$byval_copy1>>2]=HEAP32[$3>>2]|0;HEAP32[$$byval_copy1+4>>2]=HEAP32[$3+4>>2]|0;HEAP32[$$byval_copy1+8>>2]=HEAP32[$3+8>>2]|0;
  29137. _VectorAdd($4,$$byval_copy,$$byval_copy1);
  29138. ;HEAP32[$$sroa$6>>2]=HEAP32[$4>>2]|0;HEAP32[$$sroa$6+4>>2]=HEAP32[$4+4>>2]|0;HEAP32[$$sroa$6+8>>2]=HEAP32[$4+8>>2]|0;
  29139. $$sroa$06$1 = 1;$$sroa$5$1 = $15;$$sroa$8$1 = 1.0;
  29140. }
  29141. } else {
  29142. $$sroa$06$1 = 0;$$sroa$5$1 = 0.0;$$sroa$8$1 = 0.0;
  29143. }
  29144. HEAP32[$0>>2] = $$sroa$06$1;
  29145. $$sroa$5$0$$sroa_idx8 = ((($0)) + 4|0);
  29146. HEAPF32[$$sroa$5$0$$sroa_idx8>>2] = $$sroa$5$1;
  29147. $$sroa$6$0$$sroa_idx = ((($0)) + 8|0);
  29148. ;HEAP32[$$sroa$6$0$$sroa_idx>>2]=HEAP32[$$sroa$6>>2]|0;HEAP32[$$sroa$6$0$$sroa_idx+4>>2]=HEAP32[$$sroa$6+4>>2]|0;HEAP32[$$sroa$6$0$$sroa_idx+8>>2]=HEAP32[$$sroa$6+8>>2]|0;
  29149. $$sroa$7$0$$sroa_idx13 = ((($0)) + 20|0);
  29150. HEAPF32[$$sroa$7$0$$sroa_idx13>>2] = 0.0;
  29151. $$sroa$8$0$$sroa_idx15 = ((($0)) + 24|0);
  29152. HEAPF32[$$sroa$8$0$$sroa_idx15>>2] = $$sroa$8$1;
  29153. $$sroa$9$0$$sroa_idx17 = ((($0)) + 28|0);
  29154. HEAPF32[$$sroa$9$0$$sroa_idx17>>2] = 0.0;
  29155. STACKTOP = sp;return;
  29156. }
  29157. function _CalculateBoundingBox($0,$1) {
  29158. $0 = $0|0;
  29159. $1 = $1|0;
  29160. var $$020 = 0, $$byval_copy2 = 0, $$byval_copy3 = 0, $$sroa$2$0$$sroa_idx11 = 0, $$sroa$214$0$$sroa_idx15 = 0, $$sroa$3$0$$sroa_idx12 = 0, $$sroa$316$0$$sroa_idx17 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0;
  29161. var $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0;
  29162. var $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  29163. sp = STACKTOP;
  29164. STACKTOP = STACKTOP + 112|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(112|0);
  29165. $$byval_copy3 = sp + 88|0;
  29166. $$byval_copy2 = sp + 72|0;
  29167. $2 = sp + 60|0;
  29168. $3 = sp + 24|0;
  29169. $4 = sp + 48|0;
  29170. $5 = sp + 36|0;
  29171. $6 = sp + 12|0;
  29172. $7 = sp;
  29173. ;HEAP32[$2>>2]=0|0;HEAP32[$2+4>>2]=0|0;HEAP32[$2+8>>2]=0|0;
  29174. ;HEAP32[$3>>2]=0|0;HEAP32[$3+4>>2]=0|0;HEAP32[$3+8>>2]=0|0;
  29175. $8 = ((($1)) + 8|0);
  29176. $9 = HEAP32[$8>>2]|0;
  29177. $10 = ($9|0)==(0|0);
  29178. if (!($10)) {
  29179. $11 = HEAP32[$9>>2]|0;
  29180. $12 = ((($9)) + 4|0);
  29181. $13 = HEAP32[$12>>2]|0;
  29182. $14 = ((($9)) + 8|0);
  29183. $15 = HEAP32[$14>>2]|0;
  29184. HEAP32[$2>>2] = $11;
  29185. $$sroa$214$0$$sroa_idx15 = ((($2)) + 4|0);
  29186. HEAP32[$$sroa$214$0$$sroa_idx15>>2] = $13;
  29187. $$sroa$316$0$$sroa_idx17 = ((($2)) + 8|0);
  29188. HEAP32[$$sroa$316$0$$sroa_idx17>>2] = $15;
  29189. $16 = HEAP32[$8>>2]|0;
  29190. $17 = HEAP32[$16>>2]|0;
  29191. $18 = ((($16)) + 4|0);
  29192. $19 = HEAP32[$18>>2]|0;
  29193. $20 = ((($16)) + 8|0);
  29194. $21 = HEAP32[$20>>2]|0;
  29195. HEAP32[$3>>2] = $17;
  29196. $$sroa$2$0$$sroa_idx11 = ((($3)) + 4|0);
  29197. HEAP32[$$sroa$2$0$$sroa_idx11>>2] = $19;
  29198. $$sroa$3$0$$sroa_idx12 = ((($3)) + 8|0);
  29199. HEAP32[$$sroa$3$0$$sroa_idx12>>2] = $21;
  29200. $22 = HEAP32[$1>>2]|0;
  29201. $23 = ($22|0)>(1);
  29202. if ($23) {
  29203. $24 = ((($4)) + 4|0);
  29204. $25 = ((($4)) + 8|0);
  29205. $26 = ((($6)) + 4|0);
  29206. $27 = ((($6)) + 8|0);
  29207. $28 = HEAP32[$1>>2]|0;
  29208. $$020 = 1;
  29209. while(1) {
  29210. $29 = ($$020*3)|0;
  29211. $30 = (($16) + ($29<<2)|0);
  29212. $31 = HEAP32[$30>>2]|0;
  29213. HEAP32[$4>>2] = $31;
  29214. $32 = (($29) + 1)|0;
  29215. $33 = (($16) + ($32<<2)|0);
  29216. $34 = HEAP32[$33>>2]|0;
  29217. HEAP32[$24>>2] = $34;
  29218. $35 = (($29) + 2)|0;
  29219. $36 = (($16) + ($35<<2)|0);
  29220. $37 = HEAP32[$36>>2]|0;
  29221. HEAP32[$25>>2] = $37;
  29222. ;HEAP32[$$byval_copy2>>2]=HEAP32[$2>>2]|0;HEAP32[$$byval_copy2+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$$byval_copy2+8>>2]=HEAP32[$2+8>>2]|0;
  29223. ;HEAP32[$$byval_copy3>>2]=HEAP32[$4>>2]|0;HEAP32[$$byval_copy3+4>>2]=HEAP32[$4+4>>2]|0;HEAP32[$$byval_copy3+8>>2]=HEAP32[$4+8>>2]|0;
  29224. _VectorMin($5,$$byval_copy2,$$byval_copy3);
  29225. ;HEAP32[$2>>2]=HEAP32[$5>>2]|0;HEAP32[$2+4>>2]=HEAP32[$5+4>>2]|0;HEAP32[$2+8>>2]=HEAP32[$5+8>>2]|0;
  29226. $38 = HEAP32[$8>>2]|0;
  29227. $39 = (($38) + ($29<<2)|0);
  29228. $40 = HEAP32[$39>>2]|0;
  29229. HEAP32[$6>>2] = $40;
  29230. $41 = (($38) + ($32<<2)|0);
  29231. $42 = HEAP32[$41>>2]|0;
  29232. HEAP32[$26>>2] = $42;
  29233. $43 = HEAP32[$8>>2]|0;
  29234. $44 = (($43) + ($35<<2)|0);
  29235. $45 = HEAP32[$44>>2]|0;
  29236. HEAP32[$27>>2] = $45;
  29237. ;HEAP32[$$byval_copy2>>2]=HEAP32[$3>>2]|0;HEAP32[$$byval_copy2+4>>2]=HEAP32[$3+4>>2]|0;HEAP32[$$byval_copy2+8>>2]=HEAP32[$3+8>>2]|0;
  29238. ;HEAP32[$$byval_copy3>>2]=HEAP32[$6>>2]|0;HEAP32[$$byval_copy3+4>>2]=HEAP32[$6+4>>2]|0;HEAP32[$$byval_copy3+8>>2]=HEAP32[$6+8>>2]|0;
  29239. _VectorMax($7,$$byval_copy2,$$byval_copy3);
  29240. ;HEAP32[$3>>2]=HEAP32[$7>>2]|0;HEAP32[$3+4>>2]=HEAP32[$7+4>>2]|0;HEAP32[$3+8>>2]=HEAP32[$7+8>>2]|0;
  29241. $46 = (($$020) + 1)|0;
  29242. $47 = ($46|0)<($28|0);
  29243. if ($47) {
  29244. $$020 = $46;
  29245. } else {
  29246. break;
  29247. }
  29248. }
  29249. }
  29250. }
  29251. ;HEAP32[$$byval_copy3>>2]=HEAP32[$2>>2]|0;HEAP32[$$byval_copy3+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$$byval_copy3+8>>2]=HEAP32[$2+8>>2]|0;
  29252. $48 = ((($$byval_copy3)) + 12|0);
  29253. ;HEAP32[$48>>2]=HEAP32[$3>>2]|0;HEAP32[$48+4>>2]=HEAP32[$3+4>>2]|0;HEAP32[$48+8>>2]=HEAP32[$3+8>>2]|0;
  29254. ;HEAP32[$0>>2]=HEAP32[$$byval_copy3>>2]|0;HEAP32[$0+4>>2]=HEAP32[$$byval_copy3+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[$$byval_copy3+8>>2]|0;HEAP32[$0+12>>2]=HEAP32[$$byval_copy3+12>>2]|0;HEAP32[$0+16>>2]=HEAP32[$$byval_copy3+16>>2]|0;HEAP32[$0+20>>2]=HEAP32[$$byval_copy3+20>>2]|0;
  29255. STACKTOP = sp;return;
  29256. }
  29257. function _emscripten_GetProcAddress($0) {
  29258. $0 = $0|0;
  29259. var $1 = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0, $114 = 0, $115 = 0, $116 = 0;
  29260. var $117 = 0, $118 = 0, $119 = 0, $12 = 0, $120 = 0, $121 = 0, $122 = 0, $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 0, $128 = 0, $129 = 0, $13 = 0, $130 = 0, $131 = 0, $132 = 0, $133 = 0, $134 = 0;
  29261. var $135 = 0, $136 = 0, $137 = 0, $138 = 0, $139 = 0, $14 = 0, $140 = 0, $141 = 0, $142 = 0, $143 = 0, $144 = 0, $145 = 0, $146 = 0, $147 = 0, $148 = 0, $149 = 0, $15 = 0, $150 = 0, $151 = 0, $152 = 0;
  29262. var $153 = 0, $154 = 0, $155 = 0, $156 = 0, $157 = 0, $158 = 0, $159 = 0, $16 = 0, $160 = 0, $161 = 0, $162 = 0, $163 = 0, $164 = 0, $165 = 0, $166 = 0, $167 = 0, $168 = 0, $169 = 0, $17 = 0, $170 = 0;
  29263. var $171 = 0, $172 = 0, $173 = 0, $174 = 0, $175 = 0, $176 = 0, $177 = 0, $178 = 0, $179 = 0, $18 = 0, $180 = 0, $181 = 0, $182 = 0, $183 = 0, $184 = 0, $185 = 0, $186 = 0, $187 = 0, $188 = 0, $189 = 0;
  29264. var $19 = 0, $190 = 0, $191 = 0, $192 = 0, $193 = 0, $194 = 0, $195 = 0, $196 = 0, $197 = 0, $198 = 0, $199 = 0, $2 = 0, $20 = 0, $200 = 0, $201 = 0, $202 = 0, $203 = 0, $204 = 0, $205 = 0, $206 = 0;
  29265. var $207 = 0, $208 = 0, $209 = 0, $21 = 0, $210 = 0, $211 = 0, $212 = 0, $213 = 0, $214 = 0, $215 = 0, $216 = 0, $217 = 0, $218 = 0, $219 = 0, $22 = 0, $220 = 0, $221 = 0, $222 = 0, $223 = 0, $224 = 0;
  29266. var $225 = 0, $226 = 0, $227 = 0, $228 = 0, $229 = 0, $23 = 0, $230 = 0, $231 = 0, $232 = 0, $233 = 0, $234 = 0, $235 = 0, $236 = 0, $237 = 0, $238 = 0, $239 = 0, $24 = 0, $240 = 0, $241 = 0, $242 = 0;
  29267. var $243 = 0, $244 = 0, $245 = 0, $246 = 0, $247 = 0, $248 = 0, $249 = 0, $25 = 0, $250 = 0, $251 = 0, $252 = 0, $253 = 0, $254 = 0, $255 = 0, $256 = 0, $257 = 0, $258 = 0, $259 = 0, $26 = 0, $260 = 0;
  29268. var $261 = 0, $262 = 0, $263 = 0, $264 = 0, $265 = 0, $266 = 0, $267 = 0, $268 = 0, $269 = 0, $27 = 0, $270 = 0, $271 = 0, $272 = 0, $273 = 0, $274 = 0, $275 = 0, $276 = 0, $277 = 0, $278 = 0, $279 = 0;
  29269. var $28 = 0, $280 = 0, $281 = 0, $282 = 0, $283 = 0, $284 = 0, $285 = 0, $286 = 0, $287 = 0, $288 = 0, $289 = 0, $29 = 0, $290 = 0, $291 = 0, $292 = 0, $293 = 0, $294 = 0, $295 = 0, $296 = 0, $297 = 0;
  29270. var $298 = 0, $299 = 0, $3 = 0, $30 = 0, $300 = 0, $301 = 0, $302 = 0, $303 = 0, $304 = 0, $305 = 0, $306 = 0, $307 = 0, $308 = 0, $309 = 0, $31 = 0, $310 = 0, $311 = 0, $312 = 0, $313 = 0, $314 = 0;
  29271. var $315 = 0, $316 = 0, $317 = 0, $318 = 0, $319 = 0, $32 = 0, $320 = 0, $321 = 0, $322 = 0, $323 = 0, $324 = 0, $325 = 0, $326 = 0, $327 = 0, $328 = 0, $329 = 0, $33 = 0, $330 = 0, $331 = 0, $332 = 0;
  29272. var $333 = 0, $334 = 0, $335 = 0, $336 = 0, $337 = 0, $338 = 0, $339 = 0, $34 = 0, $340 = 0, $341 = 0, $342 = 0, $343 = 0, $344 = 0, $345 = 0, $346 = 0, $347 = 0, $348 = 0, $349 = 0, $35 = 0, $350 = 0;
  29273. var $351 = 0, $352 = 0, $353 = 0, $354 = 0, $355 = 0, $356 = 0, $357 = 0, $358 = 0, $359 = 0, $36 = 0, $360 = 0, $361 = 0, $362 = 0, $363 = 0, $364 = 0, $365 = 0, $366 = 0, $367 = 0, $368 = 0, $369 = 0;
  29274. var $37 = 0, $370 = 0, $371 = 0, $372 = 0, $373 = 0, $374 = 0, $375 = 0, $376 = 0, $377 = 0, $378 = 0, $379 = 0, $38 = 0, $380 = 0, $381 = 0, $382 = 0, $383 = 0, $384 = 0, $385 = 0, $386 = 0, $387 = 0;
  29275. var $388 = 0, $389 = 0, $39 = 0, $390 = 0, $391 = 0, $392 = 0, $393 = 0, $394 = 0, $395 = 0, $396 = 0, $397 = 0, $398 = 0, $399 = 0, $4 = 0, $40 = 0, $400 = 0, $401 = 0, $402 = 0, $403 = 0, $404 = 0;
  29276. var $405 = 0, $406 = 0, $407 = 0, $408 = 0, $409 = 0, $41 = 0, $410 = 0, $411 = 0, $412 = 0, $413 = 0, $414 = 0, $415 = 0, $416 = 0, $417 = 0, $418 = 0, $419 = 0, $42 = 0, $420 = 0, $421 = 0, $422 = 0;
  29277. var $423 = 0, $424 = 0, $425 = 0, $426 = 0, $427 = 0, $428 = 0, $429 = 0, $43 = 0, $430 = 0, $431 = 0, $432 = 0, $433 = 0, $434 = 0, $435 = 0, $436 = 0, $437 = 0, $438 = 0, $439 = 0, $44 = 0, $440 = 0;
  29278. var $441 = 0, $442 = 0, $443 = 0, $444 = 0, $445 = 0, $446 = 0, $447 = 0, $448 = 0, $449 = 0, $45 = 0, $450 = 0, $451 = 0, $452 = 0, $453 = 0, $454 = 0, $455 = 0, $456 = 0, $457 = 0, $458 = 0, $459 = 0;
  29279. var $46 = 0, $460 = 0, $461 = 0, $462 = 0, $463 = 0, $464 = 0, $465 = 0, $466 = 0, $467 = 0, $468 = 0, $469 = 0, $47 = 0, $470 = 0, $471 = 0, $472 = 0, $473 = 0, $474 = 0, $475 = 0, $476 = 0, $477 = 0;
  29280. var $478 = 0, $479 = 0, $48 = 0, $480 = 0, $481 = 0, $482 = 0, $483 = 0, $484 = 0, $485 = 0, $486 = 0, $487 = 0, $488 = 0, $489 = 0, $49 = 0, $490 = 0, $491 = 0, $492 = 0, $493 = 0, $494 = 0, $495 = 0;
  29281. var $496 = 0, $497 = 0, $498 = 0, $499 = 0, $5 = 0, $50 = 0, $500 = 0, $501 = 0, $502 = 0, $503 = 0, $504 = 0, $505 = 0, $506 = 0, $507 = 0, $508 = 0, $509 = 0, $51 = 0, $510 = 0, $511 = 0, $512 = 0;
  29282. var $513 = 0, $514 = 0, $515 = 0, $516 = 0, $517 = 0, $518 = 0, $519 = 0, $52 = 0, $520 = 0, $521 = 0, $522 = 0, $523 = 0, $524 = 0, $525 = 0, $526 = 0, $527 = 0, $528 = 0, $529 = 0, $53 = 0, $530 = 0;
  29283. var $531 = 0, $532 = 0, $533 = 0, $534 = 0, $535 = 0, $536 = 0, $537 = 0, $538 = 0, $539 = 0, $54 = 0, $540 = 0, $541 = 0, $542 = 0, $543 = 0, $544 = 0, $545 = 0, $546 = 0, $547 = 0, $548 = 0, $549 = 0;
  29284. var $55 = 0, $550 = 0, $551 = 0, $552 = 0, $553 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0;
  29285. var $7 = 0, $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0;
  29286. var $88 = 0, $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, label = 0, sp = 0;
  29287. sp = STACKTOP;
  29288. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  29289. $1 = sp + 12|0;
  29290. $2 = sp + 8|0;
  29291. $3 = sp + 4|0;
  29292. $4 = sp;
  29293. HEAP32[$2>>2] = $0;
  29294. $5 = HEAP32[$2>>2]|0;
  29295. $6 = (_strlen($5)|0);
  29296. $7 = (($6) + 1)|0;
  29297. $8 = (_malloc($7)|0);
  29298. HEAP32[$3>>2] = $8;
  29299. $9 = HEAP32[$3>>2]|0;
  29300. $10 = HEAP32[$2>>2]|0;
  29301. (_strcpy($9,$10)|0);
  29302. $11 = HEAP32[$3>>2]|0;
  29303. $12 = (_strstr($11,12435)|0);
  29304. HEAP32[$4>>2] = $12;
  29305. $13 = HEAP32[$4>>2]|0;
  29306. $14 = ($13|0)!=(0|0);
  29307. if ($14) {
  29308. $15 = HEAP32[$4>>2]|0;
  29309. HEAP8[$15>>0] = 0;
  29310. }
  29311. $16 = HEAP32[$3>>2]|0;
  29312. $17 = (_strstr($16,12439)|0);
  29313. HEAP32[$4>>2] = $17;
  29314. $18 = HEAP32[$4>>2]|0;
  29315. $19 = ($18|0)!=(0|0);
  29316. if ($19) {
  29317. $20 = HEAP32[$4>>2]|0;
  29318. HEAP8[$20>>0] = 0;
  29319. }
  29320. $21 = HEAP32[$3>>2]|0;
  29321. $22 = (_strstr($21,12443)|0);
  29322. HEAP32[$4>>2] = $22;
  29323. $23 = HEAP32[$4>>2]|0;
  29324. $24 = ($23|0)!=(0|0);
  29325. if ($24) {
  29326. $25 = HEAP32[$4>>2]|0;
  29327. HEAP8[$25>>0] = 0;
  29328. }
  29329. $26 = HEAP32[$3>>2]|0;
  29330. $27 = (_strstr($26,12447)|0);
  29331. HEAP32[$4>>2] = $27;
  29332. $28 = HEAP32[$4>>2]|0;
  29333. $29 = ($28|0)!=(0|0);
  29334. if ($29) {
  29335. $30 = HEAP32[$4>>2]|0;
  29336. HEAP8[$30>>0] = 0;
  29337. }
  29338. $31 = HEAP32[$3>>2]|0;
  29339. $32 = (_strcmp($31,12453)|0);
  29340. $33 = ($32|0)!=(0);
  29341. do {
  29342. if ($33) {
  29343. $34 = HEAP32[$3>>2]|0;
  29344. $35 = (_strcmp($34,12491)|0);
  29345. $36 = ($35|0)!=(0);
  29346. if (!($36)) {
  29347. HEAP32[$3>>2] = 12510;
  29348. break;
  29349. }
  29350. $37 = HEAP32[$3>>2]|0;
  29351. $38 = (_strcmp($37,12523)|0);
  29352. $39 = ($38|0)!=(0);
  29353. if (!($39)) {
  29354. HEAP32[$3>>2] = 12544;
  29355. break;
  29356. }
  29357. $40 = HEAP32[$3>>2]|0;
  29358. $41 = (_strcmp($40,12559)|0);
  29359. $42 = ($41|0)!=(0);
  29360. if (!($42)) {
  29361. HEAP32[$3>>2] = 12574;
  29362. break;
  29363. }
  29364. $43 = HEAP32[$3>>2]|0;
  29365. $44 = (_strcmp($43,12589)|0);
  29366. $45 = ($44|0)!=(0);
  29367. if (!($45)) {
  29368. HEAP32[$3>>2] = 12604;
  29369. }
  29370. } else {
  29371. HEAP32[$3>>2] = 12475;
  29372. }
  29373. } while(0);
  29374. $46 = HEAP32[$3>>2]|0;
  29375. $47 = (_strcmp($46,12619)|0);
  29376. $48 = ($47|0)!=(0);
  29377. do {
  29378. if ($48) {
  29379. $49 = HEAP32[$3>>2]|0;
  29380. $50 = (_strcmp($49,12633)|0);
  29381. $51 = ($50|0)!=(0);
  29382. if (!($51)) {
  29383. HEAP32[$1>>2] = 3;
  29384. break;
  29385. }
  29386. $52 = HEAP32[$3>>2]|0;
  29387. $53 = (_strcmp($52,12645)|0);
  29388. $54 = ($53|0)!=(0);
  29389. if (!($54)) {
  29390. HEAP32[$1>>2] = 7;
  29391. break;
  29392. }
  29393. $55 = HEAP32[$3>>2]|0;
  29394. $56 = (_strcmp($55,12659)|0);
  29395. $57 = ($56|0)!=(0);
  29396. if (!($57)) {
  29397. HEAP32[$1>>2] = 8;
  29398. break;
  29399. }
  29400. $58 = HEAP32[$3>>2]|0;
  29401. $59 = (_strcmp($58,12671)|0);
  29402. $60 = ($59|0)!=(0);
  29403. if (!($60)) {
  29404. HEAP32[$1>>2] = 9;
  29405. break;
  29406. }
  29407. $61 = HEAP32[$3>>2]|0;
  29408. $62 = (_strcmp($61,12685)|0);
  29409. $63 = ($62|0)!=(0);
  29410. if (!($63)) {
  29411. HEAP32[$1>>2] = 10;
  29412. break;
  29413. }
  29414. $64 = HEAP32[$3>>2]|0;
  29415. $65 = (_strcmp($64,12699)|0);
  29416. $66 = ($65|0)!=(0);
  29417. if (!($66)) {
  29418. HEAP32[$1>>2] = 11;
  29419. break;
  29420. }
  29421. $67 = HEAP32[$3>>2]|0;
  29422. $68 = (_strcmp($67,12716)|0);
  29423. $69 = ($68|0)!=(0);
  29424. if (!($69)) {
  29425. HEAP32[$1>>2] = 1;
  29426. break;
  29427. }
  29428. $70 = HEAP32[$3>>2]|0;
  29429. $71 = (_strcmp($70,12739)|0);
  29430. $72 = ($71|0)!=(0);
  29431. if (!($72)) {
  29432. HEAP32[$1>>2] = 1;
  29433. break;
  29434. }
  29435. $73 = HEAP32[$3>>2]|0;
  29436. $74 = (_strcmp($73,12765)|0);
  29437. $75 = ($74|0)!=(0);
  29438. if (!($75)) {
  29439. HEAP32[$1>>2] = 2;
  29440. break;
  29441. }
  29442. $76 = HEAP32[$3>>2]|0;
  29443. $77 = (_strcmp($76,12778)|0);
  29444. $78 = ($77|0)!=(0);
  29445. if (!($78)) {
  29446. HEAP32[$1>>2] = 3;
  29447. break;
  29448. }
  29449. $79 = HEAP32[$3>>2]|0;
  29450. $80 = (_strcmp($79,12794)|0);
  29451. $81 = ($80|0)!=(0);
  29452. if (!($81)) {
  29453. HEAP32[$1>>2] = 1;
  29454. break;
  29455. }
  29456. $82 = HEAP32[$3>>2]|0;
  29457. $83 = (_strcmp($82,12807)|0);
  29458. $84 = ($83|0)!=(0);
  29459. if (!($84)) {
  29460. HEAP32[$1>>2] = 12;
  29461. break;
  29462. }
  29463. $85 = HEAP32[$3>>2]|0;
  29464. $86 = (_strcmp($85,12821)|0);
  29465. $87 = ($86|0)!=(0);
  29466. if (!($87)) {
  29467. HEAP32[$1>>2] = 2;
  29468. break;
  29469. }
  29470. $88 = HEAP32[$3>>2]|0;
  29471. $89 = (_strcmp($88,12841)|0);
  29472. $90 = ($89|0)!=(0);
  29473. if (!($90)) {
  29474. HEAP32[$1>>2] = 3;
  29475. break;
  29476. }
  29477. $91 = HEAP32[$3>>2]|0;
  29478. $92 = (_strcmp($91,12861)|0);
  29479. $93 = ($92|0)!=(0);
  29480. if (!($93)) {
  29481. HEAP32[$1>>2] = 4;
  29482. break;
  29483. }
  29484. $94 = HEAP32[$3>>2]|0;
  29485. $95 = (_strcmp($94,12878)|0);
  29486. $96 = ($95|0)!=(0);
  29487. if (!($96)) {
  29488. HEAP32[$1>>2] = 5;
  29489. break;
  29490. }
  29491. $97 = HEAP32[$3>>2]|0;
  29492. $98 = (_strcmp($97,12895)|0);
  29493. $99 = ($98|0)!=(0);
  29494. if (!($99)) {
  29495. HEAP32[$1>>2] = 4;
  29496. break;
  29497. }
  29498. $100 = HEAP32[$3>>2]|0;
  29499. $101 = (_strcmp($100,12907)|0);
  29500. $102 = ($101|0)!=(0);
  29501. if (!($102)) {
  29502. HEAP32[$1>>2] = 13;
  29503. break;
  29504. }
  29505. $103 = HEAP32[$3>>2]|0;
  29506. $104 = (_strcmp($103,12920)|0);
  29507. $105 = ($104|0)!=(0);
  29508. if (!($105)) {
  29509. HEAP32[$1>>2] = 14;
  29510. break;
  29511. }
  29512. $106 = HEAP32[$3>>2]|0;
  29513. $107 = (_strcmp($106,12936)|0);
  29514. $108 = ($107|0)!=(0);
  29515. if (!($108)) {
  29516. HEAP32[$1>>2] = 6;
  29517. break;
  29518. }
  29519. $109 = HEAP32[$3>>2]|0;
  29520. $110 = (_strcmp($109,12959)|0);
  29521. $111 = ($110|0)!=(0);
  29522. if (!($111)) {
  29523. HEAP32[$1>>2] = 2;
  29524. break;
  29525. }
  29526. $112 = HEAP32[$3>>2]|0;
  29527. $113 = (_strcmp($112,12972)|0);
  29528. $114 = ($113|0)!=(0);
  29529. if (!($114)) {
  29530. HEAP32[$1>>2] = 3;
  29531. break;
  29532. }
  29533. $115 = HEAP32[$3>>2]|0;
  29534. $116 = (_strcmp($115,12988)|0);
  29535. $117 = ($116|0)!=(0);
  29536. if (!($117)) {
  29537. HEAP32[$1>>2] = 5;
  29538. break;
  29539. }
  29540. $118 = HEAP32[$3>>2]|0;
  29541. $119 = (_strcmp($118,12999)|0);
  29542. $120 = ($119|0)!=(0);
  29543. if (!($120)) {
  29544. HEAP32[$1>>2] = 15;
  29545. break;
  29546. }
  29547. $121 = HEAP32[$3>>2]|0;
  29548. $122 = (_strcmp($121,13018)|0);
  29549. $123 = ($122|0)!=(0);
  29550. if (!($123)) {
  29551. HEAP32[$1>>2] = 16;
  29552. break;
  29553. }
  29554. $124 = HEAP32[$3>>2]|0;
  29555. $125 = (_strcmp($124,13040)|0);
  29556. $126 = ($125|0)!=(0);
  29557. if (!($126)) {
  29558. HEAP32[$1>>2] = 17;
  29559. break;
  29560. }
  29561. $127 = HEAP32[$3>>2]|0;
  29562. $128 = (_strcmp($127,13059)|0);
  29563. $129 = ($128|0)!=(0);
  29564. if (!($129)) {
  29565. HEAP32[$1>>2] = 7;
  29566. break;
  29567. }
  29568. $130 = HEAP32[$3>>2]|0;
  29569. $131 = (_strcmp($130,13088)|0);
  29570. $132 = ($131|0)!=(0);
  29571. if (!($132)) {
  29572. HEAP32[$1>>2] = 6;
  29573. break;
  29574. }
  29575. $133 = HEAP32[$3>>2]|0;
  29576. $134 = (_strcmp($133,13105)|0);
  29577. $135 = ($134|0)!=(0);
  29578. if (!($135)) {
  29579. HEAP32[$1>>2] = 8;
  29580. break;
  29581. }
  29582. $136 = HEAP32[$3>>2]|0;
  29583. $137 = (_strcmp($136,13120)|0);
  29584. $138 = ($137|0)!=(0);
  29585. if (!($138)) {
  29586. HEAP32[$1>>2] = 9;
  29587. break;
  29588. }
  29589. $139 = HEAP32[$3>>2]|0;
  29590. $140 = (_strcmp($139,13135)|0);
  29591. $141 = ($140|0)!=(0);
  29592. if (!($141)) {
  29593. HEAP32[$1>>2] = 1;
  29594. break;
  29595. }
  29596. $142 = HEAP32[$3>>2]|0;
  29597. $143 = (_strcmp($142,13156)|0);
  29598. $144 = ($143|0)!=(0);
  29599. if (!($144)) {
  29600. HEAP32[$1>>2] = 10;
  29601. break;
  29602. }
  29603. $145 = HEAP32[$3>>2]|0;
  29604. $146 = (_strcmp($145,13176)|0);
  29605. $147 = ($146|0)!=(0);
  29606. if (!($147)) {
  29607. HEAP32[$1>>2] = 11;
  29608. break;
  29609. }
  29610. $148 = HEAP32[$3>>2]|0;
  29611. $149 = (_strcmp($148,13196)|0);
  29612. $150 = ($149|0)!=(0);
  29613. if (!($150)) {
  29614. HEAP32[$1>>2] = 12;
  29615. break;
  29616. }
  29617. $151 = HEAP32[$3>>2]|0;
  29618. $152 = (_strcmp($151,13222)|0);
  29619. $153 = ($152|0)!=(0);
  29620. if (!($153)) {
  29621. HEAP32[$1>>2] = 2;
  29622. break;
  29623. }
  29624. $154 = HEAP32[$3>>2]|0;
  29625. $155 = (_strcmp($154,13241)|0);
  29626. $156 = ($155|0)!=(0);
  29627. if (!($156)) {
  29628. HEAP32[$1>>2] = 1;
  29629. break;
  29630. }
  29631. $157 = HEAP32[$3>>2]|0;
  29632. $158 = (_strcmp($157,13253)|0);
  29633. $159 = ($158|0)!=(0);
  29634. if (!($159)) {
  29635. HEAP32[$1>>2] = 3;
  29636. break;
  29637. }
  29638. $160 = HEAP32[$3>>2]|0;
  29639. $161 = (_strcmp($160,13265)|0);
  29640. $162 = ($161|0)!=(0);
  29641. if (!($162)) {
  29642. HEAP32[$1>>2] = 1;
  29643. break;
  29644. }
  29645. $163 = HEAP32[$3>>2]|0;
  29646. $164 = (_strcmp($163,13277)|0);
  29647. $165 = ($164|0)!=(0);
  29648. if (!($165)) {
  29649. HEAP32[$1>>2] = 1;
  29650. break;
  29651. }
  29652. $166 = HEAP32[$3>>2]|0;
  29653. $167 = (_strcmp($166,13289)|0);
  29654. $168 = ($167|0)!=(0);
  29655. if (!($168)) {
  29656. HEAP32[$1>>2] = 18;
  29657. break;
  29658. }
  29659. $169 = HEAP32[$3>>2]|0;
  29660. $170 = (_strcmp($169,13301)|0);
  29661. $171 = ($170|0)!=(0);
  29662. if (!($171)) {
  29663. HEAP32[$1>>2] = 13;
  29664. break;
  29665. }
  29666. $172 = HEAP32[$3>>2]|0;
  29667. $173 = (_strcmp($172,13313)|0);
  29668. $174 = ($173|0)!=(0);
  29669. if (!($174)) {
  29670. HEAP32[$1>>2] = 4;
  29671. break;
  29672. }
  29673. $175 = HEAP32[$3>>2]|0;
  29674. $176 = (_strcmp($175,13325)|0);
  29675. $177 = ($176|0)!=(0);
  29676. if (!($177)) {
  29677. HEAP32[$1>>2] = 2;
  29678. break;
  29679. }
  29680. $178 = HEAP32[$3>>2]|0;
  29681. $179 = (_strcmp($178,13337)|0);
  29682. $180 = ($179|0)!=(0);
  29683. if (!($180)) {
  29684. HEAP32[$1>>2] = 14;
  29685. break;
  29686. }
  29687. $181 = HEAP32[$3>>2]|0;
  29688. $182 = (_strcmp($181,13350)|0);
  29689. $183 = ($182|0)!=(0);
  29690. if (!($183)) {
  29691. HEAP32[$1>>2] = 15;
  29692. break;
  29693. }
  29694. $184 = HEAP32[$3>>2]|0;
  29695. $185 = (_strcmp($184,13363)|0);
  29696. $186 = ($185|0)!=(0);
  29697. if (!($186)) {
  29698. HEAP32[$1>>2] = 16;
  29699. break;
  29700. }
  29701. $187 = HEAP32[$3>>2]|0;
  29702. $188 = (_strcmp($187,13376)|0);
  29703. $189 = ($188|0)!=(0);
  29704. if (!($189)) {
  29705. HEAP32[$1>>2] = 17;
  29706. break;
  29707. }
  29708. $190 = HEAP32[$3>>2]|0;
  29709. $191 = (_strcmp($190,13389)|0);
  29710. $192 = ($191|0)!=(0);
  29711. if (!($192)) {
  29712. HEAP32[$1>>2] = 18;
  29713. break;
  29714. }
  29715. $193 = HEAP32[$3>>2]|0;
  29716. $194 = (_strcmp($193,13402)|0);
  29717. $195 = ($194|0)!=(0);
  29718. if (!($195)) {
  29719. HEAP32[$1>>2] = 19;
  29720. break;
  29721. }
  29722. $196 = HEAP32[$3>>2]|0;
  29723. $197 = (_strcmp($196,13415)|0);
  29724. $198 = ($197|0)!=(0);
  29725. if (!($198)) {
  29726. HEAP32[$1>>2] = 20;
  29727. break;
  29728. }
  29729. $199 = HEAP32[$3>>2]|0;
  29730. $200 = (_strcmp($199,13428)|0);
  29731. $201 = ($200|0)!=(0);
  29732. if (!($201)) {
  29733. HEAP32[$1>>2] = 21;
  29734. break;
  29735. }
  29736. $202 = HEAP32[$3>>2]|0;
  29737. $203 = (_strcmp($202,13441)|0);
  29738. $204 = ($203|0)!=(0);
  29739. if (!($204)) {
  29740. HEAP32[$1>>2] = 5;
  29741. break;
  29742. }
  29743. $205 = HEAP32[$3>>2]|0;
  29744. $206 = (_strcmp($205,13460)|0);
  29745. $207 = ($206|0)!=(0);
  29746. if (!($207)) {
  29747. HEAP32[$1>>2] = 6;
  29748. break;
  29749. }
  29750. $208 = HEAP32[$3>>2]|0;
  29751. $209 = (_strcmp($208,13479)|0);
  29752. $210 = ($209|0)!=(0);
  29753. if (!($210)) {
  29754. HEAP32[$1>>2] = 7;
  29755. break;
  29756. }
  29757. $211 = HEAP32[$3>>2]|0;
  29758. $212 = (_strcmp($211,13498)|0);
  29759. $213 = ($212|0)!=(0);
  29760. if (!($213)) {
  29761. HEAP32[$1>>2] = 19;
  29762. break;
  29763. }
  29764. $214 = HEAP32[$3>>2]|0;
  29765. $215 = (_strcmp($214,13511)|0);
  29766. $216 = ($215|0)!=(0);
  29767. if (!($216)) {
  29768. HEAP32[$1>>2] = 20;
  29769. break;
  29770. }
  29771. $217 = HEAP32[$3>>2]|0;
  29772. $218 = (_strcmp($217,13529)|0);
  29773. $219 = ($218|0)!=(0);
  29774. if (!($219)) {
  29775. HEAP32[$1>>2] = 21;
  29776. break;
  29777. }
  29778. $220 = HEAP32[$3>>2]|0;
  29779. $221 = (_strcmp($220,13547)|0);
  29780. $222 = ($221|0)!=(0);
  29781. if (!($222)) {
  29782. HEAP32[$1>>2] = 22;
  29783. break;
  29784. }
  29785. $223 = HEAP32[$3>>2]|0;
  29786. $224 = (_strcmp($223,13565)|0);
  29787. $225 = ($224|0)!=(0);
  29788. if (!($225)) {
  29789. HEAP32[$1>>2] = 23;
  29790. break;
  29791. }
  29792. $226 = HEAP32[$3>>2]|0;
  29793. $227 = (_strcmp($226,13583)|0);
  29794. $228 = ($227|0)!=(0);
  29795. if (!($228)) {
  29796. HEAP32[$1>>2] = 2;
  29797. break;
  29798. }
  29799. $229 = HEAP32[$3>>2]|0;
  29800. $230 = (_strcmp($229,13603)|0);
  29801. $231 = ($230|0)!=(0);
  29802. if (!($231)) {
  29803. HEAP32[$1>>2] = 3;
  29804. break;
  29805. }
  29806. $232 = HEAP32[$3>>2]|0;
  29807. $233 = (_strcmp($232,12544)|0);
  29808. $234 = ($233|0)!=(0);
  29809. if (!($234)) {
  29810. HEAP32[$1>>2] = 7;
  29811. break;
  29812. }
  29813. $235 = HEAP32[$3>>2]|0;
  29814. $236 = (_strcmp($235,13621)|0);
  29815. $237 = ($236|0)!=(0);
  29816. if (!($237)) {
  29817. HEAP32[$1>>2] = 1;
  29818. break;
  29819. }
  29820. $238 = HEAP32[$3>>2]|0;
  29821. $239 = (_strcmp($238,13636)|0);
  29822. $240 = ($239|0)!=(0);
  29823. if (!($240)) {
  29824. HEAP32[$1>>2] = 8;
  29825. break;
  29826. }
  29827. $241 = HEAP32[$3>>2]|0;
  29828. $242 = (_strcmp($241,13657)|0);
  29829. $243 = ($242|0)!=(0);
  29830. if (!($243)) {
  29831. HEAP32[$1>>2] = 9;
  29832. break;
  29833. }
  29834. $244 = HEAP32[$3>>2]|0;
  29835. $245 = (_strcmp($244,13672)|0);
  29836. $246 = ($245|0)!=(0);
  29837. if (!($246)) {
  29838. HEAP32[$1>>2] = 10;
  29839. break;
  29840. }
  29841. $247 = HEAP32[$3>>2]|0;
  29842. $248 = (_strcmp($247,13690)|0);
  29843. $249 = ($248|0)!=(0);
  29844. if (!($249)) {
  29845. HEAP32[$1>>2] = 2;
  29846. break;
  29847. }
  29848. $250 = HEAP32[$3>>2]|0;
  29849. $251 = (_strcmp($250,13706)|0);
  29850. $252 = ($251|0)!=(0);
  29851. if (!($252)) {
  29852. HEAP32[$1>>2] = 11;
  29853. break;
  29854. }
  29855. $253 = HEAP32[$3>>2]|0;
  29856. $254 = (_strcmp($253,13725)|0);
  29857. $255 = ($254|0)!=(0);
  29858. if (!($255)) {
  29859. HEAP32[$1>>2] = 22;
  29860. break;
  29861. }
  29862. $256 = HEAP32[$3>>2]|0;
  29863. $257 = (_strcmp($256,13739)|0);
  29864. $258 = ($257|0)!=(0);
  29865. if (!($258)) {
  29866. HEAP32[$1>>2] = 23;
  29867. break;
  29868. }
  29869. $259 = HEAP32[$3>>2]|0;
  29870. $260 = (_strcmp($259,13754)|0);
  29871. $261 = ($260|0)!=(0);
  29872. if (!($261)) {
  29873. HEAP32[$1>>2] = 8;
  29874. break;
  29875. }
  29876. $262 = HEAP32[$3>>2]|0;
  29877. $263 = (_strcmp($262,12475)|0);
  29878. $264 = ($263|0)!=(0);
  29879. if (!($264)) {
  29880. HEAP32[$1>>2] = 1;
  29881. break;
  29882. }
  29883. $265 = HEAP32[$3>>2]|0;
  29884. $266 = (_strcmp($265,13765)|0);
  29885. $267 = ($266|0)!=(0);
  29886. if (!($267)) {
  29887. HEAP32[$1>>2] = 3;
  29888. break;
  29889. }
  29890. $268 = HEAP32[$3>>2]|0;
  29891. $269 = (_strcmp($268,12574)|0);
  29892. $270 = ($269|0)!=(0);
  29893. if (!($270)) {
  29894. HEAP32[$1>>2] = 24;
  29895. break;
  29896. }
  29897. $271 = HEAP32[$3>>2]|0;
  29898. $272 = (_strcmp($271,12604)|0);
  29899. $273 = ($272|0)!=(0);
  29900. if (!($273)) {
  29901. HEAP32[$1>>2] = 25;
  29902. break;
  29903. }
  29904. $274 = HEAP32[$3>>2]|0;
  29905. $275 = (_strcmp($274,13781)|0);
  29906. $276 = ($275|0)!=(0);
  29907. if (!($276)) {
  29908. HEAP32[$1>>2] = 12;
  29909. break;
  29910. }
  29911. $277 = HEAP32[$3>>2]|0;
  29912. $278 = (_strcmp($277,13808)|0);
  29913. $279 = ($278|0)!=(0);
  29914. if (!($279)) {
  29915. HEAP32[$1>>2] = 4;
  29916. break;
  29917. }
  29918. $280 = HEAP32[$3>>2]|0;
  29919. $281 = (_strcmp($280,13822)|0);
  29920. $282 = ($281|0)!=(0);
  29921. if (!($282)) {
  29922. HEAP32[$1>>2] = 13;
  29923. break;
  29924. }
  29925. $283 = HEAP32[$3>>2]|0;
  29926. $284 = (_strcmp($283,12510)|0);
  29927. $285 = ($284|0)!=(0);
  29928. if (!($285)) {
  29929. HEAP32[$1>>2] = 5;
  29930. break;
  29931. }
  29932. $286 = HEAP32[$3>>2]|0;
  29933. $287 = (_strcmp($286,13842)|0);
  29934. $288 = ($287|0)!=(0);
  29935. if (!($288)) {
  29936. HEAP32[$1>>2] = 6;
  29937. break;
  29938. }
  29939. $289 = HEAP32[$3>>2]|0;
  29940. $290 = (_strcmp($289,13860)|0);
  29941. $291 = ($290|0)!=(0);
  29942. if (!($291)) {
  29943. HEAP32[$1>>2] = 9;
  29944. break;
  29945. }
  29946. $292 = HEAP32[$3>>2]|0;
  29947. $293 = (_strcmp($292,13872)|0);
  29948. $294 = ($293|0)!=(0);
  29949. if (!($294)) {
  29950. HEAP32[$1>>2] = 24;
  29951. break;
  29952. }
  29953. $295 = HEAP32[$3>>2]|0;
  29954. $296 = (_strcmp($295,13893)|0);
  29955. $297 = ($296|0)!=(0);
  29956. if (!($297)) {
  29957. HEAP32[$1>>2] = 26;
  29958. break;
  29959. }
  29960. $298 = HEAP32[$3>>2]|0;
  29961. $299 = (_strcmp($298,13911)|0);
  29962. $300 = ($299|0)!=(0);
  29963. if (!($300)) {
  29964. HEAP32[$1>>2] = 27;
  29965. break;
  29966. }
  29967. $301 = HEAP32[$3>>2]|0;
  29968. $302 = (_strcmp($301,13929)|0);
  29969. $303 = ($302|0)!=(0);
  29970. if (!($303)) {
  29971. HEAP32[$1>>2] = 28;
  29972. break;
  29973. }
  29974. $304 = HEAP32[$3>>2]|0;
  29975. $305 = (_strcmp($304,13950)|0);
  29976. $306 = ($305|0)!=(0);
  29977. if (!($306)) {
  29978. HEAP32[$1>>2] = 14;
  29979. break;
  29980. }
  29981. $307 = HEAP32[$3>>2]|0;
  29982. $308 = (_strcmp($307,13976)|0);
  29983. $309 = ($308|0)!=(0);
  29984. if (!($309)) {
  29985. HEAP32[$1>>2] = 3;
  29986. break;
  29987. }
  29988. $310 = HEAP32[$3>>2]|0;
  29989. $311 = (_strcmp($310,13999)|0);
  29990. $312 = ($311|0)!=(0);
  29991. if (!($312)) {
  29992. HEAP32[$1>>2] = 15;
  29993. break;
  29994. }
  29995. $313 = HEAP32[$3>>2]|0;
  29996. $314 = (_strcmp($313,14037)|0);
  29997. $315 = ($314|0)!=(0);
  29998. if (!($315)) {
  29999. HEAP32[$1>>2] = 10;
  30000. break;
  30001. }
  30002. $316 = HEAP32[$3>>2]|0;
  30003. $317 = (_strcmp($316,14053)|0);
  30004. $318 = ($317|0)!=(0);
  30005. if (!($318)) {
  30006. HEAP32[$1>>2] = 7;
  30007. break;
  30008. }
  30009. $319 = HEAP32[$3>>2]|0;
  30010. $320 = (_strcmp($319,14068)|0);
  30011. $321 = ($320|0)!=(0);
  30012. if (!($321)) {
  30013. HEAP32[$1>>2] = 25;
  30014. break;
  30015. }
  30016. $322 = HEAP32[$3>>2]|0;
  30017. $323 = (_strcmp($322,14091)|0);
  30018. $324 = ($323|0)!=(0);
  30019. if (!($324)) {
  30020. HEAP32[$1>>2] = 16;
  30021. break;
  30022. }
  30023. $325 = HEAP32[$3>>2]|0;
  30024. $326 = (_strcmp($325,14104)|0);
  30025. $327 = ($326|0)!=(0);
  30026. if (!($327)) {
  30027. HEAP32[$1>>2] = 29;
  30028. break;
  30029. }
  30030. $328 = HEAP32[$3>>2]|0;
  30031. $329 = (_strcmp($328,14118)|0);
  30032. $330 = ($329|0)!=(0);
  30033. if (!($330)) {
  30034. HEAP32[$1>>2] = 30;
  30035. break;
  30036. }
  30037. $331 = HEAP32[$3>>2]|0;
  30038. $332 = (_strcmp($331,14132)|0);
  30039. $333 = ($332|0)!=(0);
  30040. if (!($333)) {
  30041. HEAP32[$1>>2] = 1;
  30042. break;
  30043. }
  30044. $334 = HEAP32[$3>>2]|0;
  30045. $335 = (_strcmp($334,14152)|0);
  30046. $336 = ($335|0)!=(0);
  30047. if (!($336)) {
  30048. HEAP32[$1>>2] = 8;
  30049. break;
  30050. }
  30051. $337 = HEAP32[$3>>2]|0;
  30052. $338 = (_strcmp($337,14172)|0);
  30053. $339 = ($338|0)!=(0);
  30054. if (!($339)) {
  30055. HEAP32[$1>>2] = 17;
  30056. break;
  30057. }
  30058. $340 = HEAP32[$3>>2]|0;
  30059. $341 = (_strcmp($340,14188)|0);
  30060. $342 = ($341|0)!=(0);
  30061. if (!($342)) {
  30062. HEAP32[$1>>2] = 18;
  30063. break;
  30064. }
  30065. $343 = HEAP32[$3>>2]|0;
  30066. $344 = (_strcmp($343,14206)|0);
  30067. $345 = ($344|0)!=(0);
  30068. if (!($345)) {
  30069. HEAP32[$1>>2] = 26;
  30070. break;
  30071. }
  30072. $346 = HEAP32[$3>>2]|0;
  30073. $347 = (_strcmp($346,14222)|0);
  30074. $348 = ($347|0)!=(0);
  30075. if (!($348)) {
  30076. HEAP32[$1>>2] = 19;
  30077. break;
  30078. }
  30079. $349 = HEAP32[$3>>2]|0;
  30080. $350 = (_strcmp($349,14237)|0);
  30081. $351 = ($350|0)!=(0);
  30082. if (!($351)) {
  30083. HEAP32[$1>>2] = 9;
  30084. break;
  30085. }
  30086. $352 = HEAP32[$3>>2]|0;
  30087. $353 = (_strcmp($352,14259)|0);
  30088. $354 = ($353|0)!=(0);
  30089. if (!($354)) {
  30090. HEAP32[$1>>2] = 31;
  30091. break;
  30092. }
  30093. $355 = HEAP32[$3>>2]|0;
  30094. $356 = (_strcmp($355,14277)|0);
  30095. $357 = ($356|0)!=(0);
  30096. if (!($357)) {
  30097. HEAP32[$1>>2] = 32;
  30098. break;
  30099. }
  30100. $358 = HEAP32[$3>>2]|0;
  30101. $359 = (_strcmp($358,14298)|0);
  30102. $360 = ($359|0)!=(0);
  30103. if (!($360)) {
  30104. HEAP32[$1>>2] = 10;
  30105. break;
  30106. }
  30107. $361 = HEAP32[$3>>2]|0;
  30108. $362 = (_strcmp($361,14316)|0);
  30109. $363 = ($362|0)!=(0);
  30110. if (!($363)) {
  30111. HEAP32[$1>>2] = 11;
  30112. break;
  30113. }
  30114. $364 = HEAP32[$3>>2]|0;
  30115. $365 = (_strcmp($364,14329)|0);
  30116. $366 = ($365|0)!=(0);
  30117. if (!($366)) {
  30118. HEAP32[$1>>2] = 2;
  30119. break;
  30120. }
  30121. $367 = HEAP32[$3>>2]|0;
  30122. $368 = (_strcmp($367,14344)|0);
  30123. $369 = ($368|0)!=(0);
  30124. if (!($369)) {
  30125. HEAP32[$1>>2] = 12;
  30126. break;
  30127. }
  30128. $370 = HEAP32[$3>>2]|0;
  30129. $371 = (_strcmp($370,14358)|0);
  30130. $372 = ($371|0)!=(0);
  30131. if (!($372)) {
  30132. HEAP32[$1>>2] = 1;
  30133. break;
  30134. }
  30135. $373 = HEAP32[$3>>2]|0;
  30136. $374 = (_strcmp($373,14368)|0);
  30137. $375 = ($374|0)!=(0);
  30138. if (!($375)) {
  30139. HEAP32[$1>>2] = 1;
  30140. break;
  30141. }
  30142. $376 = HEAP32[$3>>2]|0;
  30143. $377 = (_strcmp($376,14378)|0);
  30144. $378 = ($377|0)!=(0);
  30145. if (!($378)) {
  30146. HEAP32[$1>>2] = 2;
  30147. break;
  30148. }
  30149. $379 = HEAP32[$3>>2]|0;
  30150. $380 = (_strcmp($379,14400)|0);
  30151. $381 = ($380|0)!=(0);
  30152. if (!($381)) {
  30153. HEAP32[$1>>2] = 13;
  30154. break;
  30155. }
  30156. $382 = HEAP32[$3>>2]|0;
  30157. $383 = (_strcmp($382,14426)|0);
  30158. $384 = ($383|0)!=(0);
  30159. if (!($384)) {
  30160. HEAP32[$1>>2] = 14;
  30161. break;
  30162. }
  30163. $385 = HEAP32[$3>>2]|0;
  30164. $386 = (_strcmp($385,14453)|0);
  30165. $387 = ($386|0)!=(0);
  30166. if (!($387)) {
  30167. HEAP32[$1>>2] = 27;
  30168. break;
  30169. }
  30170. $388 = HEAP32[$3>>2]|0;
  30171. $389 = (_strcmp($388,14466)|0);
  30172. $390 = ($389|0)!=(0);
  30173. if (!($390)) {
  30174. HEAP32[$1>>2] = 20;
  30175. break;
  30176. }
  30177. $391 = HEAP32[$3>>2]|0;
  30178. $392 = (_strcmp($391,14481)|0);
  30179. $393 = ($392|0)!=(0);
  30180. if (!($393)) {
  30181. HEAP32[$1>>2] = 4;
  30182. break;
  30183. }
  30184. $394 = HEAP32[$3>>2]|0;
  30185. $395 = (_strcmp($394,14496)|0);
  30186. $396 = ($395|0)!=(0);
  30187. if (!($396)) {
  30188. HEAP32[$1>>2] = 3;
  30189. break;
  30190. }
  30191. $397 = HEAP32[$3>>2]|0;
  30192. $398 = (_strcmp($397,14520)|0);
  30193. $399 = ($398|0)!=(0);
  30194. if (!($399)) {
  30195. HEAP32[$1>>2] = 2;
  30196. break;
  30197. }
  30198. $400 = HEAP32[$3>>2]|0;
  30199. $401 = (_strcmp($400,14531)|0);
  30200. $402 = ($401|0)!=(0);
  30201. if (!($402)) {
  30202. HEAP32[$1>>2] = 33;
  30203. break;
  30204. }
  30205. $403 = HEAP32[$3>>2]|0;
  30206. $404 = (_strcmp($403,14553)|0);
  30207. $405 = ($404|0)!=(0);
  30208. if (!($405)) {
  30209. HEAP32[$1>>2] = 21;
  30210. break;
  30211. }
  30212. $406 = HEAP32[$3>>2]|0;
  30213. $407 = (_strcmp($406,14575)|0);
  30214. $408 = ($407|0)!=(0);
  30215. if (!($408)) {
  30216. HEAP32[$1>>2] = 5;
  30217. break;
  30218. }
  30219. $409 = HEAP32[$3>>2]|0;
  30220. $410 = (_strcmp($409,14599)|0);
  30221. $411 = ($410|0)!=(0);
  30222. if (!($411)) {
  30223. HEAP32[$1>>2] = 4;
  30224. break;
  30225. }
  30226. $412 = HEAP32[$3>>2]|0;
  30227. $413 = (_strcmp($412,14608)|0);
  30228. $414 = ($413|0)!=(0);
  30229. if (!($414)) {
  30230. HEAP32[$1>>2] = 5;
  30231. break;
  30232. }
  30233. $415 = HEAP32[$3>>2]|0;
  30234. $416 = (_strcmp($415,14616)|0);
  30235. $417 = ($416|0)!=(0);
  30236. if (!($417)) {
  30237. HEAP32[$1>>2] = 1;
  30238. break;
  30239. }
  30240. $418 = HEAP32[$3>>2]|0;
  30241. $419 = (_strcmp($418,14629)|0);
  30242. $420 = ($419|0)!=(0);
  30243. if (!($420)) {
  30244. HEAP32[$1>>2] = 2;
  30245. break;
  30246. }
  30247. $421 = HEAP32[$3>>2]|0;
  30248. $422 = (_strcmp($421,14643)|0);
  30249. $423 = ($422|0)!=(0);
  30250. if (!($423)) {
  30251. HEAP32[$1>>2] = 15;
  30252. break;
  30253. }
  30254. $424 = HEAP32[$3>>2]|0;
  30255. $425 = (_strcmp($424,14655)|0);
  30256. $426 = ($425|0)!=(0);
  30257. if (!($426)) {
  30258. HEAP32[$1>>2] = 16;
  30259. break;
  30260. }
  30261. $427 = HEAP32[$3>>2]|0;
  30262. $428 = (_strcmp($427,14664)|0);
  30263. $429 = ($428|0)!=(0);
  30264. if (!($429)) {
  30265. HEAP32[$1>>2] = 17;
  30266. break;
  30267. }
  30268. $430 = HEAP32[$3>>2]|0;
  30269. $431 = (_strcmp($430,14674)|0);
  30270. $432 = ($431|0)!=(0);
  30271. if (!($432)) {
  30272. HEAP32[$1>>2] = 18;
  30273. break;
  30274. }
  30275. $433 = HEAP32[$3>>2]|0;
  30276. $434 = (_strcmp($433,14686)|0);
  30277. $435 = ($434|0)!=(0);
  30278. if (!($435)) {
  30279. HEAP32[$1>>2] = 19;
  30280. break;
  30281. }
  30282. $436 = HEAP32[$3>>2]|0;
  30283. $437 = (_strcmp($436,14697)|0);
  30284. $438 = ($437|0)!=(0);
  30285. if (!($438)) {
  30286. HEAP32[$1>>2] = 20;
  30287. break;
  30288. }
  30289. $439 = HEAP32[$3>>2]|0;
  30290. $440 = (_strcmp($439,14705)|0);
  30291. $441 = ($440|0)!=(0);
  30292. if (!($441)) {
  30293. HEAP32[$1>>2] = 3;
  30294. break;
  30295. }
  30296. $442 = HEAP32[$3>>2]|0;
  30297. $443 = (_strcmp($442,14717)|0);
  30298. $444 = ($443|0)!=(0);
  30299. if (!($444)) {
  30300. HEAP32[$1>>2] = 21;
  30301. break;
  30302. }
  30303. $445 = HEAP32[$3>>2]|0;
  30304. $446 = (_strcmp($445,14732)|0);
  30305. $447 = ($446|0)!=(0);
  30306. if (!($447)) {
  30307. HEAP32[$1>>2] = 22;
  30308. break;
  30309. }
  30310. $448 = HEAP32[$3>>2]|0;
  30311. $449 = (_strcmp($448,14744)|0);
  30312. $450 = ($449|0)!=(0);
  30313. if (!($450)) {
  30314. HEAP32[$1>>2] = 23;
  30315. break;
  30316. }
  30317. $451 = HEAP32[$3>>2]|0;
  30318. $452 = (_strcmp($451,14758)|0);
  30319. $453 = ($452|0)!=(0);
  30320. if (!($453)) {
  30321. HEAP32[$1>>2] = 11;
  30322. break;
  30323. }
  30324. $454 = HEAP32[$3>>2]|0;
  30325. $455 = (_strcmp($454,14783)|0);
  30326. $456 = ($455|0)!=(0);
  30327. if (!($456)) {
  30328. HEAP32[$1>>2] = 24;
  30329. break;
  30330. }
  30331. $457 = HEAP32[$3>>2]|0;
  30332. $458 = (_strcmp($457,14800)|0);
  30333. $459 = ($458|0)!=(0);
  30334. if (!($459)) {
  30335. HEAP32[$1>>2] = 25;
  30336. break;
  30337. }
  30338. $460 = HEAP32[$3>>2]|0;
  30339. $461 = (_strcmp($460,14816)|0);
  30340. $462 = ($461|0)!=(0);
  30341. if (!($462)) {
  30342. HEAP32[$1>>2] = 26;
  30343. break;
  30344. }
  30345. $463 = HEAP32[$3>>2]|0;
  30346. $464 = (_strcmp($463,14832)|0);
  30347. $465 = ($464|0)!=(0);
  30348. if (!($465)) {
  30349. HEAP32[$1>>2] = 12;
  30350. break;
  30351. }
  30352. $466 = HEAP32[$3>>2]|0;
  30353. $467 = (_strcmp($466,14844)|0);
  30354. $468 = ($467|0)!=(0);
  30355. if (!($468)) {
  30356. HEAP32[$1>>2] = 34;
  30357. break;
  30358. }
  30359. $469 = HEAP32[$3>>2]|0;
  30360. $470 = (_strcmp($469,14856)|0);
  30361. $471 = ($470|0)!=(0);
  30362. if (!($471)) {
  30363. HEAP32[$1>>2] = 35;
  30364. break;
  30365. }
  30366. $472 = HEAP32[$3>>2]|0;
  30367. $473 = (_strcmp($472,14880)|0);
  30368. $474 = ($473|0)!=(0);
  30369. if (!($474)) {
  30370. HEAP32[$1>>2] = 1;
  30371. break;
  30372. }
  30373. $475 = HEAP32[$3>>2]|0;
  30374. $476 = (_strcmp($475,14893)|0);
  30375. $477 = ($476|0)!=(0);
  30376. if (!($477)) {
  30377. HEAP32[$1>>2] = 2;
  30378. break;
  30379. }
  30380. $478 = HEAP32[$3>>2]|0;
  30381. $479 = (_strcmp($478,14907)|0);
  30382. $480 = ($479|0)!=(0);
  30383. if (!($480)) {
  30384. HEAP32[$1>>2] = 36;
  30385. break;
  30386. }
  30387. $481 = HEAP32[$3>>2]|0;
  30388. $482 = (_strcmp($481,14929)|0);
  30389. $483 = ($482|0)!=(0);
  30390. if (!($483)) {
  30391. HEAP32[$1>>2] = 37;
  30392. break;
  30393. }
  30394. $484 = HEAP32[$3>>2]|0;
  30395. $485 = (_strcmp($484,14936)|0);
  30396. $486 = ($485|0)!=(0);
  30397. if (!($486)) {
  30398. HEAP32[$1>>2] = 3;
  30399. break;
  30400. }
  30401. $487 = HEAP32[$3>>2]|0;
  30402. $488 = (_strcmp($487,14952)|0);
  30403. $489 = ($488|0)!=(0);
  30404. if (!($489)) {
  30405. HEAP32[$1>>2] = 2;
  30406. break;
  30407. }
  30408. $490 = HEAP32[$3>>2]|0;
  30409. $491 = (_strcmp($490,14969)|0);
  30410. $492 = ($491|0)!=(0);
  30411. if (!($492)) {
  30412. HEAP32[$1>>2] = 1;
  30413. break;
  30414. }
  30415. $493 = HEAP32[$3>>2]|0;
  30416. $494 = (_strcmp($493,14986)|0);
  30417. $495 = ($494|0)!=(0);
  30418. if (!($495)) {
  30419. HEAP32[$1>>2] = 28;
  30420. break;
  30421. }
  30422. $496 = HEAP32[$3>>2]|0;
  30423. $497 = (_strcmp($496,15002)|0);
  30424. $498 = ($497|0)!=(0);
  30425. if (!($498)) {
  30426. HEAP32[$1>>2] = 1;
  30427. break;
  30428. }
  30429. $499 = HEAP32[$3>>2]|0;
  30430. $500 = (_strcmp($499,15018)|0);
  30431. $501 = ($500|0)!=(0);
  30432. if (!($501)) {
  30433. HEAP32[$1>>2] = 4;
  30434. break;
  30435. }
  30436. $502 = HEAP32[$3>>2]|0;
  30437. $503 = (_strcmp($502,15035)|0);
  30438. $504 = ($503|0)!=(0);
  30439. if (!($504)) {
  30440. HEAP32[$1>>2] = 29;
  30441. break;
  30442. }
  30443. $505 = HEAP32[$3>>2]|0;
  30444. $506 = (_strcmp($505,15049)|0);
  30445. $507 = ($506|0)!=(0);
  30446. if (!($507)) {
  30447. HEAP32[$1>>2] = 30;
  30448. break;
  30449. }
  30450. $508 = HEAP32[$3>>2]|0;
  30451. $509 = (_strcmp($508,15061)|0);
  30452. $510 = ($509|0)!=(0);
  30453. if (!($510)) {
  30454. HEAP32[$1>>2] = 22;
  30455. break;
  30456. }
  30457. $511 = HEAP32[$3>>2]|0;
  30458. $512 = (_strcmp($511,15072)|0);
  30459. $513 = ($512|0)!=(0);
  30460. if (!($513)) {
  30461. HEAP32[$1>>2] = 2;
  30462. break;
  30463. }
  30464. $514 = HEAP32[$3>>2]|0;
  30465. $515 = (_strcmp($514,15085)|0);
  30466. $516 = ($515|0)!=(0);
  30467. if (!($516)) {
  30468. HEAP32[$1>>2] = 23;
  30469. break;
  30470. }
  30471. $517 = HEAP32[$3>>2]|0;
  30472. $518 = (_strcmp($517,15095)|0);
  30473. $519 = ($518|0)!=(0);
  30474. if (!($519)) {
  30475. HEAP32[$1>>2] = 2;
  30476. break;
  30477. }
  30478. $520 = HEAP32[$3>>2]|0;
  30479. $521 = (_strcmp($520,15112)|0);
  30480. $522 = ($521|0)!=(0);
  30481. if (!($522)) {
  30482. HEAP32[$1>>2] = 24;
  30483. break;
  30484. }
  30485. $523 = HEAP32[$3>>2]|0;
  30486. $524 = (_strcmp($523,15124)|0);
  30487. $525 = ($524|0)!=(0);
  30488. if (!($525)) {
  30489. HEAP32[$1>>2] = 25;
  30490. break;
  30491. }
  30492. $526 = HEAP32[$3>>2]|0;
  30493. $527 = (_strcmp($526,15146)|0);
  30494. $528 = ($527|0)!=(0);
  30495. if (!($528)) {
  30496. HEAP32[$1>>2] = 26;
  30497. break;
  30498. }
  30499. $529 = HEAP32[$3>>2]|0;
  30500. $530 = (_strcmp($529,15166)|0);
  30501. $531 = ($530|0)!=(0);
  30502. if (!($531)) {
  30503. HEAP32[$1>>2] = 3;
  30504. break;
  30505. }
  30506. $532 = HEAP32[$3>>2]|0;
  30507. $533 = (_strcmp($532,15179)|0);
  30508. $534 = ($533|0)!=(0);
  30509. if (!($534)) {
  30510. HEAP32[$1>>2] = 27;
  30511. break;
  30512. }
  30513. $535 = HEAP32[$3>>2]|0;
  30514. $536 = (_strcmp($535,15201)|0);
  30515. $537 = ($536|0)!=(0);
  30516. if (!($537)) {
  30517. HEAP32[$1>>2] = 28;
  30518. break;
  30519. }
  30520. $538 = HEAP32[$3>>2]|0;
  30521. $539 = (_strcmp($538,15221)|0);
  30522. $540 = ($539|0)!=(0);
  30523. if (!($540)) {
  30524. HEAP32[$1>>2] = 2;
  30525. break;
  30526. }
  30527. $541 = HEAP32[$3>>2]|0;
  30528. $542 = (_strcmp($541,15238)|0);
  30529. $543 = ($542|0)!=(0);
  30530. if (!($543)) {
  30531. HEAP32[$1>>2] = 2;
  30532. break;
  30533. }
  30534. $544 = HEAP32[$3>>2]|0;
  30535. $545 = (_strcmp($544,15255)|0);
  30536. $546 = ($545|0)!=(0);
  30537. if (!($546)) {
  30538. HEAP32[$1>>2] = 3;
  30539. break;
  30540. }
  30541. $547 = HEAP32[$3>>2]|0;
  30542. $548 = (_strcmp($547,15275)|0);
  30543. $549 = ($548|0)!=(0);
  30544. if ($549) {
  30545. $550 = HEAP32[$2>>2]|0;
  30546. $551 = HEAP32[$3>>2]|0;
  30547. $552 = _emscripten_asm_const_iii(0, ($550|0), ($551|0))|0;
  30548. HEAP32[$1>>2] = 0;
  30549. break;
  30550. } else {
  30551. HEAP32[$1>>2] = 38;
  30552. break;
  30553. }
  30554. } else {
  30555. HEAP32[$1>>2] = 6;
  30556. }
  30557. } while(0);
  30558. $553 = HEAP32[$1>>2]|0;
  30559. STACKTOP = sp;return ($553|0);
  30560. }
  30561. function _emscripten_get_global_libc() {
  30562. var label = 0, sp = 0;
  30563. sp = STACKTOP;
  30564. return (21096|0);
  30565. }
  30566. function ___stdio_close($0) {
  30567. $0 = $0|0;
  30568. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  30569. sp = STACKTOP;
  30570. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  30571. $vararg_buffer = sp;
  30572. $1 = ((($0)) + 60|0);
  30573. $2 = HEAP32[$1>>2]|0;
  30574. $3 = (_dummy_738($2)|0);
  30575. HEAP32[$vararg_buffer>>2] = $3;
  30576. $4 = (___syscall6(6,($vararg_buffer|0))|0);
  30577. $5 = (___syscall_ret($4)|0);
  30578. STACKTOP = sp;return ($5|0);
  30579. }
  30580. function ___stdio_write($0,$1,$2) {
  30581. $0 = $0|0;
  30582. $1 = $1|0;
  30583. $2 = $2|0;
  30584. var $$0 = 0, $$04756 = 0, $$04855 = 0, $$04954 = 0, $$051 = 0, $$1 = 0, $$150 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0;
  30585. var $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0;
  30586. var $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $vararg_buffer = 0, $vararg_buffer3 = 0, $vararg_ptr1 = 0, $vararg_ptr2 = 0, $vararg_ptr6 = 0;
  30587. var $vararg_ptr7 = 0, label = 0, sp = 0;
  30588. sp = STACKTOP;
  30589. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  30590. $vararg_buffer3 = sp + 16|0;
  30591. $vararg_buffer = sp;
  30592. $3 = sp + 32|0;
  30593. $4 = ((($0)) + 28|0);
  30594. $5 = HEAP32[$4>>2]|0;
  30595. HEAP32[$3>>2] = $5;
  30596. $6 = ((($3)) + 4|0);
  30597. $7 = ((($0)) + 20|0);
  30598. $8 = HEAP32[$7>>2]|0;
  30599. $9 = (($8) - ($5))|0;
  30600. HEAP32[$6>>2] = $9;
  30601. $10 = ((($3)) + 8|0);
  30602. HEAP32[$10>>2] = $1;
  30603. $11 = ((($3)) + 12|0);
  30604. HEAP32[$11>>2] = $2;
  30605. $12 = (($9) + ($2))|0;
  30606. $13 = ((($0)) + 60|0);
  30607. $14 = HEAP32[$13>>2]|0;
  30608. $15 = $3;
  30609. HEAP32[$vararg_buffer>>2] = $14;
  30610. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  30611. HEAP32[$vararg_ptr1>>2] = $15;
  30612. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  30613. HEAP32[$vararg_ptr2>>2] = 2;
  30614. $16 = (___syscall146(146,($vararg_buffer|0))|0);
  30615. $17 = (___syscall_ret($16)|0);
  30616. $18 = ($12|0)==($17|0);
  30617. L1: do {
  30618. if ($18) {
  30619. label = 3;
  30620. } else {
  30621. $$04756 = 2;$$04855 = $12;$$04954 = $3;$26 = $17;
  30622. while(1) {
  30623. $25 = ($26|0)<(0);
  30624. if ($25) {
  30625. break;
  30626. }
  30627. $34 = (($$04855) - ($26))|0;
  30628. $35 = ((($$04954)) + 4|0);
  30629. $36 = HEAP32[$35>>2]|0;
  30630. $37 = ($26>>>0)>($36>>>0);
  30631. $38 = ((($$04954)) + 8|0);
  30632. $$150 = $37 ? $38 : $$04954;
  30633. $39 = $37 << 31 >> 31;
  30634. $$1 = (($39) + ($$04756))|0;
  30635. $40 = $37 ? $36 : 0;
  30636. $$0 = (($26) - ($40))|0;
  30637. $41 = HEAP32[$$150>>2]|0;
  30638. $42 = (($41) + ($$0)|0);
  30639. HEAP32[$$150>>2] = $42;
  30640. $43 = ((($$150)) + 4|0);
  30641. $44 = HEAP32[$43>>2]|0;
  30642. $45 = (($44) - ($$0))|0;
  30643. HEAP32[$43>>2] = $45;
  30644. $46 = HEAP32[$13>>2]|0;
  30645. $47 = $$150;
  30646. HEAP32[$vararg_buffer3>>2] = $46;
  30647. $vararg_ptr6 = ((($vararg_buffer3)) + 4|0);
  30648. HEAP32[$vararg_ptr6>>2] = $47;
  30649. $vararg_ptr7 = ((($vararg_buffer3)) + 8|0);
  30650. HEAP32[$vararg_ptr7>>2] = $$1;
  30651. $48 = (___syscall146(146,($vararg_buffer3|0))|0);
  30652. $49 = (___syscall_ret($48)|0);
  30653. $50 = ($34|0)==($49|0);
  30654. if ($50) {
  30655. label = 3;
  30656. break L1;
  30657. } else {
  30658. $$04756 = $$1;$$04855 = $34;$$04954 = $$150;$26 = $49;
  30659. }
  30660. }
  30661. $27 = ((($0)) + 16|0);
  30662. HEAP32[$27>>2] = 0;
  30663. HEAP32[$4>>2] = 0;
  30664. HEAP32[$7>>2] = 0;
  30665. $28 = HEAP32[$0>>2]|0;
  30666. $29 = $28 | 32;
  30667. HEAP32[$0>>2] = $29;
  30668. $30 = ($$04756|0)==(2);
  30669. if ($30) {
  30670. $$051 = 0;
  30671. } else {
  30672. $31 = ((($$04954)) + 4|0);
  30673. $32 = HEAP32[$31>>2]|0;
  30674. $33 = (($2) - ($32))|0;
  30675. $$051 = $33;
  30676. }
  30677. }
  30678. } while(0);
  30679. if ((label|0) == 3) {
  30680. $19 = ((($0)) + 44|0);
  30681. $20 = HEAP32[$19>>2]|0;
  30682. $21 = ((($0)) + 48|0);
  30683. $22 = HEAP32[$21>>2]|0;
  30684. $23 = (($20) + ($22)|0);
  30685. $24 = ((($0)) + 16|0);
  30686. HEAP32[$24>>2] = $23;
  30687. HEAP32[$4>>2] = $20;
  30688. HEAP32[$7>>2] = $20;
  30689. $$051 = $2;
  30690. }
  30691. STACKTOP = sp;return ($$051|0);
  30692. }
  30693. function ___stdio_seek($0,$1,$2) {
  30694. $0 = $0|0;
  30695. $1 = $1|0;
  30696. $2 = $2|0;
  30697. var $$pre = 0, $10 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $vararg_buffer = 0, $vararg_ptr1 = 0, $vararg_ptr2 = 0, $vararg_ptr3 = 0, $vararg_ptr4 = 0, label = 0, sp = 0;
  30698. sp = STACKTOP;
  30699. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  30700. $vararg_buffer = sp;
  30701. $3 = sp + 20|0;
  30702. $4 = ((($0)) + 60|0);
  30703. $5 = HEAP32[$4>>2]|0;
  30704. $6 = $3;
  30705. HEAP32[$vararg_buffer>>2] = $5;
  30706. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  30707. HEAP32[$vararg_ptr1>>2] = 0;
  30708. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  30709. HEAP32[$vararg_ptr2>>2] = $1;
  30710. $vararg_ptr3 = ((($vararg_buffer)) + 12|0);
  30711. HEAP32[$vararg_ptr3>>2] = $6;
  30712. $vararg_ptr4 = ((($vararg_buffer)) + 16|0);
  30713. HEAP32[$vararg_ptr4>>2] = $2;
  30714. $7 = (___syscall140(140,($vararg_buffer|0))|0);
  30715. $8 = (___syscall_ret($7)|0);
  30716. $9 = ($8|0)<(0);
  30717. if ($9) {
  30718. HEAP32[$3>>2] = -1;
  30719. $10 = -1;
  30720. } else {
  30721. $$pre = HEAP32[$3>>2]|0;
  30722. $10 = $$pre;
  30723. }
  30724. STACKTOP = sp;return ($10|0);
  30725. }
  30726. function ___syscall_ret($0) {
  30727. $0 = $0|0;
  30728. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  30729. sp = STACKTOP;
  30730. $1 = ($0>>>0)>(4294963200);
  30731. if ($1) {
  30732. $2 = (0 - ($0))|0;
  30733. $3 = (___errno_location()|0);
  30734. HEAP32[$3>>2] = $2;
  30735. $$0 = -1;
  30736. } else {
  30737. $$0 = $0;
  30738. }
  30739. return ($$0|0);
  30740. }
  30741. function ___errno_location() {
  30742. var $0 = 0, $1 = 0, label = 0, sp = 0;
  30743. sp = STACKTOP;
  30744. $0 = (___pthread_self_108()|0);
  30745. $1 = ((($0)) + 64|0);
  30746. return ($1|0);
  30747. }
  30748. function ___pthread_self_108() {
  30749. var $0 = 0, label = 0, sp = 0;
  30750. sp = STACKTOP;
  30751. $0 = (_pthread_self()|0);
  30752. return ($0|0);
  30753. }
  30754. function _pthread_self() {
  30755. var label = 0, sp = 0;
  30756. sp = STACKTOP;
  30757. return (3896|0);
  30758. }
  30759. function _dummy_738($0) {
  30760. $0 = $0|0;
  30761. var label = 0, sp = 0;
  30762. sp = STACKTOP;
  30763. return ($0|0);
  30764. }
  30765. function ___stdio_read($0,$1,$2) {
  30766. $0 = $0|0;
  30767. $1 = $1|0;
  30768. $2 = $2|0;
  30769. var $$0 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0;
  30770. var $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $vararg_buffer = 0, $vararg_ptr1 = 0, $vararg_ptr2 = 0, label = 0, sp = 0;
  30771. sp = STACKTOP;
  30772. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  30773. $vararg_buffer = sp;
  30774. $3 = sp + 16|0;
  30775. HEAP32[$3>>2] = $1;
  30776. $4 = ((($3)) + 4|0);
  30777. $5 = ((($0)) + 48|0);
  30778. $6 = HEAP32[$5>>2]|0;
  30779. $7 = ($6|0)!=(0);
  30780. $8 = $7&1;
  30781. $9 = (($2) - ($8))|0;
  30782. HEAP32[$4>>2] = $9;
  30783. $10 = ((($3)) + 8|0);
  30784. $11 = ((($0)) + 44|0);
  30785. $12 = HEAP32[$11>>2]|0;
  30786. HEAP32[$10>>2] = $12;
  30787. $13 = ((($3)) + 12|0);
  30788. HEAP32[$13>>2] = $6;
  30789. $14 = ((($0)) + 60|0);
  30790. $15 = HEAP32[$14>>2]|0;
  30791. $16 = $3;
  30792. HEAP32[$vararg_buffer>>2] = $15;
  30793. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  30794. HEAP32[$vararg_ptr1>>2] = $16;
  30795. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  30796. HEAP32[$vararg_ptr2>>2] = 2;
  30797. $17 = (___syscall145(145,($vararg_buffer|0))|0);
  30798. $18 = (___syscall_ret($17)|0);
  30799. $19 = ($18|0)<(1);
  30800. if ($19) {
  30801. $20 = $18 & 48;
  30802. $21 = $20 ^ 16;
  30803. $22 = HEAP32[$0>>2]|0;
  30804. $23 = $22 | $21;
  30805. HEAP32[$0>>2] = $23;
  30806. $$0 = $18;
  30807. } else {
  30808. $24 = HEAP32[$4>>2]|0;
  30809. $25 = ($18>>>0)>($24>>>0);
  30810. if ($25) {
  30811. $26 = (($18) - ($24))|0;
  30812. $27 = HEAP32[$11>>2]|0;
  30813. $28 = ((($0)) + 4|0);
  30814. HEAP32[$28>>2] = $27;
  30815. $29 = (($27) + ($26)|0);
  30816. $30 = ((($0)) + 8|0);
  30817. HEAP32[$30>>2] = $29;
  30818. $31 = HEAP32[$5>>2]|0;
  30819. $32 = ($31|0)==(0);
  30820. if ($32) {
  30821. $$0 = $2;
  30822. } else {
  30823. $33 = ((($27)) + 1|0);
  30824. HEAP32[$28>>2] = $33;
  30825. $34 = HEAP8[$27>>0]|0;
  30826. $35 = (($2) + -1)|0;
  30827. $36 = (($1) + ($35)|0);
  30828. HEAP8[$36>>0] = $34;
  30829. $$0 = $2;
  30830. }
  30831. } else {
  30832. $$0 = $18;
  30833. }
  30834. }
  30835. STACKTOP = sp;return ($$0|0);
  30836. }
  30837. function ___stdout_write($0,$1,$2) {
  30838. $0 = $0|0;
  30839. $1 = $1|0;
  30840. $2 = $2|0;
  30841. var $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $vararg_buffer = 0, $vararg_ptr1 = 0, $vararg_ptr2 = 0, label = 0, sp = 0;
  30842. sp = STACKTOP;
  30843. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  30844. $vararg_buffer = sp;
  30845. $3 = sp + 16|0;
  30846. $4 = ((($0)) + 36|0);
  30847. HEAP32[$4>>2] = 10;
  30848. $5 = HEAP32[$0>>2]|0;
  30849. $6 = $5 & 64;
  30850. $7 = ($6|0)==(0);
  30851. if ($7) {
  30852. $8 = ((($0)) + 60|0);
  30853. $9 = HEAP32[$8>>2]|0;
  30854. $10 = $3;
  30855. HEAP32[$vararg_buffer>>2] = $9;
  30856. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  30857. HEAP32[$vararg_ptr1>>2] = 21523;
  30858. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  30859. HEAP32[$vararg_ptr2>>2] = $10;
  30860. $11 = (___syscall54(54,($vararg_buffer|0))|0);
  30861. $12 = ($11|0)==(0);
  30862. if (!($12)) {
  30863. $13 = ((($0)) + 75|0);
  30864. HEAP8[$13>>0] = -1;
  30865. }
  30866. }
  30867. $14 = (___stdio_write($0,$1,$2)|0);
  30868. STACKTOP = sp;return ($14|0);
  30869. }
  30870. function ___shlim($0,$1) {
  30871. $0 = $0|0;
  30872. $1 = $1|0;
  30873. var $$sink = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, label = 0, sp = 0;
  30874. sp = STACKTOP;
  30875. $2 = ((($0)) + 104|0);
  30876. HEAP32[$2>>2] = $1;
  30877. $3 = ((($0)) + 8|0);
  30878. $4 = HEAP32[$3>>2]|0;
  30879. $5 = ((($0)) + 4|0);
  30880. $6 = HEAP32[$5>>2]|0;
  30881. $7 = $4;
  30882. $8 = $6;
  30883. $9 = (($7) - ($8))|0;
  30884. $10 = ((($0)) + 108|0);
  30885. HEAP32[$10>>2] = $9;
  30886. $11 = ($1|0)!=(0);
  30887. $12 = ($9|0)>($1|0);
  30888. $or$cond = $11 & $12;
  30889. $13 = (($6) + ($1)|0);
  30890. $$sink = $or$cond ? $13 : $4;
  30891. $14 = ((($0)) + 100|0);
  30892. HEAP32[$14>>2] = $$sink;
  30893. return;
  30894. }
  30895. function ___intscan($0,$1,$2,$3,$4) {
  30896. $0 = $0|0;
  30897. $1 = $1|0;
  30898. $2 = $2|0;
  30899. $3 = $3|0;
  30900. $4 = $4|0;
  30901. var $$0154222 = 0, $$0157 = 0, $$0157$ = 0, $$0159 = 0, $$1155192 = 0, $$1158 = 0, $$1160 = 0, $$1160169 = 0, $$1165 = 0, $$1165167 = 0, $$1165168 = 0, $$166 = 0, $$2156210 = 0, $$2161$be = 0, $$2161$lcssa = 0, $$3162$be = 0, $$3162215 = 0, $$4163$be = 0, $$4163$lcssa = 0, $$5$be = 0;
  30902. var $$6$be = 0, $$6$lcssa = 0, $$7$be = 0, $$7198 = 0, $$8 = 0, $$9$be = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0;
  30903. var $112 = 0, $113 = 0, $114 = 0, $115 = 0, $116 = 0, $117 = 0, $118 = 0, $119 = 0, $12 = 0, $120 = 0, $121 = 0, $122 = 0, $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 0, $128 = 0, $129 = 0, $13 = 0;
  30904. var $130 = 0, $131 = 0, $132 = 0, $133 = 0, $134 = 0, $135 = 0, $136 = 0, $137 = 0, $138 = 0, $139 = 0, $14 = 0, $140 = 0, $141 = 0, $142 = 0, $143 = 0, $144 = 0, $145 = 0, $146 = 0, $147 = 0, $148 = 0;
  30905. var $149 = 0, $15 = 0, $150 = 0, $151 = 0, $152 = 0, $153 = 0, $154 = 0, $155 = 0, $156 = 0, $157 = 0, $158 = 0, $159 = 0, $16 = 0, $160 = 0, $161 = 0, $162 = 0, $163 = 0, $164 = 0, $165 = 0, $166 = 0;
  30906. var $167 = 0, $168 = 0, $169 = 0, $17 = 0, $170 = 0, $171 = 0, $172 = 0, $173 = 0, $174 = 0, $175 = 0, $176 = 0, $177 = 0, $178 = 0, $179 = 0, $18 = 0, $180 = 0, $181 = 0, $182 = 0, $183 = 0, $184 = 0;
  30907. var $185 = 0, $186 = 0, $187 = 0, $188 = 0, $189 = 0, $19 = 0, $190 = 0, $191 = 0, $192 = 0, $193 = 0, $194 = 0, $195 = 0, $196 = 0, $197 = 0, $198 = 0, $199 = 0, $20 = 0, $200 = 0, $201 = 0, $202 = 0;
  30908. var $203 = 0, $204 = 0, $205 = 0, $206 = 0, $207 = 0, $208 = 0, $209 = 0, $21 = 0, $210 = 0, $211 = 0, $212 = 0, $213 = 0, $214 = 0, $215 = 0, $216 = 0, $217 = 0, $218 = 0, $219 = 0, $22 = 0, $220 = 0;
  30909. var $221 = 0, $222 = 0, $223 = 0, $224 = 0, $225 = 0, $226 = 0, $227 = 0, $228 = 0, $229 = 0, $23 = 0, $230 = 0, $231 = 0, $232 = 0, $233 = 0, $234 = 0, $235 = 0, $236 = 0, $237 = 0, $238 = 0, $239 = 0;
  30910. var $24 = 0, $240 = 0, $241 = 0, $242 = 0, $243 = 0, $244 = 0, $245 = 0, $246 = 0, $247 = 0, $248 = 0, $249 = 0, $25 = 0, $250 = 0, $251 = 0, $252 = 0, $253 = 0, $254 = 0, $255 = 0, $256 = 0, $257 = 0;
  30911. var $258 = 0, $259 = 0, $26 = 0, $260 = 0, $261 = 0, $262 = 0, $263 = 0, $264 = 0, $265 = 0, $266 = 0, $267 = 0, $268 = 0, $269 = 0, $27 = 0, $270 = 0, $271 = 0, $272 = 0, $273 = 0, $274 = 0, $275 = 0;
  30912. var $276 = 0, $277 = 0, $278 = 0, $279 = 0, $28 = 0, $280 = 0, $281 = 0, $282 = 0, $283 = 0, $284 = 0, $285 = 0, $286 = 0, $287 = 0, $288 = 0, $289 = 0, $29 = 0, $290 = 0, $291 = 0, $292 = 0, $293 = 0;
  30913. var $294 = 0, $295 = 0, $296 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0;
  30914. var $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0;
  30915. var $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0;
  30916. var $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0, $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $or$cond = 0, $or$cond12 = 0;
  30917. var $or$cond187 = 0, $or$cond5 = 0, $or$cond7 = 0, label = 0, sp = 0;
  30918. sp = STACKTOP;
  30919. $5 = ($1>>>0)>(36);
  30920. L1: do {
  30921. if ($5) {
  30922. $8 = (___errno_location()|0);
  30923. HEAP32[$8>>2] = 22;
  30924. $289 = 0;$290 = 0;
  30925. } else {
  30926. $6 = ((($0)) + 4|0);
  30927. $7 = ((($0)) + 100|0);
  30928. while(1) {
  30929. $9 = HEAP32[$6>>2]|0;
  30930. $10 = HEAP32[$7>>2]|0;
  30931. $11 = ($9>>>0)<($10>>>0);
  30932. if ($11) {
  30933. $12 = ((($9)) + 1|0);
  30934. HEAP32[$6>>2] = $12;
  30935. $13 = HEAP8[$9>>0]|0;
  30936. $14 = $13&255;
  30937. $16 = $14;
  30938. } else {
  30939. $15 = (___shgetc($0)|0);
  30940. $16 = $15;
  30941. }
  30942. $17 = (_isspace($16)|0);
  30943. $18 = ($17|0)==(0);
  30944. if ($18) {
  30945. break;
  30946. }
  30947. }
  30948. L11: do {
  30949. switch ($16|0) {
  30950. case 43: case 45: {
  30951. $19 = ($16|0)==(45);
  30952. $20 = $19 << 31 >> 31;
  30953. $21 = HEAP32[$6>>2]|0;
  30954. $22 = HEAP32[$7>>2]|0;
  30955. $23 = ($21>>>0)<($22>>>0);
  30956. if ($23) {
  30957. $24 = ((($21)) + 1|0);
  30958. HEAP32[$6>>2] = $24;
  30959. $25 = HEAP8[$21>>0]|0;
  30960. $26 = $25&255;
  30961. $$0157 = $20;$$0159 = $26;
  30962. break L11;
  30963. } else {
  30964. $27 = (___shgetc($0)|0);
  30965. $$0157 = $20;$$0159 = $27;
  30966. break L11;
  30967. }
  30968. break;
  30969. }
  30970. default: {
  30971. $$0157 = 0;$$0159 = $16;
  30972. }
  30973. }
  30974. } while(0);
  30975. $28 = ($1|0)==(0);
  30976. $29 = $1 | 16;
  30977. $30 = ($29|0)==(16);
  30978. $31 = ($$0159|0)==(48);
  30979. $or$cond5 = $30 & $31;
  30980. do {
  30981. if ($or$cond5) {
  30982. $32 = HEAP32[$6>>2]|0;
  30983. $33 = HEAP32[$7>>2]|0;
  30984. $34 = ($32>>>0)<($33>>>0);
  30985. if ($34) {
  30986. $35 = ((($32)) + 1|0);
  30987. HEAP32[$6>>2] = $35;
  30988. $36 = HEAP8[$32>>0]|0;
  30989. $37 = $36&255;
  30990. $40 = $37;
  30991. } else {
  30992. $38 = (___shgetc($0)|0);
  30993. $40 = $38;
  30994. }
  30995. $39 = $40 | 32;
  30996. $41 = ($39|0)==(120);
  30997. if (!($41)) {
  30998. if ($28) {
  30999. $$1160169 = $40;$$1165168 = 8;
  31000. label = 46;
  31001. break;
  31002. } else {
  31003. $$1160 = $40;$$1165 = $1;
  31004. label = 32;
  31005. break;
  31006. }
  31007. }
  31008. $42 = HEAP32[$6>>2]|0;
  31009. $43 = HEAP32[$7>>2]|0;
  31010. $44 = ($42>>>0)<($43>>>0);
  31011. if ($44) {
  31012. $45 = ((($42)) + 1|0);
  31013. HEAP32[$6>>2] = $45;
  31014. $46 = HEAP8[$42>>0]|0;
  31015. $47 = $46&255;
  31016. $50 = $47;
  31017. } else {
  31018. $48 = (___shgetc($0)|0);
  31019. $50 = $48;
  31020. }
  31021. $49 = ((15392) + ($50)|0);
  31022. $51 = HEAP8[$49>>0]|0;
  31023. $52 = ($51&255)>(15);
  31024. if ($52) {
  31025. $53 = HEAP32[$7>>2]|0;
  31026. $54 = ($53|0)!=(0|0);
  31027. if ($54) {
  31028. $55 = HEAP32[$6>>2]|0;
  31029. $56 = ((($55)) + -1|0);
  31030. HEAP32[$6>>2] = $56;
  31031. }
  31032. $57 = ($2|0)==(0);
  31033. if ($57) {
  31034. ___shlim($0,0);
  31035. $289 = 0;$290 = 0;
  31036. break L1;
  31037. }
  31038. if (!($54)) {
  31039. $289 = 0;$290 = 0;
  31040. break L1;
  31041. }
  31042. $58 = HEAP32[$6>>2]|0;
  31043. $59 = ((($58)) + -1|0);
  31044. HEAP32[$6>>2] = $59;
  31045. $289 = 0;$290 = 0;
  31046. break L1;
  31047. } else {
  31048. $$1160169 = $50;$$1165168 = 16;
  31049. label = 46;
  31050. }
  31051. } else {
  31052. $$166 = $28 ? 10 : $1;
  31053. $60 = ((15392) + ($$0159)|0);
  31054. $61 = HEAP8[$60>>0]|0;
  31055. $62 = $61&255;
  31056. $63 = ($62>>>0)<($$166>>>0);
  31057. if ($63) {
  31058. $$1160 = $$0159;$$1165 = $$166;
  31059. label = 32;
  31060. } else {
  31061. $64 = HEAP32[$7>>2]|0;
  31062. $65 = ($64|0)==(0|0);
  31063. if (!($65)) {
  31064. $66 = HEAP32[$6>>2]|0;
  31065. $67 = ((($66)) + -1|0);
  31066. HEAP32[$6>>2] = $67;
  31067. }
  31068. ___shlim($0,0);
  31069. $68 = (___errno_location()|0);
  31070. HEAP32[$68>>2] = 22;
  31071. $289 = 0;$290 = 0;
  31072. break L1;
  31073. }
  31074. }
  31075. } while(0);
  31076. L43: do {
  31077. if ((label|0) == 32) {
  31078. $69 = ($$1165|0)==(10);
  31079. if ($69) {
  31080. $70 = (($$1160) + -48)|0;
  31081. $71 = ($70>>>0)<(10);
  31082. if ($71) {
  31083. $$0154222 = 0;$74 = $70;
  31084. while(1) {
  31085. $72 = ($$0154222*10)|0;
  31086. $73 = (($72) + ($74))|0;
  31087. $75 = HEAP32[$6>>2]|0;
  31088. $76 = HEAP32[$7>>2]|0;
  31089. $77 = ($75>>>0)<($76>>>0);
  31090. if ($77) {
  31091. $78 = ((($75)) + 1|0);
  31092. HEAP32[$6>>2] = $78;
  31093. $79 = HEAP8[$75>>0]|0;
  31094. $80 = $79&255;
  31095. $$2161$be = $80;
  31096. } else {
  31097. $81 = (___shgetc($0)|0);
  31098. $$2161$be = $81;
  31099. }
  31100. $82 = (($$2161$be) + -48)|0;
  31101. $83 = ($82>>>0)<(10);
  31102. $84 = ($73>>>0)<(429496729);
  31103. $85 = $83 & $84;
  31104. if ($85) {
  31105. $$0154222 = $73;$74 = $82;
  31106. } else {
  31107. break;
  31108. }
  31109. }
  31110. $$2161$lcssa = $$2161$be;$291 = $73;$292 = 0;
  31111. } else {
  31112. $$2161$lcssa = $$1160;$291 = 0;$292 = 0;
  31113. }
  31114. $86 = (($$2161$lcssa) + -48)|0;
  31115. $87 = ($86>>>0)<(10);
  31116. if ($87) {
  31117. $$3162215 = $$2161$lcssa;$88 = $291;$89 = $292;$93 = $86;
  31118. while(1) {
  31119. $90 = (___muldi3(($88|0),($89|0),10,0)|0);
  31120. $91 = tempRet0;
  31121. $92 = ($93|0)<(0);
  31122. $94 = $92 << 31 >> 31;
  31123. $95 = $93 ^ -1;
  31124. $96 = $94 ^ -1;
  31125. $97 = ($91>>>0)>($96>>>0);
  31126. $98 = ($90>>>0)>($95>>>0);
  31127. $99 = ($91|0)==($96|0);
  31128. $100 = $99 & $98;
  31129. $101 = $97 | $100;
  31130. if ($101) {
  31131. $$1165167 = 10;$$8 = $$3162215;$293 = $88;$294 = $89;
  31132. label = 72;
  31133. break L43;
  31134. }
  31135. $102 = (_i64Add(($90|0),($91|0),($93|0),($94|0))|0);
  31136. $103 = tempRet0;
  31137. $104 = HEAP32[$6>>2]|0;
  31138. $105 = HEAP32[$7>>2]|0;
  31139. $106 = ($104>>>0)<($105>>>0);
  31140. if ($106) {
  31141. $107 = ((($104)) + 1|0);
  31142. HEAP32[$6>>2] = $107;
  31143. $108 = HEAP8[$104>>0]|0;
  31144. $109 = $108&255;
  31145. $$3162$be = $109;
  31146. } else {
  31147. $110 = (___shgetc($0)|0);
  31148. $$3162$be = $110;
  31149. }
  31150. $111 = (($$3162$be) + -48)|0;
  31151. $112 = ($111>>>0)<(10);
  31152. $113 = ($103>>>0)<(429496729);
  31153. $114 = ($102>>>0)<(2576980378);
  31154. $115 = ($103|0)==(429496729);
  31155. $116 = $115 & $114;
  31156. $117 = $113 | $116;
  31157. $or$cond7 = $112 & $117;
  31158. if ($or$cond7) {
  31159. $$3162215 = $$3162$be;$88 = $102;$89 = $103;$93 = $111;
  31160. } else {
  31161. break;
  31162. }
  31163. }
  31164. $118 = ($111>>>0)>(9);
  31165. if ($118) {
  31166. $$1158 = $$0157;$263 = $103;$265 = $102;
  31167. } else {
  31168. $$1165167 = 10;$$8 = $$3162$be;$293 = $102;$294 = $103;
  31169. label = 72;
  31170. }
  31171. } else {
  31172. $$1158 = $$0157;$263 = $292;$265 = $291;
  31173. }
  31174. } else {
  31175. $$1160169 = $$1160;$$1165168 = $$1165;
  31176. label = 46;
  31177. }
  31178. }
  31179. } while(0);
  31180. L63: do {
  31181. if ((label|0) == 46) {
  31182. $119 = (($$1165168) + -1)|0;
  31183. $120 = $119 & $$1165168;
  31184. $121 = ($120|0)==(0);
  31185. if ($121) {
  31186. $126 = ($$1165168*23)|0;
  31187. $127 = $126 >>> 5;
  31188. $128 = $127 & 7;
  31189. $129 = (15648 + ($128)|0);
  31190. $130 = HEAP8[$129>>0]|0;
  31191. $131 = $130 << 24 >> 24;
  31192. $132 = ((15392) + ($$1160169)|0);
  31193. $133 = HEAP8[$132>>0]|0;
  31194. $134 = $133&255;
  31195. $135 = ($134>>>0)<($$1165168>>>0);
  31196. if ($135) {
  31197. $$1155192 = 0;$138 = $134;
  31198. while(1) {
  31199. $136 = $$1155192 << $131;
  31200. $137 = $138 | $136;
  31201. $139 = HEAP32[$6>>2]|0;
  31202. $140 = HEAP32[$7>>2]|0;
  31203. $141 = ($139>>>0)<($140>>>0);
  31204. if ($141) {
  31205. $142 = ((($139)) + 1|0);
  31206. HEAP32[$6>>2] = $142;
  31207. $143 = HEAP8[$139>>0]|0;
  31208. $144 = $143&255;
  31209. $$4163$be = $144;
  31210. } else {
  31211. $145 = (___shgetc($0)|0);
  31212. $$4163$be = $145;
  31213. }
  31214. $146 = ((15392) + ($$4163$be)|0);
  31215. $147 = HEAP8[$146>>0]|0;
  31216. $148 = $147&255;
  31217. $149 = ($148>>>0)<($$1165168>>>0);
  31218. $150 = ($137>>>0)<(134217728);
  31219. $151 = $150 & $149;
  31220. if ($151) {
  31221. $$1155192 = $137;$138 = $148;
  31222. } else {
  31223. break;
  31224. }
  31225. }
  31226. $$4163$lcssa = $$4163$be;$155 = $147;$158 = 0;$160 = $137;
  31227. } else {
  31228. $$4163$lcssa = $$1160169;$155 = $133;$158 = 0;$160 = 0;
  31229. }
  31230. $152 = (_bitshift64Lshr(-1,-1,($131|0))|0);
  31231. $153 = tempRet0;
  31232. $154 = $155&255;
  31233. $156 = ($154>>>0)>=($$1165168>>>0);
  31234. $157 = ($158>>>0)>($153>>>0);
  31235. $159 = ($160>>>0)>($152>>>0);
  31236. $161 = ($158|0)==($153|0);
  31237. $162 = $161 & $159;
  31238. $163 = $157 | $162;
  31239. $or$cond187 = $156 | $163;
  31240. if ($or$cond187) {
  31241. $$1165167 = $$1165168;$$8 = $$4163$lcssa;$293 = $160;$294 = $158;
  31242. label = 72;
  31243. break;
  31244. } else {
  31245. $164 = $160;$165 = $158;$169 = $155;
  31246. }
  31247. while(1) {
  31248. $166 = (_bitshift64Shl(($164|0),($165|0),($131|0))|0);
  31249. $167 = tempRet0;
  31250. $168 = $169&255;
  31251. $170 = $168 | $166;
  31252. $171 = HEAP32[$6>>2]|0;
  31253. $172 = HEAP32[$7>>2]|0;
  31254. $173 = ($171>>>0)<($172>>>0);
  31255. if ($173) {
  31256. $174 = ((($171)) + 1|0);
  31257. HEAP32[$6>>2] = $174;
  31258. $175 = HEAP8[$171>>0]|0;
  31259. $176 = $175&255;
  31260. $$5$be = $176;
  31261. } else {
  31262. $177 = (___shgetc($0)|0);
  31263. $$5$be = $177;
  31264. }
  31265. $178 = ((15392) + ($$5$be)|0);
  31266. $179 = HEAP8[$178>>0]|0;
  31267. $180 = $179&255;
  31268. $181 = ($180>>>0)>=($$1165168>>>0);
  31269. $182 = ($167>>>0)>($153>>>0);
  31270. $183 = ($170>>>0)>($152>>>0);
  31271. $184 = ($167|0)==($153|0);
  31272. $185 = $184 & $183;
  31273. $186 = $182 | $185;
  31274. $or$cond = $181 | $186;
  31275. if ($or$cond) {
  31276. $$1165167 = $$1165168;$$8 = $$5$be;$293 = $170;$294 = $167;
  31277. label = 72;
  31278. break L63;
  31279. } else {
  31280. $164 = $170;$165 = $167;$169 = $179;
  31281. }
  31282. }
  31283. }
  31284. $122 = ((15392) + ($$1160169)|0);
  31285. $123 = HEAP8[$122>>0]|0;
  31286. $124 = $123&255;
  31287. $125 = ($124>>>0)<($$1165168>>>0);
  31288. if ($125) {
  31289. $$2156210 = 0;$189 = $124;
  31290. while(1) {
  31291. $187 = Math_imul($$2156210, $$1165168)|0;
  31292. $188 = (($189) + ($187))|0;
  31293. $190 = HEAP32[$6>>2]|0;
  31294. $191 = HEAP32[$7>>2]|0;
  31295. $192 = ($190>>>0)<($191>>>0);
  31296. if ($192) {
  31297. $193 = ((($190)) + 1|0);
  31298. HEAP32[$6>>2] = $193;
  31299. $194 = HEAP8[$190>>0]|0;
  31300. $195 = $194&255;
  31301. $$6$be = $195;
  31302. } else {
  31303. $196 = (___shgetc($0)|0);
  31304. $$6$be = $196;
  31305. }
  31306. $197 = ((15392) + ($$6$be)|0);
  31307. $198 = HEAP8[$197>>0]|0;
  31308. $199 = $198&255;
  31309. $200 = ($199>>>0)<($$1165168>>>0);
  31310. $201 = ($188>>>0)<(119304647);
  31311. $202 = $201 & $200;
  31312. if ($202) {
  31313. $$2156210 = $188;$189 = $199;
  31314. } else {
  31315. break;
  31316. }
  31317. }
  31318. $$6$lcssa = $$6$be;$204 = $198;$295 = $188;$296 = 0;
  31319. } else {
  31320. $$6$lcssa = $$1160169;$204 = $123;$295 = 0;$296 = 0;
  31321. }
  31322. $203 = $204&255;
  31323. $205 = ($203>>>0)<($$1165168>>>0);
  31324. if ($205) {
  31325. $206 = (___udivdi3(-1,-1,($$1165168|0),0)|0);
  31326. $207 = tempRet0;
  31327. $$7198 = $$6$lcssa;$209 = $296;$211 = $295;$218 = $204;
  31328. while(1) {
  31329. $208 = ($209>>>0)>($207>>>0);
  31330. $210 = ($211>>>0)>($206>>>0);
  31331. $212 = ($209|0)==($207|0);
  31332. $213 = $212 & $210;
  31333. $214 = $208 | $213;
  31334. if ($214) {
  31335. $$1165167 = $$1165168;$$8 = $$7198;$293 = $211;$294 = $209;
  31336. label = 72;
  31337. break L63;
  31338. }
  31339. $215 = (___muldi3(($211|0),($209|0),($$1165168|0),0)|0);
  31340. $216 = tempRet0;
  31341. $217 = $218&255;
  31342. $219 = $217 ^ -1;
  31343. $220 = ($216>>>0)>(4294967295);
  31344. $221 = ($215>>>0)>($219>>>0);
  31345. $222 = ($216|0)==(-1);
  31346. $223 = $222 & $221;
  31347. $224 = $220 | $223;
  31348. if ($224) {
  31349. $$1165167 = $$1165168;$$8 = $$7198;$293 = $211;$294 = $209;
  31350. label = 72;
  31351. break L63;
  31352. }
  31353. $225 = (_i64Add(($217|0),0,($215|0),($216|0))|0);
  31354. $226 = tempRet0;
  31355. $227 = HEAP32[$6>>2]|0;
  31356. $228 = HEAP32[$7>>2]|0;
  31357. $229 = ($227>>>0)<($228>>>0);
  31358. if ($229) {
  31359. $230 = ((($227)) + 1|0);
  31360. HEAP32[$6>>2] = $230;
  31361. $231 = HEAP8[$227>>0]|0;
  31362. $232 = $231&255;
  31363. $$7$be = $232;
  31364. } else {
  31365. $233 = (___shgetc($0)|0);
  31366. $$7$be = $233;
  31367. }
  31368. $234 = ((15392) + ($$7$be)|0);
  31369. $235 = HEAP8[$234>>0]|0;
  31370. $236 = $235&255;
  31371. $237 = ($236>>>0)<($$1165168>>>0);
  31372. if ($237) {
  31373. $$7198 = $$7$be;$209 = $226;$211 = $225;$218 = $235;
  31374. } else {
  31375. $$1165167 = $$1165168;$$8 = $$7$be;$293 = $225;$294 = $226;
  31376. label = 72;
  31377. break;
  31378. }
  31379. }
  31380. } else {
  31381. $$1165167 = $$1165168;$$8 = $$6$lcssa;$293 = $295;$294 = $296;
  31382. label = 72;
  31383. }
  31384. }
  31385. } while(0);
  31386. if ((label|0) == 72) {
  31387. $238 = ((15392) + ($$8)|0);
  31388. $239 = HEAP8[$238>>0]|0;
  31389. $240 = $239&255;
  31390. $241 = ($240>>>0)<($$1165167>>>0);
  31391. if ($241) {
  31392. while(1) {
  31393. $242 = HEAP32[$6>>2]|0;
  31394. $243 = HEAP32[$7>>2]|0;
  31395. $244 = ($242>>>0)<($243>>>0);
  31396. if ($244) {
  31397. $245 = ((($242)) + 1|0);
  31398. HEAP32[$6>>2] = $245;
  31399. $246 = HEAP8[$242>>0]|0;
  31400. $247 = $246&255;
  31401. $$9$be = $247;
  31402. } else {
  31403. $248 = (___shgetc($0)|0);
  31404. $$9$be = $248;
  31405. }
  31406. $249 = ((15392) + ($$9$be)|0);
  31407. $250 = HEAP8[$249>>0]|0;
  31408. $251 = $250&255;
  31409. $252 = ($251>>>0)<($$1165167>>>0);
  31410. if (!($252)) {
  31411. break;
  31412. }
  31413. }
  31414. $253 = (___errno_location()|0);
  31415. HEAP32[$253>>2] = 34;
  31416. $254 = $3 & 1;
  31417. $255 = ($254|0)==(0);
  31418. $256 = (0)==(0);
  31419. $257 = $255 & $256;
  31420. $$0157$ = $257 ? $$0157 : 0;
  31421. $$1158 = $$0157$;$263 = $4;$265 = $3;
  31422. } else {
  31423. $$1158 = $$0157;$263 = $294;$265 = $293;
  31424. }
  31425. }
  31426. $258 = HEAP32[$7>>2]|0;
  31427. $259 = ($258|0)==(0|0);
  31428. if (!($259)) {
  31429. $260 = HEAP32[$6>>2]|0;
  31430. $261 = ((($260)) + -1|0);
  31431. HEAP32[$6>>2] = $261;
  31432. }
  31433. $262 = ($263>>>0)<($4>>>0);
  31434. $264 = ($265>>>0)<($3>>>0);
  31435. $266 = ($263|0)==($4|0);
  31436. $267 = $266 & $264;
  31437. $268 = $262 | $267;
  31438. if (!($268)) {
  31439. $269 = $3 & 1;
  31440. $270 = ($269|0)!=(0);
  31441. $271 = (0)!=(0);
  31442. $272 = $270 | $271;
  31443. $273 = ($$1158|0)!=(0);
  31444. $or$cond12 = $272 | $273;
  31445. if (!($or$cond12)) {
  31446. $274 = (___errno_location()|0);
  31447. HEAP32[$274>>2] = 34;
  31448. $275 = (_i64Add(($3|0),($4|0),-1,-1)|0);
  31449. $276 = tempRet0;
  31450. $289 = $276;$290 = $275;
  31451. break;
  31452. }
  31453. $277 = ($263>>>0)>($4>>>0);
  31454. $278 = ($265>>>0)>($3>>>0);
  31455. $279 = ($263|0)==($4|0);
  31456. $280 = $279 & $278;
  31457. $281 = $277 | $280;
  31458. if ($281) {
  31459. $282 = (___errno_location()|0);
  31460. HEAP32[$282>>2] = 34;
  31461. $289 = $4;$290 = $3;
  31462. break;
  31463. }
  31464. }
  31465. $283 = ($$1158|0)<(0);
  31466. $284 = $283 << 31 >> 31;
  31467. $285 = $265 ^ $$1158;
  31468. $286 = $263 ^ $284;
  31469. $287 = (_i64Subtract(($285|0),($286|0),($$1158|0),($284|0))|0);
  31470. $288 = tempRet0;
  31471. $289 = $288;$290 = $287;
  31472. }
  31473. } while(0);
  31474. tempRet0 = ($289);
  31475. return ($290|0);
  31476. }
  31477. function ___shgetc($0) {
  31478. $0 = $0|0;
  31479. var $$0 = 0, $$phi$trans$insert = 0, $$phi$trans$insert28$phi$trans$insert = 0, $$pre = 0, $$pre$phi34Z2D = 0, $$pre29$pre = 0, $$pre35 = 0, $$sink = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0;
  31480. var $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0;
  31481. var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  31482. sp = STACKTOP;
  31483. $1 = ((($0)) + 104|0);
  31484. $2 = HEAP32[$1>>2]|0;
  31485. $3 = ($2|0)==(0);
  31486. if ($3) {
  31487. label = 3;
  31488. } else {
  31489. $4 = ((($0)) + 108|0);
  31490. $5 = HEAP32[$4>>2]|0;
  31491. $6 = ($5|0)<($2|0);
  31492. if ($6) {
  31493. label = 3;
  31494. } else {
  31495. label = 4;
  31496. }
  31497. }
  31498. if ((label|0) == 3) {
  31499. $7 = (___uflow($0)|0);
  31500. $8 = ($7|0)<(0);
  31501. if ($8) {
  31502. label = 4;
  31503. } else {
  31504. $10 = HEAP32[$1>>2]|0;
  31505. $11 = ($10|0)==(0);
  31506. $$phi$trans$insert = ((($0)) + 8|0);
  31507. if ($11) {
  31508. $$pre = HEAP32[$$phi$trans$insert>>2]|0;
  31509. $$phi$trans$insert28$phi$trans$insert = ((($0)) + 4|0);
  31510. $$pre29$pre = HEAP32[$$phi$trans$insert28$phi$trans$insert>>2]|0;
  31511. $$pre35 = ((($0)) + 108|0);
  31512. $$pre$phi34Z2D = $$pre35;$$sink = $$pre;$26 = $$pre;$29 = $$pre29$pre;
  31513. } else {
  31514. $12 = HEAP32[$$phi$trans$insert>>2]|0;
  31515. $13 = ((($0)) + 4|0);
  31516. $14 = HEAP32[$13>>2]|0;
  31517. $15 = $14;
  31518. $16 = (($12) - ($15))|0;
  31519. $17 = ((($0)) + 108|0);
  31520. $18 = HEAP32[$17>>2]|0;
  31521. $19 = (($10) - ($18))|0;
  31522. $20 = ($16|0)<($19|0);
  31523. $21 = $12;
  31524. if ($20) {
  31525. $$pre$phi34Z2D = $17;$$sink = $21;$26 = $21;$29 = $14;
  31526. } else {
  31527. $22 = (($19) + -1)|0;
  31528. $23 = (($14) + ($22)|0);
  31529. $$pre$phi34Z2D = $17;$$sink = $23;$26 = $21;$29 = $14;
  31530. }
  31531. }
  31532. $24 = ((($0)) + 100|0);
  31533. HEAP32[$24>>2] = $$sink;
  31534. $25 = ($26|0)==(0|0);
  31535. if (!($25)) {
  31536. $27 = $26;
  31537. $28 = $29;
  31538. $30 = HEAP32[$$pre$phi34Z2D>>2]|0;
  31539. $31 = (($27) + 1)|0;
  31540. $32 = (($31) - ($28))|0;
  31541. $33 = (($32) + ($30))|0;
  31542. HEAP32[$$pre$phi34Z2D>>2] = $33;
  31543. }
  31544. $34 = ((($29)) + -1|0);
  31545. $35 = HEAP8[$34>>0]|0;
  31546. $36 = $35&255;
  31547. $37 = ($36|0)==($7|0);
  31548. if ($37) {
  31549. $$0 = $7;
  31550. } else {
  31551. $38 = $7&255;
  31552. HEAP8[$34>>0] = $38;
  31553. $$0 = $7;
  31554. }
  31555. }
  31556. }
  31557. if ((label|0) == 4) {
  31558. $9 = ((($0)) + 100|0);
  31559. HEAP32[$9>>2] = 0;
  31560. $$0 = -1;
  31561. }
  31562. return ($$0|0);
  31563. }
  31564. function _isspace($0) {
  31565. $0 = $0|0;
  31566. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  31567. sp = STACKTOP;
  31568. $1 = ($0|0)==(32);
  31569. $2 = (($0) + -9)|0;
  31570. $3 = ($2>>>0)<(5);
  31571. $4 = $1 | $3;
  31572. $5 = $4&1;
  31573. return ($5|0);
  31574. }
  31575. function ___uflow($0) {
  31576. $0 = $0|0;
  31577. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  31578. sp = STACKTOP;
  31579. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  31580. $1 = sp;
  31581. $2 = (___toread($0)|0);
  31582. $3 = ($2|0)==(0);
  31583. if ($3) {
  31584. $4 = ((($0)) + 32|0);
  31585. $5 = HEAP32[$4>>2]|0;
  31586. $6 = (FUNCTION_TABLE_iiii[$5 & 15]($0,$1,1)|0);
  31587. $7 = ($6|0)==(1);
  31588. if ($7) {
  31589. $8 = HEAP8[$1>>0]|0;
  31590. $9 = $8&255;
  31591. $$0 = $9;
  31592. } else {
  31593. $$0 = -1;
  31594. }
  31595. } else {
  31596. $$0 = -1;
  31597. }
  31598. STACKTOP = sp;return ($$0|0);
  31599. }
  31600. function ___toread($0) {
  31601. $0 = $0|0;
  31602. var $$0 = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0;
  31603. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $sext = 0, label = 0, sp = 0;
  31604. sp = STACKTOP;
  31605. $1 = ((($0)) + 74|0);
  31606. $2 = HEAP8[$1>>0]|0;
  31607. $3 = $2 << 24 >> 24;
  31608. $4 = (($3) + 255)|0;
  31609. $5 = $4 | $3;
  31610. $6 = $5&255;
  31611. HEAP8[$1>>0] = $6;
  31612. $7 = ((($0)) + 20|0);
  31613. $8 = HEAP32[$7>>2]|0;
  31614. $9 = ((($0)) + 28|0);
  31615. $10 = HEAP32[$9>>2]|0;
  31616. $11 = ($8>>>0)>($10>>>0);
  31617. if ($11) {
  31618. $12 = ((($0)) + 36|0);
  31619. $13 = HEAP32[$12>>2]|0;
  31620. (FUNCTION_TABLE_iiii[$13 & 15]($0,0,0)|0);
  31621. }
  31622. $14 = ((($0)) + 16|0);
  31623. HEAP32[$14>>2] = 0;
  31624. HEAP32[$9>>2] = 0;
  31625. HEAP32[$7>>2] = 0;
  31626. $15 = HEAP32[$0>>2]|0;
  31627. $16 = $15 & 4;
  31628. $17 = ($16|0)==(0);
  31629. if ($17) {
  31630. $19 = ((($0)) + 44|0);
  31631. $20 = HEAP32[$19>>2]|0;
  31632. $21 = ((($0)) + 48|0);
  31633. $22 = HEAP32[$21>>2]|0;
  31634. $23 = (($20) + ($22)|0);
  31635. $24 = ((($0)) + 8|0);
  31636. HEAP32[$24>>2] = $23;
  31637. $25 = ((($0)) + 4|0);
  31638. HEAP32[$25>>2] = $23;
  31639. $26 = $15 << 27;
  31640. $sext = $26 >> 31;
  31641. $$0 = $sext;
  31642. } else {
  31643. $18 = $15 | 32;
  31644. HEAP32[$0>>2] = $18;
  31645. $$0 = -1;
  31646. }
  31647. return ($$0|0);
  31648. }
  31649. function _copysign($0,$1) {
  31650. $0 = +$0;
  31651. $1 = +$1;
  31652. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0.0, label = 0, sp = 0;
  31653. sp = STACKTOP;
  31654. HEAPF64[tempDoublePtr>>3] = $0;$2 = HEAP32[tempDoublePtr>>2]|0;
  31655. $3 = HEAP32[tempDoublePtr+4>>2]|0;
  31656. HEAPF64[tempDoublePtr>>3] = $1;$4 = HEAP32[tempDoublePtr>>2]|0;
  31657. $5 = HEAP32[tempDoublePtr+4>>2]|0;
  31658. $6 = $3 & 2147483647;
  31659. $7 = $5 & -2147483648;
  31660. $8 = $7 | $6;
  31661. HEAP32[tempDoublePtr>>2] = $2;HEAP32[tempDoublePtr+4>>2] = $8;$9 = +HEAPF64[tempDoublePtr>>3];
  31662. return (+$9);
  31663. }
  31664. function _strcmp($0,$1) {
  31665. $0 = $0|0;
  31666. $1 = $1|0;
  31667. var $$011 = 0, $$0710 = 0, $$lcssa = 0, $$lcssa8 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, $or$cond9 = 0, label = 0;
  31668. var sp = 0;
  31669. sp = STACKTOP;
  31670. $2 = HEAP8[$0>>0]|0;
  31671. $3 = HEAP8[$1>>0]|0;
  31672. $4 = ($2<<24>>24)!=($3<<24>>24);
  31673. $5 = ($2<<24>>24)==(0);
  31674. $or$cond9 = $5 | $4;
  31675. if ($or$cond9) {
  31676. $$lcssa = $3;$$lcssa8 = $2;
  31677. } else {
  31678. $$011 = $1;$$0710 = $0;
  31679. while(1) {
  31680. $6 = ((($$0710)) + 1|0);
  31681. $7 = ((($$011)) + 1|0);
  31682. $8 = HEAP8[$6>>0]|0;
  31683. $9 = HEAP8[$7>>0]|0;
  31684. $10 = ($8<<24>>24)!=($9<<24>>24);
  31685. $11 = ($8<<24>>24)==(0);
  31686. $or$cond = $11 | $10;
  31687. if ($or$cond) {
  31688. $$lcssa = $9;$$lcssa8 = $8;
  31689. break;
  31690. } else {
  31691. $$011 = $7;$$0710 = $6;
  31692. }
  31693. }
  31694. }
  31695. $12 = $$lcssa8&255;
  31696. $13 = $$lcssa&255;
  31697. $14 = (($12) - ($13))|0;
  31698. return ($14|0);
  31699. }
  31700. function _memcmp($0,$1,$2) {
  31701. $0 = $0|0;
  31702. $1 = $1|0;
  31703. $2 = $2|0;
  31704. var $$01318 = 0, $$01417 = 0, $$019 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  31705. sp = STACKTOP;
  31706. $3 = ($2|0)==(0);
  31707. L1: do {
  31708. if ($3) {
  31709. $14 = 0;
  31710. } else {
  31711. $$01318 = $0;$$01417 = $2;$$019 = $1;
  31712. while(1) {
  31713. $4 = HEAP8[$$01318>>0]|0;
  31714. $5 = HEAP8[$$019>>0]|0;
  31715. $6 = ($4<<24>>24)==($5<<24>>24);
  31716. if (!($6)) {
  31717. break;
  31718. }
  31719. $7 = (($$01417) + -1)|0;
  31720. $8 = ((($$01318)) + 1|0);
  31721. $9 = ((($$019)) + 1|0);
  31722. $10 = ($7|0)==(0);
  31723. if ($10) {
  31724. $14 = 0;
  31725. break L1;
  31726. } else {
  31727. $$01318 = $8;$$01417 = $7;$$019 = $9;
  31728. }
  31729. }
  31730. $11 = $4&255;
  31731. $12 = $5&255;
  31732. $13 = (($11) - ($12))|0;
  31733. $14 = $13;
  31734. }
  31735. } while(0);
  31736. return ($14|0);
  31737. }
  31738. function _vsprintf($0,$1,$2) {
  31739. $0 = $0|0;
  31740. $1 = $1|0;
  31741. $2 = $2|0;
  31742. var $3 = 0, label = 0, sp = 0;
  31743. sp = STACKTOP;
  31744. $3 = (_vsnprintf($0,2147483647,$1,$2)|0);
  31745. return ($3|0);
  31746. }
  31747. function _vsnprintf($0,$1,$2,$3) {
  31748. $0 = $0|0;
  31749. $1 = $1|0;
  31750. $2 = $2|0;
  31751. $3 = $3|0;
  31752. var $$$015 = 0, $$0 = 0, $$014 = 0, $$015 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0;
  31753. var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  31754. sp = STACKTOP;
  31755. STACKTOP = STACKTOP + 128|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(128|0);
  31756. $4 = sp + 124|0;
  31757. $5 = sp;
  31758. dest=$5; src=4272; stop=dest+124|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  31759. $6 = (($1) + -1)|0;
  31760. $7 = ($6>>>0)>(2147483646);
  31761. if ($7) {
  31762. $8 = ($1|0)==(0);
  31763. if ($8) {
  31764. $$014 = $4;$$015 = 1;
  31765. label = 4;
  31766. } else {
  31767. $9 = (___errno_location()|0);
  31768. HEAP32[$9>>2] = 75;
  31769. $$0 = -1;
  31770. }
  31771. } else {
  31772. $$014 = $0;$$015 = $1;
  31773. label = 4;
  31774. }
  31775. if ((label|0) == 4) {
  31776. $10 = $$014;
  31777. $11 = (-2 - ($10))|0;
  31778. $12 = ($$015>>>0)>($11>>>0);
  31779. $$$015 = $12 ? $11 : $$015;
  31780. $13 = ((($5)) + 48|0);
  31781. HEAP32[$13>>2] = $$$015;
  31782. $14 = ((($5)) + 20|0);
  31783. HEAP32[$14>>2] = $$014;
  31784. $15 = ((($5)) + 44|0);
  31785. HEAP32[$15>>2] = $$014;
  31786. $16 = (($$014) + ($$$015)|0);
  31787. $17 = ((($5)) + 16|0);
  31788. HEAP32[$17>>2] = $16;
  31789. $18 = ((($5)) + 28|0);
  31790. HEAP32[$18>>2] = $16;
  31791. $19 = (_vfprintf($5,$2,$3)|0);
  31792. $20 = ($$$015|0)==(0);
  31793. if ($20) {
  31794. $$0 = $19;
  31795. } else {
  31796. $21 = HEAP32[$14>>2]|0;
  31797. $22 = HEAP32[$17>>2]|0;
  31798. $23 = ($21|0)==($22|0);
  31799. $24 = $23 << 31 >> 31;
  31800. $25 = (($21) + ($24)|0);
  31801. HEAP8[$25>>0] = 0;
  31802. $$0 = $19;
  31803. }
  31804. }
  31805. STACKTOP = sp;return ($$0|0);
  31806. }
  31807. function _vfprintf($0,$1,$2) {
  31808. $0 = $0|0;
  31809. $1 = $1|0;
  31810. $2 = $2|0;
  31811. var $$ = 0, $$0 = 0, $$1 = 0, $$1$ = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0;
  31812. var $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $5 = 0, $6 = 0, $7 = 0;
  31813. var $8 = 0, $9 = 0, $vacopy_currentptr = 0, dest = 0, label = 0, sp = 0, stop = 0;
  31814. sp = STACKTOP;
  31815. STACKTOP = STACKTOP + 224|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(224|0);
  31816. $3 = sp + 120|0;
  31817. $4 = sp + 80|0;
  31818. $5 = sp;
  31819. $6 = sp + 136|0;
  31820. dest=$4; stop=dest+40|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  31821. $vacopy_currentptr = HEAP32[$2>>2]|0;
  31822. HEAP32[$3>>2] = $vacopy_currentptr;
  31823. $7 = (_printf_core(0,$1,$3,$5,$4)|0);
  31824. $8 = ($7|0)<(0);
  31825. if ($8) {
  31826. $$0 = -1;
  31827. } else {
  31828. $9 = ((($0)) + 76|0);
  31829. $10 = HEAP32[$9>>2]|0;
  31830. $11 = ($10|0)>(-1);
  31831. if ($11) {
  31832. $12 = (___lockfile($0)|0);
  31833. $40 = $12;
  31834. } else {
  31835. $40 = 0;
  31836. }
  31837. $13 = HEAP32[$0>>2]|0;
  31838. $14 = $13 & 32;
  31839. $15 = ((($0)) + 74|0);
  31840. $16 = HEAP8[$15>>0]|0;
  31841. $17 = ($16<<24>>24)<(1);
  31842. if ($17) {
  31843. $18 = $13 & -33;
  31844. HEAP32[$0>>2] = $18;
  31845. }
  31846. $19 = ((($0)) + 48|0);
  31847. $20 = HEAP32[$19>>2]|0;
  31848. $21 = ($20|0)==(0);
  31849. if ($21) {
  31850. $23 = ((($0)) + 44|0);
  31851. $24 = HEAP32[$23>>2]|0;
  31852. HEAP32[$23>>2] = $6;
  31853. $25 = ((($0)) + 28|0);
  31854. HEAP32[$25>>2] = $6;
  31855. $26 = ((($0)) + 20|0);
  31856. HEAP32[$26>>2] = $6;
  31857. HEAP32[$19>>2] = 80;
  31858. $27 = ((($6)) + 80|0);
  31859. $28 = ((($0)) + 16|0);
  31860. HEAP32[$28>>2] = $27;
  31861. $29 = (_printf_core($0,$1,$3,$5,$4)|0);
  31862. $30 = ($24|0)==(0|0);
  31863. if ($30) {
  31864. $$1 = $29;
  31865. } else {
  31866. $31 = ((($0)) + 36|0);
  31867. $32 = HEAP32[$31>>2]|0;
  31868. (FUNCTION_TABLE_iiii[$32 & 15]($0,0,0)|0);
  31869. $33 = HEAP32[$26>>2]|0;
  31870. $34 = ($33|0)==(0|0);
  31871. $$ = $34 ? -1 : $29;
  31872. HEAP32[$23>>2] = $24;
  31873. HEAP32[$19>>2] = 0;
  31874. HEAP32[$28>>2] = 0;
  31875. HEAP32[$25>>2] = 0;
  31876. HEAP32[$26>>2] = 0;
  31877. $$1 = $$;
  31878. }
  31879. } else {
  31880. $22 = (_printf_core($0,$1,$3,$5,$4)|0);
  31881. $$1 = $22;
  31882. }
  31883. $35 = HEAP32[$0>>2]|0;
  31884. $36 = $35 & 32;
  31885. $37 = ($36|0)==(0);
  31886. $$1$ = $37 ? $$1 : -1;
  31887. $38 = $35 | $14;
  31888. HEAP32[$0>>2] = $38;
  31889. $39 = ($40|0)==(0);
  31890. if (!($39)) {
  31891. ___unlockfile($0);
  31892. }
  31893. $$0 = $$1$;
  31894. }
  31895. STACKTOP = sp;return ($$0|0);
  31896. }
  31897. function _printf_core($0,$1,$2,$3,$4) {
  31898. $0 = $0|0;
  31899. $1 = $1|0;
  31900. $2 = $2|0;
  31901. $3 = $3|0;
  31902. $4 = $4|0;
  31903. var $$ = 0, $$$ = 0, $$$0259 = 0, $$$0262 = 0, $$$0269 = 0, $$$4266 = 0, $$$5 = 0, $$0 = 0, $$0228 = 0, $$0228$ = 0, $$0229322 = 0, $$0232 = 0, $$0235 = 0, $$0237 = 0, $$0240$lcssa = 0, $$0240$lcssa357 = 0, $$0240321 = 0, $$0243 = 0, $$0247 = 0, $$0249$lcssa = 0;
  31904. var $$0249306 = 0, $$0252 = 0, $$0253 = 0, $$0254 = 0, $$0254$$0254$ = 0, $$0259 = 0, $$0262$lcssa = 0, $$0262311 = 0, $$0269 = 0, $$0269$phi = 0, $$1 = 0, $$1230333 = 0, $$1233 = 0, $$1236 = 0, $$1238 = 0, $$1241332 = 0, $$1244320 = 0, $$1248 = 0, $$1250 = 0, $$1255 = 0;
  31905. var $$1260 = 0, $$1263 = 0, $$1263$ = 0, $$1270 = 0, $$2 = 0, $$2234 = 0, $$2239 = 0, $$2242305 = 0, $$2245 = 0, $$2251 = 0, $$2256 = 0, $$2256$ = 0, $$2256$$$2256 = 0, $$2261 = 0, $$2271 = 0, $$284$ = 0, $$289 = 0, $$290 = 0, $$3257 = 0, $$3265 = 0;
  31906. var $$3272 = 0, $$3303 = 0, $$377 = 0, $$4258355 = 0, $$4266 = 0, $$5 = 0, $$6268 = 0, $$lcssa295 = 0, $$pre = 0, $$pre346 = 0, $$pre347 = 0, $$pre347$pre = 0, $$pre349 = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0;
  31907. var $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0, $114 = 0, $115 = 0, $116 = 0, $117 = 0, $118 = 0, $119 = 0, $12 = 0, $120 = 0, $121 = 0, $122 = 0, $123 = 0;
  31908. var $124 = 0, $125 = 0, $126 = 0, $127 = 0, $128 = 0, $129 = 0, $13 = 0, $130 = 0, $131 = 0, $132 = 0, $133 = 0, $134 = 0, $135 = 0, $136 = 0, $137 = 0, $138 = 0, $139 = 0, $14 = 0, $140 = 0, $141 = 0;
  31909. var $142 = 0, $143 = 0, $144 = 0, $145 = 0, $146 = 0, $147 = 0, $148 = 0, $149 = 0, $15 = 0, $150 = 0, $151 = 0, $152 = 0, $153 = 0, $154 = 0, $155 = 0, $156 = 0, $157 = 0, $158 = 0, $159 = 0, $16 = 0;
  31910. var $160 = 0, $161 = 0, $162 = 0, $163 = 0, $164 = 0, $165 = 0, $166 = 0, $167 = 0, $168 = 0, $169 = 0, $17 = 0, $170 = 0, $171 = 0, $172 = 0, $173 = 0, $174 = 0, $175 = 0, $176 = 0, $177 = 0, $178 = 0;
  31911. var $179 = 0, $18 = 0, $180 = 0, $181 = 0, $182 = 0, $183 = 0, $184 = 0, $185 = 0, $186 = 0, $187 = 0, $188 = 0, $189 = 0, $19 = 0, $190 = 0, $191 = 0, $192 = 0, $193 = 0, $194 = 0, $195 = 0, $196 = 0;
  31912. var $197 = 0, $198 = 0, $199 = 0, $20 = 0, $200 = 0, $201 = 0, $202 = 0, $203 = 0, $204 = 0, $205 = 0, $206 = 0, $207 = 0, $208 = 0, $209 = 0, $21 = 0, $210 = 0, $211 = 0, $212 = 0, $213 = 0, $214 = 0;
  31913. var $215 = 0, $216 = 0, $217 = 0, $218 = 0, $219 = 0, $22 = 0, $220 = 0, $221 = 0, $222 = 0, $223 = 0, $224 = 0, $225 = 0, $226 = 0, $227 = 0, $228 = 0, $229 = 0, $23 = 0, $230 = 0, $231 = 0, $232 = 0;
  31914. var $233 = 0, $234 = 0, $235 = 0, $236 = 0, $237 = 0, $238 = 0, $239 = 0, $24 = 0, $240 = 0, $241 = 0, $242 = 0, $243 = 0, $244 = 0, $245 = 0, $246 = 0, $247 = 0, $248 = 0, $249 = 0, $25 = 0, $250 = 0;
  31915. var $251 = 0, $252 = 0, $253 = 0, $254 = 0, $255 = 0, $256 = 0, $257 = 0, $258 = 0, $259 = 0, $26 = 0, $260 = 0, $261 = 0, $262 = 0, $263 = 0, $264 = 0, $265 = 0, $266 = 0, $267 = 0, $268 = 0, $269 = 0;
  31916. var $27 = 0, $270 = 0, $271 = 0, $272 = 0, $273 = 0, $274 = 0, $275 = 0, $276 = 0, $277 = 0, $278 = 0, $279 = 0, $28 = 0, $280 = 0, $281 = 0, $282 = 0, $283 = 0, $284 = 0, $285 = 0, $286 = 0, $287 = 0;
  31917. var $288 = 0, $289 = 0, $29 = 0, $290 = 0, $291 = 0, $292 = 0, $293 = 0, $294 = 0, $295 = 0, $296 = 0, $297 = 0, $298 = 0, $299 = 0, $30 = 0, $300 = 0, $301 = 0, $302 = 0, $303 = 0, $304 = 0, $305 = 0;
  31918. var $306 = 0.0, $307 = 0, $308 = 0, $309 = 0, $31 = 0, $310 = 0, $311 = 0, $312 = 0, $313 = 0, $314 = 0, $315 = 0, $316 = 0, $317 = 0, $318 = 0, $319 = 0, $32 = 0, $320 = 0, $321 = 0, $322 = 0, $323 = 0;
  31919. var $324 = 0, $325 = 0, $326 = 0, $327 = 0, $328 = 0, $329 = 0, $33 = 0, $330 = 0, $331 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0;
  31920. var $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0;
  31921. var $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0;
  31922. var $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0, $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0;
  31923. var $arglist_current = 0, $arglist_current2 = 0, $arglist_next = 0, $arglist_next3 = 0, $expanded = 0, $expanded10 = 0, $expanded11 = 0, $expanded13 = 0, $expanded14 = 0, $expanded15 = 0, $expanded4 = 0, $expanded6 = 0, $expanded7 = 0, $expanded8 = 0, $isdigit = 0, $isdigit275 = 0, $isdigit277 = 0, $isdigittmp = 0, $isdigittmp$ = 0, $isdigittmp274 = 0;
  31924. var $isdigittmp276 = 0, $narrow = 0, $or$cond = 0, $or$cond281 = 0, $or$cond283 = 0, $or$cond286 = 0, $storemerge = 0, $storemerge273310 = 0, $storemerge278 = 0, $trunc = 0, label = 0, sp = 0;
  31925. sp = STACKTOP;
  31926. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  31927. $5 = sp + 16|0;
  31928. $6 = sp;
  31929. $7 = sp + 24|0;
  31930. $8 = sp + 8|0;
  31931. $9 = sp + 20|0;
  31932. HEAP32[$5>>2] = $1;
  31933. $10 = ($0|0)!=(0|0);
  31934. $11 = ((($7)) + 40|0);
  31935. $12 = $11;
  31936. $13 = ((($7)) + 39|0);
  31937. $14 = ((($8)) + 4|0);
  31938. $$0243 = 0;$$0247 = 0;$$0269 = 0;$21 = $1;
  31939. L1: while(1) {
  31940. $15 = ($$0247|0)>(-1);
  31941. do {
  31942. if ($15) {
  31943. $16 = (2147483647 - ($$0247))|0;
  31944. $17 = ($$0243|0)>($16|0);
  31945. if ($17) {
  31946. $18 = (___errno_location()|0);
  31947. HEAP32[$18>>2] = 75;
  31948. $$1248 = -1;
  31949. break;
  31950. } else {
  31951. $19 = (($$0243) + ($$0247))|0;
  31952. $$1248 = $19;
  31953. break;
  31954. }
  31955. } else {
  31956. $$1248 = $$0247;
  31957. }
  31958. } while(0);
  31959. $20 = HEAP8[$21>>0]|0;
  31960. $22 = ($20<<24>>24)==(0);
  31961. if ($22) {
  31962. label = 87;
  31963. break;
  31964. } else {
  31965. $23 = $20;$25 = $21;
  31966. }
  31967. L9: while(1) {
  31968. switch ($23<<24>>24) {
  31969. case 37: {
  31970. $$0249306 = $25;$27 = $25;
  31971. label = 9;
  31972. break L9;
  31973. break;
  31974. }
  31975. case 0: {
  31976. $$0249$lcssa = $25;$39 = $25;
  31977. break L9;
  31978. break;
  31979. }
  31980. default: {
  31981. }
  31982. }
  31983. $24 = ((($25)) + 1|0);
  31984. HEAP32[$5>>2] = $24;
  31985. $$pre = HEAP8[$24>>0]|0;
  31986. $23 = $$pre;$25 = $24;
  31987. }
  31988. L12: do {
  31989. if ((label|0) == 9) {
  31990. while(1) {
  31991. label = 0;
  31992. $26 = ((($27)) + 1|0);
  31993. $28 = HEAP8[$26>>0]|0;
  31994. $29 = ($28<<24>>24)==(37);
  31995. if (!($29)) {
  31996. $$0249$lcssa = $$0249306;$39 = $27;
  31997. break L12;
  31998. }
  31999. $30 = ((($$0249306)) + 1|0);
  32000. $31 = ((($27)) + 2|0);
  32001. HEAP32[$5>>2] = $31;
  32002. $32 = HEAP8[$31>>0]|0;
  32003. $33 = ($32<<24>>24)==(37);
  32004. if ($33) {
  32005. $$0249306 = $30;$27 = $31;
  32006. label = 9;
  32007. } else {
  32008. $$0249$lcssa = $30;$39 = $31;
  32009. break;
  32010. }
  32011. }
  32012. }
  32013. } while(0);
  32014. $34 = $$0249$lcssa;
  32015. $35 = $21;
  32016. $36 = (($34) - ($35))|0;
  32017. if ($10) {
  32018. _out($0,$21,$36);
  32019. }
  32020. $37 = ($36|0)==(0);
  32021. if (!($37)) {
  32022. $$0269$phi = $$0269;$$0243 = $36;$$0247 = $$1248;$21 = $39;$$0269 = $$0269$phi;
  32023. continue;
  32024. }
  32025. $38 = ((($39)) + 1|0);
  32026. $40 = HEAP8[$38>>0]|0;
  32027. $41 = $40 << 24 >> 24;
  32028. $isdigittmp = (($41) + -48)|0;
  32029. $isdigit = ($isdigittmp>>>0)<(10);
  32030. if ($isdigit) {
  32031. $42 = ((($39)) + 2|0);
  32032. $43 = HEAP8[$42>>0]|0;
  32033. $44 = ($43<<24>>24)==(36);
  32034. $45 = ((($39)) + 3|0);
  32035. $$377 = $44 ? $45 : $38;
  32036. $$$0269 = $44 ? 1 : $$0269;
  32037. $isdigittmp$ = $44 ? $isdigittmp : -1;
  32038. $$0253 = $isdigittmp$;$$1270 = $$$0269;$storemerge = $$377;
  32039. } else {
  32040. $$0253 = -1;$$1270 = $$0269;$storemerge = $38;
  32041. }
  32042. HEAP32[$5>>2] = $storemerge;
  32043. $46 = HEAP8[$storemerge>>0]|0;
  32044. $47 = $46 << 24 >> 24;
  32045. $48 = (($47) + -32)|0;
  32046. $49 = ($48>>>0)<(32);
  32047. L24: do {
  32048. if ($49) {
  32049. $$0262311 = 0;$329 = $46;$51 = $48;$storemerge273310 = $storemerge;
  32050. while(1) {
  32051. $50 = 1 << $51;
  32052. $52 = $50 & 75913;
  32053. $53 = ($52|0)==(0);
  32054. if ($53) {
  32055. $$0262$lcssa = $$0262311;$$lcssa295 = $329;$62 = $storemerge273310;
  32056. break L24;
  32057. }
  32058. $54 = $50 | $$0262311;
  32059. $55 = ((($storemerge273310)) + 1|0);
  32060. HEAP32[$5>>2] = $55;
  32061. $56 = HEAP8[$55>>0]|0;
  32062. $57 = $56 << 24 >> 24;
  32063. $58 = (($57) + -32)|0;
  32064. $59 = ($58>>>0)<(32);
  32065. if ($59) {
  32066. $$0262311 = $54;$329 = $56;$51 = $58;$storemerge273310 = $55;
  32067. } else {
  32068. $$0262$lcssa = $54;$$lcssa295 = $56;$62 = $55;
  32069. break;
  32070. }
  32071. }
  32072. } else {
  32073. $$0262$lcssa = 0;$$lcssa295 = $46;$62 = $storemerge;
  32074. }
  32075. } while(0);
  32076. $60 = ($$lcssa295<<24>>24)==(42);
  32077. if ($60) {
  32078. $61 = ((($62)) + 1|0);
  32079. $63 = HEAP8[$61>>0]|0;
  32080. $64 = $63 << 24 >> 24;
  32081. $isdigittmp276 = (($64) + -48)|0;
  32082. $isdigit277 = ($isdigittmp276>>>0)<(10);
  32083. if ($isdigit277) {
  32084. $65 = ((($62)) + 2|0);
  32085. $66 = HEAP8[$65>>0]|0;
  32086. $67 = ($66<<24>>24)==(36);
  32087. if ($67) {
  32088. $68 = (($4) + ($isdigittmp276<<2)|0);
  32089. HEAP32[$68>>2] = 10;
  32090. $69 = HEAP8[$61>>0]|0;
  32091. $70 = $69 << 24 >> 24;
  32092. $71 = (($70) + -48)|0;
  32093. $72 = (($3) + ($71<<3)|0);
  32094. $73 = $72;
  32095. $74 = $73;
  32096. $75 = HEAP32[$74>>2]|0;
  32097. $76 = (($73) + 4)|0;
  32098. $77 = $76;
  32099. $78 = HEAP32[$77>>2]|0;
  32100. $79 = ((($62)) + 3|0);
  32101. $$0259 = $75;$$2271 = 1;$storemerge278 = $79;
  32102. } else {
  32103. label = 23;
  32104. }
  32105. } else {
  32106. label = 23;
  32107. }
  32108. if ((label|0) == 23) {
  32109. label = 0;
  32110. $80 = ($$1270|0)==(0);
  32111. if (!($80)) {
  32112. $$0 = -1;
  32113. break;
  32114. }
  32115. if ($10) {
  32116. $arglist_current = HEAP32[$2>>2]|0;
  32117. $81 = $arglist_current;
  32118. $82 = ((0) + 4|0);
  32119. $expanded4 = $82;
  32120. $expanded = (($expanded4) - 1)|0;
  32121. $83 = (($81) + ($expanded))|0;
  32122. $84 = ((0) + 4|0);
  32123. $expanded8 = $84;
  32124. $expanded7 = (($expanded8) - 1)|0;
  32125. $expanded6 = $expanded7 ^ -1;
  32126. $85 = $83 & $expanded6;
  32127. $86 = $85;
  32128. $87 = HEAP32[$86>>2]|0;
  32129. $arglist_next = ((($86)) + 4|0);
  32130. HEAP32[$2>>2] = $arglist_next;
  32131. $$0259 = $87;$$2271 = 0;$storemerge278 = $61;
  32132. } else {
  32133. $$0259 = 0;$$2271 = 0;$storemerge278 = $61;
  32134. }
  32135. }
  32136. HEAP32[$5>>2] = $storemerge278;
  32137. $88 = ($$0259|0)<(0);
  32138. $89 = $$0262$lcssa | 8192;
  32139. $90 = (0 - ($$0259))|0;
  32140. $$$0262 = $88 ? $89 : $$0262$lcssa;
  32141. $$$0259 = $88 ? $90 : $$0259;
  32142. $$1260 = $$$0259;$$1263 = $$$0262;$$3272 = $$2271;$94 = $storemerge278;
  32143. } else {
  32144. $91 = (_getint($5)|0);
  32145. $92 = ($91|0)<(0);
  32146. if ($92) {
  32147. $$0 = -1;
  32148. break;
  32149. }
  32150. $$pre346 = HEAP32[$5>>2]|0;
  32151. $$1260 = $91;$$1263 = $$0262$lcssa;$$3272 = $$1270;$94 = $$pre346;
  32152. }
  32153. $93 = HEAP8[$94>>0]|0;
  32154. $95 = ($93<<24>>24)==(46);
  32155. do {
  32156. if ($95) {
  32157. $96 = ((($94)) + 1|0);
  32158. $97 = HEAP8[$96>>0]|0;
  32159. $98 = ($97<<24>>24)==(42);
  32160. if (!($98)) {
  32161. $125 = ((($94)) + 1|0);
  32162. HEAP32[$5>>2] = $125;
  32163. $126 = (_getint($5)|0);
  32164. $$pre347$pre = HEAP32[$5>>2]|0;
  32165. $$0254 = $126;$$pre347 = $$pre347$pre;
  32166. break;
  32167. }
  32168. $99 = ((($94)) + 2|0);
  32169. $100 = HEAP8[$99>>0]|0;
  32170. $101 = $100 << 24 >> 24;
  32171. $isdigittmp274 = (($101) + -48)|0;
  32172. $isdigit275 = ($isdigittmp274>>>0)<(10);
  32173. if ($isdigit275) {
  32174. $102 = ((($94)) + 3|0);
  32175. $103 = HEAP8[$102>>0]|0;
  32176. $104 = ($103<<24>>24)==(36);
  32177. if ($104) {
  32178. $105 = (($4) + ($isdigittmp274<<2)|0);
  32179. HEAP32[$105>>2] = 10;
  32180. $106 = HEAP8[$99>>0]|0;
  32181. $107 = $106 << 24 >> 24;
  32182. $108 = (($107) + -48)|0;
  32183. $109 = (($3) + ($108<<3)|0);
  32184. $110 = $109;
  32185. $111 = $110;
  32186. $112 = HEAP32[$111>>2]|0;
  32187. $113 = (($110) + 4)|0;
  32188. $114 = $113;
  32189. $115 = HEAP32[$114>>2]|0;
  32190. $116 = ((($94)) + 4|0);
  32191. HEAP32[$5>>2] = $116;
  32192. $$0254 = $112;$$pre347 = $116;
  32193. break;
  32194. }
  32195. }
  32196. $117 = ($$3272|0)==(0);
  32197. if (!($117)) {
  32198. $$0 = -1;
  32199. break L1;
  32200. }
  32201. if ($10) {
  32202. $arglist_current2 = HEAP32[$2>>2]|0;
  32203. $118 = $arglist_current2;
  32204. $119 = ((0) + 4|0);
  32205. $expanded11 = $119;
  32206. $expanded10 = (($expanded11) - 1)|0;
  32207. $120 = (($118) + ($expanded10))|0;
  32208. $121 = ((0) + 4|0);
  32209. $expanded15 = $121;
  32210. $expanded14 = (($expanded15) - 1)|0;
  32211. $expanded13 = $expanded14 ^ -1;
  32212. $122 = $120 & $expanded13;
  32213. $123 = $122;
  32214. $124 = HEAP32[$123>>2]|0;
  32215. $arglist_next3 = ((($123)) + 4|0);
  32216. HEAP32[$2>>2] = $arglist_next3;
  32217. $330 = $124;
  32218. } else {
  32219. $330 = 0;
  32220. }
  32221. HEAP32[$5>>2] = $99;
  32222. $$0254 = $330;$$pre347 = $99;
  32223. } else {
  32224. $$0254 = -1;$$pre347 = $94;
  32225. }
  32226. } while(0);
  32227. $$0252 = 0;$128 = $$pre347;
  32228. while(1) {
  32229. $127 = HEAP8[$128>>0]|0;
  32230. $129 = $127 << 24 >> 24;
  32231. $130 = (($129) + -65)|0;
  32232. $131 = ($130>>>0)>(57);
  32233. if ($131) {
  32234. $$0 = -1;
  32235. break L1;
  32236. }
  32237. $132 = ((($128)) + 1|0);
  32238. HEAP32[$5>>2] = $132;
  32239. $133 = HEAP8[$128>>0]|0;
  32240. $134 = $133 << 24 >> 24;
  32241. $135 = (($134) + -65)|0;
  32242. $136 = ((15657 + (($$0252*58)|0)|0) + ($135)|0);
  32243. $137 = HEAP8[$136>>0]|0;
  32244. $138 = $137&255;
  32245. $139 = (($138) + -1)|0;
  32246. $140 = ($139>>>0)<(8);
  32247. if ($140) {
  32248. $$0252 = $138;$128 = $132;
  32249. } else {
  32250. break;
  32251. }
  32252. }
  32253. $141 = ($137<<24>>24)==(0);
  32254. if ($141) {
  32255. $$0 = -1;
  32256. break;
  32257. }
  32258. $142 = ($137<<24>>24)==(19);
  32259. $143 = ($$0253|0)>(-1);
  32260. do {
  32261. if ($142) {
  32262. if ($143) {
  32263. $$0 = -1;
  32264. break L1;
  32265. } else {
  32266. label = 49;
  32267. }
  32268. } else {
  32269. if ($143) {
  32270. $144 = (($4) + ($$0253<<2)|0);
  32271. HEAP32[$144>>2] = $138;
  32272. $145 = (($3) + ($$0253<<3)|0);
  32273. $146 = $145;
  32274. $147 = $146;
  32275. $148 = HEAP32[$147>>2]|0;
  32276. $149 = (($146) + 4)|0;
  32277. $150 = $149;
  32278. $151 = HEAP32[$150>>2]|0;
  32279. $152 = $6;
  32280. $153 = $152;
  32281. HEAP32[$153>>2] = $148;
  32282. $154 = (($152) + 4)|0;
  32283. $155 = $154;
  32284. HEAP32[$155>>2] = $151;
  32285. label = 49;
  32286. break;
  32287. }
  32288. if (!($10)) {
  32289. $$0 = 0;
  32290. break L1;
  32291. }
  32292. _pop_arg($6,$138,$2);
  32293. }
  32294. } while(0);
  32295. if ((label|0) == 49) {
  32296. label = 0;
  32297. if (!($10)) {
  32298. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  32299. continue;
  32300. }
  32301. }
  32302. $156 = HEAP8[$128>>0]|0;
  32303. $157 = $156 << 24 >> 24;
  32304. $158 = ($$0252|0)!=(0);
  32305. $159 = $157 & 15;
  32306. $160 = ($159|0)==(3);
  32307. $or$cond281 = $158 & $160;
  32308. $161 = $157 & -33;
  32309. $$0235 = $or$cond281 ? $161 : $157;
  32310. $162 = $$1263 & 8192;
  32311. $163 = ($162|0)==(0);
  32312. $164 = $$1263 & -65537;
  32313. $$1263$ = $163 ? $$1263 : $164;
  32314. L71: do {
  32315. switch ($$0235|0) {
  32316. case 110: {
  32317. $trunc = $$0252&255;
  32318. switch ($trunc<<24>>24) {
  32319. case 0: {
  32320. $171 = HEAP32[$6>>2]|0;
  32321. HEAP32[$171>>2] = $$1248;
  32322. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  32323. continue L1;
  32324. break;
  32325. }
  32326. case 1: {
  32327. $172 = HEAP32[$6>>2]|0;
  32328. HEAP32[$172>>2] = $$1248;
  32329. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  32330. continue L1;
  32331. break;
  32332. }
  32333. case 2: {
  32334. $173 = ($$1248|0)<(0);
  32335. $174 = $173 << 31 >> 31;
  32336. $175 = HEAP32[$6>>2]|0;
  32337. $176 = $175;
  32338. $177 = $176;
  32339. HEAP32[$177>>2] = $$1248;
  32340. $178 = (($176) + 4)|0;
  32341. $179 = $178;
  32342. HEAP32[$179>>2] = $174;
  32343. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  32344. continue L1;
  32345. break;
  32346. }
  32347. case 3: {
  32348. $180 = $$1248&65535;
  32349. $181 = HEAP32[$6>>2]|0;
  32350. HEAP16[$181>>1] = $180;
  32351. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  32352. continue L1;
  32353. break;
  32354. }
  32355. case 4: {
  32356. $182 = $$1248&255;
  32357. $183 = HEAP32[$6>>2]|0;
  32358. HEAP8[$183>>0] = $182;
  32359. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  32360. continue L1;
  32361. break;
  32362. }
  32363. case 6: {
  32364. $184 = HEAP32[$6>>2]|0;
  32365. HEAP32[$184>>2] = $$1248;
  32366. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  32367. continue L1;
  32368. break;
  32369. }
  32370. case 7: {
  32371. $185 = ($$1248|0)<(0);
  32372. $186 = $185 << 31 >> 31;
  32373. $187 = HEAP32[$6>>2]|0;
  32374. $188 = $187;
  32375. $189 = $188;
  32376. HEAP32[$189>>2] = $$1248;
  32377. $190 = (($188) + 4)|0;
  32378. $191 = $190;
  32379. HEAP32[$191>>2] = $186;
  32380. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  32381. continue L1;
  32382. break;
  32383. }
  32384. default: {
  32385. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  32386. continue L1;
  32387. }
  32388. }
  32389. break;
  32390. }
  32391. case 112: {
  32392. $192 = ($$0254>>>0)>(8);
  32393. $193 = $192 ? $$0254 : 8;
  32394. $194 = $$1263$ | 8;
  32395. $$1236 = 120;$$1255 = $193;$$3265 = $194;
  32396. label = 61;
  32397. break;
  32398. }
  32399. case 88: case 120: {
  32400. $$1236 = $$0235;$$1255 = $$0254;$$3265 = $$1263$;
  32401. label = 61;
  32402. break;
  32403. }
  32404. case 111: {
  32405. $210 = $6;
  32406. $211 = $210;
  32407. $212 = HEAP32[$211>>2]|0;
  32408. $213 = (($210) + 4)|0;
  32409. $214 = $213;
  32410. $215 = HEAP32[$214>>2]|0;
  32411. $216 = (_fmt_o($212,$215,$11)|0);
  32412. $217 = $$1263$ & 8;
  32413. $218 = ($217|0)==(0);
  32414. $219 = $216;
  32415. $220 = (($12) - ($219))|0;
  32416. $221 = ($$0254|0)>($220|0);
  32417. $222 = (($220) + 1)|0;
  32418. $223 = $218 | $221;
  32419. $$0254$$0254$ = $223 ? $$0254 : $222;
  32420. $$0228 = $216;$$1233 = 0;$$1238 = 16121;$$2256 = $$0254$$0254$;$$4266 = $$1263$;$248 = $212;$250 = $215;
  32421. label = 67;
  32422. break;
  32423. }
  32424. case 105: case 100: {
  32425. $224 = $6;
  32426. $225 = $224;
  32427. $226 = HEAP32[$225>>2]|0;
  32428. $227 = (($224) + 4)|0;
  32429. $228 = $227;
  32430. $229 = HEAP32[$228>>2]|0;
  32431. $230 = ($229|0)<(0);
  32432. if ($230) {
  32433. $231 = (_i64Subtract(0,0,($226|0),($229|0))|0);
  32434. $232 = tempRet0;
  32435. $233 = $6;
  32436. $234 = $233;
  32437. HEAP32[$234>>2] = $231;
  32438. $235 = (($233) + 4)|0;
  32439. $236 = $235;
  32440. HEAP32[$236>>2] = $232;
  32441. $$0232 = 1;$$0237 = 16121;$242 = $231;$243 = $232;
  32442. label = 66;
  32443. break L71;
  32444. } else {
  32445. $237 = $$1263$ & 2048;
  32446. $238 = ($237|0)==(0);
  32447. $239 = $$1263$ & 1;
  32448. $240 = ($239|0)==(0);
  32449. $$ = $240 ? 16121 : (16123);
  32450. $$$ = $238 ? $$ : (16122);
  32451. $241 = $$1263$ & 2049;
  32452. $narrow = ($241|0)!=(0);
  32453. $$284$ = $narrow&1;
  32454. $$0232 = $$284$;$$0237 = $$$;$242 = $226;$243 = $229;
  32455. label = 66;
  32456. break L71;
  32457. }
  32458. break;
  32459. }
  32460. case 117: {
  32461. $165 = $6;
  32462. $166 = $165;
  32463. $167 = HEAP32[$166>>2]|0;
  32464. $168 = (($165) + 4)|0;
  32465. $169 = $168;
  32466. $170 = HEAP32[$169>>2]|0;
  32467. $$0232 = 0;$$0237 = 16121;$242 = $167;$243 = $170;
  32468. label = 66;
  32469. break;
  32470. }
  32471. case 99: {
  32472. $259 = $6;
  32473. $260 = $259;
  32474. $261 = HEAP32[$260>>2]|0;
  32475. $262 = (($259) + 4)|0;
  32476. $263 = $262;
  32477. $264 = HEAP32[$263>>2]|0;
  32478. $265 = $261&255;
  32479. HEAP8[$13>>0] = $265;
  32480. $$2 = $13;$$2234 = 0;$$2239 = 16121;$$2251 = $11;$$5 = 1;$$6268 = $164;
  32481. break;
  32482. }
  32483. case 109: {
  32484. $266 = (___errno_location()|0);
  32485. $267 = HEAP32[$266>>2]|0;
  32486. $268 = (_strerror($267)|0);
  32487. $$1 = $268;
  32488. label = 71;
  32489. break;
  32490. }
  32491. case 115: {
  32492. $269 = HEAP32[$6>>2]|0;
  32493. $270 = ($269|0)!=(0|0);
  32494. $271 = $270 ? $269 : 16131;
  32495. $$1 = $271;
  32496. label = 71;
  32497. break;
  32498. }
  32499. case 67: {
  32500. $278 = $6;
  32501. $279 = $278;
  32502. $280 = HEAP32[$279>>2]|0;
  32503. $281 = (($278) + 4)|0;
  32504. $282 = $281;
  32505. $283 = HEAP32[$282>>2]|0;
  32506. HEAP32[$8>>2] = $280;
  32507. HEAP32[$14>>2] = 0;
  32508. HEAP32[$6>>2] = $8;
  32509. $$4258355 = -1;$331 = $8;
  32510. label = 75;
  32511. break;
  32512. }
  32513. case 83: {
  32514. $$pre349 = HEAP32[$6>>2]|0;
  32515. $284 = ($$0254|0)==(0);
  32516. if ($284) {
  32517. _pad_674($0,32,$$1260,0,$$1263$);
  32518. $$0240$lcssa357 = 0;
  32519. label = 84;
  32520. } else {
  32521. $$4258355 = $$0254;$331 = $$pre349;
  32522. label = 75;
  32523. }
  32524. break;
  32525. }
  32526. case 65: case 71: case 70: case 69: case 97: case 103: case 102: case 101: {
  32527. $306 = +HEAPF64[$6>>3];
  32528. $307 = (_fmt_fp($0,$306,$$1260,$$0254,$$1263$,$$0235)|0);
  32529. $$0243 = $307;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  32530. continue L1;
  32531. break;
  32532. }
  32533. default: {
  32534. $$2 = $21;$$2234 = 0;$$2239 = 16121;$$2251 = $11;$$5 = $$0254;$$6268 = $$1263$;
  32535. }
  32536. }
  32537. } while(0);
  32538. L95: do {
  32539. if ((label|0) == 61) {
  32540. label = 0;
  32541. $195 = $6;
  32542. $196 = $195;
  32543. $197 = HEAP32[$196>>2]|0;
  32544. $198 = (($195) + 4)|0;
  32545. $199 = $198;
  32546. $200 = HEAP32[$199>>2]|0;
  32547. $201 = $$1236 & 32;
  32548. $202 = (_fmt_x($197,$200,$11,$201)|0);
  32549. $203 = ($197|0)==(0);
  32550. $204 = ($200|0)==(0);
  32551. $205 = $203 & $204;
  32552. $206 = $$3265 & 8;
  32553. $207 = ($206|0)==(0);
  32554. $or$cond283 = $207 | $205;
  32555. $208 = $$1236 >> 4;
  32556. $209 = (16121 + ($208)|0);
  32557. $$289 = $or$cond283 ? 16121 : $209;
  32558. $$290 = $or$cond283 ? 0 : 2;
  32559. $$0228 = $202;$$1233 = $$290;$$1238 = $$289;$$2256 = $$1255;$$4266 = $$3265;$248 = $197;$250 = $200;
  32560. label = 67;
  32561. }
  32562. else if ((label|0) == 66) {
  32563. label = 0;
  32564. $244 = (_fmt_u($242,$243,$11)|0);
  32565. $$0228 = $244;$$1233 = $$0232;$$1238 = $$0237;$$2256 = $$0254;$$4266 = $$1263$;$248 = $242;$250 = $243;
  32566. label = 67;
  32567. }
  32568. else if ((label|0) == 71) {
  32569. label = 0;
  32570. $272 = (_memchr($$1,0,$$0254)|0);
  32571. $273 = ($272|0)==(0|0);
  32572. $274 = $272;
  32573. $275 = $$1;
  32574. $276 = (($274) - ($275))|0;
  32575. $277 = (($$1) + ($$0254)|0);
  32576. $$3257 = $273 ? $$0254 : $276;
  32577. $$1250 = $273 ? $277 : $272;
  32578. $$2 = $$1;$$2234 = 0;$$2239 = 16121;$$2251 = $$1250;$$5 = $$3257;$$6268 = $164;
  32579. }
  32580. else if ((label|0) == 75) {
  32581. label = 0;
  32582. $$0229322 = $331;$$0240321 = 0;$$1244320 = 0;
  32583. while(1) {
  32584. $285 = HEAP32[$$0229322>>2]|0;
  32585. $286 = ($285|0)==(0);
  32586. if ($286) {
  32587. $$0240$lcssa = $$0240321;$$2245 = $$1244320;
  32588. break;
  32589. }
  32590. $287 = (_wctomb($9,$285)|0);
  32591. $288 = ($287|0)<(0);
  32592. $289 = (($$4258355) - ($$0240321))|0;
  32593. $290 = ($287>>>0)>($289>>>0);
  32594. $or$cond286 = $288 | $290;
  32595. if ($or$cond286) {
  32596. $$0240$lcssa = $$0240321;$$2245 = $287;
  32597. break;
  32598. }
  32599. $291 = ((($$0229322)) + 4|0);
  32600. $292 = (($287) + ($$0240321))|0;
  32601. $293 = ($$4258355>>>0)>($292>>>0);
  32602. if ($293) {
  32603. $$0229322 = $291;$$0240321 = $292;$$1244320 = $287;
  32604. } else {
  32605. $$0240$lcssa = $292;$$2245 = $287;
  32606. break;
  32607. }
  32608. }
  32609. $294 = ($$2245|0)<(0);
  32610. if ($294) {
  32611. $$0 = -1;
  32612. break L1;
  32613. }
  32614. _pad_674($0,32,$$1260,$$0240$lcssa,$$1263$);
  32615. $295 = ($$0240$lcssa|0)==(0);
  32616. if ($295) {
  32617. $$0240$lcssa357 = 0;
  32618. label = 84;
  32619. } else {
  32620. $$1230333 = $331;$$1241332 = 0;
  32621. while(1) {
  32622. $296 = HEAP32[$$1230333>>2]|0;
  32623. $297 = ($296|0)==(0);
  32624. if ($297) {
  32625. $$0240$lcssa357 = $$0240$lcssa;
  32626. label = 84;
  32627. break L95;
  32628. }
  32629. $298 = (_wctomb($9,$296)|0);
  32630. $299 = (($298) + ($$1241332))|0;
  32631. $300 = ($299|0)>($$0240$lcssa|0);
  32632. if ($300) {
  32633. $$0240$lcssa357 = $$0240$lcssa;
  32634. label = 84;
  32635. break L95;
  32636. }
  32637. $301 = ((($$1230333)) + 4|0);
  32638. _out($0,$9,$298);
  32639. $302 = ($299>>>0)<($$0240$lcssa>>>0);
  32640. if ($302) {
  32641. $$1230333 = $301;$$1241332 = $299;
  32642. } else {
  32643. $$0240$lcssa357 = $$0240$lcssa;
  32644. label = 84;
  32645. break;
  32646. }
  32647. }
  32648. }
  32649. }
  32650. } while(0);
  32651. if ((label|0) == 67) {
  32652. label = 0;
  32653. $245 = ($$2256|0)>(-1);
  32654. $246 = $$4266 & -65537;
  32655. $$$4266 = $245 ? $246 : $$4266;
  32656. $247 = ($248|0)!=(0);
  32657. $249 = ($250|0)!=(0);
  32658. $251 = $247 | $249;
  32659. $252 = ($$2256|0)!=(0);
  32660. $or$cond = $252 | $251;
  32661. $253 = $$0228;
  32662. $254 = (($12) - ($253))|0;
  32663. $255 = $251 ^ 1;
  32664. $256 = $255&1;
  32665. $257 = (($256) + ($254))|0;
  32666. $258 = ($$2256|0)>($257|0);
  32667. $$2256$ = $258 ? $$2256 : $257;
  32668. $$2256$$$2256 = $or$cond ? $$2256$ : $$2256;
  32669. $$0228$ = $or$cond ? $$0228 : $11;
  32670. $$2 = $$0228$;$$2234 = $$1233;$$2239 = $$1238;$$2251 = $11;$$5 = $$2256$$$2256;$$6268 = $$$4266;
  32671. }
  32672. else if ((label|0) == 84) {
  32673. label = 0;
  32674. $303 = $$1263$ ^ 8192;
  32675. _pad_674($0,32,$$1260,$$0240$lcssa357,$303);
  32676. $304 = ($$1260|0)>($$0240$lcssa357|0);
  32677. $305 = $304 ? $$1260 : $$0240$lcssa357;
  32678. $$0243 = $305;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  32679. continue;
  32680. }
  32681. $308 = $$2251;
  32682. $309 = $$2;
  32683. $310 = (($308) - ($309))|0;
  32684. $311 = ($$5|0)<($310|0);
  32685. $$$5 = $311 ? $310 : $$5;
  32686. $312 = (($$$5) + ($$2234))|0;
  32687. $313 = ($$1260|0)<($312|0);
  32688. $$2261 = $313 ? $312 : $$1260;
  32689. _pad_674($0,32,$$2261,$312,$$6268);
  32690. _out($0,$$2239,$$2234);
  32691. $314 = $$6268 ^ 65536;
  32692. _pad_674($0,48,$$2261,$312,$314);
  32693. _pad_674($0,48,$$$5,$310,0);
  32694. _out($0,$$2,$310);
  32695. $315 = $$6268 ^ 8192;
  32696. _pad_674($0,32,$$2261,$312,$315);
  32697. $$0243 = $$2261;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  32698. }
  32699. L114: do {
  32700. if ((label|0) == 87) {
  32701. $316 = ($0|0)==(0|0);
  32702. if ($316) {
  32703. $317 = ($$0269|0)==(0);
  32704. if ($317) {
  32705. $$0 = 0;
  32706. } else {
  32707. $$2242305 = 1;
  32708. while(1) {
  32709. $318 = (($4) + ($$2242305<<2)|0);
  32710. $319 = HEAP32[$318>>2]|0;
  32711. $320 = ($319|0)==(0);
  32712. if ($320) {
  32713. $$3303 = $$2242305;
  32714. break;
  32715. }
  32716. $321 = (($3) + ($$2242305<<3)|0);
  32717. _pop_arg($321,$319,$2);
  32718. $322 = (($$2242305) + 1)|0;
  32719. $323 = ($322|0)<(10);
  32720. if ($323) {
  32721. $$2242305 = $322;
  32722. } else {
  32723. $$0 = 1;
  32724. break L114;
  32725. }
  32726. }
  32727. while(1) {
  32728. $326 = (($4) + ($$3303<<2)|0);
  32729. $327 = HEAP32[$326>>2]|0;
  32730. $328 = ($327|0)==(0);
  32731. $325 = (($$3303) + 1)|0;
  32732. if (!($328)) {
  32733. $$0 = -1;
  32734. break L114;
  32735. }
  32736. $324 = ($325|0)<(10);
  32737. if ($324) {
  32738. $$3303 = $325;
  32739. } else {
  32740. $$0 = 1;
  32741. break;
  32742. }
  32743. }
  32744. }
  32745. } else {
  32746. $$0 = $$1248;
  32747. }
  32748. }
  32749. } while(0);
  32750. STACKTOP = sp;return ($$0|0);
  32751. }
  32752. function ___lockfile($0) {
  32753. $0 = $0|0;
  32754. var label = 0, sp = 0;
  32755. sp = STACKTOP;
  32756. return 0;
  32757. }
  32758. function ___unlockfile($0) {
  32759. $0 = $0|0;
  32760. var label = 0, sp = 0;
  32761. sp = STACKTOP;
  32762. return;
  32763. }
  32764. function _out($0,$1,$2) {
  32765. $0 = $0|0;
  32766. $1 = $1|0;
  32767. $2 = $2|0;
  32768. var $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  32769. sp = STACKTOP;
  32770. $3 = HEAP32[$0>>2]|0;
  32771. $4 = $3 & 32;
  32772. $5 = ($4|0)==(0);
  32773. if ($5) {
  32774. (___fwritex($1,$2,$0)|0);
  32775. }
  32776. return;
  32777. }
  32778. function _getint($0) {
  32779. $0 = $0|0;
  32780. var $$0$lcssa = 0, $$06 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $isdigit = 0, $isdigit5 = 0, $isdigittmp = 0, $isdigittmp4 = 0, $isdigittmp7 = 0, label = 0, sp = 0;
  32781. sp = STACKTOP;
  32782. $1 = HEAP32[$0>>2]|0;
  32783. $2 = HEAP8[$1>>0]|0;
  32784. $3 = $2 << 24 >> 24;
  32785. $isdigittmp4 = (($3) + -48)|0;
  32786. $isdigit5 = ($isdigittmp4>>>0)<(10);
  32787. if ($isdigit5) {
  32788. $$06 = 0;$7 = $1;$isdigittmp7 = $isdigittmp4;
  32789. while(1) {
  32790. $4 = ($$06*10)|0;
  32791. $5 = (($isdigittmp7) + ($4))|0;
  32792. $6 = ((($7)) + 1|0);
  32793. HEAP32[$0>>2] = $6;
  32794. $8 = HEAP8[$6>>0]|0;
  32795. $9 = $8 << 24 >> 24;
  32796. $isdigittmp = (($9) + -48)|0;
  32797. $isdigit = ($isdigittmp>>>0)<(10);
  32798. if ($isdigit) {
  32799. $$06 = $5;$7 = $6;$isdigittmp7 = $isdigittmp;
  32800. } else {
  32801. $$0$lcssa = $5;
  32802. break;
  32803. }
  32804. }
  32805. } else {
  32806. $$0$lcssa = 0;
  32807. }
  32808. return ($$0$lcssa|0);
  32809. }
  32810. function _pop_arg($0,$1,$2) {
  32811. $0 = $0|0;
  32812. $1 = $1|0;
  32813. $2 = $2|0;
  32814. var $$mask = 0, $$mask31 = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0.0, $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0, $114 = 0, $115 = 0;
  32815. var $116 = 0.0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0;
  32816. var $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0;
  32817. var $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0;
  32818. var $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0;
  32819. var $85 = 0, $86 = 0, $87 = 0, $88 = 0, $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $arglist_current = 0, $arglist_current11 = 0, $arglist_current14 = 0, $arglist_current17 = 0;
  32820. var $arglist_current2 = 0, $arglist_current20 = 0, $arglist_current23 = 0, $arglist_current26 = 0, $arglist_current5 = 0, $arglist_current8 = 0, $arglist_next = 0, $arglist_next12 = 0, $arglist_next15 = 0, $arglist_next18 = 0, $arglist_next21 = 0, $arglist_next24 = 0, $arglist_next27 = 0, $arglist_next3 = 0, $arglist_next6 = 0, $arglist_next9 = 0, $expanded = 0, $expanded28 = 0, $expanded30 = 0, $expanded31 = 0;
  32821. var $expanded32 = 0, $expanded34 = 0, $expanded35 = 0, $expanded37 = 0, $expanded38 = 0, $expanded39 = 0, $expanded41 = 0, $expanded42 = 0, $expanded44 = 0, $expanded45 = 0, $expanded46 = 0, $expanded48 = 0, $expanded49 = 0, $expanded51 = 0, $expanded52 = 0, $expanded53 = 0, $expanded55 = 0, $expanded56 = 0, $expanded58 = 0, $expanded59 = 0;
  32822. var $expanded60 = 0, $expanded62 = 0, $expanded63 = 0, $expanded65 = 0, $expanded66 = 0, $expanded67 = 0, $expanded69 = 0, $expanded70 = 0, $expanded72 = 0, $expanded73 = 0, $expanded74 = 0, $expanded76 = 0, $expanded77 = 0, $expanded79 = 0, $expanded80 = 0, $expanded81 = 0, $expanded83 = 0, $expanded84 = 0, $expanded86 = 0, $expanded87 = 0;
  32823. var $expanded88 = 0, $expanded90 = 0, $expanded91 = 0, $expanded93 = 0, $expanded94 = 0, $expanded95 = 0, label = 0, sp = 0;
  32824. sp = STACKTOP;
  32825. $3 = ($1>>>0)>(20);
  32826. L1: do {
  32827. if (!($3)) {
  32828. do {
  32829. switch ($1|0) {
  32830. case 9: {
  32831. $arglist_current = HEAP32[$2>>2]|0;
  32832. $4 = $arglist_current;
  32833. $5 = ((0) + 4|0);
  32834. $expanded28 = $5;
  32835. $expanded = (($expanded28) - 1)|0;
  32836. $6 = (($4) + ($expanded))|0;
  32837. $7 = ((0) + 4|0);
  32838. $expanded32 = $7;
  32839. $expanded31 = (($expanded32) - 1)|0;
  32840. $expanded30 = $expanded31 ^ -1;
  32841. $8 = $6 & $expanded30;
  32842. $9 = $8;
  32843. $10 = HEAP32[$9>>2]|0;
  32844. $arglist_next = ((($9)) + 4|0);
  32845. HEAP32[$2>>2] = $arglist_next;
  32846. HEAP32[$0>>2] = $10;
  32847. break L1;
  32848. break;
  32849. }
  32850. case 10: {
  32851. $arglist_current2 = HEAP32[$2>>2]|0;
  32852. $11 = $arglist_current2;
  32853. $12 = ((0) + 4|0);
  32854. $expanded35 = $12;
  32855. $expanded34 = (($expanded35) - 1)|0;
  32856. $13 = (($11) + ($expanded34))|0;
  32857. $14 = ((0) + 4|0);
  32858. $expanded39 = $14;
  32859. $expanded38 = (($expanded39) - 1)|0;
  32860. $expanded37 = $expanded38 ^ -1;
  32861. $15 = $13 & $expanded37;
  32862. $16 = $15;
  32863. $17 = HEAP32[$16>>2]|0;
  32864. $arglist_next3 = ((($16)) + 4|0);
  32865. HEAP32[$2>>2] = $arglist_next3;
  32866. $18 = ($17|0)<(0);
  32867. $19 = $18 << 31 >> 31;
  32868. $20 = $0;
  32869. $21 = $20;
  32870. HEAP32[$21>>2] = $17;
  32871. $22 = (($20) + 4)|0;
  32872. $23 = $22;
  32873. HEAP32[$23>>2] = $19;
  32874. break L1;
  32875. break;
  32876. }
  32877. case 11: {
  32878. $arglist_current5 = HEAP32[$2>>2]|0;
  32879. $24 = $arglist_current5;
  32880. $25 = ((0) + 4|0);
  32881. $expanded42 = $25;
  32882. $expanded41 = (($expanded42) - 1)|0;
  32883. $26 = (($24) + ($expanded41))|0;
  32884. $27 = ((0) + 4|0);
  32885. $expanded46 = $27;
  32886. $expanded45 = (($expanded46) - 1)|0;
  32887. $expanded44 = $expanded45 ^ -1;
  32888. $28 = $26 & $expanded44;
  32889. $29 = $28;
  32890. $30 = HEAP32[$29>>2]|0;
  32891. $arglist_next6 = ((($29)) + 4|0);
  32892. HEAP32[$2>>2] = $arglist_next6;
  32893. $31 = $0;
  32894. $32 = $31;
  32895. HEAP32[$32>>2] = $30;
  32896. $33 = (($31) + 4)|0;
  32897. $34 = $33;
  32898. HEAP32[$34>>2] = 0;
  32899. break L1;
  32900. break;
  32901. }
  32902. case 12: {
  32903. $arglist_current8 = HEAP32[$2>>2]|0;
  32904. $35 = $arglist_current8;
  32905. $36 = ((0) + 8|0);
  32906. $expanded49 = $36;
  32907. $expanded48 = (($expanded49) - 1)|0;
  32908. $37 = (($35) + ($expanded48))|0;
  32909. $38 = ((0) + 8|0);
  32910. $expanded53 = $38;
  32911. $expanded52 = (($expanded53) - 1)|0;
  32912. $expanded51 = $expanded52 ^ -1;
  32913. $39 = $37 & $expanded51;
  32914. $40 = $39;
  32915. $41 = $40;
  32916. $42 = $41;
  32917. $43 = HEAP32[$42>>2]|0;
  32918. $44 = (($41) + 4)|0;
  32919. $45 = $44;
  32920. $46 = HEAP32[$45>>2]|0;
  32921. $arglist_next9 = ((($40)) + 8|0);
  32922. HEAP32[$2>>2] = $arglist_next9;
  32923. $47 = $0;
  32924. $48 = $47;
  32925. HEAP32[$48>>2] = $43;
  32926. $49 = (($47) + 4)|0;
  32927. $50 = $49;
  32928. HEAP32[$50>>2] = $46;
  32929. break L1;
  32930. break;
  32931. }
  32932. case 13: {
  32933. $arglist_current11 = HEAP32[$2>>2]|0;
  32934. $51 = $arglist_current11;
  32935. $52 = ((0) + 4|0);
  32936. $expanded56 = $52;
  32937. $expanded55 = (($expanded56) - 1)|0;
  32938. $53 = (($51) + ($expanded55))|0;
  32939. $54 = ((0) + 4|0);
  32940. $expanded60 = $54;
  32941. $expanded59 = (($expanded60) - 1)|0;
  32942. $expanded58 = $expanded59 ^ -1;
  32943. $55 = $53 & $expanded58;
  32944. $56 = $55;
  32945. $57 = HEAP32[$56>>2]|0;
  32946. $arglist_next12 = ((($56)) + 4|0);
  32947. HEAP32[$2>>2] = $arglist_next12;
  32948. $58 = $57&65535;
  32949. $59 = $58 << 16 >> 16;
  32950. $60 = ($59|0)<(0);
  32951. $61 = $60 << 31 >> 31;
  32952. $62 = $0;
  32953. $63 = $62;
  32954. HEAP32[$63>>2] = $59;
  32955. $64 = (($62) + 4)|0;
  32956. $65 = $64;
  32957. HEAP32[$65>>2] = $61;
  32958. break L1;
  32959. break;
  32960. }
  32961. case 14: {
  32962. $arglist_current14 = HEAP32[$2>>2]|0;
  32963. $66 = $arglist_current14;
  32964. $67 = ((0) + 4|0);
  32965. $expanded63 = $67;
  32966. $expanded62 = (($expanded63) - 1)|0;
  32967. $68 = (($66) + ($expanded62))|0;
  32968. $69 = ((0) + 4|0);
  32969. $expanded67 = $69;
  32970. $expanded66 = (($expanded67) - 1)|0;
  32971. $expanded65 = $expanded66 ^ -1;
  32972. $70 = $68 & $expanded65;
  32973. $71 = $70;
  32974. $72 = HEAP32[$71>>2]|0;
  32975. $arglist_next15 = ((($71)) + 4|0);
  32976. HEAP32[$2>>2] = $arglist_next15;
  32977. $$mask31 = $72 & 65535;
  32978. $73 = $0;
  32979. $74 = $73;
  32980. HEAP32[$74>>2] = $$mask31;
  32981. $75 = (($73) + 4)|0;
  32982. $76 = $75;
  32983. HEAP32[$76>>2] = 0;
  32984. break L1;
  32985. break;
  32986. }
  32987. case 15: {
  32988. $arglist_current17 = HEAP32[$2>>2]|0;
  32989. $77 = $arglist_current17;
  32990. $78 = ((0) + 4|0);
  32991. $expanded70 = $78;
  32992. $expanded69 = (($expanded70) - 1)|0;
  32993. $79 = (($77) + ($expanded69))|0;
  32994. $80 = ((0) + 4|0);
  32995. $expanded74 = $80;
  32996. $expanded73 = (($expanded74) - 1)|0;
  32997. $expanded72 = $expanded73 ^ -1;
  32998. $81 = $79 & $expanded72;
  32999. $82 = $81;
  33000. $83 = HEAP32[$82>>2]|0;
  33001. $arglist_next18 = ((($82)) + 4|0);
  33002. HEAP32[$2>>2] = $arglist_next18;
  33003. $84 = $83&255;
  33004. $85 = $84 << 24 >> 24;
  33005. $86 = ($85|0)<(0);
  33006. $87 = $86 << 31 >> 31;
  33007. $88 = $0;
  33008. $89 = $88;
  33009. HEAP32[$89>>2] = $85;
  33010. $90 = (($88) + 4)|0;
  33011. $91 = $90;
  33012. HEAP32[$91>>2] = $87;
  33013. break L1;
  33014. break;
  33015. }
  33016. case 16: {
  33017. $arglist_current20 = HEAP32[$2>>2]|0;
  33018. $92 = $arglist_current20;
  33019. $93 = ((0) + 4|0);
  33020. $expanded77 = $93;
  33021. $expanded76 = (($expanded77) - 1)|0;
  33022. $94 = (($92) + ($expanded76))|0;
  33023. $95 = ((0) + 4|0);
  33024. $expanded81 = $95;
  33025. $expanded80 = (($expanded81) - 1)|0;
  33026. $expanded79 = $expanded80 ^ -1;
  33027. $96 = $94 & $expanded79;
  33028. $97 = $96;
  33029. $98 = HEAP32[$97>>2]|0;
  33030. $arglist_next21 = ((($97)) + 4|0);
  33031. HEAP32[$2>>2] = $arglist_next21;
  33032. $$mask = $98 & 255;
  33033. $99 = $0;
  33034. $100 = $99;
  33035. HEAP32[$100>>2] = $$mask;
  33036. $101 = (($99) + 4)|0;
  33037. $102 = $101;
  33038. HEAP32[$102>>2] = 0;
  33039. break L1;
  33040. break;
  33041. }
  33042. case 17: {
  33043. $arglist_current23 = HEAP32[$2>>2]|0;
  33044. $103 = $arglist_current23;
  33045. $104 = ((0) + 8|0);
  33046. $expanded84 = $104;
  33047. $expanded83 = (($expanded84) - 1)|0;
  33048. $105 = (($103) + ($expanded83))|0;
  33049. $106 = ((0) + 8|0);
  33050. $expanded88 = $106;
  33051. $expanded87 = (($expanded88) - 1)|0;
  33052. $expanded86 = $expanded87 ^ -1;
  33053. $107 = $105 & $expanded86;
  33054. $108 = $107;
  33055. $109 = +HEAPF64[$108>>3];
  33056. $arglist_next24 = ((($108)) + 8|0);
  33057. HEAP32[$2>>2] = $arglist_next24;
  33058. HEAPF64[$0>>3] = $109;
  33059. break L1;
  33060. break;
  33061. }
  33062. case 18: {
  33063. $arglist_current26 = HEAP32[$2>>2]|0;
  33064. $110 = $arglist_current26;
  33065. $111 = ((0) + 8|0);
  33066. $expanded91 = $111;
  33067. $expanded90 = (($expanded91) - 1)|0;
  33068. $112 = (($110) + ($expanded90))|0;
  33069. $113 = ((0) + 8|0);
  33070. $expanded95 = $113;
  33071. $expanded94 = (($expanded95) - 1)|0;
  33072. $expanded93 = $expanded94 ^ -1;
  33073. $114 = $112 & $expanded93;
  33074. $115 = $114;
  33075. $116 = +HEAPF64[$115>>3];
  33076. $arglist_next27 = ((($115)) + 8|0);
  33077. HEAP32[$2>>2] = $arglist_next27;
  33078. HEAPF64[$0>>3] = $116;
  33079. break L1;
  33080. break;
  33081. }
  33082. default: {
  33083. break L1;
  33084. }
  33085. }
  33086. } while(0);
  33087. }
  33088. } while(0);
  33089. return;
  33090. }
  33091. function _fmt_x($0,$1,$2,$3) {
  33092. $0 = $0|0;
  33093. $1 = $1|0;
  33094. $2 = $2|0;
  33095. $3 = $3|0;
  33096. var $$05$lcssa = 0, $$056 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0;
  33097. var sp = 0;
  33098. sp = STACKTOP;
  33099. $4 = ($0|0)==(0);
  33100. $5 = ($1|0)==(0);
  33101. $6 = $4 & $5;
  33102. if ($6) {
  33103. $$05$lcssa = $2;
  33104. } else {
  33105. $$056 = $2;$15 = $1;$8 = $0;
  33106. while(1) {
  33107. $7 = $8 & 15;
  33108. $9 = (16169 + ($7)|0);
  33109. $10 = HEAP8[$9>>0]|0;
  33110. $11 = $10&255;
  33111. $12 = $11 | $3;
  33112. $13 = $12&255;
  33113. $14 = ((($$056)) + -1|0);
  33114. HEAP8[$14>>0] = $13;
  33115. $16 = (_bitshift64Lshr(($8|0),($15|0),4)|0);
  33116. $17 = tempRet0;
  33117. $18 = ($16|0)==(0);
  33118. $19 = ($17|0)==(0);
  33119. $20 = $18 & $19;
  33120. if ($20) {
  33121. $$05$lcssa = $14;
  33122. break;
  33123. } else {
  33124. $$056 = $14;$15 = $17;$8 = $16;
  33125. }
  33126. }
  33127. }
  33128. return ($$05$lcssa|0);
  33129. }
  33130. function _fmt_o($0,$1,$2) {
  33131. $0 = $0|0;
  33132. $1 = $1|0;
  33133. $2 = $2|0;
  33134. var $$0$lcssa = 0, $$06 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  33135. sp = STACKTOP;
  33136. $3 = ($0|0)==(0);
  33137. $4 = ($1|0)==(0);
  33138. $5 = $3 & $4;
  33139. if ($5) {
  33140. $$0$lcssa = $2;
  33141. } else {
  33142. $$06 = $2;$11 = $1;$7 = $0;
  33143. while(1) {
  33144. $6 = $7&255;
  33145. $8 = $6 & 7;
  33146. $9 = $8 | 48;
  33147. $10 = ((($$06)) + -1|0);
  33148. HEAP8[$10>>0] = $9;
  33149. $12 = (_bitshift64Lshr(($7|0),($11|0),3)|0);
  33150. $13 = tempRet0;
  33151. $14 = ($12|0)==(0);
  33152. $15 = ($13|0)==(0);
  33153. $16 = $14 & $15;
  33154. if ($16) {
  33155. $$0$lcssa = $10;
  33156. break;
  33157. } else {
  33158. $$06 = $10;$11 = $13;$7 = $12;
  33159. }
  33160. }
  33161. }
  33162. return ($$0$lcssa|0);
  33163. }
  33164. function _fmt_u($0,$1,$2) {
  33165. $0 = $0|0;
  33166. $1 = $1|0;
  33167. $2 = $2|0;
  33168. var $$010$lcssa$off0 = 0, $$012 = 0, $$09$lcssa = 0, $$0914 = 0, $$1$lcssa = 0, $$111 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0;
  33169. var $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  33170. sp = STACKTOP;
  33171. $3 = ($1>>>0)>(0);
  33172. $4 = ($0>>>0)>(4294967295);
  33173. $5 = ($1|0)==(0);
  33174. $6 = $5 & $4;
  33175. $7 = $3 | $6;
  33176. if ($7) {
  33177. $$0914 = $2;$8 = $0;$9 = $1;
  33178. while(1) {
  33179. $10 = (___uremdi3(($8|0),($9|0),10,0)|0);
  33180. $11 = tempRet0;
  33181. $12 = $10&255;
  33182. $13 = $12 | 48;
  33183. $14 = ((($$0914)) + -1|0);
  33184. HEAP8[$14>>0] = $13;
  33185. $15 = (___udivdi3(($8|0),($9|0),10,0)|0);
  33186. $16 = tempRet0;
  33187. $17 = ($9>>>0)>(9);
  33188. $18 = ($8>>>0)>(4294967295);
  33189. $19 = ($9|0)==(9);
  33190. $20 = $19 & $18;
  33191. $21 = $17 | $20;
  33192. if ($21) {
  33193. $$0914 = $14;$8 = $15;$9 = $16;
  33194. } else {
  33195. break;
  33196. }
  33197. }
  33198. $$010$lcssa$off0 = $15;$$09$lcssa = $14;
  33199. } else {
  33200. $$010$lcssa$off0 = $0;$$09$lcssa = $2;
  33201. }
  33202. $22 = ($$010$lcssa$off0|0)==(0);
  33203. if ($22) {
  33204. $$1$lcssa = $$09$lcssa;
  33205. } else {
  33206. $$012 = $$010$lcssa$off0;$$111 = $$09$lcssa;
  33207. while(1) {
  33208. $23 = (($$012>>>0) % 10)&-1;
  33209. $24 = $23 | 48;
  33210. $25 = $24&255;
  33211. $26 = ((($$111)) + -1|0);
  33212. HEAP8[$26>>0] = $25;
  33213. $27 = (($$012>>>0) / 10)&-1;
  33214. $28 = ($$012>>>0)<(10);
  33215. if ($28) {
  33216. $$1$lcssa = $26;
  33217. break;
  33218. } else {
  33219. $$012 = $27;$$111 = $26;
  33220. }
  33221. }
  33222. }
  33223. return ($$1$lcssa|0);
  33224. }
  33225. function _strerror($0) {
  33226. $0 = $0|0;
  33227. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, label = 0, sp = 0;
  33228. sp = STACKTOP;
  33229. $1 = (___pthread_self_105()|0);
  33230. $2 = ((($1)) + 188|0);
  33231. $3 = HEAP32[$2>>2]|0;
  33232. $4 = (___strerror_l($0,$3)|0);
  33233. return ($4|0);
  33234. }
  33235. function _memchr($0,$1,$2) {
  33236. $0 = $0|0;
  33237. $1 = $1|0;
  33238. $2 = $2|0;
  33239. var $$0$lcssa = 0, $$035$lcssa = 0, $$035$lcssa65 = 0, $$03555 = 0, $$036$lcssa = 0, $$036$lcssa64 = 0, $$03654 = 0, $$046 = 0, $$137$lcssa = 0, $$13745 = 0, $$140 = 0, $$2 = 0, $$23839 = 0, $$3 = 0, $$lcssa = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0;
  33240. var $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0;
  33241. var $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, $or$cond53 = 0, label = 0, sp = 0;
  33242. sp = STACKTOP;
  33243. $3 = $1 & 255;
  33244. $4 = $0;
  33245. $5 = $4 & 3;
  33246. $6 = ($5|0)!=(0);
  33247. $7 = ($2|0)!=(0);
  33248. $or$cond53 = $7 & $6;
  33249. L1: do {
  33250. if ($or$cond53) {
  33251. $8 = $1&255;
  33252. $$03555 = $0;$$03654 = $2;
  33253. while(1) {
  33254. $9 = HEAP8[$$03555>>0]|0;
  33255. $10 = ($9<<24>>24)==($8<<24>>24);
  33256. if ($10) {
  33257. $$035$lcssa65 = $$03555;$$036$lcssa64 = $$03654;
  33258. label = 6;
  33259. break L1;
  33260. }
  33261. $11 = ((($$03555)) + 1|0);
  33262. $12 = (($$03654) + -1)|0;
  33263. $13 = $11;
  33264. $14 = $13 & 3;
  33265. $15 = ($14|0)!=(0);
  33266. $16 = ($12|0)!=(0);
  33267. $or$cond = $16 & $15;
  33268. if ($or$cond) {
  33269. $$03555 = $11;$$03654 = $12;
  33270. } else {
  33271. $$035$lcssa = $11;$$036$lcssa = $12;$$lcssa = $16;
  33272. label = 5;
  33273. break;
  33274. }
  33275. }
  33276. } else {
  33277. $$035$lcssa = $0;$$036$lcssa = $2;$$lcssa = $7;
  33278. label = 5;
  33279. }
  33280. } while(0);
  33281. if ((label|0) == 5) {
  33282. if ($$lcssa) {
  33283. $$035$lcssa65 = $$035$lcssa;$$036$lcssa64 = $$036$lcssa;
  33284. label = 6;
  33285. } else {
  33286. $$2 = $$035$lcssa;$$3 = 0;
  33287. }
  33288. }
  33289. L8: do {
  33290. if ((label|0) == 6) {
  33291. $17 = HEAP8[$$035$lcssa65>>0]|0;
  33292. $18 = $1&255;
  33293. $19 = ($17<<24>>24)==($18<<24>>24);
  33294. if ($19) {
  33295. $$2 = $$035$lcssa65;$$3 = $$036$lcssa64;
  33296. } else {
  33297. $20 = Math_imul($3, 16843009)|0;
  33298. $21 = ($$036$lcssa64>>>0)>(3);
  33299. L11: do {
  33300. if ($21) {
  33301. $$046 = $$035$lcssa65;$$13745 = $$036$lcssa64;
  33302. while(1) {
  33303. $22 = HEAP32[$$046>>2]|0;
  33304. $23 = $22 ^ $20;
  33305. $24 = (($23) + -16843009)|0;
  33306. $25 = $23 & -2139062144;
  33307. $26 = $25 ^ -2139062144;
  33308. $27 = $26 & $24;
  33309. $28 = ($27|0)==(0);
  33310. if (!($28)) {
  33311. break;
  33312. }
  33313. $29 = ((($$046)) + 4|0);
  33314. $30 = (($$13745) + -4)|0;
  33315. $31 = ($30>>>0)>(3);
  33316. if ($31) {
  33317. $$046 = $29;$$13745 = $30;
  33318. } else {
  33319. $$0$lcssa = $29;$$137$lcssa = $30;
  33320. label = 11;
  33321. break L11;
  33322. }
  33323. }
  33324. $$140 = $$046;$$23839 = $$13745;
  33325. } else {
  33326. $$0$lcssa = $$035$lcssa65;$$137$lcssa = $$036$lcssa64;
  33327. label = 11;
  33328. }
  33329. } while(0);
  33330. if ((label|0) == 11) {
  33331. $32 = ($$137$lcssa|0)==(0);
  33332. if ($32) {
  33333. $$2 = $$0$lcssa;$$3 = 0;
  33334. break;
  33335. } else {
  33336. $$140 = $$0$lcssa;$$23839 = $$137$lcssa;
  33337. }
  33338. }
  33339. while(1) {
  33340. $33 = HEAP8[$$140>>0]|0;
  33341. $34 = ($33<<24>>24)==($18<<24>>24);
  33342. if ($34) {
  33343. $$2 = $$140;$$3 = $$23839;
  33344. break L8;
  33345. }
  33346. $35 = ((($$140)) + 1|0);
  33347. $36 = (($$23839) + -1)|0;
  33348. $37 = ($36|0)==(0);
  33349. if ($37) {
  33350. $$2 = $35;$$3 = 0;
  33351. break;
  33352. } else {
  33353. $$140 = $35;$$23839 = $36;
  33354. }
  33355. }
  33356. }
  33357. }
  33358. } while(0);
  33359. $38 = ($$3|0)!=(0);
  33360. $39 = $38 ? $$2 : 0;
  33361. return ($39|0);
  33362. }
  33363. function _pad_674($0,$1,$2,$3,$4) {
  33364. $0 = $0|0;
  33365. $1 = $1|0;
  33366. $2 = $2|0;
  33367. $3 = $3|0;
  33368. $4 = $4|0;
  33369. var $$0$lcssa = 0, $$011 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, label = 0, sp = 0;
  33370. sp = STACKTOP;
  33371. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  33372. $5 = sp;
  33373. $6 = $4 & 73728;
  33374. $7 = ($6|0)==(0);
  33375. $8 = ($2|0)>($3|0);
  33376. $or$cond = $8 & $7;
  33377. if ($or$cond) {
  33378. $9 = (($2) - ($3))|0;
  33379. $10 = ($9>>>0)<(256);
  33380. $11 = $10 ? $9 : 256;
  33381. _memset(($5|0),($1|0),($11|0))|0;
  33382. $12 = ($9>>>0)>(255);
  33383. if ($12) {
  33384. $13 = (($2) - ($3))|0;
  33385. $$011 = $9;
  33386. while(1) {
  33387. _out($0,$5,256);
  33388. $14 = (($$011) + -256)|0;
  33389. $15 = ($14>>>0)>(255);
  33390. if ($15) {
  33391. $$011 = $14;
  33392. } else {
  33393. break;
  33394. }
  33395. }
  33396. $16 = $13 & 255;
  33397. $$0$lcssa = $16;
  33398. } else {
  33399. $$0$lcssa = $9;
  33400. }
  33401. _out($0,$5,$$0$lcssa);
  33402. }
  33403. STACKTOP = sp;return;
  33404. }
  33405. function _wctomb($0,$1) {
  33406. $0 = $0|0;
  33407. $1 = $1|0;
  33408. var $$0 = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  33409. sp = STACKTOP;
  33410. $2 = ($0|0)==(0|0);
  33411. if ($2) {
  33412. $$0 = 0;
  33413. } else {
  33414. $3 = (_wcrtomb($0,$1,0)|0);
  33415. $$0 = $3;
  33416. }
  33417. return ($$0|0);
  33418. }
  33419. function _fmt_fp($0,$1,$2,$3,$4,$5) {
  33420. $0 = $0|0;
  33421. $1 = +$1;
  33422. $2 = $2|0;
  33423. $3 = $3|0;
  33424. $4 = $4|0;
  33425. $5 = $5|0;
  33426. var $$ = 0, $$$ = 0, $$$$559 = 0.0, $$$3484 = 0, $$$3484691 = 0, $$$3484692 = 0, $$$3501 = 0, $$$4502 = 0, $$$542 = 0.0, $$$559 = 0.0, $$0 = 0, $$0463$lcssa = 0, $$0463584 = 0, $$0464594 = 0, $$0471 = 0.0, $$0479 = 0, $$0487642 = 0, $$0488 = 0, $$0488653 = 0, $$0488655 = 0;
  33427. var $$0496$$9 = 0, $$0497654 = 0, $$0498 = 0, $$0509582 = 0.0, $$0510 = 0, $$0511 = 0, $$0514637 = 0, $$0520 = 0, $$0521 = 0, $$0521$ = 0, $$0523 = 0, $$0525 = 0, $$0527 = 0, $$0527629 = 0, $$0527631 = 0, $$0530636 = 0, $$1465 = 0, $$1467 = 0.0, $$1469 = 0.0, $$1472 = 0.0;
  33428. var $$1480 = 0, $$1482$lcssa = 0, $$1482661 = 0, $$1489641 = 0, $$1499$lcssa = 0, $$1499660 = 0, $$1508583 = 0, $$1512$lcssa = 0, $$1512607 = 0, $$1515 = 0, $$1524 = 0, $$1526 = 0, $$1528614 = 0, $$1531$lcssa = 0, $$1531630 = 0, $$1598 = 0, $$2 = 0, $$2473 = 0.0, $$2476 = 0, $$2476$$547 = 0;
  33429. var $$2476$$549 = 0, $$2483$ph = 0, $$2500 = 0, $$2513 = 0, $$2516618 = 0, $$2529 = 0, $$2532617 = 0, $$3 = 0.0, $$3477 = 0, $$3484$lcssa = 0, $$3484648 = 0, $$3501$lcssa = 0, $$3501647 = 0, $$3533613 = 0, $$4 = 0.0, $$4478$lcssa = 0, $$4478590 = 0, $$4492 = 0, $$4502 = 0, $$4518 = 0;
  33430. var $$5$lcssa = 0, $$534$ = 0, $$539 = 0, $$539$ = 0, $$542 = 0.0, $$546 = 0, $$548 = 0, $$5486$lcssa = 0, $$5486623 = 0, $$5493597 = 0, $$5519$ph = 0, $$555 = 0, $$556 = 0, $$559 = 0.0, $$5602 = 0, $$6 = 0, $$6494589 = 0, $$7495601 = 0, $$7505 = 0, $$7505$ = 0;
  33431. var $$7505$ph = 0, $$8 = 0, $$9$ph = 0, $$lcssa673 = 0, $$neg = 0, $$neg567 = 0, $$pn = 0, $$pn566 = 0, $$pr = 0, $$pr564 = 0, $$pre = 0, $$pre$phi690Z2D = 0, $$pre689 = 0, $$sink545$lcssa = 0, $$sink545622 = 0, $$sink562 = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0;
  33432. var $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0.0, $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0, $114 = 0, $115 = 0, $116 = 0.0, $117 = 0.0, $118 = 0.0, $119 = 0, $12 = 0, $120 = 0;
  33433. var $121 = 0, $122 = 0, $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 0, $128 = 0, $129 = 0, $13 = 0, $130 = 0, $131 = 0, $132 = 0, $133 = 0, $134 = 0, $135 = 0, $136 = 0, $137 = 0, $138 = 0, $139 = 0;
  33434. var $14 = 0.0, $140 = 0, $141 = 0, $142 = 0, $143 = 0, $144 = 0, $145 = 0, $146 = 0, $147 = 0, $148 = 0, $149 = 0, $15 = 0, $150 = 0, $151 = 0, $152 = 0, $153 = 0, $154 = 0, $155 = 0, $156 = 0, $157 = 0;
  33435. var $158 = 0, $159 = 0, $16 = 0, $160 = 0, $161 = 0, $162 = 0, $163 = 0, $164 = 0, $165 = 0, $166 = 0, $167 = 0, $168 = 0, $169 = 0, $17 = 0, $170 = 0, $171 = 0, $172 = 0, $173 = 0, $174 = 0, $175 = 0;
  33436. var $176 = 0, $177 = 0, $178 = 0, $179 = 0, $18 = 0, $180 = 0, $181 = 0, $182 = 0, $183 = 0, $184 = 0, $185 = 0, $186 = 0, $187 = 0, $188 = 0, $189 = 0, $19 = 0, $190 = 0, $191 = 0, $192 = 0, $193 = 0;
  33437. var $194 = 0, $195 = 0, $196 = 0, $197 = 0, $198 = 0, $199 = 0, $20 = 0, $200 = 0, $201 = 0, $202 = 0, $203 = 0, $204 = 0, $205 = 0, $206 = 0, $207 = 0, $208 = 0, $209 = 0, $21 = 0, $210 = 0, $211 = 0;
  33438. var $212 = 0, $213 = 0, $214 = 0, $215 = 0, $216 = 0, $217 = 0, $218 = 0, $219 = 0, $22 = 0, $220 = 0, $221 = 0, $222 = 0, $223 = 0, $224 = 0, $225 = 0, $226 = 0, $227 = 0, $228 = 0.0, $229 = 0.0, $23 = 0;
  33439. var $230 = 0, $231 = 0.0, $232 = 0, $233 = 0, $234 = 0, $235 = 0, $236 = 0, $237 = 0, $238 = 0, $239 = 0, $24 = 0, $240 = 0, $241 = 0, $242 = 0, $243 = 0, $244 = 0, $245 = 0, $246 = 0, $247 = 0, $248 = 0;
  33440. var $249 = 0, $25 = 0, $250 = 0, $251 = 0, $252 = 0, $253 = 0, $254 = 0, $255 = 0, $256 = 0, $257 = 0, $258 = 0, $259 = 0, $26 = 0, $260 = 0, $261 = 0, $262 = 0, $263 = 0, $264 = 0, $265 = 0, $266 = 0;
  33441. var $267 = 0, $268 = 0, $269 = 0, $27 = 0, $270 = 0, $271 = 0, $272 = 0, $273 = 0, $274 = 0, $275 = 0, $276 = 0, $277 = 0, $278 = 0, $279 = 0, $28 = 0, $280 = 0, $281 = 0, $282 = 0, $283 = 0, $284 = 0;
  33442. var $285 = 0, $286 = 0, $287 = 0, $288 = 0, $289 = 0, $29 = 0, $290 = 0, $291 = 0, $292 = 0, $293 = 0, $294 = 0, $295 = 0, $296 = 0, $297 = 0, $298 = 0, $299 = 0, $30 = 0, $300 = 0, $301 = 0, $302 = 0;
  33443. var $303 = 0, $304 = 0, $305 = 0, $306 = 0, $307 = 0, $308 = 0, $309 = 0, $31 = 0, $310 = 0, $311 = 0, $312 = 0, $313 = 0, $314 = 0, $315 = 0, $316 = 0, $317 = 0, $318 = 0, $319 = 0, $32 = 0, $320 = 0;
  33444. var $321 = 0, $322 = 0, $323 = 0, $324 = 0, $325 = 0, $326 = 0, $327 = 0, $328 = 0, $329 = 0, $33 = 0, $330 = 0, $331 = 0, $332 = 0, $333 = 0, $334 = 0, $335 = 0, $336 = 0, $337 = 0, $338 = 0, $339 = 0;
  33445. var $34 = 0, $340 = 0, $341 = 0, $342 = 0, $343 = 0, $344 = 0, $345 = 0, $346 = 0, $347 = 0, $348 = 0, $349 = 0, $35 = 0.0, $350 = 0, $351 = 0, $352 = 0, $353 = 0, $354 = 0, $355 = 0, $356 = 0, $357 = 0;
  33446. var $358 = 0, $359 = 0, $36 = 0.0, $360 = 0, $361 = 0, $362 = 0, $363 = 0, $364 = 0, $365 = 0, $366 = 0, $367 = 0, $368 = 0, $369 = 0, $37 = 0, $370 = 0, $371 = 0, $372 = 0, $373 = 0, $374 = 0, $375 = 0;
  33447. var $376 = 0, $377 = 0, $378 = 0, $379 = 0, $38 = 0, $380 = 0, $381 = 0, $382 = 0, $383 = 0, $384 = 0, $385 = 0, $386 = 0, $387 = 0, $388 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0;
  33448. var $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $50 = 0, $51 = 0.0, $52 = 0, $53 = 0, $54 = 0, $55 = 0.0, $56 = 0.0, $57 = 0.0, $58 = 0.0, $59 = 0.0, $6 = 0, $60 = 0.0, $61 = 0, $62 = 0, $63 = 0;
  33449. var $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0, $81 = 0;
  33450. var $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0.0, $88 = 0.0, $89 = 0.0, $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $exitcond = 0;
  33451. var $narrow = 0, $not$ = 0, $notlhs = 0, $notrhs = 0, $or$cond = 0, $or$cond3$not = 0, $or$cond537 = 0, $or$cond541 = 0, $or$cond544 = 0, $or$cond554 = 0, $or$cond6 = 0, $scevgep684 = 0, $scevgep684685 = 0, label = 0, sp = 0;
  33452. sp = STACKTOP;
  33453. STACKTOP = STACKTOP + 560|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(560|0);
  33454. $6 = sp + 8|0;
  33455. $7 = sp;
  33456. $8 = sp + 524|0;
  33457. $9 = $8;
  33458. $10 = sp + 512|0;
  33459. HEAP32[$7>>2] = 0;
  33460. $11 = ((($10)) + 12|0);
  33461. (___DOUBLE_BITS_675($1)|0);
  33462. $12 = tempRet0;
  33463. $13 = ($12|0)<(0);
  33464. if ($13) {
  33465. $14 = -$1;
  33466. $$0471 = $14;$$0520 = 1;$$0521 = 16138;
  33467. } else {
  33468. $15 = $4 & 2048;
  33469. $16 = ($15|0)==(0);
  33470. $17 = $4 & 1;
  33471. $18 = ($17|0)==(0);
  33472. $$ = $18 ? (16139) : (16144);
  33473. $$$ = $16 ? $$ : (16141);
  33474. $19 = $4 & 2049;
  33475. $narrow = ($19|0)!=(0);
  33476. $$534$ = $narrow&1;
  33477. $$0471 = $1;$$0520 = $$534$;$$0521 = $$$;
  33478. }
  33479. (___DOUBLE_BITS_675($$0471)|0);
  33480. $20 = tempRet0;
  33481. $21 = $20 & 2146435072;
  33482. $22 = ($21>>>0)<(2146435072);
  33483. $23 = (0)<(0);
  33484. $24 = ($21|0)==(2146435072);
  33485. $25 = $24 & $23;
  33486. $26 = $22 | $25;
  33487. do {
  33488. if ($26) {
  33489. $35 = (+_frexpl($$0471,$7));
  33490. $36 = $35 * 2.0;
  33491. $37 = $36 != 0.0;
  33492. if ($37) {
  33493. $38 = HEAP32[$7>>2]|0;
  33494. $39 = (($38) + -1)|0;
  33495. HEAP32[$7>>2] = $39;
  33496. }
  33497. $40 = $5 | 32;
  33498. $41 = ($40|0)==(97);
  33499. if ($41) {
  33500. $42 = $5 & 32;
  33501. $43 = ($42|0)==(0);
  33502. $44 = ((($$0521)) + 9|0);
  33503. $$0521$ = $43 ? $$0521 : $44;
  33504. $45 = $$0520 | 2;
  33505. $46 = ($3>>>0)>(11);
  33506. $47 = (12 - ($3))|0;
  33507. $48 = ($47|0)==(0);
  33508. $49 = $46 | $48;
  33509. do {
  33510. if ($49) {
  33511. $$1472 = $36;
  33512. } else {
  33513. $$0509582 = 8.0;$$1508583 = $47;
  33514. while(1) {
  33515. $50 = (($$1508583) + -1)|0;
  33516. $51 = $$0509582 * 16.0;
  33517. $52 = ($50|0)==(0);
  33518. if ($52) {
  33519. break;
  33520. } else {
  33521. $$0509582 = $51;$$1508583 = $50;
  33522. }
  33523. }
  33524. $53 = HEAP8[$$0521$>>0]|0;
  33525. $54 = ($53<<24>>24)==(45);
  33526. if ($54) {
  33527. $55 = -$36;
  33528. $56 = $55 - $51;
  33529. $57 = $51 + $56;
  33530. $58 = -$57;
  33531. $$1472 = $58;
  33532. break;
  33533. } else {
  33534. $59 = $36 + $51;
  33535. $60 = $59 - $51;
  33536. $$1472 = $60;
  33537. break;
  33538. }
  33539. }
  33540. } while(0);
  33541. $61 = HEAP32[$7>>2]|0;
  33542. $62 = ($61|0)<(0);
  33543. $63 = (0 - ($61))|0;
  33544. $64 = $62 ? $63 : $61;
  33545. $65 = ($64|0)<(0);
  33546. $66 = $65 << 31 >> 31;
  33547. $67 = (_fmt_u($64,$66,$11)|0);
  33548. $68 = ($67|0)==($11|0);
  33549. if ($68) {
  33550. $69 = ((($10)) + 11|0);
  33551. HEAP8[$69>>0] = 48;
  33552. $$0511 = $69;
  33553. } else {
  33554. $$0511 = $67;
  33555. }
  33556. $70 = $61 >> 31;
  33557. $71 = $70 & 2;
  33558. $72 = (($71) + 43)|0;
  33559. $73 = $72&255;
  33560. $74 = ((($$0511)) + -1|0);
  33561. HEAP8[$74>>0] = $73;
  33562. $75 = (($5) + 15)|0;
  33563. $76 = $75&255;
  33564. $77 = ((($$0511)) + -2|0);
  33565. HEAP8[$77>>0] = $76;
  33566. $notrhs = ($3|0)<(1);
  33567. $78 = $4 & 8;
  33568. $79 = ($78|0)==(0);
  33569. $$0523 = $8;$$2473 = $$1472;
  33570. while(1) {
  33571. $80 = (~~(($$2473)));
  33572. $81 = (16169 + ($80)|0);
  33573. $82 = HEAP8[$81>>0]|0;
  33574. $83 = $82&255;
  33575. $84 = $83 | $42;
  33576. $85 = $84&255;
  33577. $86 = ((($$0523)) + 1|0);
  33578. HEAP8[$$0523>>0] = $85;
  33579. $87 = (+($80|0));
  33580. $88 = $$2473 - $87;
  33581. $89 = $88 * 16.0;
  33582. $90 = $86;
  33583. $91 = (($90) - ($9))|0;
  33584. $92 = ($91|0)==(1);
  33585. if ($92) {
  33586. $notlhs = $89 == 0.0;
  33587. $or$cond3$not = $notrhs & $notlhs;
  33588. $or$cond = $79 & $or$cond3$not;
  33589. if ($or$cond) {
  33590. $$1524 = $86;
  33591. } else {
  33592. $93 = ((($$0523)) + 2|0);
  33593. HEAP8[$86>>0] = 46;
  33594. $$1524 = $93;
  33595. }
  33596. } else {
  33597. $$1524 = $86;
  33598. }
  33599. $94 = $89 != 0.0;
  33600. if ($94) {
  33601. $$0523 = $$1524;$$2473 = $89;
  33602. } else {
  33603. break;
  33604. }
  33605. }
  33606. $95 = ($3|0)!=(0);
  33607. $96 = $77;
  33608. $97 = $11;
  33609. $98 = $$1524;
  33610. $99 = (($98) - ($9))|0;
  33611. $100 = (($97) - ($96))|0;
  33612. $101 = (($99) + -2)|0;
  33613. $102 = ($101|0)<($3|0);
  33614. $or$cond537 = $95 & $102;
  33615. $103 = (($3) + 2)|0;
  33616. $$pn = $or$cond537 ? $103 : $99;
  33617. $$0525 = (($100) + ($45))|0;
  33618. $104 = (($$0525) + ($$pn))|0;
  33619. _pad_674($0,32,$2,$104,$4);
  33620. _out($0,$$0521$,$45);
  33621. $105 = $4 ^ 65536;
  33622. _pad_674($0,48,$2,$104,$105);
  33623. _out($0,$8,$99);
  33624. $106 = (($$pn) - ($99))|0;
  33625. _pad_674($0,48,$106,0,0);
  33626. _out($0,$77,$100);
  33627. $107 = $4 ^ 8192;
  33628. _pad_674($0,32,$2,$104,$107);
  33629. $$sink562 = $104;
  33630. break;
  33631. }
  33632. $108 = ($3|0)<(0);
  33633. $$539 = $108 ? 6 : $3;
  33634. if ($37) {
  33635. $109 = $36 * 268435456.0;
  33636. $110 = HEAP32[$7>>2]|0;
  33637. $111 = (($110) + -28)|0;
  33638. HEAP32[$7>>2] = $111;
  33639. $$3 = $109;$$pr = $111;
  33640. } else {
  33641. $$pre = HEAP32[$7>>2]|0;
  33642. $$3 = $36;$$pr = $$pre;
  33643. }
  33644. $112 = ($$pr|0)<(0);
  33645. $113 = ((($6)) + 288|0);
  33646. $$556 = $112 ? $6 : $113;
  33647. $$0498 = $$556;$$4 = $$3;
  33648. while(1) {
  33649. $114 = (~~(($$4))>>>0);
  33650. HEAP32[$$0498>>2] = $114;
  33651. $115 = ((($$0498)) + 4|0);
  33652. $116 = (+($114>>>0));
  33653. $117 = $$4 - $116;
  33654. $118 = $117 * 1.0E+9;
  33655. $119 = $118 != 0.0;
  33656. if ($119) {
  33657. $$0498 = $115;$$4 = $118;
  33658. } else {
  33659. break;
  33660. }
  33661. }
  33662. $120 = ($$pr|0)>(0);
  33663. if ($120) {
  33664. $$1482661 = $$556;$$1499660 = $115;$122 = $$pr;
  33665. while(1) {
  33666. $121 = ($122|0)<(29);
  33667. $123 = $121 ? $122 : 29;
  33668. $$0488653 = ((($$1499660)) + -4|0);
  33669. $124 = ($$0488653>>>0)<($$1482661>>>0);
  33670. if ($124) {
  33671. $$2483$ph = $$1482661;
  33672. } else {
  33673. $$0488655 = $$0488653;$$0497654 = 0;
  33674. while(1) {
  33675. $125 = HEAP32[$$0488655>>2]|0;
  33676. $126 = (_bitshift64Shl(($125|0),0,($123|0))|0);
  33677. $127 = tempRet0;
  33678. $128 = (_i64Add(($126|0),($127|0),($$0497654|0),0)|0);
  33679. $129 = tempRet0;
  33680. $130 = (___uremdi3(($128|0),($129|0),1000000000,0)|0);
  33681. $131 = tempRet0;
  33682. HEAP32[$$0488655>>2] = $130;
  33683. $132 = (___udivdi3(($128|0),($129|0),1000000000,0)|0);
  33684. $133 = tempRet0;
  33685. $$0488 = ((($$0488655)) + -4|0);
  33686. $134 = ($$0488>>>0)<($$1482661>>>0);
  33687. if ($134) {
  33688. break;
  33689. } else {
  33690. $$0488655 = $$0488;$$0497654 = $132;
  33691. }
  33692. }
  33693. $135 = ($132|0)==(0);
  33694. if ($135) {
  33695. $$2483$ph = $$1482661;
  33696. } else {
  33697. $136 = ((($$1482661)) + -4|0);
  33698. HEAP32[$136>>2] = $132;
  33699. $$2483$ph = $136;
  33700. }
  33701. }
  33702. $$2500 = $$1499660;
  33703. while(1) {
  33704. $137 = ($$2500>>>0)>($$2483$ph>>>0);
  33705. if (!($137)) {
  33706. break;
  33707. }
  33708. $138 = ((($$2500)) + -4|0);
  33709. $139 = HEAP32[$138>>2]|0;
  33710. $140 = ($139|0)==(0);
  33711. if ($140) {
  33712. $$2500 = $138;
  33713. } else {
  33714. break;
  33715. }
  33716. }
  33717. $141 = HEAP32[$7>>2]|0;
  33718. $142 = (($141) - ($123))|0;
  33719. HEAP32[$7>>2] = $142;
  33720. $143 = ($142|0)>(0);
  33721. if ($143) {
  33722. $$1482661 = $$2483$ph;$$1499660 = $$2500;$122 = $142;
  33723. } else {
  33724. $$1482$lcssa = $$2483$ph;$$1499$lcssa = $$2500;$$pr564 = $142;
  33725. break;
  33726. }
  33727. }
  33728. } else {
  33729. $$1482$lcssa = $$556;$$1499$lcssa = $115;$$pr564 = $$pr;
  33730. }
  33731. $144 = ($$pr564|0)<(0);
  33732. if ($144) {
  33733. $145 = (($$539) + 25)|0;
  33734. $146 = (($145|0) / 9)&-1;
  33735. $147 = (($146) + 1)|0;
  33736. $148 = ($40|0)==(102);
  33737. $$3484648 = $$1482$lcssa;$$3501647 = $$1499$lcssa;$150 = $$pr564;
  33738. while(1) {
  33739. $149 = (0 - ($150))|0;
  33740. $151 = ($149|0)<(9);
  33741. $152 = $151 ? $149 : 9;
  33742. $153 = ($$3484648>>>0)<($$3501647>>>0);
  33743. if ($153) {
  33744. $157 = 1 << $152;
  33745. $158 = (($157) + -1)|0;
  33746. $159 = 1000000000 >>> $152;
  33747. $$0487642 = 0;$$1489641 = $$3484648;
  33748. while(1) {
  33749. $160 = HEAP32[$$1489641>>2]|0;
  33750. $161 = $160 & $158;
  33751. $162 = $160 >>> $152;
  33752. $163 = (($162) + ($$0487642))|0;
  33753. HEAP32[$$1489641>>2] = $163;
  33754. $164 = Math_imul($161, $159)|0;
  33755. $165 = ((($$1489641)) + 4|0);
  33756. $166 = ($165>>>0)<($$3501647>>>0);
  33757. if ($166) {
  33758. $$0487642 = $164;$$1489641 = $165;
  33759. } else {
  33760. break;
  33761. }
  33762. }
  33763. $167 = HEAP32[$$3484648>>2]|0;
  33764. $168 = ($167|0)==(0);
  33765. $169 = ((($$3484648)) + 4|0);
  33766. $$$3484 = $168 ? $169 : $$3484648;
  33767. $170 = ($164|0)==(0);
  33768. if ($170) {
  33769. $$$3484692 = $$$3484;$$4502 = $$3501647;
  33770. } else {
  33771. $171 = ((($$3501647)) + 4|0);
  33772. HEAP32[$$3501647>>2] = $164;
  33773. $$$3484692 = $$$3484;$$4502 = $171;
  33774. }
  33775. } else {
  33776. $154 = HEAP32[$$3484648>>2]|0;
  33777. $155 = ($154|0)==(0);
  33778. $156 = ((($$3484648)) + 4|0);
  33779. $$$3484691 = $155 ? $156 : $$3484648;
  33780. $$$3484692 = $$$3484691;$$4502 = $$3501647;
  33781. }
  33782. $172 = $148 ? $$556 : $$$3484692;
  33783. $173 = $$4502;
  33784. $174 = $172;
  33785. $175 = (($173) - ($174))|0;
  33786. $176 = $175 >> 2;
  33787. $177 = ($176|0)>($147|0);
  33788. $178 = (($172) + ($147<<2)|0);
  33789. $$$4502 = $177 ? $178 : $$4502;
  33790. $179 = HEAP32[$7>>2]|0;
  33791. $180 = (($179) + ($152))|0;
  33792. HEAP32[$7>>2] = $180;
  33793. $181 = ($180|0)<(0);
  33794. if ($181) {
  33795. $$3484648 = $$$3484692;$$3501647 = $$$4502;$150 = $180;
  33796. } else {
  33797. $$3484$lcssa = $$$3484692;$$3501$lcssa = $$$4502;
  33798. break;
  33799. }
  33800. }
  33801. } else {
  33802. $$3484$lcssa = $$1482$lcssa;$$3501$lcssa = $$1499$lcssa;
  33803. }
  33804. $182 = ($$3484$lcssa>>>0)<($$3501$lcssa>>>0);
  33805. $183 = $$556;
  33806. if ($182) {
  33807. $184 = $$3484$lcssa;
  33808. $185 = (($183) - ($184))|0;
  33809. $186 = $185 >> 2;
  33810. $187 = ($186*9)|0;
  33811. $188 = HEAP32[$$3484$lcssa>>2]|0;
  33812. $189 = ($188>>>0)<(10);
  33813. if ($189) {
  33814. $$1515 = $187;
  33815. } else {
  33816. $$0514637 = $187;$$0530636 = 10;
  33817. while(1) {
  33818. $190 = ($$0530636*10)|0;
  33819. $191 = (($$0514637) + 1)|0;
  33820. $192 = ($188>>>0)<($190>>>0);
  33821. if ($192) {
  33822. $$1515 = $191;
  33823. break;
  33824. } else {
  33825. $$0514637 = $191;$$0530636 = $190;
  33826. }
  33827. }
  33828. }
  33829. } else {
  33830. $$1515 = 0;
  33831. }
  33832. $193 = ($40|0)!=(102);
  33833. $194 = $193 ? $$1515 : 0;
  33834. $195 = (($$539) - ($194))|0;
  33835. $196 = ($40|0)==(103);
  33836. $197 = ($$539|0)!=(0);
  33837. $198 = $197 & $196;
  33838. $$neg = $198 << 31 >> 31;
  33839. $199 = (($195) + ($$neg))|0;
  33840. $200 = $$3501$lcssa;
  33841. $201 = (($200) - ($183))|0;
  33842. $202 = $201 >> 2;
  33843. $203 = ($202*9)|0;
  33844. $204 = (($203) + -9)|0;
  33845. $205 = ($199|0)<($204|0);
  33846. if ($205) {
  33847. $206 = ((($$556)) + 4|0);
  33848. $207 = (($199) + 9216)|0;
  33849. $208 = (($207|0) / 9)&-1;
  33850. $209 = (($208) + -1024)|0;
  33851. $210 = (($206) + ($209<<2)|0);
  33852. $211 = (($207|0) % 9)&-1;
  33853. $$0527629 = (($211) + 1)|0;
  33854. $212 = ($$0527629|0)<(9);
  33855. if ($212) {
  33856. $$0527631 = $$0527629;$$1531630 = 10;
  33857. while(1) {
  33858. $213 = ($$1531630*10)|0;
  33859. $$0527 = (($$0527631) + 1)|0;
  33860. $exitcond = ($$0527|0)==(9);
  33861. if ($exitcond) {
  33862. $$1531$lcssa = $213;
  33863. break;
  33864. } else {
  33865. $$0527631 = $$0527;$$1531630 = $213;
  33866. }
  33867. }
  33868. } else {
  33869. $$1531$lcssa = 10;
  33870. }
  33871. $214 = HEAP32[$210>>2]|0;
  33872. $215 = (($214>>>0) % ($$1531$lcssa>>>0))&-1;
  33873. $216 = ($215|0)==(0);
  33874. $217 = ((($210)) + 4|0);
  33875. $218 = ($217|0)==($$3501$lcssa|0);
  33876. $or$cond541 = $218 & $216;
  33877. if ($or$cond541) {
  33878. $$4492 = $210;$$4518 = $$1515;$$8 = $$3484$lcssa;
  33879. } else {
  33880. $219 = (($214>>>0) / ($$1531$lcssa>>>0))&-1;
  33881. $220 = $219 & 1;
  33882. $221 = ($220|0)==(0);
  33883. $$542 = $221 ? 9007199254740992.0 : 9007199254740994.0;
  33884. $222 = (($$1531$lcssa|0) / 2)&-1;
  33885. $223 = ($215>>>0)<($222>>>0);
  33886. $224 = ($215|0)==($222|0);
  33887. $or$cond544 = $218 & $224;
  33888. $$559 = $or$cond544 ? 1.0 : 1.5;
  33889. $$$559 = $223 ? 0.5 : $$559;
  33890. $225 = ($$0520|0)==(0);
  33891. if ($225) {
  33892. $$1467 = $$$559;$$1469 = $$542;
  33893. } else {
  33894. $226 = HEAP8[$$0521>>0]|0;
  33895. $227 = ($226<<24>>24)==(45);
  33896. $228 = -$$542;
  33897. $229 = -$$$559;
  33898. $$$542 = $227 ? $228 : $$542;
  33899. $$$$559 = $227 ? $229 : $$$559;
  33900. $$1467 = $$$$559;$$1469 = $$$542;
  33901. }
  33902. $230 = (($214) - ($215))|0;
  33903. HEAP32[$210>>2] = $230;
  33904. $231 = $$1469 + $$1467;
  33905. $232 = $231 != $$1469;
  33906. if ($232) {
  33907. $233 = (($230) + ($$1531$lcssa))|0;
  33908. HEAP32[$210>>2] = $233;
  33909. $234 = ($233>>>0)>(999999999);
  33910. if ($234) {
  33911. $$5486623 = $$3484$lcssa;$$sink545622 = $210;
  33912. while(1) {
  33913. $235 = ((($$sink545622)) + -4|0);
  33914. HEAP32[$$sink545622>>2] = 0;
  33915. $236 = ($235>>>0)<($$5486623>>>0);
  33916. if ($236) {
  33917. $237 = ((($$5486623)) + -4|0);
  33918. HEAP32[$237>>2] = 0;
  33919. $$6 = $237;
  33920. } else {
  33921. $$6 = $$5486623;
  33922. }
  33923. $238 = HEAP32[$235>>2]|0;
  33924. $239 = (($238) + 1)|0;
  33925. HEAP32[$235>>2] = $239;
  33926. $240 = ($239>>>0)>(999999999);
  33927. if ($240) {
  33928. $$5486623 = $$6;$$sink545622 = $235;
  33929. } else {
  33930. $$5486$lcssa = $$6;$$sink545$lcssa = $235;
  33931. break;
  33932. }
  33933. }
  33934. } else {
  33935. $$5486$lcssa = $$3484$lcssa;$$sink545$lcssa = $210;
  33936. }
  33937. $241 = $$5486$lcssa;
  33938. $242 = (($183) - ($241))|0;
  33939. $243 = $242 >> 2;
  33940. $244 = ($243*9)|0;
  33941. $245 = HEAP32[$$5486$lcssa>>2]|0;
  33942. $246 = ($245>>>0)<(10);
  33943. if ($246) {
  33944. $$4492 = $$sink545$lcssa;$$4518 = $244;$$8 = $$5486$lcssa;
  33945. } else {
  33946. $$2516618 = $244;$$2532617 = 10;
  33947. while(1) {
  33948. $247 = ($$2532617*10)|0;
  33949. $248 = (($$2516618) + 1)|0;
  33950. $249 = ($245>>>0)<($247>>>0);
  33951. if ($249) {
  33952. $$4492 = $$sink545$lcssa;$$4518 = $248;$$8 = $$5486$lcssa;
  33953. break;
  33954. } else {
  33955. $$2516618 = $248;$$2532617 = $247;
  33956. }
  33957. }
  33958. }
  33959. } else {
  33960. $$4492 = $210;$$4518 = $$1515;$$8 = $$3484$lcssa;
  33961. }
  33962. }
  33963. $250 = ((($$4492)) + 4|0);
  33964. $251 = ($$3501$lcssa>>>0)>($250>>>0);
  33965. $$$3501 = $251 ? $250 : $$3501$lcssa;
  33966. $$5519$ph = $$4518;$$7505$ph = $$$3501;$$9$ph = $$8;
  33967. } else {
  33968. $$5519$ph = $$1515;$$7505$ph = $$3501$lcssa;$$9$ph = $$3484$lcssa;
  33969. }
  33970. $$7505 = $$7505$ph;
  33971. while(1) {
  33972. $252 = ($$7505>>>0)>($$9$ph>>>0);
  33973. if (!($252)) {
  33974. $$lcssa673 = 0;
  33975. break;
  33976. }
  33977. $253 = ((($$7505)) + -4|0);
  33978. $254 = HEAP32[$253>>2]|0;
  33979. $255 = ($254|0)==(0);
  33980. if ($255) {
  33981. $$7505 = $253;
  33982. } else {
  33983. $$lcssa673 = 1;
  33984. break;
  33985. }
  33986. }
  33987. $256 = (0 - ($$5519$ph))|0;
  33988. do {
  33989. if ($196) {
  33990. $not$ = $197 ^ 1;
  33991. $257 = $not$&1;
  33992. $$539$ = (($257) + ($$539))|0;
  33993. $258 = ($$539$|0)>($$5519$ph|0);
  33994. $259 = ($$5519$ph|0)>(-5);
  33995. $or$cond6 = $258 & $259;
  33996. if ($or$cond6) {
  33997. $260 = (($5) + -1)|0;
  33998. $$neg567 = (($$539$) + -1)|0;
  33999. $261 = (($$neg567) - ($$5519$ph))|0;
  34000. $$0479 = $260;$$2476 = $261;
  34001. } else {
  34002. $262 = (($5) + -2)|0;
  34003. $263 = (($$539$) + -1)|0;
  34004. $$0479 = $262;$$2476 = $263;
  34005. }
  34006. $264 = $4 & 8;
  34007. $265 = ($264|0)==(0);
  34008. if ($265) {
  34009. if ($$lcssa673) {
  34010. $266 = ((($$7505)) + -4|0);
  34011. $267 = HEAP32[$266>>2]|0;
  34012. $268 = ($267|0)==(0);
  34013. if ($268) {
  34014. $$2529 = 9;
  34015. } else {
  34016. $269 = (($267>>>0) % 10)&-1;
  34017. $270 = ($269|0)==(0);
  34018. if ($270) {
  34019. $$1528614 = 0;$$3533613 = 10;
  34020. while(1) {
  34021. $271 = ($$3533613*10)|0;
  34022. $272 = (($$1528614) + 1)|0;
  34023. $273 = (($267>>>0) % ($271>>>0))&-1;
  34024. $274 = ($273|0)==(0);
  34025. if ($274) {
  34026. $$1528614 = $272;$$3533613 = $271;
  34027. } else {
  34028. $$2529 = $272;
  34029. break;
  34030. }
  34031. }
  34032. } else {
  34033. $$2529 = 0;
  34034. }
  34035. }
  34036. } else {
  34037. $$2529 = 9;
  34038. }
  34039. $275 = $$0479 | 32;
  34040. $276 = ($275|0)==(102);
  34041. $277 = $$7505;
  34042. $278 = (($277) - ($183))|0;
  34043. $279 = $278 >> 2;
  34044. $280 = ($279*9)|0;
  34045. $281 = (($280) + -9)|0;
  34046. if ($276) {
  34047. $282 = (($281) - ($$2529))|0;
  34048. $283 = ($282|0)>(0);
  34049. $$546 = $283 ? $282 : 0;
  34050. $284 = ($$2476|0)<($$546|0);
  34051. $$2476$$547 = $284 ? $$2476 : $$546;
  34052. $$1480 = $$0479;$$3477 = $$2476$$547;$$pre$phi690Z2D = 0;
  34053. break;
  34054. } else {
  34055. $285 = (($281) + ($$5519$ph))|0;
  34056. $286 = (($285) - ($$2529))|0;
  34057. $287 = ($286|0)>(0);
  34058. $$548 = $287 ? $286 : 0;
  34059. $288 = ($$2476|0)<($$548|0);
  34060. $$2476$$549 = $288 ? $$2476 : $$548;
  34061. $$1480 = $$0479;$$3477 = $$2476$$549;$$pre$phi690Z2D = 0;
  34062. break;
  34063. }
  34064. } else {
  34065. $$1480 = $$0479;$$3477 = $$2476;$$pre$phi690Z2D = $264;
  34066. }
  34067. } else {
  34068. $$pre689 = $4 & 8;
  34069. $$1480 = $5;$$3477 = $$539;$$pre$phi690Z2D = $$pre689;
  34070. }
  34071. } while(0);
  34072. $289 = $$3477 | $$pre$phi690Z2D;
  34073. $290 = ($289|0)!=(0);
  34074. $291 = $290&1;
  34075. $292 = $$1480 | 32;
  34076. $293 = ($292|0)==(102);
  34077. if ($293) {
  34078. $294 = ($$5519$ph|0)>(0);
  34079. $295 = $294 ? $$5519$ph : 0;
  34080. $$2513 = 0;$$pn566 = $295;
  34081. } else {
  34082. $296 = ($$5519$ph|0)<(0);
  34083. $297 = $296 ? $256 : $$5519$ph;
  34084. $298 = ($297|0)<(0);
  34085. $299 = $298 << 31 >> 31;
  34086. $300 = (_fmt_u($297,$299,$11)|0);
  34087. $301 = $11;
  34088. $302 = $300;
  34089. $303 = (($301) - ($302))|0;
  34090. $304 = ($303|0)<(2);
  34091. if ($304) {
  34092. $$1512607 = $300;
  34093. while(1) {
  34094. $305 = ((($$1512607)) + -1|0);
  34095. HEAP8[$305>>0] = 48;
  34096. $306 = $305;
  34097. $307 = (($301) - ($306))|0;
  34098. $308 = ($307|0)<(2);
  34099. if ($308) {
  34100. $$1512607 = $305;
  34101. } else {
  34102. $$1512$lcssa = $305;
  34103. break;
  34104. }
  34105. }
  34106. } else {
  34107. $$1512$lcssa = $300;
  34108. }
  34109. $309 = $$5519$ph >> 31;
  34110. $310 = $309 & 2;
  34111. $311 = (($310) + 43)|0;
  34112. $312 = $311&255;
  34113. $313 = ((($$1512$lcssa)) + -1|0);
  34114. HEAP8[$313>>0] = $312;
  34115. $314 = $$1480&255;
  34116. $315 = ((($$1512$lcssa)) + -2|0);
  34117. HEAP8[$315>>0] = $314;
  34118. $316 = $315;
  34119. $317 = (($301) - ($316))|0;
  34120. $$2513 = $315;$$pn566 = $317;
  34121. }
  34122. $318 = (($$0520) + 1)|0;
  34123. $319 = (($318) + ($$3477))|0;
  34124. $$1526 = (($319) + ($291))|0;
  34125. $320 = (($$1526) + ($$pn566))|0;
  34126. _pad_674($0,32,$2,$320,$4);
  34127. _out($0,$$0521,$$0520);
  34128. $321 = $4 ^ 65536;
  34129. _pad_674($0,48,$2,$320,$321);
  34130. if ($293) {
  34131. $322 = ($$9$ph>>>0)>($$556>>>0);
  34132. $$0496$$9 = $322 ? $$556 : $$9$ph;
  34133. $323 = ((($8)) + 9|0);
  34134. $324 = $323;
  34135. $325 = ((($8)) + 8|0);
  34136. $$5493597 = $$0496$$9;
  34137. while(1) {
  34138. $326 = HEAP32[$$5493597>>2]|0;
  34139. $327 = (_fmt_u($326,0,$323)|0);
  34140. $328 = ($$5493597|0)==($$0496$$9|0);
  34141. if ($328) {
  34142. $334 = ($327|0)==($323|0);
  34143. if ($334) {
  34144. HEAP8[$325>>0] = 48;
  34145. $$1465 = $325;
  34146. } else {
  34147. $$1465 = $327;
  34148. }
  34149. } else {
  34150. $329 = ($327>>>0)>($8>>>0);
  34151. if ($329) {
  34152. $330 = $327;
  34153. $331 = (($330) - ($9))|0;
  34154. _memset(($8|0),48,($331|0))|0;
  34155. $$0464594 = $327;
  34156. while(1) {
  34157. $332 = ((($$0464594)) + -1|0);
  34158. $333 = ($332>>>0)>($8>>>0);
  34159. if ($333) {
  34160. $$0464594 = $332;
  34161. } else {
  34162. $$1465 = $332;
  34163. break;
  34164. }
  34165. }
  34166. } else {
  34167. $$1465 = $327;
  34168. }
  34169. }
  34170. $335 = $$1465;
  34171. $336 = (($324) - ($335))|0;
  34172. _out($0,$$1465,$336);
  34173. $337 = ((($$5493597)) + 4|0);
  34174. $338 = ($337>>>0)>($$556>>>0);
  34175. if ($338) {
  34176. break;
  34177. } else {
  34178. $$5493597 = $337;
  34179. }
  34180. }
  34181. $339 = ($289|0)==(0);
  34182. if (!($339)) {
  34183. _out($0,16185,1);
  34184. }
  34185. $340 = ($337>>>0)<($$7505>>>0);
  34186. $341 = ($$3477|0)>(0);
  34187. $342 = $340 & $341;
  34188. if ($342) {
  34189. $$4478590 = $$3477;$$6494589 = $337;
  34190. while(1) {
  34191. $343 = HEAP32[$$6494589>>2]|0;
  34192. $344 = (_fmt_u($343,0,$323)|0);
  34193. $345 = ($344>>>0)>($8>>>0);
  34194. if ($345) {
  34195. $346 = $344;
  34196. $347 = (($346) - ($9))|0;
  34197. _memset(($8|0),48,($347|0))|0;
  34198. $$0463584 = $344;
  34199. while(1) {
  34200. $348 = ((($$0463584)) + -1|0);
  34201. $349 = ($348>>>0)>($8>>>0);
  34202. if ($349) {
  34203. $$0463584 = $348;
  34204. } else {
  34205. $$0463$lcssa = $348;
  34206. break;
  34207. }
  34208. }
  34209. } else {
  34210. $$0463$lcssa = $344;
  34211. }
  34212. $350 = ($$4478590|0)<(9);
  34213. $351 = $350 ? $$4478590 : 9;
  34214. _out($0,$$0463$lcssa,$351);
  34215. $352 = ((($$6494589)) + 4|0);
  34216. $353 = (($$4478590) + -9)|0;
  34217. $354 = ($352>>>0)<($$7505>>>0);
  34218. $355 = ($$4478590|0)>(9);
  34219. $356 = $354 & $355;
  34220. if ($356) {
  34221. $$4478590 = $353;$$6494589 = $352;
  34222. } else {
  34223. $$4478$lcssa = $353;
  34224. break;
  34225. }
  34226. }
  34227. } else {
  34228. $$4478$lcssa = $$3477;
  34229. }
  34230. $357 = (($$4478$lcssa) + 9)|0;
  34231. _pad_674($0,48,$357,9,0);
  34232. } else {
  34233. $358 = ((($$9$ph)) + 4|0);
  34234. $$7505$ = $$lcssa673 ? $$7505 : $358;
  34235. $359 = ($$3477|0)>(-1);
  34236. if ($359) {
  34237. $360 = ((($8)) + 9|0);
  34238. $361 = ($$pre$phi690Z2D|0)==(0);
  34239. $362 = $360;
  34240. $363 = (0 - ($9))|0;
  34241. $364 = ((($8)) + 8|0);
  34242. $$5602 = $$3477;$$7495601 = $$9$ph;
  34243. while(1) {
  34244. $365 = HEAP32[$$7495601>>2]|0;
  34245. $366 = (_fmt_u($365,0,$360)|0);
  34246. $367 = ($366|0)==($360|0);
  34247. if ($367) {
  34248. HEAP8[$364>>0] = 48;
  34249. $$0 = $364;
  34250. } else {
  34251. $$0 = $366;
  34252. }
  34253. $368 = ($$7495601|0)==($$9$ph|0);
  34254. do {
  34255. if ($368) {
  34256. $372 = ((($$0)) + 1|0);
  34257. _out($0,$$0,1);
  34258. $373 = ($$5602|0)<(1);
  34259. $or$cond554 = $361 & $373;
  34260. if ($or$cond554) {
  34261. $$2 = $372;
  34262. break;
  34263. }
  34264. _out($0,16185,1);
  34265. $$2 = $372;
  34266. } else {
  34267. $369 = ($$0>>>0)>($8>>>0);
  34268. if (!($369)) {
  34269. $$2 = $$0;
  34270. break;
  34271. }
  34272. $scevgep684 = (($$0) + ($363)|0);
  34273. $scevgep684685 = $scevgep684;
  34274. _memset(($8|0),48,($scevgep684685|0))|0;
  34275. $$1598 = $$0;
  34276. while(1) {
  34277. $370 = ((($$1598)) + -1|0);
  34278. $371 = ($370>>>0)>($8>>>0);
  34279. if ($371) {
  34280. $$1598 = $370;
  34281. } else {
  34282. $$2 = $370;
  34283. break;
  34284. }
  34285. }
  34286. }
  34287. } while(0);
  34288. $374 = $$2;
  34289. $375 = (($362) - ($374))|0;
  34290. $376 = ($$5602|0)>($375|0);
  34291. $377 = $376 ? $375 : $$5602;
  34292. _out($0,$$2,$377);
  34293. $378 = (($$5602) - ($375))|0;
  34294. $379 = ((($$7495601)) + 4|0);
  34295. $380 = ($379>>>0)<($$7505$>>>0);
  34296. $381 = ($378|0)>(-1);
  34297. $382 = $380 & $381;
  34298. if ($382) {
  34299. $$5602 = $378;$$7495601 = $379;
  34300. } else {
  34301. $$5$lcssa = $378;
  34302. break;
  34303. }
  34304. }
  34305. } else {
  34306. $$5$lcssa = $$3477;
  34307. }
  34308. $383 = (($$5$lcssa) + 18)|0;
  34309. _pad_674($0,48,$383,18,0);
  34310. $384 = $11;
  34311. $385 = $$2513;
  34312. $386 = (($384) - ($385))|0;
  34313. _out($0,$$2513,$386);
  34314. }
  34315. $387 = $4 ^ 8192;
  34316. _pad_674($0,32,$2,$320,$387);
  34317. $$sink562 = $320;
  34318. } else {
  34319. $27 = $5 & 32;
  34320. $28 = ($27|0)!=(0);
  34321. $29 = $28 ? 16157 : 16161;
  34322. $30 = ($$0471 != $$0471) | (0.0 != 0.0);
  34323. $31 = $28 ? 18088 : 16165;
  34324. $$0510 = $30 ? $31 : $29;
  34325. $32 = (($$0520) + 3)|0;
  34326. $33 = $4 & -65537;
  34327. _pad_674($0,32,$2,$32,$33);
  34328. _out($0,$$0521,$$0520);
  34329. _out($0,$$0510,3);
  34330. $34 = $4 ^ 8192;
  34331. _pad_674($0,32,$2,$32,$34);
  34332. $$sink562 = $32;
  34333. }
  34334. } while(0);
  34335. $388 = ($$sink562|0)<($2|0);
  34336. $$555 = $388 ? $2 : $$sink562;
  34337. STACKTOP = sp;return ($$555|0);
  34338. }
  34339. function ___DOUBLE_BITS_675($0) {
  34340. $0 = +$0;
  34341. var $1 = 0, $2 = 0, label = 0, sp = 0;
  34342. sp = STACKTOP;
  34343. HEAPF64[tempDoublePtr>>3] = $0;$1 = HEAP32[tempDoublePtr>>2]|0;
  34344. $2 = HEAP32[tempDoublePtr+4>>2]|0;
  34345. tempRet0 = ($2);
  34346. return ($1|0);
  34347. }
  34348. function _frexpl($0,$1) {
  34349. $0 = +$0;
  34350. $1 = $1|0;
  34351. var $2 = 0.0, label = 0, sp = 0;
  34352. sp = STACKTOP;
  34353. $2 = (+_frexp($0,$1));
  34354. return (+$2);
  34355. }
  34356. function _frexp($0,$1) {
  34357. $0 = +$0;
  34358. $1 = $1|0;
  34359. var $$0 = 0.0, $$016 = 0.0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0.0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0.0, $9 = 0.0, $storemerge = 0, $trunc$clear = 0, label = 0;
  34360. var sp = 0;
  34361. sp = STACKTOP;
  34362. HEAPF64[tempDoublePtr>>3] = $0;$2 = HEAP32[tempDoublePtr>>2]|0;
  34363. $3 = HEAP32[tempDoublePtr+4>>2]|0;
  34364. $4 = (_bitshift64Lshr(($2|0),($3|0),52)|0);
  34365. $5 = tempRet0;
  34366. $6 = $4&65535;
  34367. $trunc$clear = $6 & 2047;
  34368. switch ($trunc$clear<<16>>16) {
  34369. case 0: {
  34370. $7 = $0 != 0.0;
  34371. if ($7) {
  34372. $8 = $0 * 1.8446744073709552E+19;
  34373. $9 = (+_frexp($8,$1));
  34374. $10 = HEAP32[$1>>2]|0;
  34375. $11 = (($10) + -64)|0;
  34376. $$016 = $9;$storemerge = $11;
  34377. } else {
  34378. $$016 = $0;$storemerge = 0;
  34379. }
  34380. HEAP32[$1>>2] = $storemerge;
  34381. $$0 = $$016;
  34382. break;
  34383. }
  34384. case 2047: {
  34385. $$0 = $0;
  34386. break;
  34387. }
  34388. default: {
  34389. $12 = $4 & 2047;
  34390. $13 = (($12) + -1022)|0;
  34391. HEAP32[$1>>2] = $13;
  34392. $14 = $3 & -2146435073;
  34393. $15 = $14 | 1071644672;
  34394. HEAP32[tempDoublePtr>>2] = $2;HEAP32[tempDoublePtr+4>>2] = $15;$16 = +HEAPF64[tempDoublePtr>>3];
  34395. $$0 = $16;
  34396. }
  34397. }
  34398. return (+$$0);
  34399. }
  34400. function _wcrtomb($0,$1,$2) {
  34401. $0 = $0|0;
  34402. $1 = $1|0;
  34403. $2 = $2|0;
  34404. var $$0 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0;
  34405. var $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0;
  34406. var $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $not$ = 0, $or$cond = 0, label = 0, sp = 0;
  34407. sp = STACKTOP;
  34408. $3 = ($0|0)==(0|0);
  34409. do {
  34410. if ($3) {
  34411. $$0 = 1;
  34412. } else {
  34413. $4 = ($1>>>0)<(128);
  34414. if ($4) {
  34415. $5 = $1&255;
  34416. HEAP8[$0>>0] = $5;
  34417. $$0 = 1;
  34418. break;
  34419. }
  34420. $6 = (___pthread_self_448()|0);
  34421. $7 = ((($6)) + 188|0);
  34422. $8 = HEAP32[$7>>2]|0;
  34423. $9 = HEAP32[$8>>2]|0;
  34424. $not$ = ($9|0)==(0|0);
  34425. if ($not$) {
  34426. $10 = $1 & -128;
  34427. $11 = ($10|0)==(57216);
  34428. if ($11) {
  34429. $13 = $1&255;
  34430. HEAP8[$0>>0] = $13;
  34431. $$0 = 1;
  34432. break;
  34433. } else {
  34434. $12 = (___errno_location()|0);
  34435. HEAP32[$12>>2] = 84;
  34436. $$0 = -1;
  34437. break;
  34438. }
  34439. }
  34440. $14 = ($1>>>0)<(2048);
  34441. if ($14) {
  34442. $15 = $1 >>> 6;
  34443. $16 = $15 | 192;
  34444. $17 = $16&255;
  34445. $18 = ((($0)) + 1|0);
  34446. HEAP8[$0>>0] = $17;
  34447. $19 = $1 & 63;
  34448. $20 = $19 | 128;
  34449. $21 = $20&255;
  34450. HEAP8[$18>>0] = $21;
  34451. $$0 = 2;
  34452. break;
  34453. }
  34454. $22 = ($1>>>0)<(55296);
  34455. $23 = $1 & -8192;
  34456. $24 = ($23|0)==(57344);
  34457. $or$cond = $22 | $24;
  34458. if ($or$cond) {
  34459. $25 = $1 >>> 12;
  34460. $26 = $25 | 224;
  34461. $27 = $26&255;
  34462. $28 = ((($0)) + 1|0);
  34463. HEAP8[$0>>0] = $27;
  34464. $29 = $1 >>> 6;
  34465. $30 = $29 & 63;
  34466. $31 = $30 | 128;
  34467. $32 = $31&255;
  34468. $33 = ((($0)) + 2|0);
  34469. HEAP8[$28>>0] = $32;
  34470. $34 = $1 & 63;
  34471. $35 = $34 | 128;
  34472. $36 = $35&255;
  34473. HEAP8[$33>>0] = $36;
  34474. $$0 = 3;
  34475. break;
  34476. }
  34477. $37 = (($1) + -65536)|0;
  34478. $38 = ($37>>>0)<(1048576);
  34479. if ($38) {
  34480. $39 = $1 >>> 18;
  34481. $40 = $39 | 240;
  34482. $41 = $40&255;
  34483. $42 = ((($0)) + 1|0);
  34484. HEAP8[$0>>0] = $41;
  34485. $43 = $1 >>> 12;
  34486. $44 = $43 & 63;
  34487. $45 = $44 | 128;
  34488. $46 = $45&255;
  34489. $47 = ((($0)) + 2|0);
  34490. HEAP8[$42>>0] = $46;
  34491. $48 = $1 >>> 6;
  34492. $49 = $48 & 63;
  34493. $50 = $49 | 128;
  34494. $51 = $50&255;
  34495. $52 = ((($0)) + 3|0);
  34496. HEAP8[$47>>0] = $51;
  34497. $53 = $1 & 63;
  34498. $54 = $53 | 128;
  34499. $55 = $54&255;
  34500. HEAP8[$52>>0] = $55;
  34501. $$0 = 4;
  34502. break;
  34503. } else {
  34504. $56 = (___errno_location()|0);
  34505. HEAP32[$56>>2] = 84;
  34506. $$0 = -1;
  34507. break;
  34508. }
  34509. }
  34510. } while(0);
  34511. return ($$0|0);
  34512. }
  34513. function ___pthread_self_448() {
  34514. var $0 = 0, label = 0, sp = 0;
  34515. sp = STACKTOP;
  34516. $0 = (_pthread_self()|0);
  34517. return ($0|0);
  34518. }
  34519. function ___pthread_self_105() {
  34520. var $0 = 0, label = 0, sp = 0;
  34521. sp = STACKTOP;
  34522. $0 = (_pthread_self()|0);
  34523. return ($0|0);
  34524. }
  34525. function ___strerror_l($0,$1) {
  34526. $0 = $0|0;
  34527. $1 = $1|0;
  34528. var $$012$lcssa = 0, $$01214 = 0, $$016 = 0, $$113 = 0, $$115 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0;
  34529. var label = 0, sp = 0;
  34530. sp = STACKTOP;
  34531. $$016 = 0;
  34532. while(1) {
  34533. $3 = (16187 + ($$016)|0);
  34534. $4 = HEAP8[$3>>0]|0;
  34535. $5 = $4&255;
  34536. $6 = ($5|0)==($0|0);
  34537. if ($6) {
  34538. label = 2;
  34539. break;
  34540. }
  34541. $7 = (($$016) + 1)|0;
  34542. $8 = ($7|0)==(87);
  34543. if ($8) {
  34544. $$01214 = 16275;$$115 = 87;
  34545. label = 5;
  34546. break;
  34547. } else {
  34548. $$016 = $7;
  34549. }
  34550. }
  34551. if ((label|0) == 2) {
  34552. $2 = ($$016|0)==(0);
  34553. if ($2) {
  34554. $$012$lcssa = 16275;
  34555. } else {
  34556. $$01214 = 16275;$$115 = $$016;
  34557. label = 5;
  34558. }
  34559. }
  34560. if ((label|0) == 5) {
  34561. while(1) {
  34562. label = 0;
  34563. $$113 = $$01214;
  34564. while(1) {
  34565. $9 = HEAP8[$$113>>0]|0;
  34566. $10 = ($9<<24>>24)==(0);
  34567. $11 = ((($$113)) + 1|0);
  34568. if ($10) {
  34569. break;
  34570. } else {
  34571. $$113 = $11;
  34572. }
  34573. }
  34574. $12 = (($$115) + -1)|0;
  34575. $13 = ($12|0)==(0);
  34576. if ($13) {
  34577. $$012$lcssa = $11;
  34578. break;
  34579. } else {
  34580. $$01214 = $11;$$115 = $12;
  34581. label = 5;
  34582. }
  34583. }
  34584. }
  34585. $14 = ((($1)) + 20|0);
  34586. $15 = HEAP32[$14>>2]|0;
  34587. $16 = (___lctrans($$012$lcssa,$15)|0);
  34588. return ($16|0);
  34589. }
  34590. function ___lctrans($0,$1) {
  34591. $0 = $0|0;
  34592. $1 = $1|0;
  34593. var $2 = 0, label = 0, sp = 0;
  34594. sp = STACKTOP;
  34595. $2 = (___lctrans_impl($0,$1)|0);
  34596. return ($2|0);
  34597. }
  34598. function ___lctrans_impl($0,$1) {
  34599. $0 = $0|0;
  34600. $1 = $1|0;
  34601. var $$0 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, label = 0, sp = 0;
  34602. sp = STACKTOP;
  34603. $2 = ($1|0)==(0|0);
  34604. if ($2) {
  34605. $$0 = 0;
  34606. } else {
  34607. $3 = HEAP32[$1>>2]|0;
  34608. $4 = ((($1)) + 4|0);
  34609. $5 = HEAP32[$4>>2]|0;
  34610. $6 = (___mo_lookup($3,$5,$0)|0);
  34611. $$0 = $6;
  34612. }
  34613. $7 = ($$0|0)!=(0|0);
  34614. $8 = $7 ? $$0 : $0;
  34615. return ($8|0);
  34616. }
  34617. function ___mo_lookup($0,$1,$2) {
  34618. $0 = $0|0;
  34619. $1 = $1|0;
  34620. $2 = $2|0;
  34621. var $$ = 0, $$090 = 0, $$094 = 0, $$191 = 0, $$195 = 0, $$4 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0;
  34622. var $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0;
  34623. var $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0;
  34624. var $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, $or$cond102 = 0, $or$cond104 = 0, label = 0, sp = 0;
  34625. sp = STACKTOP;
  34626. $3 = HEAP32[$0>>2]|0;
  34627. $4 = (($3) + 1794895138)|0;
  34628. $5 = ((($0)) + 8|0);
  34629. $6 = HEAP32[$5>>2]|0;
  34630. $7 = (_swapc($6,$4)|0);
  34631. $8 = ((($0)) + 12|0);
  34632. $9 = HEAP32[$8>>2]|0;
  34633. $10 = (_swapc($9,$4)|0);
  34634. $11 = ((($0)) + 16|0);
  34635. $12 = HEAP32[$11>>2]|0;
  34636. $13 = (_swapc($12,$4)|0);
  34637. $14 = $1 >>> 2;
  34638. $15 = ($7>>>0)<($14>>>0);
  34639. L1: do {
  34640. if ($15) {
  34641. $16 = $7 << 2;
  34642. $17 = (($1) - ($16))|0;
  34643. $18 = ($10>>>0)<($17>>>0);
  34644. $19 = ($13>>>0)<($17>>>0);
  34645. $or$cond = $18 & $19;
  34646. if ($or$cond) {
  34647. $20 = $13 | $10;
  34648. $21 = $20 & 3;
  34649. $22 = ($21|0)==(0);
  34650. if ($22) {
  34651. $23 = $10 >>> 2;
  34652. $24 = $13 >>> 2;
  34653. $$090 = 0;$$094 = $7;
  34654. while(1) {
  34655. $25 = $$094 >>> 1;
  34656. $26 = (($$090) + ($25))|0;
  34657. $27 = $26 << 1;
  34658. $28 = (($27) + ($23))|0;
  34659. $29 = (($0) + ($28<<2)|0);
  34660. $30 = HEAP32[$29>>2]|0;
  34661. $31 = (_swapc($30,$4)|0);
  34662. $32 = (($28) + 1)|0;
  34663. $33 = (($0) + ($32<<2)|0);
  34664. $34 = HEAP32[$33>>2]|0;
  34665. $35 = (_swapc($34,$4)|0);
  34666. $36 = ($35>>>0)<($1>>>0);
  34667. $37 = (($1) - ($35))|0;
  34668. $38 = ($31>>>0)<($37>>>0);
  34669. $or$cond102 = $36 & $38;
  34670. if (!($or$cond102)) {
  34671. $$4 = 0;
  34672. break L1;
  34673. }
  34674. $39 = (($35) + ($31))|0;
  34675. $40 = (($0) + ($39)|0);
  34676. $41 = HEAP8[$40>>0]|0;
  34677. $42 = ($41<<24>>24)==(0);
  34678. if (!($42)) {
  34679. $$4 = 0;
  34680. break L1;
  34681. }
  34682. $43 = (($0) + ($35)|0);
  34683. $44 = (_strcmp($2,$43)|0);
  34684. $45 = ($44|0)==(0);
  34685. if ($45) {
  34686. break;
  34687. }
  34688. $62 = ($$094|0)==(1);
  34689. $63 = ($44|0)<(0);
  34690. $64 = (($$094) - ($25))|0;
  34691. $$195 = $63 ? $25 : $64;
  34692. $$191 = $63 ? $$090 : $26;
  34693. if ($62) {
  34694. $$4 = 0;
  34695. break L1;
  34696. } else {
  34697. $$090 = $$191;$$094 = $$195;
  34698. }
  34699. }
  34700. $46 = (($27) + ($24))|0;
  34701. $47 = (($0) + ($46<<2)|0);
  34702. $48 = HEAP32[$47>>2]|0;
  34703. $49 = (_swapc($48,$4)|0);
  34704. $50 = (($46) + 1)|0;
  34705. $51 = (($0) + ($50<<2)|0);
  34706. $52 = HEAP32[$51>>2]|0;
  34707. $53 = (_swapc($52,$4)|0);
  34708. $54 = ($53>>>0)<($1>>>0);
  34709. $55 = (($1) - ($53))|0;
  34710. $56 = ($49>>>0)<($55>>>0);
  34711. $or$cond104 = $54 & $56;
  34712. if ($or$cond104) {
  34713. $57 = (($0) + ($53)|0);
  34714. $58 = (($53) + ($49))|0;
  34715. $59 = (($0) + ($58)|0);
  34716. $60 = HEAP8[$59>>0]|0;
  34717. $61 = ($60<<24>>24)==(0);
  34718. $$ = $61 ? $57 : 0;
  34719. $$4 = $$;
  34720. } else {
  34721. $$4 = 0;
  34722. }
  34723. } else {
  34724. $$4 = 0;
  34725. }
  34726. } else {
  34727. $$4 = 0;
  34728. }
  34729. } else {
  34730. $$4 = 0;
  34731. }
  34732. } while(0);
  34733. return ($$4|0);
  34734. }
  34735. function _swapc($0,$1) {
  34736. $0 = $0|0;
  34737. $1 = $1|0;
  34738. var $$ = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  34739. sp = STACKTOP;
  34740. $2 = ($1|0)==(0);
  34741. $3 = (_llvm_bswap_i32(($0|0))|0);
  34742. $$ = $2 ? $0 : $3;
  34743. return ($$|0);
  34744. }
  34745. function ___fwritex($0,$1,$2) {
  34746. $0 = $0|0;
  34747. $1 = $1|0;
  34748. $2 = $2|0;
  34749. var $$038 = 0, $$042 = 0, $$1 = 0, $$139 = 0, $$141 = 0, $$143 = 0, $$pre = 0, $$pre47 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0;
  34750. var $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0;
  34751. var label = 0, sp = 0;
  34752. sp = STACKTOP;
  34753. $3 = ((($2)) + 16|0);
  34754. $4 = HEAP32[$3>>2]|0;
  34755. $5 = ($4|0)==(0|0);
  34756. if ($5) {
  34757. $7 = (___towrite($2)|0);
  34758. $8 = ($7|0)==(0);
  34759. if ($8) {
  34760. $$pre = HEAP32[$3>>2]|0;
  34761. $12 = $$pre;
  34762. label = 5;
  34763. } else {
  34764. $$1 = 0;
  34765. }
  34766. } else {
  34767. $6 = $4;
  34768. $12 = $6;
  34769. label = 5;
  34770. }
  34771. L5: do {
  34772. if ((label|0) == 5) {
  34773. $9 = ((($2)) + 20|0);
  34774. $10 = HEAP32[$9>>2]|0;
  34775. $11 = (($12) - ($10))|0;
  34776. $13 = ($11>>>0)<($1>>>0);
  34777. $14 = $10;
  34778. if ($13) {
  34779. $15 = ((($2)) + 36|0);
  34780. $16 = HEAP32[$15>>2]|0;
  34781. $17 = (FUNCTION_TABLE_iiii[$16 & 15]($2,$0,$1)|0);
  34782. $$1 = $17;
  34783. break;
  34784. }
  34785. $18 = ((($2)) + 75|0);
  34786. $19 = HEAP8[$18>>0]|0;
  34787. $20 = ($19<<24>>24)>(-1);
  34788. L10: do {
  34789. if ($20) {
  34790. $$038 = $1;
  34791. while(1) {
  34792. $21 = ($$038|0)==(0);
  34793. if ($21) {
  34794. $$139 = 0;$$141 = $0;$$143 = $1;$31 = $14;
  34795. break L10;
  34796. }
  34797. $22 = (($$038) + -1)|0;
  34798. $23 = (($0) + ($22)|0);
  34799. $24 = HEAP8[$23>>0]|0;
  34800. $25 = ($24<<24>>24)==(10);
  34801. if ($25) {
  34802. break;
  34803. } else {
  34804. $$038 = $22;
  34805. }
  34806. }
  34807. $26 = ((($2)) + 36|0);
  34808. $27 = HEAP32[$26>>2]|0;
  34809. $28 = (FUNCTION_TABLE_iiii[$27 & 15]($2,$0,$$038)|0);
  34810. $29 = ($28>>>0)<($$038>>>0);
  34811. if ($29) {
  34812. $$1 = $28;
  34813. break L5;
  34814. }
  34815. $30 = (($0) + ($$038)|0);
  34816. $$042 = (($1) - ($$038))|0;
  34817. $$pre47 = HEAP32[$9>>2]|0;
  34818. $$139 = $$038;$$141 = $30;$$143 = $$042;$31 = $$pre47;
  34819. } else {
  34820. $$139 = 0;$$141 = $0;$$143 = $1;$31 = $14;
  34821. }
  34822. } while(0);
  34823. _memcpy(($31|0),($$141|0),($$143|0))|0;
  34824. $32 = HEAP32[$9>>2]|0;
  34825. $33 = (($32) + ($$143)|0);
  34826. HEAP32[$9>>2] = $33;
  34827. $34 = (($$139) + ($$143))|0;
  34828. $$1 = $34;
  34829. }
  34830. } while(0);
  34831. return ($$1|0);
  34832. }
  34833. function ___towrite($0) {
  34834. $0 = $0|0;
  34835. var $$0 = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0;
  34836. var $9 = 0, label = 0, sp = 0;
  34837. sp = STACKTOP;
  34838. $1 = ((($0)) + 74|0);
  34839. $2 = HEAP8[$1>>0]|0;
  34840. $3 = $2 << 24 >> 24;
  34841. $4 = (($3) + 255)|0;
  34842. $5 = $4 | $3;
  34843. $6 = $5&255;
  34844. HEAP8[$1>>0] = $6;
  34845. $7 = HEAP32[$0>>2]|0;
  34846. $8 = $7 & 8;
  34847. $9 = ($8|0)==(0);
  34848. if ($9) {
  34849. $11 = ((($0)) + 8|0);
  34850. HEAP32[$11>>2] = 0;
  34851. $12 = ((($0)) + 4|0);
  34852. HEAP32[$12>>2] = 0;
  34853. $13 = ((($0)) + 44|0);
  34854. $14 = HEAP32[$13>>2]|0;
  34855. $15 = ((($0)) + 28|0);
  34856. HEAP32[$15>>2] = $14;
  34857. $16 = ((($0)) + 20|0);
  34858. HEAP32[$16>>2] = $14;
  34859. $17 = ((($0)) + 48|0);
  34860. $18 = HEAP32[$17>>2]|0;
  34861. $19 = (($14) + ($18)|0);
  34862. $20 = ((($0)) + 16|0);
  34863. HEAP32[$20>>2] = $19;
  34864. $$0 = 0;
  34865. } else {
  34866. $10 = $7 | 32;
  34867. HEAP32[$0>>2] = $10;
  34868. $$0 = -1;
  34869. }
  34870. return ($$0|0);
  34871. }
  34872. function _sn_write($0,$1,$2) {
  34873. $0 = $0|0;
  34874. $1 = $1|0;
  34875. $2 = $2|0;
  34876. var $$ = 0, $10 = 0, $11 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  34877. sp = STACKTOP;
  34878. $3 = ((($0)) + 16|0);
  34879. $4 = HEAP32[$3>>2]|0;
  34880. $5 = ((($0)) + 20|0);
  34881. $6 = HEAP32[$5>>2]|0;
  34882. $7 = $6;
  34883. $8 = (($4) - ($7))|0;
  34884. $9 = ($8>>>0)>($2>>>0);
  34885. $$ = $9 ? $2 : $8;
  34886. _memcpy(($6|0),($1|0),($$|0))|0;
  34887. $10 = HEAP32[$5>>2]|0;
  34888. $11 = (($10) + ($$)|0);
  34889. HEAP32[$5>>2] = $11;
  34890. return ($2|0);
  34891. }
  34892. function ___floatscan($0,$1,$2) {
  34893. $0 = $0|0;
  34894. $1 = $1|0;
  34895. $2 = $2|0;
  34896. var $$0 = 0, $$0105$ph = 0, $$0106$ph = 0, $$0107$lcssa = 0, $$0107127 = 0, $$0113 = 0, $$0114 = 0.0, $$1$lcssa = 0, $$1108 = 0, $$1128 = 0, $$2 = 0, $$2109125 = 0, $$3110 = 0, $$3126 = 0, $$4 = 0, $$4111 = 0, $$5 = 0, $$6 = 0, $$in = 0, $$old8 = 0;
  34897. var $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0, $114 = 0, $115 = 0, $116 = 0, $117 = 0;
  34898. var $118 = 0, $119 = 0, $12 = 0, $120 = 0, $121 = 0, $122 = 0, $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 0, $128 = 0.0, $129 = 0, $13 = 0, $130 = 0, $131 = 0, $132 = 0, $133 = 0.0, $14 = 0, $15 = 0;
  34899. var $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0;
  34900. var $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0;
  34901. var $53 = 0.0, $54 = 0.0, $55 = 0.0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0;
  34902. var $71 = 0, $72 = 0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0, $89 = 0;
  34903. var $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $or$cond = 0, $or$cond5 = 0, $or$cond7 = 0, $or$cond9 = 0, label = 0, sp = 0;
  34904. sp = STACKTOP;
  34905. switch ($1|0) {
  34906. case 0: {
  34907. $$0105$ph = -149;$$0106$ph = 24;
  34908. label = 4;
  34909. break;
  34910. }
  34911. case 1: {
  34912. $$0105$ph = -1074;$$0106$ph = 53;
  34913. label = 4;
  34914. break;
  34915. }
  34916. case 2: {
  34917. $$0105$ph = -1074;$$0106$ph = 53;
  34918. label = 4;
  34919. break;
  34920. }
  34921. default: {
  34922. $$0114 = 0.0;
  34923. }
  34924. }
  34925. L4: do {
  34926. if ((label|0) == 4) {
  34927. $3 = ((($0)) + 4|0);
  34928. $4 = ((($0)) + 100|0);
  34929. while(1) {
  34930. $5 = HEAP32[$3>>2]|0;
  34931. $6 = HEAP32[$4>>2]|0;
  34932. $7 = ($5>>>0)<($6>>>0);
  34933. if ($7) {
  34934. $8 = ((($5)) + 1|0);
  34935. HEAP32[$3>>2] = $8;
  34936. $9 = HEAP8[$5>>0]|0;
  34937. $10 = $9&255;
  34938. $12 = $10;
  34939. } else {
  34940. $11 = (___shgetc($0)|0);
  34941. $12 = $11;
  34942. }
  34943. $13 = (_isspace($12)|0);
  34944. $14 = ($13|0)==(0);
  34945. if ($14) {
  34946. break;
  34947. }
  34948. }
  34949. L13: do {
  34950. switch ($12|0) {
  34951. case 43: case 45: {
  34952. $15 = ($12|0)==(45);
  34953. $16 = $15&1;
  34954. $17 = $16 << 1;
  34955. $18 = (1 - ($17))|0;
  34956. $19 = HEAP32[$3>>2]|0;
  34957. $20 = HEAP32[$4>>2]|0;
  34958. $21 = ($19>>>0)<($20>>>0);
  34959. if ($21) {
  34960. $22 = ((($19)) + 1|0);
  34961. HEAP32[$3>>2] = $22;
  34962. $23 = HEAP8[$19>>0]|0;
  34963. $24 = $23&255;
  34964. $$0 = $24;$$0113 = $18;
  34965. break L13;
  34966. } else {
  34967. $25 = (___shgetc($0)|0);
  34968. $$0 = $25;$$0113 = $18;
  34969. break L13;
  34970. }
  34971. break;
  34972. }
  34973. default: {
  34974. $$0 = $12;$$0113 = 1;
  34975. }
  34976. }
  34977. } while(0);
  34978. $$0107127 = 0;$$1128 = $$0;
  34979. while(1) {
  34980. $26 = $$1128 | 32;
  34981. $27 = (18079 + ($$0107127)|0);
  34982. $28 = HEAP8[$27>>0]|0;
  34983. $29 = $28 << 24 >> 24;
  34984. $30 = ($26|0)==($29|0);
  34985. if (!($30)) {
  34986. $$0107$lcssa = $$0107127;$$1$lcssa = $$1128;
  34987. break;
  34988. }
  34989. $31 = ($$0107127>>>0)<(7);
  34990. do {
  34991. if ($31) {
  34992. $32 = HEAP32[$3>>2]|0;
  34993. $33 = HEAP32[$4>>2]|0;
  34994. $34 = ($32>>>0)<($33>>>0);
  34995. if ($34) {
  34996. $35 = ((($32)) + 1|0);
  34997. HEAP32[$3>>2] = $35;
  34998. $36 = HEAP8[$32>>0]|0;
  34999. $37 = $36&255;
  35000. $$2 = $37;
  35001. break;
  35002. } else {
  35003. $38 = (___shgetc($0)|0);
  35004. $$2 = $38;
  35005. break;
  35006. }
  35007. } else {
  35008. $$2 = $$1128;
  35009. }
  35010. } while(0);
  35011. $39 = (($$0107127) + 1)|0;
  35012. $40 = ($39>>>0)<(8);
  35013. if ($40) {
  35014. $$0107127 = $39;$$1128 = $$2;
  35015. } else {
  35016. $$0107$lcssa = $39;$$1$lcssa = $$2;
  35017. break;
  35018. }
  35019. }
  35020. L29: do {
  35021. switch ($$0107$lcssa|0) {
  35022. case 8: {
  35023. break;
  35024. }
  35025. case 3: {
  35026. label = 23;
  35027. break;
  35028. }
  35029. default: {
  35030. $41 = ($$0107$lcssa>>>0)>(3);
  35031. $42 = ($2|0)!=(0);
  35032. $or$cond5 = $42 & $41;
  35033. if ($or$cond5) {
  35034. $43 = ($$0107$lcssa|0)==(8);
  35035. if ($43) {
  35036. break L29;
  35037. } else {
  35038. label = 23;
  35039. break L29;
  35040. }
  35041. }
  35042. $56 = ($$0107$lcssa|0)==(0);
  35043. L34: do {
  35044. if ($56) {
  35045. $$2109125 = 0;$$3126 = $$1$lcssa;
  35046. while(1) {
  35047. $57 = $$3126 | 32;
  35048. $58 = (18088 + ($$2109125)|0);
  35049. $59 = HEAP8[$58>>0]|0;
  35050. $60 = $59 << 24 >> 24;
  35051. $61 = ($57|0)==($60|0);
  35052. if (!($61)) {
  35053. $$3110 = $$2109125;$$5 = $$3126;
  35054. break L34;
  35055. }
  35056. $62 = ($$2109125>>>0)<(2);
  35057. do {
  35058. if ($62) {
  35059. $63 = HEAP32[$3>>2]|0;
  35060. $64 = HEAP32[$4>>2]|0;
  35061. $65 = ($63>>>0)<($64>>>0);
  35062. if ($65) {
  35063. $66 = ((($63)) + 1|0);
  35064. HEAP32[$3>>2] = $66;
  35065. $67 = HEAP8[$63>>0]|0;
  35066. $68 = $67&255;
  35067. $$4 = $68;
  35068. break;
  35069. } else {
  35070. $69 = (___shgetc($0)|0);
  35071. $$4 = $69;
  35072. break;
  35073. }
  35074. } else {
  35075. $$4 = $$3126;
  35076. }
  35077. } while(0);
  35078. $70 = (($$2109125) + 1)|0;
  35079. $71 = ($70>>>0)<(3);
  35080. if ($71) {
  35081. $$2109125 = $70;$$3126 = $$4;
  35082. } else {
  35083. $$3110 = $70;$$5 = $$4;
  35084. break;
  35085. }
  35086. }
  35087. } else {
  35088. $$3110 = $$0107$lcssa;$$5 = $$1$lcssa;
  35089. }
  35090. } while(0);
  35091. switch ($$3110|0) {
  35092. case 3: {
  35093. $72 = HEAP32[$3>>2]|0;
  35094. $73 = HEAP32[$4>>2]|0;
  35095. $74 = ($72>>>0)<($73>>>0);
  35096. if ($74) {
  35097. $75 = ((($72)) + 1|0);
  35098. HEAP32[$3>>2] = $75;
  35099. $76 = HEAP8[$72>>0]|0;
  35100. $77 = $76&255;
  35101. $80 = $77;
  35102. } else {
  35103. $78 = (___shgetc($0)|0);
  35104. $80 = $78;
  35105. }
  35106. $79 = ($80|0)==(40);
  35107. if ($79) {
  35108. $$4111 = 1;
  35109. } else {
  35110. $81 = HEAP32[$4>>2]|0;
  35111. $82 = ($81|0)==(0|0);
  35112. if ($82) {
  35113. $$0114 = nan;
  35114. break L4;
  35115. }
  35116. $83 = HEAP32[$3>>2]|0;
  35117. $84 = ((($83)) + -1|0);
  35118. HEAP32[$3>>2] = $84;
  35119. $$0114 = nan;
  35120. break L4;
  35121. }
  35122. while(1) {
  35123. $85 = HEAP32[$3>>2]|0;
  35124. $86 = HEAP32[$4>>2]|0;
  35125. $87 = ($85>>>0)<($86>>>0);
  35126. if ($87) {
  35127. $88 = ((($85)) + 1|0);
  35128. HEAP32[$3>>2] = $88;
  35129. $89 = HEAP8[$85>>0]|0;
  35130. $90 = $89&255;
  35131. $93 = $90;
  35132. } else {
  35133. $91 = (___shgetc($0)|0);
  35134. $93 = $91;
  35135. }
  35136. $92 = (($93) + -48)|0;
  35137. $94 = ($92>>>0)<(10);
  35138. $95 = (($93) + -65)|0;
  35139. $96 = ($95>>>0)<(26);
  35140. $or$cond = $94 | $96;
  35141. if (!($or$cond)) {
  35142. $97 = (($93) + -97)|0;
  35143. $98 = ($97>>>0)<(26);
  35144. $99 = ($93|0)==(95);
  35145. $or$cond7 = $99 | $98;
  35146. if (!($or$cond7)) {
  35147. break;
  35148. }
  35149. }
  35150. $111 = (($$4111) + 1)|0;
  35151. $$4111 = $111;
  35152. }
  35153. $100 = ($93|0)==(41);
  35154. if ($100) {
  35155. $$0114 = nan;
  35156. break L4;
  35157. }
  35158. $101 = HEAP32[$4>>2]|0;
  35159. $102 = ($101|0)==(0|0);
  35160. if (!($102)) {
  35161. $103 = HEAP32[$3>>2]|0;
  35162. $104 = ((($103)) + -1|0);
  35163. HEAP32[$3>>2] = $104;
  35164. }
  35165. if (!($42)) {
  35166. $106 = (___errno_location()|0);
  35167. HEAP32[$106>>2] = 22;
  35168. ___shlim($0,0);
  35169. $$0114 = 0.0;
  35170. break L4;
  35171. }
  35172. $105 = ($$4111|0)==(0);
  35173. if ($105) {
  35174. $$0114 = nan;
  35175. break L4;
  35176. } else {
  35177. $$in = $$4111;
  35178. }
  35179. while(1) {
  35180. $107 = (($$in) + -1)|0;
  35181. if (!($102)) {
  35182. $108 = HEAP32[$3>>2]|0;
  35183. $109 = ((($108)) + -1|0);
  35184. HEAP32[$3>>2] = $109;
  35185. }
  35186. $110 = ($107|0)==(0);
  35187. if ($110) {
  35188. $$0114 = nan;
  35189. break L4;
  35190. } else {
  35191. $$in = $107;
  35192. }
  35193. }
  35194. break;
  35195. }
  35196. case 0: {
  35197. $117 = ($$5|0)==(48);
  35198. if ($117) {
  35199. $118 = HEAP32[$3>>2]|0;
  35200. $119 = HEAP32[$4>>2]|0;
  35201. $120 = ($118>>>0)<($119>>>0);
  35202. if ($120) {
  35203. $121 = ((($118)) + 1|0);
  35204. HEAP32[$3>>2] = $121;
  35205. $122 = HEAP8[$118>>0]|0;
  35206. $123 = $122&255;
  35207. $126 = $123;
  35208. } else {
  35209. $124 = (___shgetc($0)|0);
  35210. $126 = $124;
  35211. }
  35212. $125 = $126 | 32;
  35213. $127 = ($125|0)==(120);
  35214. if ($127) {
  35215. $128 = (+_hexfloat($0,$$0106$ph,$$0105$ph,$$0113,$2));
  35216. $$0114 = $128;
  35217. break L4;
  35218. }
  35219. $129 = HEAP32[$4>>2]|0;
  35220. $130 = ($129|0)==(0|0);
  35221. if ($130) {
  35222. $$6 = 48;
  35223. } else {
  35224. $131 = HEAP32[$3>>2]|0;
  35225. $132 = ((($131)) + -1|0);
  35226. HEAP32[$3>>2] = $132;
  35227. $$6 = 48;
  35228. }
  35229. } else {
  35230. $$6 = $$5;
  35231. }
  35232. $133 = (+_decfloat($0,$$6,$$0106$ph,$$0105$ph,$$0113,$2));
  35233. $$0114 = $133;
  35234. break L4;
  35235. break;
  35236. }
  35237. default: {
  35238. $112 = HEAP32[$4>>2]|0;
  35239. $113 = ($112|0)==(0|0);
  35240. if (!($113)) {
  35241. $114 = HEAP32[$3>>2]|0;
  35242. $115 = ((($114)) + -1|0);
  35243. HEAP32[$3>>2] = $115;
  35244. }
  35245. $116 = (___errno_location()|0);
  35246. HEAP32[$116>>2] = 22;
  35247. ___shlim($0,0);
  35248. $$0114 = 0.0;
  35249. break L4;
  35250. }
  35251. }
  35252. }
  35253. }
  35254. } while(0);
  35255. if ((label|0) == 23) {
  35256. $44 = HEAP32[$4>>2]|0;
  35257. $45 = ($44|0)==(0|0);
  35258. if (!($45)) {
  35259. $46 = HEAP32[$3>>2]|0;
  35260. $47 = ((($46)) + -1|0);
  35261. HEAP32[$3>>2] = $47;
  35262. }
  35263. $48 = ($2|0)!=(0);
  35264. $49 = ($$0107$lcssa>>>0)>(3);
  35265. $or$cond9 = $48 & $49;
  35266. if ($or$cond9) {
  35267. $$1108 = $$0107$lcssa;
  35268. while(1) {
  35269. if (!($45)) {
  35270. $50 = HEAP32[$3>>2]|0;
  35271. $51 = ((($50)) + -1|0);
  35272. HEAP32[$3>>2] = $51;
  35273. }
  35274. $52 = (($$1108) + -1)|0;
  35275. $$old8 = ($52>>>0)>(3);
  35276. if ($$old8) {
  35277. $$1108 = $52;
  35278. } else {
  35279. break;
  35280. }
  35281. }
  35282. }
  35283. }
  35284. $53 = (+($$0113|0));
  35285. $54 = $53 * inf;
  35286. $55 = $54;
  35287. $$0114 = $55;
  35288. }
  35289. } while(0);
  35290. return (+$$0114);
  35291. }
  35292. function _hexfloat($0,$1,$2,$3,$4) {
  35293. $0 = $0|0;
  35294. $1 = $1|0;
  35295. $2 = $2|0;
  35296. $3 = $3|0;
  35297. $4 = $4|0;
  35298. var $$0 = 0, $$0133 = 0, $$0142 = 0, $$0146 = 0, $$0148 = 0, $$0148$ = 0, $$0151 = 0.0, $$0152 = 0.0, $$0155 = 0.0, $$0155$ = 0.0, $$0159 = 0, $$0165 = 0.0, $$0166 = 0, $$0166169 = 0, $$0166170 = 0, $$1$ph = 0, $$1147 = 0, $$1149 = 0, $$1153 = 0.0, $$1156 = 0.0;
  35299. var $$1160 = 0, $$2 = 0, $$2$lcssa = 0, $$2144 = 0, $$2150 = 0, $$2154 = 0.0, $$2157 = 0.0, $$2161 = 0, $$3145 = 0, $$3158$lcssa = 0.0, $$3158179 = 0.0, $$3162$lcssa = 0, $$3162183 = 0, $$4 = 0.0, $$4163$lcssa = 0, $$4163178 = 0, $$5 = 0.0, $$5164 = 0, $$6 = 0, $$pn = 0.0;
  35300. var $$pre = 0.0, $$pre$phiZ2D = 0.0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0, $114 = 0, $115 = 0;
  35301. var $116 = 0, $117 = 0, $118 = 0, $119 = 0, $12 = 0, $120 = 0, $121 = 0, $122 = 0, $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 0, $128 = 0, $129 = 0, $13 = 0, $130 = 0, $131 = 0, $132 = 0, $133 = 0;
  35302. var $134 = 0, $135 = 0, $136 = 0, $137 = 0, $138 = 0, $139 = 0, $14 = 0, $140 = 0, $141 = 0, $142 = 0.0, $143 = 0.0, $144 = 0, $145 = 0, $146 = 0, $147 = 0, $148 = 0, $149 = 0, $15 = 0, $150 = 0, $151 = 0;
  35303. var $152 = 0, $153 = 0.0, $154 = 0.0, $155 = 0.0, $156 = 0, $157 = 0, $158 = 0, $159 = 0, $16 = 0, $160 = 0, $161 = 0, $162 = 0, $163 = 0, $164 = 0, $165 = 0, $166 = 0.0, $167 = 0.0, $168 = 0.0, $169 = 0, $17 = 0;
  35304. var $170 = 0, $171 = 0.0, $172 = 0, $173 = 0, $174 = 0, $175 = 0, $176 = 0, $177 = 0, $178 = 0, $179 = 0, $18 = 0, $180 = 0, $181 = 0, $182 = 0, $183 = 0, $184 = 0, $185 = 0, $186 = 0, $187 = 0, $188 = 0;
  35305. var $189 = 0, $19 = 0, $190 = 0, $191 = 0, $192 = 0, $193 = 0, $194 = 0, $195 = 0, $196 = 0.0, $197 = 0, $198 = 0.0, $199 = 0.0, $20 = 0, $200 = 0, $201 = 0, $202 = 0, $203 = 0, $204 = 0, $205 = 0.0, $206 = 0.0;
  35306. var $207 = 0.0, $208 = 0.0, $209 = 0.0, $21 = 0, $210 = 0.0, $211 = 0, $212 = 0, $213 = 0.0, $214 = 0, $215 = 0, $216 = 0, $217 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0;
  35307. var $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0;
  35308. var $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0.0, $67 = 0.0;
  35309. var $68 = 0.0, $69 = 0.0, $7 = 0, $70 = 0, $71 = 0, $72 = 0.0, $73 = 0.0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0;
  35310. var $86 = 0, $87 = 0, $88 = 0, $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0.0, $96 = 0.0, $97 = 0, $98 = 0, $99 = 0, $not$ = 0, $or$cond = 0, $or$cond168 = 0, $or$cond206 = 0, $or$cond4 = 0;
  35311. var $or$cond6 = 0, label = 0, sp = 0;
  35312. sp = STACKTOP;
  35313. $5 = ((($0)) + 4|0);
  35314. $6 = HEAP32[$5>>2]|0;
  35315. $7 = ((($0)) + 100|0);
  35316. $8 = HEAP32[$7>>2]|0;
  35317. $9 = ($6>>>0)<($8>>>0);
  35318. if ($9) {
  35319. $10 = ((($6)) + 1|0);
  35320. HEAP32[$5>>2] = $10;
  35321. $11 = HEAP8[$6>>0]|0;
  35322. $12 = $11&255;
  35323. $$0 = $12;$$0142 = 0;
  35324. } else {
  35325. $13 = (___shgetc($0)|0);
  35326. $$0 = $13;$$0142 = 0;
  35327. }
  35328. L4: while(1) {
  35329. switch ($$0|0) {
  35330. case 46: {
  35331. label = 8;
  35332. break L4;
  35333. break;
  35334. }
  35335. case 48: {
  35336. break;
  35337. }
  35338. default: {
  35339. $$0146 = 0;$$0148 = 0;$$0152 = 1.0;$$0155 = 0.0;$$0159 = 0;$$2 = $$0;$$2144 = $$0142;$101 = 0;$53 = 0;$55 = 0;$99 = 0;
  35340. break L4;
  35341. }
  35342. }
  35343. $14 = HEAP32[$5>>2]|0;
  35344. $15 = HEAP32[$7>>2]|0;
  35345. $16 = ($14>>>0)<($15>>>0);
  35346. if ($16) {
  35347. $17 = ((($14)) + 1|0);
  35348. HEAP32[$5>>2] = $17;
  35349. $18 = HEAP8[$14>>0]|0;
  35350. $19 = $18&255;
  35351. $$0 = $19;$$0142 = 1;
  35352. continue;
  35353. } else {
  35354. $20 = (___shgetc($0)|0);
  35355. $$0 = $20;$$0142 = 1;
  35356. continue;
  35357. }
  35358. }
  35359. if ((label|0) == 8) {
  35360. $21 = HEAP32[$5>>2]|0;
  35361. $22 = HEAP32[$7>>2]|0;
  35362. $23 = ($21>>>0)<($22>>>0);
  35363. if ($23) {
  35364. $24 = ((($21)) + 1|0);
  35365. HEAP32[$5>>2] = $24;
  35366. $25 = HEAP8[$21>>0]|0;
  35367. $26 = $25&255;
  35368. $$1$ph = $26;
  35369. } else {
  35370. $27 = (___shgetc($0)|0);
  35371. $$1$ph = $27;
  35372. }
  35373. $28 = ($$1$ph|0)==(48);
  35374. if ($28) {
  35375. $36 = 0;$37 = 0;
  35376. while(1) {
  35377. $29 = HEAP32[$5>>2]|0;
  35378. $30 = HEAP32[$7>>2]|0;
  35379. $31 = ($29>>>0)<($30>>>0);
  35380. if ($31) {
  35381. $32 = ((($29)) + 1|0);
  35382. HEAP32[$5>>2] = $32;
  35383. $33 = HEAP8[$29>>0]|0;
  35384. $34 = $33&255;
  35385. $41 = $34;
  35386. } else {
  35387. $35 = (___shgetc($0)|0);
  35388. $41 = $35;
  35389. }
  35390. $38 = (_i64Add(($36|0),($37|0),-1,-1)|0);
  35391. $39 = tempRet0;
  35392. $40 = ($41|0)==(48);
  35393. if ($40) {
  35394. $36 = $38;$37 = $39;
  35395. } else {
  35396. $$0146 = 1;$$0148 = 0;$$0152 = 1.0;$$0155 = 0.0;$$0159 = 0;$$2 = $41;$$2144 = 1;$101 = $39;$53 = 0;$55 = 0;$99 = $38;
  35397. break;
  35398. }
  35399. }
  35400. } else {
  35401. $$0146 = 1;$$0148 = 0;$$0152 = 1.0;$$0155 = 0.0;$$0159 = 0;$$2 = $$1$ph;$$2144 = $$0142;$101 = 0;$53 = 0;$55 = 0;$99 = 0;
  35402. }
  35403. }
  35404. while(1) {
  35405. $42 = (($$2) + -48)|0;
  35406. $43 = ($42>>>0)<(10);
  35407. $44 = ($$2|0)==(46);
  35408. if (!($43)) {
  35409. $45 = $$2 | 32;
  35410. $46 = (($45) + -97)|0;
  35411. $47 = ($46>>>0)<(6);
  35412. $or$cond6 = $44 | $47;
  35413. if (!($or$cond6)) {
  35414. $$2$lcssa = $$2;
  35415. break;
  35416. }
  35417. }
  35418. if ($44) {
  35419. $48 = ($$0146|0)==(0);
  35420. if ($48) {
  35421. $$1147 = 1;$$2150 = $$0148;$$2154 = $$0152;$$2157 = $$0155;$$2161 = $$0159;$$3145 = $$2144;$214 = $55;$215 = $53;$216 = $55;$217 = $53;
  35422. } else {
  35423. $$2$lcssa = 46;
  35424. break;
  35425. }
  35426. } else {
  35427. $49 = ($$2|0)>(57);
  35428. $50 = $$2 | 32;
  35429. $51 = (($50) + -87)|0;
  35430. $$0133 = $49 ? $51 : $42;
  35431. $52 = ($53|0)<(0);
  35432. $54 = ($55>>>0)<(8);
  35433. $56 = ($53|0)==(0);
  35434. $57 = $56 & $54;
  35435. $58 = $52 | $57;
  35436. do {
  35437. if ($58) {
  35438. $59 = $$0159 << 4;
  35439. $60 = (($$0133) + ($59))|0;
  35440. $$1149 = $$0148;$$1153 = $$0152;$$1156 = $$0155;$$1160 = $60;
  35441. } else {
  35442. $61 = ($53|0)<(0);
  35443. $62 = ($55>>>0)<(14);
  35444. $63 = ($53|0)==(0);
  35445. $64 = $63 & $62;
  35446. $65 = $61 | $64;
  35447. if ($65) {
  35448. $66 = (+($$0133|0));
  35449. $67 = $$0152 * 0.0625;
  35450. $68 = $67 * $66;
  35451. $69 = $$0155 + $68;
  35452. $$1149 = $$0148;$$1153 = $67;$$1156 = $69;$$1160 = $$0159;
  35453. break;
  35454. } else {
  35455. $70 = ($$0133|0)==(0);
  35456. $71 = ($$0148|0)!=(0);
  35457. $or$cond = $71 | $70;
  35458. $72 = $$0152 * 0.5;
  35459. $73 = $$0155 + $72;
  35460. $$0155$ = $or$cond ? $$0155 : $73;
  35461. $$0148$ = $or$cond ? $$0148 : 1;
  35462. $$1149 = $$0148$;$$1153 = $$0152;$$1156 = $$0155$;$$1160 = $$0159;
  35463. break;
  35464. }
  35465. }
  35466. } while(0);
  35467. $74 = (_i64Add(($55|0),($53|0),1,0)|0);
  35468. $75 = tempRet0;
  35469. $$1147 = $$0146;$$2150 = $$1149;$$2154 = $$1153;$$2157 = $$1156;$$2161 = $$1160;$$3145 = 1;$214 = $99;$215 = $101;$216 = $74;$217 = $75;
  35470. }
  35471. $76 = HEAP32[$5>>2]|0;
  35472. $77 = HEAP32[$7>>2]|0;
  35473. $78 = ($76>>>0)<($77>>>0);
  35474. if ($78) {
  35475. $79 = ((($76)) + 1|0);
  35476. HEAP32[$5>>2] = $79;
  35477. $80 = HEAP8[$76>>0]|0;
  35478. $81 = $80&255;
  35479. $$0146 = $$1147;$$0148 = $$2150;$$0152 = $$2154;$$0155 = $$2157;$$0159 = $$2161;$$2 = $81;$$2144 = $$3145;$101 = $215;$53 = $217;$55 = $216;$99 = $214;
  35480. continue;
  35481. } else {
  35482. $82 = (___shgetc($0)|0);
  35483. $$0146 = $$1147;$$0148 = $$2150;$$0152 = $$2154;$$0155 = $$2157;$$0159 = $$2161;$$2 = $82;$$2144 = $$3145;$101 = $215;$53 = $217;$55 = $216;$99 = $214;
  35484. continue;
  35485. }
  35486. }
  35487. $83 = ($$2144|0)==(0);
  35488. do {
  35489. if ($83) {
  35490. $84 = HEAP32[$7>>2]|0;
  35491. $85 = ($84|0)!=(0|0);
  35492. if ($85) {
  35493. $86 = HEAP32[$5>>2]|0;
  35494. $87 = ((($86)) + -1|0);
  35495. HEAP32[$5>>2] = $87;
  35496. }
  35497. $88 = ($4|0)==(0);
  35498. if ($88) {
  35499. ___shlim($0,0);
  35500. } else {
  35501. if ($85) {
  35502. $89 = HEAP32[$5>>2]|0;
  35503. $90 = ((($89)) + -1|0);
  35504. HEAP32[$5>>2] = $90;
  35505. }
  35506. $91 = ($$0146|0)==(0);
  35507. $92 = ($84|0)==(0|0);
  35508. $or$cond206 = $91 | $92;
  35509. if (!($or$cond206)) {
  35510. $93 = HEAP32[$5>>2]|0;
  35511. $94 = ((($93)) + -1|0);
  35512. HEAP32[$5>>2] = $94;
  35513. }
  35514. }
  35515. $95 = (+($3|0));
  35516. $96 = $95 * 0.0;
  35517. $$0165 = $96;
  35518. } else {
  35519. $97 = ($$0146|0)==(0);
  35520. $98 = $97 ? $55 : $99;
  35521. $100 = $97 ? $53 : $101;
  35522. $102 = ($53|0)<(0);
  35523. $103 = ($55>>>0)<(8);
  35524. $104 = ($53|0)==(0);
  35525. $105 = $104 & $103;
  35526. $106 = $102 | $105;
  35527. if ($106) {
  35528. $$3162183 = $$0159;$108 = $55;$109 = $53;
  35529. while(1) {
  35530. $107 = $$3162183 << 4;
  35531. $110 = (_i64Add(($108|0),($109|0),1,0)|0);
  35532. $111 = tempRet0;
  35533. $112 = ($111|0)<(0);
  35534. $113 = ($110>>>0)<(8);
  35535. $114 = ($111|0)==(0);
  35536. $115 = $114 & $113;
  35537. $116 = $112 | $115;
  35538. if ($116) {
  35539. $$3162183 = $107;$108 = $110;$109 = $111;
  35540. } else {
  35541. $$3162$lcssa = $107;
  35542. break;
  35543. }
  35544. }
  35545. } else {
  35546. $$3162$lcssa = $$0159;
  35547. }
  35548. $117 = $$2$lcssa | 32;
  35549. $118 = ($117|0)==(112);
  35550. if ($118) {
  35551. $119 = (_scanexp($0,$4)|0);
  35552. $120 = tempRet0;
  35553. $121 = ($119|0)==(0);
  35554. $122 = ($120|0)==(-2147483648);
  35555. $123 = $121 & $122;
  35556. if ($123) {
  35557. $124 = ($4|0)==(0);
  35558. if ($124) {
  35559. ___shlim($0,0);
  35560. $$0165 = 0.0;
  35561. break;
  35562. }
  35563. $125 = HEAP32[$7>>2]|0;
  35564. $126 = ($125|0)==(0|0);
  35565. if ($126) {
  35566. $137 = 0;$138 = 0;
  35567. } else {
  35568. $127 = HEAP32[$5>>2]|0;
  35569. $128 = ((($127)) + -1|0);
  35570. HEAP32[$5>>2] = $128;
  35571. $137 = 0;$138 = 0;
  35572. }
  35573. } else {
  35574. $137 = $119;$138 = $120;
  35575. }
  35576. } else {
  35577. $129 = HEAP32[$7>>2]|0;
  35578. $130 = ($129|0)==(0|0);
  35579. if ($130) {
  35580. $137 = 0;$138 = 0;
  35581. } else {
  35582. $131 = HEAP32[$5>>2]|0;
  35583. $132 = ((($131)) + -1|0);
  35584. HEAP32[$5>>2] = $132;
  35585. $137 = 0;$138 = 0;
  35586. }
  35587. }
  35588. $133 = (_bitshift64Shl(($98|0),($100|0),2)|0);
  35589. $134 = tempRet0;
  35590. $135 = (_i64Add(($133|0),($134|0),-32,-1)|0);
  35591. $136 = tempRet0;
  35592. $139 = (_i64Add(($135|0),($136|0),($137|0),($138|0))|0);
  35593. $140 = tempRet0;
  35594. $141 = ($$3162$lcssa|0)==(0);
  35595. if ($141) {
  35596. $142 = (+($3|0));
  35597. $143 = $142 * 0.0;
  35598. $$0165 = $143;
  35599. break;
  35600. }
  35601. $144 = (0 - ($2))|0;
  35602. $145 = ($144|0)<(0);
  35603. $146 = $145 << 31 >> 31;
  35604. $147 = ($140|0)>($146|0);
  35605. $148 = ($139>>>0)>($144>>>0);
  35606. $149 = ($140|0)==($146|0);
  35607. $150 = $149 & $148;
  35608. $151 = $147 | $150;
  35609. if ($151) {
  35610. $152 = (___errno_location()|0);
  35611. HEAP32[$152>>2] = 34;
  35612. $153 = (+($3|0));
  35613. $154 = $153 * 1.7976931348623157E+308;
  35614. $155 = $154 * 1.7976931348623157E+308;
  35615. $$0165 = $155;
  35616. break;
  35617. }
  35618. $156 = (($2) + -106)|0;
  35619. $157 = ($156|0)<(0);
  35620. $158 = $157 << 31 >> 31;
  35621. $159 = ($140|0)<($158|0);
  35622. $160 = ($139>>>0)<($156>>>0);
  35623. $161 = ($140|0)==($158|0);
  35624. $162 = $161 & $160;
  35625. $163 = $159 | $162;
  35626. if ($163) {
  35627. $165 = (___errno_location()|0);
  35628. HEAP32[$165>>2] = 34;
  35629. $166 = (+($3|0));
  35630. $167 = $166 * 2.2250738585072014E-308;
  35631. $168 = $167 * 2.2250738585072014E-308;
  35632. $$0165 = $168;
  35633. break;
  35634. }
  35635. $164 = ($$3162$lcssa|0)>(-1);
  35636. if ($164) {
  35637. $$3158179 = $$0155;$$4163178 = $$3162$lcssa;$173 = $139;$174 = $140;
  35638. while(1) {
  35639. $169 = !($$3158179 >= 0.5);
  35640. $170 = $$4163178 << 1;
  35641. $171 = $$3158179 + -1.0;
  35642. $not$ = $169 ^ 1;
  35643. $172 = $not$&1;
  35644. $$5164 = $170 | $172;
  35645. $$pn = $169 ? $$3158179 : $171;
  35646. $$4 = $$3158179 + $$pn;
  35647. $175 = (_i64Add(($173|0),($174|0),-1,-1)|0);
  35648. $176 = tempRet0;
  35649. $177 = ($$5164|0)>(-1);
  35650. if ($177) {
  35651. $$3158179 = $$4;$$4163178 = $$5164;$173 = $175;$174 = $176;
  35652. } else {
  35653. $$3158$lcssa = $$4;$$4163$lcssa = $$5164;$184 = $175;$185 = $176;
  35654. break;
  35655. }
  35656. }
  35657. } else {
  35658. $$3158$lcssa = $$0155;$$4163$lcssa = $$3162$lcssa;$184 = $139;$185 = $140;
  35659. }
  35660. $178 = ($1|0)<(0);
  35661. $179 = $178 << 31 >> 31;
  35662. $180 = ($2|0)<(0);
  35663. $181 = $180 << 31 >> 31;
  35664. $182 = (_i64Subtract(32,0,($2|0),($181|0))|0);
  35665. $183 = tempRet0;
  35666. $186 = (_i64Add(($182|0),($183|0),($184|0),($185|0))|0);
  35667. $187 = tempRet0;
  35668. $188 = ($179|0)>($187|0);
  35669. $189 = ($1>>>0)>($186>>>0);
  35670. $190 = ($179|0)==($187|0);
  35671. $191 = $190 & $189;
  35672. $192 = $188 | $191;
  35673. if ($192) {
  35674. $193 = ($186|0)>(0);
  35675. if ($193) {
  35676. $$0166 = $186;
  35677. label = 59;
  35678. } else {
  35679. $$0166170 = 0;$197 = 84;
  35680. label = 61;
  35681. }
  35682. } else {
  35683. $$0166 = $1;
  35684. label = 59;
  35685. }
  35686. if ((label|0) == 59) {
  35687. $194 = ($$0166|0)<(53);
  35688. $195 = (84 - ($$0166))|0;
  35689. if ($194) {
  35690. $$0166170 = $$0166;$197 = $195;
  35691. label = 61;
  35692. } else {
  35693. $$pre = (+($3|0));
  35694. $$0151 = 0.0;$$0166169 = $$0166;$$pre$phiZ2D = $$pre;
  35695. }
  35696. }
  35697. if ((label|0) == 61) {
  35698. $196 = (+($3|0));
  35699. $198 = (+_scalbn(1.0,$197));
  35700. $199 = (+_copysignl($198,$196));
  35701. $$0151 = $199;$$0166169 = $$0166170;$$pre$phiZ2D = $196;
  35702. }
  35703. $200 = ($$0166169|0)<(32);
  35704. $201 = $$3158$lcssa != 0.0;
  35705. $or$cond4 = $201 & $200;
  35706. $202 = $$4163$lcssa & 1;
  35707. $203 = ($202|0)==(0);
  35708. $or$cond168 = $203 & $or$cond4;
  35709. $204 = $or$cond168&1;
  35710. $$6 = (($204) + ($$4163$lcssa))|0;
  35711. $$5 = $or$cond168 ? 0.0 : $$3158$lcssa;
  35712. $205 = (+($$6>>>0));
  35713. $206 = $$pre$phiZ2D * $205;
  35714. $207 = $$0151 + $206;
  35715. $208 = $$pre$phiZ2D * $$5;
  35716. $209 = $208 + $207;
  35717. $210 = $209 - $$0151;
  35718. $211 = $210 != 0.0;
  35719. if (!($211)) {
  35720. $212 = (___errno_location()|0);
  35721. HEAP32[$212>>2] = 34;
  35722. }
  35723. $213 = (+_scalbnl($210,$184));
  35724. $$0165 = $213;
  35725. }
  35726. } while(0);
  35727. return (+$$0165);
  35728. }
  35729. function _decfloat($0,$1,$2,$3,$4,$5) {
  35730. $0 = $0|0;
  35731. $1 = $1|0;
  35732. $2 = $2|0;
  35733. $3 = $3|0;
  35734. $4 = $4|0;
  35735. $5 = $5|0;
  35736. var $$ = 0, $$$0345 = 0, $$$0350 = 0, $$$0385 = 0, $$$0401 = 0, $$$5355 = 0, $$$5390 = 0, $$0329 = 0, $$0332490 = 0, $$0333 = 0, $$0334 = 0, $$0336486 = 0, $$0340496 = 0, $$0341$lcssa = 0, $$0341463 = 0, $$0341464 = 0, $$0341465 = 0, $$0341513 = 0, $$0345$lcssa = 0, $$0345467 = 0;
  35737. var $$0345468 = 0, $$0345469 = 0, $$0345512 = 0, $$0350$lcssa554 = 0, $$0350494 = 0, $$0360 = 0.0, $$0361 = 0.0, $$0365484 = 0.0, $$0372 = 0, $$0380 = 0, $$0380$ph = 0, $$0385$lcssa553 = 0, $$0385493 = 0, $$0393 = 0, $$0396 = 0, $$0401$lcssa = 0, $$0401473 = 0, $$0401474 = 0, $$0401475 = 0, $$0401509 = 0;
  35738. var $$1 = 0.0, $$10 = 0, $$1330$be = 0, $$1330$ph = 0, $$1335 = 0, $$1337 = 0, $$1362 = 0.0, $$1366 = 0.0, $$1373 = 0, $$1373$ph448 = 0, $$1381 = 0, $$1381$ph = 0, $$1381$ph558 = 0, $$1394$lcssa = 0, $$1394511 = 0, $$2 = 0, $$2343 = 0, $$2347 = 0, $$2352$ph449 = 0, $$2367 = 0.0;
  35739. var $$2371$v = 0, $$2374 = 0, $$2387$ph447 = 0, $$2395 = 0, $$2398 = 0, $$2403 = 0, $$3$be = 0, $$3$lcssa = 0, $$3344503 = 0, $$3348 = 0, $$3364 = 0.0, $$3368 = 0.0, $$3375 = 0, $$3383 = 0, $$3399$lcssa = 0, $$3399510 = 0, $$3514 = 0, $$413 = 0, $$425 = 0, $$4349495 = 0;
  35740. var $$4354 = 0, $$4354$ph = 0, $$4354$ph559 = 0, $$4376 = 0, $$4384 = 0, $$4389$ph = 0, $$4389$ph445 = 0, $$4400 = 0, $$4485 = 0, $$5 = 0, $$5$in = 0, $$5355488 = 0, $$5390487 = 0, $$6378$ph = 0, $$6489 = 0, $$9483 = 0, $$neg442 = 0, $$neg443 = 0, $$pre = 0, $$promoted = 0;
  35741. var $$sink = 0, $$sink421$off0 = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0.0, $103 = 0.0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0, $114 = 0, $115 = 0;
  35742. var $116 = 0, $117 = 0, $118 = 0, $119 = 0.0, $12 = 0, $120 = 0.0, $121 = 0.0, $122 = 0, $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 0, $128 = 0, $129 = 0, $13 = 0, $130 = 0, $131 = 0.0, $132 = 0.0, $133 = 0.0;
  35743. var $134 = 0, $135 = 0, $136 = 0, $137 = 0, $138 = 0, $139 = 0, $14 = 0, $140 = 0, $141 = 0, $142 = 0, $143 = 0.0, $144 = 0.0, $145 = 0.0, $146 = 0, $147 = 0, $148 = 0, $149 = 0, $15 = 0, $150 = 0, $151 = 0;
  35744. var $152 = 0, $153 = 0, $154 = 0, $155 = 0, $156 = 0, $157 = 0, $158 = 0.0, $159 = 0.0, $16 = 0, $160 = 0.0, $161 = 0, $162 = 0.0, $163 = 0.0, $164 = 0.0, $165 = 0, $166 = 0, $167 = 0, $168 = 0.0, $169 = 0.0, $17 = 0;
  35745. var $170 = 0, $171 = 0, $172 = 0, $173 = 0, $174 = 0, $175 = 0, $176 = 0.0, $177 = 0.0, $178 = 0.0, $179 = 0, $18 = 0, $180 = 0.0, $181 = 0.0, $182 = 0, $183 = 0, $184 = 0, $185 = 0, $186 = 0, $187 = 0, $188 = 0;
  35746. var $189 = 0, $19 = 0, $190 = 0, $191 = 0, $192 = 0, $193 = 0, $194 = 0, $195 = 0, $196 = 0, $197 = 0, $198 = 0, $199 = 0, $20 = 0, $200 = 0, $201 = 0, $202 = 0, $203 = 0, $204 = 0, $205 = 0, $206 = 0;
  35747. var $207 = 0, $208 = 0, $209 = 0, $21 = 0, $210 = 0, $211 = 0, $212 = 0, $213 = 0, $214 = 0, $215 = 0, $216 = 0, $217 = 0, $218 = 0, $219 = 0, $22 = 0, $220 = 0, $221 = 0, $222 = 0, $223 = 0, $224 = 0;
  35748. var $225 = 0, $226 = 0, $227 = 0, $228 = 0, $229 = 0, $23 = 0, $230 = 0, $231 = 0, $232 = 0, $233 = 0, $234 = 0, $235 = 0, $236 = 0, $237 = 0, $238 = 0, $239 = 0, $24 = 0, $240 = 0, $241 = 0, $242 = 0;
  35749. var $243 = 0, $244 = 0, $245 = 0, $246 = 0, $247 = 0, $248 = 0, $249 = 0, $25 = 0, $250 = 0, $251 = 0, $252 = 0, $253 = 0, $254 = 0, $255 = 0, $256 = 0, $257 = 0, $258 = 0, $259 = 0, $26 = 0, $260 = 0;
  35750. var $261 = 0, $262 = 0, $263 = 0, $264 = 0, $265 = 0, $266 = 0, $267 = 0, $268 = 0, $269 = 0, $27 = 0, $270 = 0, $271 = 0, $272 = 0, $273 = 0, $274 = 0, $275 = 0, $276 = 0, $277 = 0, $278 = 0, $279 = 0;
  35751. var $28 = 0, $280 = 0, $281 = 0, $282 = 0, $283 = 0, $284 = 0, $285 = 0, $286 = 0, $287 = 0, $288 = 0, $289 = 0, $29 = 0, $290 = 0, $291 = 0, $292 = 0, $293 = 0, $294 = 0, $295 = 0, $296 = 0, $297 = 0;
  35752. var $298 = 0, $299 = 0, $30 = 0, $300 = 0, $301 = 0, $302 = 0, $303 = 0.0, $304 = 0, $305 = 0, $306 = 0.0, $307 = 0.0, $308 = 0, $309 = 0.0, $31 = 0, $310 = 0.0, $311 = 0, $312 = 0, $313 = 0, $314 = 0, $315 = 0;
  35753. var $316 = 0, $317 = 0.0, $318 = 0.0, $319 = 0, $32 = 0, $320 = 0.0, $321 = 0.0, $322 = 0.0, $323 = 0.0, $324 = 0, $325 = 0, $326 = 0, $327 = 0, $328 = 0, $329 = 0, $33 = 0, $330 = 0, $331 = 0, $332 = 0, $333 = 0;
  35754. var $334 = 0.0, $335 = 0.0, $336 = 0, $337 = 0.0, $338 = 0.0, $339 = 0, $34 = 0, $340 = 0, $341 = 0, $342 = 0.0, $343 = 0.0, $344 = 0.0, $345 = 0.0, $346 = 0, $347 = 0, $348 = 0.0, $349 = 0, $35 = 0, $350 = 0.0, $351 = 0.0;
  35755. var $352 = 0.0, $353 = 0, $354 = 0, $355 = 0, $356 = 0.0, $357 = 0, $358 = 0.0, $359 = 0, $36 = 0, $360 = 0, $361 = 0, $362 = 0, $363 = 0, $364 = 0, $365 = 0.0, $366 = 0, $367 = 0, $368 = 0, $369 = 0, $37 = 0;
  35756. var $370 = 0, $371 = 0, $372 = 0, $373 = 0, $374 = 0, $375 = 0, $376 = 0, $377 = 0, $378 = 0, $379 = 0, $38 = 0, $380 = 0, $381 = 0, $382 = 0, $383 = 0, $384 = 0, $385 = 0, $39 = 0, $40 = 0, $41 = 0;
  35757. var $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0;
  35758. var $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0;
  35759. var $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0, $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0;
  35760. var $98 = 0, $99 = 0, $cond = 0, $exitcond = 0, $exitcond551 = 0, $narrow = 0, $not$ = 0, $or$cond = 0, $or$cond11 = 0, $or$cond14 = 0, $or$cond415 = 0, $or$cond417 = 0, $or$cond419 = 0, $or$cond420 = 0, $or$cond422 = 0, $or$cond422$not = 0, $or$cond423 = 0, $or$cond426 = 0, $or$cond5 = 0, $sum = 0;
  35761. var label = 0, sp = 0;
  35762. sp = STACKTOP;
  35763. STACKTOP = STACKTOP + 512|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(512|0);
  35764. $6 = sp;
  35765. $sum = (($3) + ($2))|0;
  35766. $7 = (0 - ($sum))|0;
  35767. $8 = ((($0)) + 4|0);
  35768. $9 = ((($0)) + 100|0);
  35769. $$0329 = $1;$$0396 = 0;
  35770. L1: while(1) {
  35771. switch ($$0329|0) {
  35772. case 46: {
  35773. label = 6;
  35774. break L1;
  35775. break;
  35776. }
  35777. case 48: {
  35778. break;
  35779. }
  35780. default: {
  35781. $$0393 = 0;$$2 = $$0329;$$2398 = $$0396;$366 = 0;$367 = 0;
  35782. break L1;
  35783. }
  35784. }
  35785. $10 = HEAP32[$8>>2]|0;
  35786. $11 = HEAP32[$9>>2]|0;
  35787. $12 = ($10>>>0)<($11>>>0);
  35788. if ($12) {
  35789. $13 = ((($10)) + 1|0);
  35790. HEAP32[$8>>2] = $13;
  35791. $14 = HEAP8[$10>>0]|0;
  35792. $15 = $14&255;
  35793. $$0329 = $15;$$0396 = 1;
  35794. continue;
  35795. } else {
  35796. $16 = (___shgetc($0)|0);
  35797. $$0329 = $16;$$0396 = 1;
  35798. continue;
  35799. }
  35800. }
  35801. if ((label|0) == 6) {
  35802. $17 = HEAP32[$8>>2]|0;
  35803. $18 = HEAP32[$9>>2]|0;
  35804. $19 = ($17>>>0)<($18>>>0);
  35805. if ($19) {
  35806. $20 = ((($17)) + 1|0);
  35807. HEAP32[$8>>2] = $20;
  35808. $21 = HEAP8[$17>>0]|0;
  35809. $22 = $21&255;
  35810. $$1330$ph = $22;
  35811. } else {
  35812. $23 = (___shgetc($0)|0);
  35813. $$1330$ph = $23;
  35814. }
  35815. $24 = ($$1330$ph|0)==(48);
  35816. if ($24) {
  35817. $25 = 0;$26 = 0;
  35818. while(1) {
  35819. $27 = (_i64Add(($25|0),($26|0),-1,-1)|0);
  35820. $28 = tempRet0;
  35821. $29 = HEAP32[$8>>2]|0;
  35822. $30 = HEAP32[$9>>2]|0;
  35823. $31 = ($29>>>0)<($30>>>0);
  35824. if ($31) {
  35825. $32 = ((($29)) + 1|0);
  35826. HEAP32[$8>>2] = $32;
  35827. $33 = HEAP8[$29>>0]|0;
  35828. $34 = $33&255;
  35829. $$1330$be = $34;
  35830. } else {
  35831. $35 = (___shgetc($0)|0);
  35832. $$1330$be = $35;
  35833. }
  35834. $36 = ($$1330$be|0)==(48);
  35835. if ($36) {
  35836. $25 = $27;$26 = $28;
  35837. } else {
  35838. $$0393 = 1;$$2 = $$1330$be;$$2398 = 1;$366 = $27;$367 = $28;
  35839. break;
  35840. }
  35841. }
  35842. } else {
  35843. $$0393 = 1;$$2 = $$1330$ph;$$2398 = $$0396;$366 = 0;$367 = 0;
  35844. }
  35845. }
  35846. HEAP32[$6>>2] = 0;
  35847. $37 = (($$2) + -48)|0;
  35848. $38 = ($37>>>0)<(10);
  35849. $39 = ($$2|0)==(46);
  35850. $40 = $39 | $38;
  35851. L20: do {
  35852. if ($40) {
  35853. $41 = ((($6)) + 496|0);
  35854. $$0341513 = 0;$$0345512 = 0;$$0401509 = 0;$$1394511 = $$0393;$$3399510 = $$2398;$$3514 = $$2;$368 = $39;$369 = $37;$370 = $366;$371 = $367;$44 = 0;$45 = 0;
  35855. L22: while(1) {
  35856. do {
  35857. if ($368) {
  35858. $cond = ($$1394511|0)==(0);
  35859. if ($cond) {
  35860. $$2343 = $$0341513;$$2347 = $$0345512;$$2395 = 1;$$2403 = $$0401509;$$4400 = $$3399510;$372 = $44;$373 = $45;$374 = $44;$375 = $45;
  35861. } else {
  35862. break L22;
  35863. }
  35864. } else {
  35865. $43 = ($$0345512|0)<(125);
  35866. $46 = (_i64Add(($44|0),($45|0),1,0)|0);
  35867. $47 = tempRet0;
  35868. $48 = ($$3514|0)!=(48);
  35869. if (!($43)) {
  35870. if (!($48)) {
  35871. $$2343 = $$0341513;$$2347 = $$0345512;$$2395 = $$1394511;$$2403 = $$0401509;$$4400 = $$3399510;$372 = $370;$373 = $371;$374 = $46;$375 = $47;
  35872. break;
  35873. }
  35874. $57 = HEAP32[$41>>2]|0;
  35875. $58 = $57 | 1;
  35876. HEAP32[$41>>2] = $58;
  35877. $$2343 = $$0341513;$$2347 = $$0345512;$$2395 = $$1394511;$$2403 = $$0401509;$$4400 = $$3399510;$372 = $370;$373 = $371;$374 = $46;$375 = $47;
  35878. break;
  35879. }
  35880. $$$0401 = $48 ? $46 : $$0401509;
  35881. $49 = ($$0341513|0)==(0);
  35882. $$pre = (($6) + ($$0345512<<2)|0);
  35883. if ($49) {
  35884. $$sink = $369;
  35885. } else {
  35886. $50 = HEAP32[$$pre>>2]|0;
  35887. $51 = ($50*10)|0;
  35888. $52 = (($$3514) + -48)|0;
  35889. $53 = (($52) + ($51))|0;
  35890. $$sink = $53;
  35891. }
  35892. HEAP32[$$pre>>2] = $$sink;
  35893. $54 = (($$0341513) + 1)|0;
  35894. $55 = ($54|0)==(9);
  35895. $56 = $55&1;
  35896. $$$0345 = (($56) + ($$0345512))|0;
  35897. $$413 = $55 ? 0 : $54;
  35898. $$2343 = $$413;$$2347 = $$$0345;$$2395 = $$1394511;$$2403 = $$$0401;$$4400 = 1;$372 = $370;$373 = $371;$374 = $46;$375 = $47;
  35899. }
  35900. } while(0);
  35901. $59 = HEAP32[$8>>2]|0;
  35902. $60 = HEAP32[$9>>2]|0;
  35903. $61 = ($59>>>0)<($60>>>0);
  35904. if ($61) {
  35905. $62 = ((($59)) + 1|0);
  35906. HEAP32[$8>>2] = $62;
  35907. $63 = HEAP8[$59>>0]|0;
  35908. $64 = $63&255;
  35909. $$3$be = $64;
  35910. } else {
  35911. $65 = (___shgetc($0)|0);
  35912. $$3$be = $65;
  35913. }
  35914. $66 = (($$3$be) + -48)|0;
  35915. $67 = ($66>>>0)<(10);
  35916. $68 = ($$3$be|0)==(46);
  35917. $69 = $68 | $67;
  35918. if ($69) {
  35919. $$0341513 = $$2343;$$0345512 = $$2347;$$0401509 = $$2403;$$1394511 = $$2395;$$3399510 = $$4400;$$3514 = $$3$be;$368 = $68;$369 = $66;$370 = $372;$371 = $373;$44 = $374;$45 = $375;
  35920. } else {
  35921. $$0341$lcssa = $$2343;$$0345$lcssa = $$2347;$$0401$lcssa = $$2403;$$1394$lcssa = $$2395;$$3$lcssa = $$3$be;$$3399$lcssa = $$4400;$72 = $372;$73 = $374;$75 = $373;$76 = $375;
  35922. label = 29;
  35923. break L20;
  35924. }
  35925. }
  35926. $42 = ($$3399510|0)!=(0);
  35927. $$0341465 = $$0341513;$$0345469 = $$0345512;$$0401475 = $$0401509;$376 = $44;$377 = $45;$378 = $370;$379 = $371;$380 = $42;
  35928. label = 37;
  35929. } else {
  35930. $$0341$lcssa = 0;$$0345$lcssa = 0;$$0401$lcssa = 0;$$1394$lcssa = $$0393;$$3$lcssa = $$2;$$3399$lcssa = $$2398;$72 = $366;$73 = 0;$75 = $367;$76 = 0;
  35931. label = 29;
  35932. }
  35933. } while(0);
  35934. do {
  35935. if ((label|0) == 29) {
  35936. $70 = ($$1394$lcssa|0)==(0);
  35937. $71 = $70 ? $73 : $72;
  35938. $74 = $70 ? $76 : $75;
  35939. $77 = ($$3399$lcssa|0)!=(0);
  35940. $78 = $$3$lcssa | 32;
  35941. $79 = ($78|0)==(101);
  35942. $or$cond415 = $77 & $79;
  35943. if (!($or$cond415)) {
  35944. $94 = ($$3$lcssa|0)>(-1);
  35945. if ($94) {
  35946. $$0341465 = $$0341$lcssa;$$0345469 = $$0345$lcssa;$$0401475 = $$0401$lcssa;$376 = $73;$377 = $76;$378 = $71;$379 = $74;$380 = $77;
  35947. label = 37;
  35948. break;
  35949. } else {
  35950. $$0341464 = $$0341$lcssa;$$0345468 = $$0345$lcssa;$$0401474 = $$0401$lcssa;$381 = $73;$382 = $76;$383 = $77;$384 = $71;$385 = $74;
  35951. label = 39;
  35952. break;
  35953. }
  35954. }
  35955. $80 = (_scanexp($0,$5)|0);
  35956. $81 = tempRet0;
  35957. $82 = ($80|0)==(0);
  35958. $83 = ($81|0)==(-2147483648);
  35959. $84 = $82 & $83;
  35960. if ($84) {
  35961. $85 = ($5|0)==(0);
  35962. if ($85) {
  35963. ___shlim($0,0);
  35964. $$1 = 0.0;
  35965. break;
  35966. }
  35967. $86 = HEAP32[$9>>2]|0;
  35968. $87 = ($86|0)==(0|0);
  35969. if ($87) {
  35970. $90 = 0;$91 = 0;
  35971. } else {
  35972. $88 = HEAP32[$8>>2]|0;
  35973. $89 = ((($88)) + -1|0);
  35974. HEAP32[$8>>2] = $89;
  35975. $90 = 0;$91 = 0;
  35976. }
  35977. } else {
  35978. $90 = $80;$91 = $81;
  35979. }
  35980. $92 = (_i64Add(($90|0),($91|0),($71|0),($74|0))|0);
  35981. $93 = tempRet0;
  35982. $$0341463 = $$0341$lcssa;$$0345467 = $$0345$lcssa;$$0401473 = $$0401$lcssa;$105 = $92;$106 = $73;$108 = $93;$109 = $76;
  35983. label = 41;
  35984. }
  35985. } while(0);
  35986. if ((label|0) == 37) {
  35987. $95 = HEAP32[$9>>2]|0;
  35988. $96 = ($95|0)==(0|0);
  35989. if ($96) {
  35990. $$0341464 = $$0341465;$$0345468 = $$0345469;$$0401474 = $$0401475;$381 = $376;$382 = $377;$383 = $380;$384 = $378;$385 = $379;
  35991. label = 39;
  35992. } else {
  35993. $97 = HEAP32[$8>>2]|0;
  35994. $98 = ((($97)) + -1|0);
  35995. HEAP32[$8>>2] = $98;
  35996. if ($380) {
  35997. $$0341463 = $$0341465;$$0345467 = $$0345469;$$0401473 = $$0401475;$105 = $378;$106 = $376;$108 = $379;$109 = $377;
  35998. label = 41;
  35999. } else {
  36000. label = 40;
  36001. }
  36002. }
  36003. }
  36004. if ((label|0) == 39) {
  36005. if ($383) {
  36006. $$0341463 = $$0341464;$$0345467 = $$0345468;$$0401473 = $$0401474;$105 = $384;$106 = $381;$108 = $385;$109 = $382;
  36007. label = 41;
  36008. } else {
  36009. label = 40;
  36010. }
  36011. }
  36012. do {
  36013. if ((label|0) == 40) {
  36014. $99 = (___errno_location()|0);
  36015. HEAP32[$99>>2] = 22;
  36016. ___shlim($0,0);
  36017. $$1 = 0.0;
  36018. }
  36019. else if ((label|0) == 41) {
  36020. $100 = HEAP32[$6>>2]|0;
  36021. $101 = ($100|0)==(0);
  36022. if ($101) {
  36023. $102 = (+($4|0));
  36024. $103 = $102 * 0.0;
  36025. $$1 = $103;
  36026. break;
  36027. }
  36028. $104 = ($105|0)==($106|0);
  36029. $107 = ($108|0)==($109|0);
  36030. $110 = $104 & $107;
  36031. $111 = ($109|0)<(0);
  36032. $112 = ($106>>>0)<(10);
  36033. $113 = ($109|0)==(0);
  36034. $114 = $113 & $112;
  36035. $115 = $111 | $114;
  36036. $or$cond = $115 & $110;
  36037. if ($or$cond) {
  36038. $116 = ($2|0)>(30);
  36039. $117 = $100 >>> $2;
  36040. $118 = ($117|0)==(0);
  36041. $or$cond417 = $116 | $118;
  36042. if ($or$cond417) {
  36043. $119 = (+($4|0));
  36044. $120 = (+($100>>>0));
  36045. $121 = $119 * $120;
  36046. $$1 = $121;
  36047. break;
  36048. }
  36049. }
  36050. $122 = (($3|0) / -2)&-1;
  36051. $123 = ($122|0)<(0);
  36052. $124 = $123 << 31 >> 31;
  36053. $125 = ($108|0)>($124|0);
  36054. $126 = ($105>>>0)>($122>>>0);
  36055. $127 = ($108|0)==($124|0);
  36056. $128 = $127 & $126;
  36057. $129 = $125 | $128;
  36058. if ($129) {
  36059. $130 = (___errno_location()|0);
  36060. HEAP32[$130>>2] = 34;
  36061. $131 = (+($4|0));
  36062. $132 = $131 * 1.7976931348623157E+308;
  36063. $133 = $132 * 1.7976931348623157E+308;
  36064. $$1 = $133;
  36065. break;
  36066. }
  36067. $134 = (($3) + -106)|0;
  36068. $135 = ($134|0)<(0);
  36069. $136 = $135 << 31 >> 31;
  36070. $137 = ($108|0)<($136|0);
  36071. $138 = ($105>>>0)<($134>>>0);
  36072. $139 = ($108|0)==($136|0);
  36073. $140 = $139 & $138;
  36074. $141 = $137 | $140;
  36075. if ($141) {
  36076. $142 = (___errno_location()|0);
  36077. HEAP32[$142>>2] = 34;
  36078. $143 = (+($4|0));
  36079. $144 = $143 * 2.2250738585072014E-308;
  36080. $145 = $144 * 2.2250738585072014E-308;
  36081. $$1 = $145;
  36082. break;
  36083. }
  36084. $146 = ($$0341463|0)==(0);
  36085. if ($146) {
  36086. $$3348 = $$0345467;
  36087. } else {
  36088. $147 = ($$0341463|0)<(9);
  36089. if ($147) {
  36090. $148 = (($6) + ($$0345467<<2)|0);
  36091. $$promoted = HEAP32[$148>>2]|0;
  36092. $$3344503 = $$0341463;$150 = $$promoted;
  36093. while(1) {
  36094. $149 = ($150*10)|0;
  36095. $151 = (($$3344503) + 1)|0;
  36096. $exitcond551 = ($151|0)==(9);
  36097. if ($exitcond551) {
  36098. break;
  36099. } else {
  36100. $$3344503 = $151;$150 = $149;
  36101. }
  36102. }
  36103. HEAP32[$148>>2] = $149;
  36104. }
  36105. $152 = (($$0345467) + 1)|0;
  36106. $$3348 = $152;
  36107. }
  36108. $153 = ($$0401473|0)<(9);
  36109. if ($153) {
  36110. $154 = ($$0401473|0)<=($105|0);
  36111. $155 = ($105|0)<(18);
  36112. $or$cond5 = $154 & $155;
  36113. if ($or$cond5) {
  36114. $156 = ($105|0)==(9);
  36115. $157 = HEAP32[$6>>2]|0;
  36116. if ($156) {
  36117. $158 = (+($4|0));
  36118. $159 = (+($157>>>0));
  36119. $160 = $158 * $159;
  36120. $$1 = $160;
  36121. break;
  36122. }
  36123. $161 = ($105|0)<(9);
  36124. if ($161) {
  36125. $162 = (+($4|0));
  36126. $163 = (+($157>>>0));
  36127. $164 = $162 * $163;
  36128. $165 = (8 - ($105))|0;
  36129. $166 = (4396 + ($165<<2)|0);
  36130. $167 = HEAP32[$166>>2]|0;
  36131. $168 = (+($167|0));
  36132. $169 = $164 / $168;
  36133. $$1 = $169;
  36134. break;
  36135. }
  36136. $$neg442 = Math_imul($105, -3)|0;
  36137. $$neg443 = (($2) + 27)|0;
  36138. $170 = (($$neg443) + ($$neg442))|0;
  36139. $171 = ($170|0)>(30);
  36140. $172 = $157 >>> $170;
  36141. $173 = ($172|0)==(0);
  36142. $or$cond419 = $171 | $173;
  36143. if ($or$cond419) {
  36144. $174 = (($105) + -10)|0;
  36145. $175 = (4396 + ($174<<2)|0);
  36146. $176 = (+($4|0));
  36147. $177 = (+($157>>>0));
  36148. $178 = $176 * $177;
  36149. $179 = HEAP32[$175>>2]|0;
  36150. $180 = (+($179|0));
  36151. $181 = $178 * $180;
  36152. $$1 = $181;
  36153. break;
  36154. }
  36155. }
  36156. }
  36157. $182 = (($105|0) % 9)&-1;
  36158. $183 = ($182|0)==(0);
  36159. if ($183) {
  36160. $$0380$ph = 0;$$1373$ph448 = $$3348;$$2352$ph449 = 0;$$2387$ph447 = $105;
  36161. } else {
  36162. $184 = ($105|0)>(-1);
  36163. $185 = (($182) + 9)|0;
  36164. $186 = $184 ? $182 : $185;
  36165. $187 = (8 - ($186))|0;
  36166. $188 = (4396 + ($187<<2)|0);
  36167. $189 = HEAP32[$188>>2]|0;
  36168. $190 = ($$3348|0)==(0);
  36169. if ($190) {
  36170. $$0350$lcssa554 = 0;$$0372 = 0;$$0385$lcssa553 = $105;
  36171. } else {
  36172. $191 = (1000000000 / ($189|0))&-1;
  36173. $$0340496 = 0;$$0350494 = 0;$$0385493 = $105;$$4349495 = 0;
  36174. while(1) {
  36175. $192 = (($6) + ($$4349495<<2)|0);
  36176. $193 = HEAP32[$192>>2]|0;
  36177. $194 = (($193>>>0) % ($189>>>0))&-1;
  36178. $195 = (($193>>>0) / ($189>>>0))&-1;
  36179. $196 = (($195) + ($$0340496))|0;
  36180. HEAP32[$192>>2] = $196;
  36181. $197 = Math_imul($191, $194)|0;
  36182. $198 = ($$4349495|0)==($$0350494|0);
  36183. $199 = ($196|0)==(0);
  36184. $or$cond420 = $198 & $199;
  36185. $200 = (($$0350494) + 1)|0;
  36186. $201 = $200 & 127;
  36187. $202 = (($$0385493) + -9)|0;
  36188. $$$0385 = $or$cond420 ? $202 : $$0385493;
  36189. $$$0350 = $or$cond420 ? $201 : $$0350494;
  36190. $203 = (($$4349495) + 1)|0;
  36191. $204 = ($203|0)==($$3348|0);
  36192. if ($204) {
  36193. break;
  36194. } else {
  36195. $$0340496 = $197;$$0350494 = $$$0350;$$0385493 = $$$0385;$$4349495 = $203;
  36196. }
  36197. }
  36198. $205 = ($197|0)==(0);
  36199. if ($205) {
  36200. $$0350$lcssa554 = $$$0350;$$0372 = $$3348;$$0385$lcssa553 = $$$0385;
  36201. } else {
  36202. $206 = (($6) + ($$3348<<2)|0);
  36203. $207 = (($$3348) + 1)|0;
  36204. HEAP32[$206>>2] = $197;
  36205. $$0350$lcssa554 = $$$0350;$$0372 = $207;$$0385$lcssa553 = $$$0385;
  36206. }
  36207. }
  36208. $208 = (9 - ($186))|0;
  36209. $209 = (($208) + ($$0385$lcssa553))|0;
  36210. $$0380$ph = 0;$$1373$ph448 = $$0372;$$2352$ph449 = $$0350$lcssa554;$$2387$ph447 = $209;
  36211. }
  36212. L101: while(1) {
  36213. $210 = ($$2387$ph447|0)<(18);
  36214. $211 = ($$2387$ph447|0)==(18);
  36215. $212 = (($6) + ($$2352$ph449<<2)|0);
  36216. $$0380 = $$0380$ph;$$1373 = $$1373$ph448;
  36217. while(1) {
  36218. if (!($210)) {
  36219. if (!($211)) {
  36220. $$1381$ph = $$0380;$$4354$ph = $$2352$ph449;$$4389$ph445 = $$2387$ph447;$$6378$ph = $$1373;
  36221. break L101;
  36222. }
  36223. $213 = HEAP32[$212>>2]|0;
  36224. $214 = ($213>>>0)<(9007199);
  36225. if (!($214)) {
  36226. $$1381$ph = $$0380;$$4354$ph = $$2352$ph449;$$4389$ph445 = 18;$$6378$ph = $$1373;
  36227. break L101;
  36228. }
  36229. }
  36230. $215 = (($$1373) + 127)|0;
  36231. $$0334 = 0;$$2374 = $$1373;$$5$in = $215;
  36232. while(1) {
  36233. $$5 = $$5$in & 127;
  36234. $216 = (($6) + ($$5<<2)|0);
  36235. $217 = HEAP32[$216>>2]|0;
  36236. $218 = (_bitshift64Shl(($217|0),0,29)|0);
  36237. $219 = tempRet0;
  36238. $220 = (_i64Add(($218|0),($219|0),($$0334|0),0)|0);
  36239. $221 = tempRet0;
  36240. $222 = ($221>>>0)>(0);
  36241. $223 = ($220>>>0)>(1000000000);
  36242. $224 = ($221|0)==(0);
  36243. $225 = $224 & $223;
  36244. $226 = $222 | $225;
  36245. if ($226) {
  36246. $227 = (___udivdi3(($220|0),($221|0),1000000000,0)|0);
  36247. $228 = tempRet0;
  36248. $229 = (___uremdi3(($220|0),($221|0),1000000000,0)|0);
  36249. $230 = tempRet0;
  36250. $$1335 = $227;$$sink421$off0 = $229;
  36251. } else {
  36252. $$1335 = 0;$$sink421$off0 = $220;
  36253. }
  36254. HEAP32[$216>>2] = $$sink421$off0;
  36255. $231 = (($$2374) + 127)|0;
  36256. $232 = $231 & 127;
  36257. $233 = ($$5|0)!=($232|0);
  36258. $234 = ($$5|0)==($$2352$ph449|0);
  36259. $or$cond422 = $233 | $234;
  36260. $or$cond422$not = $or$cond422 ^ 1;
  36261. $235 = ($$sink421$off0|0)==(0);
  36262. $or$cond423 = $235 & $or$cond422$not;
  36263. $$3375 = $or$cond423 ? $$5 : $$2374;
  36264. $236 = (($$5) + -1)|0;
  36265. if ($234) {
  36266. break;
  36267. } else {
  36268. $$0334 = $$1335;$$2374 = $$3375;$$5$in = $236;
  36269. }
  36270. }
  36271. $237 = (($$0380) + -29)|0;
  36272. $238 = ($$1335|0)==(0);
  36273. if ($238) {
  36274. $$0380 = $237;$$1373 = $$3375;
  36275. } else {
  36276. break;
  36277. }
  36278. }
  36279. $239 = (($$2387$ph447) + 9)|0;
  36280. $240 = (($$2352$ph449) + 127)|0;
  36281. $241 = $240 & 127;
  36282. $242 = ($241|0)==($$3375|0);
  36283. $243 = (($$3375) + 127)|0;
  36284. $244 = $243 & 127;
  36285. $245 = (($$3375) + 126)|0;
  36286. $246 = $245 & 127;
  36287. $247 = (($6) + ($246<<2)|0);
  36288. if ($242) {
  36289. $248 = (($6) + ($244<<2)|0);
  36290. $249 = HEAP32[$248>>2]|0;
  36291. $250 = HEAP32[$247>>2]|0;
  36292. $251 = $250 | $249;
  36293. HEAP32[$247>>2] = $251;
  36294. $$4376 = $244;
  36295. } else {
  36296. $$4376 = $$3375;
  36297. }
  36298. $252 = (($6) + ($241<<2)|0);
  36299. HEAP32[$252>>2] = $$1335;
  36300. $$0380$ph = $237;$$1373$ph448 = $$4376;$$2352$ph449 = $241;$$2387$ph447 = $239;
  36301. }
  36302. L119: while(1) {
  36303. $289 = (($$6378$ph) + 1)|0;
  36304. $287 = $289 & 127;
  36305. $290 = (($$6378$ph) + 127)|0;
  36306. $291 = $290 & 127;
  36307. $292 = (($6) + ($291<<2)|0);
  36308. $$1381$ph558 = $$1381$ph;$$4354$ph559 = $$4354$ph;$$4389$ph = $$4389$ph445;
  36309. while(1) {
  36310. $265 = ($$4389$ph|0)==(18);
  36311. $293 = ($$4389$ph|0)>(27);
  36312. $$425 = $293 ? 9 : 1;
  36313. $$1381 = $$1381$ph558;$$4354 = $$4354$ph559;
  36314. while(1) {
  36315. $$0336486 = 0;
  36316. while(1) {
  36317. $253 = (($$0336486) + ($$4354))|0;
  36318. $254 = $253 & 127;
  36319. $255 = ($254|0)==($$6378$ph|0);
  36320. if ($255) {
  36321. $$1337 = 2;
  36322. label = 88;
  36323. break;
  36324. }
  36325. $256 = (($6) + ($254<<2)|0);
  36326. $257 = HEAP32[$256>>2]|0;
  36327. $258 = (4428 + ($$0336486<<2)|0);
  36328. $259 = HEAP32[$258>>2]|0;
  36329. $260 = ($257>>>0)<($259>>>0);
  36330. if ($260) {
  36331. $$1337 = 2;
  36332. label = 88;
  36333. break;
  36334. }
  36335. $261 = ($257>>>0)>($259>>>0);
  36336. if ($261) {
  36337. break;
  36338. }
  36339. $262 = (($$0336486) + 1)|0;
  36340. $263 = ($262|0)<(2);
  36341. if ($263) {
  36342. $$0336486 = $262;
  36343. } else {
  36344. $$1337 = $262;
  36345. label = 88;
  36346. break;
  36347. }
  36348. }
  36349. if ((label|0) == 88) {
  36350. label = 0;
  36351. $264 = ($$1337|0)==(2);
  36352. $or$cond11 = $265 & $264;
  36353. if ($or$cond11) {
  36354. $$0365484 = 0.0;$$4485 = 0;$$9483 = $$6378$ph;
  36355. break L119;
  36356. }
  36357. }
  36358. $266 = (($$425) + ($$1381))|0;
  36359. $267 = ($$4354|0)==($$6378$ph|0);
  36360. if ($267) {
  36361. $$1381 = $266;$$4354 = $$6378$ph;
  36362. } else {
  36363. break;
  36364. }
  36365. }
  36366. $268 = 1 << $$425;
  36367. $269 = (($268) + -1)|0;
  36368. $270 = 1000000000 >>> $$425;
  36369. $$0332490 = 0;$$5355488 = $$4354;$$5390487 = $$4389$ph;$$6489 = $$4354;
  36370. while(1) {
  36371. $271 = (($6) + ($$6489<<2)|0);
  36372. $272 = HEAP32[$271>>2]|0;
  36373. $273 = $272 & $269;
  36374. $274 = $272 >>> $$425;
  36375. $275 = (($274) + ($$0332490))|0;
  36376. HEAP32[$271>>2] = $275;
  36377. $276 = Math_imul($273, $270)|0;
  36378. $277 = ($$6489|0)==($$5355488|0);
  36379. $278 = ($275|0)==(0);
  36380. $or$cond426 = $277 & $278;
  36381. $279 = (($$5355488) + 1)|0;
  36382. $280 = $279 & 127;
  36383. $281 = (($$5390487) + -9)|0;
  36384. $$$5390 = $or$cond426 ? $281 : $$5390487;
  36385. $$$5355 = $or$cond426 ? $280 : $$5355488;
  36386. $282 = (($$6489) + 1)|0;
  36387. $283 = $282 & 127;
  36388. $284 = ($283|0)==($$6378$ph|0);
  36389. if ($284) {
  36390. break;
  36391. } else {
  36392. $$0332490 = $276;$$5355488 = $$$5355;$$5390487 = $$$5390;$$6489 = $283;
  36393. }
  36394. }
  36395. $285 = ($276|0)==(0);
  36396. if ($285) {
  36397. $$1381$ph558 = $266;$$4354$ph559 = $$$5355;$$4389$ph = $$$5390;
  36398. continue;
  36399. }
  36400. $286 = ($287|0)==($$$5355|0);
  36401. if (!($286)) {
  36402. break;
  36403. }
  36404. $294 = HEAP32[$292>>2]|0;
  36405. $295 = $294 | 1;
  36406. HEAP32[$292>>2] = $295;
  36407. $$1381$ph558 = $266;$$4354$ph559 = $$$5355;$$4389$ph = $$$5390;
  36408. }
  36409. $288 = (($6) + ($$6378$ph<<2)|0);
  36410. HEAP32[$288>>2] = $276;
  36411. $$1381$ph = $266;$$4354$ph = $$$5355;$$4389$ph445 = $$$5390;$$6378$ph = $287;
  36412. }
  36413. while(1) {
  36414. $296 = (($$4485) + ($$4354))|0;
  36415. $297 = $296 & 127;
  36416. $298 = ($297|0)==($$9483|0);
  36417. $299 = (($$9483) + 1)|0;
  36418. $300 = $299 & 127;
  36419. if ($298) {
  36420. $301 = (($300) + -1)|0;
  36421. $302 = (($6) + ($301<<2)|0);
  36422. HEAP32[$302>>2] = 0;
  36423. $$10 = $300;
  36424. } else {
  36425. $$10 = $$9483;
  36426. }
  36427. $303 = $$0365484 * 1.0E+9;
  36428. $304 = (($6) + ($297<<2)|0);
  36429. $305 = HEAP32[$304>>2]|0;
  36430. $306 = (+($305>>>0));
  36431. $307 = $303 + $306;
  36432. $308 = (($$4485) + 1)|0;
  36433. $exitcond = ($308|0)==(2);
  36434. if ($exitcond) {
  36435. break;
  36436. } else {
  36437. $$0365484 = $307;$$4485 = $308;$$9483 = $$10;
  36438. }
  36439. }
  36440. $309 = (+($4|0));
  36441. $310 = $309 * $307;
  36442. $311 = (($$1381) + 53)|0;
  36443. $312 = (($311) - ($3))|0;
  36444. $313 = ($312|0)<($2|0);
  36445. $314 = ($312|0)>(0);
  36446. $$ = $314 ? $312 : 0;
  36447. $$0333 = $313 ? $$ : $2;
  36448. $315 = ($$0333|0)<(53);
  36449. if ($315) {
  36450. $316 = (105 - ($$0333))|0;
  36451. $317 = (+_scalbn(1.0,$316));
  36452. $318 = (+_copysignl($317,$310));
  36453. $319 = (53 - ($$0333))|0;
  36454. $320 = (+_scalbn(1.0,$319));
  36455. $321 = (+_fmodl($310,$320));
  36456. $322 = $310 - $321;
  36457. $323 = $318 + $322;
  36458. $$0360 = $318;$$0361 = $321;$$1366 = $323;
  36459. } else {
  36460. $$0360 = 0.0;$$0361 = 0.0;$$1366 = $310;
  36461. }
  36462. $324 = (($$4354) + 2)|0;
  36463. $325 = $324 & 127;
  36464. $326 = ($325|0)==($$10|0);
  36465. if ($326) {
  36466. $$3364 = $$0361;
  36467. } else {
  36468. $327 = (($6) + ($325<<2)|0);
  36469. $328 = HEAP32[$327>>2]|0;
  36470. $329 = ($328>>>0)<(500000000);
  36471. do {
  36472. if ($329) {
  36473. $330 = ($328|0)==(0);
  36474. if ($330) {
  36475. $331 = (($$4354) + 3)|0;
  36476. $332 = $331 & 127;
  36477. $333 = ($332|0)==($$10|0);
  36478. if ($333) {
  36479. $$1362 = $$0361;
  36480. break;
  36481. }
  36482. }
  36483. $334 = $309 * 0.25;
  36484. $335 = $334 + $$0361;
  36485. $$1362 = $335;
  36486. } else {
  36487. $336 = ($328|0)==(500000000);
  36488. if (!($336)) {
  36489. $337 = $309 * 0.75;
  36490. $338 = $337 + $$0361;
  36491. $$1362 = $338;
  36492. break;
  36493. }
  36494. $339 = (($$4354) + 3)|0;
  36495. $340 = $339 & 127;
  36496. $341 = ($340|0)==($$10|0);
  36497. if ($341) {
  36498. $342 = $309 * 0.5;
  36499. $343 = $342 + $$0361;
  36500. $$1362 = $343;
  36501. break;
  36502. } else {
  36503. $344 = $309 * 0.75;
  36504. $345 = $344 + $$0361;
  36505. $$1362 = $345;
  36506. break;
  36507. }
  36508. }
  36509. } while(0);
  36510. $346 = (53 - ($$0333))|0;
  36511. $347 = ($346|0)>(1);
  36512. if ($347) {
  36513. $348 = (+_fmodl($$1362,1.0));
  36514. $349 = $348 != 0.0;
  36515. if ($349) {
  36516. $$3364 = $$1362;
  36517. } else {
  36518. $350 = $$1362 + 1.0;
  36519. $$3364 = $350;
  36520. }
  36521. } else {
  36522. $$3364 = $$1362;
  36523. }
  36524. }
  36525. $351 = $$1366 + $$3364;
  36526. $352 = $351 - $$0360;
  36527. $353 = $311 & 2147483647;
  36528. $354 = (-2 - ($sum))|0;
  36529. $355 = ($353|0)>($354|0);
  36530. do {
  36531. if ($355) {
  36532. $356 = (+Math_abs((+$352)));
  36533. $357 = !($356 >= 9007199254740992.0);
  36534. $358 = $352 * 0.5;
  36535. $not$ = $357 ^ 1;
  36536. $359 = $not$&1;
  36537. $$3383 = (($359) + ($$1381))|0;
  36538. $$2367 = $357 ? $352 : $358;
  36539. $360 = (($$3383) + 50)|0;
  36540. $361 = ($360|0)>($7|0);
  36541. if (!($361)) {
  36542. $362 = ($$0333|0)!=($312|0);
  36543. $narrow = $362 | $357;
  36544. $$2371$v = $313 & $narrow;
  36545. $363 = $$3364 != 0.0;
  36546. $or$cond14 = $363 & $$2371$v;
  36547. if (!($or$cond14)) {
  36548. $$3368 = $$2367;$$4384 = $$3383;
  36549. break;
  36550. }
  36551. }
  36552. $364 = (___errno_location()|0);
  36553. HEAP32[$364>>2] = 34;
  36554. $$3368 = $$2367;$$4384 = $$3383;
  36555. } else {
  36556. $$3368 = $352;$$4384 = $$1381;
  36557. }
  36558. } while(0);
  36559. $365 = (+_scalbnl($$3368,$$4384));
  36560. $$1 = $365;
  36561. }
  36562. } while(0);
  36563. STACKTOP = sp;return (+$$1);
  36564. }
  36565. function _scanexp($0,$1) {
  36566. $0 = $0|0;
  36567. $1 = $1|0;
  36568. var $$0 = 0, $$04861 = 0, $$049 = 0, $$1$be = 0, $$160 = 0, $$2$be = 0, $$2$lcssa = 0, $$254 = 0, $$3$be = 0, $$lcssa = 0, $$pre = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0;
  36569. var $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0;
  36570. var $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0;
  36571. var $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0;
  36572. var $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0;
  36573. var $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $or$cond3 = 0, label = 0, sp = 0;
  36574. sp = STACKTOP;
  36575. $2 = ((($0)) + 4|0);
  36576. $3 = HEAP32[$2>>2]|0;
  36577. $4 = ((($0)) + 100|0);
  36578. $5 = HEAP32[$4>>2]|0;
  36579. $6 = ($3>>>0)<($5>>>0);
  36580. if ($6) {
  36581. $7 = ((($3)) + 1|0);
  36582. HEAP32[$2>>2] = $7;
  36583. $8 = HEAP8[$3>>0]|0;
  36584. $9 = $8&255;
  36585. $11 = $9;
  36586. } else {
  36587. $10 = (___shgetc($0)|0);
  36588. $11 = $10;
  36589. }
  36590. switch ($11|0) {
  36591. case 43: case 45: {
  36592. $12 = ($11|0)==(45);
  36593. $13 = $12&1;
  36594. $14 = HEAP32[$2>>2]|0;
  36595. $15 = HEAP32[$4>>2]|0;
  36596. $16 = ($14>>>0)<($15>>>0);
  36597. if ($16) {
  36598. $17 = ((($14)) + 1|0);
  36599. HEAP32[$2>>2] = $17;
  36600. $18 = HEAP8[$14>>0]|0;
  36601. $19 = $18&255;
  36602. $22 = $19;
  36603. } else {
  36604. $20 = (___shgetc($0)|0);
  36605. $22 = $20;
  36606. }
  36607. $21 = (($22) + -48)|0;
  36608. $23 = ($21>>>0)>(9);
  36609. $24 = ($1|0)!=(0);
  36610. $or$cond3 = $24 & $23;
  36611. if ($or$cond3) {
  36612. $25 = HEAP32[$4>>2]|0;
  36613. $26 = ($25|0)==(0|0);
  36614. if ($26) {
  36615. $$0 = $13;$$049 = $22;
  36616. } else {
  36617. $27 = HEAP32[$2>>2]|0;
  36618. $28 = ((($27)) + -1|0);
  36619. HEAP32[$2>>2] = $28;
  36620. $$0 = $13;$$049 = $22;
  36621. }
  36622. } else {
  36623. $$0 = $13;$$049 = $22;
  36624. }
  36625. break;
  36626. }
  36627. default: {
  36628. $$0 = 0;$$049 = $11;
  36629. }
  36630. }
  36631. $29 = (($$049) + -48)|0;
  36632. $30 = ($29>>>0)>(9);
  36633. if ($30) {
  36634. $31 = HEAP32[$4>>2]|0;
  36635. $32 = ($31|0)==(0|0);
  36636. if ($32) {
  36637. $100 = -2147483648;$101 = 0;
  36638. } else {
  36639. $33 = HEAP32[$2>>2]|0;
  36640. $34 = ((($33)) + -1|0);
  36641. HEAP32[$2>>2] = $34;
  36642. $100 = -2147483648;$101 = 0;
  36643. }
  36644. } else {
  36645. $$04861 = 0;$$160 = $$049;
  36646. while(1) {
  36647. $35 = ($$04861*10)|0;
  36648. $36 = (($$160) + -48)|0;
  36649. $37 = (($36) + ($35))|0;
  36650. $38 = HEAP32[$2>>2]|0;
  36651. $39 = HEAP32[$4>>2]|0;
  36652. $40 = ($38>>>0)<($39>>>0);
  36653. if ($40) {
  36654. $41 = ((($38)) + 1|0);
  36655. HEAP32[$2>>2] = $41;
  36656. $42 = HEAP8[$38>>0]|0;
  36657. $43 = $42&255;
  36658. $$1$be = $43;
  36659. } else {
  36660. $44 = (___shgetc($0)|0);
  36661. $$1$be = $44;
  36662. }
  36663. $45 = (($$1$be) + -48)|0;
  36664. $46 = ($45>>>0)<(10);
  36665. $47 = ($37|0)<(214748364);
  36666. $48 = $46 & $47;
  36667. if ($48) {
  36668. $$04861 = $37;$$160 = $$1$be;
  36669. } else {
  36670. break;
  36671. }
  36672. }
  36673. $49 = ($37|0)<(0);
  36674. $50 = $49 << 31 >> 31;
  36675. $51 = (($$1$be) + -48)|0;
  36676. $52 = ($51>>>0)<(10);
  36677. if ($52) {
  36678. $$254 = $$1$be;$56 = $37;$57 = $50;
  36679. while(1) {
  36680. $58 = (___muldi3(($56|0),($57|0),10,0)|0);
  36681. $59 = tempRet0;
  36682. $60 = ($$254|0)<(0);
  36683. $61 = $60 << 31 >> 31;
  36684. $62 = (_i64Add(($$254|0),($61|0),-48,-1)|0);
  36685. $63 = tempRet0;
  36686. $64 = (_i64Add(($62|0),($63|0),($58|0),($59|0))|0);
  36687. $65 = tempRet0;
  36688. $66 = HEAP32[$2>>2]|0;
  36689. $67 = HEAP32[$4>>2]|0;
  36690. $68 = ($66>>>0)<($67>>>0);
  36691. if ($68) {
  36692. $69 = ((($66)) + 1|0);
  36693. HEAP32[$2>>2] = $69;
  36694. $70 = HEAP8[$66>>0]|0;
  36695. $71 = $70&255;
  36696. $$2$be = $71;
  36697. } else {
  36698. $72 = (___shgetc($0)|0);
  36699. $$2$be = $72;
  36700. }
  36701. $73 = (($$2$be) + -48)|0;
  36702. $74 = ($73>>>0)<(10);
  36703. $75 = ($65|0)<(21474836);
  36704. $76 = ($64>>>0)<(2061584302);
  36705. $77 = ($65|0)==(21474836);
  36706. $78 = $77 & $76;
  36707. $79 = $75 | $78;
  36708. $80 = $74 & $79;
  36709. if ($80) {
  36710. $$254 = $$2$be;$56 = $64;$57 = $65;
  36711. } else {
  36712. $$2$lcssa = $$2$be;$94 = $64;$95 = $65;
  36713. break;
  36714. }
  36715. }
  36716. } else {
  36717. $$2$lcssa = $$1$be;$94 = $37;$95 = $50;
  36718. }
  36719. $53 = (($$2$lcssa) + -48)|0;
  36720. $54 = ($53>>>0)<(10);
  36721. $55 = HEAP32[$4>>2]|0;
  36722. if ($54) {
  36723. $83 = $55;
  36724. while(1) {
  36725. $81 = HEAP32[$2>>2]|0;
  36726. $82 = ($81>>>0)<($83>>>0);
  36727. if ($82) {
  36728. $84 = ((($81)) + 1|0);
  36729. HEAP32[$2>>2] = $84;
  36730. $85 = HEAP8[$81>>0]|0;
  36731. $86 = $85&255;
  36732. $$3$be = $86;$102 = $83;
  36733. } else {
  36734. $87 = (___shgetc($0)|0);
  36735. $$pre = HEAP32[$4>>2]|0;
  36736. $$3$be = $87;$102 = $$pre;
  36737. }
  36738. $88 = (($$3$be) + -48)|0;
  36739. $89 = ($88>>>0)<(10);
  36740. if ($89) {
  36741. $83 = $102;
  36742. } else {
  36743. $$lcssa = $102;
  36744. break;
  36745. }
  36746. }
  36747. } else {
  36748. $$lcssa = $55;
  36749. }
  36750. $90 = ($$lcssa|0)==(0|0);
  36751. if (!($90)) {
  36752. $91 = HEAP32[$2>>2]|0;
  36753. $92 = ((($91)) + -1|0);
  36754. HEAP32[$2>>2] = $92;
  36755. }
  36756. $93 = ($$0|0)!=(0);
  36757. $96 = (_i64Subtract(0,0,($94|0),($95|0))|0);
  36758. $97 = tempRet0;
  36759. $98 = $93 ? $96 : $94;
  36760. $99 = $93 ? $97 : $95;
  36761. $100 = $99;$101 = $98;
  36762. }
  36763. tempRet0 = ($100);
  36764. return ($101|0);
  36765. }
  36766. function _scalbn($0,$1) {
  36767. $0 = +$0;
  36768. $1 = $1|0;
  36769. var $$ = 0, $$$ = 0, $$0 = 0.0, $$020 = 0, $$1 = 0, $$1$ = 0, $$21 = 0.0, $$22 = 0.0, $10 = 0.0, $11 = 0, $12 = 0, $13 = 0.0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0.0, $2 = 0, $20 = 0.0;
  36770. var $3 = 0.0, $4 = 0, $5 = 0, $6 = 0.0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  36771. sp = STACKTOP;
  36772. $2 = ($1|0)>(1023);
  36773. if ($2) {
  36774. $3 = $0 * 8.9884656743115795E+307;
  36775. $4 = (($1) + -1023)|0;
  36776. $5 = ($4|0)>(1023);
  36777. $6 = $3 * 8.9884656743115795E+307;
  36778. $7 = (($1) + -2046)|0;
  36779. $8 = ($7|0)<(1023);
  36780. $$ = $8 ? $7 : 1023;
  36781. $$$ = $5 ? $$ : $4;
  36782. $$21 = $5 ? $6 : $3;
  36783. $$0 = $$21;$$020 = $$$;
  36784. } else {
  36785. $9 = ($1|0)<(-1022);
  36786. if ($9) {
  36787. $10 = $0 * 2.2250738585072014E-308;
  36788. $11 = (($1) + 1022)|0;
  36789. $12 = ($11|0)<(-1022);
  36790. $13 = $10 * 2.2250738585072014E-308;
  36791. $14 = (($1) + 2044)|0;
  36792. $15 = ($14|0)>(-1022);
  36793. $$1 = $15 ? $14 : -1022;
  36794. $$1$ = $12 ? $$1 : $11;
  36795. $$22 = $12 ? $13 : $10;
  36796. $$0 = $$22;$$020 = $$1$;
  36797. } else {
  36798. $$0 = $0;$$020 = $1;
  36799. }
  36800. }
  36801. $16 = (($$020) + 1023)|0;
  36802. $17 = (_bitshift64Shl(($16|0),0,52)|0);
  36803. $18 = tempRet0;
  36804. HEAP32[tempDoublePtr>>2] = $17;HEAP32[tempDoublePtr+4>>2] = $18;$19 = +HEAPF64[tempDoublePtr>>3];
  36805. $20 = $$0 * $19;
  36806. return (+$20);
  36807. }
  36808. function _copysignl($0,$1) {
  36809. $0 = +$0;
  36810. $1 = +$1;
  36811. var $2 = 0.0, label = 0, sp = 0;
  36812. sp = STACKTOP;
  36813. $2 = (+_copysign($0,$1));
  36814. return (+$2);
  36815. }
  36816. function _fmodl($0,$1) {
  36817. $0 = +$0;
  36818. $1 = +$1;
  36819. var $2 = 0.0, label = 0, sp = 0;
  36820. sp = STACKTOP;
  36821. $2 = (+_fmod($0,$1));
  36822. return (+$2);
  36823. }
  36824. function _scalbnl($0,$1) {
  36825. $0 = +$0;
  36826. $1 = $1|0;
  36827. var $2 = 0.0, label = 0, sp = 0;
  36828. sp = STACKTOP;
  36829. $2 = (+_scalbn($0,$1));
  36830. return (+$2);
  36831. }
  36832. function _fmod($0,$1) {
  36833. $0 = +$0;
  36834. $1 = +$1;
  36835. var $$ = 0.0, $$070 = 0.0, $$071$lcssa = 0, $$07194 = 0, $$073$lcssa = 0, $$073100 = 0, $$172$ph = 0, $$174 = 0, $$275$lcssa = 0, $$27586 = 0, $$376$lcssa = 0, $$37683 = 0, $$lcssa = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0.0, $104 = 0, $105 = 0;
  36836. var $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0, $114 = 0, $115 = 0, $116 = 0, $117 = 0, $118 = 0, $119 = 0, $12 = 0, $120 = 0, $121 = 0, $122 = 0, $123 = 0;
  36837. var $124 = 0, $125 = 0, $126 = 0, $127 = 0, $128 = 0, $129 = 0.0, $13 = 0, $130 = 0, $131 = 0, $132 = 0, $133 = 0, $134 = 0, $135 = 0, $136 = 0, $137 = 0, $138 = 0, $139 = 0, $14 = 0, $140 = 0, $141 = 0;
  36838. var $142 = 0, $143 = 0, $144 = 0, $145 = 0, $146 = 0, $147 = 0, $148 = 0, $149 = 0, $15 = 0, $150 = 0, $151 = 0, $152 = 0, $153 = 0, $154 = 0.0, $155 = 0, $156 = 0, $157 = 0, $158 = 0, $159 = 0, $16 = 0;
  36839. var $160 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0.0, $28 = 0.0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0;
  36840. var $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0.0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0;
  36841. var $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0;
  36842. var $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0;
  36843. var $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $or$cond = 0, label = 0, sp = 0;
  36844. sp = STACKTOP;
  36845. HEAPF64[tempDoublePtr>>3] = $0;$2 = HEAP32[tempDoublePtr>>2]|0;
  36846. $3 = HEAP32[tempDoublePtr+4>>2]|0;
  36847. HEAPF64[tempDoublePtr>>3] = $1;$4 = HEAP32[tempDoublePtr>>2]|0;
  36848. $5 = HEAP32[tempDoublePtr+4>>2]|0;
  36849. $6 = (_bitshift64Lshr(($2|0),($3|0),52)|0);
  36850. $7 = tempRet0;
  36851. $8 = $6 & 2047;
  36852. $9 = (_bitshift64Lshr(($4|0),($5|0),52)|0);
  36853. $10 = tempRet0;
  36854. $11 = $9 & 2047;
  36855. $12 = $3 & -2147483648;
  36856. $13 = (_bitshift64Shl(($4|0),($5|0),1)|0);
  36857. $14 = tempRet0;
  36858. $15 = ($13|0)==(0);
  36859. $16 = ($14|0)==(0);
  36860. $17 = $15 & $16;
  36861. L1: do {
  36862. if ($17) {
  36863. label = 3;
  36864. } else {
  36865. $18 = (___DOUBLE_BITS_272($1)|0);
  36866. $19 = tempRet0;
  36867. $20 = $19 & 2147483647;
  36868. $21 = ($20>>>0)>(2146435072);
  36869. $22 = ($18>>>0)>(0);
  36870. $23 = ($20|0)==(2146435072);
  36871. $24 = $23 & $22;
  36872. $25 = $21 | $24;
  36873. $26 = ($8|0)==(2047);
  36874. $or$cond = $26 | $25;
  36875. if ($or$cond) {
  36876. label = 3;
  36877. } else {
  36878. $29 = (_bitshift64Shl(($2|0),($3|0),1)|0);
  36879. $30 = tempRet0;
  36880. $31 = ($30>>>0)>($14>>>0);
  36881. $32 = ($29>>>0)>($13>>>0);
  36882. $33 = ($30|0)==($14|0);
  36883. $34 = $33 & $32;
  36884. $35 = $31 | $34;
  36885. if (!($35)) {
  36886. $36 = ($29|0)==($13|0);
  36887. $37 = ($30|0)==($14|0);
  36888. $38 = $36 & $37;
  36889. $39 = $0 * 0.0;
  36890. $$ = $38 ? $39 : $0;
  36891. return (+$$);
  36892. }
  36893. $40 = ($8|0)==(0);
  36894. if ($40) {
  36895. $41 = (_bitshift64Shl(($2|0),($3|0),12)|0);
  36896. $42 = tempRet0;
  36897. $43 = ($42|0)>(-1);
  36898. $44 = ($41>>>0)>(4294967295);
  36899. $45 = ($42|0)==(-1);
  36900. $46 = $45 & $44;
  36901. $47 = $43 | $46;
  36902. if ($47) {
  36903. $$073100 = 0;$49 = $41;$50 = $42;
  36904. while(1) {
  36905. $48 = (($$073100) + -1)|0;
  36906. $51 = (_bitshift64Shl(($49|0),($50|0),1)|0);
  36907. $52 = tempRet0;
  36908. $53 = ($52|0)>(-1);
  36909. $54 = ($51>>>0)>(4294967295);
  36910. $55 = ($52|0)==(-1);
  36911. $56 = $55 & $54;
  36912. $57 = $53 | $56;
  36913. if ($57) {
  36914. $$073100 = $48;$49 = $51;$50 = $52;
  36915. } else {
  36916. $$073$lcssa = $48;
  36917. break;
  36918. }
  36919. }
  36920. } else {
  36921. $$073$lcssa = 0;
  36922. }
  36923. $58 = (1 - ($$073$lcssa))|0;
  36924. $59 = (_bitshift64Shl(($2|0),($3|0),($58|0))|0);
  36925. $60 = tempRet0;
  36926. $$174 = $$073$lcssa;$87 = $59;$88 = $60;
  36927. } else {
  36928. $61 = $3 & 1048575;
  36929. $62 = $61 | 1048576;
  36930. $$174 = $8;$87 = $2;$88 = $62;
  36931. }
  36932. $63 = ($11|0)==(0);
  36933. if ($63) {
  36934. $64 = (_bitshift64Shl(($4|0),($5|0),12)|0);
  36935. $65 = tempRet0;
  36936. $66 = ($65|0)>(-1);
  36937. $67 = ($64>>>0)>(4294967295);
  36938. $68 = ($65|0)==(-1);
  36939. $69 = $68 & $67;
  36940. $70 = $66 | $69;
  36941. if ($70) {
  36942. $$07194 = 0;$72 = $64;$73 = $65;
  36943. while(1) {
  36944. $71 = (($$07194) + -1)|0;
  36945. $74 = (_bitshift64Shl(($72|0),($73|0),1)|0);
  36946. $75 = tempRet0;
  36947. $76 = ($75|0)>(-1);
  36948. $77 = ($74>>>0)>(4294967295);
  36949. $78 = ($75|0)==(-1);
  36950. $79 = $78 & $77;
  36951. $80 = $76 | $79;
  36952. if ($80) {
  36953. $$07194 = $71;$72 = $74;$73 = $75;
  36954. } else {
  36955. $$071$lcssa = $71;
  36956. break;
  36957. }
  36958. }
  36959. } else {
  36960. $$071$lcssa = 0;
  36961. }
  36962. $81 = (1 - ($$071$lcssa))|0;
  36963. $82 = (_bitshift64Shl(($4|0),($5|0),($81|0))|0);
  36964. $83 = tempRet0;
  36965. $$172$ph = $$071$lcssa;$89 = $82;$90 = $83;
  36966. } else {
  36967. $84 = $5 & 1048575;
  36968. $85 = $84 | 1048576;
  36969. $$172$ph = $11;$89 = $4;$90 = $85;
  36970. }
  36971. $86 = ($$174|0)>($$172$ph|0);
  36972. $91 = (_i64Subtract(($87|0),($88|0),($89|0),($90|0))|0);
  36973. $92 = tempRet0;
  36974. $93 = ($92|0)>(-1);
  36975. $94 = ($91>>>0)>(4294967295);
  36976. $95 = ($92|0)==(-1);
  36977. $96 = $95 & $94;
  36978. $97 = $93 | $96;
  36979. L23: do {
  36980. if ($86) {
  36981. $$27586 = $$174;$101 = $92;$156 = $97;$157 = $87;$158 = $88;$99 = $91;
  36982. while(1) {
  36983. if ($156) {
  36984. $98 = ($99|0)==(0);
  36985. $100 = ($101|0)==(0);
  36986. $102 = $98 & $100;
  36987. if ($102) {
  36988. break;
  36989. } else {
  36990. $104 = $99;$105 = $101;
  36991. }
  36992. } else {
  36993. $104 = $157;$105 = $158;
  36994. }
  36995. $106 = (_bitshift64Shl(($104|0),($105|0),1)|0);
  36996. $107 = tempRet0;
  36997. $108 = (($$27586) + -1)|0;
  36998. $109 = ($108|0)>($$172$ph|0);
  36999. $110 = (_i64Subtract(($106|0),($107|0),($89|0),($90|0))|0);
  37000. $111 = tempRet0;
  37001. $112 = ($111|0)>(-1);
  37002. $113 = ($110>>>0)>(4294967295);
  37003. $114 = ($111|0)==(-1);
  37004. $115 = $114 & $113;
  37005. $116 = $112 | $115;
  37006. if ($109) {
  37007. $$27586 = $108;$101 = $111;$156 = $116;$157 = $106;$158 = $107;$99 = $110;
  37008. } else {
  37009. $$275$lcssa = $108;$$lcssa = $116;$118 = $110;$120 = $111;$159 = $106;$160 = $107;
  37010. break L23;
  37011. }
  37012. }
  37013. $103 = $0 * 0.0;
  37014. $$070 = $103;
  37015. break L1;
  37016. } else {
  37017. $$275$lcssa = $$174;$$lcssa = $97;$118 = $91;$120 = $92;$159 = $87;$160 = $88;
  37018. }
  37019. } while(0);
  37020. if ($$lcssa) {
  37021. $117 = ($118|0)==(0);
  37022. $119 = ($120|0)==(0);
  37023. $121 = $117 & $119;
  37024. if ($121) {
  37025. $129 = $0 * 0.0;
  37026. $$070 = $129;
  37027. break;
  37028. } else {
  37029. $123 = $120;$125 = $118;
  37030. }
  37031. } else {
  37032. $123 = $160;$125 = $159;
  37033. }
  37034. $122 = ($123>>>0)<(1048576);
  37035. $124 = ($125>>>0)<(0);
  37036. $126 = ($123|0)==(1048576);
  37037. $127 = $126 & $124;
  37038. $128 = $122 | $127;
  37039. if ($128) {
  37040. $$37683 = $$275$lcssa;$130 = $125;$131 = $123;
  37041. while(1) {
  37042. $132 = (_bitshift64Shl(($130|0),($131|0),1)|0);
  37043. $133 = tempRet0;
  37044. $134 = (($$37683) + -1)|0;
  37045. $135 = ($133>>>0)<(1048576);
  37046. $136 = ($132>>>0)<(0);
  37047. $137 = ($133|0)==(1048576);
  37048. $138 = $137 & $136;
  37049. $139 = $135 | $138;
  37050. if ($139) {
  37051. $$37683 = $134;$130 = $132;$131 = $133;
  37052. } else {
  37053. $$376$lcssa = $134;$141 = $132;$142 = $133;
  37054. break;
  37055. }
  37056. }
  37057. } else {
  37058. $$376$lcssa = $$275$lcssa;$141 = $125;$142 = $123;
  37059. }
  37060. $140 = ($$376$lcssa|0)>(0);
  37061. if ($140) {
  37062. $143 = (_i64Add(($141|0),($142|0),0,-1048576)|0);
  37063. $144 = tempRet0;
  37064. $145 = (_bitshift64Shl(($$376$lcssa|0),0,52)|0);
  37065. $146 = tempRet0;
  37066. $147 = $143 | $145;
  37067. $148 = $144 | $146;
  37068. $153 = $148;$155 = $147;
  37069. } else {
  37070. $149 = (1 - ($$376$lcssa))|0;
  37071. $150 = (_bitshift64Lshr(($141|0),($142|0),($149|0))|0);
  37072. $151 = tempRet0;
  37073. $153 = $151;$155 = $150;
  37074. }
  37075. $152 = $153 | $12;
  37076. HEAP32[tempDoublePtr>>2] = $155;HEAP32[tempDoublePtr+4>>2] = $152;$154 = +HEAPF64[tempDoublePtr>>3];
  37077. $$070 = $154;
  37078. }
  37079. }
  37080. } while(0);
  37081. if ((label|0) == 3) {
  37082. $27 = $0 * $1;
  37083. $28 = $27 / $27;
  37084. $$070 = $28;
  37085. }
  37086. return (+$$070);
  37087. }
  37088. function ___DOUBLE_BITS_272($0) {
  37089. $0 = +$0;
  37090. var $1 = 0, $2 = 0, label = 0, sp = 0;
  37091. sp = STACKTOP;
  37092. HEAPF64[tempDoublePtr>>3] = $0;$1 = HEAP32[tempDoublePtr>>2]|0;
  37093. $2 = HEAP32[tempDoublePtr+4>>2]|0;
  37094. tempRet0 = ($2);
  37095. return ($1|0);
  37096. }
  37097. function _strlen($0) {
  37098. $0 = $0|0;
  37099. var $$0 = 0, $$015$lcssa = 0, $$01519 = 0, $$1$lcssa = 0, $$pn = 0, $$pre = 0, $$sink = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0;
  37100. var $21 = 0, $22 = 0, $23 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  37101. sp = STACKTOP;
  37102. $1 = $0;
  37103. $2 = $1 & 3;
  37104. $3 = ($2|0)==(0);
  37105. L1: do {
  37106. if ($3) {
  37107. $$015$lcssa = $0;
  37108. label = 4;
  37109. } else {
  37110. $$01519 = $0;$23 = $1;
  37111. while(1) {
  37112. $4 = HEAP8[$$01519>>0]|0;
  37113. $5 = ($4<<24>>24)==(0);
  37114. if ($5) {
  37115. $$sink = $23;
  37116. break L1;
  37117. }
  37118. $6 = ((($$01519)) + 1|0);
  37119. $7 = $6;
  37120. $8 = $7 & 3;
  37121. $9 = ($8|0)==(0);
  37122. if ($9) {
  37123. $$015$lcssa = $6;
  37124. label = 4;
  37125. break;
  37126. } else {
  37127. $$01519 = $6;$23 = $7;
  37128. }
  37129. }
  37130. }
  37131. } while(0);
  37132. if ((label|0) == 4) {
  37133. $$0 = $$015$lcssa;
  37134. while(1) {
  37135. $10 = HEAP32[$$0>>2]|0;
  37136. $11 = (($10) + -16843009)|0;
  37137. $12 = $10 & -2139062144;
  37138. $13 = $12 ^ -2139062144;
  37139. $14 = $13 & $11;
  37140. $15 = ($14|0)==(0);
  37141. $16 = ((($$0)) + 4|0);
  37142. if ($15) {
  37143. $$0 = $16;
  37144. } else {
  37145. break;
  37146. }
  37147. }
  37148. $17 = $10&255;
  37149. $18 = ($17<<24>>24)==(0);
  37150. if ($18) {
  37151. $$1$lcssa = $$0;
  37152. } else {
  37153. $$pn = $$0;
  37154. while(1) {
  37155. $19 = ((($$pn)) + 1|0);
  37156. $$pre = HEAP8[$19>>0]|0;
  37157. $20 = ($$pre<<24>>24)==(0);
  37158. if ($20) {
  37159. $$1$lcssa = $19;
  37160. break;
  37161. } else {
  37162. $$pn = $19;
  37163. }
  37164. }
  37165. }
  37166. $21 = $$1$lcssa;
  37167. $$sink = $21;
  37168. }
  37169. $22 = (($$sink) - ($1))|0;
  37170. return ($22|0);
  37171. }
  37172. function _strchr($0,$1) {
  37173. $0 = $0|0;
  37174. $1 = $1|0;
  37175. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  37176. sp = STACKTOP;
  37177. $2 = (___strchrnul($0,$1)|0);
  37178. $3 = HEAP8[$2>>0]|0;
  37179. $4 = $1&255;
  37180. $5 = ($3<<24>>24)==($4<<24>>24);
  37181. $6 = $5 ? $2 : 0;
  37182. return ($6|0);
  37183. }
  37184. function ___strchrnul($0,$1) {
  37185. $0 = $0|0;
  37186. $1 = $1|0;
  37187. var $$0 = 0, $$029$lcssa = 0, $$02936 = 0, $$030$lcssa = 0, $$03039 = 0, $$1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0;
  37188. var $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0;
  37189. var $41 = 0, $42 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, $or$cond33 = 0, label = 0, sp = 0;
  37190. sp = STACKTOP;
  37191. $2 = $1 & 255;
  37192. $3 = ($2|0)==(0);
  37193. L1: do {
  37194. if ($3) {
  37195. $8 = (_strlen($0)|0);
  37196. $9 = (($0) + ($8)|0);
  37197. $$0 = $9;
  37198. } else {
  37199. $4 = $0;
  37200. $5 = $4 & 3;
  37201. $6 = ($5|0)==(0);
  37202. if ($6) {
  37203. $$030$lcssa = $0;
  37204. } else {
  37205. $7 = $1&255;
  37206. $$03039 = $0;
  37207. while(1) {
  37208. $10 = HEAP8[$$03039>>0]|0;
  37209. $11 = ($10<<24>>24)==(0);
  37210. $12 = ($10<<24>>24)==($7<<24>>24);
  37211. $or$cond = $11 | $12;
  37212. if ($or$cond) {
  37213. $$0 = $$03039;
  37214. break L1;
  37215. }
  37216. $13 = ((($$03039)) + 1|0);
  37217. $14 = $13;
  37218. $15 = $14 & 3;
  37219. $16 = ($15|0)==(0);
  37220. if ($16) {
  37221. $$030$lcssa = $13;
  37222. break;
  37223. } else {
  37224. $$03039 = $13;
  37225. }
  37226. }
  37227. }
  37228. $17 = Math_imul($2, 16843009)|0;
  37229. $18 = HEAP32[$$030$lcssa>>2]|0;
  37230. $19 = (($18) + -16843009)|0;
  37231. $20 = $18 & -2139062144;
  37232. $21 = $20 ^ -2139062144;
  37233. $22 = $21 & $19;
  37234. $23 = ($22|0)==(0);
  37235. L10: do {
  37236. if ($23) {
  37237. $$02936 = $$030$lcssa;$25 = $18;
  37238. while(1) {
  37239. $24 = $25 ^ $17;
  37240. $26 = (($24) + -16843009)|0;
  37241. $27 = $24 & -2139062144;
  37242. $28 = $27 ^ -2139062144;
  37243. $29 = $28 & $26;
  37244. $30 = ($29|0)==(0);
  37245. if (!($30)) {
  37246. $$029$lcssa = $$02936;
  37247. break L10;
  37248. }
  37249. $31 = ((($$02936)) + 4|0);
  37250. $32 = HEAP32[$31>>2]|0;
  37251. $33 = (($32) + -16843009)|0;
  37252. $34 = $32 & -2139062144;
  37253. $35 = $34 ^ -2139062144;
  37254. $36 = $35 & $33;
  37255. $37 = ($36|0)==(0);
  37256. if ($37) {
  37257. $$02936 = $31;$25 = $32;
  37258. } else {
  37259. $$029$lcssa = $31;
  37260. break;
  37261. }
  37262. }
  37263. } else {
  37264. $$029$lcssa = $$030$lcssa;
  37265. }
  37266. } while(0);
  37267. $38 = $1&255;
  37268. $$1 = $$029$lcssa;
  37269. while(1) {
  37270. $39 = HEAP8[$$1>>0]|0;
  37271. $40 = ($39<<24>>24)==(0);
  37272. $41 = ($39<<24>>24)==($38<<24>>24);
  37273. $or$cond33 = $40 | $41;
  37274. $42 = ((($$1)) + 1|0);
  37275. if ($or$cond33) {
  37276. $$0 = $$1;
  37277. break;
  37278. } else {
  37279. $$1 = $42;
  37280. }
  37281. }
  37282. }
  37283. } while(0);
  37284. return ($$0|0);
  37285. }
  37286. function _mbrtowc($0,$1,$2,$3) {
  37287. $0 = $0|0;
  37288. $1 = $1|0;
  37289. $2 = $2|0;
  37290. $3 = $3|0;
  37291. var $$ = 0, $$0 = 0, $$03952 = 0, $$04051 = 0, $$04350 = 0, $$1 = 0, $$141 = 0, $$144 = 0, $$2 = 0, $$47 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0;
  37292. var $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0;
  37293. var $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0;
  37294. var $not$ = 0, label = 0, sp = 0;
  37295. sp = STACKTOP;
  37296. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  37297. $4 = sp;
  37298. $5 = ($3|0)==(0|0);
  37299. $$ = $5 ? 21160 : $3;
  37300. $6 = HEAP32[$$>>2]|0;
  37301. $7 = ($1|0)==(0|0);
  37302. L1: do {
  37303. if ($7) {
  37304. $8 = ($6|0)==(0);
  37305. if ($8) {
  37306. $$0 = 0;
  37307. } else {
  37308. label = 17;
  37309. }
  37310. } else {
  37311. $9 = ($0|0)==(0|0);
  37312. $$47 = $9 ? $4 : $0;
  37313. $10 = ($2|0)==(0);
  37314. if ($10) {
  37315. $$0 = -2;
  37316. } else {
  37317. $11 = ($6|0)==(0);
  37318. if ($11) {
  37319. $12 = HEAP8[$1>>0]|0;
  37320. $13 = ($12<<24>>24)>(-1);
  37321. if ($13) {
  37322. $14 = $12&255;
  37323. HEAP32[$$47>>2] = $14;
  37324. $15 = ($12<<24>>24)!=(0);
  37325. $16 = $15&1;
  37326. $$0 = $16;
  37327. break;
  37328. }
  37329. $17 = (___pthread_self_439()|0);
  37330. $18 = ((($17)) + 188|0);
  37331. $19 = HEAP32[$18>>2]|0;
  37332. $20 = HEAP32[$19>>2]|0;
  37333. $not$ = ($20|0)==(0|0);
  37334. $21 = HEAP8[$1>>0]|0;
  37335. if ($not$) {
  37336. $22 = $21 << 24 >> 24;
  37337. $23 = $22 & 57343;
  37338. HEAP32[$$47>>2] = $23;
  37339. $$0 = 1;
  37340. break;
  37341. }
  37342. $24 = $21&255;
  37343. $25 = (($24) + -194)|0;
  37344. $26 = ($25>>>0)>(50);
  37345. if ($26) {
  37346. label = 17;
  37347. break;
  37348. }
  37349. $27 = ((($1)) + 1|0);
  37350. $28 = (3692 + ($25<<2)|0);
  37351. $29 = HEAP32[$28>>2]|0;
  37352. $30 = (($2) + -1)|0;
  37353. $31 = ($30|0)==(0);
  37354. if ($31) {
  37355. $$2 = $29;
  37356. } else {
  37357. $$03952 = $27;$$04051 = $29;$$04350 = $30;
  37358. label = 11;
  37359. }
  37360. } else {
  37361. $$03952 = $1;$$04051 = $6;$$04350 = $2;
  37362. label = 11;
  37363. }
  37364. L14: do {
  37365. if ((label|0) == 11) {
  37366. $32 = HEAP8[$$03952>>0]|0;
  37367. $33 = $32&255;
  37368. $34 = $33 >>> 3;
  37369. $35 = (($34) + -16)|0;
  37370. $36 = $$04051 >> 26;
  37371. $37 = (($34) + ($36))|0;
  37372. $38 = $35 | $37;
  37373. $39 = ($38>>>0)>(7);
  37374. if ($39) {
  37375. label = 17;
  37376. break L1;
  37377. } else {
  37378. $$1 = $$03952;$$141 = $$04051;$$144 = $$04350;$43 = $32;
  37379. }
  37380. while(1) {
  37381. $40 = $$141 << 6;
  37382. $41 = ((($$1)) + 1|0);
  37383. $42 = $43&255;
  37384. $44 = (($42) + -128)|0;
  37385. $45 = $44 | $40;
  37386. $46 = (($$144) + -1)|0;
  37387. $47 = ($45|0)<(0);
  37388. if (!($47)) {
  37389. break;
  37390. }
  37391. $49 = ($46|0)==(0);
  37392. if ($49) {
  37393. $$2 = $45;
  37394. break L14;
  37395. }
  37396. $50 = HEAP8[$41>>0]|0;
  37397. $51 = $50 & -64;
  37398. $52 = ($51<<24>>24)==(-128);
  37399. if ($52) {
  37400. $$1 = $41;$$141 = $45;$$144 = $46;$43 = $50;
  37401. } else {
  37402. label = 17;
  37403. break L1;
  37404. }
  37405. }
  37406. HEAP32[$$>>2] = 0;
  37407. HEAP32[$$47>>2] = $45;
  37408. $48 = (($2) - ($46))|0;
  37409. $$0 = $48;
  37410. break L1;
  37411. }
  37412. } while(0);
  37413. HEAP32[$$>>2] = $$2;
  37414. $$0 = -2;
  37415. }
  37416. }
  37417. } while(0);
  37418. if ((label|0) == 17) {
  37419. HEAP32[$$>>2] = 0;
  37420. $53 = (___errno_location()|0);
  37421. HEAP32[$53>>2] = 84;
  37422. $$0 = -1;
  37423. }
  37424. STACKTOP = sp;return ($$0|0);
  37425. }
  37426. function ___pthread_self_439() {
  37427. var $0 = 0, label = 0, sp = 0;
  37428. sp = STACKTOP;
  37429. $0 = (_pthread_self()|0);
  37430. return ($0|0);
  37431. }
  37432. function _strcpy($0,$1) {
  37433. $0 = $0|0;
  37434. $1 = $1|0;
  37435. var label = 0, sp = 0;
  37436. sp = STACKTOP;
  37437. (___stpcpy($0,$1)|0);
  37438. return ($0|0);
  37439. }
  37440. function ___stpcpy($0,$1) {
  37441. $0 = $0|0;
  37442. $1 = $1|0;
  37443. var $$0$lcssa = 0, $$025$lcssa = 0, $$02536 = 0, $$026$lcssa = 0, $$02642 = 0, $$027$lcssa = 0, $$02741 = 0, $$029 = 0, $$037 = 0, $$1$ph = 0, $$128$ph = 0, $$12834 = 0, $$135 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0;
  37444. var $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0;
  37445. var $35 = 0, $36 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  37446. sp = STACKTOP;
  37447. $2 = $1;
  37448. $3 = $0;
  37449. $4 = $2 ^ $3;
  37450. $5 = $4 & 3;
  37451. $6 = ($5|0)==(0);
  37452. L1: do {
  37453. if ($6) {
  37454. $7 = $2 & 3;
  37455. $8 = ($7|0)==(0);
  37456. if ($8) {
  37457. $$026$lcssa = $1;$$027$lcssa = $0;
  37458. } else {
  37459. $$02642 = $1;$$02741 = $0;
  37460. while(1) {
  37461. $9 = HEAP8[$$02642>>0]|0;
  37462. HEAP8[$$02741>>0] = $9;
  37463. $10 = ($9<<24>>24)==(0);
  37464. if ($10) {
  37465. $$029 = $$02741;
  37466. break L1;
  37467. }
  37468. $11 = ((($$02642)) + 1|0);
  37469. $12 = ((($$02741)) + 1|0);
  37470. $13 = $11;
  37471. $14 = $13 & 3;
  37472. $15 = ($14|0)==(0);
  37473. if ($15) {
  37474. $$026$lcssa = $11;$$027$lcssa = $12;
  37475. break;
  37476. } else {
  37477. $$02642 = $11;$$02741 = $12;
  37478. }
  37479. }
  37480. }
  37481. $16 = HEAP32[$$026$lcssa>>2]|0;
  37482. $17 = (($16) + -16843009)|0;
  37483. $18 = $16 & -2139062144;
  37484. $19 = $18 ^ -2139062144;
  37485. $20 = $19 & $17;
  37486. $21 = ($20|0)==(0);
  37487. if ($21) {
  37488. $$02536 = $$027$lcssa;$$037 = $$026$lcssa;$24 = $16;
  37489. while(1) {
  37490. $22 = ((($$037)) + 4|0);
  37491. $23 = ((($$02536)) + 4|0);
  37492. HEAP32[$$02536>>2] = $24;
  37493. $25 = HEAP32[$22>>2]|0;
  37494. $26 = (($25) + -16843009)|0;
  37495. $27 = $25 & -2139062144;
  37496. $28 = $27 ^ -2139062144;
  37497. $29 = $28 & $26;
  37498. $30 = ($29|0)==(0);
  37499. if ($30) {
  37500. $$02536 = $23;$$037 = $22;$24 = $25;
  37501. } else {
  37502. $$0$lcssa = $22;$$025$lcssa = $23;
  37503. break;
  37504. }
  37505. }
  37506. } else {
  37507. $$0$lcssa = $$026$lcssa;$$025$lcssa = $$027$lcssa;
  37508. }
  37509. $$1$ph = $$0$lcssa;$$128$ph = $$025$lcssa;
  37510. label = 8;
  37511. } else {
  37512. $$1$ph = $1;$$128$ph = $0;
  37513. label = 8;
  37514. }
  37515. } while(0);
  37516. if ((label|0) == 8) {
  37517. $31 = HEAP8[$$1$ph>>0]|0;
  37518. HEAP8[$$128$ph>>0] = $31;
  37519. $32 = ($31<<24>>24)==(0);
  37520. if ($32) {
  37521. $$029 = $$128$ph;
  37522. } else {
  37523. $$12834 = $$128$ph;$$135 = $$1$ph;
  37524. while(1) {
  37525. $33 = ((($$135)) + 1|0);
  37526. $34 = ((($$12834)) + 1|0);
  37527. $35 = HEAP8[$33>>0]|0;
  37528. HEAP8[$34>>0] = $35;
  37529. $36 = ($35<<24>>24)==(0);
  37530. if ($36) {
  37531. $$029 = $34;
  37532. break;
  37533. } else {
  37534. $$12834 = $34;$$135 = $33;
  37535. }
  37536. }
  37537. }
  37538. }
  37539. return ($$029|0);
  37540. }
  37541. function _fmaxf($0,$1) {
  37542. $0 = +$0;
  37543. $1 = +$1;
  37544. var $$0 = 0.0, $$unshifted = 0, $10 = 0.0, $11 = 0, $12 = 0.0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  37545. sp = STACKTOP;
  37546. $2 = (___FLOAT_BITS_269($0)|0);
  37547. $3 = $2 & 2147483647;
  37548. $4 = ($3>>>0)>(2139095040);
  37549. do {
  37550. if ($4) {
  37551. $$0 = $1;
  37552. } else {
  37553. $5 = (___FLOAT_BITS_269($1)|0);
  37554. $6 = $5 & 2147483647;
  37555. $7 = ($6>>>0)>(2139095040);
  37556. if ($7) {
  37557. $$0 = $0;
  37558. } else {
  37559. $$unshifted = $5 ^ $2;
  37560. $8 = ($$unshifted|0)<(0);
  37561. if ($8) {
  37562. $9 = ($2|0)<(0);
  37563. $10 = $9 ? $1 : $0;
  37564. $$0 = $10;
  37565. break;
  37566. } else {
  37567. $11 = $0 < $1;
  37568. $12 = $11 ? $1 : $0;
  37569. $$0 = $12;
  37570. break;
  37571. }
  37572. }
  37573. }
  37574. } while(0);
  37575. return (+$$0);
  37576. }
  37577. function ___FLOAT_BITS_269($0) {
  37578. $0 = +$0;
  37579. var $1 = 0, label = 0, sp = 0;
  37580. sp = STACKTOP;
  37581. $1 = (HEAPF32[tempDoublePtr>>2]=$0,HEAP32[tempDoublePtr>>2]|0);
  37582. return ($1|0);
  37583. }
  37584. function _fminf($0,$1) {
  37585. $0 = +$0;
  37586. $1 = +$1;
  37587. var $$0 = 0.0, $$unshifted = 0, $10 = 0.0, $11 = 0, $12 = 0.0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  37588. sp = STACKTOP;
  37589. $2 = (___FLOAT_BITS_271($0)|0);
  37590. $3 = $2 & 2147483647;
  37591. $4 = ($3>>>0)>(2139095040);
  37592. do {
  37593. if ($4) {
  37594. $$0 = $1;
  37595. } else {
  37596. $5 = (___FLOAT_BITS_271($1)|0);
  37597. $6 = $5 & 2147483647;
  37598. $7 = ($6>>>0)>(2139095040);
  37599. if ($7) {
  37600. $$0 = $0;
  37601. } else {
  37602. $$unshifted = $5 ^ $2;
  37603. $8 = ($$unshifted|0)<(0);
  37604. if ($8) {
  37605. $9 = ($2|0)<(0);
  37606. $10 = $9 ? $0 : $1;
  37607. $$0 = $10;
  37608. break;
  37609. } else {
  37610. $11 = $0 < $1;
  37611. $12 = $11 ? $0 : $1;
  37612. $$0 = $12;
  37613. break;
  37614. }
  37615. }
  37616. }
  37617. } while(0);
  37618. return (+$$0);
  37619. }
  37620. function ___FLOAT_BITS_271($0) {
  37621. $0 = +$0;
  37622. var $1 = 0, label = 0, sp = 0;
  37623. sp = STACKTOP;
  37624. $1 = (HEAPF32[tempDoublePtr>>2]=$0,HEAP32[tempDoublePtr>>2]|0);
  37625. return ($1|0);
  37626. }
  37627. function ___unlist_locked_file($0) {
  37628. $0 = $0|0;
  37629. var $$pre = 0, $$sink = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  37630. sp = STACKTOP;
  37631. $1 = ((($0)) + 68|0);
  37632. $2 = HEAP32[$1>>2]|0;
  37633. $3 = ($2|0)==(0);
  37634. if (!($3)) {
  37635. $4 = ((($0)) + 116|0);
  37636. $5 = HEAP32[$4>>2]|0;
  37637. $6 = ($5|0)==(0|0);
  37638. $$pre = ((($0)) + 112|0);
  37639. if (!($6)) {
  37640. $7 = HEAP32[$$pre>>2]|0;
  37641. $8 = ((($5)) + 112|0);
  37642. HEAP32[$8>>2] = $7;
  37643. }
  37644. $9 = HEAP32[$$pre>>2]|0;
  37645. $10 = ($9|0)==(0|0);
  37646. if ($10) {
  37647. $12 = (___pthread_self_607()|0);
  37648. $13 = ((($12)) + 232|0);
  37649. $$sink = $13;
  37650. } else {
  37651. $11 = ((($9)) + 116|0);
  37652. $$sink = $11;
  37653. }
  37654. HEAP32[$$sink>>2] = $5;
  37655. }
  37656. return;
  37657. }
  37658. function ___pthread_self_607() {
  37659. var $0 = 0, label = 0, sp = 0;
  37660. sp = STACKTOP;
  37661. $0 = (_pthread_self()|0);
  37662. return ($0|0);
  37663. }
  37664. function _fopen($0,$1) {
  37665. $0 = $0|0;
  37666. $1 = $1|0;
  37667. var $$0 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $memchr = 0, $vararg_buffer = 0, $vararg_buffer3 = 0, $vararg_buffer8 = 0, $vararg_ptr1 = 0;
  37668. var $vararg_ptr2 = 0, $vararg_ptr6 = 0, $vararg_ptr7 = 0, label = 0, sp = 0;
  37669. sp = STACKTOP;
  37670. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  37671. $vararg_buffer8 = sp + 32|0;
  37672. $vararg_buffer3 = sp + 16|0;
  37673. $vararg_buffer = sp;
  37674. $2 = HEAP8[$1>>0]|0;
  37675. $3 = $2 << 24 >> 24;
  37676. $memchr = (_memchr(18092,$3,4)|0);
  37677. $4 = ($memchr|0)==(0|0);
  37678. if ($4) {
  37679. $5 = (___errno_location()|0);
  37680. HEAP32[$5>>2] = 22;
  37681. $$0 = 0;
  37682. } else {
  37683. $6 = (___fmodeflags($1)|0);
  37684. $7 = $0;
  37685. $8 = $6 | 32768;
  37686. HEAP32[$vararg_buffer>>2] = $7;
  37687. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  37688. HEAP32[$vararg_ptr1>>2] = $8;
  37689. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  37690. HEAP32[$vararg_ptr2>>2] = 438;
  37691. $9 = (___syscall5(5,($vararg_buffer|0))|0);
  37692. $10 = (___syscall_ret($9)|0);
  37693. $11 = ($10|0)<(0);
  37694. if ($11) {
  37695. $$0 = 0;
  37696. } else {
  37697. $12 = $6 & 524288;
  37698. $13 = ($12|0)==(0);
  37699. if (!($13)) {
  37700. HEAP32[$vararg_buffer3>>2] = $10;
  37701. $vararg_ptr6 = ((($vararg_buffer3)) + 4|0);
  37702. HEAP32[$vararg_ptr6>>2] = 2;
  37703. $vararg_ptr7 = ((($vararg_buffer3)) + 8|0);
  37704. HEAP32[$vararg_ptr7>>2] = 1;
  37705. (___syscall221(221,($vararg_buffer3|0))|0);
  37706. }
  37707. $14 = (___fdopen($10,$1)|0);
  37708. $15 = ($14|0)==(0|0);
  37709. if ($15) {
  37710. HEAP32[$vararg_buffer8>>2] = $10;
  37711. (___syscall6(6,($vararg_buffer8|0))|0);
  37712. $$0 = 0;
  37713. } else {
  37714. $$0 = $14;
  37715. }
  37716. }
  37717. }
  37718. STACKTOP = sp;return ($$0|0);
  37719. }
  37720. function ___fmodeflags($0) {
  37721. $0 = $0|0;
  37722. var $$ = 0, $$$4 = 0, $$0 = 0, $$0$ = 0, $$2 = 0, $$2$ = 0, $$4 = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0;
  37723. var $8 = 0, $9 = 0, $not$ = 0, label = 0, sp = 0;
  37724. sp = STACKTOP;
  37725. $1 = (_strchr($0,43)|0);
  37726. $2 = ($1|0)==(0|0);
  37727. $3 = HEAP8[$0>>0]|0;
  37728. $not$ = ($3<<24>>24)!=(114);
  37729. $$ = $not$&1;
  37730. $$0 = $2 ? $$ : 2;
  37731. $4 = (_strchr($0,120)|0);
  37732. $5 = ($4|0)==(0|0);
  37733. $6 = $$0 | 128;
  37734. $$0$ = $5 ? $$0 : $6;
  37735. $7 = (_strchr($0,101)|0);
  37736. $8 = ($7|0)==(0|0);
  37737. $9 = $$0$ | 524288;
  37738. $$2 = $8 ? $$0$ : $9;
  37739. $10 = ($3<<24>>24)==(114);
  37740. $11 = $$2 | 64;
  37741. $$2$ = $10 ? $$2 : $11;
  37742. $12 = ($3<<24>>24)==(119);
  37743. $13 = $$2$ | 512;
  37744. $$4 = $12 ? $13 : $$2$;
  37745. $14 = ($3<<24>>24)==(97);
  37746. $15 = $$4 | 1024;
  37747. $$$4 = $14 ? $15 : $$4;
  37748. return ($$$4|0);
  37749. }
  37750. function ___fdopen($0,$1) {
  37751. $0 = $0|0;
  37752. $1 = $1|0;
  37753. var $$0 = 0, $$pre = 0, $$pre31 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0;
  37754. var $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $5 = 0, $6 = 0;
  37755. var $7 = 0, $8 = 0, $9 = 0, $memchr = 0, $vararg_buffer = 0, $vararg_buffer12 = 0, $vararg_buffer3 = 0, $vararg_buffer7 = 0, $vararg_ptr1 = 0, $vararg_ptr10 = 0, $vararg_ptr11 = 0, $vararg_ptr15 = 0, $vararg_ptr16 = 0, $vararg_ptr2 = 0, $vararg_ptr6 = 0, dest = 0, label = 0, sp = 0, stop = 0;
  37756. sp = STACKTOP;
  37757. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  37758. $vararg_buffer12 = sp + 40|0;
  37759. $vararg_buffer7 = sp + 24|0;
  37760. $vararg_buffer3 = sp + 16|0;
  37761. $vararg_buffer = sp;
  37762. $2 = sp + 56|0;
  37763. $3 = HEAP8[$1>>0]|0;
  37764. $4 = $3 << 24 >> 24;
  37765. $memchr = (_memchr(18092,$4,4)|0);
  37766. $5 = ($memchr|0)==(0|0);
  37767. if ($5) {
  37768. $6 = (___errno_location()|0);
  37769. HEAP32[$6>>2] = 22;
  37770. $$0 = 0;
  37771. } else {
  37772. $7 = (_malloc(1156)|0);
  37773. $8 = ($7|0)==(0|0);
  37774. if ($8) {
  37775. $$0 = 0;
  37776. } else {
  37777. dest=$7; stop=dest+124|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  37778. $9 = (_strchr($1,43)|0);
  37779. $10 = ($9|0)==(0|0);
  37780. if ($10) {
  37781. $11 = ($3<<24>>24)==(114);
  37782. $12 = $11 ? 8 : 4;
  37783. HEAP32[$7>>2] = $12;
  37784. }
  37785. $13 = (_strchr($1,101)|0);
  37786. $14 = ($13|0)==(0|0);
  37787. if ($14) {
  37788. $16 = $3;
  37789. } else {
  37790. HEAP32[$vararg_buffer>>2] = $0;
  37791. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  37792. HEAP32[$vararg_ptr1>>2] = 2;
  37793. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  37794. HEAP32[$vararg_ptr2>>2] = 1;
  37795. (___syscall221(221,($vararg_buffer|0))|0);
  37796. $$pre = HEAP8[$1>>0]|0;
  37797. $16 = $$pre;
  37798. }
  37799. $15 = ($16<<24>>24)==(97);
  37800. if ($15) {
  37801. HEAP32[$vararg_buffer3>>2] = $0;
  37802. $vararg_ptr6 = ((($vararg_buffer3)) + 4|0);
  37803. HEAP32[$vararg_ptr6>>2] = 3;
  37804. $17 = (___syscall221(221,($vararg_buffer3|0))|0);
  37805. $18 = $17 & 1024;
  37806. $19 = ($18|0)==(0);
  37807. if ($19) {
  37808. $20 = $17 | 1024;
  37809. HEAP32[$vararg_buffer7>>2] = $0;
  37810. $vararg_ptr10 = ((($vararg_buffer7)) + 4|0);
  37811. HEAP32[$vararg_ptr10>>2] = 4;
  37812. $vararg_ptr11 = ((($vararg_buffer7)) + 8|0);
  37813. HEAP32[$vararg_ptr11>>2] = $20;
  37814. (___syscall221(221,($vararg_buffer7|0))|0);
  37815. }
  37816. $21 = HEAP32[$7>>2]|0;
  37817. $22 = $21 | 128;
  37818. HEAP32[$7>>2] = $22;
  37819. $29 = $22;
  37820. } else {
  37821. $$pre31 = HEAP32[$7>>2]|0;
  37822. $29 = $$pre31;
  37823. }
  37824. $23 = ((($7)) + 60|0);
  37825. HEAP32[$23>>2] = $0;
  37826. $24 = ((($7)) + 132|0);
  37827. $25 = ((($7)) + 44|0);
  37828. HEAP32[$25>>2] = $24;
  37829. $26 = ((($7)) + 48|0);
  37830. HEAP32[$26>>2] = 1024;
  37831. $27 = ((($7)) + 75|0);
  37832. HEAP8[$27>>0] = -1;
  37833. $28 = $29 & 8;
  37834. $30 = ($28|0)==(0);
  37835. if ($30) {
  37836. $31 = $2;
  37837. HEAP32[$vararg_buffer12>>2] = $0;
  37838. $vararg_ptr15 = ((($vararg_buffer12)) + 4|0);
  37839. HEAP32[$vararg_ptr15>>2] = 21523;
  37840. $vararg_ptr16 = ((($vararg_buffer12)) + 8|0);
  37841. HEAP32[$vararg_ptr16>>2] = $31;
  37842. $32 = (___syscall54(54,($vararg_buffer12|0))|0);
  37843. $33 = ($32|0)==(0);
  37844. if ($33) {
  37845. HEAP8[$27>>0] = 10;
  37846. }
  37847. }
  37848. $34 = ((($7)) + 32|0);
  37849. HEAP32[$34>>2] = 11;
  37850. $35 = ((($7)) + 36|0);
  37851. HEAP32[$35>>2] = 10;
  37852. $36 = ((($7)) + 40|0);
  37853. HEAP32[$36>>2] = 3;
  37854. $37 = ((($7)) + 12|0);
  37855. HEAP32[$37>>2] = 2;
  37856. $38 = HEAP32[(21100)>>2]|0;
  37857. $39 = ($38|0)==(0);
  37858. if ($39) {
  37859. $40 = ((($7)) + 76|0);
  37860. HEAP32[$40>>2] = -1;
  37861. }
  37862. $41 = (___ofl_add($7)|0);
  37863. $$0 = $7;
  37864. }
  37865. }
  37866. STACKTOP = sp;return ($$0|0);
  37867. }
  37868. function ___ofl_add($0) {
  37869. $0 = $0|0;
  37870. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  37871. sp = STACKTOP;
  37872. $1 = (___ofl_lock()|0);
  37873. $2 = HEAP32[$1>>2]|0;
  37874. $3 = ((($0)) + 56|0);
  37875. HEAP32[$3>>2] = $2;
  37876. $4 = HEAP32[$1>>2]|0;
  37877. $5 = ($4|0)==(0|0);
  37878. if (!($5)) {
  37879. $6 = ((($4)) + 52|0);
  37880. HEAP32[$6>>2] = $0;
  37881. }
  37882. HEAP32[$1>>2] = $0;
  37883. ___ofl_unlock();
  37884. return ($0|0);
  37885. }
  37886. function ___ofl_lock() {
  37887. var label = 0, sp = 0;
  37888. sp = STACKTOP;
  37889. ___lock((21164|0));
  37890. return (21172|0);
  37891. }
  37892. function ___ofl_unlock() {
  37893. var label = 0, sp = 0;
  37894. sp = STACKTOP;
  37895. ___unlock((21164|0));
  37896. return;
  37897. }
  37898. function _fclose($0) {
  37899. $0 = $0|0;
  37900. var $$pre = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0;
  37901. var $27 = 0, $28 = 0, $29 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  37902. sp = STACKTOP;
  37903. $1 = ((($0)) + 76|0);
  37904. $2 = HEAP32[$1>>2]|0;
  37905. $3 = ($2|0)>(-1);
  37906. if ($3) {
  37907. $4 = (___lockfile($0)|0);
  37908. $29 = $4;
  37909. } else {
  37910. $29 = 0;
  37911. }
  37912. ___unlist_locked_file($0);
  37913. $5 = HEAP32[$0>>2]|0;
  37914. $6 = $5 & 1;
  37915. $7 = ($6|0)!=(0);
  37916. if (!($7)) {
  37917. $8 = (___ofl_lock()|0);
  37918. $9 = ((($0)) + 52|0);
  37919. $10 = HEAP32[$9>>2]|0;
  37920. $11 = ($10|0)==(0|0);
  37921. $12 = $10;
  37922. $$pre = ((($0)) + 56|0);
  37923. if (!($11)) {
  37924. $13 = HEAP32[$$pre>>2]|0;
  37925. $14 = ((($10)) + 56|0);
  37926. HEAP32[$14>>2] = $13;
  37927. }
  37928. $15 = HEAP32[$$pre>>2]|0;
  37929. $16 = ($15|0)==(0|0);
  37930. if (!($16)) {
  37931. $17 = ((($15)) + 52|0);
  37932. HEAP32[$17>>2] = $12;
  37933. }
  37934. $18 = HEAP32[$8>>2]|0;
  37935. $19 = ($18|0)==($0|0);
  37936. if ($19) {
  37937. HEAP32[$8>>2] = $15;
  37938. }
  37939. ___ofl_unlock();
  37940. }
  37941. $20 = (_fflush($0)|0);
  37942. $21 = ((($0)) + 12|0);
  37943. $22 = HEAP32[$21>>2]|0;
  37944. $23 = (FUNCTION_TABLE_ii[$22 & 15]($0)|0);
  37945. $24 = $23 | $20;
  37946. $25 = ((($0)) + 92|0);
  37947. $26 = HEAP32[$25>>2]|0;
  37948. $27 = ($26|0)==(0|0);
  37949. if (!($27)) {
  37950. _free($26);
  37951. }
  37952. if ($7) {
  37953. $28 = ($29|0)==(0);
  37954. if (!($28)) {
  37955. ___unlockfile($0);
  37956. }
  37957. } else {
  37958. _free($0);
  37959. }
  37960. return ($24|0);
  37961. }
  37962. function _fflush($0) {
  37963. $0 = $0|0;
  37964. var $$0 = 0, $$023 = 0, $$02325 = 0, $$02327 = 0, $$024$lcssa = 0, $$02426 = 0, $$1 = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0;
  37965. var $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $phitmp = 0, label = 0, sp = 0;
  37966. sp = STACKTOP;
  37967. $1 = ($0|0)==(0|0);
  37968. do {
  37969. if ($1) {
  37970. $8 = HEAP32[1067]|0;
  37971. $9 = ($8|0)==(0|0);
  37972. if ($9) {
  37973. $29 = 0;
  37974. } else {
  37975. $10 = HEAP32[1067]|0;
  37976. $11 = (_fflush($10)|0);
  37977. $29 = $11;
  37978. }
  37979. $12 = (___ofl_lock()|0);
  37980. $$02325 = HEAP32[$12>>2]|0;
  37981. $13 = ($$02325|0)==(0|0);
  37982. if ($13) {
  37983. $$024$lcssa = $29;
  37984. } else {
  37985. $$02327 = $$02325;$$02426 = $29;
  37986. while(1) {
  37987. $14 = ((($$02327)) + 76|0);
  37988. $15 = HEAP32[$14>>2]|0;
  37989. $16 = ($15|0)>(-1);
  37990. if ($16) {
  37991. $17 = (___lockfile($$02327)|0);
  37992. $26 = $17;
  37993. } else {
  37994. $26 = 0;
  37995. }
  37996. $18 = ((($$02327)) + 20|0);
  37997. $19 = HEAP32[$18>>2]|0;
  37998. $20 = ((($$02327)) + 28|0);
  37999. $21 = HEAP32[$20>>2]|0;
  38000. $22 = ($19>>>0)>($21>>>0);
  38001. if ($22) {
  38002. $23 = (___fflush_unlocked($$02327)|0);
  38003. $24 = $23 | $$02426;
  38004. $$1 = $24;
  38005. } else {
  38006. $$1 = $$02426;
  38007. }
  38008. $25 = ($26|0)==(0);
  38009. if (!($25)) {
  38010. ___unlockfile($$02327);
  38011. }
  38012. $27 = ((($$02327)) + 56|0);
  38013. $$023 = HEAP32[$27>>2]|0;
  38014. $28 = ($$023|0)==(0|0);
  38015. if ($28) {
  38016. $$024$lcssa = $$1;
  38017. break;
  38018. } else {
  38019. $$02327 = $$023;$$02426 = $$1;
  38020. }
  38021. }
  38022. }
  38023. ___ofl_unlock();
  38024. $$0 = $$024$lcssa;
  38025. } else {
  38026. $2 = ((($0)) + 76|0);
  38027. $3 = HEAP32[$2>>2]|0;
  38028. $4 = ($3|0)>(-1);
  38029. if (!($4)) {
  38030. $5 = (___fflush_unlocked($0)|0);
  38031. $$0 = $5;
  38032. break;
  38033. }
  38034. $6 = (___lockfile($0)|0);
  38035. $phitmp = ($6|0)==(0);
  38036. $7 = (___fflush_unlocked($0)|0);
  38037. if ($phitmp) {
  38038. $$0 = $7;
  38039. } else {
  38040. ___unlockfile($0);
  38041. $$0 = $7;
  38042. }
  38043. }
  38044. } while(0);
  38045. return ($$0|0);
  38046. }
  38047. function ___fflush_unlocked($0) {
  38048. $0 = $0|0;
  38049. var $$0 = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0;
  38050. var $9 = 0, label = 0, sp = 0;
  38051. sp = STACKTOP;
  38052. $1 = ((($0)) + 20|0);
  38053. $2 = HEAP32[$1>>2]|0;
  38054. $3 = ((($0)) + 28|0);
  38055. $4 = HEAP32[$3>>2]|0;
  38056. $5 = ($2>>>0)>($4>>>0);
  38057. if ($5) {
  38058. $6 = ((($0)) + 36|0);
  38059. $7 = HEAP32[$6>>2]|0;
  38060. (FUNCTION_TABLE_iiii[$7 & 15]($0,0,0)|0);
  38061. $8 = HEAP32[$1>>2]|0;
  38062. $9 = ($8|0)==(0|0);
  38063. if ($9) {
  38064. $$0 = -1;
  38065. } else {
  38066. label = 3;
  38067. }
  38068. } else {
  38069. label = 3;
  38070. }
  38071. if ((label|0) == 3) {
  38072. $10 = ((($0)) + 4|0);
  38073. $11 = HEAP32[$10>>2]|0;
  38074. $12 = ((($0)) + 8|0);
  38075. $13 = HEAP32[$12>>2]|0;
  38076. $14 = ($11>>>0)<($13>>>0);
  38077. if ($14) {
  38078. $15 = $11;
  38079. $16 = $13;
  38080. $17 = (($15) - ($16))|0;
  38081. $18 = ((($0)) + 40|0);
  38082. $19 = HEAP32[$18>>2]|0;
  38083. (FUNCTION_TABLE_iiii[$19 & 15]($0,$17,1)|0);
  38084. }
  38085. $20 = ((($0)) + 16|0);
  38086. HEAP32[$20>>2] = 0;
  38087. HEAP32[$3>>2] = 0;
  38088. HEAP32[$1>>2] = 0;
  38089. HEAP32[$12>>2] = 0;
  38090. HEAP32[$10>>2] = 0;
  38091. $$0 = 0;
  38092. }
  38093. return ($$0|0);
  38094. }
  38095. function _fgets($0,$1,$2) {
  38096. $0 = $0|0;
  38097. $1 = $1|0;
  38098. $2 = $2|0;
  38099. var $$0 = 0, $$06266 = 0, $$063 = 0, $$064 = 0, $$1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0;
  38100. var $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0;
  38101. var $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, $or$cond3 = 0;
  38102. var $sext$mask = 0, label = 0, sp = 0;
  38103. sp = STACKTOP;
  38104. $3 = ((($2)) + 76|0);
  38105. $4 = HEAP32[$3>>2]|0;
  38106. $5 = ($4|0)>(-1);
  38107. if ($5) {
  38108. $6 = (___lockfile($2)|0);
  38109. $17 = $6;
  38110. } else {
  38111. $17 = 0;
  38112. }
  38113. $7 = (($1) + -1)|0;
  38114. $8 = ($1|0)<(2);
  38115. $9 = ($7|0)!=(0);
  38116. if ($8) {
  38117. $10 = ((($2)) + 74|0);
  38118. $11 = HEAP8[$10>>0]|0;
  38119. $12 = $11 << 24 >> 24;
  38120. $13 = (($12) + 255)|0;
  38121. $14 = $13 | $12;
  38122. $15 = $14&255;
  38123. HEAP8[$10>>0] = $15;
  38124. $16 = ($17|0)==(0);
  38125. if (!($16)) {
  38126. ___unlockfile($2);
  38127. }
  38128. if ($9) {
  38129. $$0 = 0;
  38130. } else {
  38131. HEAP8[$0>>0] = 0;
  38132. $$0 = $0;
  38133. }
  38134. } else {
  38135. L11: do {
  38136. if ($9) {
  38137. $18 = ((($2)) + 4|0);
  38138. $19 = ((($2)) + 8|0);
  38139. $$063 = $7;$$064 = $0;
  38140. while(1) {
  38141. $20 = HEAP32[$18>>2]|0;
  38142. $21 = HEAP32[$19>>2]|0;
  38143. $22 = $20;
  38144. $23 = (($21) - ($22))|0;
  38145. $24 = (_memchr($20,10,$23)|0);
  38146. $25 = ($24|0)==(0|0);
  38147. $26 = $24;
  38148. $27 = (1 - ($22))|0;
  38149. $28 = (($27) + ($26))|0;
  38150. $29 = $25 ? $23 : $28;
  38151. $30 = ($29>>>0)<($$063>>>0);
  38152. $31 = $30 ? $29 : $$063;
  38153. _memcpy(($$064|0),($20|0),($31|0))|0;
  38154. $32 = HEAP32[$18>>2]|0;
  38155. $33 = (($32) + ($31)|0);
  38156. HEAP32[$18>>2] = $33;
  38157. $34 = (($$064) + ($31)|0);
  38158. $35 = (($$063) - ($31))|0;
  38159. $36 = ($35|0)!=(0);
  38160. $or$cond = $25 & $36;
  38161. if (!($or$cond)) {
  38162. $$1 = $34;
  38163. label = 17;
  38164. break L11;
  38165. }
  38166. $37 = HEAP32[$19>>2]|0;
  38167. $38 = ($33>>>0)<($37>>>0);
  38168. if ($38) {
  38169. $39 = ((($33)) + 1|0);
  38170. HEAP32[$18>>2] = $39;
  38171. $40 = HEAP8[$33>>0]|0;
  38172. $41 = $40&255;
  38173. $50 = $41;
  38174. } else {
  38175. $42 = (___uflow($2)|0);
  38176. $43 = ($42|0)<(0);
  38177. if ($43) {
  38178. break;
  38179. } else {
  38180. $50 = $42;
  38181. }
  38182. }
  38183. $48 = (($35) + -1)|0;
  38184. $49 = $50&255;
  38185. $51 = ((($34)) + 1|0);
  38186. HEAP8[$34>>0] = $49;
  38187. $sext$mask = $50 & 255;
  38188. $52 = ($sext$mask|0)!=(10);
  38189. $53 = ($48|0)!=(0);
  38190. $or$cond3 = $53 & $52;
  38191. if ($or$cond3) {
  38192. $$063 = $48;$$064 = $51;
  38193. } else {
  38194. $$1 = $51;
  38195. label = 17;
  38196. break L11;
  38197. }
  38198. }
  38199. $44 = ($34|0)==($0|0);
  38200. if ($44) {
  38201. $$06266 = 0;
  38202. } else {
  38203. $45 = HEAP32[$2>>2]|0;
  38204. $46 = $45 & 16;
  38205. $47 = ($46|0)==(0);
  38206. if ($47) {
  38207. $$06266 = 0;
  38208. } else {
  38209. $$1 = $34;
  38210. label = 17;
  38211. }
  38212. }
  38213. } else {
  38214. $$1 = $0;
  38215. label = 17;
  38216. }
  38217. } while(0);
  38218. if ((label|0) == 17) {
  38219. $54 = ($0|0)==(0|0);
  38220. if ($54) {
  38221. $$06266 = 0;
  38222. } else {
  38223. HEAP8[$$1>>0] = 0;
  38224. $$06266 = $0;
  38225. }
  38226. }
  38227. $55 = ($17|0)==(0);
  38228. if ($55) {
  38229. $$0 = $$06266;
  38230. } else {
  38231. ___unlockfile($2);
  38232. $$0 = $$06266;
  38233. }
  38234. }
  38235. return ($$0|0);
  38236. }
  38237. function _feof($0) {
  38238. $0 = $0|0;
  38239. var $$lobit = 0, $$lobit8 = 0, $$lobit9 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $phitmp = 0, label = 0, sp = 0;
  38240. sp = STACKTOP;
  38241. $1 = ((($0)) + 76|0);
  38242. $2 = HEAP32[$1>>2]|0;
  38243. $3 = ($2|0)>(-1);
  38244. if ($3) {
  38245. $6 = (___lockfile($0)|0);
  38246. $phitmp = ($6|0)==(0);
  38247. $7 = HEAP32[$0>>2]|0;
  38248. $8 = $7 >>> 4;
  38249. $$lobit = $8 & 1;
  38250. if ($phitmp) {
  38251. $$lobit9 = $$lobit;
  38252. } else {
  38253. ___unlockfile($0);
  38254. $$lobit9 = $$lobit;
  38255. }
  38256. } else {
  38257. $4 = HEAP32[$0>>2]|0;
  38258. $5 = $4 >>> 4;
  38259. $$lobit8 = $5 & 1;
  38260. $$lobit9 = $$lobit8;
  38261. }
  38262. return ($$lobit9|0);
  38263. }
  38264. function _fscanf($0,$1,$varargs) {
  38265. $0 = $0|0;
  38266. $1 = $1|0;
  38267. $varargs = $varargs|0;
  38268. var $2 = 0, $3 = 0, label = 0, sp = 0;
  38269. sp = STACKTOP;
  38270. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  38271. $2 = sp;
  38272. HEAP32[$2>>2] = $varargs;
  38273. $3 = (_vfscanf($0,$1,$2)|0);
  38274. STACKTOP = sp;return ($3|0);
  38275. }
  38276. function _vfscanf($0,$1,$2) {
  38277. $0 = $0|0;
  38278. $1 = $1|0;
  38279. $2 = $2|0;
  38280. var $$ = 0, $$$0266 = 0, $$$0268 = 0, $$$0305 = 0, $$$3 = 0, $$0266$lcssa = 0, $$0266417 = 0, $$0268 = 0, $$0272 = 0, $$0273429 = 0, $$0276$ph = 0, $$0278$ph = 0, $$0278$ph$phi = 0, $$0278$ph336 = 0, $$0283428 = 0, $$0286420 = 0, $$0288$ = 0, $$0288425 = 0, $$0292 = 0, $$0293 = 0;
  38281. var $$0305423 = 0, $$10 = 0, $$11 = 0, $$1267 = 0, $$1271 = 0, $$1274 = 0, $$1277$ph = 0, $$1279 = 0, $$1284 = 0, $$1289 = 0, $$2 = 0, $$2275 = 0, $$2280 = 0, $$2280$ph = 0, $$2280$ph$phi = 0, $$2285 = 0, $$2290 = 0, $$2307$ph = 0, $$3$lcssa = 0, $$319 = 0;
  38282. var $$320 = 0, $$321 = 0, $$322 = 0, $$327 = 0, $$328$le439 = 0, $$328$le441 = 0, $$3281 = 0, $$3291 = 0, $$3416 = 0, $$4282 = 0, $$4309 = 0, $$5 = 0, $$5299 = 0, $$5310 = 0, $$6 = 0, $$6311 = 0, $$7 = 0, $$7$ph = 0, $$7312 = 0, $$8 = 0;
  38283. var $$8313 = 0, $$9 = 0, $$9314 = 0, $$9314$ph = 0, $$lcssa355 = 0, $$not = 0, $$old4 = 0, $$ph = 0, $$ph353 = 0, $$pre = 0, $$pre$phi516Z2D = 0, $$pre507 = 0, $$pre509 = 0, $$pre511 = 0, $$pre512 = 0, $$pre513 = 0, $$pre514 = 0, $$pre515 = 0, $$sink443 = 0, $$sroa$2$0$$sroa_idx13 = 0;
  38284. var $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0, $114 = 0, $115 = 0, $116 = 0, $117 = 0;
  38285. var $118 = 0, $119 = 0, $12 = 0, $120 = 0, $121 = 0, $122 = 0, $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 0, $128 = 0, $129 = 0, $13 = 0, $130 = 0, $131 = 0, $132 = 0, $133 = 0, $134 = 0, $135 = 0;
  38286. var $136 = 0, $137 = 0, $138 = 0, $139 = 0, $14 = 0, $140 = 0, $141 = 0, $142 = 0, $143 = 0, $144 = 0, $145 = 0, $146 = 0, $147 = 0, $148 = 0, $149 = 0, $15 = 0, $150 = 0, $151 = 0, $152 = 0, $153 = 0;
  38287. var $154 = 0, $155 = 0, $156 = 0, $157 = 0, $158 = 0, $159 = 0, $16 = 0, $160 = 0, $161 = 0, $162 = 0, $163 = 0, $164 = 0, $165 = 0, $166 = 0, $167 = 0, $168 = 0, $169 = 0, $17 = 0, $170 = 0, $171 = 0;
  38288. var $172 = 0, $173 = 0, $174 = 0, $175 = 0, $176 = 0, $177 = 0, $178 = 0, $179 = 0, $18 = 0, $180 = 0, $181 = 0, $182 = 0, $183 = 0, $184 = 0, $185 = 0, $186 = 0, $187 = 0, $188 = 0, $189 = 0, $19 = 0;
  38289. var $190 = 0, $191 = 0, $192 = 0, $193 = 0, $194 = 0, $195 = 0, $196 = 0, $197 = 0, $198 = 0, $199 = 0, $20 = 0, $200 = 0, $201 = 0, $202 = 0, $203 = 0, $204 = 0, $205 = 0, $206 = 0, $207 = 0, $208 = 0;
  38290. var $209 = 0, $21 = 0, $210 = 0, $211 = 0, $212 = 0, $213 = 0, $214 = 0, $215 = 0, $216 = 0, $217 = 0, $218 = 0, $219 = 0, $22 = 0, $220 = 0, $221 = 0, $222 = 0, $223 = 0, $224 = 0, $225 = 0, $226 = 0;
  38291. var $227 = 0, $228 = 0, $229 = 0, $23 = 0, $230 = 0, $231 = 0, $232 = 0, $233 = 0, $234 = 0, $235 = 0, $236 = 0, $237 = 0, $238 = 0, $239 = 0, $24 = 0, $240 = 0, $241 = 0, $242 = 0, $243 = 0, $244 = 0;
  38292. var $245 = 0, $246 = 0, $247 = 0, $248 = 0, $249 = 0, $25 = 0, $250 = 0, $251 = 0, $252 = 0, $253 = 0, $254 = 0, $255 = 0, $256 = 0, $257 = 0, $258 = 0, $259 = 0, $26 = 0, $260 = 0, $261 = 0, $262 = 0;
  38293. var $263 = 0, $264 = 0, $265 = 0, $266 = 0, $267 = 0, $268 = 0, $269 = 0, $27 = 0, $270 = 0, $271 = 0, $272 = 0, $273 = 0, $274 = 0, $275 = 0, $276 = 0, $277 = 0, $278 = 0, $279 = 0, $28 = 0, $280 = 0;
  38294. var $281 = 0, $282 = 0, $283 = 0, $284 = 0, $285 = 0.0, $286 = 0, $287 = 0, $288 = 0, $289 = 0, $29 = 0, $290 = 0, $291 = 0, $292 = 0.0, $293 = 0, $294 = 0, $295 = 0, $296 = 0, $297 = 0, $298 = 0, $299 = 0;
  38295. var $3 = 0, $30 = 0, $300 = 0, $301 = 0, $302 = 0, $303 = 0, $304 = 0, $305 = 0, $306 = 0, $307 = 0, $308 = 0, $309 = 0, $31 = 0, $310 = 0, $311 = 0, $312 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0;
  38296. var $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0;
  38297. var $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0;
  38298. var $72 = 0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0, $89 = 0, $9 = 0;
  38299. var $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $arglist_current = 0, $arglist_next = 0, $expanded = 0, $expanded1 = 0, $expanded3 = 0, $expanded4 = 0, $expanded5 = 0, $factor = 0, $factor331 = 0, $isdigit = 0;
  38300. var $isdigit316 = 0, $isdigit316415 = 0, $isdigittmp = 0, $isdigittmp315 = 0, $isdigittmp315414 = 0, $narrow = 0, $narrow469 = 0, $or$cond = 0, $or$cond3 = 0, $or$cond318 = 0, $or$cond5 = 0, $trunc = 0, label = 0, sp = 0;
  38301. sp = STACKTOP;
  38302. STACKTOP = STACKTOP + 288|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(288|0);
  38303. $3 = sp + 8|0;
  38304. $4 = sp + 17|0;
  38305. $5 = sp;
  38306. $6 = sp + 16|0;
  38307. $7 = ((($0)) + 76|0);
  38308. $8 = HEAP32[$7>>2]|0;
  38309. $9 = ($8|0)>(-1);
  38310. if ($9) {
  38311. $10 = (___lockfile($0)|0);
  38312. $306 = $10;
  38313. } else {
  38314. $306 = 0;
  38315. }
  38316. $11 = HEAP8[$1>>0]|0;
  38317. $12 = ($11<<24>>24)==(0);
  38318. L4: do {
  38319. if ($12) {
  38320. $$3291 = 0;
  38321. } else {
  38322. $13 = ((($0)) + 4|0);
  38323. $14 = ((($0)) + 100|0);
  38324. $15 = ((($0)) + 108|0);
  38325. $16 = ((($0)) + 8|0);
  38326. $17 = ((($4)) + 10|0);
  38327. $18 = ((($4)) + 33|0);
  38328. $$sroa$2$0$$sroa_idx13 = ((($3)) + 4|0);
  38329. $19 = ((($4)) + 46|0);
  38330. $20 = ((($4)) + 94|0);
  38331. $21 = ((($4)) + 1|0);
  38332. $22 = ((($4)) + 1|0);
  38333. $$0273429 = $1;$$0283428 = 0;$$0288425 = 0;$$0305423 = 0;$102 = 0;$24 = $11;
  38334. L6: while(1) {
  38335. $23 = $24&255;
  38336. $25 = (_isspace($23)|0);
  38337. $26 = ($25|0)==(0);
  38338. L8: do {
  38339. if ($26) {
  38340. $53 = ($24<<24>>24)==(37);
  38341. L10: do {
  38342. if ($53) {
  38343. $54 = ((($$0273429)) + 1|0);
  38344. $55 = HEAP8[$54>>0]|0;
  38345. L12: do {
  38346. switch ($55<<24>>24) {
  38347. case 37: {
  38348. break L10;
  38349. break;
  38350. }
  38351. case 42: {
  38352. $76 = ((($$0273429)) + 2|0);
  38353. $$0293 = 0;$$2275 = $76;
  38354. break;
  38355. }
  38356. default: {
  38357. $77 = $55&255;
  38358. $isdigittmp = (($77) + -48)|0;
  38359. $isdigit = ($isdigittmp>>>0)<(10);
  38360. if ($isdigit) {
  38361. $78 = ((($$0273429)) + 2|0);
  38362. $79 = HEAP8[$78>>0]|0;
  38363. $80 = ($79<<24>>24)==(36);
  38364. if ($80) {
  38365. $81 = (_arg_n($2,$isdigittmp)|0);
  38366. $82 = ((($$0273429)) + 3|0);
  38367. $$0293 = $81;$$2275 = $82;
  38368. break L12;
  38369. }
  38370. }
  38371. $arglist_current = HEAP32[$2>>2]|0;
  38372. $83 = $arglist_current;
  38373. $84 = ((0) + 4|0);
  38374. $expanded1 = $84;
  38375. $expanded = (($expanded1) - 1)|0;
  38376. $85 = (($83) + ($expanded))|0;
  38377. $86 = ((0) + 4|0);
  38378. $expanded5 = $86;
  38379. $expanded4 = (($expanded5) - 1)|0;
  38380. $expanded3 = $expanded4 ^ -1;
  38381. $87 = $85 & $expanded3;
  38382. $88 = $87;
  38383. $89 = HEAP32[$88>>2]|0;
  38384. $arglist_next = ((($88)) + 4|0);
  38385. HEAP32[$2>>2] = $arglist_next;
  38386. $$0293 = $89;$$2275 = $54;
  38387. }
  38388. }
  38389. } while(0);
  38390. $90 = HEAP8[$$2275>>0]|0;
  38391. $91 = $90&255;
  38392. $isdigittmp315414 = (($91) + -48)|0;
  38393. $isdigit316415 = ($isdigittmp315414>>>0)<(10);
  38394. if ($isdigit316415) {
  38395. $$0266417 = 0;$$3416 = $$2275;$95 = $91;
  38396. while(1) {
  38397. $92 = ($$0266417*10)|0;
  38398. $93 = (($92) + -48)|0;
  38399. $94 = (($93) + ($95))|0;
  38400. $96 = ((($$3416)) + 1|0);
  38401. $97 = HEAP8[$96>>0]|0;
  38402. $98 = $97&255;
  38403. $isdigittmp315 = (($98) + -48)|0;
  38404. $isdigit316 = ($isdigittmp315>>>0)<(10);
  38405. if ($isdigit316) {
  38406. $$0266417 = $94;$$3416 = $96;$95 = $98;
  38407. } else {
  38408. $$0266$lcssa = $94;$$3$lcssa = $96;$$lcssa355 = $97;
  38409. break;
  38410. }
  38411. }
  38412. } else {
  38413. $$0266$lcssa = 0;$$3$lcssa = $$2275;$$lcssa355 = $90;
  38414. }
  38415. $99 = ($$lcssa355<<24>>24)==(109);
  38416. $100 = ($$0293|0)!=(0|0);
  38417. $101 = ((($$3$lcssa)) + 1|0);
  38418. $$$0305 = $99 ? 0 : $$0305423;
  38419. $$327 = $99 ? 0 : $102;
  38420. $$$3 = $99 ? $101 : $$3$lcssa;
  38421. $narrow = $100 & $99;
  38422. $103 = ((($$$3)) + 1|0);
  38423. $104 = HEAP8[$$$3>>0]|0;
  38424. switch ($104<<24>>24) {
  38425. case 104: {
  38426. $105 = HEAP8[$103>>0]|0;
  38427. $106 = ($105<<24>>24)==(104);
  38428. $107 = ((($$$3)) + 2|0);
  38429. $$319 = $106 ? $107 : $103;
  38430. $$320 = $106 ? -2 : -1;
  38431. $$0268 = $$320;$$5 = $$319;
  38432. break;
  38433. }
  38434. case 108: {
  38435. $108 = HEAP8[$103>>0]|0;
  38436. $109 = ($108<<24>>24)==(108);
  38437. $110 = ((($$$3)) + 2|0);
  38438. $$321 = $109 ? $110 : $103;
  38439. $$322 = $109 ? 3 : 1;
  38440. $$0268 = $$322;$$5 = $$321;
  38441. break;
  38442. }
  38443. case 106: {
  38444. $$0268 = 3;$$5 = $103;
  38445. break;
  38446. }
  38447. case 116: case 122: {
  38448. $$0268 = 1;$$5 = $103;
  38449. break;
  38450. }
  38451. case 76: {
  38452. $$0268 = 2;$$5 = $103;
  38453. break;
  38454. }
  38455. case 110: case 112: case 67: case 83: case 91: case 99: case 115: case 88: case 71: case 70: case 69: case 65: case 103: case 102: case 101: case 97: case 120: case 117: case 111: case 105: case 100: {
  38456. $$0268 = 0;$$5 = $$$3;
  38457. break;
  38458. }
  38459. default: {
  38460. $$7312 = $$$0305;$309 = $$327;$narrow469 = $narrow;
  38461. label = 137;
  38462. break L6;
  38463. }
  38464. }
  38465. $111 = HEAP8[$$5>>0]|0;
  38466. $112 = $111&255;
  38467. $113 = $112 & 47;
  38468. $114 = ($113|0)==(3);
  38469. $115 = $112 | 32;
  38470. $$ = $114 ? $115 : $112;
  38471. $$$0268 = $114 ? 1 : $$0268;
  38472. $trunc = $$&255;
  38473. switch ($trunc<<24>>24) {
  38474. case 99: {
  38475. $116 = ($$0266$lcssa|0)>(1);
  38476. $$$0266 = $116 ? $$0266$lcssa : 1;
  38477. $$1267 = $$$0266;$$1284 = $$0283428;
  38478. break;
  38479. }
  38480. case 91: {
  38481. $$1267 = $$0266$lcssa;$$1284 = $$0283428;
  38482. break;
  38483. }
  38484. case 110: {
  38485. $117 = ($$0283428|0)<(0);
  38486. $118 = $117 << 31 >> 31;
  38487. _store_int($$0293,$$$0268,$$0283428,$118);
  38488. $$11 = $$5;$$1289 = $$0288425;$$2285 = $$0283428;$$6311 = $$$0305;$307 = $$327;
  38489. break L8;
  38490. break;
  38491. }
  38492. default: {
  38493. ___shlim($0,0);
  38494. while(1) {
  38495. $119 = HEAP32[$13>>2]|0;
  38496. $120 = HEAP32[$14>>2]|0;
  38497. $121 = ($119>>>0)<($120>>>0);
  38498. if ($121) {
  38499. $122 = ((($119)) + 1|0);
  38500. HEAP32[$13>>2] = $122;
  38501. $123 = HEAP8[$119>>0]|0;
  38502. $124 = $123&255;
  38503. $126 = $124;
  38504. } else {
  38505. $125 = (___shgetc($0)|0);
  38506. $126 = $125;
  38507. }
  38508. $127 = (_isspace($126)|0);
  38509. $128 = ($127|0)==(0);
  38510. if ($128) {
  38511. break;
  38512. }
  38513. }
  38514. $129 = HEAP32[$14>>2]|0;
  38515. $130 = ($129|0)==(0|0);
  38516. if ($130) {
  38517. $$pre507 = HEAP32[$13>>2]|0;
  38518. $138 = $$pre507;
  38519. } else {
  38520. $131 = HEAP32[$13>>2]|0;
  38521. $132 = ((($131)) + -1|0);
  38522. HEAP32[$13>>2] = $132;
  38523. $133 = $132;
  38524. $138 = $133;
  38525. }
  38526. $134 = HEAP32[$15>>2]|0;
  38527. $135 = HEAP32[$16>>2]|0;
  38528. $136 = (($134) + ($$0283428))|0;
  38529. $137 = (($136) + ($138))|0;
  38530. $139 = (($137) - ($135))|0;
  38531. $$1267 = $$0266$lcssa;$$1284 = $139;
  38532. }
  38533. }
  38534. ___shlim($0,$$1267);
  38535. $140 = HEAP32[$13>>2]|0;
  38536. $141 = HEAP32[$14>>2]|0;
  38537. $142 = ($140>>>0)<($141>>>0);
  38538. if ($142) {
  38539. $143 = ((($140)) + 1|0);
  38540. HEAP32[$13>>2] = $143;
  38541. $147 = $141;
  38542. } else {
  38543. $144 = (___shgetc($0)|0);
  38544. $145 = ($144|0)<(0);
  38545. if ($145) {
  38546. $$7312 = $$$0305;$309 = $$327;$narrow469 = $narrow;
  38547. label = 137;
  38548. break L6;
  38549. }
  38550. $$pre509 = HEAP32[$14>>2]|0;
  38551. $147 = $$pre509;
  38552. }
  38553. $146 = ($147|0)==(0|0);
  38554. if (!($146)) {
  38555. $148 = HEAP32[$13>>2]|0;
  38556. $149 = ((($148)) + -1|0);
  38557. HEAP32[$13>>2] = $149;
  38558. }
  38559. L55: do {
  38560. switch ($trunc<<24>>24) {
  38561. case 91: case 99: case 115: {
  38562. $150 = ($$|0)==(99);
  38563. $151 = $$ | 16;
  38564. $152 = ($151|0)==(115);
  38565. L57: do {
  38566. if ($152) {
  38567. $153 = ($$|0)==(115);
  38568. _memset(($21|0),-1,256)|0;
  38569. HEAP8[$4>>0] = 0;
  38570. if ($153) {
  38571. HEAP8[$18>>0] = 0;
  38572. ;HEAP8[$17>>0]=0|0;HEAP8[$17+1>>0]=0|0;HEAP8[$17+2>>0]=0|0;HEAP8[$17+3>>0]=0|0;HEAP8[$17+4>>0]=0|0;
  38573. $$9 = $$5;
  38574. } else {
  38575. $$9 = $$5;
  38576. }
  38577. } else {
  38578. $154 = ((($$5)) + 1|0);
  38579. $155 = HEAP8[$154>>0]|0;
  38580. $156 = ($155<<24>>24)==(94);
  38581. $157 = ((($$5)) + 2|0);
  38582. $$0292 = $156&1;
  38583. $$6 = $156 ? $157 : $154;
  38584. $158 = $156&1;
  38585. _memset(($22|0),($158|0),256)|0;
  38586. HEAP8[$4>>0] = 0;
  38587. $159 = HEAP8[$$6>>0]|0;
  38588. switch ($159<<24>>24) {
  38589. case 45: {
  38590. $$sink443 = $19;
  38591. label = 64;
  38592. break;
  38593. }
  38594. case 93: {
  38595. $$sink443 = $20;
  38596. label = 64;
  38597. break;
  38598. }
  38599. default: {
  38600. $$pre514 = $$0292 ^ 1;
  38601. $$pre515 = $$pre514&255;
  38602. $$7$ph = $$6;$$pre$phi516Z2D = $$pre515;
  38603. }
  38604. }
  38605. if ((label|0) == 64) {
  38606. label = 0;
  38607. $160 = ((($$6)) + 1|0);
  38608. $161 = $$0292 ^ 1;
  38609. $162 = $161&255;
  38610. HEAP8[$$sink443>>0] = $162;
  38611. $$7$ph = $160;$$pre$phi516Z2D = $162;
  38612. }
  38613. $$7 = $$7$ph;
  38614. while(1) {
  38615. $163 = HEAP8[$$7>>0]|0;
  38616. L69: do {
  38617. switch ($163<<24>>24) {
  38618. case 0: {
  38619. $$7312 = $$$0305;$309 = $$327;$narrow469 = $narrow;
  38620. label = 137;
  38621. break L6;
  38622. break;
  38623. }
  38624. case 93: {
  38625. $$9 = $$7;
  38626. break L57;
  38627. break;
  38628. }
  38629. case 45: {
  38630. $164 = ((($$7)) + 1|0);
  38631. $165 = HEAP8[$164>>0]|0;
  38632. switch ($165<<24>>24) {
  38633. case 93: case 0: {
  38634. $$8 = $$7;$176 = 45;
  38635. break L69;
  38636. break;
  38637. }
  38638. default: {
  38639. }
  38640. }
  38641. $166 = ((($$7)) + -1|0);
  38642. $167 = HEAP8[$166>>0]|0;
  38643. $168 = ($167&255)<($165&255);
  38644. if ($168) {
  38645. $169 = $167&255;
  38646. $$0286420 = $169;
  38647. while(1) {
  38648. $170 = (($$0286420) + 1)|0;
  38649. $171 = (($4) + ($170)|0);
  38650. HEAP8[$171>>0] = $$pre$phi516Z2D;
  38651. $172 = HEAP8[$164>>0]|0;
  38652. $173 = $172&255;
  38653. $174 = ($170|0)<($173|0);
  38654. if ($174) {
  38655. $$0286420 = $170;
  38656. } else {
  38657. $$8 = $164;$176 = $172;
  38658. break;
  38659. }
  38660. }
  38661. } else {
  38662. $$8 = $164;$176 = $165;
  38663. }
  38664. break;
  38665. }
  38666. default: {
  38667. $$8 = $$7;$176 = $163;
  38668. }
  38669. }
  38670. } while(0);
  38671. $175 = $176&255;
  38672. $177 = (($175) + 1)|0;
  38673. $178 = (($4) + ($177)|0);
  38674. HEAP8[$178>>0] = $$pre$phi516Z2D;
  38675. $179 = ((($$8)) + 1|0);
  38676. $$7 = $179;
  38677. }
  38678. }
  38679. } while(0);
  38680. $180 = (($$1267) + 1)|0;
  38681. $181 = $150 ? $180 : 31;
  38682. $182 = ($$$0268|0)==(1);
  38683. L77: do {
  38684. if ($182) {
  38685. if ($narrow) {
  38686. $183 = $181 << 2;
  38687. $184 = (_malloc($183)|0);
  38688. $185 = ($184|0)==(0|0);
  38689. if ($185) {
  38690. $$7312 = 0;$309 = 0;$narrow469 = 1;
  38691. label = 137;
  38692. break L6;
  38693. } else {
  38694. $311 = $184;
  38695. }
  38696. } else {
  38697. $311 = $$0293;
  38698. }
  38699. HEAP32[$3>>2] = 0;
  38700. HEAP32[$$sroa$2$0$$sroa_idx13>>2] = 0;
  38701. $$0276$ph = $181;$$0278$ph = 0;$$ph = $311;
  38702. L82: while(1) {
  38703. $186 = ($$ph|0)==(0|0);
  38704. $$0278$ph336 = $$0278$ph;
  38705. while(1) {
  38706. L86: while(1) {
  38707. $187 = HEAP32[$13>>2]|0;
  38708. $188 = HEAP32[$14>>2]|0;
  38709. $189 = ($187>>>0)<($188>>>0);
  38710. if ($189) {
  38711. $190 = ((($187)) + 1|0);
  38712. HEAP32[$13>>2] = $190;
  38713. $191 = HEAP8[$187>>0]|0;
  38714. $192 = $191&255;
  38715. $195 = $192;
  38716. } else {
  38717. $193 = (___shgetc($0)|0);
  38718. $195 = $193;
  38719. }
  38720. $194 = (($195) + 1)|0;
  38721. $196 = (($4) + ($194)|0);
  38722. $197 = HEAP8[$196>>0]|0;
  38723. $198 = ($197<<24>>24)==(0);
  38724. if ($198) {
  38725. break L82;
  38726. }
  38727. $199 = $195&255;
  38728. HEAP8[$6>>0] = $199;
  38729. $200 = (_mbrtowc($5,$6,1,$3)|0);
  38730. switch ($200|0) {
  38731. case -1: {
  38732. $$7312 = 0;$309 = $$ph;$narrow469 = $narrow;
  38733. label = 137;
  38734. break L6;
  38735. break;
  38736. }
  38737. case -2: {
  38738. break;
  38739. }
  38740. default: {
  38741. break L86;
  38742. }
  38743. }
  38744. }
  38745. if ($186) {
  38746. $$1279 = $$0278$ph336;
  38747. } else {
  38748. $201 = (($$ph) + ($$0278$ph336<<2)|0);
  38749. $202 = (($$0278$ph336) + 1)|0;
  38750. $203 = HEAP32[$5>>2]|0;
  38751. HEAP32[$201>>2] = $203;
  38752. $$1279 = $202;
  38753. }
  38754. $204 = ($$1279|0)==($$0276$ph|0);
  38755. $or$cond = $narrow & $204;
  38756. if ($or$cond) {
  38757. break;
  38758. } else {
  38759. $$0278$ph336 = $$1279;
  38760. }
  38761. }
  38762. $factor331 = $$0276$ph << 1;
  38763. $205 = $factor331 | 1;
  38764. $206 = $205 << 2;
  38765. $207 = (_realloc($$ph,$206)|0);
  38766. $208 = ($207|0)==(0|0);
  38767. if ($208) {
  38768. $$7312 = 0;$309 = $$ph;$narrow469 = 1;
  38769. label = 137;
  38770. break L6;
  38771. } else {
  38772. $$0278$ph$phi = $$0276$ph;$$0276$ph = $205;$$ph = $207;$$0278$ph = $$0278$ph$phi;
  38773. }
  38774. }
  38775. $209 = (_mbsinit($3)|0);
  38776. $210 = ($209|0)==(0);
  38777. if ($210) {
  38778. $$7312 = 0;$309 = $$ph;$narrow469 = $narrow;
  38779. label = 137;
  38780. break L6;
  38781. } else {
  38782. $$4282 = $$0278$ph336;$$4309 = 0;$$5299 = $$ph;$312 = $$ph;
  38783. }
  38784. } else {
  38785. if ($narrow) {
  38786. $211 = (_malloc($181)|0);
  38787. $212 = ($211|0)==(0|0);
  38788. if ($212) {
  38789. $$7312 = 0;$309 = 0;$narrow469 = 1;
  38790. label = 137;
  38791. break L6;
  38792. } else {
  38793. $$1277$ph = $181;$$2280$ph = 0;$$2307$ph = $211;
  38794. }
  38795. while(1) {
  38796. $$2280 = $$2280$ph;
  38797. while(1) {
  38798. $213 = HEAP32[$13>>2]|0;
  38799. $214 = HEAP32[$14>>2]|0;
  38800. $215 = ($213>>>0)<($214>>>0);
  38801. if ($215) {
  38802. $216 = ((($213)) + 1|0);
  38803. HEAP32[$13>>2] = $216;
  38804. $217 = HEAP8[$213>>0]|0;
  38805. $218 = $217&255;
  38806. $221 = $218;
  38807. } else {
  38808. $219 = (___shgetc($0)|0);
  38809. $221 = $219;
  38810. }
  38811. $220 = (($221) + 1)|0;
  38812. $222 = (($4) + ($220)|0);
  38813. $223 = HEAP8[$222>>0]|0;
  38814. $224 = ($223<<24>>24)==(0);
  38815. if ($224) {
  38816. $$4282 = $$2280;$$4309 = $$2307$ph;$$5299 = 0;$312 = 0;
  38817. break L77;
  38818. }
  38819. $225 = $221&255;
  38820. $226 = (($$2280) + 1)|0;
  38821. $227 = (($$2307$ph) + ($$2280)|0);
  38822. HEAP8[$227>>0] = $225;
  38823. $228 = ($226|0)==($$1277$ph|0);
  38824. if ($228) {
  38825. break;
  38826. } else {
  38827. $$2280 = $226;
  38828. }
  38829. }
  38830. $factor = $$1277$ph << 1;
  38831. $229 = $factor | 1;
  38832. $230 = (_realloc($$2307$ph,$229)|0);
  38833. $231 = ($230|0)==(0|0);
  38834. if ($231) {
  38835. $$7312 = $$2307$ph;$309 = 0;$narrow469 = 1;
  38836. label = 137;
  38837. break L6;
  38838. } else {
  38839. $$2280$ph$phi = $$1277$ph;$$1277$ph = $229;$$2307$ph = $230;$$2280$ph = $$2280$ph$phi;
  38840. }
  38841. }
  38842. }
  38843. $232 = ($$0293|0)==(0|0);
  38844. if ($232) {
  38845. $250 = $147;
  38846. while(1) {
  38847. $248 = HEAP32[$13>>2]|0;
  38848. $249 = ($248>>>0)<($250>>>0);
  38849. if ($249) {
  38850. $251 = ((($248)) + 1|0);
  38851. HEAP32[$13>>2] = $251;
  38852. $252 = HEAP8[$248>>0]|0;
  38853. $253 = $252&255;
  38854. $256 = $253;
  38855. } else {
  38856. $254 = (___shgetc($0)|0);
  38857. $256 = $254;
  38858. }
  38859. $255 = (($256) + 1)|0;
  38860. $257 = (($4) + ($255)|0);
  38861. $258 = HEAP8[$257>>0]|0;
  38862. $259 = ($258<<24>>24)==(0);
  38863. if ($259) {
  38864. $$4282 = 0;$$4309 = 0;$$5299 = 0;$312 = 0;
  38865. break L77;
  38866. }
  38867. $$pre512 = HEAP32[$14>>2]|0;
  38868. $250 = $$pre512;
  38869. }
  38870. } else {
  38871. $$3281 = 0;$235 = $147;
  38872. while(1) {
  38873. $233 = HEAP32[$13>>2]|0;
  38874. $234 = ($233>>>0)<($235>>>0);
  38875. if ($234) {
  38876. $236 = ((($233)) + 1|0);
  38877. HEAP32[$13>>2] = $236;
  38878. $237 = HEAP8[$233>>0]|0;
  38879. $238 = $237&255;
  38880. $241 = $238;
  38881. } else {
  38882. $239 = (___shgetc($0)|0);
  38883. $241 = $239;
  38884. }
  38885. $240 = (($241) + 1)|0;
  38886. $242 = (($4) + ($240)|0);
  38887. $243 = HEAP8[$242>>0]|0;
  38888. $244 = ($243<<24>>24)==(0);
  38889. if ($244) {
  38890. $$4282 = $$3281;$$4309 = $$0293;$$5299 = 0;$312 = 0;
  38891. break L77;
  38892. }
  38893. $245 = $241&255;
  38894. $246 = (($$3281) + 1)|0;
  38895. $247 = (($$0293) + ($$3281)|0);
  38896. HEAP8[$247>>0] = $245;
  38897. $$pre511 = HEAP32[$14>>2]|0;
  38898. $$3281 = $246;$235 = $$pre511;
  38899. }
  38900. }
  38901. }
  38902. } while(0);
  38903. $260 = HEAP32[$14>>2]|0;
  38904. $261 = ($260|0)==(0|0);
  38905. if ($261) {
  38906. $$pre513 = HEAP32[$13>>2]|0;
  38907. $268 = $$pre513;
  38908. } else {
  38909. $262 = HEAP32[$13>>2]|0;
  38910. $263 = ((($262)) + -1|0);
  38911. HEAP32[$13>>2] = $263;
  38912. $264 = $263;
  38913. $268 = $264;
  38914. }
  38915. $265 = HEAP32[$15>>2]|0;
  38916. $266 = HEAP32[$16>>2]|0;
  38917. $267 = (($268) - ($266))|0;
  38918. $269 = (($267) + ($265))|0;
  38919. $270 = ($269|0)==(0);
  38920. if ($270) {
  38921. $$9314$ph = $$4309;$$ph353 = $312;
  38922. label = 139;
  38923. break L6;
  38924. }
  38925. $$not = $150 ^ 1;
  38926. $271 = ($269|0)==($$1267|0);
  38927. $or$cond318 = $271 | $$not;
  38928. if (!($or$cond318)) {
  38929. $$9314$ph = $$4309;$$ph353 = $312;
  38930. label = 139;
  38931. break L6;
  38932. }
  38933. do {
  38934. if ($narrow) {
  38935. if ($182) {
  38936. HEAP32[$$0293>>2] = $$5299;
  38937. break;
  38938. } else {
  38939. HEAP32[$$0293>>2] = $$4309;
  38940. break;
  38941. }
  38942. }
  38943. } while(0);
  38944. if ($150) {
  38945. $$10 = $$9;$$5310 = $$4309;$310 = $312;
  38946. } else {
  38947. $272 = ($$5299|0)==(0|0);
  38948. if (!($272)) {
  38949. $273 = (($$5299) + ($$4282<<2)|0);
  38950. HEAP32[$273>>2] = 0;
  38951. }
  38952. $274 = ($$4309|0)==(0|0);
  38953. if ($274) {
  38954. $$10 = $$9;$$5310 = 0;$310 = $312;
  38955. break L55;
  38956. }
  38957. $275 = (($$4309) + ($$4282)|0);
  38958. HEAP8[$275>>0] = 0;
  38959. $$10 = $$9;$$5310 = $$4309;$310 = $312;
  38960. }
  38961. break;
  38962. }
  38963. case 120: case 88: case 112: {
  38964. $$0272 = 16;
  38965. label = 125;
  38966. break;
  38967. }
  38968. case 111: {
  38969. $$0272 = 8;
  38970. label = 125;
  38971. break;
  38972. }
  38973. case 117: case 100: {
  38974. $$0272 = 10;
  38975. label = 125;
  38976. break;
  38977. }
  38978. case 105: {
  38979. $$0272 = 0;
  38980. label = 125;
  38981. break;
  38982. }
  38983. case 71: case 103: case 70: case 102: case 69: case 101: case 65: case 97: {
  38984. $285 = (+___floatscan($0,$$$0268,0));
  38985. $286 = HEAP32[$15>>2]|0;
  38986. $287 = HEAP32[$13>>2]|0;
  38987. $288 = HEAP32[$16>>2]|0;
  38988. $289 = (($288) - ($287))|0;
  38989. $290 = ($286|0)==($289|0);
  38990. if ($290) {
  38991. $$9314$ph = $$$0305;$$ph353 = $$327;
  38992. label = 139;
  38993. break L6;
  38994. }
  38995. $291 = ($$0293|0)==(0|0);
  38996. if ($291) {
  38997. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  38998. } else {
  38999. switch ($$$0268|0) {
  39000. case 0: {
  39001. $292 = $285;
  39002. HEAPF32[$$0293>>2] = $292;
  39003. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  39004. break L55;
  39005. break;
  39006. }
  39007. case 1: {
  39008. HEAPF64[$$0293>>3] = $285;
  39009. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  39010. break L55;
  39011. break;
  39012. }
  39013. case 2: {
  39014. HEAPF64[$$0293>>3] = $285;
  39015. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  39016. break L55;
  39017. break;
  39018. }
  39019. default: {
  39020. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  39021. break L55;
  39022. }
  39023. }
  39024. }
  39025. break;
  39026. }
  39027. default: {
  39028. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  39029. }
  39030. }
  39031. } while(0);
  39032. do {
  39033. if ((label|0) == 125) {
  39034. label = 0;
  39035. $276 = (___intscan($0,$$0272,0,-1,-1)|0);
  39036. $277 = tempRet0;
  39037. $278 = HEAP32[$15>>2]|0;
  39038. $279 = HEAP32[$13>>2]|0;
  39039. $280 = HEAP32[$16>>2]|0;
  39040. $281 = (($280) - ($279))|0;
  39041. $282 = ($278|0)==($281|0);
  39042. if ($282) {
  39043. $$9314$ph = $$$0305;$$ph353 = $$327;
  39044. label = 139;
  39045. break L6;
  39046. }
  39047. $283 = ($$|0)==(112);
  39048. $or$cond3 = $100 & $283;
  39049. if ($or$cond3) {
  39050. $284 = $276;
  39051. HEAP32[$$0293>>2] = $284;
  39052. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  39053. break;
  39054. } else {
  39055. _store_int($$0293,$$$0268,$276,$277);
  39056. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  39057. break;
  39058. }
  39059. }
  39060. } while(0);
  39061. $293 = HEAP32[$15>>2]|0;
  39062. $294 = HEAP32[$13>>2]|0;
  39063. $295 = HEAP32[$16>>2]|0;
  39064. $296 = (($293) + ($$1284))|0;
  39065. $297 = (($296) + ($294))|0;
  39066. $298 = (($297) - ($295))|0;
  39067. $299 = $100&1;
  39068. $$0288$ = (($299) + ($$0288425))|0;
  39069. $$11 = $$10;$$1289 = $$0288$;$$2285 = $298;$$6311 = $$5310;$307 = $310;
  39070. break L8;
  39071. }
  39072. } while(0);
  39073. $56 = $53&1;
  39074. $57 = (($$0273429) + ($56)|0);
  39075. ___shlim($0,0);
  39076. $58 = HEAP32[$13>>2]|0;
  39077. $59 = HEAP32[$14>>2]|0;
  39078. $60 = ($58>>>0)<($59>>>0);
  39079. if ($60) {
  39080. $61 = ((($58)) + 1|0);
  39081. HEAP32[$13>>2] = $61;
  39082. $62 = HEAP8[$58>>0]|0;
  39083. $63 = $62&255;
  39084. $68 = $63;
  39085. } else {
  39086. $64 = (___shgetc($0)|0);
  39087. $68 = $64;
  39088. }
  39089. $65 = HEAP8[$57>>0]|0;
  39090. $66 = $65&255;
  39091. $67 = ($68|0)==($66|0);
  39092. if (!($67)) {
  39093. label = 22;
  39094. break L6;
  39095. }
  39096. $75 = (($$0283428) + 1)|0;
  39097. $$11 = $57;$$1289 = $$0288425;$$2285 = $75;$$6311 = $$0305423;$307 = $102;
  39098. } else {
  39099. $$1274 = $$0273429;
  39100. while(1) {
  39101. $27 = ((($$1274)) + 1|0);
  39102. $28 = HEAP8[$27>>0]|0;
  39103. $29 = $28&255;
  39104. $30 = (_isspace($29)|0);
  39105. $31 = ($30|0)==(0);
  39106. if ($31) {
  39107. break;
  39108. } else {
  39109. $$1274 = $27;
  39110. }
  39111. }
  39112. ___shlim($0,0);
  39113. while(1) {
  39114. $32 = HEAP32[$13>>2]|0;
  39115. $33 = HEAP32[$14>>2]|0;
  39116. $34 = ($32>>>0)<($33>>>0);
  39117. if ($34) {
  39118. $35 = ((($32)) + 1|0);
  39119. HEAP32[$13>>2] = $35;
  39120. $36 = HEAP8[$32>>0]|0;
  39121. $37 = $36&255;
  39122. $39 = $37;
  39123. } else {
  39124. $38 = (___shgetc($0)|0);
  39125. $39 = $38;
  39126. }
  39127. $40 = (_isspace($39)|0);
  39128. $41 = ($40|0)==(0);
  39129. if ($41) {
  39130. break;
  39131. }
  39132. }
  39133. $42 = HEAP32[$14>>2]|0;
  39134. $43 = ($42|0)==(0|0);
  39135. if ($43) {
  39136. $$pre = HEAP32[$13>>2]|0;
  39137. $51 = $$pre;
  39138. } else {
  39139. $44 = HEAP32[$13>>2]|0;
  39140. $45 = ((($44)) + -1|0);
  39141. HEAP32[$13>>2] = $45;
  39142. $46 = $45;
  39143. $51 = $46;
  39144. }
  39145. $47 = HEAP32[$15>>2]|0;
  39146. $48 = HEAP32[$16>>2]|0;
  39147. $49 = (($47) + ($$0283428))|0;
  39148. $50 = (($49) + ($51))|0;
  39149. $52 = (($50) - ($48))|0;
  39150. $$11 = $$1274;$$1289 = $$0288425;$$2285 = $52;$$6311 = $$0305423;$307 = $102;
  39151. }
  39152. } while(0);
  39153. $300 = ((($$11)) + 1|0);
  39154. $301 = HEAP8[$300>>0]|0;
  39155. $302 = ($301<<24>>24)==(0);
  39156. if ($302) {
  39157. $$3291 = $$1289;
  39158. break L4;
  39159. } else {
  39160. $$0273429 = $300;$$0283428 = $$2285;$$0288425 = $$1289;$$0305423 = $$6311;$102 = $307;$24 = $301;
  39161. }
  39162. }
  39163. if ((label|0) == 22) {
  39164. $69 = HEAP32[$14>>2]|0;
  39165. $70 = ($69|0)==(0|0);
  39166. if (!($70)) {
  39167. $71 = HEAP32[$13>>2]|0;
  39168. $72 = ((($71)) + -1|0);
  39169. HEAP32[$13>>2] = $72;
  39170. }
  39171. $73 = ($68|0)>(-1);
  39172. $74 = ($$0288425|0)!=(0);
  39173. $or$cond5 = $74 | $73;
  39174. if ($or$cond5) {
  39175. $$3291 = $$0288425;
  39176. break;
  39177. } else {
  39178. $$1271 = 0;$$8313 = $$0305423;$308 = $102;
  39179. label = 138;
  39180. }
  39181. }
  39182. else if ((label|0) == 137) {
  39183. $$328$le441 = $narrow469&1;
  39184. $$old4 = ($$0288425|0)==(0);
  39185. if ($$old4) {
  39186. $$1271 = $$328$le441;$$8313 = $$7312;$308 = $309;
  39187. label = 138;
  39188. } else {
  39189. $$2 = $$328$le441;$$2290 = $$0288425;$$9314 = $$7312;$304 = $309;
  39190. }
  39191. }
  39192. else if ((label|0) == 139) {
  39193. $$328$le439 = $narrow&1;
  39194. $$2 = $$328$le439;$$2290 = $$0288425;$$9314 = $$9314$ph;$304 = $$ph353;
  39195. }
  39196. if ((label|0) == 138) {
  39197. $$2 = $$1271;$$2290 = -1;$$9314 = $$8313;$304 = $308;
  39198. }
  39199. $303 = ($$2|0)==(0);
  39200. if ($303) {
  39201. $$3291 = $$2290;
  39202. } else {
  39203. _free($$9314);
  39204. _free($304);
  39205. $$3291 = $$2290;
  39206. }
  39207. }
  39208. } while(0);
  39209. $305 = ($306|0)==(0);
  39210. if (!($305)) {
  39211. ___unlockfile($0);
  39212. }
  39213. STACKTOP = sp;return ($$3291|0);
  39214. }
  39215. function _arg_n($0,$1) {
  39216. $0 = $0|0;
  39217. $1 = $1|0;
  39218. var $$0 = 0, $10 = 0, $11 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $arglist_current = 0, $arglist_next = 0, $expanded = 0, $expanded1 = 0, $expanded3 = 0, $expanded4 = 0, $expanded5 = 0, $vacopy_currentptr = 0, label = 0;
  39219. var sp = 0;
  39220. sp = STACKTOP;
  39221. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  39222. $2 = sp;
  39223. $vacopy_currentptr = HEAP32[$0>>2]|0;
  39224. HEAP32[$2>>2] = $vacopy_currentptr;
  39225. $$0 = $1;
  39226. while(1) {
  39227. $3 = ($$0>>>0)>(1);
  39228. $arglist_current = HEAP32[$2>>2]|0;
  39229. $4 = $arglist_current;
  39230. $5 = ((0) + 4|0);
  39231. $expanded1 = $5;
  39232. $expanded = (($expanded1) - 1)|0;
  39233. $6 = (($4) + ($expanded))|0;
  39234. $7 = ((0) + 4|0);
  39235. $expanded5 = $7;
  39236. $expanded4 = (($expanded5) - 1)|0;
  39237. $expanded3 = $expanded4 ^ -1;
  39238. $8 = $6 & $expanded3;
  39239. $9 = $8;
  39240. $10 = HEAP32[$9>>2]|0;
  39241. $arglist_next = ((($9)) + 4|0);
  39242. HEAP32[$2>>2] = $arglist_next;
  39243. $11 = (($$0) + -1)|0;
  39244. if ($3) {
  39245. $$0 = $11;
  39246. } else {
  39247. break;
  39248. }
  39249. }
  39250. STACKTOP = sp;return ($10|0);
  39251. }
  39252. function _store_int($0,$1,$2,$3) {
  39253. $0 = $0|0;
  39254. $1 = $1|0;
  39255. $2 = $2|0;
  39256. $3 = $3|0;
  39257. var $10 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  39258. sp = STACKTOP;
  39259. $4 = ($0|0)==(0|0);
  39260. L1: do {
  39261. if (!($4)) {
  39262. switch ($1|0) {
  39263. case -2: {
  39264. $5 = $2&255;
  39265. HEAP8[$0>>0] = $5;
  39266. break L1;
  39267. break;
  39268. }
  39269. case -1: {
  39270. $6 = $2&65535;
  39271. HEAP16[$0>>1] = $6;
  39272. break L1;
  39273. break;
  39274. }
  39275. case 0: {
  39276. HEAP32[$0>>2] = $2;
  39277. break L1;
  39278. break;
  39279. }
  39280. case 1: {
  39281. HEAP32[$0>>2] = $2;
  39282. break L1;
  39283. break;
  39284. }
  39285. case 3: {
  39286. $7 = $0;
  39287. $8 = $7;
  39288. HEAP32[$8>>2] = $2;
  39289. $9 = (($7) + 4)|0;
  39290. $10 = $9;
  39291. HEAP32[$10>>2] = $3;
  39292. break L1;
  39293. break;
  39294. }
  39295. default: {
  39296. break L1;
  39297. }
  39298. }
  39299. }
  39300. } while(0);
  39301. return;
  39302. }
  39303. function _mbsinit($0) {
  39304. $0 = $0|0;
  39305. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  39306. sp = STACKTOP;
  39307. $1 = ($0|0)==(0|0);
  39308. if ($1) {
  39309. $5 = 1;
  39310. } else {
  39311. $2 = HEAP32[$0>>2]|0;
  39312. $3 = ($2|0)==(0);
  39313. $5 = $3;
  39314. }
  39315. $4 = $5&1;
  39316. return ($4|0);
  39317. }
  39318. function _fseek($0,$1,$2) {
  39319. $0 = $0|0;
  39320. $1 = $1|0;
  39321. $2 = $2|0;
  39322. var $3 = 0, label = 0, sp = 0;
  39323. sp = STACKTOP;
  39324. $3 = (___fseeko($0,$1,$2)|0);
  39325. return ($3|0);
  39326. }
  39327. function ___fseeko($0,$1,$2) {
  39328. $0 = $0|0;
  39329. $1 = $1|0;
  39330. $2 = $2|0;
  39331. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $phitmp = 0, label = 0, sp = 0;
  39332. sp = STACKTOP;
  39333. $3 = ((($0)) + 76|0);
  39334. $4 = HEAP32[$3>>2]|0;
  39335. $5 = ($4|0)>(-1);
  39336. if ($5) {
  39337. $7 = (___lockfile($0)|0);
  39338. $phitmp = ($7|0)==(0);
  39339. $8 = (___fseeko_unlocked($0,$1,$2)|0);
  39340. if ($phitmp) {
  39341. $9 = $8;
  39342. } else {
  39343. ___unlockfile($0);
  39344. $9 = $8;
  39345. }
  39346. } else {
  39347. $6 = (___fseeko_unlocked($0,$1,$2)|0);
  39348. $9 = $6;
  39349. }
  39350. return ($9|0);
  39351. }
  39352. function ___fseeko_unlocked($0,$1,$2) {
  39353. $0 = $0|0;
  39354. $1 = $1|0;
  39355. $2 = $2|0;
  39356. var $$0 = 0, $$019 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0;
  39357. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  39358. sp = STACKTOP;
  39359. $3 = ($2|0)==(1);
  39360. if ($3) {
  39361. $4 = ((($0)) + 8|0);
  39362. $5 = HEAP32[$4>>2]|0;
  39363. $6 = ((($0)) + 4|0);
  39364. $7 = HEAP32[$6>>2]|0;
  39365. $8 = (($1) - ($5))|0;
  39366. $9 = (($8) + ($7))|0;
  39367. $$019 = $9;
  39368. } else {
  39369. $$019 = $1;
  39370. }
  39371. $10 = ((($0)) + 20|0);
  39372. $11 = HEAP32[$10>>2]|0;
  39373. $12 = ((($0)) + 28|0);
  39374. $13 = HEAP32[$12>>2]|0;
  39375. $14 = ($11>>>0)>($13>>>0);
  39376. if ($14) {
  39377. $15 = ((($0)) + 36|0);
  39378. $16 = HEAP32[$15>>2]|0;
  39379. (FUNCTION_TABLE_iiii[$16 & 15]($0,0,0)|0);
  39380. $17 = HEAP32[$10>>2]|0;
  39381. $18 = ($17|0)==(0|0);
  39382. if ($18) {
  39383. $$0 = -1;
  39384. } else {
  39385. label = 5;
  39386. }
  39387. } else {
  39388. label = 5;
  39389. }
  39390. if ((label|0) == 5) {
  39391. $19 = ((($0)) + 16|0);
  39392. HEAP32[$19>>2] = 0;
  39393. HEAP32[$12>>2] = 0;
  39394. HEAP32[$10>>2] = 0;
  39395. $20 = ((($0)) + 40|0);
  39396. $21 = HEAP32[$20>>2]|0;
  39397. $22 = (FUNCTION_TABLE_iiii[$21 & 15]($0,$$019,$2)|0);
  39398. $23 = ($22|0)<(0);
  39399. if ($23) {
  39400. $$0 = -1;
  39401. } else {
  39402. $24 = ((($0)) + 8|0);
  39403. HEAP32[$24>>2] = 0;
  39404. $25 = ((($0)) + 4|0);
  39405. HEAP32[$25>>2] = 0;
  39406. $26 = HEAP32[$0>>2]|0;
  39407. $27 = $26 & -17;
  39408. HEAP32[$0>>2] = $27;
  39409. $$0 = 0;
  39410. }
  39411. }
  39412. return ($$0|0);
  39413. }
  39414. function _strstr($0,$1) {
  39415. $0 = $0|0;
  39416. $1 = $1|0;
  39417. var $$0 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0;
  39418. var $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  39419. sp = STACKTOP;
  39420. $2 = HEAP8[$1>>0]|0;
  39421. $3 = ($2<<24>>24)==(0);
  39422. do {
  39423. if ($3) {
  39424. $$0 = $0;
  39425. } else {
  39426. $4 = $2 << 24 >> 24;
  39427. $5 = (_strchr($0,$4)|0);
  39428. $6 = ($5|0)==(0|0);
  39429. if ($6) {
  39430. $$0 = 0;
  39431. } else {
  39432. $7 = ((($1)) + 1|0);
  39433. $8 = HEAP8[$7>>0]|0;
  39434. $9 = ($8<<24>>24)==(0);
  39435. if ($9) {
  39436. $$0 = $5;
  39437. } else {
  39438. $10 = ((($5)) + 1|0);
  39439. $11 = HEAP8[$10>>0]|0;
  39440. $12 = ($11<<24>>24)==(0);
  39441. if ($12) {
  39442. $$0 = 0;
  39443. } else {
  39444. $13 = ((($1)) + 2|0);
  39445. $14 = HEAP8[$13>>0]|0;
  39446. $15 = ($14<<24>>24)==(0);
  39447. if ($15) {
  39448. $16 = (_twobyte_strstr($5,$1)|0);
  39449. $$0 = $16;
  39450. break;
  39451. }
  39452. $17 = ((($5)) + 2|0);
  39453. $18 = HEAP8[$17>>0]|0;
  39454. $19 = ($18<<24>>24)==(0);
  39455. if ($19) {
  39456. $$0 = 0;
  39457. } else {
  39458. $20 = ((($1)) + 3|0);
  39459. $21 = HEAP8[$20>>0]|0;
  39460. $22 = ($21<<24>>24)==(0);
  39461. if ($22) {
  39462. $23 = (_threebyte_strstr($5,$1)|0);
  39463. $$0 = $23;
  39464. break;
  39465. }
  39466. $24 = ((($5)) + 3|0);
  39467. $25 = HEAP8[$24>>0]|0;
  39468. $26 = ($25<<24>>24)==(0);
  39469. if ($26) {
  39470. $$0 = 0;
  39471. } else {
  39472. $27 = ((($1)) + 4|0);
  39473. $28 = HEAP8[$27>>0]|0;
  39474. $29 = ($28<<24>>24)==(0);
  39475. if ($29) {
  39476. $30 = (_fourbyte_strstr($5,$1)|0);
  39477. $$0 = $30;
  39478. break;
  39479. } else {
  39480. $31 = (_twoway_strstr($5,$1)|0);
  39481. $$0 = $31;
  39482. break;
  39483. }
  39484. }
  39485. }
  39486. }
  39487. }
  39488. }
  39489. }
  39490. } while(0);
  39491. return ($$0|0);
  39492. }
  39493. function _twobyte_strstr($0,$1) {
  39494. $0 = $0|0;
  39495. $1 = $1|0;
  39496. var $$lcssa = 0, $$sink = 0, $$sink$in = 0, $$sink$masked = 0, $$sink17$sink = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0;
  39497. var label = 0, sp = 0;
  39498. sp = STACKTOP;
  39499. $2 = HEAP8[$1>>0]|0;
  39500. $3 = $2&255;
  39501. $4 = $3 << 8;
  39502. $5 = ((($1)) + 1|0);
  39503. $6 = HEAP8[$5>>0]|0;
  39504. $7 = $6&255;
  39505. $8 = $4 | $7;
  39506. $9 = HEAP8[$0>>0]|0;
  39507. $10 = $9&255;
  39508. $$sink$in = $10;$$sink17$sink = $0;
  39509. while(1) {
  39510. $11 = ((($$sink17$sink)) + 1|0);
  39511. $12 = HEAP8[$11>>0]|0;
  39512. $13 = ($12<<24>>24)==(0);
  39513. if ($13) {
  39514. $$lcssa = 0;
  39515. break;
  39516. }
  39517. $$sink = $$sink$in << 8;
  39518. $14 = $12&255;
  39519. $$sink$masked = $$sink & 65280;
  39520. $15 = $14 | $$sink$masked;
  39521. $16 = ($15|0)==($8|0);
  39522. if ($16) {
  39523. $$lcssa = $$sink17$sink;
  39524. break;
  39525. } else {
  39526. $$sink$in = $15;$$sink17$sink = $11;
  39527. }
  39528. }
  39529. return ($$lcssa|0);
  39530. }
  39531. function _threebyte_strstr($0,$1) {
  39532. $0 = $0|0;
  39533. $1 = $1|0;
  39534. var $$016$lcssa = 0, $$01619 = 0, $$020 = 0, $$lcssa = 0, $$not = 0, $$not17 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0;
  39535. var $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $4 = 0, $5 = 0, $6 = 0;
  39536. var $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, $or$cond18 = 0, label = 0, sp = 0;
  39537. sp = STACKTOP;
  39538. $2 = HEAP8[$1>>0]|0;
  39539. $3 = $2&255;
  39540. $4 = $3 << 24;
  39541. $5 = ((($1)) + 1|0);
  39542. $6 = HEAP8[$5>>0]|0;
  39543. $7 = $6&255;
  39544. $8 = $7 << 16;
  39545. $9 = $8 | $4;
  39546. $10 = ((($1)) + 2|0);
  39547. $11 = HEAP8[$10>>0]|0;
  39548. $12 = $11&255;
  39549. $13 = $12 << 8;
  39550. $14 = $9 | $13;
  39551. $15 = HEAP8[$0>>0]|0;
  39552. $16 = $15&255;
  39553. $17 = $16 << 24;
  39554. $18 = ((($0)) + 1|0);
  39555. $19 = HEAP8[$18>>0]|0;
  39556. $20 = $19&255;
  39557. $21 = $20 << 16;
  39558. $22 = $21 | $17;
  39559. $23 = ((($0)) + 2|0);
  39560. $24 = HEAP8[$23>>0]|0;
  39561. $25 = $24&255;
  39562. $26 = $25 << 8;
  39563. $27 = $22 | $26;
  39564. $28 = ($24<<24>>24)!=(0);
  39565. $$not17 = $28 ^ 1;
  39566. $29 = ($27|0)==($14|0);
  39567. $or$cond18 = $29 | $$not17;
  39568. if ($or$cond18) {
  39569. $$016$lcssa = $23;$$lcssa = $28;
  39570. } else {
  39571. $$01619 = $23;$$020 = $27;
  39572. while(1) {
  39573. $30 = ((($$01619)) + 1|0);
  39574. $31 = HEAP8[$30>>0]|0;
  39575. $32 = $31&255;
  39576. $33 = $32 | $$020;
  39577. $34 = $33 << 8;
  39578. $35 = ($31<<24>>24)!=(0);
  39579. $$not = $35 ^ 1;
  39580. $36 = ($34|0)==($14|0);
  39581. $or$cond = $36 | $$not;
  39582. if ($or$cond) {
  39583. $$016$lcssa = $30;$$lcssa = $35;
  39584. break;
  39585. } else {
  39586. $$01619 = $30;$$020 = $34;
  39587. }
  39588. }
  39589. }
  39590. $37 = ((($$016$lcssa)) + -2|0);
  39591. $38 = $$lcssa ? $37 : 0;
  39592. return ($38|0);
  39593. }
  39594. function _fourbyte_strstr($0,$1) {
  39595. $0 = $0|0;
  39596. $1 = $1|0;
  39597. var $$lcssa = 0, $$not = 0, $$not22 = 0, $$sink21$lcssa = 0, $$sink2124 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0;
  39598. var $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0;
  39599. var $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, $or$cond23 = 0, label = 0, sp = 0;
  39600. sp = STACKTOP;
  39601. $2 = HEAP8[$1>>0]|0;
  39602. $3 = $2&255;
  39603. $4 = $3 << 24;
  39604. $5 = ((($1)) + 1|0);
  39605. $6 = HEAP8[$5>>0]|0;
  39606. $7 = $6&255;
  39607. $8 = $7 << 16;
  39608. $9 = $8 | $4;
  39609. $10 = ((($1)) + 2|0);
  39610. $11 = HEAP8[$10>>0]|0;
  39611. $12 = $11&255;
  39612. $13 = $12 << 8;
  39613. $14 = $9 | $13;
  39614. $15 = ((($1)) + 3|0);
  39615. $16 = HEAP8[$15>>0]|0;
  39616. $17 = $16&255;
  39617. $18 = $14 | $17;
  39618. $19 = HEAP8[$0>>0]|0;
  39619. $20 = $19&255;
  39620. $21 = $20 << 24;
  39621. $22 = ((($0)) + 1|0);
  39622. $23 = HEAP8[$22>>0]|0;
  39623. $24 = $23&255;
  39624. $25 = $24 << 16;
  39625. $26 = $25 | $21;
  39626. $27 = ((($0)) + 2|0);
  39627. $28 = HEAP8[$27>>0]|0;
  39628. $29 = $28&255;
  39629. $30 = $29 << 8;
  39630. $31 = $26 | $30;
  39631. $32 = ((($0)) + 3|0);
  39632. $33 = HEAP8[$32>>0]|0;
  39633. $34 = $33&255;
  39634. $35 = $34 | $31;
  39635. $36 = ($33<<24>>24)!=(0);
  39636. $$not22 = $36 ^ 1;
  39637. $37 = ($35|0)==($18|0);
  39638. $or$cond23 = $37 | $$not22;
  39639. if ($or$cond23) {
  39640. $$lcssa = $36;$$sink21$lcssa = $32;
  39641. } else {
  39642. $$sink2124 = $32;$39 = $35;
  39643. while(1) {
  39644. $38 = $39 << 8;
  39645. $40 = ((($$sink2124)) + 1|0);
  39646. $41 = HEAP8[$40>>0]|0;
  39647. $42 = $41&255;
  39648. $43 = $42 | $38;
  39649. $44 = ($41<<24>>24)!=(0);
  39650. $$not = $44 ^ 1;
  39651. $45 = ($43|0)==($18|0);
  39652. $or$cond = $45 | $$not;
  39653. if ($or$cond) {
  39654. $$lcssa = $44;$$sink21$lcssa = $40;
  39655. break;
  39656. } else {
  39657. $$sink2124 = $40;$39 = $43;
  39658. }
  39659. }
  39660. }
  39661. $46 = ((($$sink21$lcssa)) + -3|0);
  39662. $47 = $$lcssa ? $46 : 0;
  39663. return ($47|0);
  39664. }
  39665. function _twoway_strstr($0,$1) {
  39666. $0 = $0|0;
  39667. $1 = $1|0;
  39668. var $$0166 = 0, $$0168 = 0, $$0169 = 0, $$0169$be = 0, $$0170 = 0, $$0175$ph$ph$lcssa220 = 0, $$0175$ph$ph$lcssa220323 = 0, $$0175$ph$ph256 = 0, $$0179244 = 0, $$0183$ph200$ph255 = 0, $$0183$ph200250 = 0, $$0183$ph262 = 0, $$0185$ph$lcssa = 0, $$0185$ph$lcssa322 = 0, $$0185$ph261 = 0, $$0187$lcssa320321 = 0, $$0187266 = 0, $$1176$$0175 = 0, $$1176$ph$ph$lcssa211 = 0, $$1176$ph$ph235 = 0;
  39669. var $$1180224 = 0, $$1184$ph196$ph234 = 0, $$1184$ph196229 = 0, $$1184$ph241 = 0, $$1186$$0185 = 0, $$1186$$0185$ = 0, $$1186$ph$lcssa = 0, $$1186$ph240 = 0, $$2181 = 0, $$2181$sink = 0, $$3 = 0, $$3173 = 0, $$3178 = 0, $$3182223 = 0, $$4 = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0;
  39670. var $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0, $114 = 0, $115 = 0, $116 = 0, $117 = 0, $118 = 0, $119 = 0, $12 = 0, $120 = 0, $121 = 0;
  39671. var $122 = 0, $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 0, $128 = 0, $129 = 0, $13 = 0, $130 = 0, $131 = 0, $132 = 0, $133 = 0, $134 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0;
  39672. var $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0;
  39673. var $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0;
  39674. var $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0, $72 = 0, $73 = 0;
  39675. var $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0, $89 = 0, $9 = 0, $90 = 0, $91 = 0;
  39676. var $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $cond = 0, $cond191 = 0, $cond191222 = 0, $cond265 = 0, $div = 0, $div188 = 0, $or$cond = 0, $or$cond190 = 0, label = 0, sp = 0;
  39677. sp = STACKTOP;
  39678. STACKTOP = STACKTOP + 1056|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(1056|0);
  39679. $2 = sp + 1024|0;
  39680. $3 = sp;
  39681. ;HEAP32[$2>>2]=0|0;HEAP32[$2+4>>2]=0|0;HEAP32[$2+8>>2]=0|0;HEAP32[$2+12>>2]=0|0;HEAP32[$2+16>>2]=0|0;HEAP32[$2+20>>2]=0|0;HEAP32[$2+24>>2]=0|0;HEAP32[$2+28>>2]=0|0;
  39682. $4 = HEAP8[$1>>0]|0;
  39683. $cond265 = ($4<<24>>24)==(0);
  39684. L1: do {
  39685. if ($cond265) {
  39686. $$0175$ph$ph$lcssa220323 = 1;$$0185$ph$lcssa322 = -1;$$0187$lcssa320321 = 0;$$1176$ph$ph$lcssa211 = 1;$$1186$ph$lcssa = -1;
  39687. label = 27;
  39688. } else {
  39689. $5 = $4&255;
  39690. $$0187266 = 0;$12 = $4;$20 = $5;
  39691. while(1) {
  39692. $8 = (($0) + ($$0187266)|0);
  39693. $9 = HEAP8[$8>>0]|0;
  39694. $10 = ($9<<24>>24)==(0);
  39695. if ($10) {
  39696. $$3 = 0;
  39697. break L1;
  39698. }
  39699. $11 = $12 & 31;
  39700. $13 = $11&255;
  39701. $14 = 1 << $13;
  39702. $div188 = ($12&255) >>> 5;
  39703. $15 = $div188&255;
  39704. $16 = (($2) + ($15<<2)|0);
  39705. $17 = HEAP32[$16>>2]|0;
  39706. $18 = $17 | $14;
  39707. HEAP32[$16>>2] = $18;
  39708. $7 = (($$0187266) + 1)|0;
  39709. $19 = (($3) + ($20<<2)|0);
  39710. HEAP32[$19>>2] = $7;
  39711. $21 = (($1) + ($7)|0);
  39712. $22 = HEAP8[$21>>0]|0;
  39713. $23 = $22&255;
  39714. $cond = ($22<<24>>24)==(0);
  39715. if ($cond) {
  39716. break;
  39717. } else {
  39718. $$0187266 = $7;$12 = $22;$20 = $23;
  39719. }
  39720. }
  39721. $6 = ($7>>>0)>(1);
  39722. if ($6) {
  39723. $$0183$ph262 = 0;$$0185$ph261 = -1;$129 = 1;
  39724. L7: while(1) {
  39725. $$0175$ph$ph256 = 1;$$0183$ph200$ph255 = $$0183$ph262;$132 = $129;
  39726. while(1) {
  39727. $$0183$ph200250 = $$0183$ph200$ph255;$131 = $132;
  39728. L11: while(1) {
  39729. $$0179244 = 1;$31 = $131;
  39730. while(1) {
  39731. $27 = (($$0179244) + ($$0185$ph261))|0;
  39732. $28 = (($1) + ($27)|0);
  39733. $29 = HEAP8[$28>>0]|0;
  39734. $30 = (($1) + ($31)|0);
  39735. $32 = HEAP8[$30>>0]|0;
  39736. $33 = ($29<<24>>24)==($32<<24>>24);
  39737. if (!($33)) {
  39738. break L11;
  39739. }
  39740. $34 = ($$0179244|0)==($$0175$ph$ph256|0);
  39741. $25 = (($$0179244) + 1)|0;
  39742. if ($34) {
  39743. break;
  39744. }
  39745. $24 = (($25) + ($$0183$ph200250))|0;
  39746. $26 = ($24>>>0)<($7>>>0);
  39747. if ($26) {
  39748. $$0179244 = $25;$31 = $24;
  39749. } else {
  39750. $$0175$ph$ph$lcssa220 = $$0175$ph$ph256;$$0185$ph$lcssa = $$0185$ph261;
  39751. break L7;
  39752. }
  39753. }
  39754. $35 = (($$0175$ph$ph256) + ($$0183$ph200250))|0;
  39755. $36 = (($35) + 1)|0;
  39756. $37 = ($36>>>0)<($7>>>0);
  39757. if ($37) {
  39758. $$0183$ph200250 = $35;$131 = $36;
  39759. } else {
  39760. $$0175$ph$ph$lcssa220 = $$0175$ph$ph256;$$0185$ph$lcssa = $$0185$ph261;
  39761. break L7;
  39762. }
  39763. }
  39764. $38 = ($29&255)>($32&255);
  39765. $39 = (($31) - ($$0185$ph261))|0;
  39766. if (!($38)) {
  39767. break;
  39768. }
  39769. $43 = (($31) + 1)|0;
  39770. $44 = ($43>>>0)<($7>>>0);
  39771. if ($44) {
  39772. $$0175$ph$ph256 = $39;$$0183$ph200$ph255 = $31;$132 = $43;
  39773. } else {
  39774. $$0175$ph$ph$lcssa220 = $39;$$0185$ph$lcssa = $$0185$ph261;
  39775. break L7;
  39776. }
  39777. }
  39778. $40 = (($$0183$ph200250) + 1)|0;
  39779. $41 = (($$0183$ph200250) + 2)|0;
  39780. $42 = ($41>>>0)<($7>>>0);
  39781. if ($42) {
  39782. $$0183$ph262 = $40;$$0185$ph261 = $$0183$ph200250;$129 = $41;
  39783. } else {
  39784. $$0175$ph$ph$lcssa220 = 1;$$0185$ph$lcssa = $$0183$ph200250;
  39785. break;
  39786. }
  39787. }
  39788. if ($6) {
  39789. $$1184$ph241 = 0;$$1186$ph240 = -1;$130 = 1;
  39790. while(1) {
  39791. $$1176$ph$ph235 = 1;$$1184$ph196$ph234 = $$1184$ph241;$134 = $130;
  39792. while(1) {
  39793. $$1184$ph196229 = $$1184$ph196$ph234;$133 = $134;
  39794. L26: while(1) {
  39795. $$1180224 = 1;$52 = $133;
  39796. while(1) {
  39797. $48 = (($$1180224) + ($$1186$ph240))|0;
  39798. $49 = (($1) + ($48)|0);
  39799. $50 = HEAP8[$49>>0]|0;
  39800. $51 = (($1) + ($52)|0);
  39801. $53 = HEAP8[$51>>0]|0;
  39802. $54 = ($50<<24>>24)==($53<<24>>24);
  39803. if (!($54)) {
  39804. break L26;
  39805. }
  39806. $55 = ($$1180224|0)==($$1176$ph$ph235|0);
  39807. $46 = (($$1180224) + 1)|0;
  39808. if ($55) {
  39809. break;
  39810. }
  39811. $45 = (($46) + ($$1184$ph196229))|0;
  39812. $47 = ($45>>>0)<($7>>>0);
  39813. if ($47) {
  39814. $$1180224 = $46;$52 = $45;
  39815. } else {
  39816. $$0175$ph$ph$lcssa220323 = $$0175$ph$ph$lcssa220;$$0185$ph$lcssa322 = $$0185$ph$lcssa;$$0187$lcssa320321 = $7;$$1176$ph$ph$lcssa211 = $$1176$ph$ph235;$$1186$ph$lcssa = $$1186$ph240;
  39817. label = 27;
  39818. break L1;
  39819. }
  39820. }
  39821. $56 = (($$1176$ph$ph235) + ($$1184$ph196229))|0;
  39822. $57 = (($56) + 1)|0;
  39823. $58 = ($57>>>0)<($7>>>0);
  39824. if ($58) {
  39825. $$1184$ph196229 = $56;$133 = $57;
  39826. } else {
  39827. $$0175$ph$ph$lcssa220323 = $$0175$ph$ph$lcssa220;$$0185$ph$lcssa322 = $$0185$ph$lcssa;$$0187$lcssa320321 = $7;$$1176$ph$ph$lcssa211 = $$1176$ph$ph235;$$1186$ph$lcssa = $$1186$ph240;
  39828. label = 27;
  39829. break L1;
  39830. }
  39831. }
  39832. $59 = ($50&255)<($53&255);
  39833. $60 = (($52) - ($$1186$ph240))|0;
  39834. if (!($59)) {
  39835. break;
  39836. }
  39837. $64 = (($52) + 1)|0;
  39838. $65 = ($64>>>0)<($7>>>0);
  39839. if ($65) {
  39840. $$1176$ph$ph235 = $60;$$1184$ph196$ph234 = $52;$134 = $64;
  39841. } else {
  39842. $$0175$ph$ph$lcssa220323 = $$0175$ph$ph$lcssa220;$$0185$ph$lcssa322 = $$0185$ph$lcssa;$$0187$lcssa320321 = $7;$$1176$ph$ph$lcssa211 = $60;$$1186$ph$lcssa = $$1186$ph240;
  39843. label = 27;
  39844. break L1;
  39845. }
  39846. }
  39847. $61 = (($$1184$ph196229) + 1)|0;
  39848. $62 = (($$1184$ph196229) + 2)|0;
  39849. $63 = ($62>>>0)<($7>>>0);
  39850. if ($63) {
  39851. $$1184$ph241 = $61;$$1186$ph240 = $$1184$ph196229;$130 = $62;
  39852. } else {
  39853. $$0175$ph$ph$lcssa220323 = $$0175$ph$ph$lcssa220;$$0185$ph$lcssa322 = $$0185$ph$lcssa;$$0187$lcssa320321 = $7;$$1176$ph$ph$lcssa211 = 1;$$1186$ph$lcssa = $$1184$ph196229;
  39854. label = 27;
  39855. break;
  39856. }
  39857. }
  39858. } else {
  39859. $$0175$ph$ph$lcssa220323 = $$0175$ph$ph$lcssa220;$$0185$ph$lcssa322 = $$0185$ph$lcssa;$$0187$lcssa320321 = $7;$$1176$ph$ph$lcssa211 = 1;$$1186$ph$lcssa = -1;
  39860. label = 27;
  39861. }
  39862. } else {
  39863. $$0175$ph$ph$lcssa220323 = 1;$$0185$ph$lcssa322 = -1;$$0187$lcssa320321 = $7;$$1176$ph$ph$lcssa211 = 1;$$1186$ph$lcssa = -1;
  39864. label = 27;
  39865. }
  39866. }
  39867. } while(0);
  39868. L36: do {
  39869. if ((label|0) == 27) {
  39870. $66 = (($$1186$ph$lcssa) + 1)|0;
  39871. $67 = (($$0185$ph$lcssa322) + 1)|0;
  39872. $68 = ($66>>>0)>($67>>>0);
  39873. $$1176$$0175 = $68 ? $$1176$ph$ph$lcssa211 : $$0175$ph$ph$lcssa220323;
  39874. $$1186$$0185 = $68 ? $$1186$ph$lcssa : $$0185$ph$lcssa322;
  39875. $69 = (($1) + ($$1176$$0175)|0);
  39876. $70 = (($$1186$$0185) + 1)|0;
  39877. $71 = (_memcmp($1,$69,$70)|0);
  39878. $72 = ($71|0)==(0);
  39879. if ($72) {
  39880. $77 = (($$0187$lcssa320321) - ($$1176$$0175))|0;
  39881. $$0168 = $77;$$3178 = $$1176$$0175;
  39882. } else {
  39883. $73 = (($$0187$lcssa320321) - ($$1186$$0185))|0;
  39884. $74 = (($73) + -1)|0;
  39885. $75 = ($$1186$$0185>>>0)>($74>>>0);
  39886. $$1186$$0185$ = $75 ? $$1186$$0185 : $74;
  39887. $76 = (($$1186$$0185$) + 1)|0;
  39888. $$0168 = 0;$$3178 = $76;
  39889. }
  39890. $78 = $$0187$lcssa320321 | 63;
  39891. $79 = (($$0187$lcssa320321) + -1)|0;
  39892. $80 = ($$0168|0)!=(0);
  39893. $81 = (($$0187$lcssa320321) - ($$3178))|0;
  39894. $$0166 = $0;$$0169 = 0;$$0170 = $0;
  39895. while(1) {
  39896. $82 = $$0170;
  39897. $83 = $$0166;
  39898. $84 = (($82) - ($83))|0;
  39899. $85 = ($84>>>0)<($$0187$lcssa320321>>>0);
  39900. do {
  39901. if ($85) {
  39902. $86 = (_memchr($$0170,0,$78)|0);
  39903. $87 = ($86|0)==(0|0);
  39904. if ($87) {
  39905. $91 = (($$0170) + ($78)|0);
  39906. $$3173 = $91;
  39907. break;
  39908. } else {
  39909. $88 = $86;
  39910. $89 = (($88) - ($83))|0;
  39911. $90 = ($89>>>0)<($$0187$lcssa320321>>>0);
  39912. if ($90) {
  39913. $$3 = 0;
  39914. break L36;
  39915. } else {
  39916. $$3173 = $86;
  39917. break;
  39918. }
  39919. }
  39920. } else {
  39921. $$3173 = $$0170;
  39922. }
  39923. } while(0);
  39924. $92 = (($$0166) + ($79)|0);
  39925. $93 = HEAP8[$92>>0]|0;
  39926. $div = ($93&255) >>> 5;
  39927. $94 = $div&255;
  39928. $95 = (($2) + ($94<<2)|0);
  39929. $96 = HEAP32[$95>>2]|0;
  39930. $97 = $93 & 31;
  39931. $98 = $97&255;
  39932. $99 = 1 << $98;
  39933. $100 = $99 & $96;
  39934. $101 = ($100|0)==(0);
  39935. L50: do {
  39936. if ($101) {
  39937. $$0169$be = 0;$$2181$sink = $$0187$lcssa320321;
  39938. } else {
  39939. $102 = $93&255;
  39940. $103 = (($3) + ($102<<2)|0);
  39941. $104 = HEAP32[$103>>2]|0;
  39942. $105 = (($$0187$lcssa320321) - ($104))|0;
  39943. $106 = ($105|0)==(0);
  39944. if (!($106)) {
  39945. $107 = ($$0169|0)!=(0);
  39946. $or$cond = $80 & $107;
  39947. $108 = ($105>>>0)<($$3178>>>0);
  39948. $or$cond190 = $or$cond & $108;
  39949. $$2181 = $or$cond190 ? $81 : $105;
  39950. $$0169$be = 0;$$2181$sink = $$2181;
  39951. break;
  39952. }
  39953. $110 = ($70>>>0)>($$0169>>>0);
  39954. $111 = $110 ? $70 : $$0169;
  39955. $112 = (($1) + ($111)|0);
  39956. $113 = HEAP8[$112>>0]|0;
  39957. $cond191222 = ($113<<24>>24)==(0);
  39958. L55: do {
  39959. if ($cond191222) {
  39960. $$4 = $70;
  39961. } else {
  39962. $$3182223 = $111;$117 = $113;
  39963. while(1) {
  39964. $114 = (($$0166) + ($$3182223)|0);
  39965. $115 = HEAP8[$114>>0]|0;
  39966. $116 = ($117<<24>>24)==($115<<24>>24);
  39967. if (!($116)) {
  39968. break;
  39969. }
  39970. $118 = (($$3182223) + 1)|0;
  39971. $119 = (($1) + ($118)|0);
  39972. $120 = HEAP8[$119>>0]|0;
  39973. $cond191 = ($120<<24>>24)==(0);
  39974. if ($cond191) {
  39975. $$4 = $70;
  39976. break L55;
  39977. } else {
  39978. $$3182223 = $118;$117 = $120;
  39979. }
  39980. }
  39981. $121 = (($$3182223) - ($$1186$$0185))|0;
  39982. $$0169$be = 0;$$2181$sink = $121;
  39983. break L50;
  39984. }
  39985. } while(0);
  39986. while(1) {
  39987. $122 = ($$4>>>0)>($$0169>>>0);
  39988. if (!($122)) {
  39989. $$3 = $$0166;
  39990. break L36;
  39991. }
  39992. $123 = (($$4) + -1)|0;
  39993. $124 = (($1) + ($123)|0);
  39994. $125 = HEAP8[$124>>0]|0;
  39995. $126 = (($$0166) + ($123)|0);
  39996. $127 = HEAP8[$126>>0]|0;
  39997. $128 = ($125<<24>>24)==($127<<24>>24);
  39998. if ($128) {
  39999. $$4 = $123;
  40000. } else {
  40001. $$0169$be = $$0168;$$2181$sink = $$3178;
  40002. break;
  40003. }
  40004. }
  40005. }
  40006. } while(0);
  40007. $109 = (($$0166) + ($$2181$sink)|0);
  40008. $$0166 = $109;$$0169 = $$0169$be;$$0170 = $$3173;
  40009. }
  40010. }
  40011. } while(0);
  40012. STACKTOP = sp;return ($$3|0);
  40013. }
  40014. function _strrchr($0,$1) {
  40015. $0 = $0|0;
  40016. $1 = $1|0;
  40017. var $2 = 0, $3 = 0, $4 = 0, label = 0, sp = 0;
  40018. sp = STACKTOP;
  40019. $2 = (_strlen($0)|0);
  40020. $3 = (($2) + 1)|0;
  40021. $4 = (___memrchr($0,$1,$3)|0);
  40022. return ($4|0);
  40023. }
  40024. function ___memrchr($0,$1,$2) {
  40025. $0 = $0|0;
  40026. $1 = $1|0;
  40027. $2 = $2|0;
  40028. var $$0 = 0, $$09 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, label = 0, sp = 0;
  40029. sp = STACKTOP;
  40030. $3 = $1&255;
  40031. $$09 = $2;
  40032. while(1) {
  40033. $4 = (($$09) + -1)|0;
  40034. $5 = ($$09|0)==(0);
  40035. if ($5) {
  40036. $$0 = 0;
  40037. break;
  40038. }
  40039. $6 = (($0) + ($4)|0);
  40040. $7 = HEAP8[$6>>0]|0;
  40041. $8 = ($7<<24>>24)==($3<<24>>24);
  40042. if ($8) {
  40043. $$0 = $6;
  40044. break;
  40045. } else {
  40046. $$09 = $4;
  40047. }
  40048. }
  40049. return ($$0|0);
  40050. }
  40051. function _strspn($0,$1) {
  40052. $0 = $0|0;
  40053. $1 = $1|0;
  40054. var $$0 = 0, $$01925 = 0, $$020 = 0, $$1$lcssa = 0, $$123 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0;
  40055. var $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0;
  40056. var $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $div = 0, $div21 = 0, label = 0, sp = 0;
  40057. sp = STACKTOP;
  40058. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  40059. $2 = sp;
  40060. ;HEAP32[$2>>2]=0|0;HEAP32[$2+4>>2]=0|0;HEAP32[$2+8>>2]=0|0;HEAP32[$2+12>>2]=0|0;HEAP32[$2+16>>2]=0|0;HEAP32[$2+20>>2]=0|0;HEAP32[$2+24>>2]=0|0;HEAP32[$2+28>>2]=0|0;
  40061. $3 = HEAP8[$1>>0]|0;
  40062. $4 = ($3<<24>>24)==(0);
  40063. do {
  40064. if ($4) {
  40065. $$0 = 0;
  40066. } else {
  40067. $5 = ((($1)) + 1|0);
  40068. $6 = HEAP8[$5>>0]|0;
  40069. $7 = ($6<<24>>24)==(0);
  40070. if ($7) {
  40071. $$020 = $0;
  40072. while(1) {
  40073. $8 = HEAP8[$$020>>0]|0;
  40074. $9 = ($8<<24>>24)==($3<<24>>24);
  40075. $10 = ((($$020)) + 1|0);
  40076. if ($9) {
  40077. $$020 = $10;
  40078. } else {
  40079. break;
  40080. }
  40081. }
  40082. $11 = $$020;
  40083. $12 = $0;
  40084. $13 = (($11) - ($12))|0;
  40085. $$0 = $13;
  40086. break;
  40087. } else {
  40088. $$01925 = $1;$17 = $3;
  40089. }
  40090. while(1) {
  40091. $16 = $17 & 31;
  40092. $18 = $16&255;
  40093. $19 = 1 << $18;
  40094. $div21 = ($17&255) >>> 5;
  40095. $20 = $div21&255;
  40096. $21 = (($2) + ($20<<2)|0);
  40097. $22 = HEAP32[$21>>2]|0;
  40098. $23 = $22 | $19;
  40099. HEAP32[$21>>2] = $23;
  40100. $24 = ((($$01925)) + 1|0);
  40101. $25 = HEAP8[$24>>0]|0;
  40102. $26 = ($25<<24>>24)==(0);
  40103. if ($26) {
  40104. break;
  40105. } else {
  40106. $$01925 = $24;$17 = $25;
  40107. }
  40108. }
  40109. $14 = HEAP8[$0>>0]|0;
  40110. $15 = ($14<<24>>24)==(0);
  40111. L10: do {
  40112. if ($15) {
  40113. $$1$lcssa = $0;
  40114. } else {
  40115. $$123 = $0;$27 = $14;
  40116. while(1) {
  40117. $div = ($27&255) >>> 5;
  40118. $28 = $div&255;
  40119. $29 = (($2) + ($28<<2)|0);
  40120. $30 = HEAP32[$29>>2]|0;
  40121. $31 = $27 & 31;
  40122. $32 = $31&255;
  40123. $33 = 1 << $32;
  40124. $34 = $30 & $33;
  40125. $35 = ($34|0)==(0);
  40126. if ($35) {
  40127. $$1$lcssa = $$123;
  40128. break L10;
  40129. }
  40130. $36 = ((($$123)) + 1|0);
  40131. $37 = HEAP8[$36>>0]|0;
  40132. $38 = ($37<<24>>24)==(0);
  40133. if ($38) {
  40134. $$1$lcssa = $36;
  40135. break;
  40136. } else {
  40137. $$123 = $36;$27 = $37;
  40138. }
  40139. }
  40140. }
  40141. } while(0);
  40142. $39 = $$1$lcssa;
  40143. $40 = $0;
  40144. $41 = (($39) - ($40))|0;
  40145. $$0 = $41;
  40146. }
  40147. } while(0);
  40148. STACKTOP = sp;return ($$0|0);
  40149. }
  40150. function _srand($0) {
  40151. $0 = $0|0;
  40152. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  40153. sp = STACKTOP;
  40154. $1 = (($0) + -1)|0;
  40155. $2 = 18368;
  40156. $3 = $2;
  40157. HEAP32[$3>>2] = $1;
  40158. $4 = (($2) + 4)|0;
  40159. $5 = $4;
  40160. HEAP32[$5>>2] = 0;
  40161. return;
  40162. }
  40163. function _fread($0,$1,$2,$3) {
  40164. $0 = $0|0;
  40165. $1 = $1|0;
  40166. $2 = $2|0;
  40167. $3 = $3|0;
  40168. var $$ = 0, $$0 = 0, $$054$ph = 0, $$05460 = 0, $$056$ph = 0, $$05659 = 0, $$57 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0, $22 = 0;
  40169. var $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0;
  40170. var $42 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  40171. sp = STACKTOP;
  40172. $4 = Math_imul($2, $1)|0;
  40173. $5 = ($1|0)==(0);
  40174. $$ = $5 ? 0 : $2;
  40175. $6 = ((($3)) + 76|0);
  40176. $7 = HEAP32[$6>>2]|0;
  40177. $8 = ($7|0)>(-1);
  40178. if ($8) {
  40179. $9 = (___lockfile($3)|0);
  40180. $36 = $9;
  40181. } else {
  40182. $36 = 0;
  40183. }
  40184. $10 = ((($3)) + 74|0);
  40185. $11 = HEAP8[$10>>0]|0;
  40186. $12 = $11 << 24 >> 24;
  40187. $13 = (($12) + 255)|0;
  40188. $14 = $13 | $12;
  40189. $15 = $14&255;
  40190. HEAP8[$10>>0] = $15;
  40191. $16 = ((($3)) + 8|0);
  40192. $17 = HEAP32[$16>>2]|0;
  40193. $18 = ((($3)) + 4|0);
  40194. $19 = HEAP32[$18>>2]|0;
  40195. $20 = $19;
  40196. $21 = (($17) - ($20))|0;
  40197. $22 = ($21|0)>(0);
  40198. $23 = ($21>>>0)<($4>>>0);
  40199. $$57 = $23 ? $21 : $4;
  40200. if ($22) {
  40201. $24 = (($4) - ($$57))|0;
  40202. $25 = (($0) + ($$57)|0);
  40203. _memcpy(($0|0),($19|0),($$57|0))|0;
  40204. $26 = (($19) + ($$57)|0);
  40205. HEAP32[$18>>2] = $26;
  40206. $$054$ph = $24;$$056$ph = $25;
  40207. } else {
  40208. $$054$ph = $4;$$056$ph = $0;
  40209. }
  40210. $27 = ($$054$ph|0)==(0);
  40211. L7: do {
  40212. if ($27) {
  40213. label = 13;
  40214. } else {
  40215. $28 = ((($3)) + 32|0);
  40216. $$05460 = $$054$ph;$$05659 = $$056$ph;
  40217. while(1) {
  40218. $29 = (___toread($3)|0);
  40219. $30 = ($29|0)==(0);
  40220. if (!($30)) {
  40221. break;
  40222. }
  40223. $31 = HEAP32[$28>>2]|0;
  40224. $32 = (FUNCTION_TABLE_iiii[$31 & 15]($3,$$05659,$$05460)|0);
  40225. $33 = (($32) + 1)|0;
  40226. $34 = ($33>>>0)<(2);
  40227. if ($34) {
  40228. break;
  40229. }
  40230. $39 = (($$05460) - ($32))|0;
  40231. $40 = (($$05659) + ($32)|0);
  40232. $41 = ($39|0)==(0);
  40233. if ($41) {
  40234. label = 13;
  40235. break L7;
  40236. } else {
  40237. $$05460 = $39;$$05659 = $40;
  40238. }
  40239. }
  40240. $35 = ($36|0)==(0);
  40241. if (!($35)) {
  40242. ___unlockfile($3);
  40243. }
  40244. $37 = (($4) - ($$05460))|0;
  40245. $38 = (($37>>>0) / ($1>>>0))&-1;
  40246. $$0 = $38;
  40247. }
  40248. } while(0);
  40249. if ((label|0) == 13) {
  40250. $42 = ($36|0)==(0);
  40251. if ($42) {
  40252. $$0 = $$;
  40253. } else {
  40254. ___unlockfile($3);
  40255. $$0 = $$;
  40256. }
  40257. }
  40258. return ($$0|0);
  40259. }
  40260. function _rewind($0) {
  40261. $0 = $0|0;
  40262. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $phitmp = 0, label = 0, sp = 0;
  40263. sp = STACKTOP;
  40264. $1 = ((($0)) + 76|0);
  40265. $2 = HEAP32[$1>>2]|0;
  40266. $3 = ($2|0)>(-1);
  40267. if ($3) {
  40268. $4 = (___lockfile($0)|0);
  40269. $phitmp = ($4|0)==(0);
  40270. (___fseeko_unlocked($0,0,0)|0);
  40271. $5 = HEAP32[$0>>2]|0;
  40272. $6 = $5 & -33;
  40273. HEAP32[$0>>2] = $6;
  40274. if (!($phitmp)) {
  40275. ___unlockfile($0);
  40276. }
  40277. } else {
  40278. (___fseeko_unlocked($0,0,0)|0);
  40279. $7 = HEAP32[$0>>2]|0;
  40280. $8 = $7 & -33;
  40281. HEAP32[$0>>2] = $8;
  40282. }
  40283. return;
  40284. }
  40285. function _vprintf($0,$1) {
  40286. $0 = $0|0;
  40287. $1 = $1|0;
  40288. var $2 = 0, $3 = 0, label = 0, sp = 0;
  40289. sp = STACKTOP;
  40290. $2 = HEAP32[1035]|0;
  40291. $3 = (_vfprintf($2,$0,$1)|0);
  40292. return ($3|0);
  40293. }
  40294. function _strcspn($0,$1) {
  40295. $0 = $0|0;
  40296. $1 = $1|0;
  40297. var $$01824 = 0, $$019$sink = 0, $$01922 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0;
  40298. var $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $div = 0;
  40299. var $div20 = 0, label = 0, sp = 0;
  40300. sp = STACKTOP;
  40301. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  40302. $2 = sp;
  40303. $3 = HEAP8[$1>>0]|0;
  40304. $4 = ($3<<24>>24)==(0);
  40305. L1: do {
  40306. if ($4) {
  40307. label = 3;
  40308. } else {
  40309. $5 = ((($1)) + 1|0);
  40310. $6 = HEAP8[$5>>0]|0;
  40311. $7 = ($6<<24>>24)==(0);
  40312. if ($7) {
  40313. label = 3;
  40314. } else {
  40315. ;HEAP32[$2>>2]=0|0;HEAP32[$2+4>>2]=0|0;HEAP32[$2+8>>2]=0|0;HEAP32[$2+12>>2]=0|0;HEAP32[$2+16>>2]=0|0;HEAP32[$2+20>>2]=0|0;HEAP32[$2+24>>2]=0|0;HEAP32[$2+28>>2]=0|0;
  40316. $$01824 = $1;$13 = $3;
  40317. while(1) {
  40318. $12 = $13 & 31;
  40319. $14 = $12&255;
  40320. $15 = 1 << $14;
  40321. $div20 = ($13&255) >>> 5;
  40322. $16 = $div20&255;
  40323. $17 = (($2) + ($16<<2)|0);
  40324. $18 = HEAP32[$17>>2]|0;
  40325. $19 = $18 | $15;
  40326. HEAP32[$17>>2] = $19;
  40327. $20 = ((($$01824)) + 1|0);
  40328. $21 = HEAP8[$20>>0]|0;
  40329. $22 = ($21<<24>>24)==(0);
  40330. if ($22) {
  40331. break;
  40332. } else {
  40333. $$01824 = $20;$13 = $21;
  40334. }
  40335. }
  40336. $10 = HEAP8[$0>>0]|0;
  40337. $11 = ($10<<24>>24)==(0);
  40338. if ($11) {
  40339. $$019$sink = $0;
  40340. } else {
  40341. $$01922 = $0;$23 = $10;
  40342. while(1) {
  40343. $div = ($23&255) >>> 5;
  40344. $24 = $div&255;
  40345. $25 = (($2) + ($24<<2)|0);
  40346. $26 = HEAP32[$25>>2]|0;
  40347. $27 = $23 & 31;
  40348. $28 = $27&255;
  40349. $29 = 1 << $28;
  40350. $30 = $26 & $29;
  40351. $31 = ($30|0)==(0);
  40352. if (!($31)) {
  40353. $$019$sink = $$01922;
  40354. break L1;
  40355. }
  40356. $32 = ((($$01922)) + 1|0);
  40357. $33 = HEAP8[$32>>0]|0;
  40358. $34 = ($33<<24>>24)==(0);
  40359. if ($34) {
  40360. $$019$sink = $32;
  40361. break;
  40362. } else {
  40363. $$01922 = $32;$23 = $33;
  40364. }
  40365. }
  40366. }
  40367. }
  40368. }
  40369. } while(0);
  40370. if ((label|0) == 3) {
  40371. $8 = $3 << 24 >> 24;
  40372. $9 = (___strchrnul($0,$8)|0);
  40373. $$019$sink = $9;
  40374. }
  40375. $35 = $$019$sink;
  40376. $36 = $0;
  40377. $37 = (($35) - ($36))|0;
  40378. STACKTOP = sp;return ($37|0);
  40379. }
  40380. function _strcat($0,$1) {
  40381. $0 = $0|0;
  40382. $1 = $1|0;
  40383. var $2 = 0, $3 = 0, label = 0, sp = 0;
  40384. sp = STACKTOP;
  40385. $2 = (_strlen($0)|0);
  40386. $3 = (($0) + ($2)|0);
  40387. (_strcpy($3,$1)|0);
  40388. return ($0|0);
  40389. }
  40390. function _strtok($0,$1) {
  40391. $0 = $0|0;
  40392. $1 = $1|0;
  40393. var $$0 = 0, $$010 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  40394. sp = STACKTOP;
  40395. $2 = ($0|0)==(0|0);
  40396. if ($2) {
  40397. $3 = HEAP32[5294]|0;
  40398. $4 = ($3|0)==(0|0);
  40399. if ($4) {
  40400. $$0 = 0;
  40401. } else {
  40402. $$010 = $3;
  40403. label = 3;
  40404. }
  40405. } else {
  40406. $$010 = $0;
  40407. label = 3;
  40408. }
  40409. do {
  40410. if ((label|0) == 3) {
  40411. $5 = (_strspn($$010,$1)|0);
  40412. $6 = (($$010) + ($5)|0);
  40413. $7 = HEAP8[$6>>0]|0;
  40414. $8 = ($7<<24>>24)==(0);
  40415. if ($8) {
  40416. HEAP32[5294] = 0;
  40417. $$0 = 0;
  40418. break;
  40419. }
  40420. $9 = (_strcspn($6,$1)|0);
  40421. $10 = (($6) + ($9)|0);
  40422. HEAP32[5294] = $10;
  40423. $11 = HEAP8[$10>>0]|0;
  40424. $12 = ($11<<24>>24)==(0);
  40425. if ($12) {
  40426. HEAP32[5294] = 0;
  40427. $$0 = $6;
  40428. break;
  40429. } else {
  40430. $13 = ((($10)) + 1|0);
  40431. HEAP32[5294] = $13;
  40432. HEAP8[$10>>0] = 0;
  40433. $$0 = $6;
  40434. break;
  40435. }
  40436. }
  40437. } while(0);
  40438. return ($$0|0);
  40439. }
  40440. function _malloc($0) {
  40441. $0 = $0|0;
  40442. var $$$0192$i = 0, $$$0193$i = 0, $$$4236$i = 0, $$$4351$i = 0, $$$i = 0, $$0 = 0, $$0$i$i = 0, $$0$i$i$i = 0, $$0$i18$i = 0, $$01$i$i = 0, $$0189$i = 0, $$0192$lcssa$i = 0, $$01928$i = 0, $$0193$lcssa$i = 0, $$01937$i = 0, $$0197 = 0, $$0199 = 0, $$0206$i$i = 0, $$0207$i$i = 0, $$0211$i$i = 0;
  40443. var $$0212$i$i = 0, $$024371$i = 0, $$0287$i$i = 0, $$0288$i$i = 0, $$0289$i$i = 0, $$0295$i$i = 0, $$0296$i$i = 0, $$0342$i = 0, $$0344$i = 0, $$0345$i = 0, $$0347$i = 0, $$0353$i = 0, $$0358$i = 0, $$0359$$i = 0, $$0359$i = 0, $$0361$i = 0, $$0362$i = 0, $$0368$i = 0, $$1196$i = 0, $$1198$i = 0;
  40444. var $$124470$i = 0, $$1291$i$i = 0, $$1293$i$i = 0, $$1343$i = 0, $$1348$i = 0, $$1363$i = 0, $$1370$i = 0, $$1374$i = 0, $$2234253237$i = 0, $$2247$ph$i = 0, $$2253$ph$i = 0, $$2355$i = 0, $$3$i = 0, $$3$i$i = 0, $$3$i201 = 0, $$3350$i = 0, $$3372$i = 0, $$4$lcssa$i = 0, $$4$ph$i = 0, $$415$i = 0;
  40445. var $$4236$i = 0, $$4351$lcssa$i = 0, $$435114$i = 0, $$4357$$4$i = 0, $$4357$ph$i = 0, $$435713$i = 0, $$723948$i = 0, $$749$i = 0, $$pre = 0, $$pre$i = 0, $$pre$i$i = 0, $$pre$i19$i = 0, $$pre$i210 = 0, $$pre$i212 = 0, $$pre$phi$i$iZ2D = 0, $$pre$phi$i20$iZ2D = 0, $$pre$phi$i211Z2D = 0, $$pre$phi$iZ2D = 0, $$pre$phi11$i$iZ2D = 0, $$pre$phiZ2D = 0;
  40446. var $$pre10$i$i = 0, $$sink1$i = 0, $$sink1$i$i = 0, $$sink16$i = 0, $$sink2$i = 0, $$sink2$i204 = 0, $$sink3$i = 0, $1 = 0, $10 = 0, $100 = 0, $1000 = 0, $1001 = 0, $1002 = 0, $1003 = 0, $1004 = 0, $1005 = 0, $1006 = 0, $1007 = 0, $1008 = 0, $1009 = 0;
  40447. var $101 = 0, $1010 = 0, $1011 = 0, $1012 = 0, $1013 = 0, $1014 = 0, $1015 = 0, $1016 = 0, $1017 = 0, $1018 = 0, $1019 = 0, $102 = 0, $1020 = 0, $1021 = 0, $1022 = 0, $1023 = 0, $1024 = 0, $1025 = 0, $1026 = 0, $1027 = 0;
  40448. var $1028 = 0, $1029 = 0, $103 = 0, $1030 = 0, $1031 = 0, $1032 = 0, $1033 = 0, $1034 = 0, $1035 = 0, $1036 = 0, $1037 = 0, $1038 = 0, $1039 = 0, $104 = 0, $1040 = 0, $1041 = 0, $1042 = 0, $1043 = 0, $1044 = 0, $1045 = 0;
  40449. var $1046 = 0, $1047 = 0, $1048 = 0, $1049 = 0, $105 = 0, $1050 = 0, $1051 = 0, $1052 = 0, $1053 = 0, $1054 = 0, $1055 = 0, $1056 = 0, $1057 = 0, $1058 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0;
  40450. var $111 = 0, $112 = 0, $113 = 0, $114 = 0, $115 = 0, $116 = 0, $117 = 0, $118 = 0, $119 = 0, $12 = 0, $120 = 0, $121 = 0, $122 = 0, $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 0, $128 = 0, $129 = 0;
  40451. var $13 = 0, $130 = 0, $131 = 0, $132 = 0, $133 = 0, $134 = 0, $135 = 0, $136 = 0, $137 = 0, $138 = 0, $139 = 0, $14 = 0, $140 = 0, $141 = 0, $142 = 0, $143 = 0, $144 = 0, $145 = 0, $146 = 0, $147 = 0;
  40452. var $148 = 0, $149 = 0, $15 = 0, $150 = 0, $151 = 0, $152 = 0, $153 = 0, $154 = 0, $155 = 0, $156 = 0, $157 = 0, $158 = 0, $159 = 0, $16 = 0, $160 = 0, $161 = 0, $162 = 0, $163 = 0, $164 = 0, $165 = 0;
  40453. var $166 = 0, $167 = 0, $168 = 0, $169 = 0, $17 = 0, $170 = 0, $171 = 0, $172 = 0, $173 = 0, $174 = 0, $175 = 0, $176 = 0, $177 = 0, $178 = 0, $179 = 0, $18 = 0, $180 = 0, $181 = 0, $182 = 0, $183 = 0;
  40454. var $184 = 0, $185 = 0, $186 = 0, $187 = 0, $188 = 0, $189 = 0, $19 = 0, $190 = 0, $191 = 0, $192 = 0, $193 = 0, $194 = 0, $195 = 0, $196 = 0, $197 = 0, $198 = 0, $199 = 0, $2 = 0, $20 = 0, $200 = 0;
  40455. var $201 = 0, $202 = 0, $203 = 0, $204 = 0, $205 = 0, $206 = 0, $207 = 0, $208 = 0, $209 = 0, $21 = 0, $210 = 0, $211 = 0, $212 = 0, $213 = 0, $214 = 0, $215 = 0, $216 = 0, $217 = 0, $218 = 0, $219 = 0;
  40456. var $22 = 0, $220 = 0, $221 = 0, $222 = 0, $223 = 0, $224 = 0, $225 = 0, $226 = 0, $227 = 0, $228 = 0, $229 = 0, $23 = 0, $230 = 0, $231 = 0, $232 = 0, $233 = 0, $234 = 0, $235 = 0, $236 = 0, $237 = 0;
  40457. var $238 = 0, $239 = 0, $24 = 0, $240 = 0, $241 = 0, $242 = 0, $243 = 0, $244 = 0, $245 = 0, $246 = 0, $247 = 0, $248 = 0, $249 = 0, $25 = 0, $250 = 0, $251 = 0, $252 = 0, $253 = 0, $254 = 0, $255 = 0;
  40458. var $256 = 0, $257 = 0, $258 = 0, $259 = 0, $26 = 0, $260 = 0, $261 = 0, $262 = 0, $263 = 0, $264 = 0, $265 = 0, $266 = 0, $267 = 0, $268 = 0, $269 = 0, $27 = 0, $270 = 0, $271 = 0, $272 = 0, $273 = 0;
  40459. var $274 = 0, $275 = 0, $276 = 0, $277 = 0, $278 = 0, $279 = 0, $28 = 0, $280 = 0, $281 = 0, $282 = 0, $283 = 0, $284 = 0, $285 = 0, $286 = 0, $287 = 0, $288 = 0, $289 = 0, $29 = 0, $290 = 0, $291 = 0;
  40460. var $292 = 0, $293 = 0, $294 = 0, $295 = 0, $296 = 0, $297 = 0, $298 = 0, $299 = 0, $3 = 0, $30 = 0, $300 = 0, $301 = 0, $302 = 0, $303 = 0, $304 = 0, $305 = 0, $306 = 0, $307 = 0, $308 = 0, $309 = 0;
  40461. var $31 = 0, $310 = 0, $311 = 0, $312 = 0, $313 = 0, $314 = 0, $315 = 0, $316 = 0, $317 = 0, $318 = 0, $319 = 0, $32 = 0, $320 = 0, $321 = 0, $322 = 0, $323 = 0, $324 = 0, $325 = 0, $326 = 0, $327 = 0;
  40462. var $328 = 0, $329 = 0, $33 = 0, $330 = 0, $331 = 0, $332 = 0, $333 = 0, $334 = 0, $335 = 0, $336 = 0, $337 = 0, $338 = 0, $339 = 0, $34 = 0, $340 = 0, $341 = 0, $342 = 0, $343 = 0, $344 = 0, $345 = 0;
  40463. var $346 = 0, $347 = 0, $348 = 0, $349 = 0, $35 = 0, $350 = 0, $351 = 0, $352 = 0, $353 = 0, $354 = 0, $355 = 0, $356 = 0, $357 = 0, $358 = 0, $359 = 0, $36 = 0, $360 = 0, $361 = 0, $362 = 0, $363 = 0;
  40464. var $364 = 0, $365 = 0, $366 = 0, $367 = 0, $368 = 0, $369 = 0, $37 = 0, $370 = 0, $371 = 0, $372 = 0, $373 = 0, $374 = 0, $375 = 0, $376 = 0, $377 = 0, $378 = 0, $379 = 0, $38 = 0, $380 = 0, $381 = 0;
  40465. var $382 = 0, $383 = 0, $384 = 0, $385 = 0, $386 = 0, $387 = 0, $388 = 0, $389 = 0, $39 = 0, $390 = 0, $391 = 0, $392 = 0, $393 = 0, $394 = 0, $395 = 0, $396 = 0, $397 = 0, $398 = 0, $399 = 0, $4 = 0;
  40466. var $40 = 0, $400 = 0, $401 = 0, $402 = 0, $403 = 0, $404 = 0, $405 = 0, $406 = 0, $407 = 0, $408 = 0, $409 = 0, $41 = 0, $410 = 0, $411 = 0, $412 = 0, $413 = 0, $414 = 0, $415 = 0, $416 = 0, $417 = 0;
  40467. var $418 = 0, $419 = 0, $42 = 0, $420 = 0, $421 = 0, $422 = 0, $423 = 0, $424 = 0, $425 = 0, $426 = 0, $427 = 0, $428 = 0, $429 = 0, $43 = 0, $430 = 0, $431 = 0, $432 = 0, $433 = 0, $434 = 0, $435 = 0;
  40468. var $436 = 0, $437 = 0, $438 = 0, $439 = 0, $44 = 0, $440 = 0, $441 = 0, $442 = 0, $443 = 0, $444 = 0, $445 = 0, $446 = 0, $447 = 0, $448 = 0, $449 = 0, $45 = 0, $450 = 0, $451 = 0, $452 = 0, $453 = 0;
  40469. var $454 = 0, $455 = 0, $456 = 0, $457 = 0, $458 = 0, $459 = 0, $46 = 0, $460 = 0, $461 = 0, $462 = 0, $463 = 0, $464 = 0, $465 = 0, $466 = 0, $467 = 0, $468 = 0, $469 = 0, $47 = 0, $470 = 0, $471 = 0;
  40470. var $472 = 0, $473 = 0, $474 = 0, $475 = 0, $476 = 0, $477 = 0, $478 = 0, $479 = 0, $48 = 0, $480 = 0, $481 = 0, $482 = 0, $483 = 0, $484 = 0, $485 = 0, $486 = 0, $487 = 0, $488 = 0, $489 = 0, $49 = 0;
  40471. var $490 = 0, $491 = 0, $492 = 0, $493 = 0, $494 = 0, $495 = 0, $496 = 0, $497 = 0, $498 = 0, $499 = 0, $5 = 0, $50 = 0, $500 = 0, $501 = 0, $502 = 0, $503 = 0, $504 = 0, $505 = 0, $506 = 0, $507 = 0;
  40472. var $508 = 0, $509 = 0, $51 = 0, $510 = 0, $511 = 0, $512 = 0, $513 = 0, $514 = 0, $515 = 0, $516 = 0, $517 = 0, $518 = 0, $519 = 0, $52 = 0, $520 = 0, $521 = 0, $522 = 0, $523 = 0, $524 = 0, $525 = 0;
  40473. var $526 = 0, $527 = 0, $528 = 0, $529 = 0, $53 = 0, $530 = 0, $531 = 0, $532 = 0, $533 = 0, $534 = 0, $535 = 0, $536 = 0, $537 = 0, $538 = 0, $539 = 0, $54 = 0, $540 = 0, $541 = 0, $542 = 0, $543 = 0;
  40474. var $544 = 0, $545 = 0, $546 = 0, $547 = 0, $548 = 0, $549 = 0, $55 = 0, $550 = 0, $551 = 0, $552 = 0, $553 = 0, $554 = 0, $555 = 0, $556 = 0, $557 = 0, $558 = 0, $559 = 0, $56 = 0, $560 = 0, $561 = 0;
  40475. var $562 = 0, $563 = 0, $564 = 0, $565 = 0, $566 = 0, $567 = 0, $568 = 0, $569 = 0, $57 = 0, $570 = 0, $571 = 0, $572 = 0, $573 = 0, $574 = 0, $575 = 0, $576 = 0, $577 = 0, $578 = 0, $579 = 0, $58 = 0;
  40476. var $580 = 0, $581 = 0, $582 = 0, $583 = 0, $584 = 0, $585 = 0, $586 = 0, $587 = 0, $588 = 0, $589 = 0, $59 = 0, $590 = 0, $591 = 0, $592 = 0, $593 = 0, $594 = 0, $595 = 0, $596 = 0, $597 = 0, $598 = 0;
  40477. var $599 = 0, $6 = 0, $60 = 0, $600 = 0, $601 = 0, $602 = 0, $603 = 0, $604 = 0, $605 = 0, $606 = 0, $607 = 0, $608 = 0, $609 = 0, $61 = 0, $610 = 0, $611 = 0, $612 = 0, $613 = 0, $614 = 0, $615 = 0;
  40478. var $616 = 0, $617 = 0, $618 = 0, $619 = 0, $62 = 0, $620 = 0, $621 = 0, $622 = 0, $623 = 0, $624 = 0, $625 = 0, $626 = 0, $627 = 0, $628 = 0, $629 = 0, $63 = 0, $630 = 0, $631 = 0, $632 = 0, $633 = 0;
  40479. var $634 = 0, $635 = 0, $636 = 0, $637 = 0, $638 = 0, $639 = 0, $64 = 0, $640 = 0, $641 = 0, $642 = 0, $643 = 0, $644 = 0, $645 = 0, $646 = 0, $647 = 0, $648 = 0, $649 = 0, $65 = 0, $650 = 0, $651 = 0;
  40480. var $652 = 0, $653 = 0, $654 = 0, $655 = 0, $656 = 0, $657 = 0, $658 = 0, $659 = 0, $66 = 0, $660 = 0, $661 = 0, $662 = 0, $663 = 0, $664 = 0, $665 = 0, $666 = 0, $667 = 0, $668 = 0, $669 = 0, $67 = 0;
  40481. var $670 = 0, $671 = 0, $672 = 0, $673 = 0, $674 = 0, $675 = 0, $676 = 0, $677 = 0, $678 = 0, $679 = 0, $68 = 0, $680 = 0, $681 = 0, $682 = 0, $683 = 0, $684 = 0, $685 = 0, $686 = 0, $687 = 0, $688 = 0;
  40482. var $689 = 0, $69 = 0, $690 = 0, $691 = 0, $692 = 0, $693 = 0, $694 = 0, $695 = 0, $696 = 0, $697 = 0, $698 = 0, $699 = 0, $7 = 0, $70 = 0, $700 = 0, $701 = 0, $702 = 0, $703 = 0, $704 = 0, $705 = 0;
  40483. var $706 = 0, $707 = 0, $708 = 0, $709 = 0, $71 = 0, $710 = 0, $711 = 0, $712 = 0, $713 = 0, $714 = 0, $715 = 0, $716 = 0, $717 = 0, $718 = 0, $719 = 0, $72 = 0, $720 = 0, $721 = 0, $722 = 0, $723 = 0;
  40484. var $724 = 0, $725 = 0, $726 = 0, $727 = 0, $728 = 0, $729 = 0, $73 = 0, $730 = 0, $731 = 0, $732 = 0, $733 = 0, $734 = 0, $735 = 0, $736 = 0, $737 = 0, $738 = 0, $739 = 0, $74 = 0, $740 = 0, $741 = 0;
  40485. var $742 = 0, $743 = 0, $744 = 0, $745 = 0, $746 = 0, $747 = 0, $748 = 0, $749 = 0, $75 = 0, $750 = 0, $751 = 0, $752 = 0, $753 = 0, $754 = 0, $755 = 0, $756 = 0, $757 = 0, $758 = 0, $759 = 0, $76 = 0;
  40486. var $760 = 0, $761 = 0, $762 = 0, $763 = 0, $764 = 0, $765 = 0, $766 = 0, $767 = 0, $768 = 0, $769 = 0, $77 = 0, $770 = 0, $771 = 0, $772 = 0, $773 = 0, $774 = 0, $775 = 0, $776 = 0, $777 = 0, $778 = 0;
  40487. var $779 = 0, $78 = 0, $780 = 0, $781 = 0, $782 = 0, $783 = 0, $784 = 0, $785 = 0, $786 = 0, $787 = 0, $788 = 0, $789 = 0, $79 = 0, $790 = 0, $791 = 0, $792 = 0, $793 = 0, $794 = 0, $795 = 0, $796 = 0;
  40488. var $797 = 0, $798 = 0, $799 = 0, $8 = 0, $80 = 0, $800 = 0, $801 = 0, $802 = 0, $803 = 0, $804 = 0, $805 = 0, $806 = 0, $807 = 0, $808 = 0, $809 = 0, $81 = 0, $810 = 0, $811 = 0, $812 = 0, $813 = 0;
  40489. var $814 = 0, $815 = 0, $816 = 0, $817 = 0, $818 = 0, $819 = 0, $82 = 0, $820 = 0, $821 = 0, $822 = 0, $823 = 0, $824 = 0, $825 = 0, $826 = 0, $827 = 0, $828 = 0, $829 = 0, $83 = 0, $830 = 0, $831 = 0;
  40490. var $832 = 0, $833 = 0, $834 = 0, $835 = 0, $836 = 0, $837 = 0, $838 = 0, $839 = 0, $84 = 0, $840 = 0, $841 = 0, $842 = 0, $843 = 0, $844 = 0, $845 = 0, $846 = 0, $847 = 0, $848 = 0, $849 = 0, $85 = 0;
  40491. var $850 = 0, $851 = 0, $852 = 0, $853 = 0, $854 = 0, $855 = 0, $856 = 0, $857 = 0, $858 = 0, $859 = 0, $86 = 0, $860 = 0, $861 = 0, $862 = 0, $863 = 0, $864 = 0, $865 = 0, $866 = 0, $867 = 0, $868 = 0;
  40492. var $869 = 0, $87 = 0, $870 = 0, $871 = 0, $872 = 0, $873 = 0, $874 = 0, $875 = 0, $876 = 0, $877 = 0, $878 = 0, $879 = 0, $88 = 0, $880 = 0, $881 = 0, $882 = 0, $883 = 0, $884 = 0, $885 = 0, $886 = 0;
  40493. var $887 = 0, $888 = 0, $889 = 0, $89 = 0, $890 = 0, $891 = 0, $892 = 0, $893 = 0, $894 = 0, $895 = 0, $896 = 0, $897 = 0, $898 = 0, $899 = 0, $9 = 0, $90 = 0, $900 = 0, $901 = 0, $902 = 0, $903 = 0;
  40494. var $904 = 0, $905 = 0, $906 = 0, $907 = 0, $908 = 0, $909 = 0, $91 = 0, $910 = 0, $911 = 0, $912 = 0, $913 = 0, $914 = 0, $915 = 0, $916 = 0, $917 = 0, $918 = 0, $919 = 0, $92 = 0, $920 = 0, $921 = 0;
  40495. var $922 = 0, $923 = 0, $924 = 0, $925 = 0, $926 = 0, $927 = 0, $928 = 0, $929 = 0, $93 = 0, $930 = 0, $931 = 0, $932 = 0, $933 = 0, $934 = 0, $935 = 0, $936 = 0, $937 = 0, $938 = 0, $939 = 0, $94 = 0;
  40496. var $940 = 0, $941 = 0, $942 = 0, $943 = 0, $944 = 0, $945 = 0, $946 = 0, $947 = 0, $948 = 0, $949 = 0, $95 = 0, $950 = 0, $951 = 0, $952 = 0, $953 = 0, $954 = 0, $955 = 0, $956 = 0, $957 = 0, $958 = 0;
  40497. var $959 = 0, $96 = 0, $960 = 0, $961 = 0, $962 = 0, $963 = 0, $964 = 0, $965 = 0, $966 = 0, $967 = 0, $968 = 0, $969 = 0, $97 = 0, $970 = 0, $971 = 0, $972 = 0, $973 = 0, $974 = 0, $975 = 0, $976 = 0;
  40498. var $977 = 0, $978 = 0, $979 = 0, $98 = 0, $980 = 0, $981 = 0, $982 = 0, $983 = 0, $984 = 0, $985 = 0, $986 = 0, $987 = 0, $988 = 0, $989 = 0, $99 = 0, $990 = 0, $991 = 0, $992 = 0, $993 = 0, $994 = 0;
  40499. var $995 = 0, $996 = 0, $997 = 0, $998 = 0, $999 = 0, $cond$i = 0, $cond$i$i = 0, $cond$i208 = 0, $exitcond$i$i = 0, $not$$i = 0, $not$$i$i = 0, $not$$i17$i = 0, $not$$i209 = 0, $not$$i216 = 0, $not$1$i = 0, $not$1$i203 = 0, $not$5$i = 0, $not$7$i$i = 0, $not$8$i = 0, $not$9$i = 0;
  40500. var $or$cond$i = 0, $or$cond$i214 = 0, $or$cond1$i = 0, $or$cond10$i = 0, $or$cond11$i = 0, $or$cond11$not$i = 0, $or$cond12$i = 0, $or$cond2$i = 0, $or$cond2$i215 = 0, $or$cond5$i = 0, $or$cond50$i = 0, $or$cond51$i = 0, $or$cond7$i = 0, label = 0, sp = 0;
  40501. sp = STACKTOP;
  40502. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  40503. $1 = sp;
  40504. $2 = ($0>>>0)<(245);
  40505. do {
  40506. if ($2) {
  40507. $3 = ($0>>>0)<(11);
  40508. $4 = (($0) + 11)|0;
  40509. $5 = $4 & -8;
  40510. $6 = $3 ? 16 : $5;
  40511. $7 = $6 >>> 3;
  40512. $8 = HEAP32[5295]|0;
  40513. $9 = $8 >>> $7;
  40514. $10 = $9 & 3;
  40515. $11 = ($10|0)==(0);
  40516. if (!($11)) {
  40517. $12 = $9 & 1;
  40518. $13 = $12 ^ 1;
  40519. $14 = (($13) + ($7))|0;
  40520. $15 = $14 << 1;
  40521. $16 = (21220 + ($15<<2)|0);
  40522. $17 = ((($16)) + 8|0);
  40523. $18 = HEAP32[$17>>2]|0;
  40524. $19 = ((($18)) + 8|0);
  40525. $20 = HEAP32[$19>>2]|0;
  40526. $21 = ($16|0)==($20|0);
  40527. do {
  40528. if ($21) {
  40529. $22 = 1 << $14;
  40530. $23 = $22 ^ -1;
  40531. $24 = $8 & $23;
  40532. HEAP32[5295] = $24;
  40533. } else {
  40534. $25 = HEAP32[(21196)>>2]|0;
  40535. $26 = ($20>>>0)<($25>>>0);
  40536. if ($26) {
  40537. _abort();
  40538. // unreachable;
  40539. }
  40540. $27 = ((($20)) + 12|0);
  40541. $28 = HEAP32[$27>>2]|0;
  40542. $29 = ($28|0)==($18|0);
  40543. if ($29) {
  40544. HEAP32[$27>>2] = $16;
  40545. HEAP32[$17>>2] = $20;
  40546. break;
  40547. } else {
  40548. _abort();
  40549. // unreachable;
  40550. }
  40551. }
  40552. } while(0);
  40553. $30 = $14 << 3;
  40554. $31 = $30 | 3;
  40555. $32 = ((($18)) + 4|0);
  40556. HEAP32[$32>>2] = $31;
  40557. $33 = (($18) + ($30)|0);
  40558. $34 = ((($33)) + 4|0);
  40559. $35 = HEAP32[$34>>2]|0;
  40560. $36 = $35 | 1;
  40561. HEAP32[$34>>2] = $36;
  40562. $$0 = $19;
  40563. STACKTOP = sp;return ($$0|0);
  40564. }
  40565. $37 = HEAP32[(21188)>>2]|0;
  40566. $38 = ($6>>>0)>($37>>>0);
  40567. if ($38) {
  40568. $39 = ($9|0)==(0);
  40569. if (!($39)) {
  40570. $40 = $9 << $7;
  40571. $41 = 2 << $7;
  40572. $42 = (0 - ($41))|0;
  40573. $43 = $41 | $42;
  40574. $44 = $40 & $43;
  40575. $45 = (0 - ($44))|0;
  40576. $46 = $44 & $45;
  40577. $47 = (($46) + -1)|0;
  40578. $48 = $47 >>> 12;
  40579. $49 = $48 & 16;
  40580. $50 = $47 >>> $49;
  40581. $51 = $50 >>> 5;
  40582. $52 = $51 & 8;
  40583. $53 = $52 | $49;
  40584. $54 = $50 >>> $52;
  40585. $55 = $54 >>> 2;
  40586. $56 = $55 & 4;
  40587. $57 = $53 | $56;
  40588. $58 = $54 >>> $56;
  40589. $59 = $58 >>> 1;
  40590. $60 = $59 & 2;
  40591. $61 = $57 | $60;
  40592. $62 = $58 >>> $60;
  40593. $63 = $62 >>> 1;
  40594. $64 = $63 & 1;
  40595. $65 = $61 | $64;
  40596. $66 = $62 >>> $64;
  40597. $67 = (($65) + ($66))|0;
  40598. $68 = $67 << 1;
  40599. $69 = (21220 + ($68<<2)|0);
  40600. $70 = ((($69)) + 8|0);
  40601. $71 = HEAP32[$70>>2]|0;
  40602. $72 = ((($71)) + 8|0);
  40603. $73 = HEAP32[$72>>2]|0;
  40604. $74 = ($69|0)==($73|0);
  40605. do {
  40606. if ($74) {
  40607. $75 = 1 << $67;
  40608. $76 = $75 ^ -1;
  40609. $77 = $8 & $76;
  40610. HEAP32[5295] = $77;
  40611. $98 = $77;
  40612. } else {
  40613. $78 = HEAP32[(21196)>>2]|0;
  40614. $79 = ($73>>>0)<($78>>>0);
  40615. if ($79) {
  40616. _abort();
  40617. // unreachable;
  40618. }
  40619. $80 = ((($73)) + 12|0);
  40620. $81 = HEAP32[$80>>2]|0;
  40621. $82 = ($81|0)==($71|0);
  40622. if ($82) {
  40623. HEAP32[$80>>2] = $69;
  40624. HEAP32[$70>>2] = $73;
  40625. $98 = $8;
  40626. break;
  40627. } else {
  40628. _abort();
  40629. // unreachable;
  40630. }
  40631. }
  40632. } while(0);
  40633. $83 = $67 << 3;
  40634. $84 = (($83) - ($6))|0;
  40635. $85 = $6 | 3;
  40636. $86 = ((($71)) + 4|0);
  40637. HEAP32[$86>>2] = $85;
  40638. $87 = (($71) + ($6)|0);
  40639. $88 = $84 | 1;
  40640. $89 = ((($87)) + 4|0);
  40641. HEAP32[$89>>2] = $88;
  40642. $90 = (($87) + ($84)|0);
  40643. HEAP32[$90>>2] = $84;
  40644. $91 = ($37|0)==(0);
  40645. if (!($91)) {
  40646. $92 = HEAP32[(21200)>>2]|0;
  40647. $93 = $37 >>> 3;
  40648. $94 = $93 << 1;
  40649. $95 = (21220 + ($94<<2)|0);
  40650. $96 = 1 << $93;
  40651. $97 = $98 & $96;
  40652. $99 = ($97|0)==(0);
  40653. if ($99) {
  40654. $100 = $98 | $96;
  40655. HEAP32[5295] = $100;
  40656. $$pre = ((($95)) + 8|0);
  40657. $$0199 = $95;$$pre$phiZ2D = $$pre;
  40658. } else {
  40659. $101 = ((($95)) + 8|0);
  40660. $102 = HEAP32[$101>>2]|0;
  40661. $103 = HEAP32[(21196)>>2]|0;
  40662. $104 = ($102>>>0)<($103>>>0);
  40663. if ($104) {
  40664. _abort();
  40665. // unreachable;
  40666. } else {
  40667. $$0199 = $102;$$pre$phiZ2D = $101;
  40668. }
  40669. }
  40670. HEAP32[$$pre$phiZ2D>>2] = $92;
  40671. $105 = ((($$0199)) + 12|0);
  40672. HEAP32[$105>>2] = $92;
  40673. $106 = ((($92)) + 8|0);
  40674. HEAP32[$106>>2] = $$0199;
  40675. $107 = ((($92)) + 12|0);
  40676. HEAP32[$107>>2] = $95;
  40677. }
  40678. HEAP32[(21188)>>2] = $84;
  40679. HEAP32[(21200)>>2] = $87;
  40680. $$0 = $72;
  40681. STACKTOP = sp;return ($$0|0);
  40682. }
  40683. $108 = HEAP32[(21184)>>2]|0;
  40684. $109 = ($108|0)==(0);
  40685. if ($109) {
  40686. $$0197 = $6;
  40687. } else {
  40688. $110 = (0 - ($108))|0;
  40689. $111 = $108 & $110;
  40690. $112 = (($111) + -1)|0;
  40691. $113 = $112 >>> 12;
  40692. $114 = $113 & 16;
  40693. $115 = $112 >>> $114;
  40694. $116 = $115 >>> 5;
  40695. $117 = $116 & 8;
  40696. $118 = $117 | $114;
  40697. $119 = $115 >>> $117;
  40698. $120 = $119 >>> 2;
  40699. $121 = $120 & 4;
  40700. $122 = $118 | $121;
  40701. $123 = $119 >>> $121;
  40702. $124 = $123 >>> 1;
  40703. $125 = $124 & 2;
  40704. $126 = $122 | $125;
  40705. $127 = $123 >>> $125;
  40706. $128 = $127 >>> 1;
  40707. $129 = $128 & 1;
  40708. $130 = $126 | $129;
  40709. $131 = $127 >>> $129;
  40710. $132 = (($130) + ($131))|0;
  40711. $133 = (21484 + ($132<<2)|0);
  40712. $134 = HEAP32[$133>>2]|0;
  40713. $135 = ((($134)) + 4|0);
  40714. $136 = HEAP32[$135>>2]|0;
  40715. $137 = $136 & -8;
  40716. $138 = (($137) - ($6))|0;
  40717. $139 = ((($134)) + 16|0);
  40718. $140 = HEAP32[$139>>2]|0;
  40719. $not$5$i = ($140|0)==(0|0);
  40720. $$sink16$i = $not$5$i&1;
  40721. $141 = (((($134)) + 16|0) + ($$sink16$i<<2)|0);
  40722. $142 = HEAP32[$141>>2]|0;
  40723. $143 = ($142|0)==(0|0);
  40724. if ($143) {
  40725. $$0192$lcssa$i = $134;$$0193$lcssa$i = $138;
  40726. } else {
  40727. $$01928$i = $134;$$01937$i = $138;$145 = $142;
  40728. while(1) {
  40729. $144 = ((($145)) + 4|0);
  40730. $146 = HEAP32[$144>>2]|0;
  40731. $147 = $146 & -8;
  40732. $148 = (($147) - ($6))|0;
  40733. $149 = ($148>>>0)<($$01937$i>>>0);
  40734. $$$0193$i = $149 ? $148 : $$01937$i;
  40735. $$$0192$i = $149 ? $145 : $$01928$i;
  40736. $150 = ((($145)) + 16|0);
  40737. $151 = HEAP32[$150>>2]|0;
  40738. $not$$i = ($151|0)==(0|0);
  40739. $$sink1$i = $not$$i&1;
  40740. $152 = (((($145)) + 16|0) + ($$sink1$i<<2)|0);
  40741. $153 = HEAP32[$152>>2]|0;
  40742. $154 = ($153|0)==(0|0);
  40743. if ($154) {
  40744. $$0192$lcssa$i = $$$0192$i;$$0193$lcssa$i = $$$0193$i;
  40745. break;
  40746. } else {
  40747. $$01928$i = $$$0192$i;$$01937$i = $$$0193$i;$145 = $153;
  40748. }
  40749. }
  40750. }
  40751. $155 = HEAP32[(21196)>>2]|0;
  40752. $156 = ($$0192$lcssa$i>>>0)<($155>>>0);
  40753. if ($156) {
  40754. _abort();
  40755. // unreachable;
  40756. }
  40757. $157 = (($$0192$lcssa$i) + ($6)|0);
  40758. $158 = ($$0192$lcssa$i>>>0)<($157>>>0);
  40759. if (!($158)) {
  40760. _abort();
  40761. // unreachable;
  40762. }
  40763. $159 = ((($$0192$lcssa$i)) + 24|0);
  40764. $160 = HEAP32[$159>>2]|0;
  40765. $161 = ((($$0192$lcssa$i)) + 12|0);
  40766. $162 = HEAP32[$161>>2]|0;
  40767. $163 = ($162|0)==($$0192$lcssa$i|0);
  40768. do {
  40769. if ($163) {
  40770. $173 = ((($$0192$lcssa$i)) + 20|0);
  40771. $174 = HEAP32[$173>>2]|0;
  40772. $175 = ($174|0)==(0|0);
  40773. if ($175) {
  40774. $176 = ((($$0192$lcssa$i)) + 16|0);
  40775. $177 = HEAP32[$176>>2]|0;
  40776. $178 = ($177|0)==(0|0);
  40777. if ($178) {
  40778. $$3$i = 0;
  40779. break;
  40780. } else {
  40781. $$1196$i = $177;$$1198$i = $176;
  40782. }
  40783. } else {
  40784. $$1196$i = $174;$$1198$i = $173;
  40785. }
  40786. while(1) {
  40787. $179 = ((($$1196$i)) + 20|0);
  40788. $180 = HEAP32[$179>>2]|0;
  40789. $181 = ($180|0)==(0|0);
  40790. if (!($181)) {
  40791. $$1196$i = $180;$$1198$i = $179;
  40792. continue;
  40793. }
  40794. $182 = ((($$1196$i)) + 16|0);
  40795. $183 = HEAP32[$182>>2]|0;
  40796. $184 = ($183|0)==(0|0);
  40797. if ($184) {
  40798. break;
  40799. } else {
  40800. $$1196$i = $183;$$1198$i = $182;
  40801. }
  40802. }
  40803. $185 = ($$1198$i>>>0)<($155>>>0);
  40804. if ($185) {
  40805. _abort();
  40806. // unreachable;
  40807. } else {
  40808. HEAP32[$$1198$i>>2] = 0;
  40809. $$3$i = $$1196$i;
  40810. break;
  40811. }
  40812. } else {
  40813. $164 = ((($$0192$lcssa$i)) + 8|0);
  40814. $165 = HEAP32[$164>>2]|0;
  40815. $166 = ($165>>>0)<($155>>>0);
  40816. if ($166) {
  40817. _abort();
  40818. // unreachable;
  40819. }
  40820. $167 = ((($165)) + 12|0);
  40821. $168 = HEAP32[$167>>2]|0;
  40822. $169 = ($168|0)==($$0192$lcssa$i|0);
  40823. if (!($169)) {
  40824. _abort();
  40825. // unreachable;
  40826. }
  40827. $170 = ((($162)) + 8|0);
  40828. $171 = HEAP32[$170>>2]|0;
  40829. $172 = ($171|0)==($$0192$lcssa$i|0);
  40830. if ($172) {
  40831. HEAP32[$167>>2] = $162;
  40832. HEAP32[$170>>2] = $165;
  40833. $$3$i = $162;
  40834. break;
  40835. } else {
  40836. _abort();
  40837. // unreachable;
  40838. }
  40839. }
  40840. } while(0);
  40841. $186 = ($160|0)==(0|0);
  40842. L73: do {
  40843. if (!($186)) {
  40844. $187 = ((($$0192$lcssa$i)) + 28|0);
  40845. $188 = HEAP32[$187>>2]|0;
  40846. $189 = (21484 + ($188<<2)|0);
  40847. $190 = HEAP32[$189>>2]|0;
  40848. $191 = ($$0192$lcssa$i|0)==($190|0);
  40849. do {
  40850. if ($191) {
  40851. HEAP32[$189>>2] = $$3$i;
  40852. $cond$i = ($$3$i|0)==(0|0);
  40853. if ($cond$i) {
  40854. $192 = 1 << $188;
  40855. $193 = $192 ^ -1;
  40856. $194 = $108 & $193;
  40857. HEAP32[(21184)>>2] = $194;
  40858. break L73;
  40859. }
  40860. } else {
  40861. $195 = HEAP32[(21196)>>2]|0;
  40862. $196 = ($160>>>0)<($195>>>0);
  40863. if ($196) {
  40864. _abort();
  40865. // unreachable;
  40866. } else {
  40867. $197 = ((($160)) + 16|0);
  40868. $198 = HEAP32[$197>>2]|0;
  40869. $not$1$i = ($198|0)!=($$0192$lcssa$i|0);
  40870. $$sink2$i = $not$1$i&1;
  40871. $199 = (((($160)) + 16|0) + ($$sink2$i<<2)|0);
  40872. HEAP32[$199>>2] = $$3$i;
  40873. $200 = ($$3$i|0)==(0|0);
  40874. if ($200) {
  40875. break L73;
  40876. } else {
  40877. break;
  40878. }
  40879. }
  40880. }
  40881. } while(0);
  40882. $201 = HEAP32[(21196)>>2]|0;
  40883. $202 = ($$3$i>>>0)<($201>>>0);
  40884. if ($202) {
  40885. _abort();
  40886. // unreachable;
  40887. }
  40888. $203 = ((($$3$i)) + 24|0);
  40889. HEAP32[$203>>2] = $160;
  40890. $204 = ((($$0192$lcssa$i)) + 16|0);
  40891. $205 = HEAP32[$204>>2]|0;
  40892. $206 = ($205|0)==(0|0);
  40893. do {
  40894. if (!($206)) {
  40895. $207 = ($205>>>0)<($201>>>0);
  40896. if ($207) {
  40897. _abort();
  40898. // unreachable;
  40899. } else {
  40900. $208 = ((($$3$i)) + 16|0);
  40901. HEAP32[$208>>2] = $205;
  40902. $209 = ((($205)) + 24|0);
  40903. HEAP32[$209>>2] = $$3$i;
  40904. break;
  40905. }
  40906. }
  40907. } while(0);
  40908. $210 = ((($$0192$lcssa$i)) + 20|0);
  40909. $211 = HEAP32[$210>>2]|0;
  40910. $212 = ($211|0)==(0|0);
  40911. if (!($212)) {
  40912. $213 = HEAP32[(21196)>>2]|0;
  40913. $214 = ($211>>>0)<($213>>>0);
  40914. if ($214) {
  40915. _abort();
  40916. // unreachable;
  40917. } else {
  40918. $215 = ((($$3$i)) + 20|0);
  40919. HEAP32[$215>>2] = $211;
  40920. $216 = ((($211)) + 24|0);
  40921. HEAP32[$216>>2] = $$3$i;
  40922. break;
  40923. }
  40924. }
  40925. }
  40926. } while(0);
  40927. $217 = ($$0193$lcssa$i>>>0)<(16);
  40928. if ($217) {
  40929. $218 = (($$0193$lcssa$i) + ($6))|0;
  40930. $219 = $218 | 3;
  40931. $220 = ((($$0192$lcssa$i)) + 4|0);
  40932. HEAP32[$220>>2] = $219;
  40933. $221 = (($$0192$lcssa$i) + ($218)|0);
  40934. $222 = ((($221)) + 4|0);
  40935. $223 = HEAP32[$222>>2]|0;
  40936. $224 = $223 | 1;
  40937. HEAP32[$222>>2] = $224;
  40938. } else {
  40939. $225 = $6 | 3;
  40940. $226 = ((($$0192$lcssa$i)) + 4|0);
  40941. HEAP32[$226>>2] = $225;
  40942. $227 = $$0193$lcssa$i | 1;
  40943. $228 = ((($157)) + 4|0);
  40944. HEAP32[$228>>2] = $227;
  40945. $229 = (($157) + ($$0193$lcssa$i)|0);
  40946. HEAP32[$229>>2] = $$0193$lcssa$i;
  40947. $230 = ($37|0)==(0);
  40948. if (!($230)) {
  40949. $231 = HEAP32[(21200)>>2]|0;
  40950. $232 = $37 >>> 3;
  40951. $233 = $232 << 1;
  40952. $234 = (21220 + ($233<<2)|0);
  40953. $235 = 1 << $232;
  40954. $236 = $8 & $235;
  40955. $237 = ($236|0)==(0);
  40956. if ($237) {
  40957. $238 = $8 | $235;
  40958. HEAP32[5295] = $238;
  40959. $$pre$i = ((($234)) + 8|0);
  40960. $$0189$i = $234;$$pre$phi$iZ2D = $$pre$i;
  40961. } else {
  40962. $239 = ((($234)) + 8|0);
  40963. $240 = HEAP32[$239>>2]|0;
  40964. $241 = HEAP32[(21196)>>2]|0;
  40965. $242 = ($240>>>0)<($241>>>0);
  40966. if ($242) {
  40967. _abort();
  40968. // unreachable;
  40969. } else {
  40970. $$0189$i = $240;$$pre$phi$iZ2D = $239;
  40971. }
  40972. }
  40973. HEAP32[$$pre$phi$iZ2D>>2] = $231;
  40974. $243 = ((($$0189$i)) + 12|0);
  40975. HEAP32[$243>>2] = $231;
  40976. $244 = ((($231)) + 8|0);
  40977. HEAP32[$244>>2] = $$0189$i;
  40978. $245 = ((($231)) + 12|0);
  40979. HEAP32[$245>>2] = $234;
  40980. }
  40981. HEAP32[(21188)>>2] = $$0193$lcssa$i;
  40982. HEAP32[(21200)>>2] = $157;
  40983. }
  40984. $246 = ((($$0192$lcssa$i)) + 8|0);
  40985. $$0 = $246;
  40986. STACKTOP = sp;return ($$0|0);
  40987. }
  40988. } else {
  40989. $$0197 = $6;
  40990. }
  40991. } else {
  40992. $247 = ($0>>>0)>(4294967231);
  40993. if ($247) {
  40994. $$0197 = -1;
  40995. } else {
  40996. $248 = (($0) + 11)|0;
  40997. $249 = $248 & -8;
  40998. $250 = HEAP32[(21184)>>2]|0;
  40999. $251 = ($250|0)==(0);
  41000. if ($251) {
  41001. $$0197 = $249;
  41002. } else {
  41003. $252 = (0 - ($249))|0;
  41004. $253 = $248 >>> 8;
  41005. $254 = ($253|0)==(0);
  41006. if ($254) {
  41007. $$0358$i = 0;
  41008. } else {
  41009. $255 = ($249>>>0)>(16777215);
  41010. if ($255) {
  41011. $$0358$i = 31;
  41012. } else {
  41013. $256 = (($253) + 1048320)|0;
  41014. $257 = $256 >>> 16;
  41015. $258 = $257 & 8;
  41016. $259 = $253 << $258;
  41017. $260 = (($259) + 520192)|0;
  41018. $261 = $260 >>> 16;
  41019. $262 = $261 & 4;
  41020. $263 = $262 | $258;
  41021. $264 = $259 << $262;
  41022. $265 = (($264) + 245760)|0;
  41023. $266 = $265 >>> 16;
  41024. $267 = $266 & 2;
  41025. $268 = $263 | $267;
  41026. $269 = (14 - ($268))|0;
  41027. $270 = $264 << $267;
  41028. $271 = $270 >>> 15;
  41029. $272 = (($269) + ($271))|0;
  41030. $273 = $272 << 1;
  41031. $274 = (($272) + 7)|0;
  41032. $275 = $249 >>> $274;
  41033. $276 = $275 & 1;
  41034. $277 = $276 | $273;
  41035. $$0358$i = $277;
  41036. }
  41037. }
  41038. $278 = (21484 + ($$0358$i<<2)|0);
  41039. $279 = HEAP32[$278>>2]|0;
  41040. $280 = ($279|0)==(0|0);
  41041. L117: do {
  41042. if ($280) {
  41043. $$2355$i = 0;$$3$i201 = 0;$$3350$i = $252;
  41044. label = 81;
  41045. } else {
  41046. $281 = ($$0358$i|0)==(31);
  41047. $282 = $$0358$i >>> 1;
  41048. $283 = (25 - ($282))|0;
  41049. $284 = $281 ? 0 : $283;
  41050. $285 = $249 << $284;
  41051. $$0342$i = 0;$$0347$i = $252;$$0353$i = $279;$$0359$i = $285;$$0362$i = 0;
  41052. while(1) {
  41053. $286 = ((($$0353$i)) + 4|0);
  41054. $287 = HEAP32[$286>>2]|0;
  41055. $288 = $287 & -8;
  41056. $289 = (($288) - ($249))|0;
  41057. $290 = ($289>>>0)<($$0347$i>>>0);
  41058. if ($290) {
  41059. $291 = ($289|0)==(0);
  41060. if ($291) {
  41061. $$415$i = $$0353$i;$$435114$i = 0;$$435713$i = $$0353$i;
  41062. label = 85;
  41063. break L117;
  41064. } else {
  41065. $$1343$i = $$0353$i;$$1348$i = $289;
  41066. }
  41067. } else {
  41068. $$1343$i = $$0342$i;$$1348$i = $$0347$i;
  41069. }
  41070. $292 = ((($$0353$i)) + 20|0);
  41071. $293 = HEAP32[$292>>2]|0;
  41072. $294 = $$0359$i >>> 31;
  41073. $295 = (((($$0353$i)) + 16|0) + ($294<<2)|0);
  41074. $296 = HEAP32[$295>>2]|0;
  41075. $297 = ($293|0)==(0|0);
  41076. $298 = ($293|0)==($296|0);
  41077. $or$cond2$i = $297 | $298;
  41078. $$1363$i = $or$cond2$i ? $$0362$i : $293;
  41079. $299 = ($296|0)==(0|0);
  41080. $not$8$i = $299 ^ 1;
  41081. $300 = $not$8$i&1;
  41082. $$0359$$i = $$0359$i << $300;
  41083. if ($299) {
  41084. $$2355$i = $$1363$i;$$3$i201 = $$1343$i;$$3350$i = $$1348$i;
  41085. label = 81;
  41086. break;
  41087. } else {
  41088. $$0342$i = $$1343$i;$$0347$i = $$1348$i;$$0353$i = $296;$$0359$i = $$0359$$i;$$0362$i = $$1363$i;
  41089. }
  41090. }
  41091. }
  41092. } while(0);
  41093. if ((label|0) == 81) {
  41094. $301 = ($$2355$i|0)==(0|0);
  41095. $302 = ($$3$i201|0)==(0|0);
  41096. $or$cond$i = $301 & $302;
  41097. if ($or$cond$i) {
  41098. $303 = 2 << $$0358$i;
  41099. $304 = (0 - ($303))|0;
  41100. $305 = $303 | $304;
  41101. $306 = $250 & $305;
  41102. $307 = ($306|0)==(0);
  41103. if ($307) {
  41104. $$0197 = $249;
  41105. break;
  41106. }
  41107. $308 = (0 - ($306))|0;
  41108. $309 = $306 & $308;
  41109. $310 = (($309) + -1)|0;
  41110. $311 = $310 >>> 12;
  41111. $312 = $311 & 16;
  41112. $313 = $310 >>> $312;
  41113. $314 = $313 >>> 5;
  41114. $315 = $314 & 8;
  41115. $316 = $315 | $312;
  41116. $317 = $313 >>> $315;
  41117. $318 = $317 >>> 2;
  41118. $319 = $318 & 4;
  41119. $320 = $316 | $319;
  41120. $321 = $317 >>> $319;
  41121. $322 = $321 >>> 1;
  41122. $323 = $322 & 2;
  41123. $324 = $320 | $323;
  41124. $325 = $321 >>> $323;
  41125. $326 = $325 >>> 1;
  41126. $327 = $326 & 1;
  41127. $328 = $324 | $327;
  41128. $329 = $325 >>> $327;
  41129. $330 = (($328) + ($329))|0;
  41130. $331 = (21484 + ($330<<2)|0);
  41131. $332 = HEAP32[$331>>2]|0;
  41132. $$4$ph$i = 0;$$4357$ph$i = $332;
  41133. } else {
  41134. $$4$ph$i = $$3$i201;$$4357$ph$i = $$2355$i;
  41135. }
  41136. $333 = ($$4357$ph$i|0)==(0|0);
  41137. if ($333) {
  41138. $$4$lcssa$i = $$4$ph$i;$$4351$lcssa$i = $$3350$i;
  41139. } else {
  41140. $$415$i = $$4$ph$i;$$435114$i = $$3350$i;$$435713$i = $$4357$ph$i;
  41141. label = 85;
  41142. }
  41143. }
  41144. if ((label|0) == 85) {
  41145. while(1) {
  41146. label = 0;
  41147. $334 = ((($$435713$i)) + 4|0);
  41148. $335 = HEAP32[$334>>2]|0;
  41149. $336 = $335 & -8;
  41150. $337 = (($336) - ($249))|0;
  41151. $338 = ($337>>>0)<($$435114$i>>>0);
  41152. $$$4351$i = $338 ? $337 : $$435114$i;
  41153. $$4357$$4$i = $338 ? $$435713$i : $$415$i;
  41154. $339 = ((($$435713$i)) + 16|0);
  41155. $340 = HEAP32[$339>>2]|0;
  41156. $not$1$i203 = ($340|0)==(0|0);
  41157. $$sink2$i204 = $not$1$i203&1;
  41158. $341 = (((($$435713$i)) + 16|0) + ($$sink2$i204<<2)|0);
  41159. $342 = HEAP32[$341>>2]|0;
  41160. $343 = ($342|0)==(0|0);
  41161. if ($343) {
  41162. $$4$lcssa$i = $$4357$$4$i;$$4351$lcssa$i = $$$4351$i;
  41163. break;
  41164. } else {
  41165. $$415$i = $$4357$$4$i;$$435114$i = $$$4351$i;$$435713$i = $342;
  41166. label = 85;
  41167. }
  41168. }
  41169. }
  41170. $344 = ($$4$lcssa$i|0)==(0|0);
  41171. if ($344) {
  41172. $$0197 = $249;
  41173. } else {
  41174. $345 = HEAP32[(21188)>>2]|0;
  41175. $346 = (($345) - ($249))|0;
  41176. $347 = ($$4351$lcssa$i>>>0)<($346>>>0);
  41177. if ($347) {
  41178. $348 = HEAP32[(21196)>>2]|0;
  41179. $349 = ($$4$lcssa$i>>>0)<($348>>>0);
  41180. if ($349) {
  41181. _abort();
  41182. // unreachable;
  41183. }
  41184. $350 = (($$4$lcssa$i) + ($249)|0);
  41185. $351 = ($$4$lcssa$i>>>0)<($350>>>0);
  41186. if (!($351)) {
  41187. _abort();
  41188. // unreachable;
  41189. }
  41190. $352 = ((($$4$lcssa$i)) + 24|0);
  41191. $353 = HEAP32[$352>>2]|0;
  41192. $354 = ((($$4$lcssa$i)) + 12|0);
  41193. $355 = HEAP32[$354>>2]|0;
  41194. $356 = ($355|0)==($$4$lcssa$i|0);
  41195. do {
  41196. if ($356) {
  41197. $366 = ((($$4$lcssa$i)) + 20|0);
  41198. $367 = HEAP32[$366>>2]|0;
  41199. $368 = ($367|0)==(0|0);
  41200. if ($368) {
  41201. $369 = ((($$4$lcssa$i)) + 16|0);
  41202. $370 = HEAP32[$369>>2]|0;
  41203. $371 = ($370|0)==(0|0);
  41204. if ($371) {
  41205. $$3372$i = 0;
  41206. break;
  41207. } else {
  41208. $$1370$i = $370;$$1374$i = $369;
  41209. }
  41210. } else {
  41211. $$1370$i = $367;$$1374$i = $366;
  41212. }
  41213. while(1) {
  41214. $372 = ((($$1370$i)) + 20|0);
  41215. $373 = HEAP32[$372>>2]|0;
  41216. $374 = ($373|0)==(0|0);
  41217. if (!($374)) {
  41218. $$1370$i = $373;$$1374$i = $372;
  41219. continue;
  41220. }
  41221. $375 = ((($$1370$i)) + 16|0);
  41222. $376 = HEAP32[$375>>2]|0;
  41223. $377 = ($376|0)==(0|0);
  41224. if ($377) {
  41225. break;
  41226. } else {
  41227. $$1370$i = $376;$$1374$i = $375;
  41228. }
  41229. }
  41230. $378 = ($$1374$i>>>0)<($348>>>0);
  41231. if ($378) {
  41232. _abort();
  41233. // unreachable;
  41234. } else {
  41235. HEAP32[$$1374$i>>2] = 0;
  41236. $$3372$i = $$1370$i;
  41237. break;
  41238. }
  41239. } else {
  41240. $357 = ((($$4$lcssa$i)) + 8|0);
  41241. $358 = HEAP32[$357>>2]|0;
  41242. $359 = ($358>>>0)<($348>>>0);
  41243. if ($359) {
  41244. _abort();
  41245. // unreachable;
  41246. }
  41247. $360 = ((($358)) + 12|0);
  41248. $361 = HEAP32[$360>>2]|0;
  41249. $362 = ($361|0)==($$4$lcssa$i|0);
  41250. if (!($362)) {
  41251. _abort();
  41252. // unreachable;
  41253. }
  41254. $363 = ((($355)) + 8|0);
  41255. $364 = HEAP32[$363>>2]|0;
  41256. $365 = ($364|0)==($$4$lcssa$i|0);
  41257. if ($365) {
  41258. HEAP32[$360>>2] = $355;
  41259. HEAP32[$363>>2] = $358;
  41260. $$3372$i = $355;
  41261. break;
  41262. } else {
  41263. _abort();
  41264. // unreachable;
  41265. }
  41266. }
  41267. } while(0);
  41268. $379 = ($353|0)==(0|0);
  41269. L164: do {
  41270. if ($379) {
  41271. $470 = $250;
  41272. } else {
  41273. $380 = ((($$4$lcssa$i)) + 28|0);
  41274. $381 = HEAP32[$380>>2]|0;
  41275. $382 = (21484 + ($381<<2)|0);
  41276. $383 = HEAP32[$382>>2]|0;
  41277. $384 = ($$4$lcssa$i|0)==($383|0);
  41278. do {
  41279. if ($384) {
  41280. HEAP32[$382>>2] = $$3372$i;
  41281. $cond$i208 = ($$3372$i|0)==(0|0);
  41282. if ($cond$i208) {
  41283. $385 = 1 << $381;
  41284. $386 = $385 ^ -1;
  41285. $387 = $250 & $386;
  41286. HEAP32[(21184)>>2] = $387;
  41287. $470 = $387;
  41288. break L164;
  41289. }
  41290. } else {
  41291. $388 = HEAP32[(21196)>>2]|0;
  41292. $389 = ($353>>>0)<($388>>>0);
  41293. if ($389) {
  41294. _abort();
  41295. // unreachable;
  41296. } else {
  41297. $390 = ((($353)) + 16|0);
  41298. $391 = HEAP32[$390>>2]|0;
  41299. $not$$i209 = ($391|0)!=($$4$lcssa$i|0);
  41300. $$sink3$i = $not$$i209&1;
  41301. $392 = (((($353)) + 16|0) + ($$sink3$i<<2)|0);
  41302. HEAP32[$392>>2] = $$3372$i;
  41303. $393 = ($$3372$i|0)==(0|0);
  41304. if ($393) {
  41305. $470 = $250;
  41306. break L164;
  41307. } else {
  41308. break;
  41309. }
  41310. }
  41311. }
  41312. } while(0);
  41313. $394 = HEAP32[(21196)>>2]|0;
  41314. $395 = ($$3372$i>>>0)<($394>>>0);
  41315. if ($395) {
  41316. _abort();
  41317. // unreachable;
  41318. }
  41319. $396 = ((($$3372$i)) + 24|0);
  41320. HEAP32[$396>>2] = $353;
  41321. $397 = ((($$4$lcssa$i)) + 16|0);
  41322. $398 = HEAP32[$397>>2]|0;
  41323. $399 = ($398|0)==(0|0);
  41324. do {
  41325. if (!($399)) {
  41326. $400 = ($398>>>0)<($394>>>0);
  41327. if ($400) {
  41328. _abort();
  41329. // unreachable;
  41330. } else {
  41331. $401 = ((($$3372$i)) + 16|0);
  41332. HEAP32[$401>>2] = $398;
  41333. $402 = ((($398)) + 24|0);
  41334. HEAP32[$402>>2] = $$3372$i;
  41335. break;
  41336. }
  41337. }
  41338. } while(0);
  41339. $403 = ((($$4$lcssa$i)) + 20|0);
  41340. $404 = HEAP32[$403>>2]|0;
  41341. $405 = ($404|0)==(0|0);
  41342. if ($405) {
  41343. $470 = $250;
  41344. } else {
  41345. $406 = HEAP32[(21196)>>2]|0;
  41346. $407 = ($404>>>0)<($406>>>0);
  41347. if ($407) {
  41348. _abort();
  41349. // unreachable;
  41350. } else {
  41351. $408 = ((($$3372$i)) + 20|0);
  41352. HEAP32[$408>>2] = $404;
  41353. $409 = ((($404)) + 24|0);
  41354. HEAP32[$409>>2] = $$3372$i;
  41355. $470 = $250;
  41356. break;
  41357. }
  41358. }
  41359. }
  41360. } while(0);
  41361. $410 = ($$4351$lcssa$i>>>0)<(16);
  41362. do {
  41363. if ($410) {
  41364. $411 = (($$4351$lcssa$i) + ($249))|0;
  41365. $412 = $411 | 3;
  41366. $413 = ((($$4$lcssa$i)) + 4|0);
  41367. HEAP32[$413>>2] = $412;
  41368. $414 = (($$4$lcssa$i) + ($411)|0);
  41369. $415 = ((($414)) + 4|0);
  41370. $416 = HEAP32[$415>>2]|0;
  41371. $417 = $416 | 1;
  41372. HEAP32[$415>>2] = $417;
  41373. } else {
  41374. $418 = $249 | 3;
  41375. $419 = ((($$4$lcssa$i)) + 4|0);
  41376. HEAP32[$419>>2] = $418;
  41377. $420 = $$4351$lcssa$i | 1;
  41378. $421 = ((($350)) + 4|0);
  41379. HEAP32[$421>>2] = $420;
  41380. $422 = (($350) + ($$4351$lcssa$i)|0);
  41381. HEAP32[$422>>2] = $$4351$lcssa$i;
  41382. $423 = $$4351$lcssa$i >>> 3;
  41383. $424 = ($$4351$lcssa$i>>>0)<(256);
  41384. if ($424) {
  41385. $425 = $423 << 1;
  41386. $426 = (21220 + ($425<<2)|0);
  41387. $427 = HEAP32[5295]|0;
  41388. $428 = 1 << $423;
  41389. $429 = $427 & $428;
  41390. $430 = ($429|0)==(0);
  41391. if ($430) {
  41392. $431 = $427 | $428;
  41393. HEAP32[5295] = $431;
  41394. $$pre$i210 = ((($426)) + 8|0);
  41395. $$0368$i = $426;$$pre$phi$i211Z2D = $$pre$i210;
  41396. } else {
  41397. $432 = ((($426)) + 8|0);
  41398. $433 = HEAP32[$432>>2]|0;
  41399. $434 = HEAP32[(21196)>>2]|0;
  41400. $435 = ($433>>>0)<($434>>>0);
  41401. if ($435) {
  41402. _abort();
  41403. // unreachable;
  41404. } else {
  41405. $$0368$i = $433;$$pre$phi$i211Z2D = $432;
  41406. }
  41407. }
  41408. HEAP32[$$pre$phi$i211Z2D>>2] = $350;
  41409. $436 = ((($$0368$i)) + 12|0);
  41410. HEAP32[$436>>2] = $350;
  41411. $437 = ((($350)) + 8|0);
  41412. HEAP32[$437>>2] = $$0368$i;
  41413. $438 = ((($350)) + 12|0);
  41414. HEAP32[$438>>2] = $426;
  41415. break;
  41416. }
  41417. $439 = $$4351$lcssa$i >>> 8;
  41418. $440 = ($439|0)==(0);
  41419. if ($440) {
  41420. $$0361$i = 0;
  41421. } else {
  41422. $441 = ($$4351$lcssa$i>>>0)>(16777215);
  41423. if ($441) {
  41424. $$0361$i = 31;
  41425. } else {
  41426. $442 = (($439) + 1048320)|0;
  41427. $443 = $442 >>> 16;
  41428. $444 = $443 & 8;
  41429. $445 = $439 << $444;
  41430. $446 = (($445) + 520192)|0;
  41431. $447 = $446 >>> 16;
  41432. $448 = $447 & 4;
  41433. $449 = $448 | $444;
  41434. $450 = $445 << $448;
  41435. $451 = (($450) + 245760)|0;
  41436. $452 = $451 >>> 16;
  41437. $453 = $452 & 2;
  41438. $454 = $449 | $453;
  41439. $455 = (14 - ($454))|0;
  41440. $456 = $450 << $453;
  41441. $457 = $456 >>> 15;
  41442. $458 = (($455) + ($457))|0;
  41443. $459 = $458 << 1;
  41444. $460 = (($458) + 7)|0;
  41445. $461 = $$4351$lcssa$i >>> $460;
  41446. $462 = $461 & 1;
  41447. $463 = $462 | $459;
  41448. $$0361$i = $463;
  41449. }
  41450. }
  41451. $464 = (21484 + ($$0361$i<<2)|0);
  41452. $465 = ((($350)) + 28|0);
  41453. HEAP32[$465>>2] = $$0361$i;
  41454. $466 = ((($350)) + 16|0);
  41455. $467 = ((($466)) + 4|0);
  41456. HEAP32[$467>>2] = 0;
  41457. HEAP32[$466>>2] = 0;
  41458. $468 = 1 << $$0361$i;
  41459. $469 = $470 & $468;
  41460. $471 = ($469|0)==(0);
  41461. if ($471) {
  41462. $472 = $470 | $468;
  41463. HEAP32[(21184)>>2] = $472;
  41464. HEAP32[$464>>2] = $350;
  41465. $473 = ((($350)) + 24|0);
  41466. HEAP32[$473>>2] = $464;
  41467. $474 = ((($350)) + 12|0);
  41468. HEAP32[$474>>2] = $350;
  41469. $475 = ((($350)) + 8|0);
  41470. HEAP32[$475>>2] = $350;
  41471. break;
  41472. }
  41473. $476 = HEAP32[$464>>2]|0;
  41474. $477 = ($$0361$i|0)==(31);
  41475. $478 = $$0361$i >>> 1;
  41476. $479 = (25 - ($478))|0;
  41477. $480 = $477 ? 0 : $479;
  41478. $481 = $$4351$lcssa$i << $480;
  41479. $$0344$i = $481;$$0345$i = $476;
  41480. while(1) {
  41481. $482 = ((($$0345$i)) + 4|0);
  41482. $483 = HEAP32[$482>>2]|0;
  41483. $484 = $483 & -8;
  41484. $485 = ($484|0)==($$4351$lcssa$i|0);
  41485. if ($485) {
  41486. label = 139;
  41487. break;
  41488. }
  41489. $486 = $$0344$i >>> 31;
  41490. $487 = (((($$0345$i)) + 16|0) + ($486<<2)|0);
  41491. $488 = $$0344$i << 1;
  41492. $489 = HEAP32[$487>>2]|0;
  41493. $490 = ($489|0)==(0|0);
  41494. if ($490) {
  41495. label = 136;
  41496. break;
  41497. } else {
  41498. $$0344$i = $488;$$0345$i = $489;
  41499. }
  41500. }
  41501. if ((label|0) == 136) {
  41502. $491 = HEAP32[(21196)>>2]|0;
  41503. $492 = ($487>>>0)<($491>>>0);
  41504. if ($492) {
  41505. _abort();
  41506. // unreachable;
  41507. } else {
  41508. HEAP32[$487>>2] = $350;
  41509. $493 = ((($350)) + 24|0);
  41510. HEAP32[$493>>2] = $$0345$i;
  41511. $494 = ((($350)) + 12|0);
  41512. HEAP32[$494>>2] = $350;
  41513. $495 = ((($350)) + 8|0);
  41514. HEAP32[$495>>2] = $350;
  41515. break;
  41516. }
  41517. }
  41518. else if ((label|0) == 139) {
  41519. $496 = ((($$0345$i)) + 8|0);
  41520. $497 = HEAP32[$496>>2]|0;
  41521. $498 = HEAP32[(21196)>>2]|0;
  41522. $499 = ($497>>>0)>=($498>>>0);
  41523. $not$9$i = ($$0345$i>>>0)>=($498>>>0);
  41524. $500 = $499 & $not$9$i;
  41525. if ($500) {
  41526. $501 = ((($497)) + 12|0);
  41527. HEAP32[$501>>2] = $350;
  41528. HEAP32[$496>>2] = $350;
  41529. $502 = ((($350)) + 8|0);
  41530. HEAP32[$502>>2] = $497;
  41531. $503 = ((($350)) + 12|0);
  41532. HEAP32[$503>>2] = $$0345$i;
  41533. $504 = ((($350)) + 24|0);
  41534. HEAP32[$504>>2] = 0;
  41535. break;
  41536. } else {
  41537. _abort();
  41538. // unreachable;
  41539. }
  41540. }
  41541. }
  41542. } while(0);
  41543. $505 = ((($$4$lcssa$i)) + 8|0);
  41544. $$0 = $505;
  41545. STACKTOP = sp;return ($$0|0);
  41546. } else {
  41547. $$0197 = $249;
  41548. }
  41549. }
  41550. }
  41551. }
  41552. }
  41553. } while(0);
  41554. $506 = HEAP32[(21188)>>2]|0;
  41555. $507 = ($506>>>0)<($$0197>>>0);
  41556. if (!($507)) {
  41557. $508 = (($506) - ($$0197))|0;
  41558. $509 = HEAP32[(21200)>>2]|0;
  41559. $510 = ($508>>>0)>(15);
  41560. if ($510) {
  41561. $511 = (($509) + ($$0197)|0);
  41562. HEAP32[(21200)>>2] = $511;
  41563. HEAP32[(21188)>>2] = $508;
  41564. $512 = $508 | 1;
  41565. $513 = ((($511)) + 4|0);
  41566. HEAP32[$513>>2] = $512;
  41567. $514 = (($511) + ($508)|0);
  41568. HEAP32[$514>>2] = $508;
  41569. $515 = $$0197 | 3;
  41570. $516 = ((($509)) + 4|0);
  41571. HEAP32[$516>>2] = $515;
  41572. } else {
  41573. HEAP32[(21188)>>2] = 0;
  41574. HEAP32[(21200)>>2] = 0;
  41575. $517 = $506 | 3;
  41576. $518 = ((($509)) + 4|0);
  41577. HEAP32[$518>>2] = $517;
  41578. $519 = (($509) + ($506)|0);
  41579. $520 = ((($519)) + 4|0);
  41580. $521 = HEAP32[$520>>2]|0;
  41581. $522 = $521 | 1;
  41582. HEAP32[$520>>2] = $522;
  41583. }
  41584. $523 = ((($509)) + 8|0);
  41585. $$0 = $523;
  41586. STACKTOP = sp;return ($$0|0);
  41587. }
  41588. $524 = HEAP32[(21192)>>2]|0;
  41589. $525 = ($524>>>0)>($$0197>>>0);
  41590. if ($525) {
  41591. $526 = (($524) - ($$0197))|0;
  41592. HEAP32[(21192)>>2] = $526;
  41593. $527 = HEAP32[(21204)>>2]|0;
  41594. $528 = (($527) + ($$0197)|0);
  41595. HEAP32[(21204)>>2] = $528;
  41596. $529 = $526 | 1;
  41597. $530 = ((($528)) + 4|0);
  41598. HEAP32[$530>>2] = $529;
  41599. $531 = $$0197 | 3;
  41600. $532 = ((($527)) + 4|0);
  41601. HEAP32[$532>>2] = $531;
  41602. $533 = ((($527)) + 8|0);
  41603. $$0 = $533;
  41604. STACKTOP = sp;return ($$0|0);
  41605. }
  41606. $534 = HEAP32[5413]|0;
  41607. $535 = ($534|0)==(0);
  41608. if ($535) {
  41609. HEAP32[(21660)>>2] = 4096;
  41610. HEAP32[(21656)>>2] = 4096;
  41611. HEAP32[(21664)>>2] = -1;
  41612. HEAP32[(21668)>>2] = -1;
  41613. HEAP32[(21672)>>2] = 0;
  41614. HEAP32[(21624)>>2] = 0;
  41615. $536 = $1;
  41616. $537 = $536 & -16;
  41617. $538 = $537 ^ 1431655768;
  41618. HEAP32[$1>>2] = $538;
  41619. HEAP32[5413] = $538;
  41620. $542 = 4096;
  41621. } else {
  41622. $$pre$i212 = HEAP32[(21660)>>2]|0;
  41623. $542 = $$pre$i212;
  41624. }
  41625. $539 = (($$0197) + 48)|0;
  41626. $540 = (($$0197) + 47)|0;
  41627. $541 = (($542) + ($540))|0;
  41628. $543 = (0 - ($542))|0;
  41629. $544 = $541 & $543;
  41630. $545 = ($544>>>0)>($$0197>>>0);
  41631. if (!($545)) {
  41632. $$0 = 0;
  41633. STACKTOP = sp;return ($$0|0);
  41634. }
  41635. $546 = HEAP32[(21620)>>2]|0;
  41636. $547 = ($546|0)==(0);
  41637. if (!($547)) {
  41638. $548 = HEAP32[(21612)>>2]|0;
  41639. $549 = (($548) + ($544))|0;
  41640. $550 = ($549>>>0)<=($548>>>0);
  41641. $551 = ($549>>>0)>($546>>>0);
  41642. $or$cond1$i = $550 | $551;
  41643. if ($or$cond1$i) {
  41644. $$0 = 0;
  41645. STACKTOP = sp;return ($$0|0);
  41646. }
  41647. }
  41648. $552 = HEAP32[(21624)>>2]|0;
  41649. $553 = $552 & 4;
  41650. $554 = ($553|0)==(0);
  41651. L244: do {
  41652. if ($554) {
  41653. $555 = HEAP32[(21204)>>2]|0;
  41654. $556 = ($555|0)==(0|0);
  41655. L246: do {
  41656. if ($556) {
  41657. label = 163;
  41658. } else {
  41659. $$0$i$i = (21628);
  41660. while(1) {
  41661. $557 = HEAP32[$$0$i$i>>2]|0;
  41662. $558 = ($557>>>0)>($555>>>0);
  41663. if (!($558)) {
  41664. $559 = ((($$0$i$i)) + 4|0);
  41665. $560 = HEAP32[$559>>2]|0;
  41666. $561 = (($557) + ($560)|0);
  41667. $562 = ($561>>>0)>($555>>>0);
  41668. if ($562) {
  41669. break;
  41670. }
  41671. }
  41672. $563 = ((($$0$i$i)) + 8|0);
  41673. $564 = HEAP32[$563>>2]|0;
  41674. $565 = ($564|0)==(0|0);
  41675. if ($565) {
  41676. label = 163;
  41677. break L246;
  41678. } else {
  41679. $$0$i$i = $564;
  41680. }
  41681. }
  41682. $588 = (($541) - ($524))|0;
  41683. $589 = $588 & $543;
  41684. $590 = ($589>>>0)<(2147483647);
  41685. if ($590) {
  41686. $591 = (_sbrk(($589|0))|0);
  41687. $592 = HEAP32[$$0$i$i>>2]|0;
  41688. $593 = HEAP32[$559>>2]|0;
  41689. $594 = (($592) + ($593)|0);
  41690. $595 = ($591|0)==($594|0);
  41691. if ($595) {
  41692. $596 = ($591|0)==((-1)|0);
  41693. if ($596) {
  41694. $$2234253237$i = $589;
  41695. } else {
  41696. $$723948$i = $589;$$749$i = $591;
  41697. label = 180;
  41698. break L244;
  41699. }
  41700. } else {
  41701. $$2247$ph$i = $591;$$2253$ph$i = $589;
  41702. label = 171;
  41703. }
  41704. } else {
  41705. $$2234253237$i = 0;
  41706. }
  41707. }
  41708. } while(0);
  41709. do {
  41710. if ((label|0) == 163) {
  41711. $566 = (_sbrk(0)|0);
  41712. $567 = ($566|0)==((-1)|0);
  41713. if ($567) {
  41714. $$2234253237$i = 0;
  41715. } else {
  41716. $568 = $566;
  41717. $569 = HEAP32[(21656)>>2]|0;
  41718. $570 = (($569) + -1)|0;
  41719. $571 = $570 & $568;
  41720. $572 = ($571|0)==(0);
  41721. $573 = (($570) + ($568))|0;
  41722. $574 = (0 - ($569))|0;
  41723. $575 = $573 & $574;
  41724. $576 = (($575) - ($568))|0;
  41725. $577 = $572 ? 0 : $576;
  41726. $$$i = (($577) + ($544))|0;
  41727. $578 = HEAP32[(21612)>>2]|0;
  41728. $579 = (($$$i) + ($578))|0;
  41729. $580 = ($$$i>>>0)>($$0197>>>0);
  41730. $581 = ($$$i>>>0)<(2147483647);
  41731. $or$cond$i214 = $580 & $581;
  41732. if ($or$cond$i214) {
  41733. $582 = HEAP32[(21620)>>2]|0;
  41734. $583 = ($582|0)==(0);
  41735. if (!($583)) {
  41736. $584 = ($579>>>0)<=($578>>>0);
  41737. $585 = ($579>>>0)>($582>>>0);
  41738. $or$cond2$i215 = $584 | $585;
  41739. if ($or$cond2$i215) {
  41740. $$2234253237$i = 0;
  41741. break;
  41742. }
  41743. }
  41744. $586 = (_sbrk(($$$i|0))|0);
  41745. $587 = ($586|0)==($566|0);
  41746. if ($587) {
  41747. $$723948$i = $$$i;$$749$i = $566;
  41748. label = 180;
  41749. break L244;
  41750. } else {
  41751. $$2247$ph$i = $586;$$2253$ph$i = $$$i;
  41752. label = 171;
  41753. }
  41754. } else {
  41755. $$2234253237$i = 0;
  41756. }
  41757. }
  41758. }
  41759. } while(0);
  41760. do {
  41761. if ((label|0) == 171) {
  41762. $597 = (0 - ($$2253$ph$i))|0;
  41763. $598 = ($$2247$ph$i|0)!=((-1)|0);
  41764. $599 = ($$2253$ph$i>>>0)<(2147483647);
  41765. $or$cond7$i = $599 & $598;
  41766. $600 = ($539>>>0)>($$2253$ph$i>>>0);
  41767. $or$cond10$i = $600 & $or$cond7$i;
  41768. if (!($or$cond10$i)) {
  41769. $610 = ($$2247$ph$i|0)==((-1)|0);
  41770. if ($610) {
  41771. $$2234253237$i = 0;
  41772. break;
  41773. } else {
  41774. $$723948$i = $$2253$ph$i;$$749$i = $$2247$ph$i;
  41775. label = 180;
  41776. break L244;
  41777. }
  41778. }
  41779. $601 = HEAP32[(21660)>>2]|0;
  41780. $602 = (($540) - ($$2253$ph$i))|0;
  41781. $603 = (($602) + ($601))|0;
  41782. $604 = (0 - ($601))|0;
  41783. $605 = $603 & $604;
  41784. $606 = ($605>>>0)<(2147483647);
  41785. if (!($606)) {
  41786. $$723948$i = $$2253$ph$i;$$749$i = $$2247$ph$i;
  41787. label = 180;
  41788. break L244;
  41789. }
  41790. $607 = (_sbrk(($605|0))|0);
  41791. $608 = ($607|0)==((-1)|0);
  41792. if ($608) {
  41793. (_sbrk(($597|0))|0);
  41794. $$2234253237$i = 0;
  41795. break;
  41796. } else {
  41797. $609 = (($605) + ($$2253$ph$i))|0;
  41798. $$723948$i = $609;$$749$i = $$2247$ph$i;
  41799. label = 180;
  41800. break L244;
  41801. }
  41802. }
  41803. } while(0);
  41804. $611 = HEAP32[(21624)>>2]|0;
  41805. $612 = $611 | 4;
  41806. HEAP32[(21624)>>2] = $612;
  41807. $$4236$i = $$2234253237$i;
  41808. label = 178;
  41809. } else {
  41810. $$4236$i = 0;
  41811. label = 178;
  41812. }
  41813. } while(0);
  41814. if ((label|0) == 178) {
  41815. $613 = ($544>>>0)<(2147483647);
  41816. if ($613) {
  41817. $614 = (_sbrk(($544|0))|0);
  41818. $615 = (_sbrk(0)|0);
  41819. $616 = ($614|0)!=((-1)|0);
  41820. $617 = ($615|0)!=((-1)|0);
  41821. $or$cond5$i = $616 & $617;
  41822. $618 = ($614>>>0)<($615>>>0);
  41823. $or$cond11$i = $618 & $or$cond5$i;
  41824. $619 = $615;
  41825. $620 = $614;
  41826. $621 = (($619) - ($620))|0;
  41827. $622 = (($$0197) + 40)|0;
  41828. $623 = ($621>>>0)>($622>>>0);
  41829. $$$4236$i = $623 ? $621 : $$4236$i;
  41830. $or$cond11$not$i = $or$cond11$i ^ 1;
  41831. $624 = ($614|0)==((-1)|0);
  41832. $not$$i216 = $623 ^ 1;
  41833. $625 = $624 | $not$$i216;
  41834. $or$cond50$i = $625 | $or$cond11$not$i;
  41835. if (!($or$cond50$i)) {
  41836. $$723948$i = $$$4236$i;$$749$i = $614;
  41837. label = 180;
  41838. }
  41839. }
  41840. }
  41841. if ((label|0) == 180) {
  41842. $626 = HEAP32[(21612)>>2]|0;
  41843. $627 = (($626) + ($$723948$i))|0;
  41844. HEAP32[(21612)>>2] = $627;
  41845. $628 = HEAP32[(21616)>>2]|0;
  41846. $629 = ($627>>>0)>($628>>>0);
  41847. if ($629) {
  41848. HEAP32[(21616)>>2] = $627;
  41849. }
  41850. $630 = HEAP32[(21204)>>2]|0;
  41851. $631 = ($630|0)==(0|0);
  41852. do {
  41853. if ($631) {
  41854. $632 = HEAP32[(21196)>>2]|0;
  41855. $633 = ($632|0)==(0|0);
  41856. $634 = ($$749$i>>>0)<($632>>>0);
  41857. $or$cond12$i = $633 | $634;
  41858. if ($or$cond12$i) {
  41859. HEAP32[(21196)>>2] = $$749$i;
  41860. }
  41861. HEAP32[(21628)>>2] = $$749$i;
  41862. HEAP32[(21632)>>2] = $$723948$i;
  41863. HEAP32[(21640)>>2] = 0;
  41864. $635 = HEAP32[5413]|0;
  41865. HEAP32[(21216)>>2] = $635;
  41866. HEAP32[(21212)>>2] = -1;
  41867. $$01$i$i = 0;
  41868. while(1) {
  41869. $636 = $$01$i$i << 1;
  41870. $637 = (21220 + ($636<<2)|0);
  41871. $638 = ((($637)) + 12|0);
  41872. HEAP32[$638>>2] = $637;
  41873. $639 = ((($637)) + 8|0);
  41874. HEAP32[$639>>2] = $637;
  41875. $640 = (($$01$i$i) + 1)|0;
  41876. $exitcond$i$i = ($640|0)==(32);
  41877. if ($exitcond$i$i) {
  41878. break;
  41879. } else {
  41880. $$01$i$i = $640;
  41881. }
  41882. }
  41883. $641 = (($$723948$i) + -40)|0;
  41884. $642 = ((($$749$i)) + 8|0);
  41885. $643 = $642;
  41886. $644 = $643 & 7;
  41887. $645 = ($644|0)==(0);
  41888. $646 = (0 - ($643))|0;
  41889. $647 = $646 & 7;
  41890. $648 = $645 ? 0 : $647;
  41891. $649 = (($$749$i) + ($648)|0);
  41892. $650 = (($641) - ($648))|0;
  41893. HEAP32[(21204)>>2] = $649;
  41894. HEAP32[(21192)>>2] = $650;
  41895. $651 = $650 | 1;
  41896. $652 = ((($649)) + 4|0);
  41897. HEAP32[$652>>2] = $651;
  41898. $653 = (($649) + ($650)|0);
  41899. $654 = ((($653)) + 4|0);
  41900. HEAP32[$654>>2] = 40;
  41901. $655 = HEAP32[(21668)>>2]|0;
  41902. HEAP32[(21208)>>2] = $655;
  41903. } else {
  41904. $$024371$i = (21628);
  41905. while(1) {
  41906. $656 = HEAP32[$$024371$i>>2]|0;
  41907. $657 = ((($$024371$i)) + 4|0);
  41908. $658 = HEAP32[$657>>2]|0;
  41909. $659 = (($656) + ($658)|0);
  41910. $660 = ($$749$i|0)==($659|0);
  41911. if ($660) {
  41912. label = 190;
  41913. break;
  41914. }
  41915. $661 = ((($$024371$i)) + 8|0);
  41916. $662 = HEAP32[$661>>2]|0;
  41917. $663 = ($662|0)==(0|0);
  41918. if ($663) {
  41919. break;
  41920. } else {
  41921. $$024371$i = $662;
  41922. }
  41923. }
  41924. if ((label|0) == 190) {
  41925. $664 = ((($$024371$i)) + 12|0);
  41926. $665 = HEAP32[$664>>2]|0;
  41927. $666 = $665 & 8;
  41928. $667 = ($666|0)==(0);
  41929. if ($667) {
  41930. $668 = ($630>>>0)>=($656>>>0);
  41931. $669 = ($630>>>0)<($$749$i>>>0);
  41932. $or$cond51$i = $669 & $668;
  41933. if ($or$cond51$i) {
  41934. $670 = (($658) + ($$723948$i))|0;
  41935. HEAP32[$657>>2] = $670;
  41936. $671 = HEAP32[(21192)>>2]|0;
  41937. $672 = ((($630)) + 8|0);
  41938. $673 = $672;
  41939. $674 = $673 & 7;
  41940. $675 = ($674|0)==(0);
  41941. $676 = (0 - ($673))|0;
  41942. $677 = $676 & 7;
  41943. $678 = $675 ? 0 : $677;
  41944. $679 = (($630) + ($678)|0);
  41945. $680 = (($$723948$i) - ($678))|0;
  41946. $681 = (($671) + ($680))|0;
  41947. HEAP32[(21204)>>2] = $679;
  41948. HEAP32[(21192)>>2] = $681;
  41949. $682 = $681 | 1;
  41950. $683 = ((($679)) + 4|0);
  41951. HEAP32[$683>>2] = $682;
  41952. $684 = (($679) + ($681)|0);
  41953. $685 = ((($684)) + 4|0);
  41954. HEAP32[$685>>2] = 40;
  41955. $686 = HEAP32[(21668)>>2]|0;
  41956. HEAP32[(21208)>>2] = $686;
  41957. break;
  41958. }
  41959. }
  41960. }
  41961. $687 = HEAP32[(21196)>>2]|0;
  41962. $688 = ($$749$i>>>0)<($687>>>0);
  41963. if ($688) {
  41964. HEAP32[(21196)>>2] = $$749$i;
  41965. $752 = $$749$i;
  41966. } else {
  41967. $752 = $687;
  41968. }
  41969. $689 = (($$749$i) + ($$723948$i)|0);
  41970. $$124470$i = (21628);
  41971. while(1) {
  41972. $690 = HEAP32[$$124470$i>>2]|0;
  41973. $691 = ($690|0)==($689|0);
  41974. if ($691) {
  41975. label = 198;
  41976. break;
  41977. }
  41978. $692 = ((($$124470$i)) + 8|0);
  41979. $693 = HEAP32[$692>>2]|0;
  41980. $694 = ($693|0)==(0|0);
  41981. if ($694) {
  41982. break;
  41983. } else {
  41984. $$124470$i = $693;
  41985. }
  41986. }
  41987. if ((label|0) == 198) {
  41988. $695 = ((($$124470$i)) + 12|0);
  41989. $696 = HEAP32[$695>>2]|0;
  41990. $697 = $696 & 8;
  41991. $698 = ($697|0)==(0);
  41992. if ($698) {
  41993. HEAP32[$$124470$i>>2] = $$749$i;
  41994. $699 = ((($$124470$i)) + 4|0);
  41995. $700 = HEAP32[$699>>2]|0;
  41996. $701 = (($700) + ($$723948$i))|0;
  41997. HEAP32[$699>>2] = $701;
  41998. $702 = ((($$749$i)) + 8|0);
  41999. $703 = $702;
  42000. $704 = $703 & 7;
  42001. $705 = ($704|0)==(0);
  42002. $706 = (0 - ($703))|0;
  42003. $707 = $706 & 7;
  42004. $708 = $705 ? 0 : $707;
  42005. $709 = (($$749$i) + ($708)|0);
  42006. $710 = ((($689)) + 8|0);
  42007. $711 = $710;
  42008. $712 = $711 & 7;
  42009. $713 = ($712|0)==(0);
  42010. $714 = (0 - ($711))|0;
  42011. $715 = $714 & 7;
  42012. $716 = $713 ? 0 : $715;
  42013. $717 = (($689) + ($716)|0);
  42014. $718 = $717;
  42015. $719 = $709;
  42016. $720 = (($718) - ($719))|0;
  42017. $721 = (($709) + ($$0197)|0);
  42018. $722 = (($720) - ($$0197))|0;
  42019. $723 = $$0197 | 3;
  42020. $724 = ((($709)) + 4|0);
  42021. HEAP32[$724>>2] = $723;
  42022. $725 = ($717|0)==($630|0);
  42023. do {
  42024. if ($725) {
  42025. $726 = HEAP32[(21192)>>2]|0;
  42026. $727 = (($726) + ($722))|0;
  42027. HEAP32[(21192)>>2] = $727;
  42028. HEAP32[(21204)>>2] = $721;
  42029. $728 = $727 | 1;
  42030. $729 = ((($721)) + 4|0);
  42031. HEAP32[$729>>2] = $728;
  42032. } else {
  42033. $730 = HEAP32[(21200)>>2]|0;
  42034. $731 = ($717|0)==($730|0);
  42035. if ($731) {
  42036. $732 = HEAP32[(21188)>>2]|0;
  42037. $733 = (($732) + ($722))|0;
  42038. HEAP32[(21188)>>2] = $733;
  42039. HEAP32[(21200)>>2] = $721;
  42040. $734 = $733 | 1;
  42041. $735 = ((($721)) + 4|0);
  42042. HEAP32[$735>>2] = $734;
  42043. $736 = (($721) + ($733)|0);
  42044. HEAP32[$736>>2] = $733;
  42045. break;
  42046. }
  42047. $737 = ((($717)) + 4|0);
  42048. $738 = HEAP32[$737>>2]|0;
  42049. $739 = $738 & 3;
  42050. $740 = ($739|0)==(1);
  42051. if ($740) {
  42052. $741 = $738 & -8;
  42053. $742 = $738 >>> 3;
  42054. $743 = ($738>>>0)<(256);
  42055. L314: do {
  42056. if ($743) {
  42057. $744 = ((($717)) + 8|0);
  42058. $745 = HEAP32[$744>>2]|0;
  42059. $746 = ((($717)) + 12|0);
  42060. $747 = HEAP32[$746>>2]|0;
  42061. $748 = $742 << 1;
  42062. $749 = (21220 + ($748<<2)|0);
  42063. $750 = ($745|0)==($749|0);
  42064. do {
  42065. if (!($750)) {
  42066. $751 = ($745>>>0)<($752>>>0);
  42067. if ($751) {
  42068. _abort();
  42069. // unreachable;
  42070. }
  42071. $753 = ((($745)) + 12|0);
  42072. $754 = HEAP32[$753>>2]|0;
  42073. $755 = ($754|0)==($717|0);
  42074. if ($755) {
  42075. break;
  42076. }
  42077. _abort();
  42078. // unreachable;
  42079. }
  42080. } while(0);
  42081. $756 = ($747|0)==($745|0);
  42082. if ($756) {
  42083. $757 = 1 << $742;
  42084. $758 = $757 ^ -1;
  42085. $759 = HEAP32[5295]|0;
  42086. $760 = $759 & $758;
  42087. HEAP32[5295] = $760;
  42088. break;
  42089. }
  42090. $761 = ($747|0)==($749|0);
  42091. do {
  42092. if ($761) {
  42093. $$pre10$i$i = ((($747)) + 8|0);
  42094. $$pre$phi11$i$iZ2D = $$pre10$i$i;
  42095. } else {
  42096. $762 = ($747>>>0)<($752>>>0);
  42097. if ($762) {
  42098. _abort();
  42099. // unreachable;
  42100. }
  42101. $763 = ((($747)) + 8|0);
  42102. $764 = HEAP32[$763>>2]|0;
  42103. $765 = ($764|0)==($717|0);
  42104. if ($765) {
  42105. $$pre$phi11$i$iZ2D = $763;
  42106. break;
  42107. }
  42108. _abort();
  42109. // unreachable;
  42110. }
  42111. } while(0);
  42112. $766 = ((($745)) + 12|0);
  42113. HEAP32[$766>>2] = $747;
  42114. HEAP32[$$pre$phi11$i$iZ2D>>2] = $745;
  42115. } else {
  42116. $767 = ((($717)) + 24|0);
  42117. $768 = HEAP32[$767>>2]|0;
  42118. $769 = ((($717)) + 12|0);
  42119. $770 = HEAP32[$769>>2]|0;
  42120. $771 = ($770|0)==($717|0);
  42121. do {
  42122. if ($771) {
  42123. $781 = ((($717)) + 16|0);
  42124. $782 = ((($781)) + 4|0);
  42125. $783 = HEAP32[$782>>2]|0;
  42126. $784 = ($783|0)==(0|0);
  42127. if ($784) {
  42128. $785 = HEAP32[$781>>2]|0;
  42129. $786 = ($785|0)==(0|0);
  42130. if ($786) {
  42131. $$3$i$i = 0;
  42132. break;
  42133. } else {
  42134. $$1291$i$i = $785;$$1293$i$i = $781;
  42135. }
  42136. } else {
  42137. $$1291$i$i = $783;$$1293$i$i = $782;
  42138. }
  42139. while(1) {
  42140. $787 = ((($$1291$i$i)) + 20|0);
  42141. $788 = HEAP32[$787>>2]|0;
  42142. $789 = ($788|0)==(0|0);
  42143. if (!($789)) {
  42144. $$1291$i$i = $788;$$1293$i$i = $787;
  42145. continue;
  42146. }
  42147. $790 = ((($$1291$i$i)) + 16|0);
  42148. $791 = HEAP32[$790>>2]|0;
  42149. $792 = ($791|0)==(0|0);
  42150. if ($792) {
  42151. break;
  42152. } else {
  42153. $$1291$i$i = $791;$$1293$i$i = $790;
  42154. }
  42155. }
  42156. $793 = ($$1293$i$i>>>0)<($752>>>0);
  42157. if ($793) {
  42158. _abort();
  42159. // unreachable;
  42160. } else {
  42161. HEAP32[$$1293$i$i>>2] = 0;
  42162. $$3$i$i = $$1291$i$i;
  42163. break;
  42164. }
  42165. } else {
  42166. $772 = ((($717)) + 8|0);
  42167. $773 = HEAP32[$772>>2]|0;
  42168. $774 = ($773>>>0)<($752>>>0);
  42169. if ($774) {
  42170. _abort();
  42171. // unreachable;
  42172. }
  42173. $775 = ((($773)) + 12|0);
  42174. $776 = HEAP32[$775>>2]|0;
  42175. $777 = ($776|0)==($717|0);
  42176. if (!($777)) {
  42177. _abort();
  42178. // unreachable;
  42179. }
  42180. $778 = ((($770)) + 8|0);
  42181. $779 = HEAP32[$778>>2]|0;
  42182. $780 = ($779|0)==($717|0);
  42183. if ($780) {
  42184. HEAP32[$775>>2] = $770;
  42185. HEAP32[$778>>2] = $773;
  42186. $$3$i$i = $770;
  42187. break;
  42188. } else {
  42189. _abort();
  42190. // unreachable;
  42191. }
  42192. }
  42193. } while(0);
  42194. $794 = ($768|0)==(0|0);
  42195. if ($794) {
  42196. break;
  42197. }
  42198. $795 = ((($717)) + 28|0);
  42199. $796 = HEAP32[$795>>2]|0;
  42200. $797 = (21484 + ($796<<2)|0);
  42201. $798 = HEAP32[$797>>2]|0;
  42202. $799 = ($717|0)==($798|0);
  42203. do {
  42204. if ($799) {
  42205. HEAP32[$797>>2] = $$3$i$i;
  42206. $cond$i$i = ($$3$i$i|0)==(0|0);
  42207. if (!($cond$i$i)) {
  42208. break;
  42209. }
  42210. $800 = 1 << $796;
  42211. $801 = $800 ^ -1;
  42212. $802 = HEAP32[(21184)>>2]|0;
  42213. $803 = $802 & $801;
  42214. HEAP32[(21184)>>2] = $803;
  42215. break L314;
  42216. } else {
  42217. $804 = HEAP32[(21196)>>2]|0;
  42218. $805 = ($768>>>0)<($804>>>0);
  42219. if ($805) {
  42220. _abort();
  42221. // unreachable;
  42222. } else {
  42223. $806 = ((($768)) + 16|0);
  42224. $807 = HEAP32[$806>>2]|0;
  42225. $not$$i17$i = ($807|0)!=($717|0);
  42226. $$sink1$i$i = $not$$i17$i&1;
  42227. $808 = (((($768)) + 16|0) + ($$sink1$i$i<<2)|0);
  42228. HEAP32[$808>>2] = $$3$i$i;
  42229. $809 = ($$3$i$i|0)==(0|0);
  42230. if ($809) {
  42231. break L314;
  42232. } else {
  42233. break;
  42234. }
  42235. }
  42236. }
  42237. } while(0);
  42238. $810 = HEAP32[(21196)>>2]|0;
  42239. $811 = ($$3$i$i>>>0)<($810>>>0);
  42240. if ($811) {
  42241. _abort();
  42242. // unreachable;
  42243. }
  42244. $812 = ((($$3$i$i)) + 24|0);
  42245. HEAP32[$812>>2] = $768;
  42246. $813 = ((($717)) + 16|0);
  42247. $814 = HEAP32[$813>>2]|0;
  42248. $815 = ($814|0)==(0|0);
  42249. do {
  42250. if (!($815)) {
  42251. $816 = ($814>>>0)<($810>>>0);
  42252. if ($816) {
  42253. _abort();
  42254. // unreachable;
  42255. } else {
  42256. $817 = ((($$3$i$i)) + 16|0);
  42257. HEAP32[$817>>2] = $814;
  42258. $818 = ((($814)) + 24|0);
  42259. HEAP32[$818>>2] = $$3$i$i;
  42260. break;
  42261. }
  42262. }
  42263. } while(0);
  42264. $819 = ((($813)) + 4|0);
  42265. $820 = HEAP32[$819>>2]|0;
  42266. $821 = ($820|0)==(0|0);
  42267. if ($821) {
  42268. break;
  42269. }
  42270. $822 = HEAP32[(21196)>>2]|0;
  42271. $823 = ($820>>>0)<($822>>>0);
  42272. if ($823) {
  42273. _abort();
  42274. // unreachable;
  42275. } else {
  42276. $824 = ((($$3$i$i)) + 20|0);
  42277. HEAP32[$824>>2] = $820;
  42278. $825 = ((($820)) + 24|0);
  42279. HEAP32[$825>>2] = $$3$i$i;
  42280. break;
  42281. }
  42282. }
  42283. } while(0);
  42284. $826 = (($717) + ($741)|0);
  42285. $827 = (($741) + ($722))|0;
  42286. $$0$i18$i = $826;$$0287$i$i = $827;
  42287. } else {
  42288. $$0$i18$i = $717;$$0287$i$i = $722;
  42289. }
  42290. $828 = ((($$0$i18$i)) + 4|0);
  42291. $829 = HEAP32[$828>>2]|0;
  42292. $830 = $829 & -2;
  42293. HEAP32[$828>>2] = $830;
  42294. $831 = $$0287$i$i | 1;
  42295. $832 = ((($721)) + 4|0);
  42296. HEAP32[$832>>2] = $831;
  42297. $833 = (($721) + ($$0287$i$i)|0);
  42298. HEAP32[$833>>2] = $$0287$i$i;
  42299. $834 = $$0287$i$i >>> 3;
  42300. $835 = ($$0287$i$i>>>0)<(256);
  42301. if ($835) {
  42302. $836 = $834 << 1;
  42303. $837 = (21220 + ($836<<2)|0);
  42304. $838 = HEAP32[5295]|0;
  42305. $839 = 1 << $834;
  42306. $840 = $838 & $839;
  42307. $841 = ($840|0)==(0);
  42308. do {
  42309. if ($841) {
  42310. $842 = $838 | $839;
  42311. HEAP32[5295] = $842;
  42312. $$pre$i19$i = ((($837)) + 8|0);
  42313. $$0295$i$i = $837;$$pre$phi$i20$iZ2D = $$pre$i19$i;
  42314. } else {
  42315. $843 = ((($837)) + 8|0);
  42316. $844 = HEAP32[$843>>2]|0;
  42317. $845 = HEAP32[(21196)>>2]|0;
  42318. $846 = ($844>>>0)<($845>>>0);
  42319. if (!($846)) {
  42320. $$0295$i$i = $844;$$pre$phi$i20$iZ2D = $843;
  42321. break;
  42322. }
  42323. _abort();
  42324. // unreachable;
  42325. }
  42326. } while(0);
  42327. HEAP32[$$pre$phi$i20$iZ2D>>2] = $721;
  42328. $847 = ((($$0295$i$i)) + 12|0);
  42329. HEAP32[$847>>2] = $721;
  42330. $848 = ((($721)) + 8|0);
  42331. HEAP32[$848>>2] = $$0295$i$i;
  42332. $849 = ((($721)) + 12|0);
  42333. HEAP32[$849>>2] = $837;
  42334. break;
  42335. }
  42336. $850 = $$0287$i$i >>> 8;
  42337. $851 = ($850|0)==(0);
  42338. do {
  42339. if ($851) {
  42340. $$0296$i$i = 0;
  42341. } else {
  42342. $852 = ($$0287$i$i>>>0)>(16777215);
  42343. if ($852) {
  42344. $$0296$i$i = 31;
  42345. break;
  42346. }
  42347. $853 = (($850) + 1048320)|0;
  42348. $854 = $853 >>> 16;
  42349. $855 = $854 & 8;
  42350. $856 = $850 << $855;
  42351. $857 = (($856) + 520192)|0;
  42352. $858 = $857 >>> 16;
  42353. $859 = $858 & 4;
  42354. $860 = $859 | $855;
  42355. $861 = $856 << $859;
  42356. $862 = (($861) + 245760)|0;
  42357. $863 = $862 >>> 16;
  42358. $864 = $863 & 2;
  42359. $865 = $860 | $864;
  42360. $866 = (14 - ($865))|0;
  42361. $867 = $861 << $864;
  42362. $868 = $867 >>> 15;
  42363. $869 = (($866) + ($868))|0;
  42364. $870 = $869 << 1;
  42365. $871 = (($869) + 7)|0;
  42366. $872 = $$0287$i$i >>> $871;
  42367. $873 = $872 & 1;
  42368. $874 = $873 | $870;
  42369. $$0296$i$i = $874;
  42370. }
  42371. } while(0);
  42372. $875 = (21484 + ($$0296$i$i<<2)|0);
  42373. $876 = ((($721)) + 28|0);
  42374. HEAP32[$876>>2] = $$0296$i$i;
  42375. $877 = ((($721)) + 16|0);
  42376. $878 = ((($877)) + 4|0);
  42377. HEAP32[$878>>2] = 0;
  42378. HEAP32[$877>>2] = 0;
  42379. $879 = HEAP32[(21184)>>2]|0;
  42380. $880 = 1 << $$0296$i$i;
  42381. $881 = $879 & $880;
  42382. $882 = ($881|0)==(0);
  42383. if ($882) {
  42384. $883 = $879 | $880;
  42385. HEAP32[(21184)>>2] = $883;
  42386. HEAP32[$875>>2] = $721;
  42387. $884 = ((($721)) + 24|0);
  42388. HEAP32[$884>>2] = $875;
  42389. $885 = ((($721)) + 12|0);
  42390. HEAP32[$885>>2] = $721;
  42391. $886 = ((($721)) + 8|0);
  42392. HEAP32[$886>>2] = $721;
  42393. break;
  42394. }
  42395. $887 = HEAP32[$875>>2]|0;
  42396. $888 = ($$0296$i$i|0)==(31);
  42397. $889 = $$0296$i$i >>> 1;
  42398. $890 = (25 - ($889))|0;
  42399. $891 = $888 ? 0 : $890;
  42400. $892 = $$0287$i$i << $891;
  42401. $$0288$i$i = $892;$$0289$i$i = $887;
  42402. while(1) {
  42403. $893 = ((($$0289$i$i)) + 4|0);
  42404. $894 = HEAP32[$893>>2]|0;
  42405. $895 = $894 & -8;
  42406. $896 = ($895|0)==($$0287$i$i|0);
  42407. if ($896) {
  42408. label = 265;
  42409. break;
  42410. }
  42411. $897 = $$0288$i$i >>> 31;
  42412. $898 = (((($$0289$i$i)) + 16|0) + ($897<<2)|0);
  42413. $899 = $$0288$i$i << 1;
  42414. $900 = HEAP32[$898>>2]|0;
  42415. $901 = ($900|0)==(0|0);
  42416. if ($901) {
  42417. label = 262;
  42418. break;
  42419. } else {
  42420. $$0288$i$i = $899;$$0289$i$i = $900;
  42421. }
  42422. }
  42423. if ((label|0) == 262) {
  42424. $902 = HEAP32[(21196)>>2]|0;
  42425. $903 = ($898>>>0)<($902>>>0);
  42426. if ($903) {
  42427. _abort();
  42428. // unreachable;
  42429. } else {
  42430. HEAP32[$898>>2] = $721;
  42431. $904 = ((($721)) + 24|0);
  42432. HEAP32[$904>>2] = $$0289$i$i;
  42433. $905 = ((($721)) + 12|0);
  42434. HEAP32[$905>>2] = $721;
  42435. $906 = ((($721)) + 8|0);
  42436. HEAP32[$906>>2] = $721;
  42437. break;
  42438. }
  42439. }
  42440. else if ((label|0) == 265) {
  42441. $907 = ((($$0289$i$i)) + 8|0);
  42442. $908 = HEAP32[$907>>2]|0;
  42443. $909 = HEAP32[(21196)>>2]|0;
  42444. $910 = ($908>>>0)>=($909>>>0);
  42445. $not$7$i$i = ($$0289$i$i>>>0)>=($909>>>0);
  42446. $911 = $910 & $not$7$i$i;
  42447. if ($911) {
  42448. $912 = ((($908)) + 12|0);
  42449. HEAP32[$912>>2] = $721;
  42450. HEAP32[$907>>2] = $721;
  42451. $913 = ((($721)) + 8|0);
  42452. HEAP32[$913>>2] = $908;
  42453. $914 = ((($721)) + 12|0);
  42454. HEAP32[$914>>2] = $$0289$i$i;
  42455. $915 = ((($721)) + 24|0);
  42456. HEAP32[$915>>2] = 0;
  42457. break;
  42458. } else {
  42459. _abort();
  42460. // unreachable;
  42461. }
  42462. }
  42463. }
  42464. } while(0);
  42465. $1047 = ((($709)) + 8|0);
  42466. $$0 = $1047;
  42467. STACKTOP = sp;return ($$0|0);
  42468. }
  42469. }
  42470. $$0$i$i$i = (21628);
  42471. while(1) {
  42472. $916 = HEAP32[$$0$i$i$i>>2]|0;
  42473. $917 = ($916>>>0)>($630>>>0);
  42474. if (!($917)) {
  42475. $918 = ((($$0$i$i$i)) + 4|0);
  42476. $919 = HEAP32[$918>>2]|0;
  42477. $920 = (($916) + ($919)|0);
  42478. $921 = ($920>>>0)>($630>>>0);
  42479. if ($921) {
  42480. break;
  42481. }
  42482. }
  42483. $922 = ((($$0$i$i$i)) + 8|0);
  42484. $923 = HEAP32[$922>>2]|0;
  42485. $$0$i$i$i = $923;
  42486. }
  42487. $924 = ((($920)) + -47|0);
  42488. $925 = ((($924)) + 8|0);
  42489. $926 = $925;
  42490. $927 = $926 & 7;
  42491. $928 = ($927|0)==(0);
  42492. $929 = (0 - ($926))|0;
  42493. $930 = $929 & 7;
  42494. $931 = $928 ? 0 : $930;
  42495. $932 = (($924) + ($931)|0);
  42496. $933 = ((($630)) + 16|0);
  42497. $934 = ($932>>>0)<($933>>>0);
  42498. $935 = $934 ? $630 : $932;
  42499. $936 = ((($935)) + 8|0);
  42500. $937 = ((($935)) + 24|0);
  42501. $938 = (($$723948$i) + -40)|0;
  42502. $939 = ((($$749$i)) + 8|0);
  42503. $940 = $939;
  42504. $941 = $940 & 7;
  42505. $942 = ($941|0)==(0);
  42506. $943 = (0 - ($940))|0;
  42507. $944 = $943 & 7;
  42508. $945 = $942 ? 0 : $944;
  42509. $946 = (($$749$i) + ($945)|0);
  42510. $947 = (($938) - ($945))|0;
  42511. HEAP32[(21204)>>2] = $946;
  42512. HEAP32[(21192)>>2] = $947;
  42513. $948 = $947 | 1;
  42514. $949 = ((($946)) + 4|0);
  42515. HEAP32[$949>>2] = $948;
  42516. $950 = (($946) + ($947)|0);
  42517. $951 = ((($950)) + 4|0);
  42518. HEAP32[$951>>2] = 40;
  42519. $952 = HEAP32[(21668)>>2]|0;
  42520. HEAP32[(21208)>>2] = $952;
  42521. $953 = ((($935)) + 4|0);
  42522. HEAP32[$953>>2] = 27;
  42523. ;HEAP32[$936>>2]=HEAP32[(21628)>>2]|0;HEAP32[$936+4>>2]=HEAP32[(21628)+4>>2]|0;HEAP32[$936+8>>2]=HEAP32[(21628)+8>>2]|0;HEAP32[$936+12>>2]=HEAP32[(21628)+12>>2]|0;
  42524. HEAP32[(21628)>>2] = $$749$i;
  42525. HEAP32[(21632)>>2] = $$723948$i;
  42526. HEAP32[(21640)>>2] = 0;
  42527. HEAP32[(21636)>>2] = $936;
  42528. $955 = $937;
  42529. while(1) {
  42530. $954 = ((($955)) + 4|0);
  42531. HEAP32[$954>>2] = 7;
  42532. $956 = ((($955)) + 8|0);
  42533. $957 = ($956>>>0)<($920>>>0);
  42534. if ($957) {
  42535. $955 = $954;
  42536. } else {
  42537. break;
  42538. }
  42539. }
  42540. $958 = ($935|0)==($630|0);
  42541. if (!($958)) {
  42542. $959 = $935;
  42543. $960 = $630;
  42544. $961 = (($959) - ($960))|0;
  42545. $962 = HEAP32[$953>>2]|0;
  42546. $963 = $962 & -2;
  42547. HEAP32[$953>>2] = $963;
  42548. $964 = $961 | 1;
  42549. $965 = ((($630)) + 4|0);
  42550. HEAP32[$965>>2] = $964;
  42551. HEAP32[$935>>2] = $961;
  42552. $966 = $961 >>> 3;
  42553. $967 = ($961>>>0)<(256);
  42554. if ($967) {
  42555. $968 = $966 << 1;
  42556. $969 = (21220 + ($968<<2)|0);
  42557. $970 = HEAP32[5295]|0;
  42558. $971 = 1 << $966;
  42559. $972 = $970 & $971;
  42560. $973 = ($972|0)==(0);
  42561. if ($973) {
  42562. $974 = $970 | $971;
  42563. HEAP32[5295] = $974;
  42564. $$pre$i$i = ((($969)) + 8|0);
  42565. $$0211$i$i = $969;$$pre$phi$i$iZ2D = $$pre$i$i;
  42566. } else {
  42567. $975 = ((($969)) + 8|0);
  42568. $976 = HEAP32[$975>>2]|0;
  42569. $977 = HEAP32[(21196)>>2]|0;
  42570. $978 = ($976>>>0)<($977>>>0);
  42571. if ($978) {
  42572. _abort();
  42573. // unreachable;
  42574. } else {
  42575. $$0211$i$i = $976;$$pre$phi$i$iZ2D = $975;
  42576. }
  42577. }
  42578. HEAP32[$$pre$phi$i$iZ2D>>2] = $630;
  42579. $979 = ((($$0211$i$i)) + 12|0);
  42580. HEAP32[$979>>2] = $630;
  42581. $980 = ((($630)) + 8|0);
  42582. HEAP32[$980>>2] = $$0211$i$i;
  42583. $981 = ((($630)) + 12|0);
  42584. HEAP32[$981>>2] = $969;
  42585. break;
  42586. }
  42587. $982 = $961 >>> 8;
  42588. $983 = ($982|0)==(0);
  42589. if ($983) {
  42590. $$0212$i$i = 0;
  42591. } else {
  42592. $984 = ($961>>>0)>(16777215);
  42593. if ($984) {
  42594. $$0212$i$i = 31;
  42595. } else {
  42596. $985 = (($982) + 1048320)|0;
  42597. $986 = $985 >>> 16;
  42598. $987 = $986 & 8;
  42599. $988 = $982 << $987;
  42600. $989 = (($988) + 520192)|0;
  42601. $990 = $989 >>> 16;
  42602. $991 = $990 & 4;
  42603. $992 = $991 | $987;
  42604. $993 = $988 << $991;
  42605. $994 = (($993) + 245760)|0;
  42606. $995 = $994 >>> 16;
  42607. $996 = $995 & 2;
  42608. $997 = $992 | $996;
  42609. $998 = (14 - ($997))|0;
  42610. $999 = $993 << $996;
  42611. $1000 = $999 >>> 15;
  42612. $1001 = (($998) + ($1000))|0;
  42613. $1002 = $1001 << 1;
  42614. $1003 = (($1001) + 7)|0;
  42615. $1004 = $961 >>> $1003;
  42616. $1005 = $1004 & 1;
  42617. $1006 = $1005 | $1002;
  42618. $$0212$i$i = $1006;
  42619. }
  42620. }
  42621. $1007 = (21484 + ($$0212$i$i<<2)|0);
  42622. $1008 = ((($630)) + 28|0);
  42623. HEAP32[$1008>>2] = $$0212$i$i;
  42624. $1009 = ((($630)) + 20|0);
  42625. HEAP32[$1009>>2] = 0;
  42626. HEAP32[$933>>2] = 0;
  42627. $1010 = HEAP32[(21184)>>2]|0;
  42628. $1011 = 1 << $$0212$i$i;
  42629. $1012 = $1010 & $1011;
  42630. $1013 = ($1012|0)==(0);
  42631. if ($1013) {
  42632. $1014 = $1010 | $1011;
  42633. HEAP32[(21184)>>2] = $1014;
  42634. HEAP32[$1007>>2] = $630;
  42635. $1015 = ((($630)) + 24|0);
  42636. HEAP32[$1015>>2] = $1007;
  42637. $1016 = ((($630)) + 12|0);
  42638. HEAP32[$1016>>2] = $630;
  42639. $1017 = ((($630)) + 8|0);
  42640. HEAP32[$1017>>2] = $630;
  42641. break;
  42642. }
  42643. $1018 = HEAP32[$1007>>2]|0;
  42644. $1019 = ($$0212$i$i|0)==(31);
  42645. $1020 = $$0212$i$i >>> 1;
  42646. $1021 = (25 - ($1020))|0;
  42647. $1022 = $1019 ? 0 : $1021;
  42648. $1023 = $961 << $1022;
  42649. $$0206$i$i = $1023;$$0207$i$i = $1018;
  42650. while(1) {
  42651. $1024 = ((($$0207$i$i)) + 4|0);
  42652. $1025 = HEAP32[$1024>>2]|0;
  42653. $1026 = $1025 & -8;
  42654. $1027 = ($1026|0)==($961|0);
  42655. if ($1027) {
  42656. label = 292;
  42657. break;
  42658. }
  42659. $1028 = $$0206$i$i >>> 31;
  42660. $1029 = (((($$0207$i$i)) + 16|0) + ($1028<<2)|0);
  42661. $1030 = $$0206$i$i << 1;
  42662. $1031 = HEAP32[$1029>>2]|0;
  42663. $1032 = ($1031|0)==(0|0);
  42664. if ($1032) {
  42665. label = 289;
  42666. break;
  42667. } else {
  42668. $$0206$i$i = $1030;$$0207$i$i = $1031;
  42669. }
  42670. }
  42671. if ((label|0) == 289) {
  42672. $1033 = HEAP32[(21196)>>2]|0;
  42673. $1034 = ($1029>>>0)<($1033>>>0);
  42674. if ($1034) {
  42675. _abort();
  42676. // unreachable;
  42677. } else {
  42678. HEAP32[$1029>>2] = $630;
  42679. $1035 = ((($630)) + 24|0);
  42680. HEAP32[$1035>>2] = $$0207$i$i;
  42681. $1036 = ((($630)) + 12|0);
  42682. HEAP32[$1036>>2] = $630;
  42683. $1037 = ((($630)) + 8|0);
  42684. HEAP32[$1037>>2] = $630;
  42685. break;
  42686. }
  42687. }
  42688. else if ((label|0) == 292) {
  42689. $1038 = ((($$0207$i$i)) + 8|0);
  42690. $1039 = HEAP32[$1038>>2]|0;
  42691. $1040 = HEAP32[(21196)>>2]|0;
  42692. $1041 = ($1039>>>0)>=($1040>>>0);
  42693. $not$$i$i = ($$0207$i$i>>>0)>=($1040>>>0);
  42694. $1042 = $1041 & $not$$i$i;
  42695. if ($1042) {
  42696. $1043 = ((($1039)) + 12|0);
  42697. HEAP32[$1043>>2] = $630;
  42698. HEAP32[$1038>>2] = $630;
  42699. $1044 = ((($630)) + 8|0);
  42700. HEAP32[$1044>>2] = $1039;
  42701. $1045 = ((($630)) + 12|0);
  42702. HEAP32[$1045>>2] = $$0207$i$i;
  42703. $1046 = ((($630)) + 24|0);
  42704. HEAP32[$1046>>2] = 0;
  42705. break;
  42706. } else {
  42707. _abort();
  42708. // unreachable;
  42709. }
  42710. }
  42711. }
  42712. }
  42713. } while(0);
  42714. $1048 = HEAP32[(21192)>>2]|0;
  42715. $1049 = ($1048>>>0)>($$0197>>>0);
  42716. if ($1049) {
  42717. $1050 = (($1048) - ($$0197))|0;
  42718. HEAP32[(21192)>>2] = $1050;
  42719. $1051 = HEAP32[(21204)>>2]|0;
  42720. $1052 = (($1051) + ($$0197)|0);
  42721. HEAP32[(21204)>>2] = $1052;
  42722. $1053 = $1050 | 1;
  42723. $1054 = ((($1052)) + 4|0);
  42724. HEAP32[$1054>>2] = $1053;
  42725. $1055 = $$0197 | 3;
  42726. $1056 = ((($1051)) + 4|0);
  42727. HEAP32[$1056>>2] = $1055;
  42728. $1057 = ((($1051)) + 8|0);
  42729. $$0 = $1057;
  42730. STACKTOP = sp;return ($$0|0);
  42731. }
  42732. }
  42733. $1058 = (___errno_location()|0);
  42734. HEAP32[$1058>>2] = 12;
  42735. $$0 = 0;
  42736. STACKTOP = sp;return ($$0|0);
  42737. }
  42738. function _free($0) {
  42739. $0 = $0|0;
  42740. var $$0212$i = 0, $$0212$in$i = 0, $$0383 = 0, $$0384 = 0, $$0396 = 0, $$0403 = 0, $$1 = 0, $$1382 = 0, $$1387 = 0, $$1390 = 0, $$1398 = 0, $$1402 = 0, $$2 = 0, $$3 = 0, $$3400 = 0, $$pre = 0, $$pre$phi443Z2D = 0, $$pre$phi445Z2D = 0, $$pre$phiZ2D = 0, $$pre442 = 0;
  42741. var $$pre444 = 0, $$sink3 = 0, $$sink5 = 0, $1 = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0;
  42742. var $114 = 0, $115 = 0, $116 = 0, $117 = 0, $118 = 0, $119 = 0, $12 = 0, $120 = 0, $121 = 0, $122 = 0, $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 0, $128 = 0, $129 = 0, $13 = 0, $130 = 0, $131 = 0;
  42743. var $132 = 0, $133 = 0, $134 = 0, $135 = 0, $136 = 0, $137 = 0, $138 = 0, $139 = 0, $14 = 0, $140 = 0, $141 = 0, $142 = 0, $143 = 0, $144 = 0, $145 = 0, $146 = 0, $147 = 0, $148 = 0, $149 = 0, $15 = 0;
  42744. var $150 = 0, $151 = 0, $152 = 0, $153 = 0, $154 = 0, $155 = 0, $156 = 0, $157 = 0, $158 = 0, $159 = 0, $16 = 0, $160 = 0, $161 = 0, $162 = 0, $163 = 0, $164 = 0, $165 = 0, $166 = 0, $167 = 0, $168 = 0;
  42745. var $169 = 0, $17 = 0, $170 = 0, $171 = 0, $172 = 0, $173 = 0, $174 = 0, $175 = 0, $176 = 0, $177 = 0, $178 = 0, $179 = 0, $18 = 0, $180 = 0, $181 = 0, $182 = 0, $183 = 0, $184 = 0, $185 = 0, $186 = 0;
  42746. var $187 = 0, $188 = 0, $189 = 0, $19 = 0, $190 = 0, $191 = 0, $192 = 0, $193 = 0, $194 = 0, $195 = 0, $196 = 0, $197 = 0, $198 = 0, $199 = 0, $2 = 0, $20 = 0, $200 = 0, $201 = 0, $202 = 0, $203 = 0;
  42747. var $204 = 0, $205 = 0, $206 = 0, $207 = 0, $208 = 0, $209 = 0, $21 = 0, $210 = 0, $211 = 0, $212 = 0, $213 = 0, $214 = 0, $215 = 0, $216 = 0, $217 = 0, $218 = 0, $219 = 0, $22 = 0, $220 = 0, $221 = 0;
  42748. var $222 = 0, $223 = 0, $224 = 0, $225 = 0, $226 = 0, $227 = 0, $228 = 0, $229 = 0, $23 = 0, $230 = 0, $231 = 0, $232 = 0, $233 = 0, $234 = 0, $235 = 0, $236 = 0, $237 = 0, $238 = 0, $239 = 0, $24 = 0;
  42749. var $240 = 0, $241 = 0, $242 = 0, $243 = 0, $244 = 0, $245 = 0, $246 = 0, $247 = 0, $248 = 0, $249 = 0, $25 = 0, $250 = 0, $251 = 0, $252 = 0, $253 = 0, $254 = 0, $255 = 0, $256 = 0, $257 = 0, $258 = 0;
  42750. var $259 = 0, $26 = 0, $260 = 0, $261 = 0, $262 = 0, $263 = 0, $264 = 0, $265 = 0, $266 = 0, $267 = 0, $268 = 0, $269 = 0, $27 = 0, $270 = 0, $271 = 0, $272 = 0, $273 = 0, $274 = 0, $275 = 0, $276 = 0;
  42751. var $277 = 0, $278 = 0, $279 = 0, $28 = 0, $280 = 0, $281 = 0, $282 = 0, $283 = 0, $284 = 0, $285 = 0, $286 = 0, $287 = 0, $288 = 0, $289 = 0, $29 = 0, $290 = 0, $291 = 0, $292 = 0, $293 = 0, $294 = 0;
  42752. var $295 = 0, $296 = 0, $297 = 0, $298 = 0, $299 = 0, $3 = 0, $30 = 0, $300 = 0, $301 = 0, $302 = 0, $303 = 0, $304 = 0, $305 = 0, $306 = 0, $307 = 0, $308 = 0, $309 = 0, $31 = 0, $310 = 0, $311 = 0;
  42753. var $312 = 0, $313 = 0, $314 = 0, $315 = 0, $316 = 0, $317 = 0, $318 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0;
  42754. var $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0;
  42755. var $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0;
  42756. var $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0, $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0;
  42757. var $99 = 0, $cond421 = 0, $cond422 = 0, $not$ = 0, $not$405 = 0, $not$437 = 0, label = 0, sp = 0;
  42758. sp = STACKTOP;
  42759. $1 = ($0|0)==(0|0);
  42760. if ($1) {
  42761. return;
  42762. }
  42763. $2 = ((($0)) + -8|0);
  42764. $3 = HEAP32[(21196)>>2]|0;
  42765. $4 = ($2>>>0)<($3>>>0);
  42766. if ($4) {
  42767. _abort();
  42768. // unreachable;
  42769. }
  42770. $5 = ((($0)) + -4|0);
  42771. $6 = HEAP32[$5>>2]|0;
  42772. $7 = $6 & 3;
  42773. $8 = ($7|0)==(1);
  42774. if ($8) {
  42775. _abort();
  42776. // unreachable;
  42777. }
  42778. $9 = $6 & -8;
  42779. $10 = (($2) + ($9)|0);
  42780. $11 = $6 & 1;
  42781. $12 = ($11|0)==(0);
  42782. L10: do {
  42783. if ($12) {
  42784. $13 = HEAP32[$2>>2]|0;
  42785. $14 = ($7|0)==(0);
  42786. if ($14) {
  42787. return;
  42788. }
  42789. $15 = (0 - ($13))|0;
  42790. $16 = (($2) + ($15)|0);
  42791. $17 = (($13) + ($9))|0;
  42792. $18 = ($16>>>0)<($3>>>0);
  42793. if ($18) {
  42794. _abort();
  42795. // unreachable;
  42796. }
  42797. $19 = HEAP32[(21200)>>2]|0;
  42798. $20 = ($16|0)==($19|0);
  42799. if ($20) {
  42800. $104 = ((($10)) + 4|0);
  42801. $105 = HEAP32[$104>>2]|0;
  42802. $106 = $105 & 3;
  42803. $107 = ($106|0)==(3);
  42804. if (!($107)) {
  42805. $$1 = $16;$$1382 = $17;$113 = $16;
  42806. break;
  42807. }
  42808. $108 = (($16) + ($17)|0);
  42809. $109 = ((($16)) + 4|0);
  42810. $110 = $17 | 1;
  42811. $111 = $105 & -2;
  42812. HEAP32[(21188)>>2] = $17;
  42813. HEAP32[$104>>2] = $111;
  42814. HEAP32[$109>>2] = $110;
  42815. HEAP32[$108>>2] = $17;
  42816. return;
  42817. }
  42818. $21 = $13 >>> 3;
  42819. $22 = ($13>>>0)<(256);
  42820. if ($22) {
  42821. $23 = ((($16)) + 8|0);
  42822. $24 = HEAP32[$23>>2]|0;
  42823. $25 = ((($16)) + 12|0);
  42824. $26 = HEAP32[$25>>2]|0;
  42825. $27 = $21 << 1;
  42826. $28 = (21220 + ($27<<2)|0);
  42827. $29 = ($24|0)==($28|0);
  42828. if (!($29)) {
  42829. $30 = ($24>>>0)<($3>>>0);
  42830. if ($30) {
  42831. _abort();
  42832. // unreachable;
  42833. }
  42834. $31 = ((($24)) + 12|0);
  42835. $32 = HEAP32[$31>>2]|0;
  42836. $33 = ($32|0)==($16|0);
  42837. if (!($33)) {
  42838. _abort();
  42839. // unreachable;
  42840. }
  42841. }
  42842. $34 = ($26|0)==($24|0);
  42843. if ($34) {
  42844. $35 = 1 << $21;
  42845. $36 = $35 ^ -1;
  42846. $37 = HEAP32[5295]|0;
  42847. $38 = $37 & $36;
  42848. HEAP32[5295] = $38;
  42849. $$1 = $16;$$1382 = $17;$113 = $16;
  42850. break;
  42851. }
  42852. $39 = ($26|0)==($28|0);
  42853. if ($39) {
  42854. $$pre444 = ((($26)) + 8|0);
  42855. $$pre$phi445Z2D = $$pre444;
  42856. } else {
  42857. $40 = ($26>>>0)<($3>>>0);
  42858. if ($40) {
  42859. _abort();
  42860. // unreachable;
  42861. }
  42862. $41 = ((($26)) + 8|0);
  42863. $42 = HEAP32[$41>>2]|0;
  42864. $43 = ($42|0)==($16|0);
  42865. if ($43) {
  42866. $$pre$phi445Z2D = $41;
  42867. } else {
  42868. _abort();
  42869. // unreachable;
  42870. }
  42871. }
  42872. $44 = ((($24)) + 12|0);
  42873. HEAP32[$44>>2] = $26;
  42874. HEAP32[$$pre$phi445Z2D>>2] = $24;
  42875. $$1 = $16;$$1382 = $17;$113 = $16;
  42876. break;
  42877. }
  42878. $45 = ((($16)) + 24|0);
  42879. $46 = HEAP32[$45>>2]|0;
  42880. $47 = ((($16)) + 12|0);
  42881. $48 = HEAP32[$47>>2]|0;
  42882. $49 = ($48|0)==($16|0);
  42883. do {
  42884. if ($49) {
  42885. $59 = ((($16)) + 16|0);
  42886. $60 = ((($59)) + 4|0);
  42887. $61 = HEAP32[$60>>2]|0;
  42888. $62 = ($61|0)==(0|0);
  42889. if ($62) {
  42890. $63 = HEAP32[$59>>2]|0;
  42891. $64 = ($63|0)==(0|0);
  42892. if ($64) {
  42893. $$3 = 0;
  42894. break;
  42895. } else {
  42896. $$1387 = $63;$$1390 = $59;
  42897. }
  42898. } else {
  42899. $$1387 = $61;$$1390 = $60;
  42900. }
  42901. while(1) {
  42902. $65 = ((($$1387)) + 20|0);
  42903. $66 = HEAP32[$65>>2]|0;
  42904. $67 = ($66|0)==(0|0);
  42905. if (!($67)) {
  42906. $$1387 = $66;$$1390 = $65;
  42907. continue;
  42908. }
  42909. $68 = ((($$1387)) + 16|0);
  42910. $69 = HEAP32[$68>>2]|0;
  42911. $70 = ($69|0)==(0|0);
  42912. if ($70) {
  42913. break;
  42914. } else {
  42915. $$1387 = $69;$$1390 = $68;
  42916. }
  42917. }
  42918. $71 = ($$1390>>>0)<($3>>>0);
  42919. if ($71) {
  42920. _abort();
  42921. // unreachable;
  42922. } else {
  42923. HEAP32[$$1390>>2] = 0;
  42924. $$3 = $$1387;
  42925. break;
  42926. }
  42927. } else {
  42928. $50 = ((($16)) + 8|0);
  42929. $51 = HEAP32[$50>>2]|0;
  42930. $52 = ($51>>>0)<($3>>>0);
  42931. if ($52) {
  42932. _abort();
  42933. // unreachable;
  42934. }
  42935. $53 = ((($51)) + 12|0);
  42936. $54 = HEAP32[$53>>2]|0;
  42937. $55 = ($54|0)==($16|0);
  42938. if (!($55)) {
  42939. _abort();
  42940. // unreachable;
  42941. }
  42942. $56 = ((($48)) + 8|0);
  42943. $57 = HEAP32[$56>>2]|0;
  42944. $58 = ($57|0)==($16|0);
  42945. if ($58) {
  42946. HEAP32[$53>>2] = $48;
  42947. HEAP32[$56>>2] = $51;
  42948. $$3 = $48;
  42949. break;
  42950. } else {
  42951. _abort();
  42952. // unreachable;
  42953. }
  42954. }
  42955. } while(0);
  42956. $72 = ($46|0)==(0|0);
  42957. if ($72) {
  42958. $$1 = $16;$$1382 = $17;$113 = $16;
  42959. } else {
  42960. $73 = ((($16)) + 28|0);
  42961. $74 = HEAP32[$73>>2]|0;
  42962. $75 = (21484 + ($74<<2)|0);
  42963. $76 = HEAP32[$75>>2]|0;
  42964. $77 = ($16|0)==($76|0);
  42965. do {
  42966. if ($77) {
  42967. HEAP32[$75>>2] = $$3;
  42968. $cond421 = ($$3|0)==(0|0);
  42969. if ($cond421) {
  42970. $78 = 1 << $74;
  42971. $79 = $78 ^ -1;
  42972. $80 = HEAP32[(21184)>>2]|0;
  42973. $81 = $80 & $79;
  42974. HEAP32[(21184)>>2] = $81;
  42975. $$1 = $16;$$1382 = $17;$113 = $16;
  42976. break L10;
  42977. }
  42978. } else {
  42979. $82 = HEAP32[(21196)>>2]|0;
  42980. $83 = ($46>>>0)<($82>>>0);
  42981. if ($83) {
  42982. _abort();
  42983. // unreachable;
  42984. } else {
  42985. $84 = ((($46)) + 16|0);
  42986. $85 = HEAP32[$84>>2]|0;
  42987. $not$405 = ($85|0)!=($16|0);
  42988. $$sink3 = $not$405&1;
  42989. $86 = (((($46)) + 16|0) + ($$sink3<<2)|0);
  42990. HEAP32[$86>>2] = $$3;
  42991. $87 = ($$3|0)==(0|0);
  42992. if ($87) {
  42993. $$1 = $16;$$1382 = $17;$113 = $16;
  42994. break L10;
  42995. } else {
  42996. break;
  42997. }
  42998. }
  42999. }
  43000. } while(0);
  43001. $88 = HEAP32[(21196)>>2]|0;
  43002. $89 = ($$3>>>0)<($88>>>0);
  43003. if ($89) {
  43004. _abort();
  43005. // unreachable;
  43006. }
  43007. $90 = ((($$3)) + 24|0);
  43008. HEAP32[$90>>2] = $46;
  43009. $91 = ((($16)) + 16|0);
  43010. $92 = HEAP32[$91>>2]|0;
  43011. $93 = ($92|0)==(0|0);
  43012. do {
  43013. if (!($93)) {
  43014. $94 = ($92>>>0)<($88>>>0);
  43015. if ($94) {
  43016. _abort();
  43017. // unreachable;
  43018. } else {
  43019. $95 = ((($$3)) + 16|0);
  43020. HEAP32[$95>>2] = $92;
  43021. $96 = ((($92)) + 24|0);
  43022. HEAP32[$96>>2] = $$3;
  43023. break;
  43024. }
  43025. }
  43026. } while(0);
  43027. $97 = ((($91)) + 4|0);
  43028. $98 = HEAP32[$97>>2]|0;
  43029. $99 = ($98|0)==(0|0);
  43030. if ($99) {
  43031. $$1 = $16;$$1382 = $17;$113 = $16;
  43032. } else {
  43033. $100 = HEAP32[(21196)>>2]|0;
  43034. $101 = ($98>>>0)<($100>>>0);
  43035. if ($101) {
  43036. _abort();
  43037. // unreachable;
  43038. } else {
  43039. $102 = ((($$3)) + 20|0);
  43040. HEAP32[$102>>2] = $98;
  43041. $103 = ((($98)) + 24|0);
  43042. HEAP32[$103>>2] = $$3;
  43043. $$1 = $16;$$1382 = $17;$113 = $16;
  43044. break;
  43045. }
  43046. }
  43047. }
  43048. } else {
  43049. $$1 = $2;$$1382 = $9;$113 = $2;
  43050. }
  43051. } while(0);
  43052. $112 = ($113>>>0)<($10>>>0);
  43053. if (!($112)) {
  43054. _abort();
  43055. // unreachable;
  43056. }
  43057. $114 = ((($10)) + 4|0);
  43058. $115 = HEAP32[$114>>2]|0;
  43059. $116 = $115 & 1;
  43060. $117 = ($116|0)==(0);
  43061. if ($117) {
  43062. _abort();
  43063. // unreachable;
  43064. }
  43065. $118 = $115 & 2;
  43066. $119 = ($118|0)==(0);
  43067. if ($119) {
  43068. $120 = HEAP32[(21204)>>2]|0;
  43069. $121 = ($10|0)==($120|0);
  43070. $122 = HEAP32[(21200)>>2]|0;
  43071. if ($121) {
  43072. $123 = HEAP32[(21192)>>2]|0;
  43073. $124 = (($123) + ($$1382))|0;
  43074. HEAP32[(21192)>>2] = $124;
  43075. HEAP32[(21204)>>2] = $$1;
  43076. $125 = $124 | 1;
  43077. $126 = ((($$1)) + 4|0);
  43078. HEAP32[$126>>2] = $125;
  43079. $127 = ($$1|0)==($122|0);
  43080. if (!($127)) {
  43081. return;
  43082. }
  43083. HEAP32[(21200)>>2] = 0;
  43084. HEAP32[(21188)>>2] = 0;
  43085. return;
  43086. }
  43087. $128 = ($10|0)==($122|0);
  43088. if ($128) {
  43089. $129 = HEAP32[(21188)>>2]|0;
  43090. $130 = (($129) + ($$1382))|0;
  43091. HEAP32[(21188)>>2] = $130;
  43092. HEAP32[(21200)>>2] = $113;
  43093. $131 = $130 | 1;
  43094. $132 = ((($$1)) + 4|0);
  43095. HEAP32[$132>>2] = $131;
  43096. $133 = (($113) + ($130)|0);
  43097. HEAP32[$133>>2] = $130;
  43098. return;
  43099. }
  43100. $134 = $115 & -8;
  43101. $135 = (($134) + ($$1382))|0;
  43102. $136 = $115 >>> 3;
  43103. $137 = ($115>>>0)<(256);
  43104. L108: do {
  43105. if ($137) {
  43106. $138 = ((($10)) + 8|0);
  43107. $139 = HEAP32[$138>>2]|0;
  43108. $140 = ((($10)) + 12|0);
  43109. $141 = HEAP32[$140>>2]|0;
  43110. $142 = $136 << 1;
  43111. $143 = (21220 + ($142<<2)|0);
  43112. $144 = ($139|0)==($143|0);
  43113. if (!($144)) {
  43114. $145 = HEAP32[(21196)>>2]|0;
  43115. $146 = ($139>>>0)<($145>>>0);
  43116. if ($146) {
  43117. _abort();
  43118. // unreachable;
  43119. }
  43120. $147 = ((($139)) + 12|0);
  43121. $148 = HEAP32[$147>>2]|0;
  43122. $149 = ($148|0)==($10|0);
  43123. if (!($149)) {
  43124. _abort();
  43125. // unreachable;
  43126. }
  43127. }
  43128. $150 = ($141|0)==($139|0);
  43129. if ($150) {
  43130. $151 = 1 << $136;
  43131. $152 = $151 ^ -1;
  43132. $153 = HEAP32[5295]|0;
  43133. $154 = $153 & $152;
  43134. HEAP32[5295] = $154;
  43135. break;
  43136. }
  43137. $155 = ($141|0)==($143|0);
  43138. if ($155) {
  43139. $$pre442 = ((($141)) + 8|0);
  43140. $$pre$phi443Z2D = $$pre442;
  43141. } else {
  43142. $156 = HEAP32[(21196)>>2]|0;
  43143. $157 = ($141>>>0)<($156>>>0);
  43144. if ($157) {
  43145. _abort();
  43146. // unreachable;
  43147. }
  43148. $158 = ((($141)) + 8|0);
  43149. $159 = HEAP32[$158>>2]|0;
  43150. $160 = ($159|0)==($10|0);
  43151. if ($160) {
  43152. $$pre$phi443Z2D = $158;
  43153. } else {
  43154. _abort();
  43155. // unreachable;
  43156. }
  43157. }
  43158. $161 = ((($139)) + 12|0);
  43159. HEAP32[$161>>2] = $141;
  43160. HEAP32[$$pre$phi443Z2D>>2] = $139;
  43161. } else {
  43162. $162 = ((($10)) + 24|0);
  43163. $163 = HEAP32[$162>>2]|0;
  43164. $164 = ((($10)) + 12|0);
  43165. $165 = HEAP32[$164>>2]|0;
  43166. $166 = ($165|0)==($10|0);
  43167. do {
  43168. if ($166) {
  43169. $177 = ((($10)) + 16|0);
  43170. $178 = ((($177)) + 4|0);
  43171. $179 = HEAP32[$178>>2]|0;
  43172. $180 = ($179|0)==(0|0);
  43173. if ($180) {
  43174. $181 = HEAP32[$177>>2]|0;
  43175. $182 = ($181|0)==(0|0);
  43176. if ($182) {
  43177. $$3400 = 0;
  43178. break;
  43179. } else {
  43180. $$1398 = $181;$$1402 = $177;
  43181. }
  43182. } else {
  43183. $$1398 = $179;$$1402 = $178;
  43184. }
  43185. while(1) {
  43186. $183 = ((($$1398)) + 20|0);
  43187. $184 = HEAP32[$183>>2]|0;
  43188. $185 = ($184|0)==(0|0);
  43189. if (!($185)) {
  43190. $$1398 = $184;$$1402 = $183;
  43191. continue;
  43192. }
  43193. $186 = ((($$1398)) + 16|0);
  43194. $187 = HEAP32[$186>>2]|0;
  43195. $188 = ($187|0)==(0|0);
  43196. if ($188) {
  43197. break;
  43198. } else {
  43199. $$1398 = $187;$$1402 = $186;
  43200. }
  43201. }
  43202. $189 = HEAP32[(21196)>>2]|0;
  43203. $190 = ($$1402>>>0)<($189>>>0);
  43204. if ($190) {
  43205. _abort();
  43206. // unreachable;
  43207. } else {
  43208. HEAP32[$$1402>>2] = 0;
  43209. $$3400 = $$1398;
  43210. break;
  43211. }
  43212. } else {
  43213. $167 = ((($10)) + 8|0);
  43214. $168 = HEAP32[$167>>2]|0;
  43215. $169 = HEAP32[(21196)>>2]|0;
  43216. $170 = ($168>>>0)<($169>>>0);
  43217. if ($170) {
  43218. _abort();
  43219. // unreachable;
  43220. }
  43221. $171 = ((($168)) + 12|0);
  43222. $172 = HEAP32[$171>>2]|0;
  43223. $173 = ($172|0)==($10|0);
  43224. if (!($173)) {
  43225. _abort();
  43226. // unreachable;
  43227. }
  43228. $174 = ((($165)) + 8|0);
  43229. $175 = HEAP32[$174>>2]|0;
  43230. $176 = ($175|0)==($10|0);
  43231. if ($176) {
  43232. HEAP32[$171>>2] = $165;
  43233. HEAP32[$174>>2] = $168;
  43234. $$3400 = $165;
  43235. break;
  43236. } else {
  43237. _abort();
  43238. // unreachable;
  43239. }
  43240. }
  43241. } while(0);
  43242. $191 = ($163|0)==(0|0);
  43243. if (!($191)) {
  43244. $192 = ((($10)) + 28|0);
  43245. $193 = HEAP32[$192>>2]|0;
  43246. $194 = (21484 + ($193<<2)|0);
  43247. $195 = HEAP32[$194>>2]|0;
  43248. $196 = ($10|0)==($195|0);
  43249. do {
  43250. if ($196) {
  43251. HEAP32[$194>>2] = $$3400;
  43252. $cond422 = ($$3400|0)==(0|0);
  43253. if ($cond422) {
  43254. $197 = 1 << $193;
  43255. $198 = $197 ^ -1;
  43256. $199 = HEAP32[(21184)>>2]|0;
  43257. $200 = $199 & $198;
  43258. HEAP32[(21184)>>2] = $200;
  43259. break L108;
  43260. }
  43261. } else {
  43262. $201 = HEAP32[(21196)>>2]|0;
  43263. $202 = ($163>>>0)<($201>>>0);
  43264. if ($202) {
  43265. _abort();
  43266. // unreachable;
  43267. } else {
  43268. $203 = ((($163)) + 16|0);
  43269. $204 = HEAP32[$203>>2]|0;
  43270. $not$ = ($204|0)!=($10|0);
  43271. $$sink5 = $not$&1;
  43272. $205 = (((($163)) + 16|0) + ($$sink5<<2)|0);
  43273. HEAP32[$205>>2] = $$3400;
  43274. $206 = ($$3400|0)==(0|0);
  43275. if ($206) {
  43276. break L108;
  43277. } else {
  43278. break;
  43279. }
  43280. }
  43281. }
  43282. } while(0);
  43283. $207 = HEAP32[(21196)>>2]|0;
  43284. $208 = ($$3400>>>0)<($207>>>0);
  43285. if ($208) {
  43286. _abort();
  43287. // unreachable;
  43288. }
  43289. $209 = ((($$3400)) + 24|0);
  43290. HEAP32[$209>>2] = $163;
  43291. $210 = ((($10)) + 16|0);
  43292. $211 = HEAP32[$210>>2]|0;
  43293. $212 = ($211|0)==(0|0);
  43294. do {
  43295. if (!($212)) {
  43296. $213 = ($211>>>0)<($207>>>0);
  43297. if ($213) {
  43298. _abort();
  43299. // unreachable;
  43300. } else {
  43301. $214 = ((($$3400)) + 16|0);
  43302. HEAP32[$214>>2] = $211;
  43303. $215 = ((($211)) + 24|0);
  43304. HEAP32[$215>>2] = $$3400;
  43305. break;
  43306. }
  43307. }
  43308. } while(0);
  43309. $216 = ((($210)) + 4|0);
  43310. $217 = HEAP32[$216>>2]|0;
  43311. $218 = ($217|0)==(0|0);
  43312. if (!($218)) {
  43313. $219 = HEAP32[(21196)>>2]|0;
  43314. $220 = ($217>>>0)<($219>>>0);
  43315. if ($220) {
  43316. _abort();
  43317. // unreachable;
  43318. } else {
  43319. $221 = ((($$3400)) + 20|0);
  43320. HEAP32[$221>>2] = $217;
  43321. $222 = ((($217)) + 24|0);
  43322. HEAP32[$222>>2] = $$3400;
  43323. break;
  43324. }
  43325. }
  43326. }
  43327. }
  43328. } while(0);
  43329. $223 = $135 | 1;
  43330. $224 = ((($$1)) + 4|0);
  43331. HEAP32[$224>>2] = $223;
  43332. $225 = (($113) + ($135)|0);
  43333. HEAP32[$225>>2] = $135;
  43334. $226 = HEAP32[(21200)>>2]|0;
  43335. $227 = ($$1|0)==($226|0);
  43336. if ($227) {
  43337. HEAP32[(21188)>>2] = $135;
  43338. return;
  43339. } else {
  43340. $$2 = $135;
  43341. }
  43342. } else {
  43343. $228 = $115 & -2;
  43344. HEAP32[$114>>2] = $228;
  43345. $229 = $$1382 | 1;
  43346. $230 = ((($$1)) + 4|0);
  43347. HEAP32[$230>>2] = $229;
  43348. $231 = (($113) + ($$1382)|0);
  43349. HEAP32[$231>>2] = $$1382;
  43350. $$2 = $$1382;
  43351. }
  43352. $232 = $$2 >>> 3;
  43353. $233 = ($$2>>>0)<(256);
  43354. if ($233) {
  43355. $234 = $232 << 1;
  43356. $235 = (21220 + ($234<<2)|0);
  43357. $236 = HEAP32[5295]|0;
  43358. $237 = 1 << $232;
  43359. $238 = $236 & $237;
  43360. $239 = ($238|0)==(0);
  43361. if ($239) {
  43362. $240 = $236 | $237;
  43363. HEAP32[5295] = $240;
  43364. $$pre = ((($235)) + 8|0);
  43365. $$0403 = $235;$$pre$phiZ2D = $$pre;
  43366. } else {
  43367. $241 = ((($235)) + 8|0);
  43368. $242 = HEAP32[$241>>2]|0;
  43369. $243 = HEAP32[(21196)>>2]|0;
  43370. $244 = ($242>>>0)<($243>>>0);
  43371. if ($244) {
  43372. _abort();
  43373. // unreachable;
  43374. } else {
  43375. $$0403 = $242;$$pre$phiZ2D = $241;
  43376. }
  43377. }
  43378. HEAP32[$$pre$phiZ2D>>2] = $$1;
  43379. $245 = ((($$0403)) + 12|0);
  43380. HEAP32[$245>>2] = $$1;
  43381. $246 = ((($$1)) + 8|0);
  43382. HEAP32[$246>>2] = $$0403;
  43383. $247 = ((($$1)) + 12|0);
  43384. HEAP32[$247>>2] = $235;
  43385. return;
  43386. }
  43387. $248 = $$2 >>> 8;
  43388. $249 = ($248|0)==(0);
  43389. if ($249) {
  43390. $$0396 = 0;
  43391. } else {
  43392. $250 = ($$2>>>0)>(16777215);
  43393. if ($250) {
  43394. $$0396 = 31;
  43395. } else {
  43396. $251 = (($248) + 1048320)|0;
  43397. $252 = $251 >>> 16;
  43398. $253 = $252 & 8;
  43399. $254 = $248 << $253;
  43400. $255 = (($254) + 520192)|0;
  43401. $256 = $255 >>> 16;
  43402. $257 = $256 & 4;
  43403. $258 = $257 | $253;
  43404. $259 = $254 << $257;
  43405. $260 = (($259) + 245760)|0;
  43406. $261 = $260 >>> 16;
  43407. $262 = $261 & 2;
  43408. $263 = $258 | $262;
  43409. $264 = (14 - ($263))|0;
  43410. $265 = $259 << $262;
  43411. $266 = $265 >>> 15;
  43412. $267 = (($264) + ($266))|0;
  43413. $268 = $267 << 1;
  43414. $269 = (($267) + 7)|0;
  43415. $270 = $$2 >>> $269;
  43416. $271 = $270 & 1;
  43417. $272 = $271 | $268;
  43418. $$0396 = $272;
  43419. }
  43420. }
  43421. $273 = (21484 + ($$0396<<2)|0);
  43422. $274 = ((($$1)) + 28|0);
  43423. HEAP32[$274>>2] = $$0396;
  43424. $275 = ((($$1)) + 16|0);
  43425. $276 = ((($$1)) + 20|0);
  43426. HEAP32[$276>>2] = 0;
  43427. HEAP32[$275>>2] = 0;
  43428. $277 = HEAP32[(21184)>>2]|0;
  43429. $278 = 1 << $$0396;
  43430. $279 = $277 & $278;
  43431. $280 = ($279|0)==(0);
  43432. do {
  43433. if ($280) {
  43434. $281 = $277 | $278;
  43435. HEAP32[(21184)>>2] = $281;
  43436. HEAP32[$273>>2] = $$1;
  43437. $282 = ((($$1)) + 24|0);
  43438. HEAP32[$282>>2] = $273;
  43439. $283 = ((($$1)) + 12|0);
  43440. HEAP32[$283>>2] = $$1;
  43441. $284 = ((($$1)) + 8|0);
  43442. HEAP32[$284>>2] = $$1;
  43443. } else {
  43444. $285 = HEAP32[$273>>2]|0;
  43445. $286 = ($$0396|0)==(31);
  43446. $287 = $$0396 >>> 1;
  43447. $288 = (25 - ($287))|0;
  43448. $289 = $286 ? 0 : $288;
  43449. $290 = $$2 << $289;
  43450. $$0383 = $290;$$0384 = $285;
  43451. while(1) {
  43452. $291 = ((($$0384)) + 4|0);
  43453. $292 = HEAP32[$291>>2]|0;
  43454. $293 = $292 & -8;
  43455. $294 = ($293|0)==($$2|0);
  43456. if ($294) {
  43457. label = 124;
  43458. break;
  43459. }
  43460. $295 = $$0383 >>> 31;
  43461. $296 = (((($$0384)) + 16|0) + ($295<<2)|0);
  43462. $297 = $$0383 << 1;
  43463. $298 = HEAP32[$296>>2]|0;
  43464. $299 = ($298|0)==(0|0);
  43465. if ($299) {
  43466. label = 121;
  43467. break;
  43468. } else {
  43469. $$0383 = $297;$$0384 = $298;
  43470. }
  43471. }
  43472. if ((label|0) == 121) {
  43473. $300 = HEAP32[(21196)>>2]|0;
  43474. $301 = ($296>>>0)<($300>>>0);
  43475. if ($301) {
  43476. _abort();
  43477. // unreachable;
  43478. } else {
  43479. HEAP32[$296>>2] = $$1;
  43480. $302 = ((($$1)) + 24|0);
  43481. HEAP32[$302>>2] = $$0384;
  43482. $303 = ((($$1)) + 12|0);
  43483. HEAP32[$303>>2] = $$1;
  43484. $304 = ((($$1)) + 8|0);
  43485. HEAP32[$304>>2] = $$1;
  43486. break;
  43487. }
  43488. }
  43489. else if ((label|0) == 124) {
  43490. $305 = ((($$0384)) + 8|0);
  43491. $306 = HEAP32[$305>>2]|0;
  43492. $307 = HEAP32[(21196)>>2]|0;
  43493. $308 = ($306>>>0)>=($307>>>0);
  43494. $not$437 = ($$0384>>>0)>=($307>>>0);
  43495. $309 = $308 & $not$437;
  43496. if ($309) {
  43497. $310 = ((($306)) + 12|0);
  43498. HEAP32[$310>>2] = $$1;
  43499. HEAP32[$305>>2] = $$1;
  43500. $311 = ((($$1)) + 8|0);
  43501. HEAP32[$311>>2] = $306;
  43502. $312 = ((($$1)) + 12|0);
  43503. HEAP32[$312>>2] = $$0384;
  43504. $313 = ((($$1)) + 24|0);
  43505. HEAP32[$313>>2] = 0;
  43506. break;
  43507. } else {
  43508. _abort();
  43509. // unreachable;
  43510. }
  43511. }
  43512. }
  43513. } while(0);
  43514. $314 = HEAP32[(21212)>>2]|0;
  43515. $315 = (($314) + -1)|0;
  43516. HEAP32[(21212)>>2] = $315;
  43517. $316 = ($315|0)==(0);
  43518. if ($316) {
  43519. $$0212$in$i = (21636);
  43520. } else {
  43521. return;
  43522. }
  43523. while(1) {
  43524. $$0212$i = HEAP32[$$0212$in$i>>2]|0;
  43525. $317 = ($$0212$i|0)==(0|0);
  43526. $318 = ((($$0212$i)) + 8|0);
  43527. if ($317) {
  43528. break;
  43529. } else {
  43530. $$0212$in$i = $318;
  43531. }
  43532. }
  43533. HEAP32[(21212)>>2] = -1;
  43534. return;
  43535. }
  43536. function _realloc($0,$1) {
  43537. $0 = $0|0;
  43538. $1 = $1|0;
  43539. var $$1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $3 = 0, $4 = 0, $5 = 0;
  43540. var $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  43541. sp = STACKTOP;
  43542. $2 = ($0|0)==(0|0);
  43543. if ($2) {
  43544. $3 = (_malloc($1)|0);
  43545. $$1 = $3;
  43546. return ($$1|0);
  43547. }
  43548. $4 = ($1>>>0)>(4294967231);
  43549. if ($4) {
  43550. $5 = (___errno_location()|0);
  43551. HEAP32[$5>>2] = 12;
  43552. $$1 = 0;
  43553. return ($$1|0);
  43554. }
  43555. $6 = ($1>>>0)<(11);
  43556. $7 = (($1) + 11)|0;
  43557. $8 = $7 & -8;
  43558. $9 = $6 ? 16 : $8;
  43559. $10 = ((($0)) + -8|0);
  43560. $11 = (_try_realloc_chunk($10,$9)|0);
  43561. $12 = ($11|0)==(0|0);
  43562. if (!($12)) {
  43563. $13 = ((($11)) + 8|0);
  43564. $$1 = $13;
  43565. return ($$1|0);
  43566. }
  43567. $14 = (_malloc($1)|0);
  43568. $15 = ($14|0)==(0|0);
  43569. if ($15) {
  43570. $$1 = 0;
  43571. return ($$1|0);
  43572. }
  43573. $16 = ((($0)) + -4|0);
  43574. $17 = HEAP32[$16>>2]|0;
  43575. $18 = $17 & -8;
  43576. $19 = $17 & 3;
  43577. $20 = ($19|0)==(0);
  43578. $21 = $20 ? 8 : 4;
  43579. $22 = (($18) - ($21))|0;
  43580. $23 = ($22>>>0)<($1>>>0);
  43581. $24 = $23 ? $22 : $1;
  43582. _memcpy(($14|0),($0|0),($24|0))|0;
  43583. _free($0);
  43584. $$1 = $14;
  43585. return ($$1|0);
  43586. }
  43587. function _try_realloc_chunk($0,$1) {
  43588. $0 = $0|0;
  43589. $1 = $1|0;
  43590. var $$1272 = 0, $$1275 = 0, $$2 = 0, $$3 = 0, $$pre = 0, $$pre$phiZ2D = 0, $$sink1 = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0;
  43591. var $111 = 0, $112 = 0, $113 = 0, $114 = 0, $115 = 0, $116 = 0, $117 = 0, $118 = 0, $119 = 0, $12 = 0, $120 = 0, $121 = 0, $122 = 0, $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 0, $128 = 0, $129 = 0;
  43592. var $13 = 0, $130 = 0, $131 = 0, $132 = 0, $133 = 0, $134 = 0, $135 = 0, $136 = 0, $137 = 0, $138 = 0, $139 = 0, $14 = 0, $140 = 0, $141 = 0, $142 = 0, $143 = 0, $144 = 0, $145 = 0, $146 = 0, $147 = 0;
  43593. var $148 = 0, $149 = 0, $15 = 0, $150 = 0, $151 = 0, $152 = 0, $153 = 0, $154 = 0, $155 = 0, $156 = 0, $157 = 0, $158 = 0, $159 = 0, $16 = 0, $160 = 0, $161 = 0, $162 = 0, $163 = 0, $164 = 0, $165 = 0;
  43594. var $166 = 0, $167 = 0, $168 = 0, $169 = 0, $17 = 0, $170 = 0, $171 = 0, $172 = 0, $173 = 0, $174 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0;
  43595. var $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0;
  43596. var $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0;
  43597. var $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0;
  43598. var $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0, $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0;
  43599. var $cond = 0, $not$ = 0, $notlhs = 0, $notrhs = 0, $or$cond$not = 0, $or$cond3 = 0, $storemerge = 0, $storemerge1 = 0, label = 0, sp = 0;
  43600. sp = STACKTOP;
  43601. $2 = ((($0)) + 4|0);
  43602. $3 = HEAP32[$2>>2]|0;
  43603. $4 = $3 & -8;
  43604. $5 = (($0) + ($4)|0);
  43605. $6 = HEAP32[(21196)>>2]|0;
  43606. $7 = $3 & 3;
  43607. $notlhs = ($0>>>0)>=($6>>>0);
  43608. $notrhs = ($7|0)!=(1);
  43609. $or$cond$not = $notrhs & $notlhs;
  43610. $8 = ($0>>>0)<($5>>>0);
  43611. $or$cond3 = $or$cond$not & $8;
  43612. if (!($or$cond3)) {
  43613. _abort();
  43614. // unreachable;
  43615. }
  43616. $9 = ((($5)) + 4|0);
  43617. $10 = HEAP32[$9>>2]|0;
  43618. $11 = $10 & 1;
  43619. $12 = ($11|0)==(0);
  43620. if ($12) {
  43621. _abort();
  43622. // unreachable;
  43623. }
  43624. $13 = ($7|0)==(0);
  43625. if ($13) {
  43626. $14 = ($1>>>0)<(256);
  43627. if ($14) {
  43628. $$2 = 0;
  43629. return ($$2|0);
  43630. }
  43631. $15 = (($1) + 4)|0;
  43632. $16 = ($4>>>0)<($15>>>0);
  43633. if (!($16)) {
  43634. $17 = (($4) - ($1))|0;
  43635. $18 = HEAP32[(21660)>>2]|0;
  43636. $19 = $18 << 1;
  43637. $20 = ($17>>>0)>($19>>>0);
  43638. if (!($20)) {
  43639. $$2 = $0;
  43640. return ($$2|0);
  43641. }
  43642. }
  43643. $$2 = 0;
  43644. return ($$2|0);
  43645. }
  43646. $21 = ($4>>>0)<($1>>>0);
  43647. if (!($21)) {
  43648. $22 = (($4) - ($1))|0;
  43649. $23 = ($22>>>0)>(15);
  43650. if (!($23)) {
  43651. $$2 = $0;
  43652. return ($$2|0);
  43653. }
  43654. $24 = (($0) + ($1)|0);
  43655. $25 = $3 & 1;
  43656. $26 = $25 | $1;
  43657. $27 = $26 | 2;
  43658. HEAP32[$2>>2] = $27;
  43659. $28 = ((($24)) + 4|0);
  43660. $29 = $22 | 3;
  43661. HEAP32[$28>>2] = $29;
  43662. $30 = (($24) + ($22)|0);
  43663. $31 = ((($30)) + 4|0);
  43664. $32 = HEAP32[$31>>2]|0;
  43665. $33 = $32 | 1;
  43666. HEAP32[$31>>2] = $33;
  43667. _dispose_chunk($24,$22);
  43668. $$2 = $0;
  43669. return ($$2|0);
  43670. }
  43671. $34 = HEAP32[(21204)>>2]|0;
  43672. $35 = ($5|0)==($34|0);
  43673. if ($35) {
  43674. $36 = HEAP32[(21192)>>2]|0;
  43675. $37 = (($36) + ($4))|0;
  43676. $38 = ($37>>>0)>($1>>>0);
  43677. $39 = (($37) - ($1))|0;
  43678. $40 = (($0) + ($1)|0);
  43679. if (!($38)) {
  43680. $$2 = 0;
  43681. return ($$2|0);
  43682. }
  43683. $41 = $39 | 1;
  43684. $42 = ((($40)) + 4|0);
  43685. $43 = $3 & 1;
  43686. $44 = $43 | $1;
  43687. $45 = $44 | 2;
  43688. HEAP32[$2>>2] = $45;
  43689. HEAP32[$42>>2] = $41;
  43690. HEAP32[(21204)>>2] = $40;
  43691. HEAP32[(21192)>>2] = $39;
  43692. $$2 = $0;
  43693. return ($$2|0);
  43694. }
  43695. $46 = HEAP32[(21200)>>2]|0;
  43696. $47 = ($5|0)==($46|0);
  43697. if ($47) {
  43698. $48 = HEAP32[(21188)>>2]|0;
  43699. $49 = (($48) + ($4))|0;
  43700. $50 = ($49>>>0)<($1>>>0);
  43701. if ($50) {
  43702. $$2 = 0;
  43703. return ($$2|0);
  43704. }
  43705. $51 = (($49) - ($1))|0;
  43706. $52 = ($51>>>0)>(15);
  43707. $53 = $3 & 1;
  43708. if ($52) {
  43709. $54 = (($0) + ($1)|0);
  43710. $55 = (($54) + ($51)|0);
  43711. $56 = $53 | $1;
  43712. $57 = $56 | 2;
  43713. HEAP32[$2>>2] = $57;
  43714. $58 = ((($54)) + 4|0);
  43715. $59 = $51 | 1;
  43716. HEAP32[$58>>2] = $59;
  43717. HEAP32[$55>>2] = $51;
  43718. $60 = ((($55)) + 4|0);
  43719. $61 = HEAP32[$60>>2]|0;
  43720. $62 = $61 & -2;
  43721. HEAP32[$60>>2] = $62;
  43722. $storemerge = $54;$storemerge1 = $51;
  43723. } else {
  43724. $63 = $53 | $49;
  43725. $64 = $63 | 2;
  43726. HEAP32[$2>>2] = $64;
  43727. $65 = (($0) + ($49)|0);
  43728. $66 = ((($65)) + 4|0);
  43729. $67 = HEAP32[$66>>2]|0;
  43730. $68 = $67 | 1;
  43731. HEAP32[$66>>2] = $68;
  43732. $storemerge = 0;$storemerge1 = 0;
  43733. }
  43734. HEAP32[(21188)>>2] = $storemerge1;
  43735. HEAP32[(21200)>>2] = $storemerge;
  43736. $$2 = $0;
  43737. return ($$2|0);
  43738. }
  43739. $69 = $10 & 2;
  43740. $70 = ($69|0)==(0);
  43741. if (!($70)) {
  43742. $$2 = 0;
  43743. return ($$2|0);
  43744. }
  43745. $71 = $10 & -8;
  43746. $72 = (($71) + ($4))|0;
  43747. $73 = ($72>>>0)<($1>>>0);
  43748. if ($73) {
  43749. $$2 = 0;
  43750. return ($$2|0);
  43751. }
  43752. $74 = (($72) - ($1))|0;
  43753. $75 = $10 >>> 3;
  43754. $76 = ($10>>>0)<(256);
  43755. L49: do {
  43756. if ($76) {
  43757. $77 = ((($5)) + 8|0);
  43758. $78 = HEAP32[$77>>2]|0;
  43759. $79 = ((($5)) + 12|0);
  43760. $80 = HEAP32[$79>>2]|0;
  43761. $81 = $75 << 1;
  43762. $82 = (21220 + ($81<<2)|0);
  43763. $83 = ($78|0)==($82|0);
  43764. if (!($83)) {
  43765. $84 = ($78>>>0)<($6>>>0);
  43766. if ($84) {
  43767. _abort();
  43768. // unreachable;
  43769. }
  43770. $85 = ((($78)) + 12|0);
  43771. $86 = HEAP32[$85>>2]|0;
  43772. $87 = ($86|0)==($5|0);
  43773. if (!($87)) {
  43774. _abort();
  43775. // unreachable;
  43776. }
  43777. }
  43778. $88 = ($80|0)==($78|0);
  43779. if ($88) {
  43780. $89 = 1 << $75;
  43781. $90 = $89 ^ -1;
  43782. $91 = HEAP32[5295]|0;
  43783. $92 = $91 & $90;
  43784. HEAP32[5295] = $92;
  43785. break;
  43786. }
  43787. $93 = ($80|0)==($82|0);
  43788. if ($93) {
  43789. $$pre = ((($80)) + 8|0);
  43790. $$pre$phiZ2D = $$pre;
  43791. } else {
  43792. $94 = ($80>>>0)<($6>>>0);
  43793. if ($94) {
  43794. _abort();
  43795. // unreachable;
  43796. }
  43797. $95 = ((($80)) + 8|0);
  43798. $96 = HEAP32[$95>>2]|0;
  43799. $97 = ($96|0)==($5|0);
  43800. if ($97) {
  43801. $$pre$phiZ2D = $95;
  43802. } else {
  43803. _abort();
  43804. // unreachable;
  43805. }
  43806. }
  43807. $98 = ((($78)) + 12|0);
  43808. HEAP32[$98>>2] = $80;
  43809. HEAP32[$$pre$phiZ2D>>2] = $78;
  43810. } else {
  43811. $99 = ((($5)) + 24|0);
  43812. $100 = HEAP32[$99>>2]|0;
  43813. $101 = ((($5)) + 12|0);
  43814. $102 = HEAP32[$101>>2]|0;
  43815. $103 = ($102|0)==($5|0);
  43816. do {
  43817. if ($103) {
  43818. $113 = ((($5)) + 16|0);
  43819. $114 = ((($113)) + 4|0);
  43820. $115 = HEAP32[$114>>2]|0;
  43821. $116 = ($115|0)==(0|0);
  43822. if ($116) {
  43823. $117 = HEAP32[$113>>2]|0;
  43824. $118 = ($117|0)==(0|0);
  43825. if ($118) {
  43826. $$3 = 0;
  43827. break;
  43828. } else {
  43829. $$1272 = $117;$$1275 = $113;
  43830. }
  43831. } else {
  43832. $$1272 = $115;$$1275 = $114;
  43833. }
  43834. while(1) {
  43835. $119 = ((($$1272)) + 20|0);
  43836. $120 = HEAP32[$119>>2]|0;
  43837. $121 = ($120|0)==(0|0);
  43838. if (!($121)) {
  43839. $$1272 = $120;$$1275 = $119;
  43840. continue;
  43841. }
  43842. $122 = ((($$1272)) + 16|0);
  43843. $123 = HEAP32[$122>>2]|0;
  43844. $124 = ($123|0)==(0|0);
  43845. if ($124) {
  43846. break;
  43847. } else {
  43848. $$1272 = $123;$$1275 = $122;
  43849. }
  43850. }
  43851. $125 = ($$1275>>>0)<($6>>>0);
  43852. if ($125) {
  43853. _abort();
  43854. // unreachable;
  43855. } else {
  43856. HEAP32[$$1275>>2] = 0;
  43857. $$3 = $$1272;
  43858. break;
  43859. }
  43860. } else {
  43861. $104 = ((($5)) + 8|0);
  43862. $105 = HEAP32[$104>>2]|0;
  43863. $106 = ($105>>>0)<($6>>>0);
  43864. if ($106) {
  43865. _abort();
  43866. // unreachable;
  43867. }
  43868. $107 = ((($105)) + 12|0);
  43869. $108 = HEAP32[$107>>2]|0;
  43870. $109 = ($108|0)==($5|0);
  43871. if (!($109)) {
  43872. _abort();
  43873. // unreachable;
  43874. }
  43875. $110 = ((($102)) + 8|0);
  43876. $111 = HEAP32[$110>>2]|0;
  43877. $112 = ($111|0)==($5|0);
  43878. if ($112) {
  43879. HEAP32[$107>>2] = $102;
  43880. HEAP32[$110>>2] = $105;
  43881. $$3 = $102;
  43882. break;
  43883. } else {
  43884. _abort();
  43885. // unreachable;
  43886. }
  43887. }
  43888. } while(0);
  43889. $126 = ($100|0)==(0|0);
  43890. if (!($126)) {
  43891. $127 = ((($5)) + 28|0);
  43892. $128 = HEAP32[$127>>2]|0;
  43893. $129 = (21484 + ($128<<2)|0);
  43894. $130 = HEAP32[$129>>2]|0;
  43895. $131 = ($5|0)==($130|0);
  43896. do {
  43897. if ($131) {
  43898. HEAP32[$129>>2] = $$3;
  43899. $cond = ($$3|0)==(0|0);
  43900. if ($cond) {
  43901. $132 = 1 << $128;
  43902. $133 = $132 ^ -1;
  43903. $134 = HEAP32[(21184)>>2]|0;
  43904. $135 = $134 & $133;
  43905. HEAP32[(21184)>>2] = $135;
  43906. break L49;
  43907. }
  43908. } else {
  43909. $136 = HEAP32[(21196)>>2]|0;
  43910. $137 = ($100>>>0)<($136>>>0);
  43911. if ($137) {
  43912. _abort();
  43913. // unreachable;
  43914. } else {
  43915. $138 = ((($100)) + 16|0);
  43916. $139 = HEAP32[$138>>2]|0;
  43917. $not$ = ($139|0)!=($5|0);
  43918. $$sink1 = $not$&1;
  43919. $140 = (((($100)) + 16|0) + ($$sink1<<2)|0);
  43920. HEAP32[$140>>2] = $$3;
  43921. $141 = ($$3|0)==(0|0);
  43922. if ($141) {
  43923. break L49;
  43924. } else {
  43925. break;
  43926. }
  43927. }
  43928. }
  43929. } while(0);
  43930. $142 = HEAP32[(21196)>>2]|0;
  43931. $143 = ($$3>>>0)<($142>>>0);
  43932. if ($143) {
  43933. _abort();
  43934. // unreachable;
  43935. }
  43936. $144 = ((($$3)) + 24|0);
  43937. HEAP32[$144>>2] = $100;
  43938. $145 = ((($5)) + 16|0);
  43939. $146 = HEAP32[$145>>2]|0;
  43940. $147 = ($146|0)==(0|0);
  43941. do {
  43942. if (!($147)) {
  43943. $148 = ($146>>>0)<($142>>>0);
  43944. if ($148) {
  43945. _abort();
  43946. // unreachable;
  43947. } else {
  43948. $149 = ((($$3)) + 16|0);
  43949. HEAP32[$149>>2] = $146;
  43950. $150 = ((($146)) + 24|0);
  43951. HEAP32[$150>>2] = $$3;
  43952. break;
  43953. }
  43954. }
  43955. } while(0);
  43956. $151 = ((($145)) + 4|0);
  43957. $152 = HEAP32[$151>>2]|0;
  43958. $153 = ($152|0)==(0|0);
  43959. if (!($153)) {
  43960. $154 = HEAP32[(21196)>>2]|0;
  43961. $155 = ($152>>>0)<($154>>>0);
  43962. if ($155) {
  43963. _abort();
  43964. // unreachable;
  43965. } else {
  43966. $156 = ((($$3)) + 20|0);
  43967. HEAP32[$156>>2] = $152;
  43968. $157 = ((($152)) + 24|0);
  43969. HEAP32[$157>>2] = $$3;
  43970. break;
  43971. }
  43972. }
  43973. }
  43974. }
  43975. } while(0);
  43976. $158 = ($74>>>0)<(16);
  43977. $159 = $3 & 1;
  43978. if ($158) {
  43979. $160 = $72 | $159;
  43980. $161 = $160 | 2;
  43981. HEAP32[$2>>2] = $161;
  43982. $162 = (($0) + ($72)|0);
  43983. $163 = ((($162)) + 4|0);
  43984. $164 = HEAP32[$163>>2]|0;
  43985. $165 = $164 | 1;
  43986. HEAP32[$163>>2] = $165;
  43987. $$2 = $0;
  43988. return ($$2|0);
  43989. } else {
  43990. $166 = (($0) + ($1)|0);
  43991. $167 = $159 | $1;
  43992. $168 = $167 | 2;
  43993. HEAP32[$2>>2] = $168;
  43994. $169 = ((($166)) + 4|0);
  43995. $170 = $74 | 3;
  43996. HEAP32[$169>>2] = $170;
  43997. $171 = (($166) + ($74)|0);
  43998. $172 = ((($171)) + 4|0);
  43999. $173 = HEAP32[$172>>2]|0;
  44000. $174 = $173 | 1;
  44001. HEAP32[$172>>2] = $174;
  44002. _dispose_chunk($166,$74);
  44003. $$2 = $0;
  44004. return ($$2|0);
  44005. }
  44006. return (0)|0;
  44007. }
  44008. function _dispose_chunk($0,$1) {
  44009. $0 = $0|0;
  44010. $1 = $1|0;
  44011. var $$0419 = 0, $$0420 = 0, $$0431 = 0, $$0438 = 0, $$1 = 0, $$1418 = 0, $$1426 = 0, $$1429 = 0, $$1433 = 0, $$1437 = 0, $$2 = 0, $$3 = 0, $$3435 = 0, $$pre = 0, $$pre$phi24Z2D = 0, $$pre$phi26Z2D = 0, $$pre$phiZ2D = 0, $$pre23 = 0, $$pre25 = 0, $$sink2 = 0;
  44012. var $$sink4 = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0, $114 = 0, $115 = 0, $116 = 0;
  44013. var $117 = 0, $118 = 0, $119 = 0, $12 = 0, $120 = 0, $121 = 0, $122 = 0, $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 0, $128 = 0, $129 = 0, $13 = 0, $130 = 0, $131 = 0, $132 = 0, $133 = 0, $134 = 0;
  44014. var $135 = 0, $136 = 0, $137 = 0, $138 = 0, $139 = 0, $14 = 0, $140 = 0, $141 = 0, $142 = 0, $143 = 0, $144 = 0, $145 = 0, $146 = 0, $147 = 0, $148 = 0, $149 = 0, $15 = 0, $150 = 0, $151 = 0, $152 = 0;
  44015. var $153 = 0, $154 = 0, $155 = 0, $156 = 0, $157 = 0, $158 = 0, $159 = 0, $16 = 0, $160 = 0, $161 = 0, $162 = 0, $163 = 0, $164 = 0, $165 = 0, $166 = 0, $167 = 0, $168 = 0, $169 = 0, $17 = 0, $170 = 0;
  44016. var $171 = 0, $172 = 0, $173 = 0, $174 = 0, $175 = 0, $176 = 0, $177 = 0, $178 = 0, $179 = 0, $18 = 0, $180 = 0, $181 = 0, $182 = 0, $183 = 0, $184 = 0, $185 = 0, $186 = 0, $187 = 0, $188 = 0, $189 = 0;
  44017. var $19 = 0, $190 = 0, $191 = 0, $192 = 0, $193 = 0, $194 = 0, $195 = 0, $196 = 0, $197 = 0, $198 = 0, $199 = 0, $2 = 0, $20 = 0, $200 = 0, $201 = 0, $202 = 0, $203 = 0, $204 = 0, $205 = 0, $206 = 0;
  44018. var $207 = 0, $208 = 0, $209 = 0, $21 = 0, $210 = 0, $211 = 0, $212 = 0, $213 = 0, $214 = 0, $215 = 0, $216 = 0, $217 = 0, $218 = 0, $219 = 0, $22 = 0, $220 = 0, $221 = 0, $222 = 0, $223 = 0, $224 = 0;
  44019. var $225 = 0, $226 = 0, $227 = 0, $228 = 0, $229 = 0, $23 = 0, $230 = 0, $231 = 0, $232 = 0, $233 = 0, $234 = 0, $235 = 0, $236 = 0, $237 = 0, $238 = 0, $239 = 0, $24 = 0, $240 = 0, $241 = 0, $242 = 0;
  44020. var $243 = 0, $244 = 0, $245 = 0, $246 = 0, $247 = 0, $248 = 0, $249 = 0, $25 = 0, $250 = 0, $251 = 0, $252 = 0, $253 = 0, $254 = 0, $255 = 0, $256 = 0, $257 = 0, $258 = 0, $259 = 0, $26 = 0, $260 = 0;
  44021. var $261 = 0, $262 = 0, $263 = 0, $264 = 0, $265 = 0, $266 = 0, $267 = 0, $268 = 0, $269 = 0, $27 = 0, $270 = 0, $271 = 0, $272 = 0, $273 = 0, $274 = 0, $275 = 0, $276 = 0, $277 = 0, $278 = 0, $279 = 0;
  44022. var $28 = 0, $280 = 0, $281 = 0, $282 = 0, $283 = 0, $284 = 0, $285 = 0, $286 = 0, $287 = 0, $288 = 0, $289 = 0, $29 = 0, $290 = 0, $291 = 0, $292 = 0, $293 = 0, $294 = 0, $295 = 0, $296 = 0, $297 = 0;
  44023. var $298 = 0, $299 = 0, $3 = 0, $30 = 0, $300 = 0, $301 = 0, $302 = 0, $303 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0;
  44024. var $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0;
  44025. var $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0;
  44026. var $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0, $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0;
  44027. var $97 = 0, $98 = 0, $99 = 0, $cond = 0, $cond17 = 0, $not$ = 0, $not$1 = 0, $not$19 = 0, label = 0, sp = 0;
  44028. sp = STACKTOP;
  44029. $2 = (($0) + ($1)|0);
  44030. $3 = ((($0)) + 4|0);
  44031. $4 = HEAP32[$3>>2]|0;
  44032. $5 = $4 & 1;
  44033. $6 = ($5|0)==(0);
  44034. L1: do {
  44035. if ($6) {
  44036. $7 = HEAP32[$0>>2]|0;
  44037. $8 = $4 & 3;
  44038. $9 = ($8|0)==(0);
  44039. if ($9) {
  44040. return;
  44041. }
  44042. $10 = (0 - ($7))|0;
  44043. $11 = (($0) + ($10)|0);
  44044. $12 = (($7) + ($1))|0;
  44045. $13 = HEAP32[(21196)>>2]|0;
  44046. $14 = ($11>>>0)<($13>>>0);
  44047. if ($14) {
  44048. _abort();
  44049. // unreachable;
  44050. }
  44051. $15 = HEAP32[(21200)>>2]|0;
  44052. $16 = ($11|0)==($15|0);
  44053. if ($16) {
  44054. $100 = ((($2)) + 4|0);
  44055. $101 = HEAP32[$100>>2]|0;
  44056. $102 = $101 & 3;
  44057. $103 = ($102|0)==(3);
  44058. if (!($103)) {
  44059. $$1 = $11;$$1418 = $12;
  44060. break;
  44061. }
  44062. $104 = (($11) + ($12)|0);
  44063. $105 = ((($11)) + 4|0);
  44064. $106 = $12 | 1;
  44065. $107 = $101 & -2;
  44066. HEAP32[(21188)>>2] = $12;
  44067. HEAP32[$100>>2] = $107;
  44068. HEAP32[$105>>2] = $106;
  44069. HEAP32[$104>>2] = $12;
  44070. return;
  44071. }
  44072. $17 = $7 >>> 3;
  44073. $18 = ($7>>>0)<(256);
  44074. if ($18) {
  44075. $19 = ((($11)) + 8|0);
  44076. $20 = HEAP32[$19>>2]|0;
  44077. $21 = ((($11)) + 12|0);
  44078. $22 = HEAP32[$21>>2]|0;
  44079. $23 = $17 << 1;
  44080. $24 = (21220 + ($23<<2)|0);
  44081. $25 = ($20|0)==($24|0);
  44082. if (!($25)) {
  44083. $26 = ($20>>>0)<($13>>>0);
  44084. if ($26) {
  44085. _abort();
  44086. // unreachable;
  44087. }
  44088. $27 = ((($20)) + 12|0);
  44089. $28 = HEAP32[$27>>2]|0;
  44090. $29 = ($28|0)==($11|0);
  44091. if (!($29)) {
  44092. _abort();
  44093. // unreachable;
  44094. }
  44095. }
  44096. $30 = ($22|0)==($20|0);
  44097. if ($30) {
  44098. $31 = 1 << $17;
  44099. $32 = $31 ^ -1;
  44100. $33 = HEAP32[5295]|0;
  44101. $34 = $33 & $32;
  44102. HEAP32[5295] = $34;
  44103. $$1 = $11;$$1418 = $12;
  44104. break;
  44105. }
  44106. $35 = ($22|0)==($24|0);
  44107. if ($35) {
  44108. $$pre25 = ((($22)) + 8|0);
  44109. $$pre$phi26Z2D = $$pre25;
  44110. } else {
  44111. $36 = ($22>>>0)<($13>>>0);
  44112. if ($36) {
  44113. _abort();
  44114. // unreachable;
  44115. }
  44116. $37 = ((($22)) + 8|0);
  44117. $38 = HEAP32[$37>>2]|0;
  44118. $39 = ($38|0)==($11|0);
  44119. if ($39) {
  44120. $$pre$phi26Z2D = $37;
  44121. } else {
  44122. _abort();
  44123. // unreachable;
  44124. }
  44125. }
  44126. $40 = ((($20)) + 12|0);
  44127. HEAP32[$40>>2] = $22;
  44128. HEAP32[$$pre$phi26Z2D>>2] = $20;
  44129. $$1 = $11;$$1418 = $12;
  44130. break;
  44131. }
  44132. $41 = ((($11)) + 24|0);
  44133. $42 = HEAP32[$41>>2]|0;
  44134. $43 = ((($11)) + 12|0);
  44135. $44 = HEAP32[$43>>2]|0;
  44136. $45 = ($44|0)==($11|0);
  44137. do {
  44138. if ($45) {
  44139. $55 = ((($11)) + 16|0);
  44140. $56 = ((($55)) + 4|0);
  44141. $57 = HEAP32[$56>>2]|0;
  44142. $58 = ($57|0)==(0|0);
  44143. if ($58) {
  44144. $59 = HEAP32[$55>>2]|0;
  44145. $60 = ($59|0)==(0|0);
  44146. if ($60) {
  44147. $$3 = 0;
  44148. break;
  44149. } else {
  44150. $$1426 = $59;$$1429 = $55;
  44151. }
  44152. } else {
  44153. $$1426 = $57;$$1429 = $56;
  44154. }
  44155. while(1) {
  44156. $61 = ((($$1426)) + 20|0);
  44157. $62 = HEAP32[$61>>2]|0;
  44158. $63 = ($62|0)==(0|0);
  44159. if (!($63)) {
  44160. $$1426 = $62;$$1429 = $61;
  44161. continue;
  44162. }
  44163. $64 = ((($$1426)) + 16|0);
  44164. $65 = HEAP32[$64>>2]|0;
  44165. $66 = ($65|0)==(0|0);
  44166. if ($66) {
  44167. break;
  44168. } else {
  44169. $$1426 = $65;$$1429 = $64;
  44170. }
  44171. }
  44172. $67 = ($$1429>>>0)<($13>>>0);
  44173. if ($67) {
  44174. _abort();
  44175. // unreachable;
  44176. } else {
  44177. HEAP32[$$1429>>2] = 0;
  44178. $$3 = $$1426;
  44179. break;
  44180. }
  44181. } else {
  44182. $46 = ((($11)) + 8|0);
  44183. $47 = HEAP32[$46>>2]|0;
  44184. $48 = ($47>>>0)<($13>>>0);
  44185. if ($48) {
  44186. _abort();
  44187. // unreachable;
  44188. }
  44189. $49 = ((($47)) + 12|0);
  44190. $50 = HEAP32[$49>>2]|0;
  44191. $51 = ($50|0)==($11|0);
  44192. if (!($51)) {
  44193. _abort();
  44194. // unreachable;
  44195. }
  44196. $52 = ((($44)) + 8|0);
  44197. $53 = HEAP32[$52>>2]|0;
  44198. $54 = ($53|0)==($11|0);
  44199. if ($54) {
  44200. HEAP32[$49>>2] = $44;
  44201. HEAP32[$52>>2] = $47;
  44202. $$3 = $44;
  44203. break;
  44204. } else {
  44205. _abort();
  44206. // unreachable;
  44207. }
  44208. }
  44209. } while(0);
  44210. $68 = ($42|0)==(0|0);
  44211. if ($68) {
  44212. $$1 = $11;$$1418 = $12;
  44213. } else {
  44214. $69 = ((($11)) + 28|0);
  44215. $70 = HEAP32[$69>>2]|0;
  44216. $71 = (21484 + ($70<<2)|0);
  44217. $72 = HEAP32[$71>>2]|0;
  44218. $73 = ($11|0)==($72|0);
  44219. do {
  44220. if ($73) {
  44221. HEAP32[$71>>2] = $$3;
  44222. $cond = ($$3|0)==(0|0);
  44223. if ($cond) {
  44224. $74 = 1 << $70;
  44225. $75 = $74 ^ -1;
  44226. $76 = HEAP32[(21184)>>2]|0;
  44227. $77 = $76 & $75;
  44228. HEAP32[(21184)>>2] = $77;
  44229. $$1 = $11;$$1418 = $12;
  44230. break L1;
  44231. }
  44232. } else {
  44233. $78 = HEAP32[(21196)>>2]|0;
  44234. $79 = ($42>>>0)<($78>>>0);
  44235. if ($79) {
  44236. _abort();
  44237. // unreachable;
  44238. } else {
  44239. $80 = ((($42)) + 16|0);
  44240. $81 = HEAP32[$80>>2]|0;
  44241. $not$1 = ($81|0)!=($11|0);
  44242. $$sink2 = $not$1&1;
  44243. $82 = (((($42)) + 16|0) + ($$sink2<<2)|0);
  44244. HEAP32[$82>>2] = $$3;
  44245. $83 = ($$3|0)==(0|0);
  44246. if ($83) {
  44247. $$1 = $11;$$1418 = $12;
  44248. break L1;
  44249. } else {
  44250. break;
  44251. }
  44252. }
  44253. }
  44254. } while(0);
  44255. $84 = HEAP32[(21196)>>2]|0;
  44256. $85 = ($$3>>>0)<($84>>>0);
  44257. if ($85) {
  44258. _abort();
  44259. // unreachable;
  44260. }
  44261. $86 = ((($$3)) + 24|0);
  44262. HEAP32[$86>>2] = $42;
  44263. $87 = ((($11)) + 16|0);
  44264. $88 = HEAP32[$87>>2]|0;
  44265. $89 = ($88|0)==(0|0);
  44266. do {
  44267. if (!($89)) {
  44268. $90 = ($88>>>0)<($84>>>0);
  44269. if ($90) {
  44270. _abort();
  44271. // unreachable;
  44272. } else {
  44273. $91 = ((($$3)) + 16|0);
  44274. HEAP32[$91>>2] = $88;
  44275. $92 = ((($88)) + 24|0);
  44276. HEAP32[$92>>2] = $$3;
  44277. break;
  44278. }
  44279. }
  44280. } while(0);
  44281. $93 = ((($87)) + 4|0);
  44282. $94 = HEAP32[$93>>2]|0;
  44283. $95 = ($94|0)==(0|0);
  44284. if ($95) {
  44285. $$1 = $11;$$1418 = $12;
  44286. } else {
  44287. $96 = HEAP32[(21196)>>2]|0;
  44288. $97 = ($94>>>0)<($96>>>0);
  44289. if ($97) {
  44290. _abort();
  44291. // unreachable;
  44292. } else {
  44293. $98 = ((($$3)) + 20|0);
  44294. HEAP32[$98>>2] = $94;
  44295. $99 = ((($94)) + 24|0);
  44296. HEAP32[$99>>2] = $$3;
  44297. $$1 = $11;$$1418 = $12;
  44298. break;
  44299. }
  44300. }
  44301. }
  44302. } else {
  44303. $$1 = $0;$$1418 = $1;
  44304. }
  44305. } while(0);
  44306. $108 = HEAP32[(21196)>>2]|0;
  44307. $109 = ($2>>>0)<($108>>>0);
  44308. if ($109) {
  44309. _abort();
  44310. // unreachable;
  44311. }
  44312. $110 = ((($2)) + 4|0);
  44313. $111 = HEAP32[$110>>2]|0;
  44314. $112 = $111 & 2;
  44315. $113 = ($112|0)==(0);
  44316. if ($113) {
  44317. $114 = HEAP32[(21204)>>2]|0;
  44318. $115 = ($2|0)==($114|0);
  44319. $116 = HEAP32[(21200)>>2]|0;
  44320. if ($115) {
  44321. $117 = HEAP32[(21192)>>2]|0;
  44322. $118 = (($117) + ($$1418))|0;
  44323. HEAP32[(21192)>>2] = $118;
  44324. HEAP32[(21204)>>2] = $$1;
  44325. $119 = $118 | 1;
  44326. $120 = ((($$1)) + 4|0);
  44327. HEAP32[$120>>2] = $119;
  44328. $121 = ($$1|0)==($116|0);
  44329. if (!($121)) {
  44330. return;
  44331. }
  44332. HEAP32[(21200)>>2] = 0;
  44333. HEAP32[(21188)>>2] = 0;
  44334. return;
  44335. }
  44336. $122 = ($2|0)==($116|0);
  44337. if ($122) {
  44338. $123 = HEAP32[(21188)>>2]|0;
  44339. $124 = (($123) + ($$1418))|0;
  44340. HEAP32[(21188)>>2] = $124;
  44341. HEAP32[(21200)>>2] = $$1;
  44342. $125 = $124 | 1;
  44343. $126 = ((($$1)) + 4|0);
  44344. HEAP32[$126>>2] = $125;
  44345. $127 = (($$1) + ($124)|0);
  44346. HEAP32[$127>>2] = $124;
  44347. return;
  44348. }
  44349. $128 = $111 & -8;
  44350. $129 = (($128) + ($$1418))|0;
  44351. $130 = $111 >>> 3;
  44352. $131 = ($111>>>0)<(256);
  44353. L96: do {
  44354. if ($131) {
  44355. $132 = ((($2)) + 8|0);
  44356. $133 = HEAP32[$132>>2]|0;
  44357. $134 = ((($2)) + 12|0);
  44358. $135 = HEAP32[$134>>2]|0;
  44359. $136 = $130 << 1;
  44360. $137 = (21220 + ($136<<2)|0);
  44361. $138 = ($133|0)==($137|0);
  44362. if (!($138)) {
  44363. $139 = ($133>>>0)<($108>>>0);
  44364. if ($139) {
  44365. _abort();
  44366. // unreachable;
  44367. }
  44368. $140 = ((($133)) + 12|0);
  44369. $141 = HEAP32[$140>>2]|0;
  44370. $142 = ($141|0)==($2|0);
  44371. if (!($142)) {
  44372. _abort();
  44373. // unreachable;
  44374. }
  44375. }
  44376. $143 = ($135|0)==($133|0);
  44377. if ($143) {
  44378. $144 = 1 << $130;
  44379. $145 = $144 ^ -1;
  44380. $146 = HEAP32[5295]|0;
  44381. $147 = $146 & $145;
  44382. HEAP32[5295] = $147;
  44383. break;
  44384. }
  44385. $148 = ($135|0)==($137|0);
  44386. if ($148) {
  44387. $$pre23 = ((($135)) + 8|0);
  44388. $$pre$phi24Z2D = $$pre23;
  44389. } else {
  44390. $149 = ($135>>>0)<($108>>>0);
  44391. if ($149) {
  44392. _abort();
  44393. // unreachable;
  44394. }
  44395. $150 = ((($135)) + 8|0);
  44396. $151 = HEAP32[$150>>2]|0;
  44397. $152 = ($151|0)==($2|0);
  44398. if ($152) {
  44399. $$pre$phi24Z2D = $150;
  44400. } else {
  44401. _abort();
  44402. // unreachable;
  44403. }
  44404. }
  44405. $153 = ((($133)) + 12|0);
  44406. HEAP32[$153>>2] = $135;
  44407. HEAP32[$$pre$phi24Z2D>>2] = $133;
  44408. } else {
  44409. $154 = ((($2)) + 24|0);
  44410. $155 = HEAP32[$154>>2]|0;
  44411. $156 = ((($2)) + 12|0);
  44412. $157 = HEAP32[$156>>2]|0;
  44413. $158 = ($157|0)==($2|0);
  44414. do {
  44415. if ($158) {
  44416. $168 = ((($2)) + 16|0);
  44417. $169 = ((($168)) + 4|0);
  44418. $170 = HEAP32[$169>>2]|0;
  44419. $171 = ($170|0)==(0|0);
  44420. if ($171) {
  44421. $172 = HEAP32[$168>>2]|0;
  44422. $173 = ($172|0)==(0|0);
  44423. if ($173) {
  44424. $$3435 = 0;
  44425. break;
  44426. } else {
  44427. $$1433 = $172;$$1437 = $168;
  44428. }
  44429. } else {
  44430. $$1433 = $170;$$1437 = $169;
  44431. }
  44432. while(1) {
  44433. $174 = ((($$1433)) + 20|0);
  44434. $175 = HEAP32[$174>>2]|0;
  44435. $176 = ($175|0)==(0|0);
  44436. if (!($176)) {
  44437. $$1433 = $175;$$1437 = $174;
  44438. continue;
  44439. }
  44440. $177 = ((($$1433)) + 16|0);
  44441. $178 = HEAP32[$177>>2]|0;
  44442. $179 = ($178|0)==(0|0);
  44443. if ($179) {
  44444. break;
  44445. } else {
  44446. $$1433 = $178;$$1437 = $177;
  44447. }
  44448. }
  44449. $180 = ($$1437>>>0)<($108>>>0);
  44450. if ($180) {
  44451. _abort();
  44452. // unreachable;
  44453. } else {
  44454. HEAP32[$$1437>>2] = 0;
  44455. $$3435 = $$1433;
  44456. break;
  44457. }
  44458. } else {
  44459. $159 = ((($2)) + 8|0);
  44460. $160 = HEAP32[$159>>2]|0;
  44461. $161 = ($160>>>0)<($108>>>0);
  44462. if ($161) {
  44463. _abort();
  44464. // unreachable;
  44465. }
  44466. $162 = ((($160)) + 12|0);
  44467. $163 = HEAP32[$162>>2]|0;
  44468. $164 = ($163|0)==($2|0);
  44469. if (!($164)) {
  44470. _abort();
  44471. // unreachable;
  44472. }
  44473. $165 = ((($157)) + 8|0);
  44474. $166 = HEAP32[$165>>2]|0;
  44475. $167 = ($166|0)==($2|0);
  44476. if ($167) {
  44477. HEAP32[$162>>2] = $157;
  44478. HEAP32[$165>>2] = $160;
  44479. $$3435 = $157;
  44480. break;
  44481. } else {
  44482. _abort();
  44483. // unreachable;
  44484. }
  44485. }
  44486. } while(0);
  44487. $181 = ($155|0)==(0|0);
  44488. if (!($181)) {
  44489. $182 = ((($2)) + 28|0);
  44490. $183 = HEAP32[$182>>2]|0;
  44491. $184 = (21484 + ($183<<2)|0);
  44492. $185 = HEAP32[$184>>2]|0;
  44493. $186 = ($2|0)==($185|0);
  44494. do {
  44495. if ($186) {
  44496. HEAP32[$184>>2] = $$3435;
  44497. $cond17 = ($$3435|0)==(0|0);
  44498. if ($cond17) {
  44499. $187 = 1 << $183;
  44500. $188 = $187 ^ -1;
  44501. $189 = HEAP32[(21184)>>2]|0;
  44502. $190 = $189 & $188;
  44503. HEAP32[(21184)>>2] = $190;
  44504. break L96;
  44505. }
  44506. } else {
  44507. $191 = HEAP32[(21196)>>2]|0;
  44508. $192 = ($155>>>0)<($191>>>0);
  44509. if ($192) {
  44510. _abort();
  44511. // unreachable;
  44512. } else {
  44513. $193 = ((($155)) + 16|0);
  44514. $194 = HEAP32[$193>>2]|0;
  44515. $not$ = ($194|0)!=($2|0);
  44516. $$sink4 = $not$&1;
  44517. $195 = (((($155)) + 16|0) + ($$sink4<<2)|0);
  44518. HEAP32[$195>>2] = $$3435;
  44519. $196 = ($$3435|0)==(0|0);
  44520. if ($196) {
  44521. break L96;
  44522. } else {
  44523. break;
  44524. }
  44525. }
  44526. }
  44527. } while(0);
  44528. $197 = HEAP32[(21196)>>2]|0;
  44529. $198 = ($$3435>>>0)<($197>>>0);
  44530. if ($198) {
  44531. _abort();
  44532. // unreachable;
  44533. }
  44534. $199 = ((($$3435)) + 24|0);
  44535. HEAP32[$199>>2] = $155;
  44536. $200 = ((($2)) + 16|0);
  44537. $201 = HEAP32[$200>>2]|0;
  44538. $202 = ($201|0)==(0|0);
  44539. do {
  44540. if (!($202)) {
  44541. $203 = ($201>>>0)<($197>>>0);
  44542. if ($203) {
  44543. _abort();
  44544. // unreachable;
  44545. } else {
  44546. $204 = ((($$3435)) + 16|0);
  44547. HEAP32[$204>>2] = $201;
  44548. $205 = ((($201)) + 24|0);
  44549. HEAP32[$205>>2] = $$3435;
  44550. break;
  44551. }
  44552. }
  44553. } while(0);
  44554. $206 = ((($200)) + 4|0);
  44555. $207 = HEAP32[$206>>2]|0;
  44556. $208 = ($207|0)==(0|0);
  44557. if (!($208)) {
  44558. $209 = HEAP32[(21196)>>2]|0;
  44559. $210 = ($207>>>0)<($209>>>0);
  44560. if ($210) {
  44561. _abort();
  44562. // unreachable;
  44563. } else {
  44564. $211 = ((($$3435)) + 20|0);
  44565. HEAP32[$211>>2] = $207;
  44566. $212 = ((($207)) + 24|0);
  44567. HEAP32[$212>>2] = $$3435;
  44568. break;
  44569. }
  44570. }
  44571. }
  44572. }
  44573. } while(0);
  44574. $213 = $129 | 1;
  44575. $214 = ((($$1)) + 4|0);
  44576. HEAP32[$214>>2] = $213;
  44577. $215 = (($$1) + ($129)|0);
  44578. HEAP32[$215>>2] = $129;
  44579. $216 = HEAP32[(21200)>>2]|0;
  44580. $217 = ($$1|0)==($216|0);
  44581. if ($217) {
  44582. HEAP32[(21188)>>2] = $129;
  44583. return;
  44584. } else {
  44585. $$2 = $129;
  44586. }
  44587. } else {
  44588. $218 = $111 & -2;
  44589. HEAP32[$110>>2] = $218;
  44590. $219 = $$1418 | 1;
  44591. $220 = ((($$1)) + 4|0);
  44592. HEAP32[$220>>2] = $219;
  44593. $221 = (($$1) + ($$1418)|0);
  44594. HEAP32[$221>>2] = $$1418;
  44595. $$2 = $$1418;
  44596. }
  44597. $222 = $$2 >>> 3;
  44598. $223 = ($$2>>>0)<(256);
  44599. if ($223) {
  44600. $224 = $222 << 1;
  44601. $225 = (21220 + ($224<<2)|0);
  44602. $226 = HEAP32[5295]|0;
  44603. $227 = 1 << $222;
  44604. $228 = $226 & $227;
  44605. $229 = ($228|0)==(0);
  44606. if ($229) {
  44607. $230 = $226 | $227;
  44608. HEAP32[5295] = $230;
  44609. $$pre = ((($225)) + 8|0);
  44610. $$0438 = $225;$$pre$phiZ2D = $$pre;
  44611. } else {
  44612. $231 = ((($225)) + 8|0);
  44613. $232 = HEAP32[$231>>2]|0;
  44614. $233 = HEAP32[(21196)>>2]|0;
  44615. $234 = ($232>>>0)<($233>>>0);
  44616. if ($234) {
  44617. _abort();
  44618. // unreachable;
  44619. } else {
  44620. $$0438 = $232;$$pre$phiZ2D = $231;
  44621. }
  44622. }
  44623. HEAP32[$$pre$phiZ2D>>2] = $$1;
  44624. $235 = ((($$0438)) + 12|0);
  44625. HEAP32[$235>>2] = $$1;
  44626. $236 = ((($$1)) + 8|0);
  44627. HEAP32[$236>>2] = $$0438;
  44628. $237 = ((($$1)) + 12|0);
  44629. HEAP32[$237>>2] = $225;
  44630. return;
  44631. }
  44632. $238 = $$2 >>> 8;
  44633. $239 = ($238|0)==(0);
  44634. if ($239) {
  44635. $$0431 = 0;
  44636. } else {
  44637. $240 = ($$2>>>0)>(16777215);
  44638. if ($240) {
  44639. $$0431 = 31;
  44640. } else {
  44641. $241 = (($238) + 1048320)|0;
  44642. $242 = $241 >>> 16;
  44643. $243 = $242 & 8;
  44644. $244 = $238 << $243;
  44645. $245 = (($244) + 520192)|0;
  44646. $246 = $245 >>> 16;
  44647. $247 = $246 & 4;
  44648. $248 = $247 | $243;
  44649. $249 = $244 << $247;
  44650. $250 = (($249) + 245760)|0;
  44651. $251 = $250 >>> 16;
  44652. $252 = $251 & 2;
  44653. $253 = $248 | $252;
  44654. $254 = (14 - ($253))|0;
  44655. $255 = $249 << $252;
  44656. $256 = $255 >>> 15;
  44657. $257 = (($254) + ($256))|0;
  44658. $258 = $257 << 1;
  44659. $259 = (($257) + 7)|0;
  44660. $260 = $$2 >>> $259;
  44661. $261 = $260 & 1;
  44662. $262 = $261 | $258;
  44663. $$0431 = $262;
  44664. }
  44665. }
  44666. $263 = (21484 + ($$0431<<2)|0);
  44667. $264 = ((($$1)) + 28|0);
  44668. HEAP32[$264>>2] = $$0431;
  44669. $265 = ((($$1)) + 16|0);
  44670. $266 = ((($$1)) + 20|0);
  44671. HEAP32[$266>>2] = 0;
  44672. HEAP32[$265>>2] = 0;
  44673. $267 = HEAP32[(21184)>>2]|0;
  44674. $268 = 1 << $$0431;
  44675. $269 = $267 & $268;
  44676. $270 = ($269|0)==(0);
  44677. if ($270) {
  44678. $271 = $267 | $268;
  44679. HEAP32[(21184)>>2] = $271;
  44680. HEAP32[$263>>2] = $$1;
  44681. $272 = ((($$1)) + 24|0);
  44682. HEAP32[$272>>2] = $263;
  44683. $273 = ((($$1)) + 12|0);
  44684. HEAP32[$273>>2] = $$1;
  44685. $274 = ((($$1)) + 8|0);
  44686. HEAP32[$274>>2] = $$1;
  44687. return;
  44688. }
  44689. $275 = HEAP32[$263>>2]|0;
  44690. $276 = ($$0431|0)==(31);
  44691. $277 = $$0431 >>> 1;
  44692. $278 = (25 - ($277))|0;
  44693. $279 = $276 ? 0 : $278;
  44694. $280 = $$2 << $279;
  44695. $$0419 = $280;$$0420 = $275;
  44696. while(1) {
  44697. $281 = ((($$0420)) + 4|0);
  44698. $282 = HEAP32[$281>>2]|0;
  44699. $283 = $282 & -8;
  44700. $284 = ($283|0)==($$2|0);
  44701. if ($284) {
  44702. label = 121;
  44703. break;
  44704. }
  44705. $285 = $$0419 >>> 31;
  44706. $286 = (((($$0420)) + 16|0) + ($285<<2)|0);
  44707. $287 = $$0419 << 1;
  44708. $288 = HEAP32[$286>>2]|0;
  44709. $289 = ($288|0)==(0|0);
  44710. if ($289) {
  44711. label = 118;
  44712. break;
  44713. } else {
  44714. $$0419 = $287;$$0420 = $288;
  44715. }
  44716. }
  44717. if ((label|0) == 118) {
  44718. $290 = HEAP32[(21196)>>2]|0;
  44719. $291 = ($286>>>0)<($290>>>0);
  44720. if ($291) {
  44721. _abort();
  44722. // unreachable;
  44723. }
  44724. HEAP32[$286>>2] = $$1;
  44725. $292 = ((($$1)) + 24|0);
  44726. HEAP32[$292>>2] = $$0420;
  44727. $293 = ((($$1)) + 12|0);
  44728. HEAP32[$293>>2] = $$1;
  44729. $294 = ((($$1)) + 8|0);
  44730. HEAP32[$294>>2] = $$1;
  44731. return;
  44732. }
  44733. else if ((label|0) == 121) {
  44734. $295 = ((($$0420)) + 8|0);
  44735. $296 = HEAP32[$295>>2]|0;
  44736. $297 = HEAP32[(21196)>>2]|0;
  44737. $298 = ($296>>>0)>=($297>>>0);
  44738. $not$19 = ($$0420>>>0)>=($297>>>0);
  44739. $299 = $298 & $not$19;
  44740. if (!($299)) {
  44741. _abort();
  44742. // unreachable;
  44743. }
  44744. $300 = ((($296)) + 12|0);
  44745. HEAP32[$300>>2] = $$1;
  44746. HEAP32[$295>>2] = $$1;
  44747. $301 = ((($$1)) + 8|0);
  44748. HEAP32[$301>>2] = $296;
  44749. $302 = ((($$1)) + 12|0);
  44750. HEAP32[$302>>2] = $$0420;
  44751. $303 = ((($$1)) + 24|0);
  44752. HEAP32[$303>>2] = 0;
  44753. return;
  44754. }
  44755. }
  44756. function runPostSets() {
  44757. }
  44758. function _memset(ptr, value, num) {
  44759. ptr = ptr|0; value = value|0; num = num|0;
  44760. var end = 0, aligned_end = 0, block_aligned_end = 0, value4 = 0;
  44761. end = (ptr + num)|0;
  44762. value = value & 0xff;
  44763. if ((num|0) >= 67 /* 64 bytes for an unrolled loop + 3 bytes for unaligned head*/) {
  44764. while ((ptr&3) != 0) {
  44765. HEAP8[((ptr)>>0)]=value;
  44766. ptr = (ptr+1)|0;
  44767. }
  44768. aligned_end = (end & -4)|0;
  44769. block_aligned_end = (aligned_end - 64)|0;
  44770. value4 = value | (value << 8) | (value << 16) | (value << 24);
  44771. while((ptr|0) <= (block_aligned_end|0)) {
  44772. HEAP32[((ptr)>>2)]=value4;
  44773. HEAP32[(((ptr)+(4))>>2)]=value4;
  44774. HEAP32[(((ptr)+(8))>>2)]=value4;
  44775. HEAP32[(((ptr)+(12))>>2)]=value4;
  44776. HEAP32[(((ptr)+(16))>>2)]=value4;
  44777. HEAP32[(((ptr)+(20))>>2)]=value4;
  44778. HEAP32[(((ptr)+(24))>>2)]=value4;
  44779. HEAP32[(((ptr)+(28))>>2)]=value4;
  44780. HEAP32[(((ptr)+(32))>>2)]=value4;
  44781. HEAP32[(((ptr)+(36))>>2)]=value4;
  44782. HEAP32[(((ptr)+(40))>>2)]=value4;
  44783. HEAP32[(((ptr)+(44))>>2)]=value4;
  44784. HEAP32[(((ptr)+(48))>>2)]=value4;
  44785. HEAP32[(((ptr)+(52))>>2)]=value4;
  44786. HEAP32[(((ptr)+(56))>>2)]=value4;
  44787. HEAP32[(((ptr)+(60))>>2)]=value4;
  44788. ptr = (ptr + 64)|0;
  44789. }
  44790. while ((ptr|0) < (aligned_end|0) ) {
  44791. HEAP32[((ptr)>>2)]=value4;
  44792. ptr = (ptr+4)|0;
  44793. }
  44794. }
  44795. // The remaining bytes.
  44796. while ((ptr|0) < (end|0)) {
  44797. HEAP8[((ptr)>>0)]=value;
  44798. ptr = (ptr+1)|0;
  44799. }
  44800. return (end-num)|0;
  44801. }
  44802. function _i64Subtract(a, b, c, d) {
  44803. a = a|0; b = b|0; c = c|0; d = d|0;
  44804. var l = 0, h = 0;
  44805. l = (a - c)>>>0;
  44806. h = (b - d)>>>0;
  44807. h = (b - d - (((c>>>0) > (a>>>0))|0))>>>0; // Borrow one from high word to low word on underflow.
  44808. return ((tempRet0 = h,l|0)|0);
  44809. }
  44810. function _i64Add(a, b, c, d) {
  44811. /*
  44812. x = a + b*2^32
  44813. y = c + d*2^32
  44814. result = l + h*2^32
  44815. */
  44816. a = a|0; b = b|0; c = c|0; d = d|0;
  44817. var l = 0, h = 0;
  44818. l = (a + c)>>>0;
  44819. h = (b + d + (((l>>>0) < (a>>>0))|0))>>>0; // Add carry from low word to high word on overflow.
  44820. return ((tempRet0 = h,l|0)|0);
  44821. }
  44822. function _llvm_cttz_i32(x) {
  44823. x = x|0;
  44824. var ret = 0;
  44825. ret = ((HEAP8[(((cttz_i8)+(x & 0xff))>>0)])|0);
  44826. if ((ret|0) < 8) return ret|0;
  44827. ret = ((HEAP8[(((cttz_i8)+((x >> 8)&0xff))>>0)])|0);
  44828. if ((ret|0) < 8) return (ret + 8)|0;
  44829. ret = ((HEAP8[(((cttz_i8)+((x >> 16)&0xff))>>0)])|0);
  44830. if ((ret|0) < 8) return (ret + 16)|0;
  44831. return (((HEAP8[(((cttz_i8)+(x >>> 24))>>0)])|0) + 24)|0;
  44832. }
  44833. function ___udivmoddi4($a$0, $a$1, $b$0, $b$1, $rem) {
  44834. $a$0 = $a$0 | 0;
  44835. $a$1 = $a$1 | 0;
  44836. $b$0 = $b$0 | 0;
  44837. $b$1 = $b$1 | 0;
  44838. $rem = $rem | 0;
  44839. var $n_sroa_0_0_extract_trunc = 0, $n_sroa_1_4_extract_shift$0 = 0, $n_sroa_1_4_extract_trunc = 0, $d_sroa_0_0_extract_trunc = 0, $d_sroa_1_4_extract_shift$0 = 0, $d_sroa_1_4_extract_trunc = 0, $4 = 0, $17 = 0, $37 = 0, $49 = 0, $51 = 0, $57 = 0, $58 = 0, $66 = 0, $78 = 0, $86 = 0, $88 = 0, $89 = 0, $91 = 0, $92 = 0, $95 = 0, $105 = 0, $117 = 0, $119 = 0, $125 = 0, $126 = 0, $130 = 0, $q_sroa_1_1_ph = 0, $q_sroa_0_1_ph = 0, $r_sroa_1_1_ph = 0, $r_sroa_0_1_ph = 0, $sr_1_ph = 0, $d_sroa_0_0_insert_insert99$0 = 0, $d_sroa_0_0_insert_insert99$1 = 0, $137$0 = 0, $137$1 = 0, $carry_0203 = 0, $sr_1202 = 0, $r_sroa_0_1201 = 0, $r_sroa_1_1200 = 0, $q_sroa_0_1199 = 0, $q_sroa_1_1198 = 0, $147 = 0, $149 = 0, $r_sroa_0_0_insert_insert42$0 = 0, $r_sroa_0_0_insert_insert42$1 = 0, $150$1 = 0, $151$0 = 0, $152 = 0, $154$0 = 0, $r_sroa_0_0_extract_trunc = 0, $r_sroa_1_4_extract_trunc = 0, $155 = 0, $carry_0_lcssa$0 = 0, $carry_0_lcssa$1 = 0, $r_sroa_0_1_lcssa = 0, $r_sroa_1_1_lcssa = 0, $q_sroa_0_1_lcssa = 0, $q_sroa_1_1_lcssa = 0, $q_sroa_0_0_insert_ext75$0 = 0, $q_sroa_0_0_insert_ext75$1 = 0, $q_sroa_0_0_insert_insert77$1 = 0, $_0$0 = 0, $_0$1 = 0;
  44840. $n_sroa_0_0_extract_trunc = $a$0;
  44841. $n_sroa_1_4_extract_shift$0 = $a$1;
  44842. $n_sroa_1_4_extract_trunc = $n_sroa_1_4_extract_shift$0;
  44843. $d_sroa_0_0_extract_trunc = $b$0;
  44844. $d_sroa_1_4_extract_shift$0 = $b$1;
  44845. $d_sroa_1_4_extract_trunc = $d_sroa_1_4_extract_shift$0;
  44846. if (($n_sroa_1_4_extract_trunc | 0) == 0) {
  44847. $4 = ($rem | 0) != 0;
  44848. if (($d_sroa_1_4_extract_trunc | 0) == 0) {
  44849. if ($4) {
  44850. HEAP32[$rem >> 2] = ($n_sroa_0_0_extract_trunc >>> 0) % ($d_sroa_0_0_extract_trunc >>> 0);
  44851. HEAP32[$rem + 4 >> 2] = 0;
  44852. }
  44853. $_0$1 = 0;
  44854. $_0$0 = ($n_sroa_0_0_extract_trunc >>> 0) / ($d_sroa_0_0_extract_trunc >>> 0) >>> 0;
  44855. return (tempRet0 = $_0$1, $_0$0) | 0;
  44856. } else {
  44857. if (!$4) {
  44858. $_0$1 = 0;
  44859. $_0$0 = 0;
  44860. return (tempRet0 = $_0$1, $_0$0) | 0;
  44861. }
  44862. HEAP32[$rem >> 2] = $a$0 & -1;
  44863. HEAP32[$rem + 4 >> 2] = $a$1 & 0;
  44864. $_0$1 = 0;
  44865. $_0$0 = 0;
  44866. return (tempRet0 = $_0$1, $_0$0) | 0;
  44867. }
  44868. }
  44869. $17 = ($d_sroa_1_4_extract_trunc | 0) == 0;
  44870. do {
  44871. if (($d_sroa_0_0_extract_trunc | 0) == 0) {
  44872. if ($17) {
  44873. if (($rem | 0) != 0) {
  44874. HEAP32[$rem >> 2] = ($n_sroa_1_4_extract_trunc >>> 0) % ($d_sroa_0_0_extract_trunc >>> 0);
  44875. HEAP32[$rem + 4 >> 2] = 0;
  44876. }
  44877. $_0$1 = 0;
  44878. $_0$0 = ($n_sroa_1_4_extract_trunc >>> 0) / ($d_sroa_0_0_extract_trunc >>> 0) >>> 0;
  44879. return (tempRet0 = $_0$1, $_0$0) | 0;
  44880. }
  44881. if (($n_sroa_0_0_extract_trunc | 0) == 0) {
  44882. if (($rem | 0) != 0) {
  44883. HEAP32[$rem >> 2] = 0;
  44884. HEAP32[$rem + 4 >> 2] = ($n_sroa_1_4_extract_trunc >>> 0) % ($d_sroa_1_4_extract_trunc >>> 0);
  44885. }
  44886. $_0$1 = 0;
  44887. $_0$0 = ($n_sroa_1_4_extract_trunc >>> 0) / ($d_sroa_1_4_extract_trunc >>> 0) >>> 0;
  44888. return (tempRet0 = $_0$1, $_0$0) | 0;
  44889. }
  44890. $37 = $d_sroa_1_4_extract_trunc - 1 | 0;
  44891. if (($37 & $d_sroa_1_4_extract_trunc | 0) == 0) {
  44892. if (($rem | 0) != 0) {
  44893. HEAP32[$rem >> 2] = 0 | $a$0 & -1;
  44894. HEAP32[$rem + 4 >> 2] = $37 & $n_sroa_1_4_extract_trunc | $a$1 & 0;
  44895. }
  44896. $_0$1 = 0;
  44897. $_0$0 = $n_sroa_1_4_extract_trunc >>> ((_llvm_cttz_i32($d_sroa_1_4_extract_trunc | 0) | 0) >>> 0);
  44898. return (tempRet0 = $_0$1, $_0$0) | 0;
  44899. }
  44900. $49 = Math_clz32($d_sroa_1_4_extract_trunc | 0) | 0;
  44901. $51 = $49 - (Math_clz32($n_sroa_1_4_extract_trunc | 0) | 0) | 0;
  44902. if ($51 >>> 0 <= 30) {
  44903. $57 = $51 + 1 | 0;
  44904. $58 = 31 - $51 | 0;
  44905. $sr_1_ph = $57;
  44906. $r_sroa_0_1_ph = $n_sroa_1_4_extract_trunc << $58 | $n_sroa_0_0_extract_trunc >>> ($57 >>> 0);
  44907. $r_sroa_1_1_ph = $n_sroa_1_4_extract_trunc >>> ($57 >>> 0);
  44908. $q_sroa_0_1_ph = 0;
  44909. $q_sroa_1_1_ph = $n_sroa_0_0_extract_trunc << $58;
  44910. break;
  44911. }
  44912. if (($rem | 0) == 0) {
  44913. $_0$1 = 0;
  44914. $_0$0 = 0;
  44915. return (tempRet0 = $_0$1, $_0$0) | 0;
  44916. }
  44917. HEAP32[$rem >> 2] = 0 | $a$0 & -1;
  44918. HEAP32[$rem + 4 >> 2] = $n_sroa_1_4_extract_shift$0 | $a$1 & 0;
  44919. $_0$1 = 0;
  44920. $_0$0 = 0;
  44921. return (tempRet0 = $_0$1, $_0$0) | 0;
  44922. } else {
  44923. if (!$17) {
  44924. $117 = Math_clz32($d_sroa_1_4_extract_trunc | 0) | 0;
  44925. $119 = $117 - (Math_clz32($n_sroa_1_4_extract_trunc | 0) | 0) | 0;
  44926. if ($119 >>> 0 <= 31) {
  44927. $125 = $119 + 1 | 0;
  44928. $126 = 31 - $119 | 0;
  44929. $130 = $119 - 31 >> 31;
  44930. $sr_1_ph = $125;
  44931. $r_sroa_0_1_ph = $n_sroa_0_0_extract_trunc >>> ($125 >>> 0) & $130 | $n_sroa_1_4_extract_trunc << $126;
  44932. $r_sroa_1_1_ph = $n_sroa_1_4_extract_trunc >>> ($125 >>> 0) & $130;
  44933. $q_sroa_0_1_ph = 0;
  44934. $q_sroa_1_1_ph = $n_sroa_0_0_extract_trunc << $126;
  44935. break;
  44936. }
  44937. if (($rem | 0) == 0) {
  44938. $_0$1 = 0;
  44939. $_0$0 = 0;
  44940. return (tempRet0 = $_0$1, $_0$0) | 0;
  44941. }
  44942. HEAP32[$rem >> 2] = 0 | $a$0 & -1;
  44943. HEAP32[$rem + 4 >> 2] = $n_sroa_1_4_extract_shift$0 | $a$1 & 0;
  44944. $_0$1 = 0;
  44945. $_0$0 = 0;
  44946. return (tempRet0 = $_0$1, $_0$0) | 0;
  44947. }
  44948. $66 = $d_sroa_0_0_extract_trunc - 1 | 0;
  44949. if (($66 & $d_sroa_0_0_extract_trunc | 0) != 0) {
  44950. $86 = (Math_clz32($d_sroa_0_0_extract_trunc | 0) | 0) + 33 | 0;
  44951. $88 = $86 - (Math_clz32($n_sroa_1_4_extract_trunc | 0) | 0) | 0;
  44952. $89 = 64 - $88 | 0;
  44953. $91 = 32 - $88 | 0;
  44954. $92 = $91 >> 31;
  44955. $95 = $88 - 32 | 0;
  44956. $105 = $95 >> 31;
  44957. $sr_1_ph = $88;
  44958. $r_sroa_0_1_ph = $91 - 1 >> 31 & $n_sroa_1_4_extract_trunc >>> ($95 >>> 0) | ($n_sroa_1_4_extract_trunc << $91 | $n_sroa_0_0_extract_trunc >>> ($88 >>> 0)) & $105;
  44959. $r_sroa_1_1_ph = $105 & $n_sroa_1_4_extract_trunc >>> ($88 >>> 0);
  44960. $q_sroa_0_1_ph = $n_sroa_0_0_extract_trunc << $89 & $92;
  44961. $q_sroa_1_1_ph = ($n_sroa_1_4_extract_trunc << $89 | $n_sroa_0_0_extract_trunc >>> ($95 >>> 0)) & $92 | $n_sroa_0_0_extract_trunc << $91 & $88 - 33 >> 31;
  44962. break;
  44963. }
  44964. if (($rem | 0) != 0) {
  44965. HEAP32[$rem >> 2] = $66 & $n_sroa_0_0_extract_trunc;
  44966. HEAP32[$rem + 4 >> 2] = 0;
  44967. }
  44968. if (($d_sroa_0_0_extract_trunc | 0) == 1) {
  44969. $_0$1 = $n_sroa_1_4_extract_shift$0 | $a$1 & 0;
  44970. $_0$0 = 0 | $a$0 & -1;
  44971. return (tempRet0 = $_0$1, $_0$0) | 0;
  44972. } else {
  44973. $78 = _llvm_cttz_i32($d_sroa_0_0_extract_trunc | 0) | 0;
  44974. $_0$1 = 0 | $n_sroa_1_4_extract_trunc >>> ($78 >>> 0);
  44975. $_0$0 = $n_sroa_1_4_extract_trunc << 32 - $78 | $n_sroa_0_0_extract_trunc >>> ($78 >>> 0) | 0;
  44976. return (tempRet0 = $_0$1, $_0$0) | 0;
  44977. }
  44978. }
  44979. } while (0);
  44980. if (($sr_1_ph | 0) == 0) {
  44981. $q_sroa_1_1_lcssa = $q_sroa_1_1_ph;
  44982. $q_sroa_0_1_lcssa = $q_sroa_0_1_ph;
  44983. $r_sroa_1_1_lcssa = $r_sroa_1_1_ph;
  44984. $r_sroa_0_1_lcssa = $r_sroa_0_1_ph;
  44985. $carry_0_lcssa$1 = 0;
  44986. $carry_0_lcssa$0 = 0;
  44987. } else {
  44988. $d_sroa_0_0_insert_insert99$0 = 0 | $b$0 & -1;
  44989. $d_sroa_0_0_insert_insert99$1 = $d_sroa_1_4_extract_shift$0 | $b$1 & 0;
  44990. $137$0 = _i64Add($d_sroa_0_0_insert_insert99$0 | 0, $d_sroa_0_0_insert_insert99$1 | 0, -1, -1) | 0;
  44991. $137$1 = tempRet0;
  44992. $q_sroa_1_1198 = $q_sroa_1_1_ph;
  44993. $q_sroa_0_1199 = $q_sroa_0_1_ph;
  44994. $r_sroa_1_1200 = $r_sroa_1_1_ph;
  44995. $r_sroa_0_1201 = $r_sroa_0_1_ph;
  44996. $sr_1202 = $sr_1_ph;
  44997. $carry_0203 = 0;
  44998. while (1) {
  44999. $147 = $q_sroa_0_1199 >>> 31 | $q_sroa_1_1198 << 1;
  45000. $149 = $carry_0203 | $q_sroa_0_1199 << 1;
  45001. $r_sroa_0_0_insert_insert42$0 = 0 | ($r_sroa_0_1201 << 1 | $q_sroa_1_1198 >>> 31);
  45002. $r_sroa_0_0_insert_insert42$1 = $r_sroa_0_1201 >>> 31 | $r_sroa_1_1200 << 1 | 0;
  45003. _i64Subtract($137$0 | 0, $137$1 | 0, $r_sroa_0_0_insert_insert42$0 | 0, $r_sroa_0_0_insert_insert42$1 | 0) | 0;
  45004. $150$1 = tempRet0;
  45005. $151$0 = $150$1 >> 31 | (($150$1 | 0) < 0 ? -1 : 0) << 1;
  45006. $152 = $151$0 & 1;
  45007. $154$0 = _i64Subtract($r_sroa_0_0_insert_insert42$0 | 0, $r_sroa_0_0_insert_insert42$1 | 0, $151$0 & $d_sroa_0_0_insert_insert99$0 | 0, ((($150$1 | 0) < 0 ? -1 : 0) >> 31 | (($150$1 | 0) < 0 ? -1 : 0) << 1) & $d_sroa_0_0_insert_insert99$1 | 0) | 0;
  45008. $r_sroa_0_0_extract_trunc = $154$0;
  45009. $r_sroa_1_4_extract_trunc = tempRet0;
  45010. $155 = $sr_1202 - 1 | 0;
  45011. if (($155 | 0) == 0) {
  45012. break;
  45013. } else {
  45014. $q_sroa_1_1198 = $147;
  45015. $q_sroa_0_1199 = $149;
  45016. $r_sroa_1_1200 = $r_sroa_1_4_extract_trunc;
  45017. $r_sroa_0_1201 = $r_sroa_0_0_extract_trunc;
  45018. $sr_1202 = $155;
  45019. $carry_0203 = $152;
  45020. }
  45021. }
  45022. $q_sroa_1_1_lcssa = $147;
  45023. $q_sroa_0_1_lcssa = $149;
  45024. $r_sroa_1_1_lcssa = $r_sroa_1_4_extract_trunc;
  45025. $r_sroa_0_1_lcssa = $r_sroa_0_0_extract_trunc;
  45026. $carry_0_lcssa$1 = 0;
  45027. $carry_0_lcssa$0 = $152;
  45028. }
  45029. $q_sroa_0_0_insert_ext75$0 = $q_sroa_0_1_lcssa;
  45030. $q_sroa_0_0_insert_ext75$1 = 0;
  45031. $q_sroa_0_0_insert_insert77$1 = $q_sroa_1_1_lcssa | $q_sroa_0_0_insert_ext75$1;
  45032. if (($rem | 0) != 0) {
  45033. HEAP32[$rem >> 2] = 0 | $r_sroa_0_1_lcssa;
  45034. HEAP32[$rem + 4 >> 2] = $r_sroa_1_1_lcssa | 0;
  45035. }
  45036. $_0$1 = (0 | $q_sroa_0_0_insert_ext75$0) >>> 31 | $q_sroa_0_0_insert_insert77$1 << 1 | ($q_sroa_0_0_insert_ext75$1 << 1 | $q_sroa_0_0_insert_ext75$0 >>> 31) & 0 | $carry_0_lcssa$1;
  45037. $_0$0 = ($q_sroa_0_0_insert_ext75$0 << 1 | 0 >>> 31) & -2 | $carry_0_lcssa$0;
  45038. return (tempRet0 = $_0$1, $_0$0) | 0;
  45039. }
  45040. function ___udivdi3($a$0, $a$1, $b$0, $b$1) {
  45041. $a$0 = $a$0 | 0;
  45042. $a$1 = $a$1 | 0;
  45043. $b$0 = $b$0 | 0;
  45044. $b$1 = $b$1 | 0;
  45045. var $1$0 = 0;
  45046. $1$0 = ___udivmoddi4($a$0, $a$1, $b$0, $b$1, 0) | 0;
  45047. return $1$0 | 0;
  45048. }
  45049. function ___muldsi3($a, $b) {
  45050. $a = $a | 0;
  45051. $b = $b | 0;
  45052. var $1 = 0, $2 = 0, $3 = 0, $6 = 0, $8 = 0, $11 = 0, $12 = 0;
  45053. $1 = $a & 65535;
  45054. $2 = $b & 65535;
  45055. $3 = Math_imul($2, $1) | 0;
  45056. $6 = $a >>> 16;
  45057. $8 = ($3 >>> 16) + (Math_imul($2, $6) | 0) | 0;
  45058. $11 = $b >>> 16;
  45059. $12 = Math_imul($11, $1) | 0;
  45060. return (tempRet0 = (($8 >>> 16) + (Math_imul($11, $6) | 0) | 0) + ((($8 & 65535) + $12 | 0) >>> 16) | 0, 0 | ($8 + $12 << 16 | $3 & 65535)) | 0;
  45061. }
  45062. function ___muldi3($a$0, $a$1, $b$0, $b$1) {
  45063. $a$0 = $a$0 | 0;
  45064. $a$1 = $a$1 | 0;
  45065. $b$0 = $b$0 | 0;
  45066. $b$1 = $b$1 | 0;
  45067. var $x_sroa_0_0_extract_trunc = 0, $y_sroa_0_0_extract_trunc = 0, $1$0 = 0, $1$1 = 0, $2 = 0;
  45068. $x_sroa_0_0_extract_trunc = $a$0;
  45069. $y_sroa_0_0_extract_trunc = $b$0;
  45070. $1$0 = ___muldsi3($x_sroa_0_0_extract_trunc, $y_sroa_0_0_extract_trunc) | 0;
  45071. $1$1 = tempRet0;
  45072. $2 = Math_imul($a$1, $y_sroa_0_0_extract_trunc) | 0;
  45073. return (tempRet0 = ((Math_imul($b$1, $x_sroa_0_0_extract_trunc) | 0) + $2 | 0) + $1$1 | $1$1 & 0, 0 | $1$0 & -1) | 0;
  45074. }
  45075. function _memcpy(dest, src, num) {
  45076. dest = dest|0; src = src|0; num = num|0;
  45077. var ret = 0;
  45078. var aligned_dest_end = 0;
  45079. var block_aligned_dest_end = 0;
  45080. var dest_end = 0;
  45081. // Test against a benchmarked cutoff limit for when HEAPU8.set() becomes faster to use.
  45082. if ((num|0) >=
  45083. 8192
  45084. ) {
  45085. return _emscripten_memcpy_big(dest|0, src|0, num|0)|0;
  45086. }
  45087. ret = dest|0;
  45088. dest_end = (dest + num)|0;
  45089. if ((dest&3) == (src&3)) {
  45090. // The initial unaligned < 4-byte front.
  45091. while (dest & 3) {
  45092. if ((num|0) == 0) return ret|0;
  45093. HEAP8[((dest)>>0)]=((HEAP8[((src)>>0)])|0);
  45094. dest = (dest+1)|0;
  45095. src = (src+1)|0;
  45096. num = (num-1)|0;
  45097. }
  45098. aligned_dest_end = (dest_end & -4)|0;
  45099. block_aligned_dest_end = (aligned_dest_end - 64)|0;
  45100. while ((dest|0) <= (block_aligned_dest_end|0) ) {
  45101. HEAP32[((dest)>>2)]=((HEAP32[((src)>>2)])|0);
  45102. HEAP32[(((dest)+(4))>>2)]=((HEAP32[(((src)+(4))>>2)])|0);
  45103. HEAP32[(((dest)+(8))>>2)]=((HEAP32[(((src)+(8))>>2)])|0);
  45104. HEAP32[(((dest)+(12))>>2)]=((HEAP32[(((src)+(12))>>2)])|0);
  45105. HEAP32[(((dest)+(16))>>2)]=((HEAP32[(((src)+(16))>>2)])|0);
  45106. HEAP32[(((dest)+(20))>>2)]=((HEAP32[(((src)+(20))>>2)])|0);
  45107. HEAP32[(((dest)+(24))>>2)]=((HEAP32[(((src)+(24))>>2)])|0);
  45108. HEAP32[(((dest)+(28))>>2)]=((HEAP32[(((src)+(28))>>2)])|0);
  45109. HEAP32[(((dest)+(32))>>2)]=((HEAP32[(((src)+(32))>>2)])|0);
  45110. HEAP32[(((dest)+(36))>>2)]=((HEAP32[(((src)+(36))>>2)])|0);
  45111. HEAP32[(((dest)+(40))>>2)]=((HEAP32[(((src)+(40))>>2)])|0);
  45112. HEAP32[(((dest)+(44))>>2)]=((HEAP32[(((src)+(44))>>2)])|0);
  45113. HEAP32[(((dest)+(48))>>2)]=((HEAP32[(((src)+(48))>>2)])|0);
  45114. HEAP32[(((dest)+(52))>>2)]=((HEAP32[(((src)+(52))>>2)])|0);
  45115. HEAP32[(((dest)+(56))>>2)]=((HEAP32[(((src)+(56))>>2)])|0);
  45116. HEAP32[(((dest)+(60))>>2)]=((HEAP32[(((src)+(60))>>2)])|0);
  45117. dest = (dest+64)|0;
  45118. src = (src+64)|0;
  45119. }
  45120. while ((dest|0) < (aligned_dest_end|0) ) {
  45121. HEAP32[((dest)>>2)]=((HEAP32[((src)>>2)])|0);
  45122. dest = (dest+4)|0;
  45123. src = (src+4)|0;
  45124. }
  45125. } else {
  45126. // In the unaligned copy case, unroll a bit as well.
  45127. aligned_dest_end = (dest_end - 4)|0;
  45128. while ((dest|0) < (aligned_dest_end|0) ) {
  45129. HEAP8[((dest)>>0)]=((HEAP8[((src)>>0)])|0);
  45130. HEAP8[(((dest)+(1))>>0)]=((HEAP8[(((src)+(1))>>0)])|0);
  45131. HEAP8[(((dest)+(2))>>0)]=((HEAP8[(((src)+(2))>>0)])|0);
  45132. HEAP8[(((dest)+(3))>>0)]=((HEAP8[(((src)+(3))>>0)])|0);
  45133. dest = (dest+4)|0;
  45134. src = (src+4)|0;
  45135. }
  45136. }
  45137. // The remaining unaligned < 4 byte tail.
  45138. while ((dest|0) < (dest_end|0)) {
  45139. HEAP8[((dest)>>0)]=((HEAP8[((src)>>0)])|0);
  45140. dest = (dest+1)|0;
  45141. src = (src+1)|0;
  45142. }
  45143. return ret|0;
  45144. }
  45145. function _memmove(dest, src, num) {
  45146. dest = dest|0; src = src|0; num = num|0;
  45147. var ret = 0;
  45148. if (((src|0) < (dest|0)) & ((dest|0) < ((src + num)|0))) {
  45149. // Unlikely case: Copy backwards in a safe manner
  45150. ret = dest;
  45151. src = (src + num)|0;
  45152. dest = (dest + num)|0;
  45153. while ((num|0) > 0) {
  45154. dest = (dest - 1)|0;
  45155. src = (src - 1)|0;
  45156. num = (num - 1)|0;
  45157. HEAP8[((dest)>>0)]=((HEAP8[((src)>>0)])|0);
  45158. }
  45159. dest = ret;
  45160. } else {
  45161. _memcpy(dest, src, num) | 0;
  45162. }
  45163. return dest | 0;
  45164. }
  45165. function ___uremdi3($a$0, $a$1, $b$0, $b$1) {
  45166. $a$0 = $a$0 | 0;
  45167. $a$1 = $a$1 | 0;
  45168. $b$0 = $b$0 | 0;
  45169. $b$1 = $b$1 | 0;
  45170. var $rem = 0, __stackBase__ = 0;
  45171. __stackBase__ = STACKTOP;
  45172. STACKTOP = STACKTOP + 16 | 0;
  45173. $rem = __stackBase__ | 0;
  45174. ___udivmoddi4($a$0, $a$1, $b$0, $b$1, $rem) | 0;
  45175. STACKTOP = __stackBase__;
  45176. return (tempRet0 = HEAP32[$rem + 4 >> 2] | 0, HEAP32[$rem >> 2] | 0) | 0;
  45177. }
  45178. function _roundf(f) {
  45179. f = +f;
  45180. return f >= +0 ? +Math_floor(f + +0.5) : +Math_ceil(f - +0.5); // TODO: use fround?
  45181. }
  45182. function _bitshift64Lshr(low, high, bits) {
  45183. low = low|0; high = high|0; bits = bits|0;
  45184. var ander = 0;
  45185. if ((bits|0) < 32) {
  45186. ander = ((1 << bits) - 1)|0;
  45187. tempRet0 = high >>> bits;
  45188. return (low >>> bits) | ((high&ander) << (32 - bits));
  45189. }
  45190. tempRet0 = 0;
  45191. return (high >>> (bits - 32))|0;
  45192. }
  45193. function _sbrk(increment) {
  45194. increment = increment|0;
  45195. var oldDynamicTop = 0;
  45196. var oldDynamicTopOnChange = 0;
  45197. var newDynamicTop = 0;
  45198. var totalMemory = 0;
  45199. increment = ((increment + 15) & -16)|0;
  45200. oldDynamicTop = HEAP32[DYNAMICTOP_PTR>>2]|0;
  45201. newDynamicTop = oldDynamicTop + increment | 0;
  45202. if (((increment|0) > 0 & (newDynamicTop|0) < (oldDynamicTop|0)) // Detect and fail if we would wrap around signed 32-bit int.
  45203. | (newDynamicTop|0) < 0) { // Also underflow, sbrk() should be able to be used to subtract.
  45204. abortOnCannotGrowMemory()|0;
  45205. ___setErrNo(12);
  45206. return -1;
  45207. }
  45208. HEAP32[DYNAMICTOP_PTR>>2] = newDynamicTop;
  45209. totalMemory = getTotalMemory()|0;
  45210. if ((newDynamicTop|0) > (totalMemory|0)) {
  45211. if ((enlargeMemory()|0) == 0) {
  45212. ___setErrNo(12);
  45213. HEAP32[DYNAMICTOP_PTR>>2] = oldDynamicTop;
  45214. return -1;
  45215. }
  45216. }
  45217. return oldDynamicTop|0;
  45218. }
  45219. function _bitshift64Shl(low, high, bits) {
  45220. low = low|0; high = high|0; bits = bits|0;
  45221. var ander = 0;
  45222. if ((bits|0) < 32) {
  45223. ander = ((1 << bits) - 1)|0;
  45224. tempRet0 = (high << bits) | ((low&(ander << (32 - bits))) >>> (32 - bits));
  45225. return low << bits;
  45226. }
  45227. tempRet0 = low << (bits - 32);
  45228. return 0;
  45229. }
  45230. function _llvm_bswap_i32(x) {
  45231. x = x|0;
  45232. return (((x&0xff)<<24) | (((x>>8)&0xff)<<16) | (((x>>16)&0xff)<<8) | (x>>>24))|0;
  45233. }
  45234. function dynCall_viiiii(index,a1,a2,a3,a4,a5) {
  45235. index = index|0;
  45236. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0; a5=a5|0;
  45237. FUNCTION_TABLE_viiiii[index&7](a1|0,a2|0,a3|0,a4|0,a5|0);
  45238. }
  45239. function dynCall_vd(index,a1) {
  45240. index = index|0;
  45241. a1=+a1;
  45242. FUNCTION_TABLE_vd[index&3](+a1);
  45243. }
  45244. function dynCall_vid(index,a1,a2) {
  45245. index = index|0;
  45246. a1=a1|0; a2=+a2;
  45247. FUNCTION_TABLE_vid[index&3](a1|0,+a2);
  45248. }
  45249. function dynCall_vi(index,a1) {
  45250. index = index|0;
  45251. a1=a1|0;
  45252. FUNCTION_TABLE_vi[index&31](a1|0);
  45253. }
  45254. function dynCall_vii(index,a1,a2) {
  45255. index = index|0;
  45256. a1=a1|0; a2=a2|0;
  45257. FUNCTION_TABLE_vii[index&63](a1|0,a2|0);
  45258. }
  45259. function dynCall_ii(index,a1) {
  45260. index = index|0;
  45261. a1=a1|0;
  45262. return FUNCTION_TABLE_ii[index&15](a1|0)|0;
  45263. }
  45264. function dynCall_viddd(index,a1,a2,a3,a4) {
  45265. index = index|0;
  45266. a1=a1|0; a2=+a2; a3=+a3; a4=+a4;
  45267. FUNCTION_TABLE_viddd[index&3](a1|0,+a2,+a3,+a4);
  45268. }
  45269. function dynCall_vidd(index,a1,a2,a3) {
  45270. index = index|0;
  45271. a1=a1|0; a2=+a2; a3=+a3;
  45272. FUNCTION_TABLE_vidd[index&7](a1|0,+a2,+a3);
  45273. }
  45274. function dynCall_iiii(index,a1,a2,a3) {
  45275. index = index|0;
  45276. a1=a1|0; a2=a2|0; a3=a3|0;
  45277. return FUNCTION_TABLE_iiii[index&15](a1|0,a2|0,a3|0)|0;
  45278. }
  45279. function dynCall_viiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8) {
  45280. index = index|0;
  45281. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0; a5=a5|0; a6=a6|0; a7=a7|0; a8=a8|0;
  45282. FUNCTION_TABLE_viiiiiiii[index&3](a1|0,a2|0,a3|0,a4|0,a5|0,a6|0,a7|0,a8|0);
  45283. }
  45284. function dynCall_viiiiii(index,a1,a2,a3,a4,a5,a6) {
  45285. index = index|0;
  45286. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0; a5=a5|0; a6=a6|0;
  45287. FUNCTION_TABLE_viiiiii[index&3](a1|0,a2|0,a3|0,a4|0,a5|0,a6|0);
  45288. }
  45289. function dynCall_viii(index,a1,a2,a3) {
  45290. index = index|0;
  45291. a1=a1|0; a2=a2|0; a3=a3|0;
  45292. FUNCTION_TABLE_viii[index&31](a1|0,a2|0,a3|0);
  45293. }
  45294. function dynCall_vidddd(index,a1,a2,a3,a4,a5) {
  45295. index = index|0;
  45296. a1=a1|0; a2=+a2; a3=+a3; a4=+a4; a5=+a5;
  45297. FUNCTION_TABLE_vidddd[index&3](a1|0,+a2,+a3,+a4,+a5);
  45298. }
  45299. function dynCall_vdi(index,a1,a2) {
  45300. index = index|0;
  45301. a1=+a1; a2=a2|0;
  45302. FUNCTION_TABLE_vdi[index&1](+a1,a2|0);
  45303. }
  45304. function dynCall_viiiiiii(index,a1,a2,a3,a4,a5,a6,a7) {
  45305. index = index|0;
  45306. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0; a5=a5|0; a6=a6|0; a7=a7|0;
  45307. FUNCTION_TABLE_viiiiiii[index&3](a1|0,a2|0,a3|0,a4|0,a5|0,a6|0,a7|0);
  45308. }
  45309. function dynCall_viiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9) {
  45310. index = index|0;
  45311. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0; a5=a5|0; a6=a6|0; a7=a7|0; a8=a8|0; a9=a9|0;
  45312. FUNCTION_TABLE_viiiiiiiii[index&3](a1|0,a2|0,a3|0,a4|0,a5|0,a6|0,a7|0,a8|0,a9|0);
  45313. }
  45314. function dynCall_iii(index,a1,a2) {
  45315. index = index|0;
  45316. a1=a1|0; a2=a2|0;
  45317. return FUNCTION_TABLE_iii[index&3](a1|0,a2|0)|0;
  45318. }
  45319. function dynCall_i(index) {
  45320. index = index|0;
  45321. return FUNCTION_TABLE_i[index&3]()|0;
  45322. }
  45323. function dynCall_vdddddd(index,a1,a2,a3,a4,a5,a6) {
  45324. index = index|0;
  45325. a1=+a1; a2=+a2; a3=+a3; a4=+a4; a5=+a5; a6=+a6;
  45326. FUNCTION_TABLE_vdddddd[index&1](+a1,+a2,+a3,+a4,+a5,+a6);
  45327. }
  45328. function dynCall_vdddd(index,a1,a2,a3,a4) {
  45329. index = index|0;
  45330. a1=+a1; a2=+a2; a3=+a3; a4=+a4;
  45331. FUNCTION_TABLE_vdddd[index&3](+a1,+a2,+a3,+a4);
  45332. }
  45333. function dynCall_vdd(index,a1,a2) {
  45334. index = index|0;
  45335. a1=+a1; a2=+a2;
  45336. FUNCTION_TABLE_vdd[index&3](+a1,+a2);
  45337. }
  45338. function dynCall_v(index) {
  45339. index = index|0;
  45340. FUNCTION_TABLE_v[index&7]();
  45341. }
  45342. function dynCall_viid(index,a1,a2,a3) {
  45343. index = index|0;
  45344. a1=a1|0; a2=a2|0; a3=+a3;
  45345. FUNCTION_TABLE_viid[index&1](a1|0,a2|0,+a3);
  45346. }
  45347. function dynCall_viiii(index,a1,a2,a3,a4) {
  45348. index = index|0;
  45349. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0;
  45350. FUNCTION_TABLE_viiii[index&31](a1|0,a2|0,a3|0,a4|0);
  45351. }
  45352. function b0(p0,p1,p2,p3,p4) {
  45353. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0; nullFunc_viiiii(0);
  45354. }
  45355. function _emscripten_glUniform4i__wrapper(p0,p1,p2,p3,p4) {
  45356. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0; _emscripten_glUniform4i(p0|0,p1|0,p2|0,p3|0,p4|0);
  45357. }
  45358. function _emscripten_glFramebufferTexture2D__wrapper(p0,p1,p2,p3,p4) {
  45359. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0; _emscripten_glFramebufferTexture2D(p0|0,p1|0,p2|0,p3|0,p4|0);
  45360. }
  45361. function _emscripten_glShaderBinary__wrapper(p0,p1,p2,p3,p4) {
  45362. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0; _emscripten_glShaderBinary(p0|0,p1|0,p2|0,p3|0,p4|0);
  45363. }
  45364. function _emscripten_glDrawElementsInstanced__wrapper(p0,p1,p2,p3,p4) {
  45365. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0; _emscripten_glDrawElementsInstanced(p0|0,p1|0,p2|0,p3|0,p4|0);
  45366. }
  45367. function b1(p0) {
  45368. p0 = +p0; nullFunc_vd(1);
  45369. }
  45370. function _emscripten_glClearDepth__wrapper(p0) {
  45371. p0 = +p0; _emscripten_glClearDepth(+p0);
  45372. }
  45373. function _emscripten_glClearDepthf__wrapper(p0) {
  45374. p0 = +p0; _emscripten_glClearDepthf(+p0);
  45375. }
  45376. function _emscripten_glLineWidth__wrapper(p0) {
  45377. p0 = +p0; _emscripten_glLineWidth(+p0);
  45378. }
  45379. function b2(p0,p1) {
  45380. p0 = p0|0;p1 = +p1; nullFunc_vid(2);
  45381. }
  45382. function _emscripten_glUniform1f__wrapper(p0,p1) {
  45383. p0 = p0|0;p1 = +p1; _emscripten_glUniform1f(p0|0,+p1);
  45384. }
  45385. function _emscripten_glVertexAttrib1f__wrapper(p0,p1) {
  45386. p0 = p0|0;p1 = +p1; _emscripten_glVertexAttrib1f(p0|0,+p1);
  45387. }
  45388. function b3(p0) {
  45389. p0 = p0|0; nullFunc_vi(3);
  45390. }
  45391. function _emscripten_glDeleteShader__wrapper(p0) {
  45392. p0 = p0|0; _emscripten_glDeleteShader(p0|0);
  45393. }
  45394. function _emscripten_glCompileShader__wrapper(p0) {
  45395. p0 = p0|0; _emscripten_glCompileShader(p0|0);
  45396. }
  45397. function _emscripten_glDeleteProgram__wrapper(p0) {
  45398. p0 = p0|0; _emscripten_glDeleteProgram(p0|0);
  45399. }
  45400. function _emscripten_glLinkProgram__wrapper(p0) {
  45401. p0 = p0|0; _emscripten_glLinkProgram(p0|0);
  45402. }
  45403. function _emscripten_glUseProgram__wrapper(p0) {
  45404. p0 = p0|0; _emscripten_glUseProgram(p0|0);
  45405. }
  45406. function _emscripten_glValidateProgram__wrapper(p0) {
  45407. p0 = p0|0; _emscripten_glValidateProgram(p0|0);
  45408. }
  45409. function _emscripten_glDeleteObjectARB__wrapper(p0) {
  45410. p0 = p0|0; _emscripten_glDeleteObjectARB(p0|0);
  45411. }
  45412. function _emscripten_glEnableClientState__wrapper(p0) {
  45413. p0 = p0|0; _emscripten_glEnableClientState(p0|0);
  45414. }
  45415. function _emscripten_glClientActiveTexture__wrapper(p0) {
  45416. p0 = p0|0; _emscripten_glClientActiveTexture(p0|0);
  45417. }
  45418. function _emscripten_glBindVertexArray__wrapper(p0) {
  45419. p0 = p0|0; _emscripten_glBindVertexArray(p0|0);
  45420. }
  45421. function _emscripten_glMatrixMode__wrapper(p0) {
  45422. p0 = p0|0; _emscripten_glMatrixMode(p0|0);
  45423. }
  45424. function _emscripten_glLoadMatrixf__wrapper(p0) {
  45425. p0 = p0|0; _emscripten_glLoadMatrixf(p0|0);
  45426. }
  45427. function _emscripten_glEnableVertexAttribArray__wrapper(p0) {
  45428. p0 = p0|0; _emscripten_glEnableVertexAttribArray(p0|0);
  45429. }
  45430. function _emscripten_glDisableVertexAttribArray__wrapper(p0) {
  45431. p0 = p0|0; _emscripten_glDisableVertexAttribArray(p0|0);
  45432. }
  45433. function _emscripten_glDepthFunc__wrapper(p0) {
  45434. p0 = p0|0; _emscripten_glDepthFunc(p0|0);
  45435. }
  45436. function _emscripten_glEnable__wrapper(p0) {
  45437. p0 = p0|0; _emscripten_glEnable(p0|0);
  45438. }
  45439. function _emscripten_glDisable__wrapper(p0) {
  45440. p0 = p0|0; _emscripten_glDisable(p0|0);
  45441. }
  45442. function _emscripten_glFrontFace__wrapper(p0) {
  45443. p0 = p0|0; _emscripten_glFrontFace(p0|0);
  45444. }
  45445. function _emscripten_glCullFace__wrapper(p0) {
  45446. p0 = p0|0; _emscripten_glCullFace(p0|0);
  45447. }
  45448. function _emscripten_glClear__wrapper(p0) {
  45449. p0 = p0|0; _emscripten_glClear(p0|0);
  45450. }
  45451. function _emscripten_glClearStencil__wrapper(p0) {
  45452. p0 = p0|0; _emscripten_glClearStencil(p0|0);
  45453. }
  45454. function _emscripten_glDepthMask__wrapper(p0) {
  45455. p0 = p0|0; _emscripten_glDepthMask(p0|0);
  45456. }
  45457. function _emscripten_glStencilMask__wrapper(p0) {
  45458. p0 = p0|0; _emscripten_glStencilMask(p0|0);
  45459. }
  45460. function _emscripten_glGenerateMipmap__wrapper(p0) {
  45461. p0 = p0|0; _emscripten_glGenerateMipmap(p0|0);
  45462. }
  45463. function _emscripten_glActiveTexture__wrapper(p0) {
  45464. p0 = p0|0; _emscripten_glActiveTexture(p0|0);
  45465. }
  45466. function _emscripten_glBlendEquation__wrapper(p0) {
  45467. p0 = p0|0; _emscripten_glBlendEquation(p0|0);
  45468. }
  45469. function b4(p0,p1) {
  45470. p0 = p0|0;p1 = p1|0; nullFunc_vii(4);
  45471. }
  45472. function _emscripten_glPixelStorei__wrapper(p0,p1) {
  45473. p0 = p0|0;p1 = p1|0; _emscripten_glPixelStorei(p0|0,p1|0);
  45474. }
  45475. function _emscripten_glGetIntegerv__wrapper(p0,p1) {
  45476. p0 = p0|0;p1 = p1|0; _emscripten_glGetIntegerv(p0|0,p1|0);
  45477. }
  45478. function _emscripten_glGetFloatv__wrapper(p0,p1) {
  45479. p0 = p0|0;p1 = p1|0; _emscripten_glGetFloatv(p0|0,p1|0);
  45480. }
  45481. function _emscripten_glGetBooleanv__wrapper(p0,p1) {
  45482. p0 = p0|0;p1 = p1|0; _emscripten_glGetBooleanv(p0|0,p1|0);
  45483. }
  45484. function _emscripten_glGenTextures__wrapper(p0,p1) {
  45485. p0 = p0|0;p1 = p1|0; _emscripten_glGenTextures(p0|0,p1|0);
  45486. }
  45487. function _emscripten_glDeleteTextures__wrapper(p0,p1) {
  45488. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteTextures(p0|0,p1|0);
  45489. }
  45490. function _emscripten_glBindTexture__wrapper(p0,p1) {
  45491. p0 = p0|0;p1 = p1|0; _emscripten_glBindTexture(p0|0,p1|0);
  45492. }
  45493. function _emscripten_glGenBuffers__wrapper(p0,p1) {
  45494. p0 = p0|0;p1 = p1|0; _emscripten_glGenBuffers(p0|0,p1|0);
  45495. }
  45496. function _emscripten_glDeleteBuffers__wrapper(p0,p1) {
  45497. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteBuffers(p0|0,p1|0);
  45498. }
  45499. function _emscripten_glGenRenderbuffers__wrapper(p0,p1) {
  45500. p0 = p0|0;p1 = p1|0; _emscripten_glGenRenderbuffers(p0|0,p1|0);
  45501. }
  45502. function _emscripten_glDeleteRenderbuffers__wrapper(p0,p1) {
  45503. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteRenderbuffers(p0|0,p1|0);
  45504. }
  45505. function _emscripten_glBindRenderbuffer__wrapper(p0,p1) {
  45506. p0 = p0|0;p1 = p1|0; _emscripten_glBindRenderbuffer(p0|0,p1|0);
  45507. }
  45508. function _emscripten_glUniform1i__wrapper(p0,p1) {
  45509. p0 = p0|0;p1 = p1|0; _emscripten_glUniform1i(p0|0,p1|0);
  45510. }
  45511. function _emscripten_glBindBuffer__wrapper(p0,p1) {
  45512. p0 = p0|0;p1 = p1|0; _emscripten_glBindBuffer(p0|0,p1|0);
  45513. }
  45514. function _emscripten_glVertexAttrib1fv__wrapper(p0,p1) {
  45515. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttrib1fv(p0|0,p1|0);
  45516. }
  45517. function _emscripten_glVertexAttrib2fv__wrapper(p0,p1) {
  45518. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttrib2fv(p0|0,p1|0);
  45519. }
  45520. function _emscripten_glVertexAttrib3fv__wrapper(p0,p1) {
  45521. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttrib3fv(p0|0,p1|0);
  45522. }
  45523. function _emscripten_glVertexAttrib4fv__wrapper(p0,p1) {
  45524. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttrib4fv(p0|0,p1|0);
  45525. }
  45526. function _emscripten_glAttachShader__wrapper(p0,p1) {
  45527. p0 = p0|0;p1 = p1|0; _emscripten_glAttachShader(p0|0,p1|0);
  45528. }
  45529. function _emscripten_glDetachShader__wrapper(p0,p1) {
  45530. p0 = p0|0;p1 = p1|0; _emscripten_glDetachShader(p0|0,p1|0);
  45531. }
  45532. function _emscripten_glBindFramebuffer__wrapper(p0,p1) {
  45533. p0 = p0|0;p1 = p1|0; _emscripten_glBindFramebuffer(p0|0,p1|0);
  45534. }
  45535. function _emscripten_glGenFramebuffers__wrapper(p0,p1) {
  45536. p0 = p0|0;p1 = p1|0; _emscripten_glGenFramebuffers(p0|0,p1|0);
  45537. }
  45538. function _emscripten_glDeleteFramebuffers__wrapper(p0,p1) {
  45539. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteFramebuffers(p0|0,p1|0);
  45540. }
  45541. function _emscripten_glBindProgramARB__wrapper(p0,p1) {
  45542. p0 = p0|0;p1 = p1|0; _emscripten_glBindProgramARB(p0|0,p1|0);
  45543. }
  45544. function _emscripten_glGetPointerv__wrapper(p0,p1) {
  45545. p0 = p0|0;p1 = p1|0; _emscripten_glGetPointerv(p0|0,p1|0);
  45546. }
  45547. function _emscripten_glGenVertexArrays__wrapper(p0,p1) {
  45548. p0 = p0|0;p1 = p1|0; _emscripten_glGenVertexArrays(p0|0,p1|0);
  45549. }
  45550. function _emscripten_glDeleteVertexArrays__wrapper(p0,p1) {
  45551. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteVertexArrays(p0|0,p1|0);
  45552. }
  45553. function _emscripten_glVertexAttribDivisor__wrapper(p0,p1) {
  45554. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttribDivisor(p0|0,p1|0);
  45555. }
  45556. function _emscripten_glBlendFunc__wrapper(p0,p1) {
  45557. p0 = p0|0;p1 = p1|0; _emscripten_glBlendFunc(p0|0,p1|0);
  45558. }
  45559. function _emscripten_glBlendEquationSeparate__wrapper(p0,p1) {
  45560. p0 = p0|0;p1 = p1|0; _emscripten_glBlendEquationSeparate(p0|0,p1|0);
  45561. }
  45562. function _emscripten_glStencilMaskSeparate__wrapper(p0,p1) {
  45563. p0 = p0|0;p1 = p1|0; _emscripten_glStencilMaskSeparate(p0|0,p1|0);
  45564. }
  45565. function _emscripten_glHint__wrapper(p0,p1) {
  45566. p0 = p0|0;p1 = p1|0; _emscripten_glHint(p0|0,p1|0);
  45567. }
  45568. function _emscripten_glDrawBuffers__wrapper(p0,p1) {
  45569. p0 = p0|0;p1 = p1|0; _emscripten_glDrawBuffers(p0|0,p1|0);
  45570. }
  45571. function b5(p0) {
  45572. p0 = p0|0; nullFunc_ii(5);return 0;
  45573. }
  45574. function _emscripten_glGetString__wrapper(p0) {
  45575. p0 = p0|0; return _emscripten_glGetString(p0|0)|0;
  45576. }
  45577. function _emscripten_glIsTexture__wrapper(p0) {
  45578. p0 = p0|0; return _emscripten_glIsTexture(p0|0)|0;
  45579. }
  45580. function _emscripten_glIsBuffer__wrapper(p0) {
  45581. p0 = p0|0; return _emscripten_glIsBuffer(p0|0)|0;
  45582. }
  45583. function _emscripten_glIsRenderbuffer__wrapper(p0) {
  45584. p0 = p0|0; return _emscripten_glIsRenderbuffer(p0|0)|0;
  45585. }
  45586. function _emscripten_glCreateShader__wrapper(p0) {
  45587. p0 = p0|0; return _emscripten_glCreateShader(p0|0)|0;
  45588. }
  45589. function _emscripten_glIsShader__wrapper(p0) {
  45590. p0 = p0|0; return _emscripten_glIsShader(p0|0)|0;
  45591. }
  45592. function _emscripten_glIsProgram__wrapper(p0) {
  45593. p0 = p0|0; return _emscripten_glIsProgram(p0|0)|0;
  45594. }
  45595. function _emscripten_glIsFramebuffer__wrapper(p0) {
  45596. p0 = p0|0; return _emscripten_glIsFramebuffer(p0|0)|0;
  45597. }
  45598. function _emscripten_glCheckFramebufferStatus__wrapper(p0) {
  45599. p0 = p0|0; return _emscripten_glCheckFramebufferStatus(p0|0)|0;
  45600. }
  45601. function _emscripten_glIsEnabled__wrapper(p0) {
  45602. p0 = p0|0; return _emscripten_glIsEnabled(p0|0)|0;
  45603. }
  45604. function b6(p0,p1,p2,p3) {
  45605. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3; nullFunc_viddd(6);
  45606. }
  45607. function _emscripten_glUniform3f__wrapper(p0,p1,p2,p3) {
  45608. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glUniform3f(p0|0,+p1,+p2,+p3);
  45609. }
  45610. function _emscripten_glVertexAttrib3f__wrapper(p0,p1,p2,p3) {
  45611. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glVertexAttrib3f(p0|0,+p1,+p2,+p3);
  45612. }
  45613. function b7(p0,p1,p2) {
  45614. p0 = p0|0;p1 = +p1;p2 = +p2; nullFunc_vidd(7);
  45615. }
  45616. function _emscripten_glUniform2f__wrapper(p0,p1,p2) {
  45617. p0 = p0|0;p1 = +p1;p2 = +p2; _emscripten_glUniform2f(p0|0,+p1,+p2);
  45618. }
  45619. function _emscripten_glVertexAttrib2f__wrapper(p0,p1,p2) {
  45620. p0 = p0|0;p1 = +p1;p2 = +p2; _emscripten_glVertexAttrib2f(p0|0,+p1,+p2);
  45621. }
  45622. function b8(p0,p1,p2) {
  45623. p0 = p0|0;p1 = p1|0;p2 = p2|0; nullFunc_iiii(8);return 0;
  45624. }
  45625. function b9(p0,p1,p2,p3,p4,p5,p6,p7) {
  45626. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0;p5 = p5|0;p6 = p6|0;p7 = p7|0; nullFunc_viiiiiiii(9);
  45627. }
  45628. function _emscripten_glCompressedTexImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7) {
  45629. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0;p5 = p5|0;p6 = p6|0;p7 = p7|0; _emscripten_glCompressedTexImage2D(p0|0,p1|0,p2|0,p3|0,p4|0,p5|0,p6|0,p7|0);
  45630. }
  45631. function _emscripten_glCopyTexImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7) {
  45632. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0;p5 = p5|0;p6 = p6|0;p7 = p7|0; _emscripten_glCopyTexImage2D(p0|0,p1|0,p2|0,p3|0,p4|0,p5|0,p6|0,p7|0);
  45633. }
  45634. function _emscripten_glCopyTexSubImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7) {
  45635. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0;p5 = p5|0;p6 = p6|0;p7 = p7|0; _emscripten_glCopyTexSubImage2D(p0|0,p1|0,p2|0,p3|0,p4|0,p5|0,p6|0,p7|0);
  45636. }
  45637. function b10(p0,p1,p2,p3,p4,p5) {
  45638. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0;p5 = p5|0; nullFunc_viiiiii(10);
  45639. }
  45640. function _emscripten_glDrawRangeElements__wrapper(p0,p1,p2,p3,p4,p5) {
  45641. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0;p5 = p5|0; _emscripten_glDrawRangeElements(p0|0,p1|0,p2|0,p3|0,p4|0,p5|0);
  45642. }
  45643. function _emscripten_glVertexAttribPointer__wrapper(p0,p1,p2,p3,p4,p5) {
  45644. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0;p5 = p5|0; _emscripten_glVertexAttribPointer(p0|0,p1|0,p2|0,p3|0,p4|0,p5|0);
  45645. }
  45646. function b11(p0,p1,p2) {
  45647. p0 = p0|0;p1 = p1|0;p2 = p2|0; nullFunc_viii(11);
  45648. }
  45649. function _emscripten_glGetTexParameterfv__wrapper(p0,p1,p2) {
  45650. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetTexParameterfv(p0|0,p1|0,p2|0);
  45651. }
  45652. function _emscripten_glGetTexParameteriv__wrapper(p0,p1,p2) {
  45653. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetTexParameteriv(p0|0,p1|0,p2|0);
  45654. }
  45655. function _emscripten_glTexParameterfv__wrapper(p0,p1,p2) {
  45656. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glTexParameterfv(p0|0,p1|0,p2|0);
  45657. }
  45658. function _emscripten_glTexParameteriv__wrapper(p0,p1,p2) {
  45659. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glTexParameteriv(p0|0,p1|0,p2|0);
  45660. }
  45661. function _emscripten_glGetBufferParameteriv__wrapper(p0,p1,p2) {
  45662. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetBufferParameteriv(p0|0,p1|0,p2|0);
  45663. }
  45664. function _emscripten_glGetRenderbufferParameteriv__wrapper(p0,p1,p2) {
  45665. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetRenderbufferParameteriv(p0|0,p1|0,p2|0);
  45666. }
  45667. function _emscripten_glGetUniformfv__wrapper(p0,p1,p2) {
  45668. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetUniformfv(p0|0,p1|0,p2|0);
  45669. }
  45670. function _emscripten_glGetUniformiv__wrapper(p0,p1,p2) {
  45671. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetUniformiv(p0|0,p1|0,p2|0);
  45672. }
  45673. function _emscripten_glGetVertexAttribfv__wrapper(p0,p1,p2) {
  45674. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetVertexAttribfv(p0|0,p1|0,p2|0);
  45675. }
  45676. function _emscripten_glGetVertexAttribiv__wrapper(p0,p1,p2) {
  45677. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetVertexAttribiv(p0|0,p1|0,p2|0);
  45678. }
  45679. function _emscripten_glGetVertexAttribPointerv__wrapper(p0,p1,p2) {
  45680. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetVertexAttribPointerv(p0|0,p1|0,p2|0);
  45681. }
  45682. function _emscripten_glUniform2i__wrapper(p0,p1,p2) {
  45683. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform2i(p0|0,p1|0,p2|0);
  45684. }
  45685. function _emscripten_glUniform1iv__wrapper(p0,p1,p2) {
  45686. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform1iv(p0|0,p1|0,p2|0);
  45687. }
  45688. function _emscripten_glUniform2iv__wrapper(p0,p1,p2) {
  45689. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform2iv(p0|0,p1|0,p2|0);
  45690. }
  45691. function _emscripten_glUniform3iv__wrapper(p0,p1,p2) {
  45692. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform3iv(p0|0,p1|0,p2|0);
  45693. }
  45694. function _emscripten_glUniform4iv__wrapper(p0,p1,p2) {
  45695. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform4iv(p0|0,p1|0,p2|0);
  45696. }
  45697. function _emscripten_glUniform1fv__wrapper(p0,p1,p2) {
  45698. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform1fv(p0|0,p1|0,p2|0);
  45699. }
  45700. function _emscripten_glUniform2fv__wrapper(p0,p1,p2) {
  45701. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform2fv(p0|0,p1|0,p2|0);
  45702. }
  45703. function _emscripten_glUniform3fv__wrapper(p0,p1,p2) {
  45704. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform3fv(p0|0,p1|0,p2|0);
  45705. }
  45706. function _emscripten_glUniform4fv__wrapper(p0,p1,p2) {
  45707. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform4fv(p0|0,p1|0,p2|0);
  45708. }
  45709. function _emscripten_glGetShaderiv__wrapper(p0,p1,p2) {
  45710. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetShaderiv(p0|0,p1|0,p2|0);
  45711. }
  45712. function _emscripten_glGetProgramiv__wrapper(p0,p1,p2) {
  45713. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetProgramiv(p0|0,p1|0,p2|0);
  45714. }
  45715. function _emscripten_glBindAttribLocation__wrapper(p0,p1,p2) {
  45716. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glBindAttribLocation(p0|0,p1|0,p2|0);
  45717. }
  45718. function _emscripten_glGetObjectParameterivARB__wrapper(p0,p1,p2) {
  45719. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetObjectParameterivARB(p0|0,p1|0,p2|0);
  45720. }
  45721. function _emscripten_glNormalPointer__wrapper(p0,p1,p2) {
  45722. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glNormalPointer(p0|0,p1|0,p2|0);
  45723. }
  45724. function _emscripten_glDrawArrays__wrapper(p0,p1,p2) {
  45725. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glDrawArrays(p0|0,p1|0,p2|0);
  45726. }
  45727. function _emscripten_glTexParameteri__wrapper(p0,p1,p2) {
  45728. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glTexParameteri(p0|0,p1|0,p2|0);
  45729. }
  45730. function _emscripten_glStencilFunc__wrapper(p0,p1,p2) {
  45731. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glStencilFunc(p0|0,p1|0,p2|0);
  45732. }
  45733. function _emscripten_glStencilOp__wrapper(p0,p1,p2) {
  45734. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glStencilOp(p0|0,p1|0,p2|0);
  45735. }
  45736. function b12(p0,p1,p2,p3,p4) {
  45737. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4; nullFunc_vidddd(12);
  45738. }
  45739. function _emscripten_glUniform4f__wrapper(p0,p1,p2,p3,p4) {
  45740. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4; _emscripten_glUniform4f(p0|0,+p1,+p2,+p3,+p4);
  45741. }
  45742. function _emscripten_glVertexAttrib4f__wrapper(p0,p1,p2,p3,p4) {
  45743. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4; _emscripten_glVertexAttrib4f(p0|0,+p1,+p2,+p3,+p4);
  45744. }
  45745. function b13(p0,p1) {
  45746. p0 = +p0;p1 = p1|0; nullFunc_vdi(13);
  45747. }
  45748. function _emscripten_glSampleCoverage__wrapper(p0,p1) {
  45749. p0 = +p0;p1 = p1|0; _emscripten_glSampleCoverage(+p0,p1|0);
  45750. }
  45751. function b14(p0,p1,p2,p3,p4,p5,p6) {
  45752. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0;p5 = p5|0;p6 = p6|0; nullFunc_viiiiiii(14);
  45753. }
  45754. function _emscripten_glReadPixels__wrapper(p0,p1,p2,p3,p4,p5,p6) {
  45755. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0;p5 = p5|0;p6 = p6|0; _emscripten_glReadPixels(p0|0,p1|0,p2|0,p3|0,p4|0,p5|0,p6|0);
  45756. }
  45757. function _emscripten_glGetActiveUniform__wrapper(p0,p1,p2,p3,p4,p5,p6) {
  45758. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0;p5 = p5|0;p6 = p6|0; _emscripten_glGetActiveUniform(p0|0,p1|0,p2|0,p3|0,p4|0,p5|0,p6|0);
  45759. }
  45760. function _emscripten_glGetActiveAttrib__wrapper(p0,p1,p2,p3,p4,p5,p6) {
  45761. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0;p5 = p5|0;p6 = p6|0; _emscripten_glGetActiveAttrib(p0|0,p1|0,p2|0,p3|0,p4|0,p5|0,p6|0);
  45762. }
  45763. function b15(p0,p1,p2,p3,p4,p5,p6,p7,p8) {
  45764. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0;p5 = p5|0;p6 = p6|0;p7 = p7|0;p8 = p8|0; nullFunc_viiiiiiiii(15);
  45765. }
  45766. function _emscripten_glCompressedTexSubImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7,p8) {
  45767. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0;p5 = p5|0;p6 = p6|0;p7 = p7|0;p8 = p8|0; _emscripten_glCompressedTexSubImage2D(p0|0,p1|0,p2|0,p3|0,p4|0,p5|0,p6|0,p7|0,p8|0);
  45768. }
  45769. function _emscripten_glTexImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7,p8) {
  45770. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0;p5 = p5|0;p6 = p6|0;p7 = p7|0;p8 = p8|0; _emscripten_glTexImage2D(p0|0,p1|0,p2|0,p3|0,p4|0,p5|0,p6|0,p7|0,p8|0);
  45771. }
  45772. function _emscripten_glTexSubImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7,p8) {
  45773. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0;p5 = p5|0;p6 = p6|0;p7 = p7|0;p8 = p8|0; _emscripten_glTexSubImage2D(p0|0,p1|0,p2|0,p3|0,p4|0,p5|0,p6|0,p7|0,p8|0);
  45774. }
  45775. function b16(p0,p1) {
  45776. p0 = p0|0;p1 = p1|0; nullFunc_iii(16);return 0;
  45777. }
  45778. function _emscripten_glGetUniformLocation__wrapper(p0,p1) {
  45779. p0 = p0|0;p1 = p1|0; return _emscripten_glGetUniformLocation(p0|0,p1|0)|0;
  45780. }
  45781. function _emscripten_glGetAttribLocation__wrapper(p0,p1) {
  45782. p0 = p0|0;p1 = p1|0; return _emscripten_glGetAttribLocation(p0|0,p1|0)|0;
  45783. }
  45784. function b17() {
  45785. ; nullFunc_i(17);return 0;
  45786. }
  45787. function _emscripten_glCreateProgram__wrapper() {
  45788. ; return _emscripten_glCreateProgram()|0;
  45789. }
  45790. function _emscripten_glGetError__wrapper() {
  45791. ; return _emscripten_glGetError()|0;
  45792. }
  45793. function b18(p0,p1,p2,p3,p4,p5) {
  45794. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4;p5 = +p5; nullFunc_vdddddd(18);
  45795. }
  45796. function _emscripten_glFrustum__wrapper(p0,p1,p2,p3,p4,p5) {
  45797. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4;p5 = +p5; _emscripten_glFrustum(+p0,+p1,+p2,+p3,+p4,+p5);
  45798. }
  45799. function b19(p0,p1,p2,p3) {
  45800. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3; nullFunc_vdddd(19);
  45801. }
  45802. function _emscripten_glRotatef__wrapper(p0,p1,p2,p3) {
  45803. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glRotatef(+p0,+p1,+p2,+p3);
  45804. }
  45805. function _emscripten_glClearColor__wrapper(p0,p1,p2,p3) {
  45806. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glClearColor(+p0,+p1,+p2,+p3);
  45807. }
  45808. function _emscripten_glBlendColor__wrapper(p0,p1,p2,p3) {
  45809. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glBlendColor(+p0,+p1,+p2,+p3);
  45810. }
  45811. function b20(p0,p1) {
  45812. p0 = +p0;p1 = +p1; nullFunc_vdd(20);
  45813. }
  45814. function _emscripten_glDepthRange__wrapper(p0,p1) {
  45815. p0 = +p0;p1 = +p1; _emscripten_glDepthRange(+p0,+p1);
  45816. }
  45817. function _emscripten_glDepthRangef__wrapper(p0,p1) {
  45818. p0 = +p0;p1 = +p1; _emscripten_glDepthRangef(+p0,+p1);
  45819. }
  45820. function _emscripten_glPolygonOffset__wrapper(p0,p1) {
  45821. p0 = +p0;p1 = +p1; _emscripten_glPolygonOffset(+p0,+p1);
  45822. }
  45823. function b21() {
  45824. ; nullFunc_v(21);
  45825. }
  45826. function _emscripten_glLoadIdentity__wrapper() {
  45827. ; _emscripten_glLoadIdentity();
  45828. }
  45829. function _emscripten_glReleaseShaderCompiler__wrapper() {
  45830. ; _emscripten_glReleaseShaderCompiler();
  45831. }
  45832. function _emscripten_glFinish__wrapper() {
  45833. ; _emscripten_glFinish();
  45834. }
  45835. function _emscripten_glFlush__wrapper() {
  45836. ; _emscripten_glFlush();
  45837. }
  45838. function b22(p0,p1,p2) {
  45839. p0 = p0|0;p1 = p1|0;p2 = +p2; nullFunc_viid(22);
  45840. }
  45841. function _emscripten_glTexParameterf__wrapper(p0,p1,p2) {
  45842. p0 = p0|0;p1 = p1|0;p2 = +p2; _emscripten_glTexParameterf(p0|0,p1|0,+p2);
  45843. }
  45844. function b23(p0,p1,p2,p3) {
  45845. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; nullFunc_viiii(23);
  45846. }
  45847. function _emscripten_glBufferData__wrapper(p0,p1,p2,p3) {
  45848. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glBufferData(p0|0,p1|0,p2|0,p3|0);
  45849. }
  45850. function _emscripten_glBufferSubData__wrapper(p0,p1,p2,p3) {
  45851. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glBufferSubData(p0|0,p1|0,p2|0,p3|0);
  45852. }
  45853. function _emscripten_glUniform3i__wrapper(p0,p1,p2,p3) {
  45854. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glUniform3i(p0|0,p1|0,p2|0,p3|0);
  45855. }
  45856. function _emscripten_glUniformMatrix2fv__wrapper(p0,p1,p2,p3) {
  45857. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glUniformMatrix2fv(p0|0,p1|0,p2|0,p3|0);
  45858. }
  45859. function _emscripten_glUniformMatrix3fv__wrapper(p0,p1,p2,p3) {
  45860. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glUniformMatrix3fv(p0|0,p1|0,p2|0,p3|0);
  45861. }
  45862. function _emscripten_glUniformMatrix4fv__wrapper(p0,p1,p2,p3) {
  45863. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glUniformMatrix4fv(p0|0,p1|0,p2|0,p3|0);
  45864. }
  45865. function _emscripten_glGetAttachedShaders__wrapper(p0,p1,p2,p3) {
  45866. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetAttachedShaders(p0|0,p1|0,p2|0,p3|0);
  45867. }
  45868. function _emscripten_glShaderSource__wrapper(p0,p1,p2,p3) {
  45869. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glShaderSource(p0|0,p1|0,p2|0,p3|0);
  45870. }
  45871. function _emscripten_glGetShaderSource__wrapper(p0,p1,p2,p3) {
  45872. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetShaderSource(p0|0,p1|0,p2|0,p3|0);
  45873. }
  45874. function _emscripten_glGetShaderInfoLog__wrapper(p0,p1,p2,p3) {
  45875. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetShaderInfoLog(p0|0,p1|0,p2|0,p3|0);
  45876. }
  45877. function _emscripten_glGetShaderPrecisionFormat__wrapper(p0,p1,p2,p3) {
  45878. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetShaderPrecisionFormat(p0|0,p1|0,p2|0,p3|0);
  45879. }
  45880. function _emscripten_glGetProgramInfoLog__wrapper(p0,p1,p2,p3) {
  45881. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetProgramInfoLog(p0|0,p1|0,p2|0,p3|0);
  45882. }
  45883. function _emscripten_glFramebufferRenderbuffer__wrapper(p0,p1,p2,p3) {
  45884. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glFramebufferRenderbuffer(p0|0,p1|0,p2|0,p3|0);
  45885. }
  45886. function _emscripten_glGetFramebufferAttachmentParameteriv__wrapper(p0,p1,p2,p3) {
  45887. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetFramebufferAttachmentParameteriv(p0|0,p1|0,p2|0,p3|0);
  45888. }
  45889. function _emscripten_glGetInfoLogARB__wrapper(p0,p1,p2,p3) {
  45890. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetInfoLogARB(p0|0,p1|0,p2|0,p3|0);
  45891. }
  45892. function _emscripten_glVertexPointer__wrapper(p0,p1,p2,p3) {
  45893. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glVertexPointer(p0|0,p1|0,p2|0,p3|0);
  45894. }
  45895. function _emscripten_glTexCoordPointer__wrapper(p0,p1,p2,p3) {
  45896. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glTexCoordPointer(p0|0,p1|0,p2|0,p3|0);
  45897. }
  45898. function _emscripten_glColorPointer__wrapper(p0,p1,p2,p3) {
  45899. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glColorPointer(p0|0,p1|0,p2|0,p3|0);
  45900. }
  45901. function _emscripten_glDrawElements__wrapper(p0,p1,p2,p3) {
  45902. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glDrawElements(p0|0,p1|0,p2|0,p3|0);
  45903. }
  45904. function _emscripten_glDrawArraysInstanced__wrapper(p0,p1,p2,p3) {
  45905. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glDrawArraysInstanced(p0|0,p1|0,p2|0,p3|0);
  45906. }
  45907. function _emscripten_glViewport__wrapper(p0,p1,p2,p3) {
  45908. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glViewport(p0|0,p1|0,p2|0,p3|0);
  45909. }
  45910. function _emscripten_glScissor__wrapper(p0,p1,p2,p3) {
  45911. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glScissor(p0|0,p1|0,p2|0,p3|0);
  45912. }
  45913. function _emscripten_glColorMask__wrapper(p0,p1,p2,p3) {
  45914. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glColorMask(p0|0,p1|0,p2|0,p3|0);
  45915. }
  45916. function _emscripten_glRenderbufferStorage__wrapper(p0,p1,p2,p3) {
  45917. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glRenderbufferStorage(p0|0,p1|0,p2|0,p3|0);
  45918. }
  45919. function _emscripten_glBlendFuncSeparate__wrapper(p0,p1,p2,p3) {
  45920. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glBlendFuncSeparate(p0|0,p1|0,p2|0,p3|0);
  45921. }
  45922. function _emscripten_glStencilFuncSeparate__wrapper(p0,p1,p2,p3) {
  45923. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glStencilFuncSeparate(p0|0,p1|0,p2|0,p3|0);
  45924. }
  45925. function _emscripten_glStencilOpSeparate__wrapper(p0,p1,p2,p3) {
  45926. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glStencilOpSeparate(p0|0,p1|0,p2|0,p3|0);
  45927. }
  45928. // EMSCRIPTEN_END_FUNCS
  45929. var FUNCTION_TABLE_viiiii = [b0,_KeyCallback,_emscripten_glUniform4i__wrapper,_emscripten_glFramebufferTexture2D__wrapper,_emscripten_glShaderBinary__wrapper,_emscripten_glDrawElementsInstanced__wrapper,b0,b0];
  45930. var FUNCTION_TABLE_vd = [b1,_emscripten_glClearDepth__wrapper,_emscripten_glClearDepthf__wrapper,_emscripten_glLineWidth__wrapper];
  45931. var FUNCTION_TABLE_vid = [b2,_emscripten_glUniform1f__wrapper,_emscripten_glVertexAttrib1f__wrapper,b2];
  45932. var FUNCTION_TABLE_vi = [b3,_emscripten_glDeleteShader__wrapper,_emscripten_glCompileShader__wrapper,_emscripten_glDeleteProgram__wrapper,_emscripten_glLinkProgram__wrapper,_emscripten_glUseProgram__wrapper,_emscripten_glValidateProgram__wrapper,_emscripten_glDeleteObjectARB__wrapper,_emscripten_glEnableClientState__wrapper,_emscripten_glClientActiveTexture__wrapper,_emscripten_glBindVertexArray__wrapper,_emscripten_glMatrixMode__wrapper,_emscripten_glLoadMatrixf__wrapper,_emscripten_glEnableVertexAttribArray__wrapper,_emscripten_glDisableVertexAttribArray__wrapper,_emscripten_glDepthFunc__wrapper,_emscripten_glEnable__wrapper,_emscripten_glDisable__wrapper,_emscripten_glFrontFace__wrapper,_emscripten_glCullFace__wrapper,_emscripten_glClear__wrapper,_emscripten_glClearStencil__wrapper,_emscripten_glDepthMask__wrapper,_emscripten_glStencilMask__wrapper,_emscripten_glGenerateMipmap__wrapper,_emscripten_glActiveTexture__wrapper,_emscripten_glBlendEquation__wrapper,b3,b3
  45933. ,b3,b3,b3];
  45934. var FUNCTION_TABLE_vii = [b4,_stbi__stdio_skip,_ErrorCallback,_CursorEnterCallback,_CharCallback,_WindowIconifyCallback,_emscripten_glPixelStorei__wrapper,_emscripten_glGetIntegerv__wrapper,_emscripten_glGetFloatv__wrapper,_emscripten_glGetBooleanv__wrapper,_emscripten_glGenTextures__wrapper,_emscripten_glDeleteTextures__wrapper,_emscripten_glBindTexture__wrapper,_emscripten_glGenBuffers__wrapper,_emscripten_glDeleteBuffers__wrapper,_emscripten_glGenRenderbuffers__wrapper,_emscripten_glDeleteRenderbuffers__wrapper,_emscripten_glBindRenderbuffer__wrapper,_emscripten_glUniform1i__wrapper,_emscripten_glBindBuffer__wrapper,_emscripten_glVertexAttrib1fv__wrapper,_emscripten_glVertexAttrib2fv__wrapper,_emscripten_glVertexAttrib3fv__wrapper,_emscripten_glVertexAttrib4fv__wrapper,_emscripten_glAttachShader__wrapper,_emscripten_glDetachShader__wrapper,_emscripten_glBindFramebuffer__wrapper,_emscripten_glGenFramebuffers__wrapper,_emscripten_glDeleteFramebuffers__wrapper,_emscripten_glBindProgramARB__wrapper,_emscripten_glGetPointerv__wrapper,_emscripten_glGenVertexArrays__wrapper,_emscripten_glDeleteVertexArrays__wrapper,_emscripten_glVertexAttribDivisor__wrapper,_emscripten_glBlendFunc__wrapper,_emscripten_glBlendEquationSeparate__wrapper,_emscripten_glStencilMaskSeparate__wrapper,_emscripten_glHint__wrapper,_emscripten_glDrawBuffers__wrapper,b4,b4,b4,b4,b4,b4,b4,b4,b4,b4,b4,b4,b4,b4,b4,b4,b4,b4,b4,b4
  45935. ,b4,b4,b4,b4,b4];
  45936. var FUNCTION_TABLE_ii = [b5,_stbi__stdio_eof,___stdio_close,_emscripten_glGetString__wrapper,_emscripten_glIsTexture__wrapper,_emscripten_glIsBuffer__wrapper,_emscripten_glIsRenderbuffer__wrapper,_emscripten_glCreateShader__wrapper,_emscripten_glIsShader__wrapper,_emscripten_glIsProgram__wrapper,_emscripten_glIsFramebuffer__wrapper,_emscripten_glCheckFramebufferStatus__wrapper,_emscripten_glIsEnabled__wrapper,b5,b5,b5];
  45937. var FUNCTION_TABLE_viddd = [b6,_emscripten_glUniform3f__wrapper,_emscripten_glVertexAttrib3f__wrapper,b6];
  45938. var FUNCTION_TABLE_vidd = [b7,_MouseCursorPosCallback,_ScrollCallback,_emscripten_glUniform2f__wrapper,_emscripten_glVertexAttrib2f__wrapper,b7,b7,b7];
  45939. var FUNCTION_TABLE_iiii = [b8,_stbi__stdio_read,___stdout_write,___stdio_seek,_sn_write,_EmscriptenFullscreenChangeCallback,_EmscriptenKeyboardCallback,_EmscriptenMouseCallback,_EmscriptenTouchCallback,_EmscriptenGamepadCallback,___stdio_write,___stdio_read,b8,b8,b8,b8];
  45940. var FUNCTION_TABLE_viiiiiiii = [b9,_emscripten_glCompressedTexImage2D__wrapper,_emscripten_glCopyTexImage2D__wrapper,_emscripten_glCopyTexSubImage2D__wrapper];
  45941. var FUNCTION_TABLE_viiiiii = [b10,_emscripten_glDrawRangeElements__wrapper,_emscripten_glVertexAttribPointer__wrapper,b10];
  45942. var FUNCTION_TABLE_viii = [b11,_WindowSizeCallback,_emscripten_glGetTexParameterfv__wrapper,_emscripten_glGetTexParameteriv__wrapper,_emscripten_glTexParameterfv__wrapper,_emscripten_glTexParameteriv__wrapper,_emscripten_glGetBufferParameteriv__wrapper,_emscripten_glGetRenderbufferParameteriv__wrapper,_emscripten_glGetUniformfv__wrapper,_emscripten_glGetUniformiv__wrapper,_emscripten_glGetVertexAttribfv__wrapper,_emscripten_glGetVertexAttribiv__wrapper,_emscripten_glGetVertexAttribPointerv__wrapper,_emscripten_glUniform2i__wrapper,_emscripten_glUniform1iv__wrapper,_emscripten_glUniform2iv__wrapper,_emscripten_glUniform3iv__wrapper,_emscripten_glUniform4iv__wrapper,_emscripten_glUniform1fv__wrapper,_emscripten_glUniform2fv__wrapper,_emscripten_glUniform3fv__wrapper,_emscripten_glUniform4fv__wrapper,_emscripten_glGetShaderiv__wrapper,_emscripten_glGetProgramiv__wrapper,_emscripten_glBindAttribLocation__wrapper,_emscripten_glGetObjectParameterivARB__wrapper,_emscripten_glNormalPointer__wrapper,_emscripten_glDrawArrays__wrapper,_emscripten_glTexParameteri__wrapper,_emscripten_glStencilFunc__wrapper,_emscripten_glStencilOp__wrapper,b11];
  45943. var FUNCTION_TABLE_vidddd = [b12,_emscripten_glUniform4f__wrapper,_emscripten_glVertexAttrib4f__wrapper,b12];
  45944. var FUNCTION_TABLE_vdi = [b13,_emscripten_glSampleCoverage__wrapper];
  45945. var FUNCTION_TABLE_viiiiiii = [b14,_emscripten_glReadPixels__wrapper,_emscripten_glGetActiveUniform__wrapper,_emscripten_glGetActiveAttrib__wrapper];
  45946. var FUNCTION_TABLE_viiiiiiiii = [b15,_emscripten_glCompressedTexSubImage2D__wrapper,_emscripten_glTexImage2D__wrapper,_emscripten_glTexSubImage2D__wrapper];
  45947. var FUNCTION_TABLE_iii = [b16,_emscripten_glGetUniformLocation__wrapper,_emscripten_glGetAttribLocation__wrapper,b16];
  45948. var FUNCTION_TABLE_i = [b17,_emscripten_glCreateProgram__wrapper,_emscripten_glGetError__wrapper,b17];
  45949. var FUNCTION_TABLE_vdddddd = [b18,_emscripten_glFrustum__wrapper];
  45950. var FUNCTION_TABLE_vdddd = [b19,_emscripten_glRotatef__wrapper,_emscripten_glClearColor__wrapper,_emscripten_glBlendColor__wrapper];
  45951. var FUNCTION_TABLE_vdd = [b20,_emscripten_glDepthRange__wrapper,_emscripten_glDepthRangef__wrapper,_emscripten_glPolygonOffset__wrapper];
  45952. var FUNCTION_TABLE_v = [b21,_UpdateDrawFrame,_emscripten_glLoadIdentity__wrapper,_emscripten_glReleaseShaderCompiler__wrapper,_emscripten_glFinish__wrapper,_emscripten_glFlush__wrapper,b21,b21];
  45953. var FUNCTION_TABLE_viid = [b22,_emscripten_glTexParameterf__wrapper];
  45954. var FUNCTION_TABLE_viiii = [b23,_MouseButtonCallback,_emscripten_glBufferData__wrapper,_emscripten_glBufferSubData__wrapper,_emscripten_glUniform3i__wrapper,_emscripten_glUniformMatrix2fv__wrapper,_emscripten_glUniformMatrix3fv__wrapper,_emscripten_glUniformMatrix4fv__wrapper,_emscripten_glGetAttachedShaders__wrapper,_emscripten_glShaderSource__wrapper,_emscripten_glGetShaderSource__wrapper,_emscripten_glGetShaderInfoLog__wrapper,_emscripten_glGetShaderPrecisionFormat__wrapper,_emscripten_glGetProgramInfoLog__wrapper,_emscripten_glFramebufferRenderbuffer__wrapper,_emscripten_glGetFramebufferAttachmentParameteriv__wrapper,_emscripten_glGetInfoLogARB__wrapper,_emscripten_glVertexPointer__wrapper,_emscripten_glTexCoordPointer__wrapper,_emscripten_glColorPointer__wrapper,_emscripten_glDrawElements__wrapper,_emscripten_glDrawArraysInstanced__wrapper,_emscripten_glViewport__wrapper,_emscripten_glScissor__wrapper,_emscripten_glColorMask__wrapper,_emscripten_glRenderbufferStorage__wrapper,_emscripten_glBlendFuncSeparate__wrapper,_emscripten_glStencilFuncSeparate__wrapper,_emscripten_glStencilOpSeparate__wrapper,b23,b23,b23];
  45955. return { _roundf: _roundf, _main: _main, _memset: _memset, _bitshift64Lshr: _bitshift64Lshr, _bitshift64Shl: _bitshift64Shl, _fflush: _fflush, _llvm_cttz_i32: _llvm_cttz_i32, _sbrk: _sbrk, _memcpy: _memcpy, _llvm_bswap_i32: _llvm_bswap_i32, ___muldi3: ___muldi3, ___uremdi3: ___uremdi3, _i64Subtract: _i64Subtract, ___udivmoddi4: ___udivmoddi4, _i64Add: _i64Add, _emscripten_get_global_libc: _emscripten_get_global_libc, _emscripten_GetProcAddress: _emscripten_GetProcAddress, ___udivdi3: ___udivdi3, ___errno_location: ___errno_location, ___muldsi3: ___muldsi3, _free: _free, _memmove: _memmove, _strstr: _strstr, _malloc: _malloc, runPostSets: runPostSets, stackAlloc: stackAlloc, stackSave: stackSave, stackRestore: stackRestore, establishStackSpace: establishStackSpace, setTempRet0: setTempRet0, getTempRet0: getTempRet0, setThrew: setThrew, stackAlloc: stackAlloc, stackSave: stackSave, stackRestore: stackRestore, establishStackSpace: establishStackSpace, setThrew: setThrew, setTempRet0: setTempRet0, getTempRet0: getTempRet0, dynCall_viiiii: dynCall_viiiii, dynCall_vd: dynCall_vd, dynCall_vid: dynCall_vid, dynCall_vi: dynCall_vi, dynCall_vii: dynCall_vii, dynCall_ii: dynCall_ii, dynCall_viddd: dynCall_viddd, dynCall_vidd: dynCall_vidd, dynCall_iiii: dynCall_iiii, dynCall_viiiiiiii: dynCall_viiiiiiii, dynCall_viiiiii: dynCall_viiiiii, dynCall_viii: dynCall_viii, dynCall_vidddd: dynCall_vidddd, dynCall_vdi: dynCall_vdi, dynCall_viiiiiii: dynCall_viiiiiii, dynCall_viiiiiiiii: dynCall_viiiiiiiii, dynCall_iii: dynCall_iii, dynCall_i: dynCall_i, dynCall_vdddddd: dynCall_vdddddd, dynCall_vdddd: dynCall_vdddd, dynCall_vdd: dynCall_vdd, dynCall_v: dynCall_v, dynCall_viid: dynCall_viid, dynCall_viiii: dynCall_viiii };
  45956. })
  45957. // EMSCRIPTEN_END_ASM
  45958. (Module.asmGlobalArg, Module.asmLibraryArg, buffer);
  45959. var real__roundf = asm["_roundf"]; asm["_roundf"] = function() {
  45960. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  45961. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  45962. return real__roundf.apply(null, arguments);
  45963. };
  45964. var real__main = asm["_main"]; asm["_main"] = function() {
  45965. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  45966. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  45967. return real__main.apply(null, arguments);
  45968. };
  45969. var real_stackSave = asm["stackSave"]; asm["stackSave"] = function() {
  45970. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  45971. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  45972. return real_stackSave.apply(null, arguments);
  45973. };
  45974. var real_getTempRet0 = asm["getTempRet0"]; asm["getTempRet0"] = function() {
  45975. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  45976. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  45977. return real_getTempRet0.apply(null, arguments);
  45978. };
  45979. var real__llvm_cttz_i32 = asm["_llvm_cttz_i32"]; asm["_llvm_cttz_i32"] = function() {
  45980. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  45981. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  45982. return real__llvm_cttz_i32.apply(null, arguments);
  45983. };
  45984. var real_setThrew = asm["setThrew"]; asm["setThrew"] = function() {
  45985. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  45986. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  45987. return real_setThrew.apply(null, arguments);
  45988. };
  45989. var real__bitshift64Lshr = asm["_bitshift64Lshr"]; asm["_bitshift64Lshr"] = function() {
  45990. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  45991. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  45992. return real__bitshift64Lshr.apply(null, arguments);
  45993. };
  45994. var real__bitshift64Shl = asm["_bitshift64Shl"]; asm["_bitshift64Shl"] = function() {
  45995. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  45996. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  45997. return real__bitshift64Shl.apply(null, arguments);
  45998. };
  45999. var real__fflush = asm["_fflush"]; asm["_fflush"] = function() {
  46000. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46001. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46002. return real__fflush.apply(null, arguments);
  46003. };
  46004. var real__sbrk = asm["_sbrk"]; asm["_sbrk"] = function() {
  46005. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46006. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46007. return real__sbrk.apply(null, arguments);
  46008. };
  46009. var real__llvm_bswap_i32 = asm["_llvm_bswap_i32"]; asm["_llvm_bswap_i32"] = function() {
  46010. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46011. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46012. return real__llvm_bswap_i32.apply(null, arguments);
  46013. };
  46014. var real____muldi3 = asm["___muldi3"]; asm["___muldi3"] = function() {
  46015. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46016. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46017. return real____muldi3.apply(null, arguments);
  46018. };
  46019. var real____uremdi3 = asm["___uremdi3"]; asm["___uremdi3"] = function() {
  46020. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46021. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46022. return real____uremdi3.apply(null, arguments);
  46023. };
  46024. var real_stackAlloc = asm["stackAlloc"]; asm["stackAlloc"] = function() {
  46025. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46026. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46027. return real_stackAlloc.apply(null, arguments);
  46028. };
  46029. var real__i64Subtract = asm["_i64Subtract"]; asm["_i64Subtract"] = function() {
  46030. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46031. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46032. return real__i64Subtract.apply(null, arguments);
  46033. };
  46034. var real____udivmoddi4 = asm["___udivmoddi4"]; asm["___udivmoddi4"] = function() {
  46035. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46036. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46037. return real____udivmoddi4.apply(null, arguments);
  46038. };
  46039. var real_setTempRet0 = asm["setTempRet0"]; asm["setTempRet0"] = function() {
  46040. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46041. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46042. return real_setTempRet0.apply(null, arguments);
  46043. };
  46044. var real__i64Add = asm["_i64Add"]; asm["_i64Add"] = function() {
  46045. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46046. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46047. return real__i64Add.apply(null, arguments);
  46048. };
  46049. var real__emscripten_get_global_libc = asm["_emscripten_get_global_libc"]; asm["_emscripten_get_global_libc"] = function() {
  46050. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46051. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46052. return real__emscripten_get_global_libc.apply(null, arguments);
  46053. };
  46054. var real__emscripten_GetProcAddress = asm["_emscripten_GetProcAddress"]; asm["_emscripten_GetProcAddress"] = function() {
  46055. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46056. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46057. return real__emscripten_GetProcAddress.apply(null, arguments);
  46058. };
  46059. var real____udivdi3 = asm["___udivdi3"]; asm["___udivdi3"] = function() {
  46060. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46061. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46062. return real____udivdi3.apply(null, arguments);
  46063. };
  46064. var real____errno_location = asm["___errno_location"]; asm["___errno_location"] = function() {
  46065. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46066. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46067. return real____errno_location.apply(null, arguments);
  46068. };
  46069. var real____muldsi3 = asm["___muldsi3"]; asm["___muldsi3"] = function() {
  46070. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46071. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46072. return real____muldsi3.apply(null, arguments);
  46073. };
  46074. var real__free = asm["_free"]; asm["_free"] = function() {
  46075. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46076. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46077. return real__free.apply(null, arguments);
  46078. };
  46079. var real_establishStackSpace = asm["establishStackSpace"]; asm["establishStackSpace"] = function() {
  46080. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46081. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46082. return real_establishStackSpace.apply(null, arguments);
  46083. };
  46084. var real__memmove = asm["_memmove"]; asm["_memmove"] = function() {
  46085. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46086. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46087. return real__memmove.apply(null, arguments);
  46088. };
  46089. var real__strstr = asm["_strstr"]; asm["_strstr"] = function() {
  46090. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46091. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46092. return real__strstr.apply(null, arguments);
  46093. };
  46094. var real_stackRestore = asm["stackRestore"]; asm["stackRestore"] = function() {
  46095. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46096. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46097. return real_stackRestore.apply(null, arguments);
  46098. };
  46099. var real__malloc = asm["_malloc"]; asm["_malloc"] = function() {
  46100. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46101. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46102. return real__malloc.apply(null, arguments);
  46103. };
  46104. var _roundf = Module["_roundf"] = asm["_roundf"];
  46105. var _main = Module["_main"] = asm["_main"];
  46106. var stackSave = Module["stackSave"] = asm["stackSave"];
  46107. var getTempRet0 = Module["getTempRet0"] = asm["getTempRet0"];
  46108. var _llvm_cttz_i32 = Module["_llvm_cttz_i32"] = asm["_llvm_cttz_i32"];
  46109. var setThrew = Module["setThrew"] = asm["setThrew"];
  46110. var _bitshift64Lshr = Module["_bitshift64Lshr"] = asm["_bitshift64Lshr"];
  46111. var _bitshift64Shl = Module["_bitshift64Shl"] = asm["_bitshift64Shl"];
  46112. var _fflush = Module["_fflush"] = asm["_fflush"];
  46113. var _memset = Module["_memset"] = asm["_memset"];
  46114. var _sbrk = Module["_sbrk"] = asm["_sbrk"];
  46115. var _memcpy = Module["_memcpy"] = asm["_memcpy"];
  46116. var _llvm_bswap_i32 = Module["_llvm_bswap_i32"] = asm["_llvm_bswap_i32"];
  46117. var ___muldi3 = Module["___muldi3"] = asm["___muldi3"];
  46118. var ___uremdi3 = Module["___uremdi3"] = asm["___uremdi3"];
  46119. var stackAlloc = Module["stackAlloc"] = asm["stackAlloc"];
  46120. var _i64Subtract = Module["_i64Subtract"] = asm["_i64Subtract"];
  46121. var ___udivmoddi4 = Module["___udivmoddi4"] = asm["___udivmoddi4"];
  46122. var setTempRet0 = Module["setTempRet0"] = asm["setTempRet0"];
  46123. var _i64Add = Module["_i64Add"] = asm["_i64Add"];
  46124. var _emscripten_get_global_libc = Module["_emscripten_get_global_libc"] = asm["_emscripten_get_global_libc"];
  46125. var _emscripten_GetProcAddress = Module["_emscripten_GetProcAddress"] = asm["_emscripten_GetProcAddress"];
  46126. var ___udivdi3 = Module["___udivdi3"] = asm["___udivdi3"];
  46127. var ___errno_location = Module["___errno_location"] = asm["___errno_location"];
  46128. var ___muldsi3 = Module["___muldsi3"] = asm["___muldsi3"];
  46129. var _free = Module["_free"] = asm["_free"];
  46130. var runPostSets = Module["runPostSets"] = asm["runPostSets"];
  46131. var establishStackSpace = Module["establishStackSpace"] = asm["establishStackSpace"];
  46132. var _memmove = Module["_memmove"] = asm["_memmove"];
  46133. var _strstr = Module["_strstr"] = asm["_strstr"];
  46134. var stackRestore = Module["stackRestore"] = asm["stackRestore"];
  46135. var _malloc = Module["_malloc"] = asm["_malloc"];
  46136. var dynCall_viiiii = Module["dynCall_viiiii"] = asm["dynCall_viiiii"];
  46137. var dynCall_vd = Module["dynCall_vd"] = asm["dynCall_vd"];
  46138. var dynCall_vid = Module["dynCall_vid"] = asm["dynCall_vid"];
  46139. var dynCall_vi = Module["dynCall_vi"] = asm["dynCall_vi"];
  46140. var dynCall_vii = Module["dynCall_vii"] = asm["dynCall_vii"];
  46141. var dynCall_ii = Module["dynCall_ii"] = asm["dynCall_ii"];
  46142. var dynCall_viddd = Module["dynCall_viddd"] = asm["dynCall_viddd"];
  46143. var dynCall_vidd = Module["dynCall_vidd"] = asm["dynCall_vidd"];
  46144. var dynCall_iiii = Module["dynCall_iiii"] = asm["dynCall_iiii"];
  46145. var dynCall_viiiiiiii = Module["dynCall_viiiiiiii"] = asm["dynCall_viiiiiiii"];
  46146. var dynCall_viiiiii = Module["dynCall_viiiiii"] = asm["dynCall_viiiiii"];
  46147. var dynCall_viii = Module["dynCall_viii"] = asm["dynCall_viii"];
  46148. var dynCall_vidddd = Module["dynCall_vidddd"] = asm["dynCall_vidddd"];
  46149. var dynCall_vdi = Module["dynCall_vdi"] = asm["dynCall_vdi"];
  46150. var dynCall_viiiiiii = Module["dynCall_viiiiiii"] = asm["dynCall_viiiiiii"];
  46151. var dynCall_viiiiiiiii = Module["dynCall_viiiiiiiii"] = asm["dynCall_viiiiiiiii"];
  46152. var dynCall_iii = Module["dynCall_iii"] = asm["dynCall_iii"];
  46153. var dynCall_i = Module["dynCall_i"] = asm["dynCall_i"];
  46154. var dynCall_vdddddd = Module["dynCall_vdddddd"] = asm["dynCall_vdddddd"];
  46155. var dynCall_vdddd = Module["dynCall_vdddd"] = asm["dynCall_vdddd"];
  46156. var dynCall_vdd = Module["dynCall_vdd"] = asm["dynCall_vdd"];
  46157. var dynCall_v = Module["dynCall_v"] = asm["dynCall_v"];
  46158. var dynCall_viid = Module["dynCall_viid"] = asm["dynCall_viid"];
  46159. var dynCall_viiii = Module["dynCall_viiii"] = asm["dynCall_viiii"];
  46160. ;
  46161. Runtime.stackAlloc = Module['stackAlloc'];
  46162. Runtime.stackSave = Module['stackSave'];
  46163. Runtime.stackRestore = Module['stackRestore'];
  46164. Runtime.establishStackSpace = Module['establishStackSpace'];
  46165. Runtime.setTempRet0 = Module['setTempRet0'];
  46166. Runtime.getTempRet0 = Module['getTempRet0'];
  46167. // === Auto-generated postamble setup entry stuff ===
  46168. Module['asm'] = asm;
  46169. function ExitStatus(status) {
  46170. this.name = "ExitStatus";
  46171. this.message = "Program terminated with exit(" + status + ")";
  46172. this.status = status;
  46173. };
  46174. ExitStatus.prototype = new Error();
  46175. ExitStatus.prototype.constructor = ExitStatus;
  46176. var initialStackTop;
  46177. var preloadStartTime = null;
  46178. var calledMain = false;
  46179. dependenciesFulfilled = function runCaller() {
  46180. // If run has never been called, and we should call run (INVOKE_RUN is true, and Module.noInitialRun is not false)
  46181. if (!Module['calledRun']) run();
  46182. if (!Module['calledRun']) dependenciesFulfilled = runCaller; // try this again later, after new deps are fulfilled
  46183. }
  46184. Module['callMain'] = Module.callMain = function callMain(args) {
  46185. assert(runDependencies == 0, 'cannot call main when async dependencies remain! (listen on __ATMAIN__)');
  46186. assert(__ATPRERUN__.length == 0, 'cannot call main when preRun functions remain to be called');
  46187. args = args || [];
  46188. ensureInitRuntime();
  46189. var argc = args.length+1;
  46190. function pad() {
  46191. for (var i = 0; i < 4-1; i++) {
  46192. argv.push(0);
  46193. }
  46194. }
  46195. var argv = [allocate(intArrayFromString(Module['thisProgram']), 'i8', ALLOC_NORMAL) ];
  46196. pad();
  46197. for (var i = 0; i < argc-1; i = i + 1) {
  46198. argv.push(allocate(intArrayFromString(args[i]), 'i8', ALLOC_NORMAL));
  46199. pad();
  46200. }
  46201. argv.push(0);
  46202. argv = allocate(argv, 'i32', ALLOC_NORMAL);
  46203. try {
  46204. var ret = Module['_main'](argc, argv, 0);
  46205. // if we're not running an evented main loop, it's time to exit
  46206. exit(ret, /* implicit = */ true);
  46207. }
  46208. catch(e) {
  46209. if (e instanceof ExitStatus) {
  46210. // exit() throws this once it's done to make sure execution
  46211. // has been stopped completely
  46212. return;
  46213. } else if (e == 'SimulateInfiniteLoop') {
  46214. // running an evented main loop, don't immediately exit
  46215. Module['noExitRuntime'] = true;
  46216. return;
  46217. } else {
  46218. var toLog = e;
  46219. if (e && typeof e === 'object' && e.stack) {
  46220. toLog = [e, e.stack];
  46221. }
  46222. Module.printErr('exception thrown: ' + toLog);
  46223. Module['quit'](1, e);
  46224. }
  46225. } finally {
  46226. calledMain = true;
  46227. }
  46228. }
  46229. function run(args) {
  46230. args = args || Module['arguments'];
  46231. if (preloadStartTime === null) preloadStartTime = Date.now();
  46232. if (runDependencies > 0) {
  46233. Module.printErr('run() called, but dependencies remain, so not running');
  46234. return;
  46235. }
  46236. writeStackCookie();
  46237. preRun();
  46238. if (runDependencies > 0) return; // a preRun added a dependency, run will be called later
  46239. if (Module['calledRun']) return; // run may have just been called through dependencies being fulfilled just in this very frame
  46240. function doRun() {
  46241. if (Module['calledRun']) return; // run may have just been called while the async setStatus time below was happening
  46242. Module['calledRun'] = true;
  46243. if (ABORT) return;
  46244. ensureInitRuntime();
  46245. preMain();
  46246. if (ENVIRONMENT_IS_WEB && preloadStartTime !== null) {
  46247. Module.printErr('pre-main prep time: ' + (Date.now() - preloadStartTime) + ' ms');
  46248. }
  46249. if (Module['onRuntimeInitialized']) Module['onRuntimeInitialized']();
  46250. if (Module['_main'] && shouldRunNow) Module['callMain'](args);
  46251. postRun();
  46252. }
  46253. if (Module['setStatus']) {
  46254. Module['setStatus']('Running...');
  46255. setTimeout(function() {
  46256. setTimeout(function() {
  46257. Module['setStatus']('');
  46258. }, 1);
  46259. doRun();
  46260. }, 1);
  46261. } else {
  46262. doRun();
  46263. }
  46264. checkStackCookie();
  46265. }
  46266. Module['run'] = Module.run = run;
  46267. function exit(status, implicit) {
  46268. if (implicit && Module['noExitRuntime']) {
  46269. Module.printErr('exit(' + status + ') implicitly called by end of main(), but noExitRuntime, so not exiting the runtime (you can use emscripten_force_exit, if you want to force a true shutdown)');
  46270. return;
  46271. }
  46272. if (Module['noExitRuntime']) {
  46273. Module.printErr('exit(' + status + ') called, but noExitRuntime, so halting execution but not exiting the runtime or preventing further async execution (you can use emscripten_force_exit, if you want to force a true shutdown)');
  46274. } else {
  46275. ABORT = true;
  46276. EXITSTATUS = status;
  46277. STACKTOP = initialStackTop;
  46278. exitRuntime();
  46279. if (Module['onExit']) Module['onExit'](status);
  46280. }
  46281. if (ENVIRONMENT_IS_NODE) {
  46282. process['exit'](status);
  46283. }
  46284. Module['quit'](status, new ExitStatus(status));
  46285. }
  46286. Module['exit'] = Module.exit = exit;
  46287. var abortDecorators = [];
  46288. function abort(what) {
  46289. if (what !== undefined) {
  46290. Module.print(what);
  46291. Module.printErr(what);
  46292. what = JSON.stringify(what)
  46293. } else {
  46294. what = '';
  46295. }
  46296. ABORT = true;
  46297. EXITSTATUS = 1;
  46298. var extra = '';
  46299. var output = 'abort(' + what + ') at ' + stackTrace() + extra;
  46300. if (abortDecorators) {
  46301. abortDecorators.forEach(function(decorator) {
  46302. output = decorator(output, what);
  46303. });
  46304. }
  46305. throw output;
  46306. }
  46307. Module['abort'] = Module.abort = abort;
  46308. // {{PRE_RUN_ADDITIONS}}
  46309. if (Module['preInit']) {
  46310. if (typeof Module['preInit'] == 'function') Module['preInit'] = [Module['preInit']];
  46311. while (Module['preInit'].length > 0) {
  46312. Module['preInit'].pop()();
  46313. }
  46314. }
  46315. // shouldRunNow refers to calling main(), not run().
  46316. var shouldRunNow = true;
  46317. if (Module['noInitialRun']) {
  46318. shouldRunNow = false;
  46319. }
  46320. run();
  46321. // {{POST_RUN_ADDITIONS}}
  46322. // {{MODULE_ADDITIONS}}