shaders_custom_uniform.js 1.6 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711
  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 = 'shaders/shaders_custom_uniform.data';
  20. var REMOTE_PACKAGE_BASE = 'shaders_custom_uniform.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. Module['FS_createPath']('/resources', 'model', true, true);
  96. Module['FS_createPath']('/resources', 'shaders', true, true);
  97. Module['FS_createPath']('/resources/shaders', 'glsl100', true, true);
  98. function DataRequest(start, end, crunched, audio) {
  99. this.start = start;
  100. this.end = end;
  101. this.crunched = crunched;
  102. this.audio = audio;
  103. }
  104. DataRequest.prototype = {
  105. requests: {},
  106. open: function(mode, name) {
  107. this.name = name;
  108. this.requests[name] = this;
  109. Module['addRunDependency']('fp ' + this.name);
  110. },
  111. send: function() {},
  112. onload: function() {
  113. var byteArray = this.byteArray.subarray(this.start, this.end);
  114. this.finish(byteArray);
  115. },
  116. finish: function(byteArray) {
  117. var that = this;
  118. 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
  119. Module['removeRunDependency']('fp ' + that.name);
  120. this.requests[this.name] = null;
  121. }
  122. };
  123. var files = metadata.files;
  124. for (i = 0; i < files.length; ++i) {
  125. new DataRequest(files[i].start, files[i].end, files[i].crunched, files[i].audio).open('GET', files[i].filename);
  126. }
  127. function processPackageData(arrayBuffer) {
  128. Module.finishedDataFileDownloads++;
  129. assert(arrayBuffer, 'Loading data file failed.');
  130. assert(arrayBuffer instanceof ArrayBuffer, 'bad input to processPackageData');
  131. var byteArray = new Uint8Array(arrayBuffer);
  132. var curr;
  133. // copy the entire loaded file into a spot in the heap. Files will refer to slices in that. They cannot be freed though
  134. // (we may be allocating before malloc is ready, during startup).
  135. 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');
  136. var ptr = Module['getMemory'](byteArray.length);
  137. Module['HEAPU8'].set(byteArray, ptr);
  138. DataRequest.prototype.byteArray = Module['HEAPU8'].subarray(ptr, ptr+byteArray.length);
  139. var files = metadata.files;
  140. for (i = 0; i < files.length; ++i) {
  141. DataRequest.prototype.requests[files[i].filename].onload();
  142. }
  143. Module['removeRunDependency']('datafile_shaders/shaders_custom_uniform.data');
  144. };
  145. Module['addRunDependency']('datafile_shaders/shaders_custom_uniform.data');
  146. if (!Module.preloadResults) Module.preloadResults = {};
  147. Module.preloadResults[PACKAGE_NAME] = {fromCache: false};
  148. if (fetched) {
  149. processPackageData(fetched);
  150. fetched = null;
  151. } else {
  152. fetchedCallback = processPackageData;
  153. }
  154. }
  155. if (Module['calledRun']) {
  156. runWithFS();
  157. } else {
  158. if (!Module['preRun']) Module['preRun'] = [];
  159. Module["preRun"].push(runWithFS); // FS is not initialized yet, wait for it
  160. }
  161. }
  162. loadPackage({"files": [{"audio": 0, "start": 0, "crunched": 0, "end": 2748249, "filename": "/resources/model/dwarf.obj"}, {"audio": 0, "start": 2748249, "crunched": 0, "end": 4022872, "filename": "/resources/model/dwarf_diffuse.png"}, {"audio": 0, "start": 4022872, "crunched": 0, "end": 4023477, "filename": "/resources/shaders/glsl100/base.vs"}, {"audio": 0, "start": 4023477, "crunched": 0, "end": 4024528, "filename": "/resources/shaders/glsl100/swirl.fs"}], "remote_package_size": 4024528, "package_uuid": "010211d3-4fc3-4a57-a8ff-1c7b4cfb038d"});
  163. })();
  164. // The Module object: Our interface to the outside world. We import
  165. // and export values on it, and do the work to get that through
  166. // closure compiler if necessary. There are various ways Module can be used:
  167. // 1. Not defined. We create it here
  168. // 2. A function parameter, function(Module) { ..generated code.. }
  169. // 3. pre-run appended it, var Module = {}; ..generated code..
  170. // 4. External script tag defines var Module.
  171. // We need to do an eval in order to handle the closure compiler
  172. // case, where this code here is minified but Module was defined
  173. // elsewhere (e.g. case 4 above). We also need to check if Module
  174. // already exists (e.g. case 3 above).
  175. // Note that if you want to run closure, and also to use Module
  176. // after the generated code, you will need to define var Module = {};
  177. // before the code. Then that object will be used in the code, and you
  178. // can continue to use Module afterwards as well.
  179. var Module;
  180. if (!Module) Module = (typeof Module !== 'undefined' ? Module : null) || {};
  181. // Sometimes an existing Module object exists with properties
  182. // meant to overwrite the default module functionality. Here
  183. // we collect those properties and reapply _after_ we configure
  184. // the current environment's defaults to avoid having to be so
  185. // defensive during initialization.
  186. var moduleOverrides = {};
  187. for (var key in Module) {
  188. if (Module.hasOwnProperty(key)) {
  189. moduleOverrides[key] = Module[key];
  190. }
  191. }
  192. // The environment setup code below is customized to use Module.
  193. // *** Environment setup code ***
  194. var ENVIRONMENT_IS_WEB = false;
  195. var ENVIRONMENT_IS_WORKER = false;
  196. var ENVIRONMENT_IS_NODE = false;
  197. var ENVIRONMENT_IS_SHELL = false;
  198. // Three configurations we can be running in:
  199. // 1) We could be the application main() thread running in the main JS UI thread. (ENVIRONMENT_IS_WORKER == false and ENVIRONMENT_IS_PTHREAD == false)
  200. // 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)
  201. // 3) We could be an application pthread running in a worker. (ENVIRONMENT_IS_WORKER == true and ENVIRONMENT_IS_PTHREAD == true)
  202. if (Module['ENVIRONMENT']) {
  203. if (Module['ENVIRONMENT'] === 'WEB') {
  204. ENVIRONMENT_IS_WEB = true;
  205. } else if (Module['ENVIRONMENT'] === 'WORKER') {
  206. ENVIRONMENT_IS_WORKER = true;
  207. } else if (Module['ENVIRONMENT'] === 'NODE') {
  208. ENVIRONMENT_IS_NODE = true;
  209. } else if (Module['ENVIRONMENT'] === 'SHELL') {
  210. ENVIRONMENT_IS_SHELL = true;
  211. } else {
  212. throw new Error('The provided Module[\'ENVIRONMENT\'] value is not valid. It must be one of: WEB|WORKER|NODE|SHELL.');
  213. }
  214. } else {
  215. ENVIRONMENT_IS_WEB = typeof window === 'object';
  216. ENVIRONMENT_IS_WORKER = typeof importScripts === 'function';
  217. ENVIRONMENT_IS_NODE = typeof process === 'object' && typeof require === 'function' && !ENVIRONMENT_IS_WEB && !ENVIRONMENT_IS_WORKER;
  218. ENVIRONMENT_IS_SHELL = !ENVIRONMENT_IS_WEB && !ENVIRONMENT_IS_NODE && !ENVIRONMENT_IS_WORKER;
  219. }
  220. if (ENVIRONMENT_IS_NODE) {
  221. // Expose functionality in the same simple way that the shells work
  222. // Note that we pollute the global namespace here, otherwise we break in node
  223. if (!Module['print']) Module['print'] = console.log;
  224. if (!Module['printErr']) Module['printErr'] = console.warn;
  225. var nodeFS;
  226. var nodePath;
  227. Module['read'] = function read(filename, binary) {
  228. if (!nodeFS) nodeFS = require('fs');
  229. if (!nodePath) nodePath = require('path');
  230. filename = nodePath['normalize'](filename);
  231. var ret = nodeFS['readFileSync'](filename);
  232. return binary ? ret : ret.toString();
  233. };
  234. Module['readBinary'] = function readBinary(filename) {
  235. var ret = Module['read'](filename, true);
  236. if (!ret.buffer) {
  237. ret = new Uint8Array(ret);
  238. }
  239. assert(ret.buffer);
  240. return ret;
  241. };
  242. Module['load'] = function load(f) {
  243. globalEval(read(f));
  244. };
  245. if (!Module['thisProgram']) {
  246. if (process['argv'].length > 1) {
  247. Module['thisProgram'] = process['argv'][1].replace(/\\/g, '/');
  248. } else {
  249. Module['thisProgram'] = 'unknown-program';
  250. }
  251. }
  252. Module['arguments'] = process['argv'].slice(2);
  253. if (typeof module !== 'undefined') {
  254. module['exports'] = Module;
  255. }
  256. process['on']('uncaughtException', function(ex) {
  257. // suppress ExitStatus exceptions from showing an error
  258. if (!(ex instanceof ExitStatus)) {
  259. throw ex;
  260. }
  261. });
  262. Module['inspect'] = function () { return '[Emscripten Module object]'; };
  263. }
  264. else if (ENVIRONMENT_IS_SHELL) {
  265. if (!Module['print']) Module['print'] = print;
  266. if (typeof printErr != 'undefined') Module['printErr'] = printErr; // not present in v8 or older sm
  267. if (typeof read != 'undefined') {
  268. Module['read'] = read;
  269. } else {
  270. Module['read'] = function read() { throw 'no read() available' };
  271. }
  272. Module['readBinary'] = function readBinary(f) {
  273. if (typeof readbuffer === 'function') {
  274. return new Uint8Array(readbuffer(f));
  275. }
  276. var data = read(f, 'binary');
  277. assert(typeof data === 'object');
  278. return data;
  279. };
  280. if (typeof scriptArgs != 'undefined') {
  281. Module['arguments'] = scriptArgs;
  282. } else if (typeof arguments != 'undefined') {
  283. Module['arguments'] = arguments;
  284. }
  285. if (typeof quit === 'function') {
  286. Module['quit'] = function(status, toThrow) {
  287. quit(status);
  288. }
  289. }
  290. }
  291. else if (ENVIRONMENT_IS_WEB || ENVIRONMENT_IS_WORKER) {
  292. Module['read'] = function read(url) {
  293. var xhr = new XMLHttpRequest();
  294. xhr.open('GET', url, false);
  295. xhr.send(null);
  296. return xhr.responseText;
  297. };
  298. if (ENVIRONMENT_IS_WORKER) {
  299. Module['readBinary'] = function read(url) {
  300. var xhr = new XMLHttpRequest();
  301. xhr.open('GET', url, false);
  302. xhr.responseType = 'arraybuffer';
  303. xhr.send(null);
  304. return xhr.response;
  305. };
  306. }
  307. Module['readAsync'] = function readAsync(url, onload, onerror) {
  308. var xhr = new XMLHttpRequest();
  309. xhr.open('GET', url, true);
  310. xhr.responseType = 'arraybuffer';
  311. xhr.onload = function xhr_onload() {
  312. if (xhr.status == 200 || (xhr.status == 0 && xhr.response)) { // file URLs can return 0
  313. onload(xhr.response);
  314. } else {
  315. onerror();
  316. }
  317. };
  318. xhr.onerror = onerror;
  319. xhr.send(null);
  320. };
  321. if (typeof arguments != 'undefined') {
  322. Module['arguments'] = arguments;
  323. }
  324. if (typeof console !== 'undefined') {
  325. if (!Module['print']) Module['print'] = function print(x) {
  326. console.log(x);
  327. };
  328. if (!Module['printErr']) Module['printErr'] = function printErr(x) {
  329. console.warn(x);
  330. };
  331. } else {
  332. // Probably a worker, and without console.log. We can do very little here...
  333. var TRY_USE_DUMP = false;
  334. if (!Module['print']) Module['print'] = (TRY_USE_DUMP && (typeof(dump) !== "undefined") ? (function(x) {
  335. dump(x);
  336. }) : (function(x) {
  337. // self.postMessage(x); // enable this if you want stdout to be sent as messages
  338. }));
  339. }
  340. if (ENVIRONMENT_IS_WORKER) {
  341. Module['load'] = importScripts;
  342. }
  343. if (typeof Module['setWindowTitle'] === 'undefined') {
  344. Module['setWindowTitle'] = function(title) { document.title = title };
  345. }
  346. }
  347. else {
  348. // Unreachable because SHELL is dependant on the others
  349. throw 'Unknown runtime environment. Where are we?';
  350. }
  351. function globalEval(x) {
  352. eval.call(null, x);
  353. }
  354. if (!Module['load'] && Module['read']) {
  355. Module['load'] = function load(f) {
  356. globalEval(Module['read'](f));
  357. };
  358. }
  359. if (!Module['print']) {
  360. Module['print'] = function(){};
  361. }
  362. if (!Module['printErr']) {
  363. Module['printErr'] = Module['print'];
  364. }
  365. if (!Module['arguments']) {
  366. Module['arguments'] = [];
  367. }
  368. if (!Module['thisProgram']) {
  369. Module['thisProgram'] = './this.program';
  370. }
  371. if (!Module['quit']) {
  372. Module['quit'] = function(status, toThrow) {
  373. throw toThrow;
  374. }
  375. }
  376. // *** Environment setup code ***
  377. // Closure helpers
  378. Module.print = Module['print'];
  379. Module.printErr = Module['printErr'];
  380. // Callbacks
  381. Module['preRun'] = [];
  382. Module['postRun'] = [];
  383. // Merge back in the overrides
  384. for (var key in moduleOverrides) {
  385. if (moduleOverrides.hasOwnProperty(key)) {
  386. Module[key] = moduleOverrides[key];
  387. }
  388. }
  389. // Free the object hierarchy contained in the overrides, this lets the GC
  390. // reclaim data used e.g. in memoryInitializerRequest, which is a large typed array.
  391. moduleOverrides = undefined;
  392. // {{PREAMBLE_ADDITIONS}}
  393. // === Preamble library stuff ===
  394. // Documentation for the public APIs defined in this file must be updated in:
  395. // site/source/docs/api_reference/preamble.js.rst
  396. // A prebuilt local version of the documentation is available at:
  397. // site/build/text/docs/api_reference/preamble.js.txt
  398. // You can also build docs locally as HTML or other formats in site/
  399. // An online HTML version (which may be of a different version of Emscripten)
  400. // is up at http://kripken.github.io/emscripten-site/docs/api_reference/preamble.js.html
  401. //========================================
  402. // Runtime code shared with compiler
  403. //========================================
  404. var Runtime = {
  405. setTempRet0: function (value) {
  406. tempRet0 = value;
  407. return value;
  408. },
  409. getTempRet0: function () {
  410. return tempRet0;
  411. },
  412. stackSave: function () {
  413. return STACKTOP;
  414. },
  415. stackRestore: function (stackTop) {
  416. STACKTOP = stackTop;
  417. },
  418. getNativeTypeSize: function (type) {
  419. switch (type) {
  420. case 'i1': case 'i8': return 1;
  421. case 'i16': return 2;
  422. case 'i32': return 4;
  423. case 'i64': return 8;
  424. case 'float': return 4;
  425. case 'double': return 8;
  426. default: {
  427. if (type[type.length-1] === '*') {
  428. return Runtime.QUANTUM_SIZE; // A pointer
  429. } else if (type[0] === 'i') {
  430. var bits = parseInt(type.substr(1));
  431. assert(bits % 8 === 0);
  432. return bits/8;
  433. } else {
  434. return 0;
  435. }
  436. }
  437. }
  438. },
  439. getNativeFieldSize: function (type) {
  440. return Math.max(Runtime.getNativeTypeSize(type), Runtime.QUANTUM_SIZE);
  441. },
  442. STACK_ALIGN: 16,
  443. prepVararg: function (ptr, type) {
  444. if (type === 'double' || type === 'i64') {
  445. // move so the load is aligned
  446. if (ptr & 7) {
  447. assert((ptr & 7) === 4);
  448. ptr += 4;
  449. }
  450. } else {
  451. assert((ptr & 3) === 0);
  452. }
  453. return ptr;
  454. },
  455. getAlignSize: function (type, size, vararg) {
  456. // we align i64s and doubles on 64-bit boundaries, unlike x86
  457. if (!vararg && (type == 'i64' || type == 'double')) return 8;
  458. if (!type) return Math.min(size, 8); // align structures internally to 64 bits
  459. return Math.min(size || (type ? Runtime.getNativeFieldSize(type) : 0), Runtime.QUANTUM_SIZE);
  460. },
  461. dynCall: function (sig, ptr, args) {
  462. if (args && args.length) {
  463. assert(args.length == sig.length-1);
  464. assert(('dynCall_' + sig) in Module, 'bad function pointer type - no table for sig \'' + sig + '\'');
  465. return Module['dynCall_' + sig].apply(null, [ptr].concat(args));
  466. } else {
  467. assert(sig.length == 1);
  468. assert(('dynCall_' + sig) in Module, 'bad function pointer type - no table for sig \'' + sig + '\'');
  469. return Module['dynCall_' + sig].call(null, ptr);
  470. }
  471. },
  472. functionPointers: [],
  473. addFunction: function (func) {
  474. for (var i = 0; i < Runtime.functionPointers.length; i++) {
  475. if (!Runtime.functionPointers[i]) {
  476. Runtime.functionPointers[i] = func;
  477. return 2*(1 + i);
  478. }
  479. }
  480. throw 'Finished up all reserved function pointers. Use a higher value for RESERVED_FUNCTION_POINTERS.';
  481. },
  482. removeFunction: function (index) {
  483. Runtime.functionPointers[(index-2)/2] = null;
  484. },
  485. warnOnce: function (text) {
  486. if (!Runtime.warnOnce.shown) Runtime.warnOnce.shown = {};
  487. if (!Runtime.warnOnce.shown[text]) {
  488. Runtime.warnOnce.shown[text] = 1;
  489. Module.printErr(text);
  490. }
  491. },
  492. funcWrappers: {},
  493. getFuncWrapper: function (func, sig) {
  494. assert(sig);
  495. if (!Runtime.funcWrappers[sig]) {
  496. Runtime.funcWrappers[sig] = {};
  497. }
  498. var sigCache = Runtime.funcWrappers[sig];
  499. if (!sigCache[func]) {
  500. // optimize away arguments usage in common cases
  501. if (sig.length === 1) {
  502. sigCache[func] = function dynCall_wrapper() {
  503. return Runtime.dynCall(sig, func);
  504. };
  505. } else if (sig.length === 2) {
  506. sigCache[func] = function dynCall_wrapper(arg) {
  507. return Runtime.dynCall(sig, func, [arg]);
  508. };
  509. } else {
  510. // general case
  511. sigCache[func] = function dynCall_wrapper() {
  512. return Runtime.dynCall(sig, func, Array.prototype.slice.call(arguments));
  513. };
  514. }
  515. }
  516. return sigCache[func];
  517. },
  518. getCompilerSetting: function (name) {
  519. throw 'You must build with -s RETAIN_COMPILER_SETTINGS=1 for Runtime.getCompilerSetting or emscripten_get_compiler_setting to work';
  520. },
  521. stackAlloc: function (size) { var ret = STACKTOP;STACKTOP = (STACKTOP + size)|0;STACKTOP = (((STACKTOP)+15)&-16);(assert((((STACKTOP|0) < (STACK_MAX|0))|0))|0); return ret; },
  522. staticAlloc: function (size) { var ret = STATICTOP;STATICTOP = (STATICTOP + (assert(!staticSealed),size))|0;STATICTOP = (((STATICTOP)+15)&-16); return ret; },
  523. 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;},
  524. alignMemory: function (size,quantum) { var ret = size = Math.ceil((size)/(quantum ? quantum : 16))*(quantum ? quantum : 16); return ret; },
  525. makeBigInt: function (low,high,unsigned) { var ret = (unsigned ? ((+((low>>>0)))+((+((high>>>0)))*4294967296.0)) : ((+((low>>>0)))+((+((high|0)))*4294967296.0))); return ret; },
  526. GLOBAL_BASE: 8,
  527. QUANTUM_SIZE: 4,
  528. __dummy__: 0
  529. }
  530. Module["Runtime"] = Runtime;
  531. //========================================
  532. // Runtime essentials
  533. //========================================
  534. var ABORT = 0; // whether we are quitting the application. no code should run after this. set in exit() and abort()
  535. var EXITSTATUS = 0;
  536. function assert(condition, text) {
  537. if (!condition) {
  538. abort('Assertion failed: ' + text);
  539. }
  540. }
  541. var globalScope = this;
  542. // Returns the C function with a specified identifier (for C++, you need to do manual name mangling)
  543. function getCFunc(ident) {
  544. var func = Module['_' + ident]; // closure exported function
  545. if (!func) {
  546. try { func = eval('_' + ident); } catch(e) {}
  547. }
  548. assert(func, 'Cannot call unknown function ' + ident + ' (perhaps LLVM optimizations or closure removed it?)');
  549. return func;
  550. }
  551. var cwrap, ccall;
  552. (function(){
  553. var JSfuncs = {
  554. // Helpers for cwrap -- it can't refer to Runtime directly because it might
  555. // be renamed by closure, instead it calls JSfuncs['stackSave'].body to find
  556. // out what the minified function name is.
  557. 'stackSave': function() {
  558. Runtime.stackSave()
  559. },
  560. 'stackRestore': function() {
  561. Runtime.stackRestore()
  562. },
  563. // type conversion from js to c
  564. 'arrayToC' : function(arr) {
  565. var ret = Runtime.stackAlloc(arr.length);
  566. writeArrayToMemory(arr, ret);
  567. return ret;
  568. },
  569. 'stringToC' : function(str) {
  570. var ret = 0;
  571. if (str !== null && str !== undefined && str !== 0) { // null string
  572. // at most 4 bytes per UTF-8 code point, +1 for the trailing '\0'
  573. var len = (str.length << 2) + 1;
  574. ret = Runtime.stackAlloc(len);
  575. stringToUTF8(str, ret, len);
  576. }
  577. return ret;
  578. }
  579. };
  580. // For fast lookup of conversion functions
  581. var toC = {'string' : JSfuncs['stringToC'], 'array' : JSfuncs['arrayToC']};
  582. // C calling interface.
  583. ccall = function ccallFunc(ident, returnType, argTypes, args, opts) {
  584. var func = getCFunc(ident);
  585. var cArgs = [];
  586. var stack = 0;
  587. assert(returnType !== 'array', 'Return type should not be "array".');
  588. if (args) {
  589. for (var i = 0; i < args.length; i++) {
  590. var converter = toC[argTypes[i]];
  591. if (converter) {
  592. if (stack === 0) stack = Runtime.stackSave();
  593. cArgs[i] = converter(args[i]);
  594. } else {
  595. cArgs[i] = args[i];
  596. }
  597. }
  598. }
  599. var ret = func.apply(null, cArgs);
  600. if ((!opts || !opts.async) && typeof EmterpreterAsync === 'object') {
  601. assert(!EmterpreterAsync.state, 'cannot start async op with normal JS calling ccall');
  602. }
  603. if (opts && opts.async) assert(!returnType, 'async ccalls cannot return values');
  604. if (returnType === 'string') ret = Pointer_stringify(ret);
  605. if (stack !== 0) {
  606. if (opts && opts.async) {
  607. EmterpreterAsync.asyncFinalizers.push(function() {
  608. Runtime.stackRestore(stack);
  609. });
  610. return;
  611. }
  612. Runtime.stackRestore(stack);
  613. }
  614. return ret;
  615. }
  616. var sourceRegex = /^function\s*[a-zA-Z$_0-9]*\s*\(([^)]*)\)\s*{\s*([^*]*?)[\s;]*(?:return\s*(.*?)[;\s]*)?}$/;
  617. function parseJSFunc(jsfunc) {
  618. // Match the body and the return value of a javascript function source
  619. var parsed = jsfunc.toString().match(sourceRegex).slice(1);
  620. return {arguments : parsed[0], body : parsed[1], returnValue: parsed[2]}
  621. }
  622. // sources of useful functions. we create this lazily as it can trigger a source decompression on this entire file
  623. var JSsource = null;
  624. function ensureJSsource() {
  625. if (!JSsource) {
  626. JSsource = {};
  627. for (var fun in JSfuncs) {
  628. if (JSfuncs.hasOwnProperty(fun)) {
  629. // Elements of toCsource are arrays of three items:
  630. // the code, and the return value
  631. JSsource[fun] = parseJSFunc(JSfuncs[fun]);
  632. }
  633. }
  634. }
  635. }
  636. cwrap = function cwrap(ident, returnType, argTypes) {
  637. argTypes = argTypes || [];
  638. var cfunc = getCFunc(ident);
  639. // When the function takes numbers and returns a number, we can just return
  640. // the original function
  641. var numericArgs = argTypes.every(function(type){ return type === 'number'});
  642. var numericRet = (returnType !== 'string');
  643. if ( numericRet && numericArgs) {
  644. return cfunc;
  645. }
  646. // Creation of the arguments list (["$1","$2",...,"$nargs"])
  647. var argNames = argTypes.map(function(x,i){return '$'+i});
  648. var funcstr = "(function(" + argNames.join(',') + ") {";
  649. var nargs = argTypes.length;
  650. if (!numericArgs) {
  651. // Generate the code needed to convert the arguments from javascript
  652. // values to pointers
  653. ensureJSsource();
  654. funcstr += 'var stack = ' + JSsource['stackSave'].body + ';';
  655. for (var i = 0; i < nargs; i++) {
  656. var arg = argNames[i], type = argTypes[i];
  657. if (type === 'number') continue;
  658. var convertCode = JSsource[type + 'ToC']; // [code, return]
  659. funcstr += 'var ' + convertCode.arguments + ' = ' + arg + ';';
  660. funcstr += convertCode.body + ';';
  661. funcstr += arg + '=(' + convertCode.returnValue + ');';
  662. }
  663. }
  664. // When the code is compressed, the name of cfunc is not literally 'cfunc' anymore
  665. var cfuncname = parseJSFunc(function(){return cfunc}).returnValue;
  666. // Call the function
  667. funcstr += 'var ret = ' + cfuncname + '(' + argNames.join(',') + ');';
  668. if (!numericRet) { // Return type can only by 'string' or 'number'
  669. // Convert the result to a string
  670. var strgfy = parseJSFunc(function(){return Pointer_stringify}).returnValue;
  671. funcstr += 'ret = ' + strgfy + '(ret);';
  672. }
  673. funcstr += "if (typeof EmterpreterAsync === 'object') { assert(!EmterpreterAsync.state, 'cannot start async op with normal JS calling cwrap') }";
  674. if (!numericArgs) {
  675. // If we had a stack, restore it
  676. ensureJSsource();
  677. funcstr += JSsource['stackRestore'].body.replace('()', '(stack)') + ';';
  678. }
  679. funcstr += 'return ret})';
  680. return eval(funcstr);
  681. };
  682. })();
  683. Module["ccall"] = ccall;
  684. Module["cwrap"] = cwrap;
  685. function setValue(ptr, value, type, noSafe) {
  686. type = type || 'i8';
  687. if (type.charAt(type.length-1) === '*') type = 'i32'; // pointers are 32-bit
  688. switch(type) {
  689. case 'i1': HEAP8[((ptr)>>0)]=value; break;
  690. case 'i8': HEAP8[((ptr)>>0)]=value; break;
  691. case 'i16': HEAP16[((ptr)>>1)]=value; break;
  692. case 'i32': HEAP32[((ptr)>>2)]=value; break;
  693. 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;
  694. case 'float': HEAPF32[((ptr)>>2)]=value; break;
  695. case 'double': HEAPF64[((ptr)>>3)]=value; break;
  696. default: abort('invalid type for setValue: ' + type);
  697. }
  698. }
  699. Module["setValue"] = setValue;
  700. function getValue(ptr, type, noSafe) {
  701. type = type || 'i8';
  702. if (type.charAt(type.length-1) === '*') type = 'i32'; // pointers are 32-bit
  703. switch(type) {
  704. case 'i1': return HEAP8[((ptr)>>0)];
  705. case 'i8': return HEAP8[((ptr)>>0)];
  706. case 'i16': return HEAP16[((ptr)>>1)];
  707. case 'i32': return HEAP32[((ptr)>>2)];
  708. case 'i64': return HEAP32[((ptr)>>2)];
  709. case 'float': return HEAPF32[((ptr)>>2)];
  710. case 'double': return HEAPF64[((ptr)>>3)];
  711. default: abort('invalid type for setValue: ' + type);
  712. }
  713. return null;
  714. }
  715. Module["getValue"] = getValue;
  716. var ALLOC_NORMAL = 0; // Tries to use _malloc()
  717. var ALLOC_STACK = 1; // Lives for the duration of the current function call
  718. var ALLOC_STATIC = 2; // Cannot be freed
  719. var ALLOC_DYNAMIC = 3; // Cannot be freed except through sbrk
  720. var ALLOC_NONE = 4; // Do not allocate
  721. Module["ALLOC_NORMAL"] = ALLOC_NORMAL;
  722. Module["ALLOC_STACK"] = ALLOC_STACK;
  723. Module["ALLOC_STATIC"] = ALLOC_STATIC;
  724. Module["ALLOC_DYNAMIC"] = ALLOC_DYNAMIC;
  725. Module["ALLOC_NONE"] = ALLOC_NONE;
  726. // allocate(): This is for internal use. You can use it yourself as well, but the interface
  727. // is a little tricky (see docs right below). The reason is that it is optimized
  728. // for multiple syntaxes to save space in generated code. So you should
  729. // normally not use allocate(), and instead allocate memory using _malloc(),
  730. // initialize it with setValue(), and so forth.
  731. // @slab: An array of data, or a number. If a number, then the size of the block to allocate,
  732. // in *bytes* (note that this is sometimes confusing: the next parameter does not
  733. // affect this!)
  734. // @types: Either an array of types, one for each byte (or 0 if no type at that position),
  735. // or a single type which is used for the entire block. This only matters if there
  736. // is initial data - if @slab is a number, then this does not matter at all and is
  737. // ignored.
  738. // @allocator: How to allocate memory, see ALLOC_*
  739. function allocate(slab, types, allocator, ptr) {
  740. var zeroinit, size;
  741. if (typeof slab === 'number') {
  742. zeroinit = true;
  743. size = slab;
  744. } else {
  745. zeroinit = false;
  746. size = slab.length;
  747. }
  748. var singleType = typeof types === 'string' ? types : null;
  749. var ret;
  750. if (allocator == ALLOC_NONE) {
  751. ret = ptr;
  752. } else {
  753. 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));
  754. }
  755. if (zeroinit) {
  756. var ptr = ret, stop;
  757. assert((ret & 3) == 0);
  758. stop = ret + (size & ~3);
  759. for (; ptr < stop; ptr += 4) {
  760. HEAP32[((ptr)>>2)]=0;
  761. }
  762. stop = ret + size;
  763. while (ptr < stop) {
  764. HEAP8[((ptr++)>>0)]=0;
  765. }
  766. return ret;
  767. }
  768. if (singleType === 'i8') {
  769. if (slab.subarray || slab.slice) {
  770. HEAPU8.set(slab, ret);
  771. } else {
  772. HEAPU8.set(new Uint8Array(slab), ret);
  773. }
  774. return ret;
  775. }
  776. var i = 0, type, typeSize, previousType;
  777. while (i < size) {
  778. var curr = slab[i];
  779. if (typeof curr === 'function') {
  780. curr = Runtime.getFunctionIndex(curr);
  781. }
  782. type = singleType || types[i];
  783. if (type === 0) {
  784. i++;
  785. continue;
  786. }
  787. assert(type, 'Must know what type to store in allocate!');
  788. if (type == 'i64') type = 'i32'; // special case: we have one i32 here, and one i32 later
  789. setValue(ret+i, curr, type);
  790. // no need to look up size unless type changes, so cache it
  791. if (previousType !== type) {
  792. typeSize = Runtime.getNativeTypeSize(type);
  793. previousType = type;
  794. }
  795. i += typeSize;
  796. }
  797. return ret;
  798. }
  799. Module["allocate"] = allocate;
  800. // Allocate memory during any stage of startup - static memory early on, dynamic memory later, malloc when ready
  801. function getMemory(size) {
  802. if (!staticSealed) return Runtime.staticAlloc(size);
  803. if (!runtimeInitialized) return Runtime.dynamicAlloc(size);
  804. return _malloc(size);
  805. }
  806. Module["getMemory"] = getMemory;
  807. function Pointer_stringify(ptr, /* optional */ length) {
  808. if (length === 0 || !ptr) return '';
  809. // TODO: use TextDecoder
  810. // Find the length, and check for UTF while doing so
  811. var hasUtf = 0;
  812. var t;
  813. var i = 0;
  814. while (1) {
  815. assert(ptr + i < TOTAL_MEMORY);
  816. t = HEAPU8[(((ptr)+(i))>>0)];
  817. hasUtf |= t;
  818. if (t == 0 && !length) break;
  819. i++;
  820. if (length && i == length) break;
  821. }
  822. if (!length) length = i;
  823. var ret = '';
  824. if (hasUtf < 128) {
  825. var MAX_CHUNK = 1024; // split up into chunks, because .apply on a huge string can overflow the stack
  826. var curr;
  827. while (length > 0) {
  828. curr = String.fromCharCode.apply(String, HEAPU8.subarray(ptr, ptr + Math.min(length, MAX_CHUNK)));
  829. ret = ret ? ret + curr : curr;
  830. ptr += MAX_CHUNK;
  831. length -= MAX_CHUNK;
  832. }
  833. return ret;
  834. }
  835. return Module['UTF8ToString'](ptr);
  836. }
  837. Module["Pointer_stringify"] = Pointer_stringify;
  838. // Given a pointer 'ptr' to a null-terminated ASCII-encoded string in the emscripten HEAP, returns
  839. // a copy of that string as a Javascript String object.
  840. function AsciiToString(ptr) {
  841. var str = '';
  842. while (1) {
  843. var ch = HEAP8[((ptr++)>>0)];
  844. if (!ch) return str;
  845. str += String.fromCharCode(ch);
  846. }
  847. }
  848. Module["AsciiToString"] = AsciiToString;
  849. // Copies the given Javascript String object 'str' to the emscripten HEAP at address 'outPtr',
  850. // null-terminated and encoded in ASCII form. The copy will require at most str.length+1 bytes of space in the HEAP.
  851. function stringToAscii(str, outPtr) {
  852. return writeAsciiToMemory(str, outPtr, false);
  853. }
  854. Module["stringToAscii"] = stringToAscii;
  855. // Given a pointer 'ptr' to a null-terminated UTF8-encoded string in the given array that contains uint8 values, returns
  856. // a copy of that string as a Javascript String object.
  857. var UTF8Decoder = typeof TextDecoder !== 'undefined' ? new TextDecoder('utf8') : undefined;
  858. function UTF8ArrayToString(u8Array, idx) {
  859. var endPtr = idx;
  860. // TextDecoder needs to know the byte length in advance, it doesn't stop on null terminator by itself.
  861. // Also, use the length info to avoid running tiny strings through TextDecoder, since .subarray() allocates garbage.
  862. while (u8Array[endPtr]) ++endPtr;
  863. if (endPtr - idx > 16 && u8Array.subarray && UTF8Decoder) {
  864. return UTF8Decoder.decode(u8Array.subarray(idx, endPtr));
  865. } else {
  866. var u0, u1, u2, u3, u4, u5;
  867. var str = '';
  868. while (1) {
  869. // 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
  870. u0 = u8Array[idx++];
  871. if (!u0) return str;
  872. if (!(u0 & 0x80)) { str += String.fromCharCode(u0); continue; }
  873. u1 = u8Array[idx++] & 63;
  874. if ((u0 & 0xE0) == 0xC0) { str += String.fromCharCode(((u0 & 31) << 6) | u1); continue; }
  875. u2 = u8Array[idx++] & 63;
  876. if ((u0 & 0xF0) == 0xE0) {
  877. u0 = ((u0 & 15) << 12) | (u1 << 6) | u2;
  878. } else {
  879. u3 = u8Array[idx++] & 63;
  880. if ((u0 & 0xF8) == 0xF0) {
  881. u0 = ((u0 & 7) << 18) | (u1 << 12) | (u2 << 6) | u3;
  882. } else {
  883. u4 = u8Array[idx++] & 63;
  884. if ((u0 & 0xFC) == 0xF8) {
  885. u0 = ((u0 & 3) << 24) | (u1 << 18) | (u2 << 12) | (u3 << 6) | u4;
  886. } else {
  887. u5 = u8Array[idx++] & 63;
  888. u0 = ((u0 & 1) << 30) | (u1 << 24) | (u2 << 18) | (u3 << 12) | (u4 << 6) | u5;
  889. }
  890. }
  891. }
  892. if (u0 < 0x10000) {
  893. str += String.fromCharCode(u0);
  894. } else {
  895. var ch = u0 - 0x10000;
  896. str += String.fromCharCode(0xD800 | (ch >> 10), 0xDC00 | (ch & 0x3FF));
  897. }
  898. }
  899. }
  900. }
  901. Module["UTF8ArrayToString"] = UTF8ArrayToString;
  902. // Given a pointer 'ptr' to a null-terminated UTF8-encoded string in the emscripten HEAP, returns
  903. // a copy of that string as a Javascript String object.
  904. function UTF8ToString(ptr) {
  905. return UTF8ArrayToString(HEAPU8,ptr);
  906. }
  907. Module["UTF8ToString"] = UTF8ToString;
  908. // Copies the given Javascript String object 'str' to the given byte array at address 'outIdx',
  909. // encoded in UTF8 form and null-terminated. The copy will require at most str.length*4+1 bytes of space in the HEAP.
  910. // Use the function lengthBytesUTF8 to compute the exact number of bytes (excluding null terminator) that this function will write.
  911. // Parameters:
  912. // str: the Javascript string to copy.
  913. // outU8Array: the array to copy to. Each index in this array is assumed to be one 8-byte element.
  914. // outIdx: The starting offset in the array to begin the copying.
  915. // maxBytesToWrite: The maximum number of bytes this function can write to the array. This count should include the null
  916. // terminator, i.e. if maxBytesToWrite=1, only the null terminator will be written and nothing else.
  917. // maxBytesToWrite=0 does not write any bytes to the output, not even the null terminator.
  918. // Returns the number of bytes written, EXCLUDING the null terminator.
  919. function stringToUTF8Array(str, outU8Array, outIdx, maxBytesToWrite) {
  920. if (!(maxBytesToWrite > 0)) // Parameter maxBytesToWrite is not optional. Negative values, 0, null, undefined and false each don't write out any bytes.
  921. return 0;
  922. var startIdx = outIdx;
  923. var endIdx = outIdx + maxBytesToWrite - 1; // -1 for string null terminator.
  924. for (var i = 0; i < str.length; ++i) {
  925. // 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.
  926. // See http://unicode.org/faq/utf_bom.html#utf16-3
  927. // 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
  928. var u = str.charCodeAt(i); // possibly a lead surrogate
  929. if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);
  930. if (u <= 0x7F) {
  931. if (outIdx >= endIdx) break;
  932. outU8Array[outIdx++] = u;
  933. } else if (u <= 0x7FF) {
  934. if (outIdx + 1 >= endIdx) break;
  935. outU8Array[outIdx++] = 0xC0 | (u >> 6);
  936. outU8Array[outIdx++] = 0x80 | (u & 63);
  937. } else if (u <= 0xFFFF) {
  938. if (outIdx + 2 >= endIdx) break;
  939. outU8Array[outIdx++] = 0xE0 | (u >> 12);
  940. outU8Array[outIdx++] = 0x80 | ((u >> 6) & 63);
  941. outU8Array[outIdx++] = 0x80 | (u & 63);
  942. } else if (u <= 0x1FFFFF) {
  943. if (outIdx + 3 >= endIdx) break;
  944. outU8Array[outIdx++] = 0xF0 | (u >> 18);
  945. outU8Array[outIdx++] = 0x80 | ((u >> 12) & 63);
  946. outU8Array[outIdx++] = 0x80 | ((u >> 6) & 63);
  947. outU8Array[outIdx++] = 0x80 | (u & 63);
  948. } else if (u <= 0x3FFFFFF) {
  949. if (outIdx + 4 >= endIdx) break;
  950. outU8Array[outIdx++] = 0xF8 | (u >> 24);
  951. outU8Array[outIdx++] = 0x80 | ((u >> 18) & 63);
  952. outU8Array[outIdx++] = 0x80 | ((u >> 12) & 63);
  953. outU8Array[outIdx++] = 0x80 | ((u >> 6) & 63);
  954. outU8Array[outIdx++] = 0x80 | (u & 63);
  955. } else {
  956. if (outIdx + 5 >= endIdx) break;
  957. outU8Array[outIdx++] = 0xFC | (u >> 30);
  958. outU8Array[outIdx++] = 0x80 | ((u >> 24) & 63);
  959. outU8Array[outIdx++] = 0x80 | ((u >> 18) & 63);
  960. outU8Array[outIdx++] = 0x80 | ((u >> 12) & 63);
  961. outU8Array[outIdx++] = 0x80 | ((u >> 6) & 63);
  962. outU8Array[outIdx++] = 0x80 | (u & 63);
  963. }
  964. }
  965. // Null-terminate the pointer to the buffer.
  966. outU8Array[outIdx] = 0;
  967. return outIdx - startIdx;
  968. }
  969. Module["stringToUTF8Array"] = stringToUTF8Array;
  970. // Copies the given Javascript String object 'str' to the emscripten HEAP at address 'outPtr',
  971. // null-terminated and encoded in UTF8 form. The copy will require at most str.length*4+1 bytes of space in the HEAP.
  972. // Use the function lengthBytesUTF8 to compute the exact number of bytes (excluding null terminator) that this function will write.
  973. // Returns the number of bytes written, EXCLUDING the null terminator.
  974. function stringToUTF8(str, outPtr, maxBytesToWrite) {
  975. assert(typeof maxBytesToWrite == 'number', 'stringToUTF8(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!');
  976. return stringToUTF8Array(str, HEAPU8,outPtr, maxBytesToWrite);
  977. }
  978. Module["stringToUTF8"] = stringToUTF8;
  979. // Returns the number of bytes the given Javascript string takes if encoded as a UTF8 byte array, EXCLUDING the null terminator byte.
  980. function lengthBytesUTF8(str) {
  981. var len = 0;
  982. for (var i = 0; i < str.length; ++i) {
  983. // 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.
  984. // See http://unicode.org/faq/utf_bom.html#utf16-3
  985. var u = str.charCodeAt(i); // possibly a lead surrogate
  986. if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);
  987. if (u <= 0x7F) {
  988. ++len;
  989. } else if (u <= 0x7FF) {
  990. len += 2;
  991. } else if (u <= 0xFFFF) {
  992. len += 3;
  993. } else if (u <= 0x1FFFFF) {
  994. len += 4;
  995. } else if (u <= 0x3FFFFFF) {
  996. len += 5;
  997. } else {
  998. len += 6;
  999. }
  1000. }
  1001. return len;
  1002. }
  1003. Module["lengthBytesUTF8"] = lengthBytesUTF8;
  1004. // Given a pointer 'ptr' to a null-terminated UTF16LE-encoded string in the emscripten HEAP, returns
  1005. // a copy of that string as a Javascript String object.
  1006. var UTF16Decoder = typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-16le') : undefined;
  1007. function UTF16ToString(ptr) {
  1008. assert(ptr % 2 == 0, 'Pointer passed to UTF16ToString must be aligned to two bytes!');
  1009. var endPtr = ptr;
  1010. // TextDecoder needs to know the byte length in advance, it doesn't stop on null terminator by itself.
  1011. // Also, use the length info to avoid running tiny strings through TextDecoder, since .subarray() allocates garbage.
  1012. var idx = endPtr >> 1;
  1013. while (HEAP16[idx]) ++idx;
  1014. endPtr = idx << 1;
  1015. if (endPtr - ptr > 32 && UTF16Decoder) {
  1016. return UTF16Decoder.decode(HEAPU8.subarray(ptr, endPtr));
  1017. } else {
  1018. var i = 0;
  1019. var str = '';
  1020. while (1) {
  1021. var codeUnit = HEAP16[(((ptr)+(i*2))>>1)];
  1022. if (codeUnit == 0) return str;
  1023. ++i;
  1024. // fromCharCode constructs a character from a UTF-16 code unit, so we can pass the UTF16 string right through.
  1025. str += String.fromCharCode(codeUnit);
  1026. }
  1027. }
  1028. }
  1029. // Copies the given Javascript String object 'str' to the emscripten HEAP at address 'outPtr',
  1030. // null-terminated and encoded in UTF16 form. The copy will require at most str.length*4+2 bytes of space in the HEAP.
  1031. // Use the function lengthBytesUTF16() to compute the exact number of bytes (excluding null terminator) that this function will write.
  1032. // Parameters:
  1033. // str: the Javascript string to copy.
  1034. // outPtr: Byte address in Emscripten HEAP where to write the string to.
  1035. // maxBytesToWrite: The maximum number of bytes this function can write to the array. This count should include the null
  1036. // terminator, i.e. if maxBytesToWrite=2, only the null terminator will be written and nothing else.
  1037. // maxBytesToWrite<2 does not write any bytes to the output, not even the null terminator.
  1038. // Returns the number of bytes written, EXCLUDING the null terminator.
  1039. function stringToUTF16(str, outPtr, maxBytesToWrite) {
  1040. assert(outPtr % 2 == 0, 'Pointer passed to stringToUTF16 must be aligned to two bytes!');
  1041. assert(typeof maxBytesToWrite == 'number', 'stringToUTF16(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!');
  1042. // Backwards compatibility: if max bytes is not specified, assume unsafe unbounded write is allowed.
  1043. if (maxBytesToWrite === undefined) {
  1044. maxBytesToWrite = 0x7FFFFFFF;
  1045. }
  1046. if (maxBytesToWrite < 2) return 0;
  1047. maxBytesToWrite -= 2; // Null terminator.
  1048. var startPtr = outPtr;
  1049. var numCharsToWrite = (maxBytesToWrite < str.length*2) ? (maxBytesToWrite / 2) : str.length;
  1050. for (var i = 0; i < numCharsToWrite; ++i) {
  1051. // charCodeAt returns a UTF-16 encoded code unit, so it can be directly written to the HEAP.
  1052. var codeUnit = str.charCodeAt(i); // possibly a lead surrogate
  1053. HEAP16[((outPtr)>>1)]=codeUnit;
  1054. outPtr += 2;
  1055. }
  1056. // Null-terminate the pointer to the HEAP.
  1057. HEAP16[((outPtr)>>1)]=0;
  1058. return outPtr - startPtr;
  1059. }
  1060. // Returns the number of bytes the given Javascript string takes if encoded as a UTF16 byte array, EXCLUDING the null terminator byte.
  1061. function lengthBytesUTF16(str) {
  1062. return str.length*2;
  1063. }
  1064. function UTF32ToString(ptr) {
  1065. assert(ptr % 4 == 0, 'Pointer passed to UTF32ToString must be aligned to four bytes!');
  1066. var i = 0;
  1067. var str = '';
  1068. while (1) {
  1069. var utf32 = HEAP32[(((ptr)+(i*4))>>2)];
  1070. if (utf32 == 0)
  1071. return str;
  1072. ++i;
  1073. // 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.
  1074. // See http://unicode.org/faq/utf_bom.html#utf16-3
  1075. if (utf32 >= 0x10000) {
  1076. var ch = utf32 - 0x10000;
  1077. str += String.fromCharCode(0xD800 | (ch >> 10), 0xDC00 | (ch & 0x3FF));
  1078. } else {
  1079. str += String.fromCharCode(utf32);
  1080. }
  1081. }
  1082. }
  1083. // Copies the given Javascript String object 'str' to the emscripten HEAP at address 'outPtr',
  1084. // null-terminated and encoded in UTF32 form. The copy will require at most str.length*4+4 bytes of space in the HEAP.
  1085. // Use the function lengthBytesUTF32() to compute the exact number of bytes (excluding null terminator) that this function will write.
  1086. // Parameters:
  1087. // str: the Javascript string to copy.
  1088. // outPtr: Byte address in Emscripten HEAP where to write the string to.
  1089. // maxBytesToWrite: The maximum number of bytes this function can write to the array. This count should include the null
  1090. // terminator, i.e. if maxBytesToWrite=4, only the null terminator will be written and nothing else.
  1091. // maxBytesToWrite<4 does not write any bytes to the output, not even the null terminator.
  1092. // Returns the number of bytes written, EXCLUDING the null terminator.
  1093. function stringToUTF32(str, outPtr, maxBytesToWrite) {
  1094. assert(outPtr % 4 == 0, 'Pointer passed to stringToUTF32 must be aligned to four bytes!');
  1095. assert(typeof maxBytesToWrite == 'number', 'stringToUTF32(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!');
  1096. // Backwards compatibility: if max bytes is not specified, assume unsafe unbounded write is allowed.
  1097. if (maxBytesToWrite === undefined) {
  1098. maxBytesToWrite = 0x7FFFFFFF;
  1099. }
  1100. if (maxBytesToWrite < 4) return 0;
  1101. var startPtr = outPtr;
  1102. var endPtr = startPtr + maxBytesToWrite - 4;
  1103. for (var i = 0; i < str.length; ++i) {
  1104. // 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.
  1105. // See http://unicode.org/faq/utf_bom.html#utf16-3
  1106. var codeUnit = str.charCodeAt(i); // possibly a lead surrogate
  1107. if (codeUnit >= 0xD800 && codeUnit <= 0xDFFF) {
  1108. var trailSurrogate = str.charCodeAt(++i);
  1109. codeUnit = 0x10000 + ((codeUnit & 0x3FF) << 10) | (trailSurrogate & 0x3FF);
  1110. }
  1111. HEAP32[((outPtr)>>2)]=codeUnit;
  1112. outPtr += 4;
  1113. if (outPtr + 4 > endPtr) break;
  1114. }
  1115. // Null-terminate the pointer to the HEAP.
  1116. HEAP32[((outPtr)>>2)]=0;
  1117. return outPtr - startPtr;
  1118. }
  1119. // Returns the number of bytes the given Javascript string takes if encoded as a UTF16 byte array, EXCLUDING the null terminator byte.
  1120. function lengthBytesUTF32(str) {
  1121. var len = 0;
  1122. for (var i = 0; i < str.length; ++i) {
  1123. // 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.
  1124. // See http://unicode.org/faq/utf_bom.html#utf16-3
  1125. var codeUnit = str.charCodeAt(i);
  1126. if (codeUnit >= 0xD800 && codeUnit <= 0xDFFF) ++i; // possibly a lead surrogate, so skip over the tail surrogate.
  1127. len += 4;
  1128. }
  1129. return len;
  1130. }
  1131. function demangle(func) {
  1132. var __cxa_demangle_func = Module['___cxa_demangle'] || Module['__cxa_demangle'];
  1133. if (__cxa_demangle_func) {
  1134. try {
  1135. var s =
  1136. func.substr(1);
  1137. var len = lengthBytesUTF8(s)+1;
  1138. var buf = _malloc(len);
  1139. stringToUTF8(s, buf, len);
  1140. var status = _malloc(4);
  1141. var ret = __cxa_demangle_func(buf, 0, 0, status);
  1142. if (getValue(status, 'i32') === 0 && ret) {
  1143. return Pointer_stringify(ret);
  1144. }
  1145. // otherwise, libcxxabi failed
  1146. } catch(e) {
  1147. // ignore problems here
  1148. } finally {
  1149. if (buf) _free(buf);
  1150. if (status) _free(status);
  1151. if (ret) _free(ret);
  1152. }
  1153. // failure when using libcxxabi, don't demangle
  1154. return func;
  1155. }
  1156. Runtime.warnOnce('warning: build with -s DEMANGLE_SUPPORT=1 to link in libcxxabi demangling');
  1157. return func;
  1158. }
  1159. function demangleAll(text) {
  1160. var regex =
  1161. /__Z[\w\d_]+/g;
  1162. return text.replace(regex,
  1163. function(x) {
  1164. var y = demangle(x);
  1165. return x === y ? x : (x + ' [' + y + ']');
  1166. });
  1167. }
  1168. function jsStackTrace() {
  1169. var err = new Error();
  1170. if (!err.stack) {
  1171. // IE10+ special cases: It does have callstack info, but it is only populated if an Error object is thrown,
  1172. // so try that as a special-case.
  1173. try {
  1174. throw new Error(0);
  1175. } catch(e) {
  1176. err = e;
  1177. }
  1178. if (!err.stack) {
  1179. return '(no stack trace available)';
  1180. }
  1181. }
  1182. return err.stack.toString();
  1183. }
  1184. function stackTrace() {
  1185. var js = jsStackTrace();
  1186. if (Module['extraStackTrace']) js += '\n' + Module['extraStackTrace']();
  1187. return demangleAll(js);
  1188. }
  1189. Module["stackTrace"] = stackTrace;
  1190. // Memory management
  1191. var PAGE_SIZE = 16384;
  1192. var WASM_PAGE_SIZE = 65536;
  1193. var ASMJS_PAGE_SIZE = 16777216;
  1194. var MIN_TOTAL_MEMORY = 16777216;
  1195. function alignUp(x, multiple) {
  1196. if (x % multiple > 0) {
  1197. x += multiple - (x % multiple);
  1198. }
  1199. return x;
  1200. }
  1201. var HEAP;
  1202. var buffer;
  1203. var HEAP8, HEAPU8, HEAP16, HEAPU16, HEAP32, HEAPU32, HEAPF32, HEAPF64;
  1204. function updateGlobalBuffer(buf) {
  1205. Module['buffer'] = buffer = buf;
  1206. }
  1207. function updateGlobalBufferViews() {
  1208. Module['HEAP8'] = HEAP8 = new Int8Array(buffer);
  1209. Module['HEAP16'] = HEAP16 = new Int16Array(buffer);
  1210. Module['HEAP32'] = HEAP32 = new Int32Array(buffer);
  1211. Module['HEAPU8'] = HEAPU8 = new Uint8Array(buffer);
  1212. Module['HEAPU16'] = HEAPU16 = new Uint16Array(buffer);
  1213. Module['HEAPU32'] = HEAPU32 = new Uint32Array(buffer);
  1214. Module['HEAPF32'] = HEAPF32 = new Float32Array(buffer);
  1215. Module['HEAPF64'] = HEAPF64 = new Float64Array(buffer);
  1216. }
  1217. var STATIC_BASE, STATICTOP, staticSealed; // static area
  1218. var STACK_BASE, STACKTOP, STACK_MAX; // stack area
  1219. var DYNAMIC_BASE, DYNAMICTOP_PTR; // dynamic area handled by sbrk
  1220. STATIC_BASE = STATICTOP = STACK_BASE = STACKTOP = STACK_MAX = DYNAMIC_BASE = DYNAMICTOP_PTR = 0;
  1221. staticSealed = false;
  1222. // Initializes the stack cookie. Called at the startup of main and at the startup of each thread in pthreads mode.
  1223. function writeStackCookie() {
  1224. assert((STACK_MAX & 3) == 0);
  1225. HEAPU32[(STACK_MAX >> 2)-1] = 0x02135467;
  1226. HEAPU32[(STACK_MAX >> 2)-2] = 0x89BACDFE;
  1227. }
  1228. function checkStackCookie() {
  1229. if (HEAPU32[(STACK_MAX >> 2)-1] != 0x02135467 || HEAPU32[(STACK_MAX >> 2)-2] != 0x89BACDFE) {
  1230. 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));
  1231. }
  1232. // 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.
  1233. if (HEAP32[0] !== 0x63736d65 /* 'emsc' */) throw 'Runtime error: The application has corrupted its heap memory area (address zero)!';
  1234. }
  1235. function abortStackOverflow(allocSize) {
  1236. abort('Stack overflow! Attempted to allocate ' + allocSize + ' bytes on the stack, but stack has only ' + (STACK_MAX - asm.stackSave() + allocSize) + ' bytes available!');
  1237. }
  1238. function abortOnCannotGrowMemory() {
  1239. 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 ');
  1240. }
  1241. function enlargeMemory() {
  1242. abortOnCannotGrowMemory();
  1243. }
  1244. var TOTAL_STACK = Module['TOTAL_STACK'] || 5242880;
  1245. var TOTAL_MEMORY = Module['TOTAL_MEMORY'] || 67108864;
  1246. if (TOTAL_MEMORY < TOTAL_STACK) Module.printErr('TOTAL_MEMORY should be larger than TOTAL_STACK, was ' + TOTAL_MEMORY + '! (TOTAL_STACK=' + TOTAL_STACK + ')');
  1247. // Initialize the runtime's memory
  1248. // check for full engine support (use string 'subarray' to avoid closure compiler confusion)
  1249. assert(typeof Int32Array !== 'undefined' && typeof Float64Array !== 'undefined' && !!(new Int32Array(1)['subarray']) && !!(new Int32Array(1)['set']),
  1250. 'JS engine does not provide full typed array support');
  1251. // Use a provided buffer, if there is one, or else allocate a new one
  1252. if (Module['buffer']) {
  1253. buffer = Module['buffer'];
  1254. assert(buffer.byteLength === TOTAL_MEMORY, 'provided buffer should be ' + TOTAL_MEMORY + ' bytes, but it is ' + buffer.byteLength);
  1255. } else {
  1256. // Use a WebAssembly memory where available
  1257. {
  1258. buffer = new ArrayBuffer(TOTAL_MEMORY);
  1259. }
  1260. assert(buffer.byteLength === TOTAL_MEMORY);
  1261. }
  1262. updateGlobalBufferViews();
  1263. function getTotalMemory() {
  1264. return TOTAL_MEMORY;
  1265. }
  1266. // Endianness check (note: assumes compiler arch was little-endian)
  1267. HEAP32[0] = 0x63736d65; /* 'emsc' */
  1268. HEAP16[1] = 0x6373;
  1269. if (HEAPU8[2] !== 0x73 || HEAPU8[3] !== 0x63) throw 'Runtime error: expected the system to be little-endian!';
  1270. Module['HEAP'] = HEAP;
  1271. Module['buffer'] = buffer;
  1272. Module['HEAP8'] = HEAP8;
  1273. Module['HEAP16'] = HEAP16;
  1274. Module['HEAP32'] = HEAP32;
  1275. Module['HEAPU8'] = HEAPU8;
  1276. Module['HEAPU16'] = HEAPU16;
  1277. Module['HEAPU32'] = HEAPU32;
  1278. Module['HEAPF32'] = HEAPF32;
  1279. Module['HEAPF64'] = HEAPF64;
  1280. function callRuntimeCallbacks(callbacks) {
  1281. while(callbacks.length > 0) {
  1282. var callback = callbacks.shift();
  1283. if (typeof callback == 'function') {
  1284. callback();
  1285. continue;
  1286. }
  1287. var func = callback.func;
  1288. if (typeof func === 'number') {
  1289. if (callback.arg === undefined) {
  1290. Module['dynCall_v'](func);
  1291. } else {
  1292. Module['dynCall_vi'](func, callback.arg);
  1293. }
  1294. } else {
  1295. func(callback.arg === undefined ? null : callback.arg);
  1296. }
  1297. }
  1298. }
  1299. var __ATPRERUN__ = []; // functions called before the runtime is initialized
  1300. var __ATINIT__ = []; // functions called during startup
  1301. var __ATMAIN__ = []; // functions called when main() is to be run
  1302. var __ATEXIT__ = []; // functions called during shutdown
  1303. var __ATPOSTRUN__ = []; // functions called after the runtime has exited
  1304. var runtimeInitialized = false;
  1305. var runtimeExited = false;
  1306. function preRun() {
  1307. // compatibility - merge in anything from Module['preRun'] at this time
  1308. if (Module['preRun']) {
  1309. if (typeof Module['preRun'] == 'function') Module['preRun'] = [Module['preRun']];
  1310. while (Module['preRun'].length) {
  1311. addOnPreRun(Module['preRun'].shift());
  1312. }
  1313. }
  1314. callRuntimeCallbacks(__ATPRERUN__);
  1315. }
  1316. function ensureInitRuntime() {
  1317. checkStackCookie();
  1318. if (runtimeInitialized) return;
  1319. runtimeInitialized = true;
  1320. callRuntimeCallbacks(__ATINIT__);
  1321. }
  1322. function preMain() {
  1323. checkStackCookie();
  1324. callRuntimeCallbacks(__ATMAIN__);
  1325. }
  1326. function exitRuntime() {
  1327. checkStackCookie();
  1328. callRuntimeCallbacks(__ATEXIT__);
  1329. runtimeExited = true;
  1330. }
  1331. function postRun() {
  1332. checkStackCookie();
  1333. // compatibility - merge in anything from Module['postRun'] at this time
  1334. if (Module['postRun']) {
  1335. if (typeof Module['postRun'] == 'function') Module['postRun'] = [Module['postRun']];
  1336. while (Module['postRun'].length) {
  1337. addOnPostRun(Module['postRun'].shift());
  1338. }
  1339. }
  1340. callRuntimeCallbacks(__ATPOSTRUN__);
  1341. }
  1342. function addOnPreRun(cb) {
  1343. __ATPRERUN__.unshift(cb);
  1344. }
  1345. Module["addOnPreRun"] = addOnPreRun;
  1346. function addOnInit(cb) {
  1347. __ATINIT__.unshift(cb);
  1348. }
  1349. Module["addOnInit"] = addOnInit;
  1350. function addOnPreMain(cb) {
  1351. __ATMAIN__.unshift(cb);
  1352. }
  1353. Module["addOnPreMain"] = addOnPreMain;
  1354. function addOnExit(cb) {
  1355. __ATEXIT__.unshift(cb);
  1356. }
  1357. Module["addOnExit"] = addOnExit;
  1358. function addOnPostRun(cb) {
  1359. __ATPOSTRUN__.unshift(cb);
  1360. }
  1361. Module["addOnPostRun"] = addOnPostRun;
  1362. // Tools
  1363. function intArrayFromString(stringy, dontAddNull, length /* optional */) {
  1364. var len = length > 0 ? length : lengthBytesUTF8(stringy)+1;
  1365. var u8array = new Array(len);
  1366. var numBytesWritten = stringToUTF8Array(stringy, u8array, 0, u8array.length);
  1367. if (dontAddNull) u8array.length = numBytesWritten;
  1368. return u8array;
  1369. }
  1370. Module["intArrayFromString"] = intArrayFromString;
  1371. function intArrayToString(array) {
  1372. var ret = [];
  1373. for (var i = 0; i < array.length; i++) {
  1374. var chr = array[i];
  1375. if (chr > 0xFF) {
  1376. assert(false, 'Character code ' + chr + ' (' + String.fromCharCode(chr) + ') at offset ' + i + ' not in 0x00-0xFF.');
  1377. chr &= 0xFF;
  1378. }
  1379. ret.push(String.fromCharCode(chr));
  1380. }
  1381. return ret.join('');
  1382. }
  1383. Module["intArrayToString"] = intArrayToString;
  1384. // Deprecated: This function should not be called because it is unsafe and does not provide
  1385. // a maximum length limit of how many bytes it is allowed to write. Prefer calling the
  1386. // function stringToUTF8Array() instead, which takes in a maximum length that can be used
  1387. // to be secure from out of bounds writes.
  1388. function writeStringToMemory(string, buffer, dontAddNull) {
  1389. Runtime.warnOnce('writeStringToMemory is deprecated and should not be called! Use stringToUTF8() instead!');
  1390. var lastChar, end;
  1391. if (dontAddNull) {
  1392. // stringToUTF8Array always appends null. If we don't want to do that, remember the
  1393. // character that existed at the location where the null will be placed, and restore
  1394. // that after the write (below).
  1395. end = buffer + lengthBytesUTF8(string);
  1396. lastChar = HEAP8[end];
  1397. }
  1398. stringToUTF8(string, buffer, Infinity);
  1399. if (dontAddNull) HEAP8[end] = lastChar; // Restore the value under the null character.
  1400. }
  1401. Module["writeStringToMemory"] = writeStringToMemory;
  1402. function writeArrayToMemory(array, buffer) {
  1403. assert(array.length >= 0, 'writeArrayToMemory array must have a length (should be an array or typed array)')
  1404. HEAP8.set(array, buffer);
  1405. }
  1406. Module["writeArrayToMemory"] = writeArrayToMemory;
  1407. function writeAsciiToMemory(str, buffer, dontAddNull) {
  1408. for (var i = 0; i < str.length; ++i) {
  1409. assert(str.charCodeAt(i) === str.charCodeAt(i)&0xff);
  1410. HEAP8[((buffer++)>>0)]=str.charCodeAt(i);
  1411. }
  1412. // Null-terminate the pointer to the HEAP.
  1413. if (!dontAddNull) HEAP8[((buffer)>>0)]=0;
  1414. }
  1415. Module["writeAsciiToMemory"] = writeAsciiToMemory;
  1416. function unSign(value, bits, ignore) {
  1417. if (value >= 0) {
  1418. return value;
  1419. }
  1420. 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
  1421. : Math.pow(2, bits) + value;
  1422. }
  1423. function reSign(value, bits, ignore) {
  1424. if (value <= 0) {
  1425. return value;
  1426. }
  1427. var half = bits <= 32 ? Math.abs(1 << (bits-1)) // abs is needed if bits == 32
  1428. : Math.pow(2, bits-1);
  1429. 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
  1430. // but, in general there is no perfect solution here. With 64-bit ints, we get rounding and errors
  1431. // TODO: In i64 mode 1, resign the two parts separately and safely
  1432. value = -2*half + value; // Cannot bitshift half, as it may be at the limit of the bits JS uses in bitshifts
  1433. }
  1434. return value;
  1435. }
  1436. // check for imul support, and also for correctness ( https://bugs.webkit.org/show_bug.cgi?id=126345 )
  1437. if (!Math['imul'] || Math['imul'](0xffffffff, 5) !== -5) Math['imul'] = function imul(a, b) {
  1438. var ah = a >>> 16;
  1439. var al = a & 0xffff;
  1440. var bh = b >>> 16;
  1441. var bl = b & 0xffff;
  1442. return (al*bl + ((ah*bl + al*bh) << 16))|0;
  1443. };
  1444. Math.imul = Math['imul'];
  1445. if (!Math['clz32']) Math['clz32'] = function(x) {
  1446. x = x >>> 0;
  1447. for (var i = 0; i < 32; i++) {
  1448. if (x & (1 << (31 - i))) return i;
  1449. }
  1450. return 32;
  1451. };
  1452. Math.clz32 = Math['clz32']
  1453. if (!Math['trunc']) Math['trunc'] = function(x) {
  1454. return x < 0 ? Math.ceil(x) : Math.floor(x);
  1455. };
  1456. Math.trunc = Math['trunc'];
  1457. var Math_abs = Math.abs;
  1458. var Math_cos = Math.cos;
  1459. var Math_sin = Math.sin;
  1460. var Math_tan = Math.tan;
  1461. var Math_acos = Math.acos;
  1462. var Math_asin = Math.asin;
  1463. var Math_atan = Math.atan;
  1464. var Math_atan2 = Math.atan2;
  1465. var Math_exp = Math.exp;
  1466. var Math_log = Math.log;
  1467. var Math_sqrt = Math.sqrt;
  1468. var Math_ceil = Math.ceil;
  1469. var Math_floor = Math.floor;
  1470. var Math_pow = Math.pow;
  1471. var Math_imul = Math.imul;
  1472. var Math_fround = Math.fround;
  1473. var Math_round = Math.round;
  1474. var Math_min = Math.min;
  1475. var Math_clz32 = Math.clz32;
  1476. var Math_trunc = Math.trunc;
  1477. // A counter of dependencies for calling run(). If we need to
  1478. // do asynchronous work before running, increment this and
  1479. // decrement it. Incrementing must happen in a place like
  1480. // PRE_RUN_ADDITIONS (used by emcc to add file preloading).
  1481. // Note that you can add dependencies in preRun, even though
  1482. // it happens right before run - run will be postponed until
  1483. // the dependencies are met.
  1484. var runDependencies = 0;
  1485. var runDependencyWatcher = null;
  1486. var dependenciesFulfilled = null; // overridden to take different actions when all run dependencies are fulfilled
  1487. var runDependencyTracking = {};
  1488. function getUniqueRunDependency(id) {
  1489. var orig = id;
  1490. while (1) {
  1491. if (!runDependencyTracking[id]) return id;
  1492. id = orig + Math.random();
  1493. }
  1494. return id;
  1495. }
  1496. function addRunDependency(id) {
  1497. runDependencies++;
  1498. if (Module['monitorRunDependencies']) {
  1499. Module['monitorRunDependencies'](runDependencies);
  1500. }
  1501. if (id) {
  1502. assert(!runDependencyTracking[id]);
  1503. runDependencyTracking[id] = 1;
  1504. if (runDependencyWatcher === null && typeof setInterval !== 'undefined') {
  1505. // Check for missing dependencies every few seconds
  1506. runDependencyWatcher = setInterval(function() {
  1507. if (ABORT) {
  1508. clearInterval(runDependencyWatcher);
  1509. runDependencyWatcher = null;
  1510. return;
  1511. }
  1512. var shown = false;
  1513. for (var dep in runDependencyTracking) {
  1514. if (!shown) {
  1515. shown = true;
  1516. Module.printErr('still waiting on run dependencies:');
  1517. }
  1518. Module.printErr('dependency: ' + dep);
  1519. }
  1520. if (shown) {
  1521. Module.printErr('(end of list)');
  1522. }
  1523. }, 10000);
  1524. }
  1525. } else {
  1526. Module.printErr('warning: run dependency added without ID');
  1527. }
  1528. }
  1529. Module["addRunDependency"] = addRunDependency;
  1530. function removeRunDependency(id) {
  1531. runDependencies--;
  1532. if (Module['monitorRunDependencies']) {
  1533. Module['monitorRunDependencies'](runDependencies);
  1534. }
  1535. if (id) {
  1536. assert(runDependencyTracking[id]);
  1537. delete runDependencyTracking[id];
  1538. } else {
  1539. Module.printErr('warning: run dependency removed without ID');
  1540. }
  1541. if (runDependencies == 0) {
  1542. if (runDependencyWatcher !== null) {
  1543. clearInterval(runDependencyWatcher);
  1544. runDependencyWatcher = null;
  1545. }
  1546. if (dependenciesFulfilled) {
  1547. var callback = dependenciesFulfilled;
  1548. dependenciesFulfilled = null;
  1549. callback(); // can add another dependenciesFulfilled
  1550. }
  1551. }
  1552. }
  1553. Module["removeRunDependency"] = removeRunDependency;
  1554. Module["preloadedImages"] = {}; // maps url to image data
  1555. Module["preloadedAudios"] = {}; // maps url to audio data
  1556. var memoryInitializer = null;
  1557. // === Body ===
  1558. var ASM_CONSTS = [function($0, $1) { { Module.printErr('bad name in getProcAddress: ' + [Pointer_stringify($0), Pointer_stringify($1)]); } }];
  1559. function _emscripten_asm_const_iii(code, a0, a1) {
  1560. return ASM_CONSTS[code](a0, a1);
  1561. }
  1562. STATIC_BASE = 8;
  1563. STATICTOP = STATIC_BASE + 24496;
  1564. /* global initializers */ __ATINIT__.push();
  1565. /* memory initializer */ allocate([32,3,0,0,194,1,0,0,0,0,64,64,0,0,64,64,0,0,64,64,0,0,0,0,0,0,192,63,0,0,0,0,0,0,0,0,0,0,128,63,0,0,0,0,0,0,52,66,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,60,84,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,60,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,167,91,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,60,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,115,104,97,100,101,114,115,93,32,101,120,97,109,112,108,101,32,45,32,99,117,115,116,111,109,32,117,110,105,102,111,114,109,32,118,97,114,105,97,98,108,101,0,114,101,115,111,117,114,99,101,115,47,109,111,100,101,108,47,100,119,97,114,102,46,111,98,106,0,114,101,115,111,117,114,99,101,115,47,109,111,100,101,108,47,100,119,97,114,102,95,100,105,102,102,117,115,101,46,112,110,103,0,114,101,115,111,117,114,99,101,115,47,115,104,97,100,101,114,115,47,103,108,115,108,49,48,48,47,98,97,115,101,46,118,115,0,114,101,115,111,117,114,99,101,115,47,115,104,97,100,101,114,115,47,103,108,115,108,49,48,48,47,115,119,105,114,108,46,102,115,0,99,101,110,116,101,114,0,84,69,88,84,32,68,82,65,87,78,32,73,78,32,82,69,78,68,69,82,32,84,69,88,84,85,82,69,0,40,99,41,32,68,119,97,114,102,32,51,68,32,109,111,100,101,108,32,98,121,32,68,97,118,105,100,32,77,111,114,101,110,111,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,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,70,114,97,109,101,98,117,102,102,101,114,32,111,98,106,101,99,116,32,99,111,117,108,100,32,110,111,116,32,98,101,32,99,114,101,97,116,101,100,46,46,46,0,70,114,97,109,101,98,117,102,102,101,114,32,105,115,32,117,110,115,117,112,112,111,114,116,101,100,0,70,114,97,109,101,98,117,102,102,101,114,32,105,110,99,111,109,112,108,101,116,101,32,97,116,116,97,99,104,109,101,110,116,0,70,114,97,109,101,98,117,102,102,101,114,32,105,110,99,111,109,112,108,101,116,101,32,100,105,109,101,110,115,105,111,110,115,0,70,114,97,109,101,98,117,102,102,101,114,32,105,110,99,111,109,112,108,101,116,101,32,109,105,115,115,105,110,103,32,97,116,116,97,99,104,109,101,110,116,0,91,70,66,79,32,73,68,32,37,105,93,32,70,114,97,109,101,98,117,102,102,101,114,32,111,98,106,101,99,116,32,99,114,101,97,116,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,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,91,37,115,93,32,84,101,120,116,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,67,117,115,116,111,109,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,91,83,72,68,82,32,73,68,32,37,105,93,32,85,110,108,111,97,100,101,100,32,115,104,97,100,101,114,32,112,114,111,103,114,97,109,32,100,97,116,97,0,91,83,72,68,82,32,73,68,32,37,105,93,32,83,104,97,100,101,114,32,108,111,99,97,116,105,111,110,32,102,111,114,32,37,115,32,99,111,117,108,100,32,110,111,116,32,98,101,32,102,111,117,110,100,0,83,104,97,100,101,114,32,118,97,108,117,101,32,102,108,111,97,116,32,97,114,114,97,121,32,115,105,122,101,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,114,105,46,98], "i8", ALLOC_NONE, Runtime.GLOBAL_BASE);
  1566. /* memory initializer */ allocate([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,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);
  1567. /* no memory initializer */
  1568. var tempDoublePtr = STATICTOP; STATICTOP += 16;
  1569. assert(tempDoublePtr % 8 == 0);
  1570. function copyTempFloat(ptr) { // functions, because inlining this code increases code size too much
  1571. HEAP8[tempDoublePtr] = HEAP8[ptr];
  1572. HEAP8[tempDoublePtr+1] = HEAP8[ptr+1];
  1573. HEAP8[tempDoublePtr+2] = HEAP8[ptr+2];
  1574. HEAP8[tempDoublePtr+3] = HEAP8[ptr+3];
  1575. }
  1576. function copyTempDouble(ptr) {
  1577. HEAP8[tempDoublePtr] = HEAP8[ptr];
  1578. HEAP8[tempDoublePtr+1] = HEAP8[ptr+1];
  1579. HEAP8[tempDoublePtr+2] = HEAP8[ptr+2];
  1580. HEAP8[tempDoublePtr+3] = HEAP8[ptr+3];
  1581. HEAP8[tempDoublePtr+4] = HEAP8[ptr+4];
  1582. HEAP8[tempDoublePtr+5] = HEAP8[ptr+5];
  1583. HEAP8[tempDoublePtr+6] = HEAP8[ptr+6];
  1584. HEAP8[tempDoublePtr+7] = HEAP8[ptr+7];
  1585. }
  1586. // {{PRE_LIBRARY}}
  1587. 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 () {
  1588. GL.miniTempBuffer = new Float32Array(GL.MINI_TEMP_BUFFER_SIZE);
  1589. for (var i = 0; i < GL.MINI_TEMP_BUFFER_SIZE; i++) {
  1590. GL.miniTempBufferViews[i] = GL.miniTempBuffer.subarray(0, i+1);
  1591. }
  1592. // For functions such as glDrawBuffers, glInvalidateFramebuffer and glInvalidateSubFramebuffer that need to pass a short array to the WebGL API,
  1593. // create a set of short fixed-length arrays to avoid having to generate any garbage when calling those functions.
  1594. for (var i = 0; i < 32; i++) {
  1595. GL.tempFixedLengthArray.push(new Array(i));
  1596. }
  1597. },recordError:function recordError(errorCode) {
  1598. if (!GL.lastError) {
  1599. GL.lastError = errorCode;
  1600. }
  1601. },getNewId:function (table) {
  1602. var ret = GL.counter++;
  1603. for (var i = table.length; i < ret; i++) {
  1604. table[i] = null;
  1605. }
  1606. return ret;
  1607. },MINI_TEMP_BUFFER_SIZE:256,miniTempBuffer:null,miniTempBufferViews:[0],getSource:function (shader, count, string, length) {
  1608. var source = '';
  1609. for (var i = 0; i < count; ++i) {
  1610. var frag;
  1611. if (length) {
  1612. var len = HEAP32[(((length)+(i*4))>>2)];
  1613. if (len < 0) {
  1614. frag = Pointer_stringify(HEAP32[(((string)+(i*4))>>2)]);
  1615. } else {
  1616. frag = Pointer_stringify(HEAP32[(((string)+(i*4))>>2)], len);
  1617. }
  1618. } else {
  1619. frag = Pointer_stringify(HEAP32[(((string)+(i*4))>>2)]);
  1620. }
  1621. source += frag;
  1622. }
  1623. return source;
  1624. },createContext:function (canvas, webGLContextAttributes) {
  1625. if (typeof webGLContextAttributes['majorVersion'] === 'undefined' && typeof webGLContextAttributes['minorVersion'] === 'undefined') {
  1626. webGLContextAttributes['majorVersion'] = 1;
  1627. webGLContextAttributes['minorVersion'] = 0;
  1628. }
  1629. var ctx;
  1630. var errorInfo = '?';
  1631. function onContextCreationError(event) {
  1632. errorInfo = event.statusMessage || errorInfo;
  1633. }
  1634. try {
  1635. canvas.addEventListener('webglcontextcreationerror', onContextCreationError, false);
  1636. try {
  1637. if (webGLContextAttributes['majorVersion'] == 1 && webGLContextAttributes['minorVersion'] == 0) {
  1638. ctx = canvas.getContext("webgl", webGLContextAttributes) || canvas.getContext("experimental-webgl", webGLContextAttributes);
  1639. } else if (webGLContextAttributes['majorVersion'] == 2 && webGLContextAttributes['minorVersion'] == 0) {
  1640. ctx = canvas.getContext("webgl2", webGLContextAttributes) || canvas.getContext("experimental-webgl2", webGLContextAttributes);
  1641. } else {
  1642. throw 'Unsupported WebGL context version ' + majorVersion + '.' + minorVersion + '!'
  1643. }
  1644. } finally {
  1645. canvas.removeEventListener('webglcontextcreationerror', onContextCreationError, false);
  1646. }
  1647. if (!ctx) throw ':(';
  1648. } catch (e) {
  1649. Module.print('Could not create canvas: ' + [errorInfo, e, JSON.stringify(webGLContextAttributes)]);
  1650. return 0;
  1651. }
  1652. // possible GL_DEBUG entry point: ctx = wrapDebugGL(ctx);
  1653. if (!ctx) return 0;
  1654. return GL.registerContext(ctx, webGLContextAttributes);
  1655. },registerContext:function (ctx, webGLContextAttributes) {
  1656. var handle = GL.getNewId(GL.contexts);
  1657. var context = {
  1658. handle: handle,
  1659. attributes: webGLContextAttributes,
  1660. version: webGLContextAttributes['majorVersion'],
  1661. GLctx: ctx
  1662. };
  1663. // Store the created context object so that we can access the context given a canvas without having to pass the parameters again.
  1664. if (ctx.canvas) ctx.canvas.GLctxObject = context;
  1665. GL.contexts[handle] = context;
  1666. if (typeof webGLContextAttributes['enableExtensionsByDefault'] === 'undefined' || webGLContextAttributes['enableExtensionsByDefault']) {
  1667. GL.initExtensions(context);
  1668. }
  1669. return handle;
  1670. },makeContextCurrent:function (contextHandle) {
  1671. var context = GL.contexts[contextHandle];
  1672. if (!context) return false;
  1673. GLctx = Module.ctx = context.GLctx; // Active WebGL context object.
  1674. GL.currentContext = context; // Active Emscripten GL layer context object.
  1675. return true;
  1676. },getContext:function (contextHandle) {
  1677. return GL.contexts[contextHandle];
  1678. },deleteContext:function (contextHandle) {
  1679. if (GL.currentContext === GL.contexts[contextHandle]) GL.currentContext = null;
  1680. 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.
  1681. 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.
  1682. GL.contexts[contextHandle] = null;
  1683. },initExtensions:function (context) {
  1684. // If this function is called without a specific context object, init the extensions of the currently active context.
  1685. if (!context) context = GL.currentContext;
  1686. if (context.initExtensionsDone) return;
  1687. context.initExtensionsDone = true;
  1688. var GLctx = context.GLctx;
  1689. context.maxVertexAttribs = GLctx.getParameter(GLctx.MAX_VERTEX_ATTRIBS);
  1690. // Detect the presence of a few extensions manually, this GL interop layer itself will need to know if they exist.
  1691. if (context.version < 2) {
  1692. // Extension available from Firefox 26 and Google Chrome 30
  1693. var instancedArraysExt = GLctx.getExtension('ANGLE_instanced_arrays');
  1694. if (instancedArraysExt) {
  1695. GLctx['vertexAttribDivisor'] = function(index, divisor) { instancedArraysExt['vertexAttribDivisorANGLE'](index, divisor); };
  1696. GLctx['drawArraysInstanced'] = function(mode, first, count, primcount) { instancedArraysExt['drawArraysInstancedANGLE'](mode, first, count, primcount); };
  1697. GLctx['drawElementsInstanced'] = function(mode, count, type, indices, primcount) { instancedArraysExt['drawElementsInstancedANGLE'](mode, count, type, indices, primcount); };
  1698. }
  1699. // Extension available from Firefox 25 and WebKit
  1700. var vaoExt = GLctx.getExtension('OES_vertex_array_object');
  1701. if (vaoExt) {
  1702. GLctx['createVertexArray'] = function() { return vaoExt['createVertexArrayOES'](); };
  1703. GLctx['deleteVertexArray'] = function(vao) { vaoExt['deleteVertexArrayOES'](vao); };
  1704. GLctx['bindVertexArray'] = function(vao) { vaoExt['bindVertexArrayOES'](vao); };
  1705. GLctx['isVertexArray'] = function(vao) { return vaoExt['isVertexArrayOES'](vao); };
  1706. }
  1707. var drawBuffersExt = GLctx.getExtension('WEBGL_draw_buffers');
  1708. if (drawBuffersExt) {
  1709. GLctx['drawBuffers'] = function(n, bufs) { drawBuffersExt['drawBuffersWEBGL'](n, bufs); };
  1710. }
  1711. }
  1712. GLctx.disjointTimerQueryExt = GLctx.getExtension("EXT_disjoint_timer_query");
  1713. // These are the 'safe' feature-enabling extensions that don't add any performance impact related to e.g. debugging, and
  1714. // should be enabled by default so that client GLES2/GL code will not need to go through extra hoops to get its stuff working.
  1715. // As new extensions are ratified at http://www.khronos.org/registry/webgl/extensions/ , feel free to add your new extensions
  1716. // here, as long as they don't produce a performance impact for users that might not be using those extensions.
  1717. // E.g. debugging-related extensions should probably be off by default.
  1718. var automaticallyEnabledExtensions = [ "OES_texture_float", "OES_texture_half_float", "OES_standard_derivatives",
  1719. "OES_vertex_array_object", "WEBGL_compressed_texture_s3tc", "WEBGL_depth_texture",
  1720. "OES_element_index_uint", "EXT_texture_filter_anisotropic", "ANGLE_instanced_arrays",
  1721. "OES_texture_float_linear", "OES_texture_half_float_linear", "WEBGL_compressed_texture_atc",
  1722. "WEBGL_compressed_texture_pvrtc", "EXT_color_buffer_half_float", "WEBGL_color_buffer_float",
  1723. "EXT_frag_depth", "EXT_sRGB", "WEBGL_draw_buffers", "WEBGL_shared_resources",
  1724. "EXT_shader_texture_lod", "EXT_color_buffer_float"];
  1725. function shouldEnableAutomatically(extension) {
  1726. var ret = false;
  1727. automaticallyEnabledExtensions.forEach(function(include) {
  1728. if (ext.indexOf(include) != -1) {
  1729. ret = true;
  1730. }
  1731. });
  1732. return ret;
  1733. }
  1734. var exts = GLctx.getSupportedExtensions();
  1735. if (exts && exts.length > 0) {
  1736. GLctx.getSupportedExtensions().forEach(function(ext) {
  1737. if (automaticallyEnabledExtensions.indexOf(ext) != -1) {
  1738. GLctx.getExtension(ext); // Calling .getExtension enables that extension permanently, no need to store the return value to be enabled.
  1739. }
  1740. });
  1741. }
  1742. },populateUniformTable:function (program) {
  1743. var p = GL.programs[program];
  1744. GL.programInfos[program] = {
  1745. uniforms: {},
  1746. maxUniformLength: 0, // This is eagerly computed below, since we already enumerate all uniforms anyway.
  1747. maxAttributeLength: -1, // This is lazily computed and cached, computed when/if first asked, "-1" meaning not computed yet.
  1748. maxUniformBlockNameLength: -1 // Lazily computed as well
  1749. };
  1750. var ptable = GL.programInfos[program];
  1751. var utable = ptable.uniforms;
  1752. // A program's uniform table maps the string name of an uniform to an integer location of that uniform.
  1753. // The global GL.uniforms map maps integer locations to WebGLUniformLocations.
  1754. var numUniforms = GLctx.getProgramParameter(p, GLctx.ACTIVE_UNIFORMS);
  1755. for (var i = 0; i < numUniforms; ++i) {
  1756. var u = GLctx.getActiveUniform(p, i);
  1757. var name = u.name;
  1758. ptable.maxUniformLength = Math.max(ptable.maxUniformLength, name.length+1);
  1759. // Strip off any trailing array specifier we might have got, e.g. "[0]".
  1760. if (name.indexOf(']', name.length-1) !== -1) {
  1761. var ls = name.lastIndexOf('[');
  1762. name = name.slice(0, ls);
  1763. }
  1764. // Optimize memory usage slightly: If we have an array of uniforms, e.g. 'vec3 colors[3];', then
  1765. // only store the string 'colors' in utable, and 'colors[0]', 'colors[1]' and 'colors[2]' will be parsed as 'colors'+i.
  1766. // Note that for the GL.uniforms table, we still need to fetch the all WebGLUniformLocations for all the indices.
  1767. var loc = GLctx.getUniformLocation(p, name);
  1768. if (loc != null)
  1769. {
  1770. var id = GL.getNewId(GL.uniforms);
  1771. utable[name] = [u.size, id];
  1772. GL.uniforms[id] = loc;
  1773. for (var j = 1; j < u.size; ++j) {
  1774. var n = name + '['+j+']';
  1775. loc = GLctx.getUniformLocation(p, n);
  1776. id = GL.getNewId(GL.uniforms);
  1777. GL.uniforms[id] = loc;
  1778. }
  1779. }
  1780. }
  1781. }};function _emscripten_glIsRenderbuffer(renderbuffer) {
  1782. var rb = GL.renderbuffers[renderbuffer];
  1783. if (!rb) return 0;
  1784. return GLctx.isRenderbuffer(rb);
  1785. }
  1786. function _emscripten_glStencilMaskSeparate(x0, x1) { GLctx['stencilMaskSeparate'](x0, x1) }
  1787. function _emscripten_get_now() { abort() }
  1788. function _emscripten_set_main_loop_timing(mode, value) {
  1789. Browser.mainLoop.timingMode = mode;
  1790. Browser.mainLoop.timingValue = value;
  1791. if (!Browser.mainLoop.func) {
  1792. 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.');
  1793. return 1; // Return non-zero on failure, can't set timing mode when there is no main loop.
  1794. }
  1795. if (mode == 0 /*EM_TIMING_SETTIMEOUT*/) {
  1796. Browser.mainLoop.scheduler = function Browser_mainLoop_scheduler_setTimeout() {
  1797. var timeUntilNextTick = Math.max(0, Browser.mainLoop.tickStartTime + value - _emscripten_get_now())|0;
  1798. setTimeout(Browser.mainLoop.runner, timeUntilNextTick); // doing this each time means that on exception, we stop
  1799. };
  1800. Browser.mainLoop.method = 'timeout';
  1801. } else if (mode == 1 /*EM_TIMING_RAF*/) {
  1802. Browser.mainLoop.scheduler = function Browser_mainLoop_scheduler_rAF() {
  1803. Browser.requestAnimationFrame(Browser.mainLoop.runner);
  1804. };
  1805. Browser.mainLoop.method = 'rAF';
  1806. } else if (mode == 2 /*EM_TIMING_SETIMMEDIATE*/) {
  1807. if (!window['setImmediate']) {
  1808. // Emulate setImmediate. (note: not a complete polyfill, we don't emulate clearImmediate() to keep code size to minimum, since not needed)
  1809. var setImmediates = [];
  1810. var emscriptenMainLoopMessageId = 'setimmediate';
  1811. function Browser_setImmediate_messageHandler(event) {
  1812. if (event.source === window && event.data === emscriptenMainLoopMessageId) {
  1813. event.stopPropagation();
  1814. setImmediates.shift()();
  1815. }
  1816. }
  1817. window.addEventListener("message", Browser_setImmediate_messageHandler, true);
  1818. window['setImmediate'] = function Browser_emulated_setImmediate(func) {
  1819. setImmediates.push(func);
  1820. if (ENVIRONMENT_IS_WORKER) {
  1821. if (Module['setImmediates'] === undefined) Module['setImmediates'] = [];
  1822. Module['setImmediates'].push(func);
  1823. window.postMessage({target: emscriptenMainLoopMessageId}); // In --proxy-to-worker, route the message via proxyClient.js
  1824. } else window.postMessage(emscriptenMainLoopMessageId, "*"); // On the main thread, can just send the message to itself.
  1825. }
  1826. }
  1827. Browser.mainLoop.scheduler = function Browser_mainLoop_scheduler_setImmediate() {
  1828. window['setImmediate'](Browser.mainLoop.runner);
  1829. };
  1830. Browser.mainLoop.method = 'immediate';
  1831. }
  1832. return 0;
  1833. }function _emscripten_set_main_loop(func, fps, simulateInfiniteLoop, arg, noSetTiming) {
  1834. Module['noExitRuntime'] = true;
  1835. 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.');
  1836. Browser.mainLoop.func = func;
  1837. Browser.mainLoop.arg = arg;
  1838. var browserIterationFunc;
  1839. if (typeof arg !== 'undefined') {
  1840. browserIterationFunc = function() {
  1841. Module['dynCall_vi'](func, arg);
  1842. };
  1843. } else {
  1844. browserIterationFunc = function() {
  1845. Module['dynCall_v'](func);
  1846. };
  1847. }
  1848. var thisMainLoopId = Browser.mainLoop.currentlyRunningMainloop;
  1849. Browser.mainLoop.runner = function Browser_mainLoop_runner() {
  1850. if (ABORT) return;
  1851. if (Browser.mainLoop.queue.length > 0) {
  1852. var start = Date.now();
  1853. var blocker = Browser.mainLoop.queue.shift();
  1854. blocker.func(blocker.arg);
  1855. if (Browser.mainLoop.remainingBlockers) {
  1856. var remaining = Browser.mainLoop.remainingBlockers;
  1857. var next = remaining%1 == 0 ? remaining-1 : Math.floor(remaining);
  1858. if (blocker.counted) {
  1859. Browser.mainLoop.remainingBlockers = next;
  1860. } else {
  1861. // not counted, but move the progress along a tiny bit
  1862. next = next + 0.5; // do not steal all the next one's progress
  1863. Browser.mainLoop.remainingBlockers = (8*remaining + next)/9;
  1864. }
  1865. }
  1866. console.log('main loop blocker "' + blocker.name + '" took ' + (Date.now() - start) + ' ms'); //, left: ' + Browser.mainLoop.remainingBlockers);
  1867. Browser.mainLoop.updateStatus();
  1868. // catches pause/resume main loop from blocker execution
  1869. if (thisMainLoopId < Browser.mainLoop.currentlyRunningMainloop) return;
  1870. setTimeout(Browser.mainLoop.runner, 0);
  1871. return;
  1872. }
  1873. // catch pauses from non-main loop sources
  1874. if (thisMainLoopId < Browser.mainLoop.currentlyRunningMainloop) return;
  1875. // Implement very basic swap interval control
  1876. Browser.mainLoop.currentFrameNumber = Browser.mainLoop.currentFrameNumber + 1 | 0;
  1877. if (Browser.mainLoop.timingMode == 1/*EM_TIMING_RAF*/ && Browser.mainLoop.timingValue > 1 && Browser.mainLoop.currentFrameNumber % Browser.mainLoop.timingValue != 0) {
  1878. // Not the scheduled time to render this frame - skip.
  1879. Browser.mainLoop.scheduler();
  1880. return;
  1881. } else if (Browser.mainLoop.timingMode == 0/*EM_TIMING_SETTIMEOUT*/) {
  1882. Browser.mainLoop.tickStartTime = _emscripten_get_now();
  1883. }
  1884. // Signal GL rendering layer that processing of a new frame is about to start. This helps it optimize
  1885. // VBO double-buffering and reduce GPU stalls.
  1886. if (Browser.mainLoop.method === 'timeout' && Module.ctx) {
  1887. 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!');
  1888. Browser.mainLoop.method = ''; // just warn once per call to set main loop
  1889. }
  1890. Browser.mainLoop.runIter(browserIterationFunc);
  1891. checkStackCookie();
  1892. // catch pauses from the main loop itself
  1893. if (thisMainLoopId < Browser.mainLoop.currentlyRunningMainloop) return;
  1894. // Queue new audio data. This is important to be right after the main loop invocation, so that we will immediately be able
  1895. // to queue the newest produced audio samples.
  1896. // TODO: Consider adding pre- and post- rAF callbacks so that GL.newRenderingFrameStarted() and SDL.audio.queueNewAudioData()
  1897. // do not need to be hardcoded into this function, but can be more generic.
  1898. if (typeof SDL === 'object' && SDL.audio && SDL.audio.queueNewAudioData) SDL.audio.queueNewAudioData();
  1899. Browser.mainLoop.scheduler();
  1900. }
  1901. if (!noSetTiming) {
  1902. if (fps && fps > 0) _emscripten_set_main_loop_timing(0/*EM_TIMING_SETTIMEOUT*/, 1000.0 / fps);
  1903. else _emscripten_set_main_loop_timing(1/*EM_TIMING_RAF*/, 1); // Do rAF by rendering each frame (no decimating)
  1904. Browser.mainLoop.scheduler();
  1905. }
  1906. if (simulateInfiniteLoop) {
  1907. throw 'SimulateInfiniteLoop';
  1908. }
  1909. }var Browser={mainLoop:{scheduler:null,method:"",currentlyRunningMainloop:0,func:null,arg:0,timingMode:0,timingValue:0,currentFrameNumber:0,queue:[],pause:function () {
  1910. Browser.mainLoop.scheduler = null;
  1911. Browser.mainLoop.currentlyRunningMainloop++; // Incrementing this signals the previous main loop that it's now become old, and it must return.
  1912. },resume:function () {
  1913. Browser.mainLoop.currentlyRunningMainloop++;
  1914. var timingMode = Browser.mainLoop.timingMode;
  1915. var timingValue = Browser.mainLoop.timingValue;
  1916. var func = Browser.mainLoop.func;
  1917. Browser.mainLoop.func = null;
  1918. _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 */);
  1919. _emscripten_set_main_loop_timing(timingMode, timingValue);
  1920. Browser.mainLoop.scheduler();
  1921. },updateStatus:function () {
  1922. if (Module['setStatus']) {
  1923. var message = Module['statusMessage'] || 'Please wait...';
  1924. var remaining = Browser.mainLoop.remainingBlockers;
  1925. var expected = Browser.mainLoop.expectedBlockers;
  1926. if (remaining) {
  1927. if (remaining < expected) {
  1928. Module['setStatus'](message + ' (' + (expected - remaining) + '/' + expected + ')');
  1929. } else {
  1930. Module['setStatus'](message);
  1931. }
  1932. } else {
  1933. Module['setStatus']('');
  1934. }
  1935. }
  1936. },runIter:function (func) {
  1937. if (ABORT) return;
  1938. if (Module['preMainLoop']) {
  1939. var preRet = Module['preMainLoop']();
  1940. if (preRet === false) {
  1941. return; // |return false| skips a frame
  1942. }
  1943. }
  1944. try {
  1945. func();
  1946. } catch (e) {
  1947. if (e instanceof ExitStatus) {
  1948. return;
  1949. } else {
  1950. if (e && typeof e === 'object' && e.stack) Module.printErr('exception thrown: ' + [e, e.stack]);
  1951. throw e;
  1952. }
  1953. }
  1954. if (Module['postMainLoop']) Module['postMainLoop']();
  1955. }},isFullscreen:false,pointerLock:false,moduleContextCreatedCallbacks:[],workers:[],init:function () {
  1956. if (!Module["preloadPlugins"]) Module["preloadPlugins"] = []; // needs to exist even in workers
  1957. if (Browser.initted) return;
  1958. Browser.initted = true;
  1959. try {
  1960. new Blob();
  1961. Browser.hasBlobConstructor = true;
  1962. } catch(e) {
  1963. Browser.hasBlobConstructor = false;
  1964. console.log("warning: no blob constructor, cannot create blobs with mimetypes");
  1965. }
  1966. Browser.BlobBuilder = typeof MozBlobBuilder != "undefined" ? MozBlobBuilder : (typeof WebKitBlobBuilder != "undefined" ? WebKitBlobBuilder : (!Browser.hasBlobConstructor ? console.log("warning: no BlobBuilder") : null));
  1967. Browser.URLObject = typeof window != "undefined" ? (window.URL ? window.URL : window.webkitURL) : undefined;
  1968. if (!Module.noImageDecoding && typeof Browser.URLObject === 'undefined') {
  1969. console.log("warning: Browser does not support creating object URLs. Built-in browser image decoding will not be available.");
  1970. Module.noImageDecoding = true;
  1971. }
  1972. // Support for plugins that can process preloaded files. You can add more of these to
  1973. // your app by creating and appending to Module.preloadPlugins.
  1974. //
  1975. // Each plugin is asked if it can handle a file based on the file's name. If it can,
  1976. // it is given the file's raw data. When it is done, it calls a callback with the file's
  1977. // (possibly modified) data. For example, a plugin might decompress a file, or it
  1978. // might create some side data structure for use later (like an Image element, etc.).
  1979. var imagePlugin = {};
  1980. imagePlugin['canHandle'] = function imagePlugin_canHandle(name) {
  1981. return !Module.noImageDecoding && /\.(jpg|jpeg|png|bmp)$/i.test(name);
  1982. };
  1983. imagePlugin['handle'] = function imagePlugin_handle(byteArray, name, onload, onerror) {
  1984. var b = null;
  1985. if (Browser.hasBlobConstructor) {
  1986. try {
  1987. b = new Blob([byteArray], { type: Browser.getMimetype(name) });
  1988. if (b.size !== byteArray.length) { // Safari bug #118630
  1989. // Safari's Blob can only take an ArrayBuffer
  1990. b = new Blob([(new Uint8Array(byteArray)).buffer], { type: Browser.getMimetype(name) });
  1991. }
  1992. } catch(e) {
  1993. Runtime.warnOnce('Blob constructor present but fails: ' + e + '; falling back to blob builder');
  1994. }
  1995. }
  1996. if (!b) {
  1997. var bb = new Browser.BlobBuilder();
  1998. bb.append((new Uint8Array(byteArray)).buffer); // we need to pass a buffer, and must copy the array to get the right data range
  1999. b = bb.getBlob();
  2000. }
  2001. var url = Browser.URLObject.createObjectURL(b);
  2002. assert(typeof url == 'string', 'createObjectURL must return a url as a string');
  2003. var img = new Image();
  2004. img.onload = function img_onload() {
  2005. assert(img.complete, 'Image ' + name + ' could not be decoded');
  2006. var canvas = document.createElement('canvas');
  2007. canvas.width = img.width;
  2008. canvas.height = img.height;
  2009. var ctx = canvas.getContext('2d');
  2010. ctx.drawImage(img, 0, 0);
  2011. Module["preloadedImages"][name] = canvas;
  2012. Browser.URLObject.revokeObjectURL(url);
  2013. if (onload) onload(byteArray);
  2014. };
  2015. img.onerror = function img_onerror(event) {
  2016. console.log('Image ' + url + ' could not be decoded');
  2017. if (onerror) onerror();
  2018. };
  2019. img.src = url;
  2020. };
  2021. Module['preloadPlugins'].push(imagePlugin);
  2022. var audioPlugin = {};
  2023. audioPlugin['canHandle'] = function audioPlugin_canHandle(name) {
  2024. return !Module.noAudioDecoding && name.substr(-4) in { '.ogg': 1, '.wav': 1, '.mp3': 1 };
  2025. };
  2026. audioPlugin['handle'] = function audioPlugin_handle(byteArray, name, onload, onerror) {
  2027. var done = false;
  2028. function finish(audio) {
  2029. if (done) return;
  2030. done = true;
  2031. Module["preloadedAudios"][name] = audio;
  2032. if (onload) onload(byteArray);
  2033. }
  2034. function fail() {
  2035. if (done) return;
  2036. done = true;
  2037. Module["preloadedAudios"][name] = new Audio(); // empty shim
  2038. if (onerror) onerror();
  2039. }
  2040. if (Browser.hasBlobConstructor) {
  2041. try {
  2042. var b = new Blob([byteArray], { type: Browser.getMimetype(name) });
  2043. } catch(e) {
  2044. return fail();
  2045. }
  2046. var url = Browser.URLObject.createObjectURL(b); // XXX we never revoke this!
  2047. assert(typeof url == 'string', 'createObjectURL must return a url as a string');
  2048. var audio = new Audio();
  2049. audio.addEventListener('canplaythrough', function() { finish(audio) }, false); // use addEventListener due to chromium bug 124926
  2050. audio.onerror = function audio_onerror(event) {
  2051. if (done) return;
  2052. console.log('warning: browser could not fully decode audio ' + name + ', trying slower base64 approach');
  2053. function encode64(data) {
  2054. var BASE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
  2055. var PAD = '=';
  2056. var ret = '';
  2057. var leftchar = 0;
  2058. var leftbits = 0;
  2059. for (var i = 0; i < data.length; i++) {
  2060. leftchar = (leftchar << 8) | data[i];
  2061. leftbits += 8;
  2062. while (leftbits >= 6) {
  2063. var curr = (leftchar >> (leftbits-6)) & 0x3f;
  2064. leftbits -= 6;
  2065. ret += BASE[curr];
  2066. }
  2067. }
  2068. if (leftbits == 2) {
  2069. ret += BASE[(leftchar&3) << 4];
  2070. ret += PAD + PAD;
  2071. } else if (leftbits == 4) {
  2072. ret += BASE[(leftchar&0xf) << 2];
  2073. ret += PAD;
  2074. }
  2075. return ret;
  2076. }
  2077. audio.src = 'data:audio/x-' + name.substr(-3) + ';base64,' + encode64(byteArray);
  2078. finish(audio); // we don't wait for confirmation this worked - but it's worth trying
  2079. };
  2080. audio.src = url;
  2081. // workaround for chrome bug 124926 - we do not always get oncanplaythrough or onerror
  2082. Browser.safeSetTimeout(function() {
  2083. finish(audio); // try to use it even though it is not necessarily ready to play
  2084. }, 10000);
  2085. } else {
  2086. return fail();
  2087. }
  2088. };
  2089. Module['preloadPlugins'].push(audioPlugin);
  2090. // Canvas event setup
  2091. function pointerLockChange() {
  2092. Browser.pointerLock = document['pointerLockElement'] === Module['canvas'] ||
  2093. document['mozPointerLockElement'] === Module['canvas'] ||
  2094. document['webkitPointerLockElement'] === Module['canvas'] ||
  2095. document['msPointerLockElement'] === Module['canvas'];
  2096. }
  2097. var canvas = Module['canvas'];
  2098. if (canvas) {
  2099. // forced aspect ratio can be enabled by defining 'forcedAspectRatio' on Module
  2100. // Module['forcedAspectRatio'] = 4 / 3;
  2101. canvas.requestPointerLock = canvas['requestPointerLock'] ||
  2102. canvas['mozRequestPointerLock'] ||
  2103. canvas['webkitRequestPointerLock'] ||
  2104. canvas['msRequestPointerLock'] ||
  2105. function(){};
  2106. canvas.exitPointerLock = document['exitPointerLock'] ||
  2107. document['mozExitPointerLock'] ||
  2108. document['webkitExitPointerLock'] ||
  2109. document['msExitPointerLock'] ||
  2110. function(){}; // no-op if function does not exist
  2111. canvas.exitPointerLock = canvas.exitPointerLock.bind(document);
  2112. document.addEventListener('pointerlockchange', pointerLockChange, false);
  2113. document.addEventListener('mozpointerlockchange', pointerLockChange, false);
  2114. document.addEventListener('webkitpointerlockchange', pointerLockChange, false);
  2115. document.addEventListener('mspointerlockchange', pointerLockChange, false);
  2116. if (Module['elementPointerLock']) {
  2117. canvas.addEventListener("click", function(ev) {
  2118. if (!Browser.pointerLock && Module['canvas'].requestPointerLock) {
  2119. Module['canvas'].requestPointerLock();
  2120. ev.preventDefault();
  2121. }
  2122. }, false);
  2123. }
  2124. }
  2125. },createContext:function (canvas, useWebGL, setInModule, webGLContextAttributes) {
  2126. 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.
  2127. var ctx;
  2128. var contextHandle;
  2129. if (useWebGL) {
  2130. // For GLES2/desktop GL compatibility, adjust a few defaults to be different to WebGL defaults, so that they align better with the desktop defaults.
  2131. var contextAttributes = {
  2132. antialias: false,
  2133. alpha: false
  2134. };
  2135. if (webGLContextAttributes) {
  2136. for (var attribute in webGLContextAttributes) {
  2137. contextAttributes[attribute] = webGLContextAttributes[attribute];
  2138. }
  2139. }
  2140. contextHandle = GL.createContext(canvas, contextAttributes);
  2141. if (contextHandle) {
  2142. ctx = GL.getContext(contextHandle).GLctx;
  2143. }
  2144. } else {
  2145. ctx = canvas.getContext('2d');
  2146. }
  2147. if (!ctx) return null;
  2148. if (setInModule) {
  2149. 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');
  2150. Module.ctx = ctx;
  2151. if (useWebGL) GL.makeContextCurrent(contextHandle);
  2152. Module.useWebGL = useWebGL;
  2153. Browser.moduleContextCreatedCallbacks.forEach(function(callback) { callback() });
  2154. Browser.init();
  2155. }
  2156. return ctx;
  2157. },destroyContext:function (canvas, useWebGL, setInModule) {},fullscreenHandlersInstalled:false,lockPointer:undefined,resizeCanvas:undefined,requestFullscreen:function (lockPointer, resizeCanvas, vrDevice) {
  2158. Browser.lockPointer = lockPointer;
  2159. Browser.resizeCanvas = resizeCanvas;
  2160. Browser.vrDevice = vrDevice;
  2161. if (typeof Browser.lockPointer === 'undefined') Browser.lockPointer = true;
  2162. if (typeof Browser.resizeCanvas === 'undefined') Browser.resizeCanvas = false;
  2163. if (typeof Browser.vrDevice === 'undefined') Browser.vrDevice = null;
  2164. var canvas = Module['canvas'];
  2165. function fullscreenChange() {
  2166. Browser.isFullscreen = false;
  2167. var canvasContainer = canvas.parentNode;
  2168. if ((document['fullscreenElement'] || document['mozFullScreenElement'] ||
  2169. document['msFullscreenElement'] || document['webkitFullscreenElement'] ||
  2170. document['webkitCurrentFullScreenElement']) === canvasContainer) {
  2171. canvas.exitFullscreen = document['exitFullscreen'] ||
  2172. document['cancelFullScreen'] ||
  2173. document['mozCancelFullScreen'] ||
  2174. document['msExitFullscreen'] ||
  2175. document['webkitCancelFullScreen'] ||
  2176. function() {};
  2177. canvas.exitFullscreen = canvas.exitFullscreen.bind(document);
  2178. if (Browser.lockPointer) canvas.requestPointerLock();
  2179. Browser.isFullscreen = true;
  2180. if (Browser.resizeCanvas) Browser.setFullscreenCanvasSize();
  2181. } else {
  2182. // remove the full screen specific parent of the canvas again to restore the HTML structure from before going full screen
  2183. canvasContainer.parentNode.insertBefore(canvas, canvasContainer);
  2184. canvasContainer.parentNode.removeChild(canvasContainer);
  2185. if (Browser.resizeCanvas) Browser.setWindowedCanvasSize();
  2186. }
  2187. if (Module['onFullScreen']) Module['onFullScreen'](Browser.isFullscreen);
  2188. if (Module['onFullscreen']) Module['onFullscreen'](Browser.isFullscreen);
  2189. Browser.updateCanvasDimensions(canvas);
  2190. }
  2191. if (!Browser.fullscreenHandlersInstalled) {
  2192. Browser.fullscreenHandlersInstalled = true;
  2193. document.addEventListener('fullscreenchange', fullscreenChange, false);
  2194. document.addEventListener('mozfullscreenchange', fullscreenChange, false);
  2195. document.addEventListener('webkitfullscreenchange', fullscreenChange, false);
  2196. document.addEventListener('MSFullscreenChange', fullscreenChange, false);
  2197. }
  2198. // 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
  2199. var canvasContainer = document.createElement("div");
  2200. canvas.parentNode.insertBefore(canvasContainer, canvas);
  2201. canvasContainer.appendChild(canvas);
  2202. // use parent of canvas as full screen root to allow aspect ratio correction (Firefox stretches the root to screen size)
  2203. canvasContainer.requestFullscreen = canvasContainer['requestFullscreen'] ||
  2204. canvasContainer['mozRequestFullScreen'] ||
  2205. canvasContainer['msRequestFullscreen'] ||
  2206. (canvasContainer['webkitRequestFullscreen'] ? function() { canvasContainer['webkitRequestFullscreen'](Element['ALLOW_KEYBOARD_INPUT']) } : null) ||
  2207. (canvasContainer['webkitRequestFullScreen'] ? function() { canvasContainer['webkitRequestFullScreen'](Element['ALLOW_KEYBOARD_INPUT']) } : null);
  2208. if (vrDevice) {
  2209. canvasContainer.requestFullscreen({ vrDisplay: vrDevice });
  2210. } else {
  2211. canvasContainer.requestFullscreen();
  2212. }
  2213. },requestFullScreen:function (lockPointer, resizeCanvas, vrDevice) {
  2214. Module.printErr('Browser.requestFullScreen() is deprecated. Please call Browser.requestFullscreen instead.');
  2215. Browser.requestFullScreen = function(lockPointer, resizeCanvas, vrDevice) {
  2216. return Browser.requestFullscreen(lockPointer, resizeCanvas, vrDevice);
  2217. }
  2218. return Browser.requestFullscreen(lockPointer, resizeCanvas, vrDevice);
  2219. },nextRAF:0,fakeRequestAnimationFrame:function (func) {
  2220. // try to keep 60fps between calls to here
  2221. var now = Date.now();
  2222. if (Browser.nextRAF === 0) {
  2223. Browser.nextRAF = now + 1000/60;
  2224. } else {
  2225. while (now + 2 >= Browser.nextRAF) { // fudge a little, to avoid timer jitter causing us to do lots of delay:0
  2226. Browser.nextRAF += 1000/60;
  2227. }
  2228. }
  2229. var delay = Math.max(Browser.nextRAF - now, 0);
  2230. setTimeout(func, delay);
  2231. },requestAnimationFrame:function requestAnimationFrame(func) {
  2232. if (typeof window === 'undefined') { // Provide fallback to setTimeout if window is undefined (e.g. in Node.js)
  2233. Browser.fakeRequestAnimationFrame(func);
  2234. } else {
  2235. if (!window.requestAnimationFrame) {
  2236. window.requestAnimationFrame = window['requestAnimationFrame'] ||
  2237. window['mozRequestAnimationFrame'] ||
  2238. window['webkitRequestAnimationFrame'] ||
  2239. window['msRequestAnimationFrame'] ||
  2240. window['oRequestAnimationFrame'] ||
  2241. Browser.fakeRequestAnimationFrame;
  2242. }
  2243. window.requestAnimationFrame(func);
  2244. }
  2245. },safeCallback:function (func) {
  2246. return function() {
  2247. if (!ABORT) return func.apply(null, arguments);
  2248. };
  2249. },allowAsyncCallbacks:true,queuedAsyncCallbacks:[],pauseAsyncCallbacks:function () {
  2250. Browser.allowAsyncCallbacks = false;
  2251. },resumeAsyncCallbacks:function () { // marks future callbacks as ok to execute, and synchronously runs any remaining ones right now
  2252. Browser.allowAsyncCallbacks = true;
  2253. if (Browser.queuedAsyncCallbacks.length > 0) {
  2254. var callbacks = Browser.queuedAsyncCallbacks;
  2255. Browser.queuedAsyncCallbacks = [];
  2256. callbacks.forEach(function(func) {
  2257. func();
  2258. });
  2259. }
  2260. },safeRequestAnimationFrame:function (func) {
  2261. return Browser.requestAnimationFrame(function() {
  2262. if (ABORT) return;
  2263. if (Browser.allowAsyncCallbacks) {
  2264. func();
  2265. } else {
  2266. Browser.queuedAsyncCallbacks.push(func);
  2267. }
  2268. });
  2269. },safeSetTimeout:function (func, timeout) {
  2270. Module['noExitRuntime'] = true;
  2271. return setTimeout(function() {
  2272. if (ABORT) return;
  2273. if (Browser.allowAsyncCallbacks) {
  2274. func();
  2275. } else {
  2276. Browser.queuedAsyncCallbacks.push(func);
  2277. }
  2278. }, timeout);
  2279. },safeSetInterval:function (func, timeout) {
  2280. Module['noExitRuntime'] = true;
  2281. return setInterval(function() {
  2282. if (ABORT) return;
  2283. if (Browser.allowAsyncCallbacks) {
  2284. func();
  2285. } // drop it on the floor otherwise, next interval will kick in
  2286. }, timeout);
  2287. },getMimetype:function (name) {
  2288. return {
  2289. 'jpg': 'image/jpeg',
  2290. 'jpeg': 'image/jpeg',
  2291. 'png': 'image/png',
  2292. 'bmp': 'image/bmp',
  2293. 'ogg': 'audio/ogg',
  2294. 'wav': 'audio/wav',
  2295. 'mp3': 'audio/mpeg'
  2296. }[name.substr(name.lastIndexOf('.')+1)];
  2297. },getUserMedia:function (func) {
  2298. if(!window.getUserMedia) {
  2299. window.getUserMedia = navigator['getUserMedia'] ||
  2300. navigator['mozGetUserMedia'];
  2301. }
  2302. window.getUserMedia(func);
  2303. },getMovementX:function (event) {
  2304. return event['movementX'] ||
  2305. event['mozMovementX'] ||
  2306. event['webkitMovementX'] ||
  2307. 0;
  2308. },getMovementY:function (event) {
  2309. return event['movementY'] ||
  2310. event['mozMovementY'] ||
  2311. event['webkitMovementY'] ||
  2312. 0;
  2313. },getMouseWheelDelta:function (event) {
  2314. var delta = 0;
  2315. switch (event.type) {
  2316. case 'DOMMouseScroll':
  2317. delta = event.detail;
  2318. break;
  2319. case 'mousewheel':
  2320. delta = event.wheelDelta;
  2321. break;
  2322. case 'wheel':
  2323. delta = event['deltaY'];
  2324. break;
  2325. default:
  2326. throw 'unrecognized mouse wheel event: ' + event.type;
  2327. }
  2328. return delta;
  2329. },mouseX:0,mouseY:0,mouseMovementX:0,mouseMovementY:0,touches:{},lastTouches:{},calculateMouseEvent:function (event) { // event should be mousemove, mousedown or mouseup
  2330. if (Browser.pointerLock) {
  2331. // When the pointer is locked, calculate the coordinates
  2332. // based on the movement of the mouse.
  2333. // Workaround for Firefox bug 764498
  2334. if (event.type != 'mousemove' &&
  2335. ('mozMovementX' in event)) {
  2336. Browser.mouseMovementX = Browser.mouseMovementY = 0;
  2337. } else {
  2338. Browser.mouseMovementX = Browser.getMovementX(event);
  2339. Browser.mouseMovementY = Browser.getMovementY(event);
  2340. }
  2341. // check if SDL is available
  2342. if (typeof SDL != "undefined") {
  2343. Browser.mouseX = SDL.mouseX + Browser.mouseMovementX;
  2344. Browser.mouseY = SDL.mouseY + Browser.mouseMovementY;
  2345. } else {
  2346. // just add the mouse delta to the current absolut mouse position
  2347. // FIXME: ideally this should be clamped against the canvas size and zero
  2348. Browser.mouseX += Browser.mouseMovementX;
  2349. Browser.mouseY += Browser.mouseMovementY;
  2350. }
  2351. } else {
  2352. // Otherwise, calculate the movement based on the changes
  2353. // in the coordinates.
  2354. var rect = Module["canvas"].getBoundingClientRect();
  2355. var cw = Module["canvas"].width;
  2356. var ch = Module["canvas"].height;
  2357. // Neither .scrollX or .pageXOffset are defined in a spec, but
  2358. // we prefer .scrollX because it is currently in a spec draft.
  2359. // (see: http://www.w3.org/TR/2013/WD-cssom-view-20131217/)
  2360. var scrollX = ((typeof window.scrollX !== 'undefined') ? window.scrollX : window.pageXOffset);
  2361. var scrollY = ((typeof window.scrollY !== 'undefined') ? window.scrollY : window.pageYOffset);
  2362. // If this assert lands, it's likely because the browser doesn't support scrollX or pageXOffset
  2363. // and we have no viable fallback.
  2364. assert((typeof scrollX !== 'undefined') && (typeof scrollY !== 'undefined'), 'Unable to retrieve scroll position, mouse positions likely broken.');
  2365. if (event.type === 'touchstart' || event.type === 'touchend' || event.type === 'touchmove') {
  2366. var touch = event.touch;
  2367. if (touch === undefined) {
  2368. return; // the "touch" property is only defined in SDL
  2369. }
  2370. var adjustedX = touch.pageX - (scrollX + rect.left);
  2371. var adjustedY = touch.pageY - (scrollY + rect.top);
  2372. adjustedX = adjustedX * (cw / rect.width);
  2373. adjustedY = adjustedY * (ch / rect.height);
  2374. var coords = { x: adjustedX, y: adjustedY };
  2375. if (event.type === 'touchstart') {
  2376. Browser.lastTouches[touch.identifier] = coords;
  2377. Browser.touches[touch.identifier] = coords;
  2378. } else if (event.type === 'touchend' || event.type === 'touchmove') {
  2379. var last = Browser.touches[touch.identifier];
  2380. if (!last) last = coords;
  2381. Browser.lastTouches[touch.identifier] = last;
  2382. Browser.touches[touch.identifier] = coords;
  2383. }
  2384. return;
  2385. }
  2386. var x = event.pageX - (scrollX + rect.left);
  2387. var y = event.pageY - (scrollY + rect.top);
  2388. // the canvas might be CSS-scaled compared to its backbuffer;
  2389. // SDL-using content will want mouse coordinates in terms
  2390. // of backbuffer units.
  2391. x = x * (cw / rect.width);
  2392. y = y * (ch / rect.height);
  2393. Browser.mouseMovementX = x - Browser.mouseX;
  2394. Browser.mouseMovementY = y - Browser.mouseY;
  2395. Browser.mouseX = x;
  2396. Browser.mouseY = y;
  2397. }
  2398. },asyncLoad:function (url, onload, onerror, noRunDep) {
  2399. var dep = !noRunDep ? getUniqueRunDependency('al ' + url) : '';
  2400. Module['readAsync'](url, function(arrayBuffer) {
  2401. assert(arrayBuffer, 'Loading data file "' + url + '" failed (no arrayBuffer).');
  2402. onload(new Uint8Array(arrayBuffer));
  2403. if (dep) removeRunDependency(dep);
  2404. }, function(event) {
  2405. if (onerror) {
  2406. onerror();
  2407. } else {
  2408. throw 'Loading data file "' + url + '" failed.';
  2409. }
  2410. });
  2411. if (dep) addRunDependency(dep);
  2412. },resizeListeners:[],updateResizeListeners:function () {
  2413. var canvas = Module['canvas'];
  2414. Browser.resizeListeners.forEach(function(listener) {
  2415. listener(canvas.width, canvas.height);
  2416. });
  2417. },setCanvasSize:function (width, height, noUpdates) {
  2418. var canvas = Module['canvas'];
  2419. Browser.updateCanvasDimensions(canvas, width, height);
  2420. if (!noUpdates) Browser.updateResizeListeners();
  2421. },windowedWidth:0,windowedHeight:0,setFullscreenCanvasSize:function () {
  2422. // check if SDL is available
  2423. if (typeof SDL != "undefined") {
  2424. var flags = HEAPU32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)];
  2425. flags = flags | 0x00800000; // set SDL_FULLSCREEN flag
  2426. HEAP32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)]=flags
  2427. }
  2428. Browser.updateResizeListeners();
  2429. },setWindowedCanvasSize:function () {
  2430. // check if SDL is available
  2431. if (typeof SDL != "undefined") {
  2432. var flags = HEAPU32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)];
  2433. flags = flags & ~0x00800000; // clear SDL_FULLSCREEN flag
  2434. HEAP32[((SDL.screen+Runtime.QUANTUM_SIZE*0)>>2)]=flags
  2435. }
  2436. Browser.updateResizeListeners();
  2437. },updateCanvasDimensions:function (canvas, wNative, hNative) {
  2438. if (wNative && hNative) {
  2439. canvas.widthNative = wNative;
  2440. canvas.heightNative = hNative;
  2441. } else {
  2442. wNative = canvas.widthNative;
  2443. hNative = canvas.heightNative;
  2444. }
  2445. var w = wNative;
  2446. var h = hNative;
  2447. if (Module['forcedAspectRatio'] && Module['forcedAspectRatio'] > 0) {
  2448. if (w/h < Module['forcedAspectRatio']) {
  2449. w = Math.round(h * Module['forcedAspectRatio']);
  2450. } else {
  2451. h = Math.round(w / Module['forcedAspectRatio']);
  2452. }
  2453. }
  2454. if (((document['fullscreenElement'] || document['mozFullScreenElement'] ||
  2455. document['msFullscreenElement'] || document['webkitFullscreenElement'] ||
  2456. document['webkitCurrentFullScreenElement']) === canvas.parentNode) && (typeof screen != 'undefined')) {
  2457. var factor = Math.min(screen.width / w, screen.height / h);
  2458. w = Math.round(w * factor);
  2459. h = Math.round(h * factor);
  2460. }
  2461. if (Browser.resizeCanvas) {
  2462. if (canvas.width != w) canvas.width = w;
  2463. if (canvas.height != h) canvas.height = h;
  2464. if (typeof canvas.style != 'undefined') {
  2465. canvas.style.removeProperty( "width");
  2466. canvas.style.removeProperty("height");
  2467. }
  2468. } else {
  2469. if (canvas.width != wNative) canvas.width = wNative;
  2470. if (canvas.height != hNative) canvas.height = hNative;
  2471. if (typeof canvas.style != 'undefined') {
  2472. if (w != wNative || h != hNative) {
  2473. canvas.style.setProperty( "width", w + "px", "important");
  2474. canvas.style.setProperty("height", h + "px", "important");
  2475. } else {
  2476. canvas.style.removeProperty( "width");
  2477. canvas.style.removeProperty("height");
  2478. }
  2479. }
  2480. }
  2481. },wgetRequests:{},nextWgetRequestHandle:0,getNextWgetRequestHandle:function () {
  2482. var handle = Browser.nextWgetRequestHandle;
  2483. Browser.nextWgetRequestHandle++;
  2484. return handle;
  2485. }};var GLFW={Window:function (id, width, height, title, monitor, share) {
  2486. this.id = id;
  2487. this.x = 0;
  2488. this.y = 0;
  2489. this.fullscreen = false; // Used to determine if app in fullscreen mode
  2490. this.storedX = 0; // Used to store X before fullscreen
  2491. this.storedY = 0; // Used to store Y before fullscreen
  2492. this.width = width;
  2493. this.height = height;
  2494. this.storedWidth = width; // Used to store width before fullscreen
  2495. this.storedHeight = height; // Used to store height before fullscreen
  2496. this.title = title;
  2497. this.monitor = monitor;
  2498. this.share = share;
  2499. this.attributes = GLFW.hints;
  2500. this.inputModes = {
  2501. 0x00033001:0x00034001, // GLFW_CURSOR (GLFW_CURSOR_NORMAL)
  2502. 0x00033002:0, // GLFW_STICKY_KEYS
  2503. 0x00033003:0, // GLFW_STICKY_MOUSE_BUTTONS
  2504. };
  2505. this.buttons = 0;
  2506. this.keys = new Array();
  2507. this.shouldClose = 0;
  2508. this.title = null;
  2509. this.windowPosFunc = null; // GLFWwindowposfun
  2510. this.windowSizeFunc = null; // GLFWwindowsizefun
  2511. this.windowCloseFunc = null; // GLFWwindowclosefun
  2512. this.windowRefreshFunc = null; // GLFWwindowrefreshfun
  2513. this.windowFocusFunc = null; // GLFWwindowfocusfun
  2514. this.windowIconifyFunc = null; // GLFWwindowiconifyfun
  2515. this.framebufferSizeFunc = null; // GLFWframebuffersizefun
  2516. this.mouseButtonFunc = null; // GLFWmousebuttonfun
  2517. this.cursorPosFunc = null; // GLFWcursorposfun
  2518. this.cursorEnterFunc = null; // GLFWcursorenterfun
  2519. this.scrollFunc = null; // GLFWscrollfun
  2520. this.keyFunc = null; // GLFWkeyfun
  2521. this.charFunc = null; // GLFWcharfun
  2522. this.userptr = null;
  2523. },WindowFromId:function (id) {
  2524. if (id <= 0 || !GLFW.windows) return null;
  2525. return GLFW.windows[id - 1];
  2526. },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) {
  2527. switch (keycode) {
  2528. // these keycodes are only defined for GLFW3, assume they are the same for GLFW2
  2529. case 0x20:return 32; // DOM_VK_SPACE -> GLFW_KEY_SPACE
  2530. case 0xDE:return 39; // DOM_VK_QUOTE -> GLFW_KEY_APOSTROPHE
  2531. case 0xBC:return 44; // DOM_VK_COMMA -> GLFW_KEY_COMMA
  2532. case 0xAD:return 45; // DOM_VK_HYPHEN_MINUS -> GLFW_KEY_MINUS
  2533. case 0xBD:return 45; // DOM_VK_MINUS -> GLFW_KEY_MINUS
  2534. case 0xBE:return 46; // DOM_VK_PERIOD -> GLFW_KEY_PERIOD
  2535. case 0xBF:return 47; // DOM_VK_SLASH -> GLFW_KEY_SLASH
  2536. case 0x30:return 48; // DOM_VK_0 -> GLFW_KEY_0
  2537. case 0x31:return 49; // DOM_VK_1 -> GLFW_KEY_1
  2538. case 0x32:return 50; // DOM_VK_2 -> GLFW_KEY_2
  2539. case 0x33:return 51; // DOM_VK_3 -> GLFW_KEY_3
  2540. case 0x34:return 52; // DOM_VK_4 -> GLFW_KEY_4
  2541. case 0x35:return 53; // DOM_VK_5 -> GLFW_KEY_5
  2542. case 0x36:return 54; // DOM_VK_6 -> GLFW_KEY_6
  2543. case 0x37:return 55; // DOM_VK_7 -> GLFW_KEY_7
  2544. case 0x38:return 56; // DOM_VK_8 -> GLFW_KEY_8
  2545. case 0x39:return 57; // DOM_VK_9 -> GLFW_KEY_9
  2546. case 0x3B:return 59; // DOM_VK_SEMICOLON -> GLFW_KEY_SEMICOLON
  2547. case 0x3D:return 61; // DOM_VK_EQUALS -> GLFW_KEY_EQUAL
  2548. case 0xBB:return 61; // DOM_VK_EQUALS -> GLFW_KEY_EQUAL
  2549. case 0x41:return 65; // DOM_VK_A -> GLFW_KEY_A
  2550. case 0x42:return 66; // DOM_VK_B -> GLFW_KEY_B
  2551. case 0x43:return 67; // DOM_VK_C -> GLFW_KEY_C
  2552. case 0x44:return 68; // DOM_VK_D -> GLFW_KEY_D
  2553. case 0x45:return 69; // DOM_VK_E -> GLFW_KEY_E
  2554. case 0x46:return 70; // DOM_VK_F -> GLFW_KEY_F
  2555. case 0x47:return 71; // DOM_VK_G -> GLFW_KEY_G
  2556. case 0x48:return 72; // DOM_VK_H -> GLFW_KEY_H
  2557. case 0x49:return 73; // DOM_VK_I -> GLFW_KEY_I
  2558. case 0x4A:return 74; // DOM_VK_J -> GLFW_KEY_J
  2559. case 0x4B:return 75; // DOM_VK_K -> GLFW_KEY_K
  2560. case 0x4C:return 76; // DOM_VK_L -> GLFW_KEY_L
  2561. case 0x4D:return 77; // DOM_VK_M -> GLFW_KEY_M
  2562. case 0x4E:return 78; // DOM_VK_N -> GLFW_KEY_N
  2563. case 0x4F:return 79; // DOM_VK_O -> GLFW_KEY_O
  2564. case 0x50:return 80; // DOM_VK_P -> GLFW_KEY_P
  2565. case 0x51:return 81; // DOM_VK_Q -> GLFW_KEY_Q
  2566. case 0x52:return 82; // DOM_VK_R -> GLFW_KEY_R
  2567. case 0x53:return 83; // DOM_VK_S -> GLFW_KEY_S
  2568. case 0x54:return 84; // DOM_VK_T -> GLFW_KEY_T
  2569. case 0x55:return 85; // DOM_VK_U -> GLFW_KEY_U
  2570. case 0x56:return 86; // DOM_VK_V -> GLFW_KEY_V
  2571. case 0x57:return 87; // DOM_VK_W -> GLFW_KEY_W
  2572. case 0x58:return 88; // DOM_VK_X -> GLFW_KEY_X
  2573. case 0x59:return 89; // DOM_VK_Y -> GLFW_KEY_Y
  2574. case 0x5a:return 90; // DOM_VK_Z -> GLFW_KEY_Z
  2575. case 0xDB:return 91; // DOM_VK_OPEN_BRACKET -> GLFW_KEY_LEFT_BRACKET
  2576. case 0xDC:return 92; // DOM_VK_BACKSLASH -> GLFW_KEY_BACKSLASH
  2577. case 0xDD:return 93; // DOM_VK_CLOSE_BRACKET -> GLFW_KEY_RIGHT_BRACKET
  2578. case 0xC0:return 94; // DOM_VK_BACK_QUOTE -> GLFW_KEY_GRAVE_ACCENT
  2579. case 0x1B:return 256; // DOM_VK_ESCAPE -> GLFW_KEY_ESCAPE
  2580. case 0x0D:return 257; // DOM_VK_RETURN -> GLFW_KEY_ENTER
  2581. case 0x09:return 258; // DOM_VK_TAB -> GLFW_KEY_TAB
  2582. case 0x08:return 259; // DOM_VK_BACK -> GLFW_KEY_BACKSPACE
  2583. case 0x2D:return 260; // DOM_VK_INSERT -> GLFW_KEY_INSERT
  2584. case 0x2E:return 261; // DOM_VK_DELETE -> GLFW_KEY_DELETE
  2585. case 0x27:return 262; // DOM_VK_RIGHT -> GLFW_KEY_RIGHT
  2586. case 0x25:return 263; // DOM_VK_LEFT -> GLFW_KEY_LEFT
  2587. case 0x28:return 264; // DOM_VK_DOWN -> GLFW_KEY_DOWN
  2588. case 0x26:return 265; // DOM_VK_UP -> GLFW_KEY_UP
  2589. case 0x21:return 266; // DOM_VK_PAGE_UP -> GLFW_KEY_PAGE_UP
  2590. case 0x22:return 267; // DOM_VK_PAGE_DOWN -> GLFW_KEY_PAGE_DOWN
  2591. case 0x24:return 268; // DOM_VK_HOME -> GLFW_KEY_HOME
  2592. case 0x23:return 269; // DOM_VK_END -> GLFW_KEY_END
  2593. case 0x14:return 280; // DOM_VK_CAPS_LOCK -> GLFW_KEY_CAPS_LOCK
  2594. case 0x91:return 281; // DOM_VK_SCROLL_LOCK -> GLFW_KEY_SCROLL_LOCK
  2595. case 0x90:return 282; // DOM_VK_NUM_LOCK -> GLFW_KEY_NUM_LOCK
  2596. case 0x2C:return 283; // DOM_VK_SNAPSHOT -> GLFW_KEY_PRINT_SCREEN
  2597. case 0x13:return 284; // DOM_VK_PAUSE -> GLFW_KEY_PAUSE
  2598. case 0x70:return 290; // DOM_VK_F1 -> GLFW_KEY_F1
  2599. case 0x71:return 291; // DOM_VK_F2 -> GLFW_KEY_F2
  2600. case 0x72:return 292; // DOM_VK_F3 -> GLFW_KEY_F3
  2601. case 0x73:return 293; // DOM_VK_F4 -> GLFW_KEY_F4
  2602. case 0x74:return 294; // DOM_VK_F5 -> GLFW_KEY_F5
  2603. case 0x75:return 295; // DOM_VK_F6 -> GLFW_KEY_F6
  2604. case 0x76:return 296; // DOM_VK_F7 -> GLFW_KEY_F7
  2605. case 0x77:return 297; // DOM_VK_F8 -> GLFW_KEY_F8
  2606. case 0x78:return 298; // DOM_VK_F9 -> GLFW_KEY_F9
  2607. case 0x79:return 299; // DOM_VK_F10 -> GLFW_KEY_F10
  2608. case 0x7A:return 300; // DOM_VK_F11 -> GLFW_KEY_F11
  2609. case 0x7B:return 301; // DOM_VK_F12 -> GLFW_KEY_F12
  2610. case 0x7C:return 302; // DOM_VK_F13 -> GLFW_KEY_F13
  2611. case 0x7D:return 303; // DOM_VK_F14 -> GLFW_KEY_F14
  2612. case 0x7E:return 304; // DOM_VK_F15 -> GLFW_KEY_F15
  2613. case 0x7F:return 305; // DOM_VK_F16 -> GLFW_KEY_F16
  2614. case 0x80:return 306; // DOM_VK_F17 -> GLFW_KEY_F17
  2615. case 0x81:return 307; // DOM_VK_F18 -> GLFW_KEY_F18
  2616. case 0x82:return 308; // DOM_VK_F19 -> GLFW_KEY_F19
  2617. case 0x83:return 309; // DOM_VK_F20 -> GLFW_KEY_F20
  2618. case 0x84:return 310; // DOM_VK_F21 -> GLFW_KEY_F21
  2619. case 0x85:return 311; // DOM_VK_F22 -> GLFW_KEY_F22
  2620. case 0x86:return 312; // DOM_VK_F23 -> GLFW_KEY_F23
  2621. case 0x87:return 313; // DOM_VK_F24 -> GLFW_KEY_F24
  2622. case 0x88:return 314; // 0x88 (not used?) -> GLFW_KEY_F25
  2623. case 0x60:return 320; // DOM_VK_NUMPAD0 -> GLFW_KEY_KP_0
  2624. case 0x61:return 321; // DOM_VK_NUMPAD1 -> GLFW_KEY_KP_1
  2625. case 0x62:return 322; // DOM_VK_NUMPAD2 -> GLFW_KEY_KP_2
  2626. case 0x63:return 323; // DOM_VK_NUMPAD3 -> GLFW_KEY_KP_3
  2627. case 0x64:return 324; // DOM_VK_NUMPAD4 -> GLFW_KEY_KP_4
  2628. case 0x65:return 325; // DOM_VK_NUMPAD5 -> GLFW_KEY_KP_5
  2629. case 0x66:return 326; // DOM_VK_NUMPAD6 -> GLFW_KEY_KP_6
  2630. case 0x67:return 327; // DOM_VK_NUMPAD7 -> GLFW_KEY_KP_7
  2631. case 0x68:return 328; // DOM_VK_NUMPAD8 -> GLFW_KEY_KP_8
  2632. case 0x69:return 329; // DOM_VK_NUMPAD9 -> GLFW_KEY_KP_9
  2633. case 0x6E:return 330; // DOM_VK_DECIMAL -> GLFW_KEY_KP_DECIMAL
  2634. case 0x6F:return 331; // DOM_VK_DIVIDE -> GLFW_KEY_KP_DIVIDE
  2635. case 0x6A:return 332; // DOM_VK_MULTIPLY -> GLFW_KEY_KP_MULTIPLY
  2636. case 0x6D:return 333; // DOM_VK_SUBTRACT -> GLFW_KEY_KP_SUBTRACT
  2637. case 0x6B:return 334; // DOM_VK_ADD -> GLFW_KEY_KP_ADD
  2638. // case 0x0D:return 335; // DOM_VK_RETURN -> GLFW_KEY_KP_ENTER (DOM_KEY_LOCATION_RIGHT)
  2639. // case 0x61:return 336; // DOM_VK_EQUALS -> GLFW_KEY_KP_EQUAL (DOM_KEY_LOCATION_RIGHT)
  2640. case 0x10:return 340; // DOM_VK_SHIFT -> GLFW_KEY_LEFT_SHIFT
  2641. case 0x11:return 341; // DOM_VK_CONTROL -> GLFW_KEY_LEFT_CONTROL
  2642. case 0x12:return 342; // DOM_VK_ALT -> GLFW_KEY_LEFT_ALT
  2643. case 0x5B:return 343; // DOM_VK_WIN -> GLFW_KEY_LEFT_SUPER
  2644. // case 0x10:return 344; // DOM_VK_SHIFT -> GLFW_KEY_RIGHT_SHIFT (DOM_KEY_LOCATION_RIGHT)
  2645. // case 0x11:return 345; // DOM_VK_CONTROL -> GLFW_KEY_RIGHT_CONTROL (DOM_KEY_LOCATION_RIGHT)
  2646. // case 0x12:return 346; // DOM_VK_ALT -> GLFW_KEY_RIGHT_ALT (DOM_KEY_LOCATION_RIGHT)
  2647. // case 0x5B:return 347; // DOM_VK_WIN -> GLFW_KEY_RIGHT_SUPER (DOM_KEY_LOCATION_RIGHT)
  2648. case 0x5D:return 348; // DOM_VK_CONTEXT_MENU -> GLFW_KEY_MENU
  2649. // XXX: GLFW_KEY_WORLD_1, GLFW_KEY_WORLD_2 what are these?
  2650. default:return -1; // GLFW_KEY_UNKNOWN
  2651. };
  2652. },getModBits:function (win) {
  2653. var mod = 0;
  2654. if (win.keys[340]) mod |= 0x0001; // GLFW_MOD_SHIFT
  2655. if (win.keys[341]) mod |= 0x0002; // GLFW_MOD_CONTROL
  2656. if (win.keys[342]) mod |= 0x0004; // GLFW_MOD_ALT
  2657. if (win.keys[343]) mod |= 0x0008; // GLFW_MOD_SUPER
  2658. return mod;
  2659. },onKeyPress:function (event) {
  2660. if (!GLFW.active || !GLFW.active.charFunc) return;
  2661. // correct unicode charCode is only available with onKeyPress event
  2662. var charCode = event.charCode;
  2663. if (charCode == 0 || (charCode >= 0x00 && charCode <= 0x1F)) return;
  2664. Module['dynCall_vii'](GLFW.active.charFunc, GLFW.active.id, charCode);
  2665. },onKeyChanged:function (event, status) {
  2666. if (!GLFW.active) return;
  2667. var key = GLFW.DOMToGLFWKeyCode(event.keyCode);
  2668. if (key == -1) return;
  2669. var repeat = status && GLFW.active.keys[key];
  2670. GLFW.active.keys[key] = status;
  2671. if (!GLFW.active.keyFunc) return;
  2672. if (repeat) status = 2; // GLFW_REPEAT
  2673. Module['dynCall_viiiii'](GLFW.active.keyFunc, GLFW.active.id, key, event.keyCode, status, GLFW.getModBits(GLFW.active));
  2674. },onKeydown:function (event) {
  2675. GLFW.onKeyChanged(event, 1); // GLFW_PRESS or GLFW_REPEAT
  2676. // This logic comes directly from the sdl implementation. We cannot
  2677. // call preventDefault on all keydown events otherwise onKeyPress will
  2678. // not get called
  2679. if (event.keyCode === 8 /* backspace */ || event.keyCode === 9 /* tab */) {
  2680. event.preventDefault();
  2681. }
  2682. },onKeyup:function (event) {
  2683. GLFW.onKeyChanged(event, 0); // GLFW_RELEASE
  2684. },onMousemove:function (event) {
  2685. if (!GLFW.active) return;
  2686. Browser.calculateMouseEvent(event);
  2687. if (event.target != Module["canvas"] || !GLFW.active.cursorPosFunc) return;
  2688. Module['dynCall_vidd'](GLFW.active.cursorPosFunc, GLFW.active.id, Browser.mouseX, Browser.mouseY);
  2689. },DOMToGLFWMouseButton:function (event) {
  2690. // DOM and glfw have different button codes.
  2691. // See http://www.w3schools.com/jsref/event_button.asp.
  2692. var eventButton = event['button'];
  2693. if (eventButton > 0) {
  2694. if (eventButton == 1) {
  2695. eventButton = 2;
  2696. } else {
  2697. eventButton = 1;
  2698. }
  2699. }
  2700. return eventButton;
  2701. },onMouseenter:function (event) {
  2702. if (!GLFW.active) return;
  2703. if (event.target != Module["canvas"] || !GLFW.active.cursorEnterFunc) return;
  2704. Module['dynCall_vii'](GLFW.active.cursorEnterFunc, GLFW.active.id, 1);
  2705. },onMouseleave:function (event) {
  2706. if (!GLFW.active) return;
  2707. if (event.target != Module["canvas"] || !GLFW.active.cursorEnterFunc) return;
  2708. Module['dynCall_vii'](GLFW.active.cursorEnterFunc, GLFW.active.id, 0);
  2709. },onMouseButtonChanged:function (event, status) {
  2710. if (!GLFW.active) return;
  2711. Browser.calculateMouseEvent(event);
  2712. if (event.target != Module["canvas"]) return;
  2713. eventButton = GLFW.DOMToGLFWMouseButton(event);
  2714. if (status == 1) { // GLFW_PRESS
  2715. GLFW.active.buttons |= (1 << eventButton);
  2716. try {
  2717. event.target.setCapture();
  2718. } catch (e) {}
  2719. } else { // GLFW_RELEASE
  2720. GLFW.active.buttons &= ~(1 << eventButton);
  2721. }
  2722. if (!GLFW.active.mouseButtonFunc) return;
  2723. Module['dynCall_viiii'](GLFW.active.mouseButtonFunc, GLFW.active.id, eventButton, status, GLFW.getModBits(GLFW.active));
  2724. },onMouseButtonDown:function (event) {
  2725. if (!GLFW.active) return;
  2726. GLFW.onMouseButtonChanged(event, 1); // GLFW_PRESS
  2727. },onMouseButtonUp:function (event) {
  2728. if (!GLFW.active) return;
  2729. GLFW.onMouseButtonChanged(event, 0); // GLFW_RELEASE
  2730. },onMouseWheel:function (event) {
  2731. // Note the minus sign that flips browser wheel direction (positive direction scrolls page down) to native wheel direction (positive direction is mouse wheel up)
  2732. var delta = -Browser.getMouseWheelDelta(event);
  2733. 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.
  2734. GLFW.wheelPos += delta;
  2735. if (!GLFW.active || !GLFW.active.scrollFunc || event.target != Module['canvas']) return;
  2736. var sx = 0;
  2737. var sy = 0;
  2738. if (event.type == 'mousewheel') {
  2739. sx = event.wheelDeltaX;
  2740. sy = event.wheelDeltaY;
  2741. } else {
  2742. sx = event.deltaX;
  2743. sy = event.deltaY;
  2744. }
  2745. Module['dynCall_vidd'](GLFW.active.scrollFunc, GLFW.active.id, sx, sy);
  2746. event.preventDefault();
  2747. },onCanvasResize:function (width, height) {
  2748. if (!GLFW.active) return;
  2749. var resizeNeeded = true;
  2750. // If the client is requestiong fullscreen mode
  2751. if (document["fullscreen"] || document["fullScreen"] || document["mozFullScreen"] || document["webkitIsFullScreen"]) {
  2752. GLFW.active.storedX = GLFW.active.x;
  2753. GLFW.active.storedY = GLFW.active.y;
  2754. GLFW.active.storedWidth = GLFW.active.width;
  2755. GLFW.active.storedHeight = GLFW.active.height;
  2756. GLFW.active.x = GLFW.active.y = 0;
  2757. GLFW.active.width = screen.width;
  2758. GLFW.active.height = screen.height;
  2759. GLFW.active.fullscreen = true;
  2760. // If the client is reverting from fullscreen mode
  2761. } else if (GLFW.active.fullscreen == true) {
  2762. GLFW.active.x = GLFW.active.storedX;
  2763. GLFW.active.y = GLFW.active.storedY;
  2764. GLFW.active.width = GLFW.active.storedWidth;
  2765. GLFW.active.height = GLFW.active.storedHeight;
  2766. GLFW.active.fullscreen = false;
  2767. // If the width/height values do not match current active window sizes
  2768. } else if (GLFW.active.width != width || GLFW.active.height != height) {
  2769. GLFW.active.width = width;
  2770. GLFW.active.height = height;
  2771. } else {
  2772. resizeNeeded = false;
  2773. }
  2774. // If any of the above conditions were true, we need to resize the canvas
  2775. if (resizeNeeded) {
  2776. // resets the canvas size to counter the aspect preservation of Browser.updateCanvasDimensions
  2777. Browser.setCanvasSize(GLFW.active.width, GLFW.active.height, true);
  2778. // TODO: Client dimensions (clientWidth/clientHeight) vs pixel dimensions (width/height) of
  2779. // the canvas should drive window and framebuffer size respectfully.
  2780. GLFW.onWindowSizeChanged();
  2781. GLFW.onFramebufferSizeChanged();
  2782. }
  2783. },onWindowSizeChanged:function () {
  2784. if (!GLFW.active) return;
  2785. if (!GLFW.active.windowSizeFunc) return;
  2786. Module['dynCall_viii'](GLFW.active.windowSizeFunc, GLFW.active.id, GLFW.active.width, GLFW.active.height);
  2787. },onFramebufferSizeChanged:function () {
  2788. if (!GLFW.active) return;
  2789. if (!GLFW.active.framebufferSizeFunc) return;
  2790. Module['dynCall_viii'](GLFW.active.framebufferSizeFunc, GLFW.active.id, GLFW.active.width, GLFW.active.height);
  2791. },requestFullscreen:function () {
  2792. var RFS = Module["canvas"]['requestFullscreen'] ||
  2793. Module["canvas"]['mozRequestFullScreen'] ||
  2794. Module["canvas"]['webkitRequestFullScreen'] ||
  2795. (function() {});
  2796. RFS.apply(Module["canvas"], []);
  2797. },requestFullScreen:function () {
  2798. Module.printErr('GLFW.requestFullScreen() is deprecated. Please call GLFW.requestFullscreen instead.');
  2799. GLFW.requestFullScreen = function() {
  2800. return GLFW.requestFullscreen();
  2801. }
  2802. return GLFW.requestFullscreen();
  2803. },exitFullscreen:function () {
  2804. var CFS = document['exitFullscreen'] ||
  2805. document['cancelFullScreen'] ||
  2806. document['mozCancelFullScreen'] ||
  2807. document['webkitCancelFullScreen'] ||
  2808. (function() {});
  2809. CFS.apply(document, []);
  2810. },cancelFullScreen:function () {
  2811. Module.printErr('GLFW.cancelFullScreen() is deprecated. Please call GLFW.exitFullscreen instead.');
  2812. GLFW.cancelFullScreen = function() {
  2813. return GLFW.exitFullscreen();
  2814. }
  2815. return GLFW.exitFullscreen();
  2816. },getTime:function () {
  2817. return _emscripten_get_now() / 1000;
  2818. },setWindowTitle:function (winid, title) {
  2819. var win = GLFW.WindowFromId(winid);
  2820. if (!win) return;
  2821. win.title = Pointer_stringify(title);
  2822. if (GLFW.active.id == win.id) {
  2823. document.title = win.title;
  2824. }
  2825. },setKeyCallback:function (winid, cbfun) {
  2826. var win = GLFW.WindowFromId(winid);
  2827. if (!win) return;
  2828. win.keyFunc = cbfun;
  2829. },setCharCallback:function (winid, cbfun) {
  2830. var win = GLFW.WindowFromId(winid);
  2831. if (!win) return;
  2832. win.charFunc = cbfun;
  2833. },setMouseButtonCallback:function (winid, cbfun) {
  2834. var win = GLFW.WindowFromId(winid);
  2835. if (!win) return;
  2836. win.mouseButtonFunc = cbfun;
  2837. },setCursorPosCallback:function (winid, cbfun) {
  2838. var win = GLFW.WindowFromId(winid);
  2839. if (!win) return;
  2840. win.cursorPosFunc = cbfun;
  2841. },setScrollCallback:function (winid, cbfun) {
  2842. var win = GLFW.WindowFromId(winid);
  2843. if (!win) return;
  2844. win.scrollFunc = cbfun;
  2845. },setWindowSizeCallback:function (winid, cbfun) {
  2846. var win = GLFW.WindowFromId(winid);
  2847. if (!win) return;
  2848. win.windowSizeFunc = cbfun;
  2849. },setWindowCloseCallback:function (winid, cbfun) {
  2850. var win = GLFW.WindowFromId(winid);
  2851. if (!win) return;
  2852. win.windowCloseFunc = cbfun;
  2853. },setWindowRefreshCallback:function (winid, cbfun) {
  2854. var win = GLFW.WindowFromId(winid);
  2855. if (!win) return;
  2856. win.windowRefreshFunc = cbfun;
  2857. },onClickRequestPointerLock:function (e) {
  2858. if (!Browser.pointerLock && Module['canvas'].requestPointerLock) {
  2859. Module['canvas'].requestPointerLock();
  2860. e.preventDefault();
  2861. }
  2862. },setInputMode:function (winid, mode, value) {
  2863. var win = GLFW.WindowFromId(winid);
  2864. if (!win) return;
  2865. switch(mode) {
  2866. case 0x00033001: { // GLFW_CURSOR
  2867. switch(value) {
  2868. case 0x00034001: { // GLFW_CURSOR_NORMAL
  2869. win.inputModes[mode] = value;
  2870. Module['canvas'].removeEventListener('click', GLFW.onClickRequestPointerLock, true);
  2871. Module['canvas'].exitPointerLock();
  2872. break;
  2873. }
  2874. case 0x00034002: { // GLFW_CURSOR_HIDDEN
  2875. console.log("glfwSetInputMode called with GLFW_CURSOR_HIDDEN value not implemented.");
  2876. break;
  2877. }
  2878. case 0x00034003: { // GLFW_CURSOR_DISABLED
  2879. win.inputModes[mode] = value;
  2880. Module['canvas'].addEventListener('click', GLFW.onClickRequestPointerLock, true);
  2881. Module['canvas'].requestPointerLock();
  2882. break;
  2883. }
  2884. default: {
  2885. console.log("glfwSetInputMode called with unknown value parameter value: " + value + ".");
  2886. break;
  2887. }
  2888. }
  2889. break;
  2890. }
  2891. case 0x00033002: { // GLFW_STICKY_KEYS
  2892. console.log("glfwSetInputMode called with GLFW_STICKY_KEYS mode not implemented.");
  2893. break;
  2894. }
  2895. case 0x00033003: { // GLFW_STICKY_MOUSE_BUTTONS
  2896. console.log("glfwSetInputMode called with GLFW_STICKY_MOUSE_BUTTONS mode not implemented.");
  2897. break;
  2898. }
  2899. default: {
  2900. console.log("glfwSetInputMode called with unknown mode parameter value: " + mode + ".");
  2901. break;
  2902. }
  2903. }
  2904. },getKey:function (winid, key) {
  2905. var win = GLFW.WindowFromId(winid);
  2906. if (!win) return 0;
  2907. return win.keys[key];
  2908. },getMouseButton:function (winid, button) {
  2909. var win = GLFW.WindowFromId(winid);
  2910. if (!win) return 0;
  2911. return (win.buttons & (1 << button)) > 0;
  2912. },getCursorPos:function (winid, x, y) {
  2913. setValue(x, Browser.mouseX, 'double');
  2914. setValue(y, Browser.mouseY, 'double');
  2915. },getMousePos:function (winid, x, y) {
  2916. setValue(x, Browser.mouseX, 'i32');
  2917. setValue(y, Browser.mouseY, 'i32');
  2918. },setCursorPos:function (winid, x, y) {
  2919. },getWindowPos:function (winid, x, y) {
  2920. var wx = 0;
  2921. var wy = 0;
  2922. var win = GLFW.WindowFromId(winid);
  2923. if (win) {
  2924. wx = win.x;
  2925. wy = win.y;
  2926. }
  2927. setValue(x, wx, 'i32');
  2928. setValue(y, wy, 'i32');
  2929. },setWindowPos:function (winid, x, y) {
  2930. var win = GLFW.WindowFromId(winid);
  2931. if (!win) return;
  2932. win.x = x;
  2933. win.y = y;
  2934. },getWindowSize:function (winid, width, height) {
  2935. var ww = 0;
  2936. var wh = 0;
  2937. var win = GLFW.WindowFromId(winid);
  2938. if (win) {
  2939. ww = win.width;
  2940. wh = win.height;
  2941. }
  2942. setValue(width, ww, 'i32');
  2943. setValue(height, wh, 'i32');
  2944. },setWindowSize:function (winid, width, height) {
  2945. var win = GLFW.WindowFromId(winid);
  2946. if (!win) return;
  2947. if (GLFW.active.id == win.id) {
  2948. if (width == screen.width && height == screen.height) {
  2949. GLFW.requestFullscreen();
  2950. } else {
  2951. GLFW.exitFullscreen();
  2952. Browser.setCanvasSize(width, height);
  2953. win.width = width;
  2954. win.height = height;
  2955. }
  2956. }
  2957. if (!win.windowSizeFunc) return;
  2958. Module['dynCall_viii'](win.windowSizeFunc, win.id, width, height);
  2959. },createWindow:function (width, height, title, monitor, share) {
  2960. var i, id;
  2961. for (i = 0; i < GLFW.windows.length && GLFW.windows[i] !== null; i++);
  2962. if (i > 0) throw "glfwCreateWindow only supports one window at time currently";
  2963. // id for window
  2964. id = i + 1;
  2965. // not valid
  2966. if (width <= 0 || height <= 0) return 0;
  2967. if (monitor) {
  2968. GLFW.requestFullscreen();
  2969. } else {
  2970. Browser.setCanvasSize(width, height);
  2971. }
  2972. // Create context when there are no existing alive windows
  2973. for (i = 0; i < GLFW.windows.length && GLFW.windows[i] == null; i++);
  2974. if (i == GLFW.windows.length) {
  2975. var contextAttributes = {
  2976. antialias: (GLFW.hints[0x0002100D] > 1), // GLFW_SAMPLES
  2977. depth: (GLFW.hints[0x00021005] > 0), // GLFW_DEPTH_BITS
  2978. stencil: (GLFW.hints[0x00021006] > 0), // GLFW_STENCIL_BITS
  2979. alpha: (GLFW.hints[0x00021004] > 0) // GLFW_ALPHA_BITS
  2980. }
  2981. Module.ctx = Browser.createContext(Module['canvas'], true, true, contextAttributes);
  2982. }
  2983. // If context creation failed, do not return a valid window
  2984. if (!Module.ctx) return 0;
  2985. // Get non alive id
  2986. var win = new GLFW.Window(id, width, height, title, monitor, share);
  2987. // Set window to array
  2988. if (id - 1 == GLFW.windows.length) {
  2989. GLFW.windows.push(win);
  2990. } else {
  2991. GLFW.windows[id - 1] = win;
  2992. }
  2993. GLFW.active = win;
  2994. return win.id;
  2995. },destroyWindow:function (winid) {
  2996. var win = GLFW.WindowFromId(winid);
  2997. if (!win) return;
  2998. if (win.windowCloseFunc)
  2999. Module['dynCall_vi'](win.windowCloseFunc, win.id);
  3000. GLFW.windows[win.id - 1] = null;
  3001. if (GLFW.active.id == win.id)
  3002. GLFW.active = null;
  3003. // Destroy context when no alive windows
  3004. for (var i = 0; i < GLFW.windows.length; i++)
  3005. if (GLFW.windows[i] !== null) return;
  3006. Module.ctx = Browser.destroyContext(Module['canvas'], true, true);
  3007. },swapBuffers:function (winid) {
  3008. },GLFW2ParamToGLFW3Param:function (param) {
  3009. table = {
  3010. 0x00030001:0, // GLFW_MOUSE_CURSOR
  3011. 0x00030002:0, // GLFW_STICKY_KEYS
  3012. 0x00030003:0, // GLFW_STICKY_MOUSE_BUTTONS
  3013. 0x00030004:0, // GLFW_SYSTEM_KEYS
  3014. 0x00030005:0, // GLFW_KEY_REPEAT
  3015. 0x00030006:0, // GLFW_AUTO_POLL_EVENTS
  3016. 0x00020001:0, // GLFW_OPENED
  3017. 0x00020002:0, // GLFW_ACTIVE
  3018. 0x00020003:0, // GLFW_ICONIFIED
  3019. 0x00020004:0, // GLFW_ACCELERATED
  3020. 0x00020005:0x00021001, // GLFW_RED_BITS
  3021. 0x00020006:0x00021002, // GLFW_GREEN_BITS
  3022. 0x00020007:0x00021003, // GLFW_BLUE_BITS
  3023. 0x00020008:0x00021004, // GLFW_ALPHA_BITS
  3024. 0x00020009:0x00021005, // GLFW_DEPTH_BITS
  3025. 0x0002000A:0x00021006, // GLFW_STENCIL_BITS
  3026. 0x0002000B:0x0002100F, // GLFW_REFRESH_RATE
  3027. 0x0002000C:0x00021007, // GLFW_ACCUM_RED_BITS
  3028. 0x0002000D:0x00021008, // GLFW_ACCUM_GREEN_BITS
  3029. 0x0002000E:0x00021009, // GLFW_ACCUM_BLUE_BITS
  3030. 0x0002000F:0x0002100A, // GLFW_ACCUM_ALPHA_BITS
  3031. 0x00020010:0x0002100B, // GLFW_AUX_BUFFERS
  3032. 0x00020011:0x0002100C, // GLFW_STEREO
  3033. 0x00020012:0, // GLFW_WINDOW_NO_RESIZE
  3034. 0x00020013:0x0002100D, // GLFW_FSAA_SAMPLES
  3035. 0x00020014:0x00022002, // GLFW_OPENGL_VERSION_MAJOR
  3036. 0x00020015:0x00022003, // GLFW_OPENGL_VERSION_MINOR
  3037. 0x00020016:0x00022006, // GLFW_OPENGL_FORWARD_COMPAT
  3038. 0x00020017:0x00022007, // GLFW_OPENGL_DEBUG_CONTEXT
  3039. 0x00020018:0x00022008, // GLFW_OPENGL_PROFILE
  3040. };
  3041. return table[param];
  3042. }};function _glfwGetVideoModes(monitor, count) {
  3043. setValue(count, 0, 'i32');
  3044. return 0;
  3045. }
  3046. function _glLinkProgram(program) {
  3047. GLctx.linkProgram(GL.programs[program]);
  3048. GL.programInfos[program] = null; // uniforms no longer keep the same names after linking
  3049. GL.populateUniformTable(program);
  3050. }
  3051. function _glBindTexture(target, texture) {
  3052. GLctx.bindTexture(target, texture ? GL.textures[texture] : null);
  3053. }
  3054. function _emscripten_glStencilFunc(x0, x1, x2) { GLctx['stencilFunc'](x0, x1, x2) }
  3055. function _glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer) {
  3056. GLctx.framebufferRenderbuffer(target, attachment, renderbuffertarget,
  3057. GL.renderbuffers[renderbuffer]);
  3058. }
  3059. function _glGetString(name_) {
  3060. if (GL.stringCache[name_]) return GL.stringCache[name_];
  3061. var ret;
  3062. switch(name_) {
  3063. case 0x1F00 /* GL_VENDOR */:
  3064. case 0x1F01 /* GL_RENDERER */:
  3065. case 0x9245 /* UNMASKED_VENDOR_WEBGL */:
  3066. case 0x9246 /* UNMASKED_RENDERER_WEBGL */:
  3067. ret = allocate(intArrayFromString(GLctx.getParameter(name_)), 'i8', ALLOC_NORMAL);
  3068. break;
  3069. case 0x1F02 /* GL_VERSION */:
  3070. var glVersion = GLctx.getParameter(GLctx.VERSION);
  3071. // return GLES version string corresponding to the version of the WebGL context
  3072. {
  3073. glVersion = 'OpenGL ES 2.0 (' + glVersion + ')';
  3074. }
  3075. ret = allocate(intArrayFromString(glVersion), 'i8', ALLOC_NORMAL);
  3076. break;
  3077. case 0x1F03 /* GL_EXTENSIONS */:
  3078. var exts = GLctx.getSupportedExtensions();
  3079. var gl_exts = [];
  3080. for (var i = 0; i < exts.length; ++i) {
  3081. gl_exts.push(exts[i]);
  3082. gl_exts.push("GL_" + exts[i]);
  3083. }
  3084. ret = allocate(intArrayFromString(gl_exts.join(' ')), 'i8', ALLOC_NORMAL);
  3085. break;
  3086. case 0x8B8C /* GL_SHADING_LANGUAGE_VERSION */:
  3087. var glslVersion = GLctx.getParameter(GLctx.SHADING_LANGUAGE_VERSION);
  3088. // extract the version number 'N.M' from the string 'WebGL GLSL ES N.M ...'
  3089. var ver_re = /^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/;
  3090. var ver_num = glslVersion.match(ver_re);
  3091. if (ver_num !== null) {
  3092. if (ver_num[1].length == 3) ver_num[1] = ver_num[1] + '0'; // ensure minor version has 2 digits
  3093. glslVersion = 'OpenGL ES GLSL ES ' + ver_num[1] + ' (' + glslVersion + ')';
  3094. }
  3095. ret = allocate(intArrayFromString(glslVersion), 'i8', ALLOC_NORMAL);
  3096. break;
  3097. default:
  3098. GL.recordError(0x0500/*GL_INVALID_ENUM*/);
  3099. return 0;
  3100. }
  3101. GL.stringCache[name_] = ret;
  3102. return ret;
  3103. }
  3104. function _emscripten_glUniform3iv(location, count, value) {
  3105. GLctx.uniform3iv(GL.uniforms[location], HEAP32.subarray((value)>>2,(value+count*12)>>2));
  3106. }
  3107. function _emscripten_glShaderSource(shader, count, string, length) {
  3108. var source = GL.getSource(shader, count, string, length);
  3109. GLctx.shaderSource(GL.shaders[shader], source);
  3110. }
  3111. function _emscripten_glReleaseShaderCompiler() {
  3112. // NOP (as allowed by GLES 2.0 spec)
  3113. }
  3114. function _glfwSetScrollCallback(winid, cbfun) {
  3115. GLFW.setScrollCallback(winid, cbfun);
  3116. }
  3117. function _emscripten_glTexParameterf(x0, x1, x2) { GLctx['texParameterf'](x0, x1, x2) }
  3118. function _emscripten_glTexParameteri(x0, x1, x2) { GLctx['texParameteri'](x0, x1, x2) }
  3119. function _glCompileShader(shader) {
  3120. GLctx.compileShader(GL.shaders[shader]);
  3121. }
  3122. 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};
  3123. 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"};
  3124. function ___setErrNo(value) {
  3125. if (Module['___errno_location']) HEAP32[((Module['___errno_location']())>>2)]=value;
  3126. else Module.printErr('failed to set errno from JS');
  3127. return value;
  3128. }
  3129. var PATH={splitPath:function (filename) {
  3130. var splitPathRe = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;
  3131. return splitPathRe.exec(filename).slice(1);
  3132. },normalizeArray:function (parts, allowAboveRoot) {
  3133. // if the path tries to go above the root, `up` ends up > 0
  3134. var up = 0;
  3135. for (var i = parts.length - 1; i >= 0; i--) {
  3136. var last = parts[i];
  3137. if (last === '.') {
  3138. parts.splice(i, 1);
  3139. } else if (last === '..') {
  3140. parts.splice(i, 1);
  3141. up++;
  3142. } else if (up) {
  3143. parts.splice(i, 1);
  3144. up--;
  3145. }
  3146. }
  3147. // if the path is allowed to go above the root, restore leading ..s
  3148. if (allowAboveRoot) {
  3149. for (; up--; up) {
  3150. parts.unshift('..');
  3151. }
  3152. }
  3153. return parts;
  3154. },normalize:function (path) {
  3155. var isAbsolute = path.charAt(0) === '/',
  3156. trailingSlash = path.substr(-1) === '/';
  3157. // Normalize the path
  3158. path = PATH.normalizeArray(path.split('/').filter(function(p) {
  3159. return !!p;
  3160. }), !isAbsolute).join('/');
  3161. if (!path && !isAbsolute) {
  3162. path = '.';
  3163. }
  3164. if (path && trailingSlash) {
  3165. path += '/';
  3166. }
  3167. return (isAbsolute ? '/' : '') + path;
  3168. },dirname:function (path) {
  3169. var result = PATH.splitPath(path),
  3170. root = result[0],
  3171. dir = result[1];
  3172. if (!root && !dir) {
  3173. // No dirname whatsoever
  3174. return '.';
  3175. }
  3176. if (dir) {
  3177. // It has a dirname, strip trailing slash
  3178. dir = dir.substr(0, dir.length - 1);
  3179. }
  3180. return root + dir;
  3181. },basename:function (path) {
  3182. // EMSCRIPTEN return '/'' for '/', not an empty string
  3183. if (path === '/') return '/';
  3184. var lastSlash = path.lastIndexOf('/');
  3185. if (lastSlash === -1) return path;
  3186. return path.substr(lastSlash+1);
  3187. },extname:function (path) {
  3188. return PATH.splitPath(path)[3];
  3189. },join:function () {
  3190. var paths = Array.prototype.slice.call(arguments, 0);
  3191. return PATH.normalize(paths.join('/'));
  3192. },join2:function (l, r) {
  3193. return PATH.normalize(l + '/' + r);
  3194. },resolve:function () {
  3195. var resolvedPath = '',
  3196. resolvedAbsolute = false;
  3197. for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
  3198. var path = (i >= 0) ? arguments[i] : FS.cwd();
  3199. // Skip empty and invalid entries
  3200. if (typeof path !== 'string') {
  3201. throw new TypeError('Arguments to path.resolve must be strings');
  3202. } else if (!path) {
  3203. return ''; // an invalid portion invalidates the whole thing
  3204. }
  3205. resolvedPath = path + '/' + resolvedPath;
  3206. resolvedAbsolute = path.charAt(0) === '/';
  3207. }
  3208. // At this point the path should be resolved to a full absolute path, but
  3209. // handle relative paths to be safe (might happen when process.cwd() fails)
  3210. resolvedPath = PATH.normalizeArray(resolvedPath.split('/').filter(function(p) {
  3211. return !!p;
  3212. }), !resolvedAbsolute).join('/');
  3213. return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
  3214. },relative:function (from, to) {
  3215. from = PATH.resolve(from).substr(1);
  3216. to = PATH.resolve(to).substr(1);
  3217. function trim(arr) {
  3218. var start = 0;
  3219. for (; start < arr.length; start++) {
  3220. if (arr[start] !== '') break;
  3221. }
  3222. var end = arr.length - 1;
  3223. for (; end >= 0; end--) {
  3224. if (arr[end] !== '') break;
  3225. }
  3226. if (start > end) return [];
  3227. return arr.slice(start, end - start + 1);
  3228. }
  3229. var fromParts = trim(from.split('/'));
  3230. var toParts = trim(to.split('/'));
  3231. var length = Math.min(fromParts.length, toParts.length);
  3232. var samePartsLength = length;
  3233. for (var i = 0; i < length; i++) {
  3234. if (fromParts[i] !== toParts[i]) {
  3235. samePartsLength = i;
  3236. break;
  3237. }
  3238. }
  3239. var outputParts = [];
  3240. for (var i = samePartsLength; i < fromParts.length; i++) {
  3241. outputParts.push('..');
  3242. }
  3243. outputParts = outputParts.concat(toParts.slice(samePartsLength));
  3244. return outputParts.join('/');
  3245. }};
  3246. var TTY={ttys:[],init:function () {
  3247. // https://github.com/kripken/emscripten/pull/1555
  3248. // if (ENVIRONMENT_IS_NODE) {
  3249. // // currently, FS.init does not distinguish if process.stdin is a file or TTY
  3250. // // device, it always assumes it's a TTY device. because of this, we're forcing
  3251. // // process.stdin to UTF8 encoding to at least make stdin reading compatible
  3252. // // with text files until FS.init can be refactored.
  3253. // process['stdin']['setEncoding']('utf8');
  3254. // }
  3255. },shutdown:function () {
  3256. // https://github.com/kripken/emscripten/pull/1555
  3257. // if (ENVIRONMENT_IS_NODE) {
  3258. // // inolen: any idea as to why node -e 'process.stdin.read()' wouldn't exit immediately (with process.stdin being a tty)?
  3259. // // 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
  3260. // // inolen: I thought read() in that case was a synchronous operation that just grabbed some amount of buffered data if it exists?
  3261. // // isaacs: it is. but it also triggers a _read() call, which calls readStart() on the handle
  3262. // // isaacs: do process.stdin.pause() and i'd think it'd probably close the pending call
  3263. // process['stdin']['pause']();
  3264. // }
  3265. },register:function (dev, ops) {
  3266. TTY.ttys[dev] = { input: [], output: [], ops: ops };
  3267. FS.registerDevice(dev, TTY.stream_ops);
  3268. },stream_ops:{open:function (stream) {
  3269. var tty = TTY.ttys[stream.node.rdev];
  3270. if (!tty) {
  3271. throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
  3272. }
  3273. stream.tty = tty;
  3274. stream.seekable = false;
  3275. },close:function (stream) {
  3276. // flush any pending line data
  3277. stream.tty.ops.flush(stream.tty);
  3278. },flush:function (stream) {
  3279. stream.tty.ops.flush(stream.tty);
  3280. },read:function (stream, buffer, offset, length, pos /* ignored */) {
  3281. if (!stream.tty || !stream.tty.ops.get_char) {
  3282. throw new FS.ErrnoError(ERRNO_CODES.ENXIO);
  3283. }
  3284. var bytesRead = 0;
  3285. for (var i = 0; i < length; i++) {
  3286. var result;
  3287. try {
  3288. result = stream.tty.ops.get_char(stream.tty);
  3289. } catch (e) {
  3290. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  3291. }
  3292. if (result === undefined && bytesRead === 0) {
  3293. throw new FS.ErrnoError(ERRNO_CODES.EAGAIN);
  3294. }
  3295. if (result === null || result === undefined) break;
  3296. bytesRead++;
  3297. buffer[offset+i] = result;
  3298. }
  3299. if (bytesRead) {
  3300. stream.node.timestamp = Date.now();
  3301. }
  3302. return bytesRead;
  3303. },write:function (stream, buffer, offset, length, pos) {
  3304. if (!stream.tty || !stream.tty.ops.put_char) {
  3305. throw new FS.ErrnoError(ERRNO_CODES.ENXIO);
  3306. }
  3307. for (var i = 0; i < length; i++) {
  3308. try {
  3309. stream.tty.ops.put_char(stream.tty, buffer[offset+i]);
  3310. } catch (e) {
  3311. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  3312. }
  3313. }
  3314. if (length) {
  3315. stream.node.timestamp = Date.now();
  3316. }
  3317. return i;
  3318. }},default_tty_ops:{get_char:function (tty) {
  3319. if (!tty.input.length) {
  3320. var result = null;
  3321. if (ENVIRONMENT_IS_NODE) {
  3322. // we will read data by chunks of BUFSIZE
  3323. var BUFSIZE = 256;
  3324. var buf = new Buffer(BUFSIZE);
  3325. var bytesRead = 0;
  3326. var isPosixPlatform = (process.platform != 'win32'); // Node doesn't offer a direct check, so test by exclusion
  3327. var fd = process.stdin.fd;
  3328. if (isPosixPlatform) {
  3329. // Linux and Mac cannot use process.stdin.fd (which isn't set up as sync)
  3330. var usingDevice = false;
  3331. try {
  3332. fd = fs.openSync('/dev/stdin', 'r');
  3333. usingDevice = true;
  3334. } catch (e) {}
  3335. }
  3336. try {
  3337. bytesRead = fs.readSync(fd, buf, 0, BUFSIZE, null);
  3338. } catch(e) {
  3339. // Cross-platform differences: on Windows, reading EOF throws an exception, but on other OSes,
  3340. // reading EOF returns 0. Uniformize behavior by treating the EOF exception to return 0.
  3341. if (e.toString().indexOf('EOF') != -1) bytesRead = 0;
  3342. else throw e;
  3343. }
  3344. if (usingDevice) { fs.closeSync(fd); }
  3345. if (bytesRead > 0) {
  3346. result = buf.slice(0, bytesRead).toString('utf-8');
  3347. } else {
  3348. result = null;
  3349. }
  3350. } else if (typeof window != 'undefined' &&
  3351. typeof window.prompt == 'function') {
  3352. // Browser.
  3353. result = window.prompt('Input: '); // returns null on cancel
  3354. if (result !== null) {
  3355. result += '\n';
  3356. }
  3357. } else if (typeof readline == 'function') {
  3358. // Command line.
  3359. result = readline();
  3360. if (result !== null) {
  3361. result += '\n';
  3362. }
  3363. }
  3364. if (!result) {
  3365. return null;
  3366. }
  3367. tty.input = intArrayFromString(result, true);
  3368. }
  3369. return tty.input.shift();
  3370. },put_char:function (tty, val) {
  3371. if (val === null || val === 10) {
  3372. Module['print'](UTF8ArrayToString(tty.output, 0));
  3373. tty.output = [];
  3374. } else {
  3375. if (val != 0) tty.output.push(val); // val == 0 would cut text output off in the middle.
  3376. }
  3377. },flush:function (tty) {
  3378. if (tty.output && tty.output.length > 0) {
  3379. Module['print'](UTF8ArrayToString(tty.output, 0));
  3380. tty.output = [];
  3381. }
  3382. }},default_tty1_ops:{put_char:function (tty, val) {
  3383. if (val === null || val === 10) {
  3384. Module['printErr'](UTF8ArrayToString(tty.output, 0));
  3385. tty.output = [];
  3386. } else {
  3387. if (val != 0) tty.output.push(val);
  3388. }
  3389. },flush:function (tty) {
  3390. if (tty.output && tty.output.length > 0) {
  3391. Module['printErr'](UTF8ArrayToString(tty.output, 0));
  3392. tty.output = [];
  3393. }
  3394. }}};
  3395. var MEMFS={ops_table:null,mount:function (mount) {
  3396. return MEMFS.createNode(null, '/', 16384 | 511 /* 0777 */, 0);
  3397. },createNode:function (parent, name, mode, dev) {
  3398. if (FS.isBlkdev(mode) || FS.isFIFO(mode)) {
  3399. // no supported
  3400. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  3401. }
  3402. if (!MEMFS.ops_table) {
  3403. MEMFS.ops_table = {
  3404. dir: {
  3405. node: {
  3406. getattr: MEMFS.node_ops.getattr,
  3407. setattr: MEMFS.node_ops.setattr,
  3408. lookup: MEMFS.node_ops.lookup,
  3409. mknod: MEMFS.node_ops.mknod,
  3410. rename: MEMFS.node_ops.rename,
  3411. unlink: MEMFS.node_ops.unlink,
  3412. rmdir: MEMFS.node_ops.rmdir,
  3413. readdir: MEMFS.node_ops.readdir,
  3414. symlink: MEMFS.node_ops.symlink
  3415. },
  3416. stream: {
  3417. llseek: MEMFS.stream_ops.llseek
  3418. }
  3419. },
  3420. file: {
  3421. node: {
  3422. getattr: MEMFS.node_ops.getattr,
  3423. setattr: MEMFS.node_ops.setattr
  3424. },
  3425. stream: {
  3426. llseek: MEMFS.stream_ops.llseek,
  3427. read: MEMFS.stream_ops.read,
  3428. write: MEMFS.stream_ops.write,
  3429. allocate: MEMFS.stream_ops.allocate,
  3430. mmap: MEMFS.stream_ops.mmap,
  3431. msync: MEMFS.stream_ops.msync
  3432. }
  3433. },
  3434. link: {
  3435. node: {
  3436. getattr: MEMFS.node_ops.getattr,
  3437. setattr: MEMFS.node_ops.setattr,
  3438. readlink: MEMFS.node_ops.readlink
  3439. },
  3440. stream: {}
  3441. },
  3442. chrdev: {
  3443. node: {
  3444. getattr: MEMFS.node_ops.getattr,
  3445. setattr: MEMFS.node_ops.setattr
  3446. },
  3447. stream: FS.chrdev_stream_ops
  3448. }
  3449. };
  3450. }
  3451. var node = FS.createNode(parent, name, mode, dev);
  3452. if (FS.isDir(node.mode)) {
  3453. node.node_ops = MEMFS.ops_table.dir.node;
  3454. node.stream_ops = MEMFS.ops_table.dir.stream;
  3455. node.contents = {};
  3456. } else if (FS.isFile(node.mode)) {
  3457. node.node_ops = MEMFS.ops_table.file.node;
  3458. node.stream_ops = MEMFS.ops_table.file.stream;
  3459. node.usedBytes = 0; // The actual number of bytes used in the typed array, as opposed to contents.length which gives the whole capacity.
  3460. // 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
  3461. // for performance, and used by default. However, typed arrays are not resizable like normal JS arrays are, so there is a small disk size
  3462. // penalty involved for appending file writes that continuously grow a file similar to std::vector capacity vs used -scheme.
  3463. node.contents = null;
  3464. } else if (FS.isLink(node.mode)) {
  3465. node.node_ops = MEMFS.ops_table.link.node;
  3466. node.stream_ops = MEMFS.ops_table.link.stream;
  3467. } else if (FS.isChrdev(node.mode)) {
  3468. node.node_ops = MEMFS.ops_table.chrdev.node;
  3469. node.stream_ops = MEMFS.ops_table.chrdev.stream;
  3470. }
  3471. node.timestamp = Date.now();
  3472. // add the new node to the parent
  3473. if (parent) {
  3474. parent.contents[name] = node;
  3475. }
  3476. return node;
  3477. },getFileDataAsRegularArray:function (node) {
  3478. if (node.contents && node.contents.subarray) {
  3479. var arr = [];
  3480. for (var i = 0; i < node.usedBytes; ++i) arr.push(node.contents[i]);
  3481. return arr; // Returns a copy of the original data.
  3482. }
  3483. return node.contents; // No-op, the file contents are already in a JS array. Return as-is.
  3484. },getFileDataAsTypedArray:function (node) {
  3485. if (!node.contents) return new Uint8Array;
  3486. if (node.contents.subarray) return node.contents.subarray(0, node.usedBytes); // Make sure to not return excess unused bytes.
  3487. return new Uint8Array(node.contents);
  3488. },expandFileStorage:function (node, newCapacity) {
  3489. // 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
  3490. // instead of a typed array. This makes resizing the array more flexible because we can just .push() elements at the back to
  3491. // increase the size.
  3492. if (node.contents && node.contents.subarray && newCapacity > node.contents.length) {
  3493. node.contents = MEMFS.getFileDataAsRegularArray(node);
  3494. node.usedBytes = node.contents.length; // We might be writing to a lazy-loaded file which had overridden this property, so force-reset it.
  3495. }
  3496. 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.
  3497. var prevCapacity = node.contents ? node.contents.length : 0;
  3498. if (prevCapacity >= newCapacity) return; // No need to expand, the storage was already large enough.
  3499. // Don't expand strictly to the given requested limit if it's only a very small increase, but instead geometrically grow capacity.
  3500. // For small filesizes (<1MB), perform size*2 geometric increase, but for large sizes, do a much more conservative size*1.125 increase to
  3501. // avoid overshooting the allocation cap by a very large margin.
  3502. var CAPACITY_DOUBLING_MAX = 1024 * 1024;
  3503. newCapacity = Math.max(newCapacity, (prevCapacity * (prevCapacity < CAPACITY_DOUBLING_MAX ? 2.0 : 1.125)) | 0);
  3504. if (prevCapacity != 0) newCapacity = Math.max(newCapacity, 256); // At minimum allocate 256b for each file when expanding.
  3505. var oldContents = node.contents;
  3506. node.contents = new Uint8Array(newCapacity); // Allocate new storage.
  3507. if (node.usedBytes > 0) node.contents.set(oldContents.subarray(0, node.usedBytes), 0); // Copy old data over to the new storage.
  3508. return;
  3509. }
  3510. // Not using a typed array to back the file storage. Use a standard JS array instead.
  3511. if (!node.contents && newCapacity > 0) node.contents = [];
  3512. while (node.contents.length < newCapacity) node.contents.push(0);
  3513. },resizeFileStorage:function (node, newSize) {
  3514. if (node.usedBytes == newSize) return;
  3515. if (newSize == 0) {
  3516. node.contents = null; // Fully decommit when requesting a resize to zero.
  3517. node.usedBytes = 0;
  3518. return;
  3519. }
  3520. if (!node.contents || node.contents.subarray) { // Resize a typed array if that is being used as the backing store.
  3521. var oldContents = node.contents;
  3522. node.contents = new Uint8Array(new ArrayBuffer(newSize)); // Allocate new storage.
  3523. if (oldContents) {
  3524. node.contents.set(oldContents.subarray(0, Math.min(newSize, node.usedBytes))); // Copy old data over to the new storage.
  3525. }
  3526. node.usedBytes = newSize;
  3527. return;
  3528. }
  3529. // Backing with a JS array.
  3530. if (!node.contents) node.contents = [];
  3531. if (node.contents.length > newSize) node.contents.length = newSize;
  3532. else while (node.contents.length < newSize) node.contents.push(0);
  3533. node.usedBytes = newSize;
  3534. },node_ops:{getattr:function (node) {
  3535. var attr = {};
  3536. // device numbers reuse inode numbers.
  3537. attr.dev = FS.isChrdev(node.mode) ? node.id : 1;
  3538. attr.ino = node.id;
  3539. attr.mode = node.mode;
  3540. attr.nlink = 1;
  3541. attr.uid = 0;
  3542. attr.gid = 0;
  3543. attr.rdev = node.rdev;
  3544. if (FS.isDir(node.mode)) {
  3545. attr.size = 4096;
  3546. } else if (FS.isFile(node.mode)) {
  3547. attr.size = node.usedBytes;
  3548. } else if (FS.isLink(node.mode)) {
  3549. attr.size = node.link.length;
  3550. } else {
  3551. attr.size = 0;
  3552. }
  3553. attr.atime = new Date(node.timestamp);
  3554. attr.mtime = new Date(node.timestamp);
  3555. attr.ctime = new Date(node.timestamp);
  3556. // NOTE: In our implementation, st_blocks = Math.ceil(st_size/st_blksize),
  3557. // but this is not required by the standard.
  3558. attr.blksize = 4096;
  3559. attr.blocks = Math.ceil(attr.size / attr.blksize);
  3560. return attr;
  3561. },setattr:function (node, attr) {
  3562. if (attr.mode !== undefined) {
  3563. node.mode = attr.mode;
  3564. }
  3565. if (attr.timestamp !== undefined) {
  3566. node.timestamp = attr.timestamp;
  3567. }
  3568. if (attr.size !== undefined) {
  3569. MEMFS.resizeFileStorage(node, attr.size);
  3570. }
  3571. },lookup:function (parent, name) {
  3572. throw FS.genericErrors[ERRNO_CODES.ENOENT];
  3573. },mknod:function (parent, name, mode, dev) {
  3574. return MEMFS.createNode(parent, name, mode, dev);
  3575. },rename:function (old_node, new_dir, new_name) {
  3576. // if we're overwriting a directory at new_name, make sure it's empty.
  3577. if (FS.isDir(old_node.mode)) {
  3578. var new_node;
  3579. try {
  3580. new_node = FS.lookupNode(new_dir, new_name);
  3581. } catch (e) {
  3582. }
  3583. if (new_node) {
  3584. for (var i in new_node.contents) {
  3585. throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY);
  3586. }
  3587. }
  3588. }
  3589. // do the internal rewiring
  3590. delete old_node.parent.contents[old_node.name];
  3591. old_node.name = new_name;
  3592. new_dir.contents[new_name] = old_node;
  3593. old_node.parent = new_dir;
  3594. },unlink:function (parent, name) {
  3595. delete parent.contents[name];
  3596. },rmdir:function (parent, name) {
  3597. var node = FS.lookupNode(parent, name);
  3598. for (var i in node.contents) {
  3599. throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY);
  3600. }
  3601. delete parent.contents[name];
  3602. },readdir:function (node) {
  3603. var entries = ['.', '..']
  3604. for (var key in node.contents) {
  3605. if (!node.contents.hasOwnProperty(key)) {
  3606. continue;
  3607. }
  3608. entries.push(key);
  3609. }
  3610. return entries;
  3611. },symlink:function (parent, newname, oldpath) {
  3612. var node = MEMFS.createNode(parent, newname, 511 /* 0777 */ | 40960, 0);
  3613. node.link = oldpath;
  3614. return node;
  3615. },readlink:function (node) {
  3616. if (!FS.isLink(node.mode)) {
  3617. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  3618. }
  3619. return node.link;
  3620. }},stream_ops:{read:function (stream, buffer, offset, length, position) {
  3621. var contents = stream.node.contents;
  3622. if (position >= stream.node.usedBytes) return 0;
  3623. var size = Math.min(stream.node.usedBytes - position, length);
  3624. assert(size >= 0);
  3625. if (size > 8 && contents.subarray) { // non-trivial, and typed array
  3626. buffer.set(contents.subarray(position, position + size), offset);
  3627. } else {
  3628. for (var i = 0; i < size; i++) buffer[offset + i] = contents[position + i];
  3629. }
  3630. return size;
  3631. },write:function (stream, buffer, offset, length, position, canOwn) {
  3632. if (!length) return 0;
  3633. var node = stream.node;
  3634. node.timestamp = Date.now();
  3635. if (buffer.subarray && (!node.contents || node.contents.subarray)) { // This write is from a typed array to a typed array?
  3636. if (canOwn) {
  3637. assert(position === 0, 'canOwn must imply no weird position inside the file');
  3638. node.contents = buffer.subarray(offset, offset + length);
  3639. node.usedBytes = length;
  3640. return length;
  3641. } 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.
  3642. node.contents = new Uint8Array(buffer.subarray(offset, offset + length));
  3643. node.usedBytes = length;
  3644. return length;
  3645. } else if (position + length <= node.usedBytes) { // Writing to an already allocated and used subrange of the file?
  3646. node.contents.set(buffer.subarray(offset, offset + length), position);
  3647. return length;
  3648. }
  3649. }
  3650. // Appending to an existing file and we need to reallocate, or source data did not come as a typed array.
  3651. MEMFS.expandFileStorage(node, position+length);
  3652. if (node.contents.subarray && buffer.subarray) node.contents.set(buffer.subarray(offset, offset + length), position); // Use typed array write if available.
  3653. else {
  3654. for (var i = 0; i < length; i++) {
  3655. node.contents[position + i] = buffer[offset + i]; // Or fall back to manual write if not.
  3656. }
  3657. }
  3658. node.usedBytes = Math.max(node.usedBytes, position+length);
  3659. return length;
  3660. },llseek:function (stream, offset, whence) {
  3661. var position = offset;
  3662. if (whence === 1) { // SEEK_CUR.
  3663. position += stream.position;
  3664. } else if (whence === 2) { // SEEK_END.
  3665. if (FS.isFile(stream.node.mode)) {
  3666. position += stream.node.usedBytes;
  3667. }
  3668. }
  3669. if (position < 0) {
  3670. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  3671. }
  3672. return position;
  3673. },allocate:function (stream, offset, length) {
  3674. MEMFS.expandFileStorage(stream.node, offset + length);
  3675. stream.node.usedBytes = Math.max(stream.node.usedBytes, offset + length);
  3676. },mmap:function (stream, buffer, offset, length, position, prot, flags) {
  3677. if (!FS.isFile(stream.node.mode)) {
  3678. throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
  3679. }
  3680. var ptr;
  3681. var allocated;
  3682. var contents = stream.node.contents;
  3683. // Only make a new copy when MAP_PRIVATE is specified.
  3684. if ( !(flags & 2) &&
  3685. (contents.buffer === buffer || contents.buffer === buffer.buffer) ) {
  3686. // We can't emulate MAP_SHARED when the file is not backed by the buffer
  3687. // we're mapping to (e.g. the HEAP buffer).
  3688. allocated = false;
  3689. ptr = contents.byteOffset;
  3690. } else {
  3691. // Try to avoid unnecessary slices.
  3692. if (position > 0 || position + length < stream.node.usedBytes) {
  3693. if (contents.subarray) {
  3694. contents = contents.subarray(position, position + length);
  3695. } else {
  3696. contents = Array.prototype.slice.call(contents, position, position + length);
  3697. }
  3698. }
  3699. allocated = true;
  3700. ptr = _malloc(length);
  3701. if (!ptr) {
  3702. throw new FS.ErrnoError(ERRNO_CODES.ENOMEM);
  3703. }
  3704. buffer.set(contents, ptr);
  3705. }
  3706. return { ptr: ptr, allocated: allocated };
  3707. },msync:function (stream, buffer, offset, length, mmapFlags) {
  3708. if (!FS.isFile(stream.node.mode)) {
  3709. throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
  3710. }
  3711. if (mmapFlags & 2) {
  3712. // MAP_PRIVATE calls need not to be synced back to underlying fs
  3713. return 0;
  3714. }
  3715. var bytesWritten = MEMFS.stream_ops.write(stream, buffer, 0, length, offset, false);
  3716. // should we check if bytesWritten and length are the same?
  3717. return 0;
  3718. }}};
  3719. var IDBFS={dbs:{},indexedDB:function () {
  3720. if (typeof indexedDB !== 'undefined') return indexedDB;
  3721. var ret = null;
  3722. if (typeof window === 'object') ret = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB;
  3723. assert(ret, 'IDBFS used, but indexedDB not supported');
  3724. return ret;
  3725. },DB_VERSION:21,DB_STORE_NAME:"FILE_DATA",mount:function (mount) {
  3726. // reuse all of the core MEMFS functionality
  3727. return MEMFS.mount.apply(null, arguments);
  3728. },syncfs:function (mount, populate, callback) {
  3729. IDBFS.getLocalSet(mount, function(err, local) {
  3730. if (err) return callback(err);
  3731. IDBFS.getRemoteSet(mount, function(err, remote) {
  3732. if (err) return callback(err);
  3733. var src = populate ? remote : local;
  3734. var dst = populate ? local : remote;
  3735. IDBFS.reconcile(src, dst, callback);
  3736. });
  3737. });
  3738. },getDB:function (name, callback) {
  3739. // check the cache first
  3740. var db = IDBFS.dbs[name];
  3741. if (db) {
  3742. return callback(null, db);
  3743. }
  3744. var req;
  3745. try {
  3746. req = IDBFS.indexedDB().open(name, IDBFS.DB_VERSION);
  3747. } catch (e) {
  3748. return callback(e);
  3749. }
  3750. if (!req) {
  3751. return callback("Unable to connect to IndexedDB");
  3752. }
  3753. req.onupgradeneeded = function(e) {
  3754. var db = e.target.result;
  3755. var transaction = e.target.transaction;
  3756. var fileStore;
  3757. if (db.objectStoreNames.contains(IDBFS.DB_STORE_NAME)) {
  3758. fileStore = transaction.objectStore(IDBFS.DB_STORE_NAME);
  3759. } else {
  3760. fileStore = db.createObjectStore(IDBFS.DB_STORE_NAME);
  3761. }
  3762. if (!fileStore.indexNames.contains('timestamp')) {
  3763. fileStore.createIndex('timestamp', 'timestamp', { unique: false });
  3764. }
  3765. };
  3766. req.onsuccess = function() {
  3767. db = req.result;
  3768. // add to the cache
  3769. IDBFS.dbs[name] = db;
  3770. callback(null, db);
  3771. };
  3772. req.onerror = function(e) {
  3773. callback(this.error);
  3774. e.preventDefault();
  3775. };
  3776. },getLocalSet:function (mount, callback) {
  3777. var entries = {};
  3778. function isRealDir(p) {
  3779. return p !== '.' && p !== '..';
  3780. };
  3781. function toAbsolute(root) {
  3782. return function(p) {
  3783. return PATH.join2(root, p);
  3784. }
  3785. };
  3786. var check = FS.readdir(mount.mountpoint).filter(isRealDir).map(toAbsolute(mount.mountpoint));
  3787. while (check.length) {
  3788. var path = check.pop();
  3789. var stat;
  3790. try {
  3791. stat = FS.stat(path);
  3792. } catch (e) {
  3793. return callback(e);
  3794. }
  3795. if (FS.isDir(stat.mode)) {
  3796. check.push.apply(check, FS.readdir(path).filter(isRealDir).map(toAbsolute(path)));
  3797. }
  3798. entries[path] = { timestamp: stat.mtime };
  3799. }
  3800. return callback(null, { type: 'local', entries: entries });
  3801. },getRemoteSet:function (mount, callback) {
  3802. var entries = {};
  3803. IDBFS.getDB(mount.mountpoint, function(err, db) {
  3804. if (err) return callback(err);
  3805. var transaction = db.transaction([IDBFS.DB_STORE_NAME], 'readonly');
  3806. transaction.onerror = function(e) {
  3807. callback(this.error);
  3808. e.preventDefault();
  3809. };
  3810. var store = transaction.objectStore(IDBFS.DB_STORE_NAME);
  3811. var index = store.index('timestamp');
  3812. index.openKeyCursor().onsuccess = function(event) {
  3813. var cursor = event.target.result;
  3814. if (!cursor) {
  3815. return callback(null, { type: 'remote', db: db, entries: entries });
  3816. }
  3817. entries[cursor.primaryKey] = { timestamp: cursor.key };
  3818. cursor.continue();
  3819. };
  3820. });
  3821. },loadLocalEntry:function (path, callback) {
  3822. var stat, node;
  3823. try {
  3824. var lookup = FS.lookupPath(path);
  3825. node = lookup.node;
  3826. stat = FS.stat(path);
  3827. } catch (e) {
  3828. return callback(e);
  3829. }
  3830. if (FS.isDir(stat.mode)) {
  3831. return callback(null, { timestamp: stat.mtime, mode: stat.mode });
  3832. } else if (FS.isFile(stat.mode)) {
  3833. // Performance consideration: storing a normal JavaScript array to a IndexedDB is much slower than storing a typed array.
  3834. // Therefore always convert the file contents to a typed array first before writing the data to IndexedDB.
  3835. node.contents = MEMFS.getFileDataAsTypedArray(node);
  3836. return callback(null, { timestamp: stat.mtime, mode: stat.mode, contents: node.contents });
  3837. } else {
  3838. return callback(new Error('node type not supported'));
  3839. }
  3840. },storeLocalEntry:function (path, entry, callback) {
  3841. try {
  3842. if (FS.isDir(entry.mode)) {
  3843. FS.mkdir(path, entry.mode);
  3844. } else if (FS.isFile(entry.mode)) {
  3845. FS.writeFile(path, entry.contents, { encoding: 'binary', canOwn: true });
  3846. } else {
  3847. return callback(new Error('node type not supported'));
  3848. }
  3849. FS.chmod(path, entry.mode);
  3850. FS.utime(path, entry.timestamp, entry.timestamp);
  3851. } catch (e) {
  3852. return callback(e);
  3853. }
  3854. callback(null);
  3855. },removeLocalEntry:function (path, callback) {
  3856. try {
  3857. var lookup = FS.lookupPath(path);
  3858. var stat = FS.stat(path);
  3859. if (FS.isDir(stat.mode)) {
  3860. FS.rmdir(path);
  3861. } else if (FS.isFile(stat.mode)) {
  3862. FS.unlink(path);
  3863. }
  3864. } catch (e) {
  3865. return callback(e);
  3866. }
  3867. callback(null);
  3868. },loadRemoteEntry:function (store, path, callback) {
  3869. var req = store.get(path);
  3870. req.onsuccess = function(event) { callback(null, event.target.result); };
  3871. req.onerror = function(e) {
  3872. callback(this.error);
  3873. e.preventDefault();
  3874. };
  3875. },storeRemoteEntry:function (store, path, entry, callback) {
  3876. var req = store.put(entry, path);
  3877. req.onsuccess = function() { callback(null); };
  3878. req.onerror = function(e) {
  3879. callback(this.error);
  3880. e.preventDefault();
  3881. };
  3882. },removeRemoteEntry:function (store, path, callback) {
  3883. var req = store.delete(path);
  3884. req.onsuccess = function() { callback(null); };
  3885. req.onerror = function(e) {
  3886. callback(this.error);
  3887. e.preventDefault();
  3888. };
  3889. },reconcile:function (src, dst, callback) {
  3890. var total = 0;
  3891. var create = [];
  3892. Object.keys(src.entries).forEach(function (key) {
  3893. var e = src.entries[key];
  3894. var e2 = dst.entries[key];
  3895. if (!e2 || e.timestamp > e2.timestamp) {
  3896. create.push(key);
  3897. total++;
  3898. }
  3899. });
  3900. var remove = [];
  3901. Object.keys(dst.entries).forEach(function (key) {
  3902. var e = dst.entries[key];
  3903. var e2 = src.entries[key];
  3904. if (!e2) {
  3905. remove.push(key);
  3906. total++;
  3907. }
  3908. });
  3909. if (!total) {
  3910. return callback(null);
  3911. }
  3912. var errored = false;
  3913. var completed = 0;
  3914. var db = src.type === 'remote' ? src.db : dst.db;
  3915. var transaction = db.transaction([IDBFS.DB_STORE_NAME], 'readwrite');
  3916. var store = transaction.objectStore(IDBFS.DB_STORE_NAME);
  3917. function done(err) {
  3918. if (err) {
  3919. if (!done.errored) {
  3920. done.errored = true;
  3921. return callback(err);
  3922. }
  3923. return;
  3924. }
  3925. if (++completed >= total) {
  3926. return callback(null);
  3927. }
  3928. };
  3929. transaction.onerror = function(e) {
  3930. done(this.error);
  3931. e.preventDefault();
  3932. };
  3933. // sort paths in ascending order so directory entries are created
  3934. // before the files inside them
  3935. create.sort().forEach(function (path) {
  3936. if (dst.type === 'local') {
  3937. IDBFS.loadRemoteEntry(store, path, function (err, entry) {
  3938. if (err) return done(err);
  3939. IDBFS.storeLocalEntry(path, entry, done);
  3940. });
  3941. } else {
  3942. IDBFS.loadLocalEntry(path, function (err, entry) {
  3943. if (err) return done(err);
  3944. IDBFS.storeRemoteEntry(store, path, entry, done);
  3945. });
  3946. }
  3947. });
  3948. // sort paths in descending order so files are deleted before their
  3949. // parent directories
  3950. remove.sort().reverse().forEach(function(path) {
  3951. if (dst.type === 'local') {
  3952. IDBFS.removeLocalEntry(path, done);
  3953. } else {
  3954. IDBFS.removeRemoteEntry(store, path, done);
  3955. }
  3956. });
  3957. }};
  3958. var NODEFS={isWindows:false,staticInit:function () {
  3959. NODEFS.isWindows = !!process.platform.match(/^win/);
  3960. },mount:function (mount) {
  3961. assert(ENVIRONMENT_IS_NODE);
  3962. return NODEFS.createNode(null, '/', NODEFS.getMode(mount.opts.root), 0);
  3963. },createNode:function (parent, name, mode, dev) {
  3964. if (!FS.isDir(mode) && !FS.isFile(mode) && !FS.isLink(mode)) {
  3965. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  3966. }
  3967. var node = FS.createNode(parent, name, mode);
  3968. node.node_ops = NODEFS.node_ops;
  3969. node.stream_ops = NODEFS.stream_ops;
  3970. return node;
  3971. },getMode:function (path) {
  3972. var stat;
  3973. try {
  3974. stat = fs.lstatSync(path);
  3975. if (NODEFS.isWindows) {
  3976. // On Windows, directories return permission bits 'rw-rw-rw-', even though they have 'rwxrwxrwx', so
  3977. // propagate write bits to execute bits.
  3978. stat.mode = stat.mode | ((stat.mode & 146) >> 1);
  3979. }
  3980. } catch (e) {
  3981. if (!e.code) throw e;
  3982. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  3983. }
  3984. return stat.mode;
  3985. },realPath:function (node) {
  3986. var parts = [];
  3987. while (node.parent !== node) {
  3988. parts.push(node.name);
  3989. node = node.parent;
  3990. }
  3991. parts.push(node.mount.opts.root);
  3992. parts.reverse();
  3993. return PATH.join.apply(null, parts);
  3994. },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) {
  3995. flags &= ~0x200000 /*O_PATH*/; // Ignore this flag from musl, otherwise node.js fails to open the file.
  3996. flags &= ~0x800 /*O_NONBLOCK*/; // Ignore this flag from musl, otherwise node.js fails to open the file.
  3997. flags &= ~0x8000 /*O_LARGEFILE*/; // Ignore this flag from musl, otherwise node.js fails to open the file.
  3998. flags &= ~0x80000 /*O_CLOEXEC*/; // Some applications may pass it; it makes no sense for a single process.
  3999. if (flags in NODEFS.flagsToPermissionStringMap) {
  4000. return NODEFS.flagsToPermissionStringMap[flags];
  4001. } else {
  4002. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4003. }
  4004. },node_ops:{getattr:function (node) {
  4005. var path = NODEFS.realPath(node);
  4006. var stat;
  4007. try {
  4008. stat = fs.lstatSync(path);
  4009. } catch (e) {
  4010. if (!e.code) throw e;
  4011. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4012. }
  4013. // node.js v0.10.20 doesn't report blksize and blocks on Windows. Fake them with default blksize of 4096.
  4014. // See http://support.microsoft.com/kb/140365
  4015. if (NODEFS.isWindows && !stat.blksize) {
  4016. stat.blksize = 4096;
  4017. }
  4018. if (NODEFS.isWindows && !stat.blocks) {
  4019. stat.blocks = (stat.size+stat.blksize-1)/stat.blksize|0;
  4020. }
  4021. return {
  4022. dev: stat.dev,
  4023. ino: stat.ino,
  4024. mode: stat.mode,
  4025. nlink: stat.nlink,
  4026. uid: stat.uid,
  4027. gid: stat.gid,
  4028. rdev: stat.rdev,
  4029. size: stat.size,
  4030. atime: stat.atime,
  4031. mtime: stat.mtime,
  4032. ctime: stat.ctime,
  4033. blksize: stat.blksize,
  4034. blocks: stat.blocks
  4035. };
  4036. },setattr:function (node, attr) {
  4037. var path = NODEFS.realPath(node);
  4038. try {
  4039. if (attr.mode !== undefined) {
  4040. fs.chmodSync(path, attr.mode);
  4041. // update the common node structure mode as well
  4042. node.mode = attr.mode;
  4043. }
  4044. if (attr.timestamp !== undefined) {
  4045. var date = new Date(attr.timestamp);
  4046. fs.utimesSync(path, date, date);
  4047. }
  4048. if (attr.size !== undefined) {
  4049. fs.truncateSync(path, attr.size);
  4050. }
  4051. } catch (e) {
  4052. if (!e.code) throw e;
  4053. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4054. }
  4055. },lookup:function (parent, name) {
  4056. var path = PATH.join2(NODEFS.realPath(parent), name);
  4057. var mode = NODEFS.getMode(path);
  4058. return NODEFS.createNode(parent, name, mode);
  4059. },mknod:function (parent, name, mode, dev) {
  4060. var node = NODEFS.createNode(parent, name, mode, dev);
  4061. // create the backing node for this in the fs root as well
  4062. var path = NODEFS.realPath(node);
  4063. try {
  4064. if (FS.isDir(node.mode)) {
  4065. fs.mkdirSync(path, node.mode);
  4066. } else {
  4067. fs.writeFileSync(path, '', { mode: node.mode });
  4068. }
  4069. } catch (e) {
  4070. if (!e.code) throw e;
  4071. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4072. }
  4073. return node;
  4074. },rename:function (oldNode, newDir, newName) {
  4075. var oldPath = NODEFS.realPath(oldNode);
  4076. var newPath = PATH.join2(NODEFS.realPath(newDir), newName);
  4077. try {
  4078. fs.renameSync(oldPath, newPath);
  4079. } catch (e) {
  4080. if (!e.code) throw e;
  4081. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4082. }
  4083. },unlink:function (parent, name) {
  4084. var path = PATH.join2(NODEFS.realPath(parent), name);
  4085. try {
  4086. fs.unlinkSync(path);
  4087. } catch (e) {
  4088. if (!e.code) throw e;
  4089. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4090. }
  4091. },rmdir:function (parent, name) {
  4092. var path = PATH.join2(NODEFS.realPath(parent), name);
  4093. try {
  4094. fs.rmdirSync(path);
  4095. } catch (e) {
  4096. if (!e.code) throw e;
  4097. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4098. }
  4099. },readdir:function (node) {
  4100. var path = NODEFS.realPath(node);
  4101. try {
  4102. return fs.readdirSync(path);
  4103. } catch (e) {
  4104. if (!e.code) throw e;
  4105. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4106. }
  4107. },symlink:function (parent, newName, oldPath) {
  4108. var newPath = PATH.join2(NODEFS.realPath(parent), newName);
  4109. try {
  4110. fs.symlinkSync(oldPath, newPath);
  4111. } catch (e) {
  4112. if (!e.code) throw e;
  4113. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4114. }
  4115. },readlink:function (node) {
  4116. var path = NODEFS.realPath(node);
  4117. try {
  4118. path = fs.readlinkSync(path);
  4119. path = NODEJS_PATH.relative(NODEJS_PATH.resolve(node.mount.opts.root), path);
  4120. return path;
  4121. } catch (e) {
  4122. if (!e.code) throw e;
  4123. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4124. }
  4125. }},stream_ops:{open:function (stream) {
  4126. var path = NODEFS.realPath(stream.node);
  4127. try {
  4128. if (FS.isFile(stream.node.mode)) {
  4129. stream.nfd = fs.openSync(path, NODEFS.flagsToPermissionString(stream.flags));
  4130. }
  4131. } catch (e) {
  4132. if (!e.code) throw e;
  4133. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4134. }
  4135. },close:function (stream) {
  4136. try {
  4137. if (FS.isFile(stream.node.mode) && stream.nfd) {
  4138. fs.closeSync(stream.nfd);
  4139. }
  4140. } catch (e) {
  4141. if (!e.code) throw e;
  4142. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4143. }
  4144. },read:function (stream, buffer, offset, length, position) {
  4145. if (length === 0) return 0; // node errors on 0 length reads
  4146. // FIXME this is terrible.
  4147. var nbuffer = new Buffer(length);
  4148. var res;
  4149. try {
  4150. res = fs.readSync(stream.nfd, nbuffer, 0, length, position);
  4151. } catch (e) {
  4152. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4153. }
  4154. if (res > 0) {
  4155. for (var i = 0; i < res; i++) {
  4156. buffer[offset + i] = nbuffer[i];
  4157. }
  4158. }
  4159. return res;
  4160. },write:function (stream, buffer, offset, length, position) {
  4161. // FIXME this is terrible.
  4162. var nbuffer = new Buffer(buffer.subarray(offset, offset + length));
  4163. var res;
  4164. try {
  4165. res = fs.writeSync(stream.nfd, nbuffer, 0, length, position);
  4166. } catch (e) {
  4167. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4168. }
  4169. return res;
  4170. },llseek:function (stream, offset, whence) {
  4171. var position = offset;
  4172. if (whence === 1) { // SEEK_CUR.
  4173. position += stream.position;
  4174. } else if (whence === 2) { // SEEK_END.
  4175. if (FS.isFile(stream.node.mode)) {
  4176. try {
  4177. var stat = fs.fstatSync(stream.nfd);
  4178. position += stat.size;
  4179. } catch (e) {
  4180. throw new FS.ErrnoError(ERRNO_CODES[e.code]);
  4181. }
  4182. }
  4183. }
  4184. if (position < 0) {
  4185. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4186. }
  4187. return position;
  4188. }}};
  4189. var WORKERFS={DIR_MODE:16895,FILE_MODE:33279,reader:null,mount:function (mount) {
  4190. assert(ENVIRONMENT_IS_WORKER);
  4191. if (!WORKERFS.reader) WORKERFS.reader = new FileReaderSync();
  4192. var root = WORKERFS.createNode(null, '/', WORKERFS.DIR_MODE, 0);
  4193. var createdParents = {};
  4194. function ensureParent(path) {
  4195. // return the parent node, creating subdirs as necessary
  4196. var parts = path.split('/');
  4197. var parent = root;
  4198. for (var i = 0; i < parts.length-1; i++) {
  4199. var curr = parts.slice(0, i+1).join('/');
  4200. // Issue 4254: Using curr as a node name will prevent the node
  4201. // from being found in FS.nameTable when FS.open is called on
  4202. // a path which holds a child of this node,
  4203. // given that all FS functions assume node names
  4204. // are just their corresponding parts within their given path,
  4205. // rather than incremental aggregates which include their parent's
  4206. // directories.
  4207. if (!createdParents[curr]) {
  4208. createdParents[curr] = WORKERFS.createNode(parent, parts[i], WORKERFS.DIR_MODE, 0);
  4209. }
  4210. parent = createdParents[curr];
  4211. }
  4212. return parent;
  4213. }
  4214. function base(path) {
  4215. var parts = path.split('/');
  4216. return parts[parts.length-1];
  4217. }
  4218. // We also accept FileList here, by using Array.prototype
  4219. Array.prototype.forEach.call(mount.opts["files"] || [], function(file) {
  4220. WORKERFS.createNode(ensureParent(file.name), base(file.name), WORKERFS.FILE_MODE, 0, file, file.lastModifiedDate);
  4221. });
  4222. (mount.opts["blobs"] || []).forEach(function(obj) {
  4223. WORKERFS.createNode(ensureParent(obj["name"]), base(obj["name"]), WORKERFS.FILE_MODE, 0, obj["data"]);
  4224. });
  4225. (mount.opts["packages"] || []).forEach(function(pack) {
  4226. pack['metadata'].files.forEach(function(file) {
  4227. var name = file.filename.substr(1); // remove initial slash
  4228. WORKERFS.createNode(ensureParent(name), base(name), WORKERFS.FILE_MODE, 0, pack['blob'].slice(file.start, file.end));
  4229. });
  4230. });
  4231. return root;
  4232. },createNode:function (parent, name, mode, dev, contents, mtime) {
  4233. var node = FS.createNode(parent, name, mode);
  4234. node.mode = mode;
  4235. node.node_ops = WORKERFS.node_ops;
  4236. node.stream_ops = WORKERFS.stream_ops;
  4237. node.timestamp = (mtime || new Date).getTime();
  4238. assert(WORKERFS.FILE_MODE !== WORKERFS.DIR_MODE);
  4239. if (mode === WORKERFS.FILE_MODE) {
  4240. node.size = contents.size;
  4241. node.contents = contents;
  4242. } else {
  4243. node.size = 4096;
  4244. node.contents = {};
  4245. }
  4246. if (parent) {
  4247. parent.contents[name] = node;
  4248. }
  4249. return node;
  4250. },node_ops:{getattr:function (node) {
  4251. return {
  4252. dev: 1,
  4253. ino: undefined,
  4254. mode: node.mode,
  4255. nlink: 1,
  4256. uid: 0,
  4257. gid: 0,
  4258. rdev: undefined,
  4259. size: node.size,
  4260. atime: new Date(node.timestamp),
  4261. mtime: new Date(node.timestamp),
  4262. ctime: new Date(node.timestamp),
  4263. blksize: 4096,
  4264. blocks: Math.ceil(node.size / 4096),
  4265. };
  4266. },setattr:function (node, attr) {
  4267. if (attr.mode !== undefined) {
  4268. node.mode = attr.mode;
  4269. }
  4270. if (attr.timestamp !== undefined) {
  4271. node.timestamp = attr.timestamp;
  4272. }
  4273. },lookup:function (parent, name) {
  4274. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4275. },mknod:function (parent, name, mode, dev) {
  4276. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4277. },rename:function (oldNode, newDir, newName) {
  4278. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4279. },unlink:function (parent, name) {
  4280. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4281. },rmdir:function (parent, name) {
  4282. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4283. },readdir:function (node) {
  4284. var entries = ['.', '..'];
  4285. for (var key in node.contents) {
  4286. if (!node.contents.hasOwnProperty(key)) {
  4287. continue;
  4288. }
  4289. entries.push(key);
  4290. }
  4291. return entries;
  4292. },symlink:function (parent, newName, oldPath) {
  4293. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4294. },readlink:function (node) {
  4295. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4296. }},stream_ops:{read:function (stream, buffer, offset, length, position) {
  4297. if (position >= stream.node.size) return 0;
  4298. var chunk = stream.node.contents.slice(position, position + length);
  4299. var ab = WORKERFS.reader.readAsArrayBuffer(chunk);
  4300. buffer.set(new Uint8Array(ab), offset);
  4301. return chunk.size;
  4302. },write:function (stream, buffer, offset, length, position) {
  4303. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  4304. },llseek:function (stream, offset, whence) {
  4305. var position = offset;
  4306. if (whence === 1) { // SEEK_CUR.
  4307. position += stream.position;
  4308. } else if (whence === 2) { // SEEK_END.
  4309. if (FS.isFile(stream.node.mode)) {
  4310. position += stream.node.size;
  4311. }
  4312. }
  4313. if (position < 0) {
  4314. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4315. }
  4316. return position;
  4317. }}};
  4318. var _stdin=STATICTOP; STATICTOP += 16;;
  4319. var _stdout=STATICTOP; STATICTOP += 16;;
  4320. 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) {
  4321. if (!(e instanceof FS.ErrnoError)) throw e + ' : ' + stackTrace();
  4322. return ___setErrNo(e.errno);
  4323. },lookupPath:function (path, opts) {
  4324. path = PATH.resolve(FS.cwd(), path);
  4325. opts = opts || {};
  4326. if (!path) return { path: '', node: null };
  4327. var defaults = {
  4328. follow_mount: true,
  4329. recurse_count: 0
  4330. };
  4331. for (var key in defaults) {
  4332. if (opts[key] === undefined) {
  4333. opts[key] = defaults[key];
  4334. }
  4335. }
  4336. if (opts.recurse_count > 8) { // max recursive lookup of 8
  4337. throw new FS.ErrnoError(ERRNO_CODES.ELOOP);
  4338. }
  4339. // split the path
  4340. var parts = PATH.normalizeArray(path.split('/').filter(function(p) {
  4341. return !!p;
  4342. }), false);
  4343. // start at the root
  4344. var current = FS.root;
  4345. var current_path = '/';
  4346. for (var i = 0; i < parts.length; i++) {
  4347. var islast = (i === parts.length-1);
  4348. if (islast && opts.parent) {
  4349. // stop resolving
  4350. break;
  4351. }
  4352. current = FS.lookupNode(current, parts[i]);
  4353. current_path = PATH.join2(current_path, parts[i]);
  4354. // jump to the mount's root node if this is a mountpoint
  4355. if (FS.isMountpoint(current)) {
  4356. if (!islast || (islast && opts.follow_mount)) {
  4357. current = current.mounted.root;
  4358. }
  4359. }
  4360. // by default, lookupPath will not follow a symlink if it is the final path component.
  4361. // setting opts.follow = true will override this behavior.
  4362. if (!islast || opts.follow) {
  4363. var count = 0;
  4364. while (FS.isLink(current.mode)) {
  4365. var link = FS.readlink(current_path);
  4366. current_path = PATH.resolve(PATH.dirname(current_path), link);
  4367. var lookup = FS.lookupPath(current_path, { recurse_count: opts.recurse_count });
  4368. current = lookup.node;
  4369. if (count++ > 40) { // limit max consecutive symlinks to 40 (SYMLOOP_MAX).
  4370. throw new FS.ErrnoError(ERRNO_CODES.ELOOP);
  4371. }
  4372. }
  4373. }
  4374. }
  4375. return { path: current_path, node: current };
  4376. },getPath:function (node) {
  4377. var path;
  4378. while (true) {
  4379. if (FS.isRoot(node)) {
  4380. var mount = node.mount.mountpoint;
  4381. if (!path) return mount;
  4382. return mount[mount.length-1] !== '/' ? mount + '/' + path : mount + path;
  4383. }
  4384. path = path ? node.name + '/' + path : node.name;
  4385. node = node.parent;
  4386. }
  4387. },hashName:function (parentid, name) {
  4388. var hash = 0;
  4389. for (var i = 0; i < name.length; i++) {
  4390. hash = ((hash << 5) - hash + name.charCodeAt(i)) | 0;
  4391. }
  4392. return ((parentid + hash) >>> 0) % FS.nameTable.length;
  4393. },hashAddNode:function (node) {
  4394. var hash = FS.hashName(node.parent.id, node.name);
  4395. node.name_next = FS.nameTable[hash];
  4396. FS.nameTable[hash] = node;
  4397. },hashRemoveNode:function (node) {
  4398. var hash = FS.hashName(node.parent.id, node.name);
  4399. if (FS.nameTable[hash] === node) {
  4400. FS.nameTable[hash] = node.name_next;
  4401. } else {
  4402. var current = FS.nameTable[hash];
  4403. while (current) {
  4404. if (current.name_next === node) {
  4405. current.name_next = node.name_next;
  4406. break;
  4407. }
  4408. current = current.name_next;
  4409. }
  4410. }
  4411. },lookupNode:function (parent, name) {
  4412. var err = FS.mayLookup(parent);
  4413. if (err) {
  4414. throw new FS.ErrnoError(err, parent);
  4415. }
  4416. var hash = FS.hashName(parent.id, name);
  4417. for (var node = FS.nameTable[hash]; node; node = node.name_next) {
  4418. var nodeName = node.name;
  4419. if (node.parent.id === parent.id && nodeName === name) {
  4420. return node;
  4421. }
  4422. }
  4423. // if we failed to find it in the cache, call into the VFS
  4424. return FS.lookup(parent, name);
  4425. },createNode:function (parent, name, mode, rdev) {
  4426. if (!FS.FSNode) {
  4427. FS.FSNode = function(parent, name, mode, rdev) {
  4428. if (!parent) {
  4429. parent = this; // root node sets parent to itself
  4430. }
  4431. this.parent = parent;
  4432. this.mount = parent.mount;
  4433. this.mounted = null;
  4434. this.id = FS.nextInode++;
  4435. this.name = name;
  4436. this.mode = mode;
  4437. this.node_ops = {};
  4438. this.stream_ops = {};
  4439. this.rdev = rdev;
  4440. };
  4441. FS.FSNode.prototype = {};
  4442. // compatibility
  4443. var readMode = 292 | 73;
  4444. var writeMode = 146;
  4445. // NOTE we must use Object.defineProperties instead of individual calls to
  4446. // Object.defineProperty in order to make closure compiler happy
  4447. Object.defineProperties(FS.FSNode.prototype, {
  4448. read: {
  4449. get: function() { return (this.mode & readMode) === readMode; },
  4450. set: function(val) { val ? this.mode |= readMode : this.mode &= ~readMode; }
  4451. },
  4452. write: {
  4453. get: function() { return (this.mode & writeMode) === writeMode; },
  4454. set: function(val) { val ? this.mode |= writeMode : this.mode &= ~writeMode; }
  4455. },
  4456. isFolder: {
  4457. get: function() { return FS.isDir(this.mode); }
  4458. },
  4459. isDevice: {
  4460. get: function() { return FS.isChrdev(this.mode); }
  4461. }
  4462. });
  4463. }
  4464. var node = new FS.FSNode(parent, name, mode, rdev);
  4465. FS.hashAddNode(node);
  4466. return node;
  4467. },destroyNode:function (node) {
  4468. FS.hashRemoveNode(node);
  4469. },isRoot:function (node) {
  4470. return node === node.parent;
  4471. },isMountpoint:function (node) {
  4472. return !!node.mounted;
  4473. },isFile:function (mode) {
  4474. return (mode & 61440) === 32768;
  4475. },isDir:function (mode) {
  4476. return (mode & 61440) === 16384;
  4477. },isLink:function (mode) {
  4478. return (mode & 61440) === 40960;
  4479. },isChrdev:function (mode) {
  4480. return (mode & 61440) === 8192;
  4481. },isBlkdev:function (mode) {
  4482. return (mode & 61440) === 24576;
  4483. },isFIFO:function (mode) {
  4484. return (mode & 61440) === 4096;
  4485. },isSocket:function (mode) {
  4486. return (mode & 49152) === 49152;
  4487. },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) {
  4488. var flags = FS.flagModes[str];
  4489. if (typeof flags === 'undefined') {
  4490. throw new Error('Unknown file open mode: ' + str);
  4491. }
  4492. return flags;
  4493. },flagsToPermissionString:function (flag) {
  4494. var perms = ['r', 'w', 'rw'][flag & 3];
  4495. if ((flag & 512)) {
  4496. perms += 'w';
  4497. }
  4498. return perms;
  4499. },nodePermissions:function (node, perms) {
  4500. if (FS.ignorePermissions) {
  4501. return 0;
  4502. }
  4503. // return 0 if any user, group or owner bits are set.
  4504. if (perms.indexOf('r') !== -1 && !(node.mode & 292)) {
  4505. return ERRNO_CODES.EACCES;
  4506. } else if (perms.indexOf('w') !== -1 && !(node.mode & 146)) {
  4507. return ERRNO_CODES.EACCES;
  4508. } else if (perms.indexOf('x') !== -1 && !(node.mode & 73)) {
  4509. return ERRNO_CODES.EACCES;
  4510. }
  4511. return 0;
  4512. },mayLookup:function (dir) {
  4513. var err = FS.nodePermissions(dir, 'x');
  4514. if (err) return err;
  4515. if (!dir.node_ops.lookup) return ERRNO_CODES.EACCES;
  4516. return 0;
  4517. },mayCreate:function (dir, name) {
  4518. try {
  4519. var node = FS.lookupNode(dir, name);
  4520. return ERRNO_CODES.EEXIST;
  4521. } catch (e) {
  4522. }
  4523. return FS.nodePermissions(dir, 'wx');
  4524. },mayDelete:function (dir, name, isdir) {
  4525. var node;
  4526. try {
  4527. node = FS.lookupNode(dir, name);
  4528. } catch (e) {
  4529. return e.errno;
  4530. }
  4531. var err = FS.nodePermissions(dir, 'wx');
  4532. if (err) {
  4533. return err;
  4534. }
  4535. if (isdir) {
  4536. if (!FS.isDir(node.mode)) {
  4537. return ERRNO_CODES.ENOTDIR;
  4538. }
  4539. if (FS.isRoot(node) || FS.getPath(node) === FS.cwd()) {
  4540. return ERRNO_CODES.EBUSY;
  4541. }
  4542. } else {
  4543. if (FS.isDir(node.mode)) {
  4544. return ERRNO_CODES.EISDIR;
  4545. }
  4546. }
  4547. return 0;
  4548. },mayOpen:function (node, flags) {
  4549. if (!node) {
  4550. return ERRNO_CODES.ENOENT;
  4551. }
  4552. if (FS.isLink(node.mode)) {
  4553. return ERRNO_CODES.ELOOP;
  4554. } else if (FS.isDir(node.mode)) {
  4555. if (FS.flagsToPermissionString(flags) !== 'r' || // opening for write
  4556. (flags & 512)) { // TODO: check for O_SEARCH? (== search for dir only)
  4557. return ERRNO_CODES.EISDIR;
  4558. }
  4559. }
  4560. return FS.nodePermissions(node, FS.flagsToPermissionString(flags));
  4561. },MAX_OPEN_FDS:4096,nextfd:function (fd_start, fd_end) {
  4562. fd_start = fd_start || 0;
  4563. fd_end = fd_end || FS.MAX_OPEN_FDS;
  4564. for (var fd = fd_start; fd <= fd_end; fd++) {
  4565. if (!FS.streams[fd]) {
  4566. return fd;
  4567. }
  4568. }
  4569. throw new FS.ErrnoError(ERRNO_CODES.EMFILE);
  4570. },getStream:function (fd) {
  4571. return FS.streams[fd];
  4572. },createStream:function (stream, fd_start, fd_end) {
  4573. if (!FS.FSStream) {
  4574. FS.FSStream = function(){};
  4575. FS.FSStream.prototype = {};
  4576. // compatibility
  4577. Object.defineProperties(FS.FSStream.prototype, {
  4578. object: {
  4579. get: function() { return this.node; },
  4580. set: function(val) { this.node = val; }
  4581. },
  4582. isRead: {
  4583. get: function() { return (this.flags & 2097155) !== 1; }
  4584. },
  4585. isWrite: {
  4586. get: function() { return (this.flags & 2097155) !== 0; }
  4587. },
  4588. isAppend: {
  4589. get: function() { return (this.flags & 1024); }
  4590. }
  4591. });
  4592. }
  4593. // clone it, so we can return an instance of FSStream
  4594. var newStream = new FS.FSStream();
  4595. for (var p in stream) {
  4596. newStream[p] = stream[p];
  4597. }
  4598. stream = newStream;
  4599. var fd = FS.nextfd(fd_start, fd_end);
  4600. stream.fd = fd;
  4601. FS.streams[fd] = stream;
  4602. return stream;
  4603. },closeStream:function (fd) {
  4604. FS.streams[fd] = null;
  4605. },chrdev_stream_ops:{open:function (stream) {
  4606. var device = FS.getDevice(stream.node.rdev);
  4607. // override node's stream ops with the device's
  4608. stream.stream_ops = device.stream_ops;
  4609. // forward the open call
  4610. if (stream.stream_ops.open) {
  4611. stream.stream_ops.open(stream);
  4612. }
  4613. },llseek:function () {
  4614. throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
  4615. }},major:function (dev) {
  4616. return ((dev) >> 8);
  4617. },minor:function (dev) {
  4618. return ((dev) & 0xff);
  4619. },makedev:function (ma, mi) {
  4620. return ((ma) << 8 | (mi));
  4621. },registerDevice:function (dev, ops) {
  4622. FS.devices[dev] = { stream_ops: ops };
  4623. },getDevice:function (dev) {
  4624. return FS.devices[dev];
  4625. },getMounts:function (mount) {
  4626. var mounts = [];
  4627. var check = [mount];
  4628. while (check.length) {
  4629. var m = check.pop();
  4630. mounts.push(m);
  4631. check.push.apply(check, m.mounts);
  4632. }
  4633. return mounts;
  4634. },syncfs:function (populate, callback) {
  4635. if (typeof(populate) === 'function') {
  4636. callback = populate;
  4637. populate = false;
  4638. }
  4639. FS.syncFSRequests++;
  4640. if (FS.syncFSRequests > 1) {
  4641. console.log('warning: ' + FS.syncFSRequests + ' FS.syncfs operations in flight at once, probably just doing extra work');
  4642. }
  4643. var mounts = FS.getMounts(FS.root.mount);
  4644. var completed = 0;
  4645. function doCallback(err) {
  4646. assert(FS.syncFSRequests > 0);
  4647. FS.syncFSRequests--;
  4648. return callback(err);
  4649. }
  4650. function done(err) {
  4651. if (err) {
  4652. if (!done.errored) {
  4653. done.errored = true;
  4654. return doCallback(err);
  4655. }
  4656. return;
  4657. }
  4658. if (++completed >= mounts.length) {
  4659. doCallback(null);
  4660. }
  4661. };
  4662. // sync all mounts
  4663. mounts.forEach(function (mount) {
  4664. if (!mount.type.syncfs) {
  4665. return done(null);
  4666. }
  4667. mount.type.syncfs(mount, populate, done);
  4668. });
  4669. },mount:function (type, opts, mountpoint) {
  4670. var root = mountpoint === '/';
  4671. var pseudo = !mountpoint;
  4672. var node;
  4673. if (root && FS.root) {
  4674. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4675. } else if (!root && !pseudo) {
  4676. var lookup = FS.lookupPath(mountpoint, { follow_mount: false });
  4677. mountpoint = lookup.path; // use the absolute path
  4678. node = lookup.node;
  4679. if (FS.isMountpoint(node)) {
  4680. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4681. }
  4682. if (!FS.isDir(node.mode)) {
  4683. throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR);
  4684. }
  4685. }
  4686. var mount = {
  4687. type: type,
  4688. opts: opts,
  4689. mountpoint: mountpoint,
  4690. mounts: []
  4691. };
  4692. // create a root node for the fs
  4693. var mountRoot = type.mount(mount);
  4694. mountRoot.mount = mount;
  4695. mount.root = mountRoot;
  4696. if (root) {
  4697. FS.root = mountRoot;
  4698. } else if (node) {
  4699. // set as a mountpoint
  4700. node.mounted = mount;
  4701. // add the new mount to the current mount's children
  4702. if (node.mount) {
  4703. node.mount.mounts.push(mount);
  4704. }
  4705. }
  4706. return mountRoot;
  4707. },unmount:function (mountpoint) {
  4708. var lookup = FS.lookupPath(mountpoint, { follow_mount: false });
  4709. if (!FS.isMountpoint(lookup.node)) {
  4710. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4711. }
  4712. // destroy the nodes for this mount, and all its child mounts
  4713. var node = lookup.node;
  4714. var mount = node.mounted;
  4715. var mounts = FS.getMounts(mount);
  4716. Object.keys(FS.nameTable).forEach(function (hash) {
  4717. var current = FS.nameTable[hash];
  4718. while (current) {
  4719. var next = current.name_next;
  4720. if (mounts.indexOf(current.mount) !== -1) {
  4721. FS.destroyNode(current);
  4722. }
  4723. current = next;
  4724. }
  4725. });
  4726. // no longer a mountpoint
  4727. node.mounted = null;
  4728. // remove this mount from the child mounts
  4729. var idx = node.mount.mounts.indexOf(mount);
  4730. assert(idx !== -1);
  4731. node.mount.mounts.splice(idx, 1);
  4732. },lookup:function (parent, name) {
  4733. return parent.node_ops.lookup(parent, name);
  4734. },mknod:function (path, mode, dev) {
  4735. var lookup = FS.lookupPath(path, { parent: true });
  4736. var parent = lookup.node;
  4737. var name = PATH.basename(path);
  4738. if (!name || name === '.' || name === '..') {
  4739. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4740. }
  4741. var err = FS.mayCreate(parent, name);
  4742. if (err) {
  4743. throw new FS.ErrnoError(err);
  4744. }
  4745. if (!parent.node_ops.mknod) {
  4746. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4747. }
  4748. return parent.node_ops.mknod(parent, name, mode, dev);
  4749. },create:function (path, mode) {
  4750. mode = mode !== undefined ? mode : 438 /* 0666 */;
  4751. mode &= 4095;
  4752. mode |= 32768;
  4753. return FS.mknod(path, mode, 0);
  4754. },mkdir:function (path, mode) {
  4755. mode = mode !== undefined ? mode : 511 /* 0777 */;
  4756. mode &= 511 | 512;
  4757. mode |= 16384;
  4758. return FS.mknod(path, mode, 0);
  4759. },mkdirTree:function (path, mode) {
  4760. var dirs = path.split('/');
  4761. var d = '';
  4762. for (var i = 0; i < dirs.length; ++i) {
  4763. if (!dirs[i]) continue;
  4764. d += '/' + dirs[i];
  4765. try {
  4766. FS.mkdir(d, mode);
  4767. } catch(e) {
  4768. if (e.errno != ERRNO_CODES.EEXIST) throw e;
  4769. }
  4770. }
  4771. },mkdev:function (path, mode, dev) {
  4772. if (typeof(dev) === 'undefined') {
  4773. dev = mode;
  4774. mode = 438 /* 0666 */;
  4775. }
  4776. mode |= 8192;
  4777. return FS.mknod(path, mode, dev);
  4778. },symlink:function (oldpath, newpath) {
  4779. if (!PATH.resolve(oldpath)) {
  4780. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4781. }
  4782. var lookup = FS.lookupPath(newpath, { parent: true });
  4783. var parent = lookup.node;
  4784. if (!parent) {
  4785. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4786. }
  4787. var newname = PATH.basename(newpath);
  4788. var err = FS.mayCreate(parent, newname);
  4789. if (err) {
  4790. throw new FS.ErrnoError(err);
  4791. }
  4792. if (!parent.node_ops.symlink) {
  4793. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4794. }
  4795. return parent.node_ops.symlink(parent, newname, oldpath);
  4796. },rename:function (old_path, new_path) {
  4797. var old_dirname = PATH.dirname(old_path);
  4798. var new_dirname = PATH.dirname(new_path);
  4799. var old_name = PATH.basename(old_path);
  4800. var new_name = PATH.basename(new_path);
  4801. // parents must exist
  4802. var lookup, old_dir, new_dir;
  4803. try {
  4804. lookup = FS.lookupPath(old_path, { parent: true });
  4805. old_dir = lookup.node;
  4806. lookup = FS.lookupPath(new_path, { parent: true });
  4807. new_dir = lookup.node;
  4808. } catch (e) {
  4809. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4810. }
  4811. if (!old_dir || !new_dir) throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4812. // need to be part of the same mount
  4813. if (old_dir.mount !== new_dir.mount) {
  4814. throw new FS.ErrnoError(ERRNO_CODES.EXDEV);
  4815. }
  4816. // source must exist
  4817. var old_node = FS.lookupNode(old_dir, old_name);
  4818. // old path should not be an ancestor of the new path
  4819. var relative = PATH.relative(old_path, new_dirname);
  4820. if (relative.charAt(0) !== '.') {
  4821. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4822. }
  4823. // new path should not be an ancestor of the old path
  4824. relative = PATH.relative(new_path, old_dirname);
  4825. if (relative.charAt(0) !== '.') {
  4826. throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY);
  4827. }
  4828. // see if the new path already exists
  4829. var new_node;
  4830. try {
  4831. new_node = FS.lookupNode(new_dir, new_name);
  4832. } catch (e) {
  4833. // not fatal
  4834. }
  4835. // early out if nothing needs to change
  4836. if (old_node === new_node) {
  4837. return;
  4838. }
  4839. // we'll need to delete the old entry
  4840. var isdir = FS.isDir(old_node.mode);
  4841. var err = FS.mayDelete(old_dir, old_name, isdir);
  4842. if (err) {
  4843. throw new FS.ErrnoError(err);
  4844. }
  4845. // need delete permissions if we'll be overwriting.
  4846. // need create permissions if new doesn't already exist.
  4847. err = new_node ?
  4848. FS.mayDelete(new_dir, new_name, isdir) :
  4849. FS.mayCreate(new_dir, new_name);
  4850. if (err) {
  4851. throw new FS.ErrnoError(err);
  4852. }
  4853. if (!old_dir.node_ops.rename) {
  4854. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4855. }
  4856. if (FS.isMountpoint(old_node) || (new_node && FS.isMountpoint(new_node))) {
  4857. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4858. }
  4859. // if we are going to change the parent, check write permissions
  4860. if (new_dir !== old_dir) {
  4861. err = FS.nodePermissions(old_dir, 'w');
  4862. if (err) {
  4863. throw new FS.ErrnoError(err);
  4864. }
  4865. }
  4866. try {
  4867. if (FS.trackingDelegate['willMovePath']) {
  4868. FS.trackingDelegate['willMovePath'](old_path, new_path);
  4869. }
  4870. } catch(e) {
  4871. console.log("FS.trackingDelegate['willMovePath']('"+old_path+"', '"+new_path+"') threw an exception: " + e.message);
  4872. }
  4873. // remove the node from the lookup hash
  4874. FS.hashRemoveNode(old_node);
  4875. // do the underlying fs rename
  4876. try {
  4877. old_dir.node_ops.rename(old_node, new_dir, new_name);
  4878. } catch (e) {
  4879. throw e;
  4880. } finally {
  4881. // add the node back to the hash (in case node_ops.rename
  4882. // changed its name)
  4883. FS.hashAddNode(old_node);
  4884. }
  4885. try {
  4886. if (FS.trackingDelegate['onMovePath']) FS.trackingDelegate['onMovePath'](old_path, new_path);
  4887. } catch(e) {
  4888. console.log("FS.trackingDelegate['onMovePath']('"+old_path+"', '"+new_path+"') threw an exception: " + e.message);
  4889. }
  4890. },rmdir:function (path) {
  4891. var lookup = FS.lookupPath(path, { parent: true });
  4892. var parent = lookup.node;
  4893. var name = PATH.basename(path);
  4894. var node = FS.lookupNode(parent, name);
  4895. var err = FS.mayDelete(parent, name, true);
  4896. if (err) {
  4897. throw new FS.ErrnoError(err);
  4898. }
  4899. if (!parent.node_ops.rmdir) {
  4900. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4901. }
  4902. if (FS.isMountpoint(node)) {
  4903. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4904. }
  4905. try {
  4906. if (FS.trackingDelegate['willDeletePath']) {
  4907. FS.trackingDelegate['willDeletePath'](path);
  4908. }
  4909. } catch(e) {
  4910. console.log("FS.trackingDelegate['willDeletePath']('"+path+"') threw an exception: " + e.message);
  4911. }
  4912. parent.node_ops.rmdir(parent, name);
  4913. FS.destroyNode(node);
  4914. try {
  4915. if (FS.trackingDelegate['onDeletePath']) FS.trackingDelegate['onDeletePath'](path);
  4916. } catch(e) {
  4917. console.log("FS.trackingDelegate['onDeletePath']('"+path+"') threw an exception: " + e.message);
  4918. }
  4919. },readdir:function (path) {
  4920. var lookup = FS.lookupPath(path, { follow: true });
  4921. var node = lookup.node;
  4922. if (!node.node_ops.readdir) {
  4923. throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR);
  4924. }
  4925. return node.node_ops.readdir(node);
  4926. },unlink:function (path) {
  4927. var lookup = FS.lookupPath(path, { parent: true });
  4928. var parent = lookup.node;
  4929. var name = PATH.basename(path);
  4930. var node = FS.lookupNode(parent, name);
  4931. var err = FS.mayDelete(parent, name, false);
  4932. if (err) {
  4933. // According to POSIX, we should map EISDIR to EPERM, but
  4934. // we instead do what Linux does (and we must, as we use
  4935. // the musl linux libc).
  4936. throw new FS.ErrnoError(err);
  4937. }
  4938. if (!parent.node_ops.unlink) {
  4939. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4940. }
  4941. if (FS.isMountpoint(node)) {
  4942. throw new FS.ErrnoError(ERRNO_CODES.EBUSY);
  4943. }
  4944. try {
  4945. if (FS.trackingDelegate['willDeletePath']) {
  4946. FS.trackingDelegate['willDeletePath'](path);
  4947. }
  4948. } catch(e) {
  4949. console.log("FS.trackingDelegate['willDeletePath']('"+path+"') threw an exception: " + e.message);
  4950. }
  4951. parent.node_ops.unlink(parent, name);
  4952. FS.destroyNode(node);
  4953. try {
  4954. if (FS.trackingDelegate['onDeletePath']) FS.trackingDelegate['onDeletePath'](path);
  4955. } catch(e) {
  4956. console.log("FS.trackingDelegate['onDeletePath']('"+path+"') threw an exception: " + e.message);
  4957. }
  4958. },readlink:function (path) {
  4959. var lookup = FS.lookupPath(path);
  4960. var link = lookup.node;
  4961. if (!link) {
  4962. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4963. }
  4964. if (!link.node_ops.readlink) {
  4965. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  4966. }
  4967. return PATH.resolve(FS.getPath(link.parent), link.node_ops.readlink(link));
  4968. },stat:function (path, dontFollow) {
  4969. var lookup = FS.lookupPath(path, { follow: !dontFollow });
  4970. var node = lookup.node;
  4971. if (!node) {
  4972. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  4973. }
  4974. if (!node.node_ops.getattr) {
  4975. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4976. }
  4977. return node.node_ops.getattr(node);
  4978. },lstat:function (path) {
  4979. return FS.stat(path, true);
  4980. },chmod:function (path, mode, dontFollow) {
  4981. var node;
  4982. if (typeof path === 'string') {
  4983. var lookup = FS.lookupPath(path, { follow: !dontFollow });
  4984. node = lookup.node;
  4985. } else {
  4986. node = path;
  4987. }
  4988. if (!node.node_ops.setattr) {
  4989. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  4990. }
  4991. node.node_ops.setattr(node, {
  4992. mode: (mode & 4095) | (node.mode & ~4095),
  4993. timestamp: Date.now()
  4994. });
  4995. },lchmod:function (path, mode) {
  4996. FS.chmod(path, mode, true);
  4997. },fchmod:function (fd, mode) {
  4998. var stream = FS.getStream(fd);
  4999. if (!stream) {
  5000. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5001. }
  5002. FS.chmod(stream.node, mode);
  5003. },chown:function (path, uid, gid, dontFollow) {
  5004. var node;
  5005. if (typeof path === 'string') {
  5006. var lookup = FS.lookupPath(path, { follow: !dontFollow });
  5007. node = lookup.node;
  5008. } else {
  5009. node = path;
  5010. }
  5011. if (!node.node_ops.setattr) {
  5012. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  5013. }
  5014. node.node_ops.setattr(node, {
  5015. timestamp: Date.now()
  5016. // we ignore the uid / gid for now
  5017. });
  5018. },lchown:function (path, uid, gid) {
  5019. FS.chown(path, uid, gid, true);
  5020. },fchown:function (fd, uid, gid) {
  5021. var stream = FS.getStream(fd);
  5022. if (!stream) {
  5023. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5024. }
  5025. FS.chown(stream.node, uid, gid);
  5026. },truncate:function (path, len) {
  5027. if (len < 0) {
  5028. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5029. }
  5030. var node;
  5031. if (typeof path === 'string') {
  5032. var lookup = FS.lookupPath(path, { follow: true });
  5033. node = lookup.node;
  5034. } else {
  5035. node = path;
  5036. }
  5037. if (!node.node_ops.setattr) {
  5038. throw new FS.ErrnoError(ERRNO_CODES.EPERM);
  5039. }
  5040. if (FS.isDir(node.mode)) {
  5041. throw new FS.ErrnoError(ERRNO_CODES.EISDIR);
  5042. }
  5043. if (!FS.isFile(node.mode)) {
  5044. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5045. }
  5046. var err = FS.nodePermissions(node, 'w');
  5047. if (err) {
  5048. throw new FS.ErrnoError(err);
  5049. }
  5050. node.node_ops.setattr(node, {
  5051. size: len,
  5052. timestamp: Date.now()
  5053. });
  5054. },ftruncate:function (fd, len) {
  5055. var stream = FS.getStream(fd);
  5056. if (!stream) {
  5057. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5058. }
  5059. if ((stream.flags & 2097155) === 0) {
  5060. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5061. }
  5062. FS.truncate(stream.node, len);
  5063. },utime:function (path, atime, mtime) {
  5064. var lookup = FS.lookupPath(path, { follow: true });
  5065. var node = lookup.node;
  5066. node.node_ops.setattr(node, {
  5067. timestamp: Math.max(atime, mtime)
  5068. });
  5069. },open:function (path, flags, mode, fd_start, fd_end) {
  5070. if (path === "") {
  5071. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  5072. }
  5073. flags = typeof flags === 'string' ? FS.modeStringToFlags(flags) : flags;
  5074. mode = typeof mode === 'undefined' ? 438 /* 0666 */ : mode;
  5075. if ((flags & 64)) {
  5076. mode = (mode & 4095) | 32768;
  5077. } else {
  5078. mode = 0;
  5079. }
  5080. var node;
  5081. if (typeof path === 'object') {
  5082. node = path;
  5083. } else {
  5084. path = PATH.normalize(path);
  5085. try {
  5086. var lookup = FS.lookupPath(path, {
  5087. follow: !(flags & 131072)
  5088. });
  5089. node = lookup.node;
  5090. } catch (e) {
  5091. // ignore
  5092. }
  5093. }
  5094. // perhaps we need to create the node
  5095. var created = false;
  5096. if ((flags & 64)) {
  5097. if (node) {
  5098. // if O_CREAT and O_EXCL are set, error out if the node already exists
  5099. if ((flags & 128)) {
  5100. throw new FS.ErrnoError(ERRNO_CODES.EEXIST);
  5101. }
  5102. } else {
  5103. // node doesn't exist, try to create it
  5104. node = FS.mknod(path, mode, 0);
  5105. created = true;
  5106. }
  5107. }
  5108. if (!node) {
  5109. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  5110. }
  5111. // can't truncate a device
  5112. if (FS.isChrdev(node.mode)) {
  5113. flags &= ~512;
  5114. }
  5115. // if asked only for a directory, then this must be one
  5116. if ((flags & 65536) && !FS.isDir(node.mode)) {
  5117. throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR);
  5118. }
  5119. // check permissions, if this is not a file we just created now (it is ok to
  5120. // create and write to a file with read-only permissions; it is read-only
  5121. // for later use)
  5122. if (!created) {
  5123. var err = FS.mayOpen(node, flags);
  5124. if (err) {
  5125. throw new FS.ErrnoError(err);
  5126. }
  5127. }
  5128. // do truncation if necessary
  5129. if ((flags & 512)) {
  5130. FS.truncate(node, 0);
  5131. }
  5132. // we've already handled these, don't pass down to the underlying vfs
  5133. flags &= ~(128 | 512);
  5134. // register the stream with the filesystem
  5135. var stream = FS.createStream({
  5136. node: node,
  5137. path: FS.getPath(node), // we want the absolute path to the node
  5138. flags: flags,
  5139. seekable: true,
  5140. position: 0,
  5141. stream_ops: node.stream_ops,
  5142. // used by the file family libc calls (fopen, fwrite, ferror, etc.)
  5143. ungotten: [],
  5144. error: false
  5145. }, fd_start, fd_end);
  5146. // call the new stream's open function
  5147. if (stream.stream_ops.open) {
  5148. stream.stream_ops.open(stream);
  5149. }
  5150. if (Module['logReadFiles'] && !(flags & 1)) {
  5151. if (!FS.readFiles) FS.readFiles = {};
  5152. if (!(path in FS.readFiles)) {
  5153. FS.readFiles[path] = 1;
  5154. Module['printErr']('read file: ' + path);
  5155. }
  5156. }
  5157. try {
  5158. if (FS.trackingDelegate['onOpenFile']) {
  5159. var trackingFlags = 0;
  5160. if ((flags & 2097155) !== 1) {
  5161. trackingFlags |= FS.tracking.openFlags.READ;
  5162. }
  5163. if ((flags & 2097155) !== 0) {
  5164. trackingFlags |= FS.tracking.openFlags.WRITE;
  5165. }
  5166. FS.trackingDelegate['onOpenFile'](path, trackingFlags);
  5167. }
  5168. } catch(e) {
  5169. console.log("FS.trackingDelegate['onOpenFile']('"+path+"', flags) threw an exception: " + e.message);
  5170. }
  5171. return stream;
  5172. },close:function (stream) {
  5173. if (stream.getdents) stream.getdents = null; // free readdir state
  5174. try {
  5175. if (stream.stream_ops.close) {
  5176. stream.stream_ops.close(stream);
  5177. }
  5178. } catch (e) {
  5179. throw e;
  5180. } finally {
  5181. FS.closeStream(stream.fd);
  5182. }
  5183. },llseek:function (stream, offset, whence) {
  5184. if (!stream.seekable || !stream.stream_ops.llseek) {
  5185. throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
  5186. }
  5187. stream.position = stream.stream_ops.llseek(stream, offset, whence);
  5188. stream.ungotten = [];
  5189. return stream.position;
  5190. },read:function (stream, buffer, offset, length, position) {
  5191. if (length < 0 || position < 0) {
  5192. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5193. }
  5194. if ((stream.flags & 2097155) === 1) {
  5195. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5196. }
  5197. if (FS.isDir(stream.node.mode)) {
  5198. throw new FS.ErrnoError(ERRNO_CODES.EISDIR);
  5199. }
  5200. if (!stream.stream_ops.read) {
  5201. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5202. }
  5203. var seeking = true;
  5204. if (typeof position === 'undefined') {
  5205. position = stream.position;
  5206. seeking = false;
  5207. } else if (!stream.seekable) {
  5208. throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
  5209. }
  5210. var bytesRead = stream.stream_ops.read(stream, buffer, offset, length, position);
  5211. if (!seeking) stream.position += bytesRead;
  5212. return bytesRead;
  5213. },write:function (stream, buffer, offset, length, position, canOwn) {
  5214. if (length < 0 || position < 0) {
  5215. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5216. }
  5217. if ((stream.flags & 2097155) === 0) {
  5218. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5219. }
  5220. if (FS.isDir(stream.node.mode)) {
  5221. throw new FS.ErrnoError(ERRNO_CODES.EISDIR);
  5222. }
  5223. if (!stream.stream_ops.write) {
  5224. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5225. }
  5226. if (stream.flags & 1024) {
  5227. // seek to the end before writing in append mode
  5228. FS.llseek(stream, 0, 2);
  5229. }
  5230. var seeking = true;
  5231. if (typeof position === 'undefined') {
  5232. position = stream.position;
  5233. seeking = false;
  5234. } else if (!stream.seekable) {
  5235. throw new FS.ErrnoError(ERRNO_CODES.ESPIPE);
  5236. }
  5237. var bytesWritten = stream.stream_ops.write(stream, buffer, offset, length, position, canOwn);
  5238. if (!seeking) stream.position += bytesWritten;
  5239. try {
  5240. if (stream.path && FS.trackingDelegate['onWriteToFile']) FS.trackingDelegate['onWriteToFile'](stream.path);
  5241. } catch(e) {
  5242. console.log("FS.trackingDelegate['onWriteToFile']('"+path+"') threw an exception: " + e.message);
  5243. }
  5244. return bytesWritten;
  5245. },allocate:function (stream, offset, length) {
  5246. if (offset < 0 || length <= 0) {
  5247. throw new FS.ErrnoError(ERRNO_CODES.EINVAL);
  5248. }
  5249. if ((stream.flags & 2097155) === 0) {
  5250. throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5251. }
  5252. if (!FS.isFile(stream.node.mode) && !FS.isDir(node.mode)) {
  5253. throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
  5254. }
  5255. if (!stream.stream_ops.allocate) {
  5256. throw new FS.ErrnoError(ERRNO_CODES.EOPNOTSUPP);
  5257. }
  5258. stream.stream_ops.allocate(stream, offset, length);
  5259. },mmap:function (stream, buffer, offset, length, position, prot, flags) {
  5260. // TODO if PROT is PROT_WRITE, make sure we have write access
  5261. if ((stream.flags & 2097155) === 1) {
  5262. throw new FS.ErrnoError(ERRNO_CODES.EACCES);
  5263. }
  5264. if (!stream.stream_ops.mmap) {
  5265. throw new FS.ErrnoError(ERRNO_CODES.ENODEV);
  5266. }
  5267. return stream.stream_ops.mmap(stream, buffer, offset, length, position, prot, flags);
  5268. },msync:function (stream, buffer, offset, length, mmapFlags) {
  5269. if (!stream || !stream.stream_ops.msync) {
  5270. return 0;
  5271. }
  5272. return stream.stream_ops.msync(stream, buffer, offset, length, mmapFlags);
  5273. },munmap:function (stream) {
  5274. return 0;
  5275. },ioctl:function (stream, cmd, arg) {
  5276. if (!stream.stream_ops.ioctl) {
  5277. throw new FS.ErrnoError(ERRNO_CODES.ENOTTY);
  5278. }
  5279. return stream.stream_ops.ioctl(stream, cmd, arg);
  5280. },readFile:function (path, opts) {
  5281. opts = opts || {};
  5282. opts.flags = opts.flags || 'r';
  5283. opts.encoding = opts.encoding || 'binary';
  5284. if (opts.encoding !== 'utf8' && opts.encoding !== 'binary') {
  5285. throw new Error('Invalid encoding type "' + opts.encoding + '"');
  5286. }
  5287. var ret;
  5288. var stream = FS.open(path, opts.flags);
  5289. var stat = FS.stat(path);
  5290. var length = stat.size;
  5291. var buf = new Uint8Array(length);
  5292. FS.read(stream, buf, 0, length, 0);
  5293. if (opts.encoding === 'utf8') {
  5294. ret = UTF8ArrayToString(buf, 0);
  5295. } else if (opts.encoding === 'binary') {
  5296. ret = buf;
  5297. }
  5298. FS.close(stream);
  5299. return ret;
  5300. },writeFile:function (path, data, opts) {
  5301. opts = opts || {};
  5302. opts.flags = opts.flags || 'w';
  5303. opts.encoding = opts.encoding || 'utf8';
  5304. if (opts.encoding !== 'utf8' && opts.encoding !== 'binary') {
  5305. throw new Error('Invalid encoding type "' + opts.encoding + '"');
  5306. }
  5307. var stream = FS.open(path, opts.flags, opts.mode);
  5308. if (opts.encoding === 'utf8') {
  5309. var buf = new Uint8Array(lengthBytesUTF8(data)+1);
  5310. var actualNumBytes = stringToUTF8Array(data, buf, 0, buf.length);
  5311. FS.write(stream, buf, 0, actualNumBytes, 0, opts.canOwn);
  5312. } else if (opts.encoding === 'binary') {
  5313. FS.write(stream, data, 0, data.length, 0, opts.canOwn);
  5314. }
  5315. FS.close(stream);
  5316. },cwd:function () {
  5317. return FS.currentPath;
  5318. },chdir:function (path) {
  5319. var lookup = FS.lookupPath(path, { follow: true });
  5320. if (lookup.node === null) {
  5321. throw new FS.ErrnoError(ERRNO_CODES.ENOENT);
  5322. }
  5323. if (!FS.isDir(lookup.node.mode)) {
  5324. throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR);
  5325. }
  5326. var err = FS.nodePermissions(lookup.node, 'x');
  5327. if (err) {
  5328. throw new FS.ErrnoError(err);
  5329. }
  5330. FS.currentPath = lookup.path;
  5331. },createDefaultDirectories:function () {
  5332. FS.mkdir('/tmp');
  5333. FS.mkdir('/home');
  5334. FS.mkdir('/home/web_user');
  5335. },createDefaultDevices:function () {
  5336. // create /dev
  5337. FS.mkdir('/dev');
  5338. // setup /dev/null
  5339. FS.registerDevice(FS.makedev(1, 3), {
  5340. read: function() { return 0; },
  5341. write: function(stream, buffer, offset, length, pos) { return length; }
  5342. });
  5343. FS.mkdev('/dev/null', FS.makedev(1, 3));
  5344. // setup /dev/tty and /dev/tty1
  5345. // stderr needs to print output using Module['printErr']
  5346. // so we register a second tty just for it.
  5347. TTY.register(FS.makedev(5, 0), TTY.default_tty_ops);
  5348. TTY.register(FS.makedev(6, 0), TTY.default_tty1_ops);
  5349. FS.mkdev('/dev/tty', FS.makedev(5, 0));
  5350. FS.mkdev('/dev/tty1', FS.makedev(6, 0));
  5351. // setup /dev/[u]random
  5352. var random_device;
  5353. if (typeof crypto !== 'undefined') {
  5354. // for modern web browsers
  5355. var randomBuffer = new Uint8Array(1);
  5356. random_device = function() { crypto.getRandomValues(randomBuffer); return randomBuffer[0]; };
  5357. } else if (ENVIRONMENT_IS_NODE) {
  5358. // for nodejs
  5359. random_device = function() { return require('crypto').randomBytes(1)[0]; };
  5360. } else {
  5361. // default for ES5 platforms
  5362. random_device = function() { return (Math.random()*256)|0; };
  5363. }
  5364. FS.createDevice('/dev', 'random', random_device);
  5365. FS.createDevice('/dev', 'urandom', random_device);
  5366. // we're not going to emulate the actual shm device,
  5367. // just create the tmp dirs that reside in it commonly
  5368. FS.mkdir('/dev/shm');
  5369. FS.mkdir('/dev/shm/tmp');
  5370. },createSpecialDirectories:function () {
  5371. // create /proc/self/fd which allows /proc/self/fd/6 => readlink gives the name of the stream for fd 6 (see test_unistd_ttyname)
  5372. FS.mkdir('/proc');
  5373. FS.mkdir('/proc/self');
  5374. FS.mkdir('/proc/self/fd');
  5375. FS.mount({
  5376. mount: function() {
  5377. var node = FS.createNode('/proc/self', 'fd', 16384 | 511 /* 0777 */, 73);
  5378. node.node_ops = {
  5379. lookup: function(parent, name) {
  5380. var fd = +name;
  5381. var stream = FS.getStream(fd);
  5382. if (!stream) throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5383. var ret = {
  5384. parent: null,
  5385. mount: { mountpoint: 'fake' },
  5386. node_ops: { readlink: function() { return stream.path } }
  5387. };
  5388. ret.parent = ret; // make it look like a simple root node
  5389. return ret;
  5390. }
  5391. };
  5392. return node;
  5393. }
  5394. }, {}, '/proc/self/fd');
  5395. },createStandardStreams:function () {
  5396. // TODO deprecate the old functionality of a single
  5397. // input / output callback and that utilizes FS.createDevice
  5398. // and instead require a unique set of stream ops
  5399. // by default, we symlink the standard streams to the
  5400. // default tty devices. however, if the standard streams
  5401. // have been overwritten we create a unique device for
  5402. // them instead.
  5403. if (Module['stdin']) {
  5404. FS.createDevice('/dev', 'stdin', Module['stdin']);
  5405. } else {
  5406. FS.symlink('/dev/tty', '/dev/stdin');
  5407. }
  5408. if (Module['stdout']) {
  5409. FS.createDevice('/dev', 'stdout', null, Module['stdout']);
  5410. } else {
  5411. FS.symlink('/dev/tty', '/dev/stdout');
  5412. }
  5413. if (Module['stderr']) {
  5414. FS.createDevice('/dev', 'stderr', null, Module['stderr']);
  5415. } else {
  5416. FS.symlink('/dev/tty1', '/dev/stderr');
  5417. }
  5418. // open default streams for the stdin, stdout and stderr devices
  5419. var stdin = FS.open('/dev/stdin', 'r');
  5420. assert(stdin.fd === 0, 'invalid handle for stdin (' + stdin.fd + ')');
  5421. var stdout = FS.open('/dev/stdout', 'w');
  5422. assert(stdout.fd === 1, 'invalid handle for stdout (' + stdout.fd + ')');
  5423. var stderr = FS.open('/dev/stderr', 'w');
  5424. assert(stderr.fd === 2, 'invalid handle for stderr (' + stderr.fd + ')');
  5425. },ensureErrnoError:function () {
  5426. if (FS.ErrnoError) return;
  5427. FS.ErrnoError = function ErrnoError(errno, node) {
  5428. //Module.printErr(stackTrace()); // useful for debugging
  5429. this.node = node;
  5430. this.setErrno = function(errno) {
  5431. this.errno = errno;
  5432. for (var key in ERRNO_CODES) {
  5433. if (ERRNO_CODES[key] === errno) {
  5434. this.code = key;
  5435. break;
  5436. }
  5437. }
  5438. };
  5439. this.setErrno(errno);
  5440. this.message = ERRNO_MESSAGES[errno];
  5441. if (this.stack) this.stack = demangleAll(this.stack);
  5442. };
  5443. FS.ErrnoError.prototype = new Error();
  5444. FS.ErrnoError.prototype.constructor = FS.ErrnoError;
  5445. // Some errors may happen quite a bit, to avoid overhead we reuse them (and suffer a lack of stack info)
  5446. [ERRNO_CODES.ENOENT].forEach(function(code) {
  5447. FS.genericErrors[code] = new FS.ErrnoError(code);
  5448. FS.genericErrors[code].stack = '<generic error, no stack>';
  5449. });
  5450. },staticInit:function () {
  5451. FS.ensureErrnoError();
  5452. FS.nameTable = new Array(4096);
  5453. FS.mount(MEMFS, {}, '/');
  5454. FS.createDefaultDirectories();
  5455. FS.createDefaultDevices();
  5456. FS.createSpecialDirectories();
  5457. FS.filesystems = {
  5458. 'MEMFS': MEMFS,
  5459. 'IDBFS': IDBFS,
  5460. 'NODEFS': NODEFS,
  5461. 'WORKERFS': WORKERFS,
  5462. };
  5463. },init:function (input, output, error) {
  5464. 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)');
  5465. FS.init.initialized = true;
  5466. FS.ensureErrnoError();
  5467. // Allow Module.stdin etc. to provide defaults, if none explicitly passed to us here
  5468. Module['stdin'] = input || Module['stdin'];
  5469. Module['stdout'] = output || Module['stdout'];
  5470. Module['stderr'] = error || Module['stderr'];
  5471. FS.createStandardStreams();
  5472. },quit:function () {
  5473. FS.init.initialized = false;
  5474. // force-flush all streams, so we get musl std streams printed out
  5475. var fflush = Module['_fflush'];
  5476. if (fflush) fflush(0);
  5477. // close all of our streams
  5478. for (var i = 0; i < FS.streams.length; i++) {
  5479. var stream = FS.streams[i];
  5480. if (!stream) {
  5481. continue;
  5482. }
  5483. FS.close(stream);
  5484. }
  5485. },getMode:function (canRead, canWrite) {
  5486. var mode = 0;
  5487. if (canRead) mode |= 292 | 73;
  5488. if (canWrite) mode |= 146;
  5489. return mode;
  5490. },joinPath:function (parts, forceRelative) {
  5491. var path = PATH.join.apply(null, parts);
  5492. if (forceRelative && path[0] == '/') path = path.substr(1);
  5493. return path;
  5494. },absolutePath:function (relative, base) {
  5495. return PATH.resolve(base, relative);
  5496. },standardizePath:function (path) {
  5497. return PATH.normalize(path);
  5498. },findObject:function (path, dontResolveLastLink) {
  5499. var ret = FS.analyzePath(path, dontResolveLastLink);
  5500. if (ret.exists) {
  5501. return ret.object;
  5502. } else {
  5503. ___setErrNo(ret.error);
  5504. return null;
  5505. }
  5506. },analyzePath:function (path, dontResolveLastLink) {
  5507. // operate from within the context of the symlink's target
  5508. try {
  5509. var lookup = FS.lookupPath(path, { follow: !dontResolveLastLink });
  5510. path = lookup.path;
  5511. } catch (e) {
  5512. }
  5513. var ret = {
  5514. isRoot: false, exists: false, error: 0, name: null, path: null, object: null,
  5515. parentExists: false, parentPath: null, parentObject: null
  5516. };
  5517. try {
  5518. var lookup = FS.lookupPath(path, { parent: true });
  5519. ret.parentExists = true;
  5520. ret.parentPath = lookup.path;
  5521. ret.parentObject = lookup.node;
  5522. ret.name = PATH.basename(path);
  5523. lookup = FS.lookupPath(path, { follow: !dontResolveLastLink });
  5524. ret.exists = true;
  5525. ret.path = lookup.path;
  5526. ret.object = lookup.node;
  5527. ret.name = lookup.node.name;
  5528. ret.isRoot = lookup.path === '/';
  5529. } catch (e) {
  5530. ret.error = e.errno;
  5531. };
  5532. return ret;
  5533. },createFolder:function (parent, name, canRead, canWrite) {
  5534. var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name);
  5535. var mode = FS.getMode(canRead, canWrite);
  5536. return FS.mkdir(path, mode);
  5537. },createPath:function (parent, path, canRead, canWrite) {
  5538. parent = typeof parent === 'string' ? parent : FS.getPath(parent);
  5539. var parts = path.split('/').reverse();
  5540. while (parts.length) {
  5541. var part = parts.pop();
  5542. if (!part) continue;
  5543. var current = PATH.join2(parent, part);
  5544. try {
  5545. FS.mkdir(current);
  5546. } catch (e) {
  5547. // ignore EEXIST
  5548. }
  5549. parent = current;
  5550. }
  5551. return current;
  5552. },createFile:function (parent, name, properties, canRead, canWrite) {
  5553. var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name);
  5554. var mode = FS.getMode(canRead, canWrite);
  5555. return FS.create(path, mode);
  5556. },createDataFile:function (parent, name, data, canRead, canWrite, canOwn) {
  5557. var path = name ? PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name) : parent;
  5558. var mode = FS.getMode(canRead, canWrite);
  5559. var node = FS.create(path, mode);
  5560. if (data) {
  5561. if (typeof data === 'string') {
  5562. var arr = new Array(data.length);
  5563. for (var i = 0, len = data.length; i < len; ++i) arr[i] = data.charCodeAt(i);
  5564. data = arr;
  5565. }
  5566. // make sure we can write to the file
  5567. FS.chmod(node, mode | 146);
  5568. var stream = FS.open(node, 'w');
  5569. FS.write(stream, data, 0, data.length, 0, canOwn);
  5570. FS.close(stream);
  5571. FS.chmod(node, mode);
  5572. }
  5573. return node;
  5574. },createDevice:function (parent, name, input, output) {
  5575. var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name);
  5576. var mode = FS.getMode(!!input, !!output);
  5577. if (!FS.createDevice.major) FS.createDevice.major = 64;
  5578. var dev = FS.makedev(FS.createDevice.major++, 0);
  5579. // Create a fake device that a set of stream ops to emulate
  5580. // the old behavior.
  5581. FS.registerDevice(dev, {
  5582. open: function(stream) {
  5583. stream.seekable = false;
  5584. },
  5585. close: function(stream) {
  5586. // flush any pending line data
  5587. if (output && output.buffer && output.buffer.length) {
  5588. output(10);
  5589. }
  5590. },
  5591. read: function(stream, buffer, offset, length, pos /* ignored */) {
  5592. var bytesRead = 0;
  5593. for (var i = 0; i < length; i++) {
  5594. var result;
  5595. try {
  5596. result = input();
  5597. } catch (e) {
  5598. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  5599. }
  5600. if (result === undefined && bytesRead === 0) {
  5601. throw new FS.ErrnoError(ERRNO_CODES.EAGAIN);
  5602. }
  5603. if (result === null || result === undefined) break;
  5604. bytesRead++;
  5605. buffer[offset+i] = result;
  5606. }
  5607. if (bytesRead) {
  5608. stream.node.timestamp = Date.now();
  5609. }
  5610. return bytesRead;
  5611. },
  5612. write: function(stream, buffer, offset, length, pos) {
  5613. for (var i = 0; i < length; i++) {
  5614. try {
  5615. output(buffer[offset+i]);
  5616. } catch (e) {
  5617. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  5618. }
  5619. }
  5620. if (length) {
  5621. stream.node.timestamp = Date.now();
  5622. }
  5623. return i;
  5624. }
  5625. });
  5626. return FS.mkdev(path, mode, dev);
  5627. },createLink:function (parent, name, target, canRead, canWrite) {
  5628. var path = PATH.join2(typeof parent === 'string' ? parent : FS.getPath(parent), name);
  5629. return FS.symlink(target, path);
  5630. },forceLoadFile:function (obj) {
  5631. if (obj.isDevice || obj.isFolder || obj.link || obj.contents) return true;
  5632. var success = true;
  5633. if (typeof XMLHttpRequest !== 'undefined') {
  5634. 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.");
  5635. } else if (Module['read']) {
  5636. // Command-line.
  5637. try {
  5638. // WARNING: Can't read binary files in V8's d8 or tracemonkey's js, as
  5639. // read() will try to parse UTF8.
  5640. obj.contents = intArrayFromString(Module['read'](obj.url), true);
  5641. obj.usedBytes = obj.contents.length;
  5642. } catch (e) {
  5643. success = false;
  5644. }
  5645. } else {
  5646. throw new Error('Cannot load without read() or XMLHttpRequest.');
  5647. }
  5648. if (!success) ___setErrNo(ERRNO_CODES.EIO);
  5649. return success;
  5650. },createLazyFile:function (parent, name, url, canRead, canWrite) {
  5651. // Lazy chunked Uint8Array (implements get and length from Uint8Array). Actual getting is abstracted away for eventual reuse.
  5652. function LazyUint8Array() {
  5653. this.lengthKnown = false;
  5654. this.chunks = []; // Loaded chunks. Index is the chunk number
  5655. }
  5656. LazyUint8Array.prototype.get = function LazyUint8Array_get(idx) {
  5657. if (idx > this.length-1 || idx < 0) {
  5658. return undefined;
  5659. }
  5660. var chunkOffset = idx % this.chunkSize;
  5661. var chunkNum = (idx / this.chunkSize)|0;
  5662. return this.getter(chunkNum)[chunkOffset];
  5663. }
  5664. LazyUint8Array.prototype.setDataGetter = function LazyUint8Array_setDataGetter(getter) {
  5665. this.getter = getter;
  5666. }
  5667. LazyUint8Array.prototype.cacheLength = function LazyUint8Array_cacheLength() {
  5668. // Find length
  5669. var xhr = new XMLHttpRequest();
  5670. xhr.open('HEAD', url, false);
  5671. xhr.send(null);
  5672. if (!(xhr.status >= 200 && xhr.status < 300 || xhr.status === 304)) throw new Error("Couldn't load " + url + ". Status: " + xhr.status);
  5673. var datalength = Number(xhr.getResponseHeader("Content-length"));
  5674. var header;
  5675. var hasByteServing = (header = xhr.getResponseHeader("Accept-Ranges")) && header === "bytes";
  5676. var usesGzip = (header = xhr.getResponseHeader("Content-Encoding")) && header === "gzip";
  5677. var chunkSize = 1024*1024; // Chunk size in bytes
  5678. if (!hasByteServing) chunkSize = datalength;
  5679. // Function to get a range from the remote URL.
  5680. var doXHR = (function(from, to) {
  5681. if (from > to) throw new Error("invalid range (" + from + ", " + to + ") or no bytes requested!");
  5682. if (to > datalength-1) throw new Error("only " + datalength + " bytes available! programmer error!");
  5683. // TODO: Use mozResponseArrayBuffer, responseStream, etc. if available.
  5684. var xhr = new XMLHttpRequest();
  5685. xhr.open('GET', url, false);
  5686. if (datalength !== chunkSize) xhr.setRequestHeader("Range", "bytes=" + from + "-" + to);
  5687. // Some hints to the browser that we want binary data.
  5688. if (typeof Uint8Array != 'undefined') xhr.responseType = 'arraybuffer';
  5689. if (xhr.overrideMimeType) {
  5690. xhr.overrideMimeType('text/plain; charset=x-user-defined');
  5691. }
  5692. xhr.send(null);
  5693. if (!(xhr.status >= 200 && xhr.status < 300 || xhr.status === 304)) throw new Error("Couldn't load " + url + ". Status: " + xhr.status);
  5694. if (xhr.response !== undefined) {
  5695. return new Uint8Array(xhr.response || []);
  5696. } else {
  5697. return intArrayFromString(xhr.responseText || '', true);
  5698. }
  5699. });
  5700. var lazyArray = this;
  5701. lazyArray.setDataGetter(function(chunkNum) {
  5702. var start = chunkNum * chunkSize;
  5703. var end = (chunkNum+1) * chunkSize - 1; // including this byte
  5704. end = Math.min(end, datalength-1); // if datalength-1 is selected, this is the last block
  5705. if (typeof(lazyArray.chunks[chunkNum]) === "undefined") {
  5706. lazyArray.chunks[chunkNum] = doXHR(start, end);
  5707. }
  5708. if (typeof(lazyArray.chunks[chunkNum]) === "undefined") throw new Error("doXHR failed!");
  5709. return lazyArray.chunks[chunkNum];
  5710. });
  5711. if (usesGzip || !datalength) {
  5712. // if the server uses gzip or doesn't supply the length, we have to download the whole file to get the (uncompressed) length
  5713. chunkSize = datalength = 1; // this will force getter(0)/doXHR do download the whole file
  5714. datalength = this.getter(0).length;
  5715. chunkSize = datalength;
  5716. console.log("LazyFiles on gzip forces download of the whole file when length is accessed");
  5717. }
  5718. this._length = datalength;
  5719. this._chunkSize = chunkSize;
  5720. this.lengthKnown = true;
  5721. }
  5722. if (typeof XMLHttpRequest !== 'undefined') {
  5723. if (!ENVIRONMENT_IS_WORKER) throw 'Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc';
  5724. var lazyArray = new LazyUint8Array();
  5725. Object.defineProperties(lazyArray, {
  5726. length: {
  5727. get: function() {
  5728. if(!this.lengthKnown) {
  5729. this.cacheLength();
  5730. }
  5731. return this._length;
  5732. }
  5733. },
  5734. chunkSize: {
  5735. get: function() {
  5736. if(!this.lengthKnown) {
  5737. this.cacheLength();
  5738. }
  5739. return this._chunkSize;
  5740. }
  5741. }
  5742. });
  5743. var properties = { isDevice: false, contents: lazyArray };
  5744. } else {
  5745. var properties = { isDevice: false, url: url };
  5746. }
  5747. var node = FS.createFile(parent, name, properties, canRead, canWrite);
  5748. // This is a total hack, but I want to get this lazy file code out of the
  5749. // core of MEMFS. If we want to keep this lazy file concept I feel it should
  5750. // be its own thin LAZYFS proxying calls to MEMFS.
  5751. if (properties.contents) {
  5752. node.contents = properties.contents;
  5753. } else if (properties.url) {
  5754. node.contents = null;
  5755. node.url = properties.url;
  5756. }
  5757. // Add a function that defers querying the file size until it is asked the first time.
  5758. Object.defineProperties(node, {
  5759. usedBytes: {
  5760. get: function() { return this.contents.length; }
  5761. }
  5762. });
  5763. // override each stream op with one that tries to force load the lazy file first
  5764. var stream_ops = {};
  5765. var keys = Object.keys(node.stream_ops);
  5766. keys.forEach(function(key) {
  5767. var fn = node.stream_ops[key];
  5768. stream_ops[key] = function forceLoadLazyFile() {
  5769. if (!FS.forceLoadFile(node)) {
  5770. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  5771. }
  5772. return fn.apply(null, arguments);
  5773. };
  5774. });
  5775. // use a custom read function
  5776. stream_ops.read = function stream_ops_read(stream, buffer, offset, length, position) {
  5777. if (!FS.forceLoadFile(node)) {
  5778. throw new FS.ErrnoError(ERRNO_CODES.EIO);
  5779. }
  5780. var contents = stream.node.contents;
  5781. if (position >= contents.length)
  5782. return 0;
  5783. var size = Math.min(contents.length - position, length);
  5784. assert(size >= 0);
  5785. if (contents.slice) { // normal array
  5786. for (var i = 0; i < size; i++) {
  5787. buffer[offset + i] = contents[position + i];
  5788. }
  5789. } else {
  5790. for (var i = 0; i < size; i++) { // LazyUint8Array from sync binary XHR
  5791. buffer[offset + i] = contents.get(position + i);
  5792. }
  5793. }
  5794. return size;
  5795. };
  5796. node.stream_ops = stream_ops;
  5797. return node;
  5798. },createPreloadedFile:function (parent, name, url, canRead, canWrite, onload, onerror, dontCreateFile, canOwn, preFinish) {
  5799. Browser.init(); // XXX perhaps this method should move onto Browser?
  5800. // TODO we should allow people to just pass in a complete filename instead
  5801. // of parent and name being that we just join them anyways
  5802. var fullname = name ? PATH.resolve(PATH.join2(parent, name)) : parent;
  5803. var dep = getUniqueRunDependency('cp ' + fullname); // might have several active requests for the same fullname
  5804. function processData(byteArray) {
  5805. function finish(byteArray) {
  5806. if (preFinish) preFinish();
  5807. if (!dontCreateFile) {
  5808. FS.createDataFile(parent, name, byteArray, canRead, canWrite, canOwn);
  5809. }
  5810. if (onload) onload();
  5811. removeRunDependency(dep);
  5812. }
  5813. var handled = false;
  5814. Module['preloadPlugins'].forEach(function(plugin) {
  5815. if (handled) return;
  5816. if (plugin['canHandle'](fullname)) {
  5817. plugin['handle'](byteArray, fullname, finish, function() {
  5818. if (onerror) onerror();
  5819. removeRunDependency(dep);
  5820. });
  5821. handled = true;
  5822. }
  5823. });
  5824. if (!handled) finish(byteArray);
  5825. }
  5826. addRunDependency(dep);
  5827. if (typeof url == 'string') {
  5828. Browser.asyncLoad(url, function(byteArray) {
  5829. processData(byteArray);
  5830. }, onerror);
  5831. } else {
  5832. processData(url);
  5833. }
  5834. },indexedDB:function () {
  5835. return window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB;
  5836. },DB_NAME:function () {
  5837. return 'EM_FS_' + window.location.pathname;
  5838. },DB_VERSION:20,DB_STORE_NAME:"FILE_DATA",saveFilesToDB:function (paths, onload, onerror) {
  5839. onload = onload || function(){};
  5840. onerror = onerror || function(){};
  5841. var indexedDB = FS.indexedDB();
  5842. try {
  5843. var openRequest = indexedDB.open(FS.DB_NAME(), FS.DB_VERSION);
  5844. } catch (e) {
  5845. return onerror(e);
  5846. }
  5847. openRequest.onupgradeneeded = function openRequest_onupgradeneeded() {
  5848. console.log('creating db');
  5849. var db = openRequest.result;
  5850. db.createObjectStore(FS.DB_STORE_NAME);
  5851. };
  5852. openRequest.onsuccess = function openRequest_onsuccess() {
  5853. var db = openRequest.result;
  5854. var transaction = db.transaction([FS.DB_STORE_NAME], 'readwrite');
  5855. var files = transaction.objectStore(FS.DB_STORE_NAME);
  5856. var ok = 0, fail = 0, total = paths.length;
  5857. function finish() {
  5858. if (fail == 0) onload(); else onerror();
  5859. }
  5860. paths.forEach(function(path) {
  5861. var putRequest = files.put(FS.analyzePath(path).object.contents, path);
  5862. putRequest.onsuccess = function putRequest_onsuccess() { ok++; if (ok + fail == total) finish() };
  5863. putRequest.onerror = function putRequest_onerror() { fail++; if (ok + fail == total) finish() };
  5864. });
  5865. transaction.onerror = onerror;
  5866. };
  5867. openRequest.onerror = onerror;
  5868. },loadFilesFromDB:function (paths, onload, onerror) {
  5869. onload = onload || function(){};
  5870. onerror = onerror || function(){};
  5871. var indexedDB = FS.indexedDB();
  5872. try {
  5873. var openRequest = indexedDB.open(FS.DB_NAME(), FS.DB_VERSION);
  5874. } catch (e) {
  5875. return onerror(e);
  5876. }
  5877. openRequest.onupgradeneeded = onerror; // no database to load from
  5878. openRequest.onsuccess = function openRequest_onsuccess() {
  5879. var db = openRequest.result;
  5880. try {
  5881. var transaction = db.transaction([FS.DB_STORE_NAME], 'readonly');
  5882. } catch(e) {
  5883. onerror(e);
  5884. return;
  5885. }
  5886. var files = transaction.objectStore(FS.DB_STORE_NAME);
  5887. var ok = 0, fail = 0, total = paths.length;
  5888. function finish() {
  5889. if (fail == 0) onload(); else onerror();
  5890. }
  5891. paths.forEach(function(path) {
  5892. var getRequest = files.get(path);
  5893. getRequest.onsuccess = function getRequest_onsuccess() {
  5894. if (FS.analyzePath(path).exists) {
  5895. FS.unlink(path);
  5896. }
  5897. FS.createDataFile(PATH.dirname(path), PATH.basename(path), getRequest.result, true, true, true);
  5898. ok++;
  5899. if (ok + fail == total) finish();
  5900. };
  5901. getRequest.onerror = function getRequest_onerror() { fail++; if (ok + fail == total) finish() };
  5902. });
  5903. transaction.onerror = onerror;
  5904. };
  5905. openRequest.onerror = onerror;
  5906. }};var SYSCALLS={DEFAULT_POLLMASK:5,mappings:{},umask:511,calculateAt:function (dirfd, path) {
  5907. if (path[0] !== '/') {
  5908. // relative path
  5909. var dir;
  5910. if (dirfd === -100) {
  5911. dir = FS.cwd();
  5912. } else {
  5913. var dirstream = FS.getStream(dirfd);
  5914. if (!dirstream) throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  5915. dir = dirstream.path;
  5916. }
  5917. path = PATH.join2(dir, path);
  5918. }
  5919. return path;
  5920. },doStat:function (func, path, buf) {
  5921. try {
  5922. var stat = func(path);
  5923. } catch (e) {
  5924. if (e && e.node && PATH.normalize(path) !== PATH.normalize(FS.getPath(e.node))) {
  5925. // an error occurred while trying to look up the path; we should just report ENOTDIR
  5926. return -ERRNO_CODES.ENOTDIR;
  5927. }
  5928. throw e;
  5929. }
  5930. HEAP32[((buf)>>2)]=stat.dev;
  5931. HEAP32[(((buf)+(4))>>2)]=0;
  5932. HEAP32[(((buf)+(8))>>2)]=stat.ino;
  5933. HEAP32[(((buf)+(12))>>2)]=stat.mode;
  5934. HEAP32[(((buf)+(16))>>2)]=stat.nlink;
  5935. HEAP32[(((buf)+(20))>>2)]=stat.uid;
  5936. HEAP32[(((buf)+(24))>>2)]=stat.gid;
  5937. HEAP32[(((buf)+(28))>>2)]=stat.rdev;
  5938. HEAP32[(((buf)+(32))>>2)]=0;
  5939. HEAP32[(((buf)+(36))>>2)]=stat.size;
  5940. HEAP32[(((buf)+(40))>>2)]=4096;
  5941. HEAP32[(((buf)+(44))>>2)]=stat.blocks;
  5942. HEAP32[(((buf)+(48))>>2)]=(stat.atime.getTime() / 1000)|0;
  5943. HEAP32[(((buf)+(52))>>2)]=0;
  5944. HEAP32[(((buf)+(56))>>2)]=(stat.mtime.getTime() / 1000)|0;
  5945. HEAP32[(((buf)+(60))>>2)]=0;
  5946. HEAP32[(((buf)+(64))>>2)]=(stat.ctime.getTime() / 1000)|0;
  5947. HEAP32[(((buf)+(68))>>2)]=0;
  5948. HEAP32[(((buf)+(72))>>2)]=stat.ino;
  5949. return 0;
  5950. },doMsync:function (addr, stream, len, flags) {
  5951. var buffer = new Uint8Array(HEAPU8.subarray(addr, addr + len));
  5952. FS.msync(stream, buffer, 0, len, flags);
  5953. },doMkdir:function (path, mode) {
  5954. // remove a trailing slash, if one - /a/b/ has basename of '', but
  5955. // we want to create b in the context of this function
  5956. path = PATH.normalize(path);
  5957. if (path[path.length-1] === '/') path = path.substr(0, path.length-1);
  5958. FS.mkdir(path, mode, 0);
  5959. return 0;
  5960. },doMknod:function (path, mode, dev) {
  5961. // we don't want this in the JS API as it uses mknod to create all nodes.
  5962. switch (mode & 61440) {
  5963. case 32768:
  5964. case 8192:
  5965. case 24576:
  5966. case 4096:
  5967. case 49152:
  5968. break;
  5969. default: return -ERRNO_CODES.EINVAL;
  5970. }
  5971. FS.mknod(path, mode, dev);
  5972. return 0;
  5973. },doReadlink:function (path, buf, bufsize) {
  5974. if (bufsize <= 0) return -ERRNO_CODES.EINVAL;
  5975. var ret = FS.readlink(path);
  5976. var len = Math.min(bufsize, lengthBytesUTF8(ret));
  5977. var endChar = HEAP8[buf+len];
  5978. stringToUTF8(ret, buf, bufsize+1);
  5979. // readlink is one of the rare functions that write out a C string, but does never append a null to the output buffer(!)
  5980. // stringToUTF8() always appends a null byte, so restore the character under the null byte after the write.
  5981. HEAP8[buf+len] = endChar;
  5982. return len;
  5983. },doAccess:function (path, amode) {
  5984. if (amode & ~7) {
  5985. // need a valid mode
  5986. return -ERRNO_CODES.EINVAL;
  5987. }
  5988. var node;
  5989. var lookup = FS.lookupPath(path, { follow: true });
  5990. node = lookup.node;
  5991. var perms = '';
  5992. if (amode & 4) perms += 'r';
  5993. if (amode & 2) perms += 'w';
  5994. if (amode & 1) perms += 'x';
  5995. if (perms /* otherwise, they've just passed F_OK */ && FS.nodePermissions(node, perms)) {
  5996. return -ERRNO_CODES.EACCES;
  5997. }
  5998. return 0;
  5999. },doDup:function (path, flags, suggestFD) {
  6000. var suggest = FS.getStream(suggestFD);
  6001. if (suggest) FS.close(suggest);
  6002. return FS.open(path, flags, 0, suggestFD, suggestFD).fd;
  6003. },doReadv:function (stream, iov, iovcnt, offset) {
  6004. var ret = 0;
  6005. for (var i = 0; i < iovcnt; i++) {
  6006. var ptr = HEAP32[(((iov)+(i*8))>>2)];
  6007. var len = HEAP32[(((iov)+(i*8 + 4))>>2)];
  6008. var curr = FS.read(stream, HEAP8,ptr, len, offset);
  6009. if (curr < 0) return -1;
  6010. ret += curr;
  6011. if (curr < len) break; // nothing more to read
  6012. }
  6013. return ret;
  6014. },doWritev:function (stream, iov, iovcnt, offset) {
  6015. var ret = 0;
  6016. for (var i = 0; i < iovcnt; i++) {
  6017. var ptr = HEAP32[(((iov)+(i*8))>>2)];
  6018. var len = HEAP32[(((iov)+(i*8 + 4))>>2)];
  6019. var curr = FS.write(stream, HEAP8,ptr, len, offset);
  6020. if (curr < 0) return -1;
  6021. ret += curr;
  6022. }
  6023. return ret;
  6024. },varargs:0,get:function (varargs) {
  6025. SYSCALLS.varargs += 4;
  6026. var ret = HEAP32[(((SYSCALLS.varargs)-(4))>>2)];
  6027. return ret;
  6028. },getStr:function () {
  6029. var ret = Pointer_stringify(SYSCALLS.get());
  6030. return ret;
  6031. },getStreamFromFD:function () {
  6032. var stream = FS.getStream(SYSCALLS.get());
  6033. if (!stream) throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  6034. return stream;
  6035. },getSocketFromFD:function () {
  6036. var socket = SOCKFS.getSocket(SYSCALLS.get());
  6037. if (!socket) throw new FS.ErrnoError(ERRNO_CODES.EBADF);
  6038. return socket;
  6039. },getSocketAddress:function (allowNull) {
  6040. var addrp = SYSCALLS.get(), addrlen = SYSCALLS.get();
  6041. if (allowNull && addrp === 0) return null;
  6042. var info = __read_sockaddr(addrp, addrlen);
  6043. if (info.errno) throw new FS.ErrnoError(info.errno);
  6044. info.addr = DNS.lookup_addr(info.addr) || info.addr;
  6045. return info;
  6046. },get64:function () {
  6047. var low = SYSCALLS.get(), high = SYSCALLS.get();
  6048. if (low >= 0) assert(high === 0);
  6049. else assert(high === -1);
  6050. return low;
  6051. },getZero:function () {
  6052. assert(SYSCALLS.get() === 0);
  6053. }};function ___syscall54(which, varargs) {SYSCALLS.varargs = varargs;
  6054. try {
  6055. // ioctl
  6056. var stream = SYSCALLS.getStreamFromFD(), op = SYSCALLS.get();
  6057. switch (op) {
  6058. case 21505: {
  6059. if (!stream.tty) return -ERRNO_CODES.ENOTTY;
  6060. return 0;
  6061. }
  6062. case 21506: {
  6063. if (!stream.tty) return -ERRNO_CODES.ENOTTY;
  6064. return 0; // no-op, not actually adjusting terminal settings
  6065. }
  6066. case 21519: {
  6067. if (!stream.tty) return -ERRNO_CODES.ENOTTY;
  6068. var argp = SYSCALLS.get();
  6069. HEAP32[((argp)>>2)]=0;
  6070. return 0;
  6071. }
  6072. case 21520: {
  6073. if (!stream.tty) return -ERRNO_CODES.ENOTTY;
  6074. return -ERRNO_CODES.EINVAL; // not supported
  6075. }
  6076. case 21531: {
  6077. var argp = SYSCALLS.get();
  6078. return FS.ioctl(stream, op, argp);
  6079. }
  6080. case 21523: {
  6081. // TODO: in theory we should write to the winsize struct that gets
  6082. // passed in, but for now musl doesn't read anything on it
  6083. if (!stream.tty) return -ERRNO_CODES.ENOTTY;
  6084. return 0;
  6085. }
  6086. default: abort('bad ioctl syscall ' + op);
  6087. }
  6088. } catch (e) {
  6089. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  6090. return -e.errno;
  6091. }
  6092. }
  6093. function _emscripten_glSampleCoverage(value, invert) {
  6094. GLctx.sampleCoverage(value, !!invert);
  6095. }
  6096. function _glDeleteTextures(n, textures) {
  6097. for (var i = 0; i < n; i++) {
  6098. var id = HEAP32[(((textures)+(i*4))>>2)];
  6099. var texture = GL.textures[id];
  6100. if (!texture) continue; // GL spec: "glDeleteTextures silently ignores 0s and names that do not correspond to existing textures".
  6101. GLctx.deleteTexture(texture);
  6102. texture.name = 0;
  6103. GL.textures[id] = null;
  6104. }
  6105. }
  6106. function _emscripten_glFrustum() {
  6107. Module['printErr']('missing function: emscripten_glFrustum'); abort(-1);
  6108. }
  6109. function _glVertexAttrib4f(x0, x1, x2, x3, x4) { GLctx['vertexAttrib4f'](x0, x1, x2, x3, x4) }
  6110. function _glfwSetWindowSizeCallback(winid, cbfun) {
  6111. GLFW.setWindowSizeCallback(winid, cbfun);
  6112. }
  6113. function _emscripten_glGetTexParameterfv(target, pname, params) {
  6114. if (!params) {
  6115. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  6116. // if p == null, issue a GL error to notify user about it.
  6117. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  6118. return;
  6119. }
  6120. HEAPF32[((params)>>2)]=GLctx.getTexParameter(target, pname);
  6121. }
  6122. function _emscripten_glUniform4i(location, v0, v1, v2, v3) {
  6123. GLctx.uniform4i(GL.uniforms[location], v0, v1, v2, v3);
  6124. }
  6125. function _emscripten_glBindRenderbuffer(target, renderbuffer) {
  6126. GLctx.bindRenderbuffer(target, renderbuffer ? GL.renderbuffers[renderbuffer] : null);
  6127. }
  6128. function _emscripten_glViewport(x0, x1, x2, x3) { GLctx['viewport'](x0, x1, x2, x3) }
  6129. 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 () {
  6130. if (typeof window !== 'undefined') {
  6131. window.addEventListener("gamepadconnected", function() { ++JSEvents.numGamepadsConnected; });
  6132. window.addEventListener("gamepaddisconnected", function() { --JSEvents.numGamepadsConnected; });
  6133. }
  6134. },registerRemoveEventListeners:function () {
  6135. if (!JSEvents.removeEventListenersRegistered) {
  6136. __ATEXIT__.push(function() {
  6137. for(var i = JSEvents.eventHandlers.length-1; i >= 0; --i) {
  6138. JSEvents._removeHandler(i);
  6139. }
  6140. });
  6141. JSEvents.removeEventListenersRegistered = true;
  6142. }
  6143. },findEventTarget:function (target) {
  6144. if (target) {
  6145. if (typeof target == "number") {
  6146. target = Pointer_stringify(target);
  6147. }
  6148. if (target == '#window') return window;
  6149. else if (target == '#document') return document;
  6150. else if (target == '#screen') return window.screen;
  6151. else if (target == '#canvas') return Module['canvas'];
  6152. if (typeof target == 'string') return document.getElementById(target);
  6153. else return target;
  6154. } else {
  6155. // The sensible target varies between events, but use window as the default
  6156. // since DOM events mostly can default to that. Specific callback registrations
  6157. // override their own defaults.
  6158. return window;
  6159. }
  6160. },deferredCalls:[],deferCall:function (targetFunction, precedence, argsList) {
  6161. function arraysHaveEqualContent(arrA, arrB) {
  6162. if (arrA.length != arrB.length) return false;
  6163. for(var i in arrA) {
  6164. if (arrA[i] != arrB[i]) return false;
  6165. }
  6166. return true;
  6167. }
  6168. // Test if the given call was already queued, and if so, don't add it again.
  6169. for(var i in JSEvents.deferredCalls) {
  6170. var call = JSEvents.deferredCalls[i];
  6171. if (call.targetFunction == targetFunction && arraysHaveEqualContent(call.argsList, argsList)) {
  6172. return;
  6173. }
  6174. }
  6175. JSEvents.deferredCalls.push({
  6176. targetFunction: targetFunction,
  6177. precedence: precedence,
  6178. argsList: argsList
  6179. });
  6180. JSEvents.deferredCalls.sort(function(x,y) { return x.precedence < y.precedence; });
  6181. },removeDeferredCalls:function (targetFunction) {
  6182. for(var i = 0; i < JSEvents.deferredCalls.length; ++i) {
  6183. if (JSEvents.deferredCalls[i].targetFunction == targetFunction) {
  6184. JSEvents.deferredCalls.splice(i, 1);
  6185. --i;
  6186. }
  6187. }
  6188. },canPerformEventHandlerRequests:function () {
  6189. return JSEvents.inEventHandler && JSEvents.currentEventHandler.allowsDeferredCalls;
  6190. },runDeferredCalls:function () {
  6191. if (!JSEvents.canPerformEventHandlerRequests()) {
  6192. return;
  6193. }
  6194. for(var i = 0; i < JSEvents.deferredCalls.length; ++i) {
  6195. var call = JSEvents.deferredCalls[i];
  6196. JSEvents.deferredCalls.splice(i, 1);
  6197. --i;
  6198. call.targetFunction.apply(this, call.argsList);
  6199. }
  6200. },inEventHandler:0,currentEventHandler:null,eventHandlers:[],isInternetExplorer:function () { return navigator.userAgent.indexOf('MSIE') !== -1 || navigator.appVersion.indexOf('Trident/') > 0; },removeAllHandlersOnTarget:function (target, eventTypeString) {
  6201. for(var i = 0; i < JSEvents.eventHandlers.length; ++i) {
  6202. if (JSEvents.eventHandlers[i].target == target &&
  6203. (!eventTypeString || eventTypeString == JSEvents.eventHandlers[i].eventTypeString)) {
  6204. JSEvents._removeHandler(i--);
  6205. }
  6206. }
  6207. },_removeHandler:function (i) {
  6208. var h = JSEvents.eventHandlers[i];
  6209. h.target.removeEventListener(h.eventTypeString, h.eventListenerFunc, h.useCapture);
  6210. JSEvents.eventHandlers.splice(i, 1);
  6211. },registerOrRemoveHandler:function (eventHandler) {
  6212. var jsEventHandler = function jsEventHandler(event) {
  6213. // Increment nesting count for the event handler.
  6214. ++JSEvents.inEventHandler;
  6215. JSEvents.currentEventHandler = eventHandler;
  6216. // Process any old deferred calls the user has placed.
  6217. JSEvents.runDeferredCalls();
  6218. // Process the actual event, calls back to user C code handler.
  6219. eventHandler.handlerFunc(event);
  6220. // Process any new deferred calls that were placed right now from this event handler.
  6221. JSEvents.runDeferredCalls();
  6222. // Out of event handler - restore nesting count.
  6223. --JSEvents.inEventHandler;
  6224. }
  6225. if (eventHandler.callbackfunc) {
  6226. eventHandler.eventListenerFunc = jsEventHandler;
  6227. eventHandler.target.addEventListener(eventHandler.eventTypeString, jsEventHandler, eventHandler.useCapture);
  6228. JSEvents.eventHandlers.push(eventHandler);
  6229. JSEvents.registerRemoveEventListeners();
  6230. } else {
  6231. for(var i = 0; i < JSEvents.eventHandlers.length; ++i) {
  6232. if (JSEvents.eventHandlers[i].target == eventHandler.target
  6233. && JSEvents.eventHandlers[i].eventTypeString == eventHandler.eventTypeString) {
  6234. JSEvents._removeHandler(i--);
  6235. }
  6236. }
  6237. }
  6238. },registerKeyEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6239. if (!JSEvents.keyEvent) {
  6240. JSEvents.keyEvent = _malloc( 164 );
  6241. }
  6242. var handlerFunc = function(event) {
  6243. var e = event || window.event;
  6244. stringToUTF8(e.key ? e.key : "", JSEvents.keyEvent + 0, 32);
  6245. stringToUTF8(e.code ? e.code : "", JSEvents.keyEvent + 32, 32);
  6246. HEAP32[(((JSEvents.keyEvent)+(64))>>2)]=e.location;
  6247. HEAP32[(((JSEvents.keyEvent)+(68))>>2)]=e.ctrlKey;
  6248. HEAP32[(((JSEvents.keyEvent)+(72))>>2)]=e.shiftKey;
  6249. HEAP32[(((JSEvents.keyEvent)+(76))>>2)]=e.altKey;
  6250. HEAP32[(((JSEvents.keyEvent)+(80))>>2)]=e.metaKey;
  6251. HEAP32[(((JSEvents.keyEvent)+(84))>>2)]=e.repeat;
  6252. stringToUTF8(e.locale ? e.locale : "", JSEvents.keyEvent + 88, 32);
  6253. stringToUTF8(e.char ? e.char : "", JSEvents.keyEvent + 120, 32);
  6254. HEAP32[(((JSEvents.keyEvent)+(152))>>2)]=e.charCode;
  6255. HEAP32[(((JSEvents.keyEvent)+(156))>>2)]=e.keyCode;
  6256. HEAP32[(((JSEvents.keyEvent)+(160))>>2)]=e.which;
  6257. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.keyEvent, userData);
  6258. if (shouldCancel) {
  6259. e.preventDefault();
  6260. }
  6261. };
  6262. var eventHandler = {
  6263. target: JSEvents.findEventTarget(target),
  6264. allowsDeferredCalls: JSEvents.isInternetExplorer() ? false : true, // MSIE doesn't allow fullscreen and pointerlock requests from key handlers, others do.
  6265. eventTypeString: eventTypeString,
  6266. callbackfunc: callbackfunc,
  6267. handlerFunc: handlerFunc,
  6268. useCapture: useCapture
  6269. };
  6270. JSEvents.registerOrRemoveHandler(eventHandler);
  6271. },getBoundingClientRectOrZeros:function (target) {
  6272. return target.getBoundingClientRect ? target.getBoundingClientRect() : { left: 0, top: 0 };
  6273. },fillMouseEventData:function (eventStruct, e, target) {
  6274. HEAPF64[((eventStruct)>>3)]=JSEvents.tick();
  6275. HEAP32[(((eventStruct)+(8))>>2)]=e.screenX;
  6276. HEAP32[(((eventStruct)+(12))>>2)]=e.screenY;
  6277. HEAP32[(((eventStruct)+(16))>>2)]=e.clientX;
  6278. HEAP32[(((eventStruct)+(20))>>2)]=e.clientY;
  6279. HEAP32[(((eventStruct)+(24))>>2)]=e.ctrlKey;
  6280. HEAP32[(((eventStruct)+(28))>>2)]=e.shiftKey;
  6281. HEAP32[(((eventStruct)+(32))>>2)]=e.altKey;
  6282. HEAP32[(((eventStruct)+(36))>>2)]=e.metaKey;
  6283. HEAP16[(((eventStruct)+(40))>>1)]=e.button;
  6284. HEAP16[(((eventStruct)+(42))>>1)]=e.buttons;
  6285. HEAP32[(((eventStruct)+(44))>>2)]=e["movementX"] || e["mozMovementX"] || e["webkitMovementX"] || (e.screenX-JSEvents.previousScreenX);
  6286. HEAP32[(((eventStruct)+(48))>>2)]=e["movementY"] || e["mozMovementY"] || e["webkitMovementY"] || (e.screenY-JSEvents.previousScreenY);
  6287. if (Module['canvas']) {
  6288. var rect = Module['canvas'].getBoundingClientRect();
  6289. HEAP32[(((eventStruct)+(60))>>2)]=e.clientX - rect.left;
  6290. HEAP32[(((eventStruct)+(64))>>2)]=e.clientY - rect.top;
  6291. } else { // Canvas is not initialized, return 0.
  6292. HEAP32[(((eventStruct)+(60))>>2)]=0;
  6293. HEAP32[(((eventStruct)+(64))>>2)]=0;
  6294. }
  6295. if (target) {
  6296. var rect = JSEvents.getBoundingClientRectOrZeros(target);
  6297. HEAP32[(((eventStruct)+(52))>>2)]=e.clientX - rect.left;
  6298. HEAP32[(((eventStruct)+(56))>>2)]=e.clientY - rect.top;
  6299. } else { // No specific target passed, return 0.
  6300. HEAP32[(((eventStruct)+(52))>>2)]=0;
  6301. HEAP32[(((eventStruct)+(56))>>2)]=0;
  6302. }
  6303. // wheel and mousewheel events contain wrong screenX/screenY on chrome/opera
  6304. // https://github.com/kripken/emscripten/pull/4997
  6305. // https://bugs.chromium.org/p/chromium/issues/detail?id=699956
  6306. if (e.type !== 'wheel' && e.type !== 'mousewheel') {
  6307. JSEvents.previousScreenX = e.screenX;
  6308. JSEvents.previousScreenY = e.screenY;
  6309. }
  6310. },registerMouseEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6311. if (!JSEvents.mouseEvent) {
  6312. JSEvents.mouseEvent = _malloc( 72 );
  6313. }
  6314. target = JSEvents.findEventTarget(target);
  6315. var handlerFunc = function(event) {
  6316. var e = event || window.event;
  6317. JSEvents.fillMouseEventData(JSEvents.mouseEvent, e, target);
  6318. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.mouseEvent, userData);
  6319. if (shouldCancel) {
  6320. e.preventDefault();
  6321. }
  6322. };
  6323. var eventHandler = {
  6324. target: target,
  6325. allowsDeferredCalls: eventTypeString != 'mousemove' && eventTypeString != 'mouseenter' && eventTypeString != 'mouseleave', // Mouse move events do not allow fullscreen/pointer lock requests to be handled in them!
  6326. eventTypeString: eventTypeString,
  6327. callbackfunc: callbackfunc,
  6328. handlerFunc: handlerFunc,
  6329. useCapture: useCapture
  6330. };
  6331. // In IE, mousedown events don't either allow deferred calls to be run!
  6332. if (JSEvents.isInternetExplorer() && eventTypeString == 'mousedown') eventHandler.allowsDeferredCalls = false;
  6333. JSEvents.registerOrRemoveHandler(eventHandler);
  6334. },registerWheelEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6335. if (!JSEvents.wheelEvent) {
  6336. JSEvents.wheelEvent = _malloc( 104 );
  6337. }
  6338. target = JSEvents.findEventTarget(target);
  6339. // The DOM Level 3 events spec event 'wheel'
  6340. var wheelHandlerFunc = function(event) {
  6341. var e = event || window.event;
  6342. JSEvents.fillMouseEventData(JSEvents.wheelEvent, e, target);
  6343. HEAPF64[(((JSEvents.wheelEvent)+(72))>>3)]=e["deltaX"];
  6344. HEAPF64[(((JSEvents.wheelEvent)+(80))>>3)]=e["deltaY"];
  6345. HEAPF64[(((JSEvents.wheelEvent)+(88))>>3)]=e["deltaZ"];
  6346. HEAP32[(((JSEvents.wheelEvent)+(96))>>2)]=e["deltaMode"];
  6347. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.wheelEvent, userData);
  6348. if (shouldCancel) {
  6349. e.preventDefault();
  6350. }
  6351. };
  6352. // The 'mousewheel' event as implemented in Safari 6.0.5
  6353. var mouseWheelHandlerFunc = function(event) {
  6354. var e = event || window.event;
  6355. JSEvents.fillMouseEventData(JSEvents.wheelEvent, e, target);
  6356. HEAPF64[(((JSEvents.wheelEvent)+(72))>>3)]=e["wheelDeltaX"] || 0;
  6357. 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. */;
  6358. HEAPF64[(((JSEvents.wheelEvent)+(88))>>3)]=0 /* Not available */;
  6359. HEAP32[(((JSEvents.wheelEvent)+(96))>>2)]=0 /* DOM_DELTA_PIXEL */;
  6360. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.wheelEvent, userData);
  6361. if (shouldCancel) {
  6362. e.preventDefault();
  6363. }
  6364. };
  6365. var eventHandler = {
  6366. target: target,
  6367. allowsDeferredCalls: true,
  6368. eventTypeString: eventTypeString,
  6369. callbackfunc: callbackfunc,
  6370. handlerFunc: (eventTypeString == 'wheel') ? wheelHandlerFunc : mouseWheelHandlerFunc,
  6371. useCapture: useCapture
  6372. };
  6373. JSEvents.registerOrRemoveHandler(eventHandler);
  6374. },pageScrollPos:function () {
  6375. if (window.pageXOffset > 0 || window.pageYOffset > 0) {
  6376. return [window.pageXOffset, window.pageYOffset];
  6377. }
  6378. if (typeof document.documentElement.scrollLeft !== 'undefined' || typeof document.documentElement.scrollTop !== 'undefined') {
  6379. return [document.documentElement.scrollLeft, document.documentElement.scrollTop];
  6380. }
  6381. return [document.body.scrollLeft|0, document.body.scrollTop|0];
  6382. },registerUiEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6383. if (!JSEvents.uiEvent) {
  6384. JSEvents.uiEvent = _malloc( 36 );
  6385. }
  6386. if (eventTypeString == "scroll" && !target) {
  6387. target = document; // By default read scroll events on document rather than window.
  6388. } else {
  6389. target = JSEvents.findEventTarget(target);
  6390. }
  6391. var handlerFunc = function(event) {
  6392. var e = event || window.event;
  6393. if (e.target != target) {
  6394. // Never take ui events such as scroll via a 'bubbled' route, but always from the direct element that
  6395. // was targeted. Otherwise e.g. if app logs a message in response to a page scroll, the Emscripten log
  6396. // message box could cause to scroll, generating a new (bubbled) scroll message, causing a new log print,
  6397. // causing a new scroll, etc..
  6398. return;
  6399. }
  6400. var scrollPos = JSEvents.pageScrollPos();
  6401. HEAP32[((JSEvents.uiEvent)>>2)]=e.detail;
  6402. HEAP32[(((JSEvents.uiEvent)+(4))>>2)]=document.body.clientWidth;
  6403. HEAP32[(((JSEvents.uiEvent)+(8))>>2)]=document.body.clientHeight;
  6404. HEAP32[(((JSEvents.uiEvent)+(12))>>2)]=window.innerWidth;
  6405. HEAP32[(((JSEvents.uiEvent)+(16))>>2)]=window.innerHeight;
  6406. HEAP32[(((JSEvents.uiEvent)+(20))>>2)]=window.outerWidth;
  6407. HEAP32[(((JSEvents.uiEvent)+(24))>>2)]=window.outerHeight;
  6408. HEAP32[(((JSEvents.uiEvent)+(28))>>2)]=scrollPos[0];
  6409. HEAP32[(((JSEvents.uiEvent)+(32))>>2)]=scrollPos[1];
  6410. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.uiEvent, userData);
  6411. if (shouldCancel) {
  6412. e.preventDefault();
  6413. }
  6414. };
  6415. var eventHandler = {
  6416. target: target,
  6417. allowsDeferredCalls: false, // Neither scroll or resize events allow running requests inside them.
  6418. eventTypeString: eventTypeString,
  6419. callbackfunc: callbackfunc,
  6420. handlerFunc: handlerFunc,
  6421. useCapture: useCapture
  6422. };
  6423. JSEvents.registerOrRemoveHandler(eventHandler);
  6424. },getNodeNameForTarget:function (target) {
  6425. if (!target) return '';
  6426. if (target == window) return '#window';
  6427. if (target == window.screen) return '#screen';
  6428. return (target && target.nodeName) ? target.nodeName : '';
  6429. },registerFocusEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6430. if (!JSEvents.focusEvent) {
  6431. JSEvents.focusEvent = _malloc( 256 );
  6432. }
  6433. var handlerFunc = function(event) {
  6434. var e = event || window.event;
  6435. var nodeName = JSEvents.getNodeNameForTarget(e.target);
  6436. var id = e.target.id ? e.target.id : '';
  6437. stringToUTF8(nodeName, JSEvents.focusEvent + 0, 128);
  6438. stringToUTF8(id, JSEvents.focusEvent + 128, 128);
  6439. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.focusEvent, userData);
  6440. if (shouldCancel) {
  6441. e.preventDefault();
  6442. }
  6443. };
  6444. var eventHandler = {
  6445. target: JSEvents.findEventTarget(target),
  6446. allowsDeferredCalls: false,
  6447. eventTypeString: eventTypeString,
  6448. callbackfunc: callbackfunc,
  6449. handlerFunc: handlerFunc,
  6450. useCapture: useCapture
  6451. };
  6452. JSEvents.registerOrRemoveHandler(eventHandler);
  6453. },tick:function () {
  6454. if (window['performance'] && window['performance']['now']) return window['performance']['now']();
  6455. else return Date.now();
  6456. },registerDeviceOrientationEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6457. if (!JSEvents.deviceOrientationEvent) {
  6458. JSEvents.deviceOrientationEvent = _malloc( 40 );
  6459. }
  6460. var handlerFunc = function(event) {
  6461. var e = event || window.event;
  6462. HEAPF64[((JSEvents.deviceOrientationEvent)>>3)]=JSEvents.tick();
  6463. HEAPF64[(((JSEvents.deviceOrientationEvent)+(8))>>3)]=e.alpha;
  6464. HEAPF64[(((JSEvents.deviceOrientationEvent)+(16))>>3)]=e.beta;
  6465. HEAPF64[(((JSEvents.deviceOrientationEvent)+(24))>>3)]=e.gamma;
  6466. HEAP32[(((JSEvents.deviceOrientationEvent)+(32))>>2)]=e.absolute;
  6467. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.deviceOrientationEvent, userData);
  6468. if (shouldCancel) {
  6469. e.preventDefault();
  6470. }
  6471. };
  6472. var eventHandler = {
  6473. target: JSEvents.findEventTarget(target),
  6474. allowsDeferredCalls: false,
  6475. eventTypeString: eventTypeString,
  6476. callbackfunc: callbackfunc,
  6477. handlerFunc: handlerFunc,
  6478. useCapture: useCapture
  6479. };
  6480. JSEvents.registerOrRemoveHandler(eventHandler);
  6481. },registerDeviceMotionEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6482. if (!JSEvents.deviceMotionEvent) {
  6483. JSEvents.deviceMotionEvent = _malloc( 80 );
  6484. }
  6485. var handlerFunc = function(event) {
  6486. var e = event || window.event;
  6487. HEAPF64[((JSEvents.deviceOrientationEvent)>>3)]=JSEvents.tick();
  6488. HEAPF64[(((JSEvents.deviceMotionEvent)+(8))>>3)]=e.acceleration.x;
  6489. HEAPF64[(((JSEvents.deviceMotionEvent)+(16))>>3)]=e.acceleration.y;
  6490. HEAPF64[(((JSEvents.deviceMotionEvent)+(24))>>3)]=e.acceleration.z;
  6491. HEAPF64[(((JSEvents.deviceMotionEvent)+(32))>>3)]=e.accelerationIncludingGravity.x;
  6492. HEAPF64[(((JSEvents.deviceMotionEvent)+(40))>>3)]=e.accelerationIncludingGravity.y;
  6493. HEAPF64[(((JSEvents.deviceMotionEvent)+(48))>>3)]=e.accelerationIncludingGravity.z;
  6494. HEAPF64[(((JSEvents.deviceMotionEvent)+(56))>>3)]=e.rotationRate.alpha;
  6495. HEAPF64[(((JSEvents.deviceMotionEvent)+(64))>>3)]=e.rotationRate.beta;
  6496. HEAPF64[(((JSEvents.deviceMotionEvent)+(72))>>3)]=e.rotationRate.gamma;
  6497. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.deviceMotionEvent, userData);
  6498. if (shouldCancel) {
  6499. e.preventDefault();
  6500. }
  6501. };
  6502. var eventHandler = {
  6503. target: JSEvents.findEventTarget(target),
  6504. allowsDeferredCalls: false,
  6505. eventTypeString: eventTypeString,
  6506. callbackfunc: callbackfunc,
  6507. handlerFunc: handlerFunc,
  6508. useCapture: useCapture
  6509. };
  6510. JSEvents.registerOrRemoveHandler(eventHandler);
  6511. },screenOrientation:function () {
  6512. if (!window.screen) return undefined;
  6513. return window.screen.orientation || window.screen.mozOrientation || window.screen.webkitOrientation || window.screen.msOrientation;
  6514. },fillOrientationChangeEventData:function (eventStruct, e) {
  6515. var orientations = ["portrait-primary", "portrait-secondary", "landscape-primary", "landscape-secondary"];
  6516. var orientations2 = ["portrait", "portrait", "landscape", "landscape"];
  6517. var orientationString = JSEvents.screenOrientation();
  6518. var orientation = orientations.indexOf(orientationString);
  6519. if (orientation == -1) {
  6520. orientation = orientations2.indexOf(orientationString);
  6521. }
  6522. HEAP32[((eventStruct)>>2)]=1 << orientation;
  6523. HEAP32[(((eventStruct)+(4))>>2)]=window.orientation;
  6524. },registerOrientationChangeEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6525. if (!JSEvents.orientationChangeEvent) {
  6526. JSEvents.orientationChangeEvent = _malloc( 8 );
  6527. }
  6528. if (!target) {
  6529. target = window.screen; // Orientation events need to be captured from 'window.screen' instead of 'window'
  6530. } else {
  6531. target = JSEvents.findEventTarget(target);
  6532. }
  6533. var handlerFunc = function(event) {
  6534. var e = event || window.event;
  6535. JSEvents.fillOrientationChangeEventData(JSEvents.orientationChangeEvent, e);
  6536. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.orientationChangeEvent, userData);
  6537. if (shouldCancel) {
  6538. e.preventDefault();
  6539. }
  6540. };
  6541. if (eventTypeString == "orientationchange" && window.screen.mozOrientation !== undefined) {
  6542. eventTypeString = "mozorientationchange";
  6543. }
  6544. var eventHandler = {
  6545. target: target,
  6546. allowsDeferredCalls: false,
  6547. eventTypeString: eventTypeString,
  6548. callbackfunc: callbackfunc,
  6549. handlerFunc: handlerFunc,
  6550. useCapture: useCapture
  6551. };
  6552. JSEvents.registerOrRemoveHandler(eventHandler);
  6553. },fullscreenEnabled:function () {
  6554. return document.fullscreenEnabled || document.mozFullScreenEnabled || document.webkitFullscreenEnabled || document.msFullscreenEnabled;
  6555. },fillFullscreenChangeEventData:function (eventStruct, e) {
  6556. var fullscreenElement = document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement || document.msFullscreenElement;
  6557. var isFullscreen = !!fullscreenElement;
  6558. HEAP32[((eventStruct)>>2)]=isFullscreen;
  6559. HEAP32[(((eventStruct)+(4))>>2)]=JSEvents.fullscreenEnabled();
  6560. // If transitioning to fullscreen, report info about the element that is now fullscreen.
  6561. // If transitioning to windowed mode, report info about the element that just was fullscreen.
  6562. var reportedElement = isFullscreen ? fullscreenElement : JSEvents.previousFullscreenElement;
  6563. var nodeName = JSEvents.getNodeNameForTarget(reportedElement);
  6564. var id = (reportedElement && reportedElement.id) ? reportedElement.id : '';
  6565. stringToUTF8(nodeName, eventStruct + 8, 128);
  6566. stringToUTF8(id, eventStruct + 136, 128);
  6567. HEAP32[(((eventStruct)+(264))>>2)]=reportedElement ? reportedElement.clientWidth : 0;
  6568. HEAP32[(((eventStruct)+(268))>>2)]=reportedElement ? reportedElement.clientHeight : 0;
  6569. HEAP32[(((eventStruct)+(272))>>2)]=screen.width;
  6570. HEAP32[(((eventStruct)+(276))>>2)]=screen.height;
  6571. if (isFullscreen) {
  6572. JSEvents.previousFullscreenElement = fullscreenElement;
  6573. }
  6574. },registerFullscreenChangeEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6575. if (!JSEvents.fullscreenChangeEvent) {
  6576. JSEvents.fullscreenChangeEvent = _malloc( 280 );
  6577. }
  6578. if (!target) {
  6579. target = document; // Fullscreen change events need to be captured from 'document' by default instead of 'window'
  6580. } else {
  6581. target = JSEvents.findEventTarget(target);
  6582. }
  6583. var handlerFunc = function(event) {
  6584. var e = event || window.event;
  6585. JSEvents.fillFullscreenChangeEventData(JSEvents.fullscreenChangeEvent, e);
  6586. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.fullscreenChangeEvent, userData);
  6587. if (shouldCancel) {
  6588. e.preventDefault();
  6589. }
  6590. };
  6591. var eventHandler = {
  6592. target: target,
  6593. allowsDeferredCalls: false,
  6594. eventTypeString: eventTypeString,
  6595. callbackfunc: callbackfunc,
  6596. handlerFunc: handlerFunc,
  6597. useCapture: useCapture
  6598. };
  6599. JSEvents.registerOrRemoveHandler(eventHandler);
  6600. },resizeCanvasForFullscreen:function (target, strategy) {
  6601. var restoreOldStyle = __registerRestoreOldStyle(target);
  6602. var cssWidth = strategy.softFullscreen ? window.innerWidth : screen.width;
  6603. var cssHeight = strategy.softFullscreen ? window.innerHeight : screen.height;
  6604. var rect = target.getBoundingClientRect();
  6605. var windowedCssWidth = rect.right - rect.left;
  6606. var windowedCssHeight = rect.bottom - rect.top;
  6607. var windowedRttWidth = target.width;
  6608. var windowedRttHeight = target.height;
  6609. if (strategy.scaleMode == 3) {
  6610. __setLetterbox(target, (cssHeight - windowedCssHeight) / 2, (cssWidth - windowedCssWidth) / 2);
  6611. cssWidth = windowedCssWidth;
  6612. cssHeight = windowedCssHeight;
  6613. } else if (strategy.scaleMode == 2) {
  6614. if (cssWidth*windowedRttHeight < windowedRttWidth*cssHeight) {
  6615. var desiredCssHeight = windowedRttHeight * cssWidth / windowedRttWidth;
  6616. __setLetterbox(target, (cssHeight - desiredCssHeight) / 2, 0);
  6617. cssHeight = desiredCssHeight;
  6618. } else {
  6619. var desiredCssWidth = windowedRttWidth * cssHeight / windowedRttHeight;
  6620. __setLetterbox(target, 0, (cssWidth - desiredCssWidth) / 2);
  6621. cssWidth = desiredCssWidth;
  6622. }
  6623. }
  6624. // If we are adding padding, must choose a background color or otherwise Chrome will give the
  6625. // padding a default white color. Do it only if user has not customized their own background color.
  6626. if (!target.style.backgroundColor) target.style.backgroundColor = 'black';
  6627. // IE11 does the same, but requires the color to be set in the document body.
  6628. if (!document.body.style.backgroundColor) document.body.style.backgroundColor = 'black'; // IE11
  6629. // Firefox always shows black letterboxes independent of style color.
  6630. target.style.width = cssWidth + 'px';
  6631. target.style.height = cssHeight + 'px';
  6632. if (strategy.filteringMode == 1) {
  6633. target.style.imageRendering = 'optimizeSpeed';
  6634. target.style.imageRendering = '-moz-crisp-edges';
  6635. target.style.imageRendering = '-o-crisp-edges';
  6636. target.style.imageRendering = '-webkit-optimize-contrast';
  6637. target.style.imageRendering = 'optimize-contrast';
  6638. target.style.imageRendering = 'crisp-edges';
  6639. target.style.imageRendering = 'pixelated';
  6640. }
  6641. var dpiScale = (strategy.canvasResolutionScaleMode == 2) ? window.devicePixelRatio : 1;
  6642. if (strategy.canvasResolutionScaleMode != 0) {
  6643. target.width = cssWidth * dpiScale;
  6644. target.height = cssHeight * dpiScale;
  6645. if (target.GLctxObject) target.GLctxObject.GLctx.viewport(0, 0, target.width, target.height);
  6646. }
  6647. return restoreOldStyle;
  6648. },requestFullscreen:function (target, strategy) {
  6649. // EMSCRIPTEN_FULLSCREEN_SCALE_DEFAULT + EMSCRIPTEN_FULLSCREEN_CANVAS_SCALE_NONE is a mode where no extra logic is performed to the DOM elements.
  6650. if (strategy.scaleMode != 0 || strategy.canvasResolutionScaleMode != 0) {
  6651. JSEvents.resizeCanvasForFullscreen(target, strategy);
  6652. }
  6653. if (target.requestFullscreen) {
  6654. target.requestFullscreen();
  6655. } else if (target.msRequestFullscreen) {
  6656. target.msRequestFullscreen();
  6657. } else if (target.mozRequestFullScreen) {
  6658. target.mozRequestFullScreen();
  6659. } else if (target.mozRequestFullscreen) {
  6660. target.mozRequestFullscreen();
  6661. } else if (target.webkitRequestFullscreen) {
  6662. target.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT);
  6663. } else {
  6664. if (typeof JSEvents.fullscreenEnabled() === 'undefined') {
  6665. return -1;
  6666. } else {
  6667. return -3;
  6668. }
  6669. }
  6670. if (strategy.canvasResizedCallback) {
  6671. Module['dynCall_iiii'](strategy.canvasResizedCallback, 37, 0, strategy.canvasResizedCallbackUserData);
  6672. }
  6673. return 0;
  6674. },fillPointerlockChangeEventData:function (eventStruct, e) {
  6675. var pointerLockElement = document.pointerLockElement || document.mozPointerLockElement || document.webkitPointerLockElement || document.msPointerLockElement;
  6676. var isPointerlocked = !!pointerLockElement;
  6677. HEAP32[((eventStruct)>>2)]=isPointerlocked;
  6678. var nodeName = JSEvents.getNodeNameForTarget(pointerLockElement);
  6679. var id = (pointerLockElement && pointerLockElement.id) ? pointerLockElement.id : '';
  6680. stringToUTF8(nodeName, eventStruct + 4, 128);
  6681. stringToUTF8(id, eventStruct + 132, 128);
  6682. },registerPointerlockChangeEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6683. if (!JSEvents.pointerlockChangeEvent) {
  6684. JSEvents.pointerlockChangeEvent = _malloc( 260 );
  6685. }
  6686. if (!target) {
  6687. target = document; // Pointer lock change events need to be captured from 'document' by default instead of 'window'
  6688. } else {
  6689. target = JSEvents.findEventTarget(target);
  6690. }
  6691. var handlerFunc = function(event) {
  6692. var e = event || window.event;
  6693. JSEvents.fillPointerlockChangeEventData(JSEvents.pointerlockChangeEvent, e);
  6694. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.pointerlockChangeEvent, userData);
  6695. if (shouldCancel) {
  6696. e.preventDefault();
  6697. }
  6698. };
  6699. var eventHandler = {
  6700. target: target,
  6701. allowsDeferredCalls: false,
  6702. eventTypeString: eventTypeString,
  6703. callbackfunc: callbackfunc,
  6704. handlerFunc: handlerFunc,
  6705. useCapture: useCapture
  6706. };
  6707. JSEvents.registerOrRemoveHandler(eventHandler);
  6708. },registerPointerlockErrorEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6709. if (!target) {
  6710. target = document; // Pointer lock events need to be captured from 'document' by default instead of 'window'
  6711. } else {
  6712. target = JSEvents.findEventTarget(target);
  6713. }
  6714. var handlerFunc = function(event) {
  6715. var e = event || window.event;
  6716. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, 0, userData);
  6717. if (shouldCancel) {
  6718. e.preventDefault();
  6719. }
  6720. };
  6721. var eventHandler = {
  6722. target: target,
  6723. allowsDeferredCalls: false,
  6724. eventTypeString: eventTypeString,
  6725. callbackfunc: callbackfunc,
  6726. handlerFunc: handlerFunc,
  6727. useCapture: useCapture
  6728. };
  6729. JSEvents.registerOrRemoveHandler(eventHandler);
  6730. },requestPointerLock:function (target) {
  6731. if (target.requestPointerLock) {
  6732. target.requestPointerLock();
  6733. } else if (target.mozRequestPointerLock) {
  6734. target.mozRequestPointerLock();
  6735. } else if (target.webkitRequestPointerLock) {
  6736. target.webkitRequestPointerLock();
  6737. } else if (target.msRequestPointerLock) {
  6738. target.msRequestPointerLock();
  6739. } else {
  6740. // document.body is known to accept pointer lock, so use that to differentiate if the user passed a bad element,
  6741. // or if the whole browser just doesn't support the feature.
  6742. if (document.body.requestPointerLock || document.body.mozRequestPointerLock || document.body.webkitRequestPointerLock || document.body.msRequestPointerLock) {
  6743. return -3;
  6744. } else {
  6745. return -1;
  6746. }
  6747. }
  6748. return 0;
  6749. },fillVisibilityChangeEventData:function (eventStruct, e) {
  6750. var visibilityStates = [ "hidden", "visible", "prerender", "unloaded" ];
  6751. var visibilityState = visibilityStates.indexOf(document.visibilityState);
  6752. HEAP32[((eventStruct)>>2)]=document.hidden;
  6753. HEAP32[(((eventStruct)+(4))>>2)]=visibilityState;
  6754. },registerVisibilityChangeEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6755. if (!JSEvents.visibilityChangeEvent) {
  6756. JSEvents.visibilityChangeEvent = _malloc( 8 );
  6757. }
  6758. if (!target) {
  6759. target = document; // Visibility change events need to be captured from 'document' by default instead of 'window'
  6760. } else {
  6761. target = JSEvents.findEventTarget(target);
  6762. }
  6763. var handlerFunc = function(event) {
  6764. var e = event || window.event;
  6765. JSEvents.fillVisibilityChangeEventData(JSEvents.visibilityChangeEvent, e);
  6766. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.visibilityChangeEvent, userData);
  6767. if (shouldCancel) {
  6768. e.preventDefault();
  6769. }
  6770. };
  6771. var eventHandler = {
  6772. target: target,
  6773. allowsDeferredCalls: false,
  6774. eventTypeString: eventTypeString,
  6775. callbackfunc: callbackfunc,
  6776. handlerFunc: handlerFunc,
  6777. useCapture: useCapture
  6778. };
  6779. JSEvents.registerOrRemoveHandler(eventHandler);
  6780. },registerTouchEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6781. if (!JSEvents.touchEvent) {
  6782. JSEvents.touchEvent = _malloc( 1684 );
  6783. }
  6784. target = JSEvents.findEventTarget(target);
  6785. var handlerFunc = function(event) {
  6786. var e = event || window.event;
  6787. var touches = {};
  6788. for(var i = 0; i < e.touches.length; ++i) {
  6789. var touch = e.touches[i];
  6790. touches[touch.identifier] = touch;
  6791. }
  6792. for(var i = 0; i < e.changedTouches.length; ++i) {
  6793. var touch = e.changedTouches[i];
  6794. touches[touch.identifier] = touch;
  6795. touch.changed = true;
  6796. }
  6797. for(var i = 0; i < e.targetTouches.length; ++i) {
  6798. var touch = e.targetTouches[i];
  6799. touches[touch.identifier].onTarget = true;
  6800. }
  6801. var ptr = JSEvents.touchEvent;
  6802. HEAP32[(((ptr)+(4))>>2)]=e.ctrlKey;
  6803. HEAP32[(((ptr)+(8))>>2)]=e.shiftKey;
  6804. HEAP32[(((ptr)+(12))>>2)]=e.altKey;
  6805. HEAP32[(((ptr)+(16))>>2)]=e.metaKey;
  6806. ptr += 20; // Advance to the start of the touch array.
  6807. var canvasRect = Module['canvas'] ? Module['canvas'].getBoundingClientRect() : undefined;
  6808. var targetRect = JSEvents.getBoundingClientRectOrZeros(target);
  6809. var numTouches = 0;
  6810. for(var i in touches) {
  6811. var t = touches[i];
  6812. HEAP32[((ptr)>>2)]=t.identifier;
  6813. HEAP32[(((ptr)+(4))>>2)]=t.screenX;
  6814. HEAP32[(((ptr)+(8))>>2)]=t.screenY;
  6815. HEAP32[(((ptr)+(12))>>2)]=t.clientX;
  6816. HEAP32[(((ptr)+(16))>>2)]=t.clientY;
  6817. HEAP32[(((ptr)+(20))>>2)]=t.pageX;
  6818. HEAP32[(((ptr)+(24))>>2)]=t.pageY;
  6819. HEAP32[(((ptr)+(28))>>2)]=t.changed;
  6820. HEAP32[(((ptr)+(32))>>2)]=t.onTarget;
  6821. if (canvasRect) {
  6822. HEAP32[(((ptr)+(44))>>2)]=t.clientX - canvasRect.left;
  6823. HEAP32[(((ptr)+(48))>>2)]=t.clientY - canvasRect.top;
  6824. } else {
  6825. HEAP32[(((ptr)+(44))>>2)]=0;
  6826. HEAP32[(((ptr)+(48))>>2)]=0;
  6827. }
  6828. HEAP32[(((ptr)+(36))>>2)]=t.clientX - targetRect.left;
  6829. HEAP32[(((ptr)+(40))>>2)]=t.clientY - targetRect.top;
  6830. ptr += 52;
  6831. if (++numTouches >= 32) {
  6832. break;
  6833. }
  6834. }
  6835. HEAP32[((JSEvents.touchEvent)>>2)]=numTouches;
  6836. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.touchEvent, userData);
  6837. if (shouldCancel) {
  6838. e.preventDefault();
  6839. }
  6840. };
  6841. var eventHandler = {
  6842. target: target,
  6843. allowsDeferredCalls: false, // XXX Currently disabled, see bug https://bugzilla.mozilla.org/show_bug.cgi?id=966493
  6844. // Once the above bug is resolved, enable the following condition if possible:
  6845. // allowsDeferredCalls: eventTypeString == 'touchstart',
  6846. eventTypeString: eventTypeString,
  6847. callbackfunc: callbackfunc,
  6848. handlerFunc: handlerFunc,
  6849. useCapture: useCapture
  6850. };
  6851. JSEvents.registerOrRemoveHandler(eventHandler);
  6852. },fillGamepadEventData:function (eventStruct, e) {
  6853. HEAPF64[((eventStruct)>>3)]=e.timestamp;
  6854. for(var i = 0; i < e.axes.length; ++i) {
  6855. HEAPF64[(((eventStruct+i*8)+(16))>>3)]=e.axes[i];
  6856. }
  6857. for(var i = 0; i < e.buttons.length; ++i) {
  6858. if (typeof(e.buttons[i]) === 'object') {
  6859. HEAPF64[(((eventStruct+i*8)+(528))>>3)]=e.buttons[i].value;
  6860. } else {
  6861. HEAPF64[(((eventStruct+i*8)+(528))>>3)]=e.buttons[i];
  6862. }
  6863. }
  6864. for(var i = 0; i < e.buttons.length; ++i) {
  6865. if (typeof(e.buttons[i]) === 'object') {
  6866. HEAP32[(((eventStruct+i*4)+(1040))>>2)]=e.buttons[i].pressed;
  6867. } else {
  6868. HEAP32[(((eventStruct+i*4)+(1040))>>2)]=e.buttons[i] == 1.0;
  6869. }
  6870. }
  6871. HEAP32[(((eventStruct)+(1296))>>2)]=e.connected;
  6872. HEAP32[(((eventStruct)+(1300))>>2)]=e.index;
  6873. HEAP32[(((eventStruct)+(8))>>2)]=e.axes.length;
  6874. HEAP32[(((eventStruct)+(12))>>2)]=e.buttons.length;
  6875. stringToUTF8(e.id, eventStruct + 1304, 64);
  6876. stringToUTF8(e.mapping, eventStruct + 1368, 64);
  6877. },registerGamepadEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6878. if (!JSEvents.gamepadEvent) {
  6879. JSEvents.gamepadEvent = _malloc( 1432 );
  6880. }
  6881. var handlerFunc = function(event) {
  6882. var e = event || window.event;
  6883. JSEvents.fillGamepadEventData(JSEvents.gamepadEvent, e.gamepad);
  6884. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.gamepadEvent, userData);
  6885. if (shouldCancel) {
  6886. e.preventDefault();
  6887. }
  6888. };
  6889. var eventHandler = {
  6890. target: JSEvents.findEventTarget(target),
  6891. allowsDeferredCalls: true,
  6892. eventTypeString: eventTypeString,
  6893. callbackfunc: callbackfunc,
  6894. handlerFunc: handlerFunc,
  6895. useCapture: useCapture
  6896. };
  6897. JSEvents.registerOrRemoveHandler(eventHandler);
  6898. },registerBeforeUnloadEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6899. var handlerFunc = function(event) {
  6900. var e = event || window.event;
  6901. var confirmationMessage = Module['dynCall_iiii'](callbackfunc, eventTypeId, 0, userData);
  6902. if (confirmationMessage) {
  6903. confirmationMessage = Pointer_stringify(confirmationMessage);
  6904. }
  6905. if (confirmationMessage) {
  6906. e.preventDefault();
  6907. e.returnValue = confirmationMessage;
  6908. return confirmationMessage;
  6909. }
  6910. };
  6911. var eventHandler = {
  6912. target: JSEvents.findEventTarget(target),
  6913. allowsDeferredCalls: false,
  6914. eventTypeString: eventTypeString,
  6915. callbackfunc: callbackfunc,
  6916. handlerFunc: handlerFunc,
  6917. useCapture: useCapture
  6918. };
  6919. JSEvents.registerOrRemoveHandler(eventHandler);
  6920. },battery:function () { return navigator.battery || navigator.mozBattery || navigator.webkitBattery; },fillBatteryEventData:function (eventStruct, e) {
  6921. HEAPF64[((eventStruct)>>3)]=e.chargingTime;
  6922. HEAPF64[(((eventStruct)+(8))>>3)]=e.dischargingTime;
  6923. HEAPF64[(((eventStruct)+(16))>>3)]=e.level;
  6924. HEAP32[(((eventStruct)+(24))>>2)]=e.charging;
  6925. },registerBatteryEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6926. if (!JSEvents.batteryEvent) {
  6927. JSEvents.batteryEvent = _malloc( 32 );
  6928. }
  6929. var handlerFunc = function(event) {
  6930. var e = event || window.event;
  6931. JSEvents.fillBatteryEventData(JSEvents.batteryEvent, JSEvents.battery());
  6932. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, JSEvents.batteryEvent, userData);
  6933. if (shouldCancel) {
  6934. e.preventDefault();
  6935. }
  6936. };
  6937. var eventHandler = {
  6938. target: JSEvents.findEventTarget(target),
  6939. allowsDeferredCalls: false,
  6940. eventTypeString: eventTypeString,
  6941. callbackfunc: callbackfunc,
  6942. handlerFunc: handlerFunc,
  6943. useCapture: useCapture
  6944. };
  6945. JSEvents.registerOrRemoveHandler(eventHandler);
  6946. },registerWebGlEventCallback:function (target, userData, useCapture, callbackfunc, eventTypeId, eventTypeString) {
  6947. if (!target) {
  6948. target = Module['canvas'];
  6949. }
  6950. var handlerFunc = function(event) {
  6951. var e = event || window.event;
  6952. var shouldCancel = Module['dynCall_iiii'](callbackfunc, eventTypeId, 0, userData);
  6953. if (shouldCancel) {
  6954. e.preventDefault();
  6955. }
  6956. };
  6957. var eventHandler = {
  6958. target: JSEvents.findEventTarget(target),
  6959. allowsDeferredCalls: false,
  6960. eventTypeString: eventTypeString,
  6961. callbackfunc: callbackfunc,
  6962. handlerFunc: handlerFunc,
  6963. useCapture: useCapture
  6964. };
  6965. JSEvents.registerOrRemoveHandler(eventHandler);
  6966. }};function __emscripten_sample_gamepad_data() {
  6967. // Polling gamepads generates garbage, so don't do it when we know there are no gamepads connected.
  6968. if (!JSEvents.numGamepadsConnected) return;
  6969. // 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.
  6970. if (Browser.mainLoop.currentFrameNumber !== JSEvents.lastGamepadStateFrame || !Browser.mainLoop.currentFrameNumber) {
  6971. JSEvents.lastGamepadState = navigator.getGamepads ? navigator.getGamepads() : (navigator.webkitGetGamepads ? navigator.webkitGetGamepads : null);
  6972. JSEvents.lastGamepadStateFrame = Browser.mainLoop.currentFrameNumber;
  6973. }
  6974. }function _emscripten_get_gamepad_status(index, gamepadState) {
  6975. __emscripten_sample_gamepad_data();
  6976. if (!JSEvents.lastGamepadState) return -1;
  6977. // INVALID_PARAM is returned on a Gamepad index that never was there.
  6978. if (index < 0 || index >= JSEvents.lastGamepadState.length) return -5;
  6979. // NO_DATA is returned on a Gamepad index that was removed.
  6980. // For previously disconnected gamepads there should be an empty slot (null/undefined/false) at the index.
  6981. // This is because gamepads must keep their original position in the array.
  6982. // For example, removing the first of two gamepads produces [null/undefined/false, gamepad].
  6983. if (!JSEvents.lastGamepadState[index]) return -7;
  6984. JSEvents.fillGamepadEventData(gamepadState, JSEvents.lastGamepadState[index]);
  6985. return 0;
  6986. }
  6987. function _emscripten_glCopyTexImage2D(x0, x1, x2, x3, x4, x5, x6, x7) { GLctx['copyTexImage2D'](x0, x1, x2, x3, x4, x5, x6, x7) }
  6988. function _emscripten_glTexParameterfv(target, pname, params) {
  6989. var param = HEAPF32[((params)>>2)];
  6990. GLctx.texParameterf(target, pname, param);
  6991. }
  6992. function _emscripten_glLinkProgram(program) {
  6993. GLctx.linkProgram(GL.programs[program]);
  6994. GL.programInfos[program] = null; // uniforms no longer keep the same names after linking
  6995. GL.populateUniformTable(program);
  6996. }
  6997. function _glUniform1f(location, v0) {
  6998. GLctx.uniform1f(GL.uniforms[location], v0);
  6999. }
  7000. function _emscripten_glUniform3f(location, v0, v1, v2) {
  7001. GLctx.uniform3f(GL.uniforms[location], v0, v1, v2);
  7002. }
  7003. function _emscripten_glGetObjectParameterivARB() {
  7004. Module['printErr']('missing function: emscripten_glGetObjectParameterivARB'); abort(-1);
  7005. }
  7006. function _emscripten_glBlendFunc(x0, x1) { GLctx['blendFunc'](x0, x1) }
  7007. function _emscripten_glUniform3i(location, v0, v1, v2) {
  7008. GLctx.uniform3i(GL.uniforms[location], v0, v1, v2);
  7009. }
  7010. function _emscripten_glStencilOp(x0, x1, x2) { GLctx['stencilOp'](x0, x1, x2) }
  7011. function _glCreateShader(shaderType) {
  7012. var id = GL.getNewId(GL.shaders);
  7013. GL.shaders[id] = GLctx.createShader(shaderType);
  7014. return id;
  7015. }
  7016. function _glUniform1i(location, v0) {
  7017. GLctx.uniform1i(GL.uniforms[location], v0);
  7018. }
  7019. function _emscripten_glBindAttribLocation(program, index, name) {
  7020. name = Pointer_stringify(name);
  7021. GLctx.bindAttribLocation(GL.programs[program], index, name);
  7022. }
  7023. function _glGenRenderbuffers(n, renderbuffers) {
  7024. for (var i = 0; i < n; i++) {
  7025. var renderbuffer = GLctx.createRenderbuffer();
  7026. if (!renderbuffer) {
  7027. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  7028. while(i < n) HEAP32[(((renderbuffers)+(i++*4))>>2)]=0;
  7029. return;
  7030. }
  7031. var id = GL.getNewId(GL.renderbuffers);
  7032. renderbuffer.name = id;
  7033. GL.renderbuffers[id] = renderbuffer;
  7034. HEAP32[(((renderbuffers)+(i*4))>>2)]=id;
  7035. }
  7036. }
  7037. function _glCompressedTexImage2D(target, level, internalFormat, width, height, border, imageSize, data) {
  7038. GLctx['compressedTexImage2D'](target, level, internalFormat, width, height, border, data ? HEAPU8.subarray((data),(data+imageSize)) : null);
  7039. }
  7040. function _glDisable(x0) { GLctx['disable'](x0) }
  7041. function _glfwGetMouseButton(winid, button) {
  7042. return GLFW.getMouseButton(winid, button);
  7043. }
  7044. function _emscripten_glEnableVertexAttribArray(index) {
  7045. GLctx.enableVertexAttribArray(index);
  7046. }
  7047. Module["_memset"] = _memset;
  7048. function _glfwMakeContextCurrent(winid) {}
  7049. function _emscripten_set_touchcancel_callback(target, userData, useCapture, callbackfunc) {
  7050. JSEvents.registerTouchEventCallback(target, userData, useCapture, callbackfunc, 25, "touchcancel");
  7051. return 0;
  7052. }
  7053. function _glBindFramebuffer(target, framebuffer) {
  7054. GLctx.bindFramebuffer(target, framebuffer ? GL.framebuffers[framebuffer] : null);
  7055. }
  7056. function ___lock() {}
  7057. function _emscripten_glBlendFuncSeparate(x0, x1, x2, x3) { GLctx['blendFuncSeparate'](x0, x1, x2, x3) }
  7058. function _glCullFace(x0) { GLctx['cullFace'](x0) }
  7059. function _emscripten_glGetVertexAttribPointerv(index, pname, pointer) {
  7060. if (!pointer) {
  7061. // GLES2 specification does not specify how to behave if pointer is a null pointer. Since calling this function does not make sense
  7062. // if pointer == null, issue a GL error to notify user about it.
  7063. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7064. return;
  7065. }
  7066. HEAP32[((pointer)>>2)]=GLctx.getVertexAttribOffset(index, pname);
  7067. }
  7068. function _emscripten_glVertexAttrib3f(x0, x1, x2, x3) { GLctx['vertexAttrib3f'](x0, x1, x2, x3) }
  7069. function _emscripten_glEnable(x0) { GLctx['enable'](x0) }
  7070. function _emscripten_glNormalPointer() {
  7071. Module['printErr']('missing function: emscripten_glNormalPointer'); abort(-1);
  7072. }
  7073. var _emscripten_GetProcAddress=undefined;
  7074. Module["_emscripten_GetProcAddress"] = _emscripten_GetProcAddress;
  7075. var EGL={errorCode:12288,defaultDisplayInitialized:false,currentContext:0,currentReadSurface:0,currentDrawSurface:0,stringCache:{},setErrorCode:function (code) {
  7076. EGL.errorCode = code;
  7077. },chooseConfig:function (display, attribList, config, config_size, numConfigs) {
  7078. if (display != 62000 /* Magic ID for Emscripten 'default display' */) {
  7079. EGL.setErrorCode(0x3008 /* EGL_BAD_DISPLAY */);
  7080. return 0;
  7081. }
  7082. // TODO: read attribList.
  7083. if ((!config || !config_size) && !numConfigs) {
  7084. EGL.setErrorCode(0x300C /* EGL_BAD_PARAMETER */);
  7085. return 0;
  7086. }
  7087. if (numConfigs) {
  7088. HEAP32[((numConfigs)>>2)]=1; // Total number of supported configs: 1.
  7089. }
  7090. if (config && config_size > 0) {
  7091. HEAP32[((config)>>2)]=62002;
  7092. }
  7093. EGL.setErrorCode(0x3000 /* EGL_SUCCESS */);
  7094. return 1;
  7095. }};function _eglGetProcAddress(name_) {
  7096. return _emscripten_GetProcAddress(name_);
  7097. }
  7098. function _glDeleteProgram(id) {
  7099. if (!id) return;
  7100. var program = GL.programs[id];
  7101. if (!program) { // glDeleteProgram actually signals an error when deleting a nonexisting object, unlike some other GL delete functions.
  7102. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7103. return;
  7104. }
  7105. GLctx.deleteProgram(program);
  7106. program.name = 0;
  7107. GL.programs[id] = null;
  7108. GL.programInfos[id] = null;
  7109. }
  7110. function _glRenderbufferStorage(x0, x1, x2, x3) { GLctx['renderbufferStorage'](x0, x1, x2, x3) }
  7111. function _emscripten_get_pointerlock_status(pointerlockStatus) {
  7112. if (pointerlockStatus) JSEvents.fillPointerlockChangeEventData(pointerlockStatus);
  7113. if (!document.body || (!document.body.requestPointerLock && !document.body.mozRequestPointerLock && !document.body.webkitRequestPointerLock && !document.body.msRequestPointerLock)) {
  7114. return -1;
  7115. }
  7116. return 0;
  7117. }
  7118. function _glAttachShader(program, shader) {
  7119. GLctx.attachShader(GL.programs[program],
  7120. GL.shaders[shader]);
  7121. }
  7122. function _glfwGetPrimaryMonitor() {
  7123. return 1;
  7124. }
  7125. function emscriptenWebGLGetVertexAttrib(index, pname, params, type) {
  7126. if (!params) {
  7127. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  7128. // if params == null, issue a GL error to notify user about it.
  7129. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7130. return;
  7131. }
  7132. var data = GLctx.getVertexAttrib(index, pname);
  7133. if (pname == 0x889F/*VERTEX_ATTRIB_ARRAY_BUFFER_BINDING*/) {
  7134. HEAP32[((params)>>2)]=data["name"];
  7135. } else if (typeof data == 'number' || typeof data == 'boolean') {
  7136. switch (type) {
  7137. case 'Integer': HEAP32[((params)>>2)]=data; break;
  7138. case 'Float': HEAPF32[((params)>>2)]=data; break;
  7139. case 'FloatToInteger': HEAP32[((params)>>2)]=Math.fround(data); break;
  7140. default: throw 'internal emscriptenWebGLGetVertexAttrib() error, bad type: ' + type;
  7141. }
  7142. } else {
  7143. for (var i = 0; i < data.length; i++) {
  7144. switch (type) {
  7145. case 'Integer': HEAP32[(((params)+(i))>>2)]=data[i]; break;
  7146. case 'Float': HEAPF32[(((params)+(i))>>2)]=data[i]; break;
  7147. case 'FloatToInteger': HEAP32[(((params)+(i))>>2)]=Math.fround(data[i]); break;
  7148. default: throw 'internal emscriptenWebGLGetVertexAttrib() error, bad type: ' + type;
  7149. }
  7150. }
  7151. }
  7152. }function _emscripten_glGetVertexAttribfv(index, pname, params) {
  7153. // N.B. This function may only be called if the vertex attribute was specified using the function glVertexAttrib*f(),
  7154. // otherwise the results are undefined. (GLES3 spec 6.1.12)
  7155. emscriptenWebGLGetVertexAttrib(index, pname, params, 'Float');
  7156. }
  7157. function _emscripten_set_touchstart_callback(target, userData, useCapture, callbackfunc) {
  7158. JSEvents.registerTouchEventCallback(target, userData, useCapture, callbackfunc, 22, "touchstart");
  7159. return 0;
  7160. }
  7161. function _glUniform3f(location, v0, v1, v2) {
  7162. GLctx.uniform3f(GL.uniforms[location], v0, v1, v2);
  7163. }
  7164. 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.'; }
  7165. function _emscripten_glDeleteBuffers(n, buffers) {
  7166. for (var i = 0; i < n; i++) {
  7167. var id = HEAP32[(((buffers)+(i*4))>>2)];
  7168. var buffer = GL.buffers[id];
  7169. // From spec: "glDeleteBuffers silently ignores 0's and names that do not
  7170. // correspond to existing buffer objects."
  7171. if (!buffer) continue;
  7172. GLctx.deleteBuffer(buffer);
  7173. buffer.name = 0;
  7174. GL.buffers[id] = null;
  7175. if (id == GL.currArrayBuffer) GL.currArrayBuffer = 0;
  7176. if (id == GL.currElementArrayBuffer) GL.currElementArrayBuffer = 0;
  7177. }
  7178. }
  7179. function _emscripten_glTexParameteriv(target, pname, params) {
  7180. var param = HEAP32[((params)>>2)];
  7181. GLctx.texParameteri(target, pname, param);
  7182. }
  7183. function _glDrawElements(mode, count, type, indices) {
  7184. GLctx.drawElements(mode, count, type, indices);
  7185. }
  7186. function _glfwTerminate() {
  7187. window.removeEventListener("keydown", GLFW.onKeydown, true);
  7188. window.removeEventListener("keypress", GLFW.onKeyPress, true);
  7189. window.removeEventListener("keyup", GLFW.onKeyup, true);
  7190. Module["canvas"].removeEventListener("mousemove", GLFW.onMousemove, true);
  7191. Module["canvas"].removeEventListener("mousedown", GLFW.onMouseButtonDown, true);
  7192. Module["canvas"].removeEventListener("mouseup", GLFW.onMouseButtonUp, true);
  7193. Module["canvas"].removeEventListener('wheel', GLFW.onMouseWheel, true);
  7194. Module["canvas"].removeEventListener('mousewheel', GLFW.onMouseWheel, true);
  7195. Module["canvas"].removeEventListener('mouseenter', GLFW.onMouseenter, true);
  7196. Module["canvas"].removeEventListener('mouseleave', GLFW.onMouseleave, true);
  7197. Module["canvas"].width = Module["canvas"].height = 1;
  7198. GLFW.windows = null;
  7199. GLFW.active = null;
  7200. }
  7201. function _emscripten_glUniformMatrix2fv(location, count, transpose, value) {
  7202. var view;
  7203. if (4*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7204. // avoid allocation when uploading few enough uniforms
  7205. view = GL.miniTempBufferViews[4*count-1];
  7206. for (var i = 0; i < 4*count; i += 4) {
  7207. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7208. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  7209. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  7210. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  7211. }
  7212. } else {
  7213. view = HEAPF32.subarray((value)>>2,(value+count*16)>>2);
  7214. }
  7215. GLctx.uniformMatrix2fv(GL.uniforms[location], !!transpose, view);
  7216. }
  7217. function _emscripten_glDeleteShader(id) {
  7218. if (!id) return;
  7219. var shader = GL.shaders[id];
  7220. if (!shader) { // glDeleteShader actually signals an error when deleting a nonexisting object, unlike some other GL delete functions.
  7221. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7222. return;
  7223. }
  7224. GLctx.deleteShader(shader);
  7225. GL.shaders[id] = null;
  7226. }
  7227. function ___syscall5(which, varargs) {SYSCALLS.varargs = varargs;
  7228. try {
  7229. // open
  7230. var pathname = SYSCALLS.getStr(), flags = SYSCALLS.get(), mode = SYSCALLS.get() // optional TODO
  7231. var stream = FS.open(pathname, flags, mode);
  7232. return stream.fd;
  7233. } catch (e) {
  7234. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7235. return -e.errno;
  7236. }
  7237. }
  7238. function ___syscall6(which, varargs) {SYSCALLS.varargs = varargs;
  7239. try {
  7240. // close
  7241. var stream = SYSCALLS.getStreamFromFD();
  7242. FS.close(stream);
  7243. return 0;
  7244. } catch (e) {
  7245. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7246. return -e.errno;
  7247. }
  7248. }
  7249. function _llvm_stacksave() {
  7250. var self = _llvm_stacksave;
  7251. if (!self.LLVM_SAVEDSTACKS) {
  7252. self.LLVM_SAVEDSTACKS = [];
  7253. }
  7254. self.LLVM_SAVEDSTACKS.push(Runtime.stackSave());
  7255. return self.LLVM_SAVEDSTACKS.length-1;
  7256. }
  7257. function _emscripten_glGetVertexAttribiv(index, pname, params) {
  7258. // N.B. This function may only be called if the vertex attribute was specified using the function glVertexAttrib*f(),
  7259. // otherwise the results are undefined. (GLES3 spec 6.1.12)
  7260. emscriptenWebGLGetVertexAttrib(index, pname, params, 'FloatToInteger');
  7261. }
  7262. function _emscripten_glUniformMatrix4fv(location, count, transpose, value) {
  7263. var view;
  7264. if (16*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7265. // avoid allocation when uploading few enough uniforms
  7266. view = GL.miniTempBufferViews[16*count-1];
  7267. for (var i = 0; i < 16*count; i += 16) {
  7268. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7269. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  7270. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  7271. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  7272. view[i+4] = HEAPF32[(((value)+(4*i+16))>>2)];
  7273. view[i+5] = HEAPF32[(((value)+(4*i+20))>>2)];
  7274. view[i+6] = HEAPF32[(((value)+(4*i+24))>>2)];
  7275. view[i+7] = HEAPF32[(((value)+(4*i+28))>>2)];
  7276. view[i+8] = HEAPF32[(((value)+(4*i+32))>>2)];
  7277. view[i+9] = HEAPF32[(((value)+(4*i+36))>>2)];
  7278. view[i+10] = HEAPF32[(((value)+(4*i+40))>>2)];
  7279. view[i+11] = HEAPF32[(((value)+(4*i+44))>>2)];
  7280. view[i+12] = HEAPF32[(((value)+(4*i+48))>>2)];
  7281. view[i+13] = HEAPF32[(((value)+(4*i+52))>>2)];
  7282. view[i+14] = HEAPF32[(((value)+(4*i+56))>>2)];
  7283. view[i+15] = HEAPF32[(((value)+(4*i+60))>>2)];
  7284. }
  7285. } else {
  7286. view = HEAPF32.subarray((value)>>2,(value+count*64)>>2);
  7287. }
  7288. GLctx.uniformMatrix4fv(GL.uniforms[location], !!transpose, view);
  7289. }
  7290. function _glVertexAttrib3f(x0, x1, x2, x3) { GLctx['vertexAttrib3f'](x0, x1, x2, x3) }
  7291. function _emscripten_glDrawArraysInstanced(mode, first, count, primcount) {
  7292. GLctx['drawArraysInstanced'](mode, first, count, primcount);
  7293. }
  7294. function _emscripten_glEnableClientState() {
  7295. Module['printErr']('missing function: emscripten_glEnableClientState'); abort(-1);
  7296. }
  7297. function _emscripten_glGetPointerv() {
  7298. Module['printErr']('missing function: emscripten_glGetPointerv'); abort(-1);
  7299. }
  7300. function ___syscall140(which, varargs) {SYSCALLS.varargs = varargs;
  7301. try {
  7302. // llseek
  7303. var stream = SYSCALLS.getStreamFromFD(), offset_high = SYSCALLS.get(), offset_low = SYSCALLS.get(), result = SYSCALLS.get(), whence = SYSCALLS.get();
  7304. var offset = offset_low;
  7305. assert(offset_high === 0);
  7306. FS.llseek(stream, offset, whence);
  7307. HEAP32[((result)>>2)]=stream.position;
  7308. if (stream.getdents && offset === 0 && whence === 0) stream.getdents = null; // reset readdir state
  7309. return 0;
  7310. } catch (e) {
  7311. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7312. return -e.errno;
  7313. }
  7314. }
  7315. function ___syscall146(which, varargs) {SYSCALLS.varargs = varargs;
  7316. try {
  7317. // writev
  7318. var stream = SYSCALLS.getStreamFromFD(), iov = SYSCALLS.get(), iovcnt = SYSCALLS.get();
  7319. return SYSCALLS.doWritev(stream, iov, iovcnt);
  7320. } catch (e) {
  7321. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7322. return -e.errno;
  7323. }
  7324. }
  7325. function ___syscall145(which, varargs) {SYSCALLS.varargs = varargs;
  7326. try {
  7327. // readv
  7328. var stream = SYSCALLS.getStreamFromFD(), iov = SYSCALLS.get(), iovcnt = SYSCALLS.get();
  7329. return SYSCALLS.doReadv(stream, iov, iovcnt);
  7330. } catch (e) {
  7331. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7332. return -e.errno;
  7333. }
  7334. }
  7335. function _emscripten_glStencilMask(x0) { GLctx['stencilMask'](x0) }
  7336. function _emscripten_glStencilFuncSeparate(x0, x1, x2, x3) { GLctx['stencilFuncSeparate'](x0, x1, x2, x3) }
  7337. Module["_i64Subtract"] = _i64Subtract;
  7338. Module["_i64Add"] = _i64Add;
  7339. function _emscripten_set_touchend_callback(target, userData, useCapture, callbackfunc) {
  7340. JSEvents.registerTouchEventCallback(target, userData, useCapture, callbackfunc, 23, "touchend");
  7341. return 0;
  7342. }
  7343. function _glUseProgram(program) {
  7344. GLctx.useProgram(program ? GL.programs[program] : null);
  7345. }
  7346. function _emscripten_glDisableVertexAttribArray(index) {
  7347. GLctx.disableVertexAttribArray(index);
  7348. }
  7349. function _emscripten_glVertexAttrib1f(x0, x1) { GLctx['vertexAttrib1f'](x0, x1) }
  7350. function _emscripten_glFinish() { GLctx['finish']() }
  7351. function _glDeleteFramebuffers(n, framebuffers) {
  7352. for (var i = 0; i < n; ++i) {
  7353. var id = HEAP32[(((framebuffers)+(i*4))>>2)];
  7354. var framebuffer = GL.framebuffers[id];
  7355. if (!framebuffer) continue; // GL spec: "glDeleteFramebuffers silently ignores 0s and names that do not correspond to existing framebuffer objects".
  7356. GLctx.deleteFramebuffer(framebuffer);
  7357. framebuffer.name = 0;
  7358. GL.framebuffers[id] = null;
  7359. }
  7360. }
  7361. function _glDrawArrays(mode, first, count) {
  7362. GLctx.drawArrays(mode, first, count);
  7363. }
  7364. function _emscripten_glDepthFunc(x0) { GLctx['depthFunc'](x0) }
  7365. function _emscripten_get_num_gamepads() {
  7366. // Polling gamepads generates garbage, so don't do it when we know there are no gamepads connected.
  7367. if (!JSEvents.numGamepadsConnected) return 0;
  7368. __emscripten_sample_gamepad_data();
  7369. if (!JSEvents.lastGamepadState) return -1;
  7370. return JSEvents.lastGamepadState.length;
  7371. }
  7372. function _glGetProgramInfoLog(program, maxLength, length, infoLog) {
  7373. var log = GLctx.getProgramInfoLog(GL.programs[program]);
  7374. if (log === null) log = '(unknown error)';
  7375. if (maxLength > 0 && infoLog) {
  7376. var numBytesWrittenExclNull = stringToUTF8(log, infoLog, maxLength);
  7377. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  7378. } else {
  7379. if (length) HEAP32[((length)>>2)]=0;
  7380. }
  7381. }
  7382. function _emscripten_glUniform4iv(location, count, value) {
  7383. GLctx.uniform4iv(GL.uniforms[location], HEAP32.subarray((value)>>2,(value+count*16)>>2));
  7384. }
  7385. function _glClear(x0) { GLctx['clear'](x0) }
  7386. 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.'; }
  7387. function _emscripten_glUniform3fv(location, count, value) {
  7388. var view;
  7389. if (3*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7390. // avoid allocation when uploading few enough uniforms
  7391. view = GL.miniTempBufferViews[3*count-1];
  7392. for (var i = 0; i < 3*count; i += 3) {
  7393. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7394. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  7395. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  7396. }
  7397. } else {
  7398. view = HEAPF32.subarray((value)>>2,(value+count*12)>>2);
  7399. }
  7400. GLctx.uniform3fv(GL.uniforms[location], view);
  7401. }
  7402. function _emscripten_glIsTexture(texture) {
  7403. var texture = GL.textures[texture];
  7404. if (!texture) return 0;
  7405. return GLctx.isTexture(texture);
  7406. }
  7407. function _glEnableVertexAttribArray(index) {
  7408. GLctx.enableVertexAttribArray(index);
  7409. }
  7410. function _emscripten_glAttachShader(program, shader) {
  7411. GLctx.attachShader(GL.programs[program],
  7412. GL.shaders[shader]);
  7413. }
  7414. function _glUniform4f(location, v0, v1, v2, v3) {
  7415. GLctx.uniform4f(GL.uniforms[location], v0, v1, v2, v3);
  7416. }
  7417. function _glFramebufferTexture2D(target, attachment, textarget, texture, level) {
  7418. GLctx.framebufferTexture2D(target, attachment, textarget,
  7419. GL.textures[texture], level);
  7420. }
  7421. function _emscripten_request_pointerlock(target, deferUntilInEventHandler) {
  7422. if (!target) target = '#canvas';
  7423. target = JSEvents.findEventTarget(target);
  7424. if (!target) return -4;
  7425. if (!target.requestPointerLock && !target.mozRequestPointerLock && !target.webkitRequestPointerLock && !target.msRequestPointerLock) {
  7426. return -1;
  7427. }
  7428. var canPerformRequests = JSEvents.canPerformEventHandlerRequests();
  7429. // Queue this function call if we're not currently in an event handler and the user saw it appropriate to do so.
  7430. if (!canPerformRequests) {
  7431. if (deferUntilInEventHandler) {
  7432. JSEvents.deferCall(JSEvents.requestPointerLock, 2 /* priority below fullscreen */, [target]);
  7433. return 1;
  7434. } else {
  7435. return -2;
  7436. }
  7437. }
  7438. return JSEvents.requestPointerLock(target);
  7439. }
  7440. 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);
  7441. Module["_llvm_cttz_i32"] = _llvm_cttz_i32;
  7442. Module["___udivmoddi4"] = ___udivmoddi4;
  7443. Module["___udivdi3"] = ___udivdi3;
  7444. function _glfwCreateWindow(width, height, title, monitor, share) {
  7445. return GLFW.createWindow(width, height, title, monitor, share);
  7446. }
  7447. function _emscripten_glColorPointer() {
  7448. Module['printErr']('missing function: emscripten_glColorPointer'); abort(-1);
  7449. }
  7450. function _glfwDefaultWindowHints() {
  7451. GLFW.hints = GLFW.defaultHints;
  7452. }
  7453. function _emscripten_glClearStencil(x0) { GLctx['clearStencil'](x0) }
  7454. function _emscripten_glDetachShader(program, shader) {
  7455. GLctx.detachShader(GL.programs[program],
  7456. GL.shaders[shader]);
  7457. }
  7458. function _emscripten_glDeleteVertexArrays(n, vaos) {
  7459. for (var i = 0; i < n; i++) {
  7460. var id = HEAP32[(((vaos)+(i*4))>>2)];
  7461. GLctx['deleteVertexArray'](GL.vaos[id]);
  7462. GL.vaos[id] = null;
  7463. }
  7464. }
  7465. function _glGenFramebuffers(n, ids) {
  7466. for (var i = 0; i < n; ++i) {
  7467. var framebuffer = GLctx.createFramebuffer();
  7468. if (!framebuffer) {
  7469. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  7470. while(i < n) HEAP32[(((ids)+(i++*4))>>2)]=0;
  7471. return;
  7472. }
  7473. var id = GL.getNewId(GL.framebuffers);
  7474. framebuffer.name = id;
  7475. GL.framebuffers[id] = framebuffer;
  7476. HEAP32[(((ids)+(i*4))>>2)]=id;
  7477. }
  7478. }
  7479. function _glfwInit() {
  7480. if (GLFW.windows) return 1; // GL_TRUE
  7481. GLFW.initialTime = GLFW.getTime();
  7482. GLFW.hints = GLFW.defaultHints;
  7483. GLFW.windows = new Array()
  7484. GLFW.active = null;
  7485. window.addEventListener("keydown", GLFW.onKeydown, true);
  7486. window.addEventListener("keypress", GLFW.onKeyPress, true);
  7487. window.addEventListener("keyup", GLFW.onKeyup, true);
  7488. Module["canvas"].addEventListener("mousemove", GLFW.onMousemove, true);
  7489. Module["canvas"].addEventListener("mousedown", GLFW.onMouseButtonDown, true);
  7490. Module["canvas"].addEventListener("mouseup", GLFW.onMouseButtonUp, true);
  7491. Module["canvas"].addEventListener('wheel', GLFW.onMouseWheel, true);
  7492. Module["canvas"].addEventListener('mousewheel', GLFW.onMouseWheel, true);
  7493. Module["canvas"].addEventListener('mouseenter', GLFW.onMouseenter, true);
  7494. Module["canvas"].addEventListener('mouseleave', GLFW.onMouseleave, true);
  7495. Browser.resizeListeners.push(function(width, height) {
  7496. GLFW.onCanvasResize(width, height);
  7497. });
  7498. return 1; // GL_TRUE
  7499. }
  7500. function _emscripten_glGetTexParameteriv(target, pname, params) {
  7501. if (!params) {
  7502. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  7503. // if p == null, issue a GL error to notify user about it.
  7504. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7505. return;
  7506. }
  7507. HEAP32[((params)>>2)]=GLctx.getTexParameter(target, pname);
  7508. }
  7509. function _glfwSwapBuffers(winid) {
  7510. GLFW.swapBuffers(winid);
  7511. }
  7512. function _emscripten_glGenerateMipmap(x0) { GLctx['generateMipmap'](x0) }
  7513. function _emscripten_glCullFace(x0) { GLctx['cullFace'](x0) }
  7514. function _emscripten_glUniform4f(location, v0, v1, v2, v3) {
  7515. GLctx.uniform4f(GL.uniforms[location], v0, v1, v2, v3);
  7516. }
  7517. function _glDisableVertexAttribArray(index) {
  7518. GLctx.disableVertexAttribArray(index);
  7519. }
  7520. function _emscripten_glUseProgram(program) {
  7521. GLctx.useProgram(program ? GL.programs[program] : null);
  7522. }
  7523. function _emscripten_glHint(x0, x1) { GLctx['hint'](x0, x1) }
  7524. function _emscripten_glUniform2fv(location, count, value) {
  7525. var view;
  7526. if (2*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7527. // avoid allocation when uploading few enough uniforms
  7528. view = GL.miniTempBufferViews[2*count-1];
  7529. for (var i = 0; i < 2*count; i += 2) {
  7530. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7531. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  7532. }
  7533. } else {
  7534. view = HEAPF32.subarray((value)>>2,(value+count*8)>>2);
  7535. }
  7536. GLctx.uniform2fv(GL.uniforms[location], view);
  7537. }
  7538. function _glfwSwapInterval(interval) {
  7539. 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.
  7540. if (interval == 0) _emscripten_set_main_loop_timing(0/*EM_TIMING_SETTIMEOUT*/, 0);
  7541. else _emscripten_set_main_loop_timing(1/*EM_TIMING_RAF*/, interval);
  7542. }
  7543. function _glGetShaderInfoLog(shader, maxLength, length, infoLog) {
  7544. var log = GLctx.getShaderInfoLog(GL.shaders[shader]);
  7545. if (log === null) log = '(unknown error)';
  7546. if (maxLength > 0 && infoLog) {
  7547. var numBytesWrittenExclNull = stringToUTF8(log, infoLog, maxLength);
  7548. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  7549. } else {
  7550. if (length) HEAP32[((length)>>2)]=0;
  7551. }
  7552. }
  7553. 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.'; }
  7554. function _abort() {
  7555. Module['abort']();
  7556. }
  7557. function _emscripten_glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer) {
  7558. GLctx.framebufferRenderbuffer(target, attachment, renderbuffertarget,
  7559. GL.renderbuffers[renderbuffer]);
  7560. }
  7561. function _emscripten_glDeleteFramebuffers(n, framebuffers) {
  7562. for (var i = 0; i < n; ++i) {
  7563. var id = HEAP32[(((framebuffers)+(i*4))>>2)];
  7564. var framebuffer = GL.framebuffers[id];
  7565. if (!framebuffer) continue; // GL spec: "glDeleteFramebuffers silently ignores 0s and names that do not correspond to existing framebuffer objects".
  7566. GLctx.deleteFramebuffer(framebuffer);
  7567. framebuffer.name = 0;
  7568. GL.framebuffers[id] = null;
  7569. }
  7570. }
  7571. function _emscripten_glIsBuffer(buffer) {
  7572. var b = GL.buffers[buffer];
  7573. if (!b) return 0;
  7574. return GLctx.isBuffer(b);
  7575. }
  7576. function _emscripten_glUniform2iv(location, count, value) {
  7577. GLctx.uniform2iv(GL.uniforms[location], HEAP32.subarray((value)>>2,(value+count*8)>>2));
  7578. }
  7579. function _emscripten_glVertexAttrib1fv(index, v) {
  7580. GLctx.vertexAttrib1f(index, HEAPF32[v>>2]);
  7581. }
  7582. function _glEnable(x0) { GLctx['enable'](x0) }
  7583. function emscriptenWebGLComputeImageSize(width, height, sizePerPixel, alignment) {
  7584. function roundedToNextMultipleOf(x, y) {
  7585. return Math.floor((x + y - 1) / y) * y
  7586. }
  7587. var plainRowSize = width * sizePerPixel;
  7588. var alignedRowSize = roundedToNextMultipleOf(plainRowSize, alignment);
  7589. return (height <= 0) ? 0 :
  7590. ((height - 1) * alignedRowSize + plainRowSize);
  7591. }function emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, internalFormat) {
  7592. var sizePerPixel;
  7593. var numChannels;
  7594. switch(format) {
  7595. case 0x1906 /* GL_ALPHA */:
  7596. case 0x1909 /* GL_LUMINANCE */:
  7597. case 0x1902 /* GL_DEPTH_COMPONENT */:
  7598. numChannels = 1;
  7599. break;
  7600. case 0x190A /* GL_LUMINANCE_ALPHA */:
  7601. numChannels = 2;
  7602. break;
  7603. case 0x1907 /* GL_RGB */:
  7604. case 0x8C40 /* GL_SRGB_EXT */:
  7605. numChannels = 3;
  7606. break;
  7607. case 0x1908 /* GL_RGBA */:
  7608. case 0x8C42 /* GL_SRGB_ALPHA_EXT */:
  7609. numChannels = 4;
  7610. break;
  7611. default:
  7612. GL.recordError(0x0500); // GL_INVALID_ENUM
  7613. return null;
  7614. }
  7615. switch (type) {
  7616. case 0x1401 /* GL_UNSIGNED_BYTE */:
  7617. sizePerPixel = numChannels*1;
  7618. break;
  7619. case 0x1403 /* GL_UNSIGNED_SHORT */:
  7620. case 0x8D61 /* GL_HALF_FLOAT_OES */:
  7621. sizePerPixel = numChannels*2;
  7622. break;
  7623. case 0x1405 /* GL_UNSIGNED_INT */:
  7624. case 0x1406 /* GL_FLOAT */:
  7625. sizePerPixel = numChannels*4;
  7626. break;
  7627. case 0x84FA /* GL_UNSIGNED_INT_24_8_WEBGL/GL_UNSIGNED_INT_24_8 */:
  7628. sizePerPixel = 4;
  7629. break;
  7630. case 0x8363 /* GL_UNSIGNED_SHORT_5_6_5 */:
  7631. case 0x8033 /* GL_UNSIGNED_SHORT_4_4_4_4 */:
  7632. case 0x8034 /* GL_UNSIGNED_SHORT_5_5_5_1 */:
  7633. sizePerPixel = 2;
  7634. break;
  7635. default:
  7636. GL.recordError(0x0500); // GL_INVALID_ENUM
  7637. return null;
  7638. }
  7639. var bytes = emscriptenWebGLComputeImageSize(width, height, sizePerPixel, GL.unpackAlignment);
  7640. switch(type) {
  7641. case 0x1401 /* GL_UNSIGNED_BYTE */:
  7642. return HEAPU8.subarray((pixels),(pixels+bytes));
  7643. case 0x1406 /* GL_FLOAT */:
  7644. return HEAPF32.subarray((pixels)>>2,(pixels+bytes)>>2);
  7645. case 0x1405 /* GL_UNSIGNED_INT */:
  7646. case 0x84FA /* GL_UNSIGNED_INT_24_8_WEBGL/GL_UNSIGNED_INT_24_8 */:
  7647. return HEAPU32.subarray((pixels)>>2,(pixels+bytes)>>2);
  7648. case 0x1403 /* GL_UNSIGNED_SHORT */:
  7649. case 0x8363 /* GL_UNSIGNED_SHORT_5_6_5 */:
  7650. case 0x8033 /* GL_UNSIGNED_SHORT_4_4_4_4 */:
  7651. case 0x8034 /* GL_UNSIGNED_SHORT_5_5_5_1 */:
  7652. case 0x8D61 /* GL_HALF_FLOAT_OES */:
  7653. return HEAPU16.subarray((pixels)>>1,(pixels+bytes)>>1);
  7654. default:
  7655. GL.recordError(0x0500); // GL_INVALID_ENUM
  7656. return null;
  7657. }
  7658. }function _emscripten_glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels) {
  7659. var pixelData = null;
  7660. if (pixels) pixelData = emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, 0);
  7661. GLctx.texSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixelData);
  7662. }
  7663. function _emscripten_glPolygonOffset(x0, x1) { GLctx['polygonOffset'](x0, x1) }
  7664. var _emscripten_asm_const_int=true;
  7665. function _emscripten_glUniform2f(location, v0, v1) {
  7666. GLctx.uniform2f(GL.uniforms[location], v0, v1);
  7667. }
  7668. function _glGetAttribLocation(program, name) {
  7669. program = GL.programs[program];
  7670. name = Pointer_stringify(name);
  7671. return GLctx.getAttribLocation(program, name);
  7672. }
  7673. function _glfwWindowHint(target, hint) {
  7674. GLFW.hints[target] = hint;
  7675. }
  7676. function _emscripten_glUniform2i(location, v0, v1) {
  7677. GLctx.uniform2i(GL.uniforms[location], v0, v1);
  7678. }
  7679. function _glBlendFunc(x0, x1) { GLctx['blendFunc'](x0, x1) }
  7680. function _glCreateProgram() {
  7681. var id = GL.getNewId(GL.programs);
  7682. var program = GLctx.createProgram();
  7683. program.name = id;
  7684. GL.programs[id] = program;
  7685. return id;
  7686. }
  7687. function _emscripten_glDeleteRenderbuffers(n, renderbuffers) {
  7688. for (var i = 0; i < n; i++) {
  7689. var id = HEAP32[(((renderbuffers)+(i*4))>>2)];
  7690. var renderbuffer = GL.renderbuffers[id];
  7691. if (!renderbuffer) continue; // GL spec: "glDeleteRenderbuffers silently ignores 0s and names that do not correspond to existing renderbuffer objects".
  7692. GLctx.deleteRenderbuffer(renderbuffer);
  7693. renderbuffer.name = 0;
  7694. GL.renderbuffers[id] = null;
  7695. }
  7696. }
  7697. function _emscripten_glGetBufferParameteriv(target, value, data) {
  7698. if (!data) {
  7699. // GLES2 specification does not specify how to behave if data is a null pointer. Since calling this function does not make sense
  7700. // if data == null, issue a GL error to notify user about it.
  7701. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7702. return;
  7703. }
  7704. HEAP32[((data)>>2)]=GLctx.getBufferParameter(target, value);
  7705. }
  7706. function emscriptenWebGLGetUniform(program, location, params, type) {
  7707. if (!params) {
  7708. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  7709. // if params == null, issue a GL error to notify user about it.
  7710. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7711. return;
  7712. }
  7713. var data = GLctx.getUniform(GL.programs[program], GL.uniforms[location]);
  7714. if (typeof data == 'number' || typeof data == 'boolean') {
  7715. switch (type) {
  7716. case 'Integer': HEAP32[((params)>>2)]=data; break;
  7717. case 'Float': HEAPF32[((params)>>2)]=data; break;
  7718. default: throw 'internal emscriptenWebGLGetUniform() error, bad type: ' + type;
  7719. }
  7720. } else {
  7721. for (var i = 0; i < data.length; i++) {
  7722. switch (type) {
  7723. case 'Integer': HEAP32[(((params)+(i))>>2)]=data[i]; break;
  7724. case 'Float': HEAPF32[(((params)+(i))>>2)]=data[i]; break;
  7725. default: throw 'internal emscriptenWebGLGetUniform() error, bad type: ' + type;
  7726. }
  7727. }
  7728. }
  7729. }function _emscripten_glGetUniformiv(program, location, params) {
  7730. emscriptenWebGLGetUniform(program, location, params, 'Integer');
  7731. }
  7732. function _emscripten_glDepthMask(flag) {
  7733. GLctx.depthMask(!!flag);
  7734. }
  7735. function _emscripten_glDepthRange(x0, x1) { GLctx['depthRange'](x0, x1) }
  7736. function _emscripten_set_fullscreenchange_callback(target, userData, useCapture, callbackfunc) {
  7737. if (typeof JSEvents.fullscreenEnabled() === 'undefined') return -1;
  7738. if (!target) target = document;
  7739. else {
  7740. target = JSEvents.findEventTarget(target);
  7741. if (!target) return -4;
  7742. }
  7743. JSEvents.registerFullscreenChangeEventCallback(target, userData, useCapture, callbackfunc, 19, "fullscreenchange");
  7744. JSEvents.registerFullscreenChangeEventCallback(target, userData, useCapture, callbackfunc, 19, "mozfullscreenchange");
  7745. JSEvents.registerFullscreenChangeEventCallback(target, userData, useCapture, callbackfunc, 19, "webkitfullscreenchange");
  7746. JSEvents.registerFullscreenChangeEventCallback(target, userData, useCapture, callbackfunc, 19, "msfullscreenchange");
  7747. return 0;
  7748. }
  7749. Module["___muldsi3"] = ___muldsi3;
  7750. Module["___muldi3"] = ___muldi3;
  7751. function _emscripten_glGetShaderPrecisionFormat(shaderType, precisionType, range, precision) {
  7752. var result = GLctx.getShaderPrecisionFormat(shaderType, precisionType);
  7753. HEAP32[((range)>>2)]=result.rangeMin;
  7754. HEAP32[(((range)+(4))>>2)]=result.rangeMax;
  7755. HEAP32[((precision)>>2)]=result.precision;
  7756. }
  7757. function _emscripten_glUniform1fv(location, count, value) {
  7758. var view;
  7759. if (count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7760. // avoid allocation when uploading few enough uniforms
  7761. view = GL.miniTempBufferViews[count-1];
  7762. for (var i = 0; i < count; ++i) {
  7763. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7764. }
  7765. } else {
  7766. view = HEAPF32.subarray((value)>>2,(value+count*4)>>2);
  7767. }
  7768. GLctx.uniform1fv(GL.uniforms[location], view);
  7769. }
  7770. function _glDeleteBuffers(n, buffers) {
  7771. for (var i = 0; i < n; i++) {
  7772. var id = HEAP32[(((buffers)+(i*4))>>2)];
  7773. var buffer = GL.buffers[id];
  7774. // From spec: "glDeleteBuffers silently ignores 0's and names that do not
  7775. // correspond to existing buffer objects."
  7776. if (!buffer) continue;
  7777. GLctx.deleteBuffer(buffer);
  7778. buffer.name = 0;
  7779. GL.buffers[id] = null;
  7780. if (id == GL.currArrayBuffer) GL.currArrayBuffer = 0;
  7781. if (id == GL.currElementArrayBuffer) GL.currElementArrayBuffer = 0;
  7782. }
  7783. }
  7784. function _emscripten_set_gamepaddisconnected_callback(userData, useCapture, callbackfunc) {
  7785. if (!navigator.getGamepads && !navigator.webkitGetGamepads) return -1;
  7786. JSEvents.registerGamepadEventCallback(window, userData, useCapture, callbackfunc, 27, "gamepaddisconnected");
  7787. return 0;
  7788. }
  7789. function _emscripten_glBindProgramARB() {
  7790. Module['printErr']('missing function: emscripten_glBindProgramARB'); abort(-1);
  7791. }
  7792. function _emscripten_glBindTexture(target, texture) {
  7793. GLctx.bindTexture(target, texture ? GL.textures[texture] : null);
  7794. }
  7795. function _emscripten_glCheckFramebufferStatus(x0) { return GLctx['checkFramebufferStatus'](x0) }
  7796. function _emscripten_glDeleteProgram(id) {
  7797. if (!id) return;
  7798. var program = GL.programs[id];
  7799. if (!program) { // glDeleteProgram actually signals an error when deleting a nonexisting object, unlike some other GL delete functions.
  7800. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7801. return;
  7802. }
  7803. GLctx.deleteProgram(program);
  7804. program.name = 0;
  7805. GL.programs[id] = null;
  7806. GL.programInfos[id] = null;
  7807. }
  7808. function _emscripten_glDisable(x0) { GLctx['disable'](x0) }
  7809. function _emscripten_glVertexAttrib3fv(index, v) {
  7810. GLctx.vertexAttrib3f(index, HEAPF32[v>>2], HEAPF32[v+4>>2], HEAPF32[v+8>>2]);
  7811. }
  7812. function _glClearColor(x0, x1, x2, x3) { GLctx['clearColor'](x0, x1, x2, x3) }
  7813. function _emscripten_glGetActiveAttrib(program, index, bufSize, length, size, type, name) {
  7814. program = GL.programs[program];
  7815. var info = GLctx.getActiveAttrib(program, index);
  7816. if (!info) return; // If an error occurs, nothing will be written to length, size and type and name.
  7817. if (bufSize > 0 && name) {
  7818. var numBytesWrittenExclNull = stringToUTF8(info.name, name, bufSize);
  7819. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  7820. } else {
  7821. if (length) HEAP32[((length)>>2)]=0;
  7822. }
  7823. if (size) HEAP32[((size)>>2)]=info.size;
  7824. if (type) HEAP32[((type)>>2)]=info.type;
  7825. }
  7826. function _emscripten_glIsFramebuffer(framebuffer) {
  7827. var fb = GL.framebuffers[framebuffer];
  7828. if (!fb) return 0;
  7829. return GLctx.isFramebuffer(fb);
  7830. }
  7831. function _emscripten_glLineWidth(x0) { GLctx['lineWidth'](x0) }
  7832. function _glfwGetCursorPos(winid, x, y) {
  7833. GLFW.getCursorPos(winid, x, y);
  7834. }
  7835. function _emscripten_glGetString(name_) {
  7836. if (GL.stringCache[name_]) return GL.stringCache[name_];
  7837. var ret;
  7838. switch(name_) {
  7839. case 0x1F00 /* GL_VENDOR */:
  7840. case 0x1F01 /* GL_RENDERER */:
  7841. case 0x9245 /* UNMASKED_VENDOR_WEBGL */:
  7842. case 0x9246 /* UNMASKED_RENDERER_WEBGL */:
  7843. ret = allocate(intArrayFromString(GLctx.getParameter(name_)), 'i8', ALLOC_NORMAL);
  7844. break;
  7845. case 0x1F02 /* GL_VERSION */:
  7846. var glVersion = GLctx.getParameter(GLctx.VERSION);
  7847. // return GLES version string corresponding to the version of the WebGL context
  7848. {
  7849. glVersion = 'OpenGL ES 2.0 (' + glVersion + ')';
  7850. }
  7851. ret = allocate(intArrayFromString(glVersion), 'i8', ALLOC_NORMAL);
  7852. break;
  7853. case 0x1F03 /* GL_EXTENSIONS */:
  7854. var exts = GLctx.getSupportedExtensions();
  7855. var gl_exts = [];
  7856. for (var i = 0; i < exts.length; ++i) {
  7857. gl_exts.push(exts[i]);
  7858. gl_exts.push("GL_" + exts[i]);
  7859. }
  7860. ret = allocate(intArrayFromString(gl_exts.join(' ')), 'i8', ALLOC_NORMAL);
  7861. break;
  7862. case 0x8B8C /* GL_SHADING_LANGUAGE_VERSION */:
  7863. var glslVersion = GLctx.getParameter(GLctx.SHADING_LANGUAGE_VERSION);
  7864. // extract the version number 'N.M' from the string 'WebGL GLSL ES N.M ...'
  7865. var ver_re = /^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/;
  7866. var ver_num = glslVersion.match(ver_re);
  7867. if (ver_num !== null) {
  7868. if (ver_num[1].length == 3) ver_num[1] = ver_num[1] + '0'; // ensure minor version has 2 digits
  7869. glslVersion = 'OpenGL ES GLSL ES ' + ver_num[1] + ' (' + glslVersion + ')';
  7870. }
  7871. ret = allocate(intArrayFromString(glslVersion), 'i8', ALLOC_NORMAL);
  7872. break;
  7873. default:
  7874. GL.recordError(0x0500/*GL_INVALID_ENUM*/);
  7875. return 0;
  7876. }
  7877. GL.stringCache[name_] = ret;
  7878. return ret;
  7879. }
  7880. function _emscripten_glGetAttribLocation(program, name) {
  7881. program = GL.programs[program];
  7882. name = Pointer_stringify(name);
  7883. return GLctx.getAttribLocation(program, name);
  7884. }
  7885. function _emscripten_glRotatef() {
  7886. Module['printErr']('missing function: emscripten_glRotatef'); abort(-1);
  7887. }
  7888. function emscriptenWebGLGet(name_, p, type) {
  7889. // Guard against user passing a null pointer.
  7890. // Note that GLES2 spec does not say anything about how passing a null pointer should be treated.
  7891. // Testing on desktop core GL 3, the application crashes on glGetIntegerv to a null pointer, but
  7892. // better to report an error instead of doing anything random.
  7893. if (!p) {
  7894. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7895. return;
  7896. }
  7897. var ret = undefined;
  7898. switch(name_) { // Handle a few trivial GLES values
  7899. case 0x8DFA: // GL_SHADER_COMPILER
  7900. ret = 1;
  7901. break;
  7902. case 0x8DF8: // GL_SHADER_BINARY_FORMATS
  7903. if (type !== 'Integer' && type !== 'Integer64') {
  7904. GL.recordError(0x0500); // GL_INVALID_ENUM
  7905. }
  7906. return; // Do not write anything to the out pointer, since no binary formats are supported.
  7907. case 0x8DF9: // GL_NUM_SHADER_BINARY_FORMATS
  7908. ret = 0;
  7909. break;
  7910. case 0x86A2: // GL_NUM_COMPRESSED_TEXTURE_FORMATS
  7911. // 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),
  7912. // so implement it ourselves to allow C++ GLES2 code get the length.
  7913. var formats = GLctx.getParameter(0x86A3 /*GL_COMPRESSED_TEXTURE_FORMATS*/);
  7914. ret = formats.length;
  7915. break;
  7916. }
  7917. if (ret === undefined) {
  7918. var result = GLctx.getParameter(name_);
  7919. switch (typeof(result)) {
  7920. case "number":
  7921. ret = result;
  7922. break;
  7923. case "boolean":
  7924. ret = result ? 1 : 0;
  7925. break;
  7926. case "string":
  7927. GL.recordError(0x0500); // GL_INVALID_ENUM
  7928. return;
  7929. case "object":
  7930. if (result === null) {
  7931. // null is a valid result for some (e.g., which buffer is bound - perhaps nothing is bound), but otherwise
  7932. // can mean an invalid name_, which we need to report as an error
  7933. switch(name_) {
  7934. case 0x8894: // ARRAY_BUFFER_BINDING
  7935. case 0x8B8D: // CURRENT_PROGRAM
  7936. case 0x8895: // ELEMENT_ARRAY_BUFFER_BINDING
  7937. case 0x8CA6: // FRAMEBUFFER_BINDING
  7938. case 0x8CA7: // RENDERBUFFER_BINDING
  7939. case 0x8069: // TEXTURE_BINDING_2D
  7940. case 0x8514: { // TEXTURE_BINDING_CUBE_MAP
  7941. ret = 0;
  7942. break;
  7943. }
  7944. default: {
  7945. GL.recordError(0x0500); // GL_INVALID_ENUM
  7946. return;
  7947. }
  7948. }
  7949. } else if (result instanceof Float32Array ||
  7950. result instanceof Uint32Array ||
  7951. result instanceof Int32Array ||
  7952. result instanceof Array) {
  7953. for (var i = 0; i < result.length; ++i) {
  7954. switch (type) {
  7955. case 'Integer': HEAP32[(((p)+(i*4))>>2)]=result[i]; break;
  7956. case 'Float': HEAPF32[(((p)+(i*4))>>2)]=result[i]; break;
  7957. case 'Boolean': HEAP8[(((p)+(i))>>0)]=result[i] ? 1 : 0; break;
  7958. default: throw 'internal glGet error, bad type: ' + type;
  7959. }
  7960. }
  7961. return;
  7962. } else if (result instanceof WebGLBuffer ||
  7963. result instanceof WebGLProgram ||
  7964. result instanceof WebGLFramebuffer ||
  7965. result instanceof WebGLRenderbuffer ||
  7966. result instanceof WebGLTexture) {
  7967. ret = result.name | 0;
  7968. } else {
  7969. GL.recordError(0x0500); // GL_INVALID_ENUM
  7970. return;
  7971. }
  7972. break;
  7973. default:
  7974. GL.recordError(0x0500); // GL_INVALID_ENUM
  7975. return;
  7976. }
  7977. }
  7978. switch (type) {
  7979. 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;
  7980. case 'Integer': HEAP32[((p)>>2)]=ret; break;
  7981. case 'Float': HEAPF32[((p)>>2)]=ret; break;
  7982. case 'Boolean': HEAP8[((p)>>0)]=ret ? 1 : 0; break;
  7983. default: throw 'internal glGet error, bad type: ' + type;
  7984. }
  7985. }function _emscripten_glGetIntegerv(name_, p) {
  7986. emscriptenWebGLGet(name_, p, 'Integer');
  7987. }
  7988. function _emscripten_glGetFramebufferAttachmentParameteriv(target, attachment, pname, params) {
  7989. var result = GLctx.getFramebufferAttachmentParameter(target, attachment, pname);
  7990. HEAP32[((params)>>2)]=result;
  7991. }
  7992. function _llvm_stackrestore(p) {
  7993. var self = _llvm_stacksave;
  7994. var ret = self.LLVM_SAVEDSTACKS[p];
  7995. self.LLVM_SAVEDSTACKS.splice(p, 1);
  7996. Runtime.stackRestore(ret);
  7997. }
  7998. function _glfwSetWindowShouldClose(winid, value) {
  7999. var win = GLFW.WindowFromId(winid);
  8000. if (!win) return;
  8001. win.shouldClose = value;
  8002. }
  8003. function _emscripten_glClientActiveTexture() {
  8004. Module['printErr']('missing function: emscripten_glClientActiveTexture'); abort(-1);
  8005. }
  8006. function _glGenBuffers(n, buffers) {
  8007. for (var i = 0; i < n; i++) {
  8008. var buffer = GLctx.createBuffer();
  8009. if (!buffer) {
  8010. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8011. while(i < n) HEAP32[(((buffers)+(i++*4))>>2)]=0;
  8012. return;
  8013. }
  8014. var id = GL.getNewId(GL.buffers);
  8015. buffer.name = id;
  8016. GL.buffers[id] = buffer;
  8017. HEAP32[(((buffers)+(i*4))>>2)]=id;
  8018. }
  8019. }
  8020. function _emscripten_memcpy_big(dest, src, num) {
  8021. HEAPU8.set(HEAPU8.subarray(src, src+num), dest);
  8022. return dest;
  8023. }
  8024. Module["_memcpy"] = _memcpy;
  8025. function _emscripten_glGetShaderInfoLog(shader, maxLength, length, infoLog) {
  8026. var log = GLctx.getShaderInfoLog(GL.shaders[shader]);
  8027. if (log === null) log = '(unknown error)';
  8028. if (maxLength > 0 && infoLog) {
  8029. var numBytesWrittenExclNull = stringToUTF8(log, infoLog, maxLength);
  8030. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  8031. } else {
  8032. if (length) HEAP32[((length)>>2)]=0;
  8033. }
  8034. }
  8035. function _glUniform2fv(location, count, value) {
  8036. var view;
  8037. if (2*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  8038. // avoid allocation when uploading few enough uniforms
  8039. view = GL.miniTempBufferViews[2*count-1];
  8040. for (var i = 0; i < 2*count; i += 2) {
  8041. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  8042. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  8043. }
  8044. } else {
  8045. view = HEAPF32.subarray((value)>>2,(value+count*8)>>2);
  8046. }
  8047. GLctx.uniform2fv(GL.uniforms[location], view);
  8048. }
  8049. function _glfwGetTime() {
  8050. return GLFW.getTime() - GLFW.initialTime;
  8051. }
  8052. function _emscripten_glGetRenderbufferParameteriv(target, pname, params) {
  8053. if (!params) {
  8054. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  8055. // if params == null, issue a GL error to notify user about it.
  8056. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8057. return;
  8058. }
  8059. HEAP32[((params)>>2)]=GLctx.getRenderbufferParameter(target, pname);
  8060. }
  8061. function _emscripten_glStencilOpSeparate(x0, x1, x2, x3) { GLctx['stencilOpSeparate'](x0, x1, x2, x3) }
  8062. function _emscripten_glReadPixels(x, y, width, height, format, type, pixels) {
  8063. var pixelData = emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, format);
  8064. if (!pixelData) {
  8065. GL.recordError(0x0500/*GL_INVALID_ENUM*/);
  8066. return;
  8067. }
  8068. GLctx.readPixels(x, y, width, height, format, type, pixelData);
  8069. }
  8070. function _emscripten_glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data) {
  8071. GLctx['compressedTexSubImage2D'](target, level, xoffset, yoffset, width, height, format, data ? HEAPU8.subarray((data),(data+imageSize)) : null);
  8072. }
  8073. function _emscripten_glGetError() {
  8074. // First return any GL error generated by the emscripten library_gl.js interop layer.
  8075. if (GL.lastError) {
  8076. var error = GL.lastError;
  8077. GL.lastError = 0/*GL_NO_ERROR*/;
  8078. return error;
  8079. } else { // If there were none, return the GL error from the browser GL context.
  8080. return GLctx.getError();
  8081. }
  8082. }
  8083. function _emscripten_glFramebufferTexture2D(target, attachment, textarget, texture, level) {
  8084. GLctx.framebufferTexture2D(target, attachment, textarget,
  8085. GL.textures[texture], level);
  8086. }
  8087. function _emscripten_glIsEnabled(x0) { return GLctx['isEnabled'](x0) }
  8088. function _glClearDepthf(x0) { GLctx['clearDepth'](x0) }
  8089. Module["_memmove"] = _memmove;
  8090. function _glGenTextures(n, textures) {
  8091. for (var i = 0; i < n; i++) {
  8092. var texture = GLctx.createTexture();
  8093. if (!texture) {
  8094. 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.
  8095. while(i < n) HEAP32[(((textures)+(i++*4))>>2)]=0;
  8096. return;
  8097. }
  8098. var id = GL.getNewId(GL.textures);
  8099. texture.name = id;
  8100. GL.textures[id] = texture;
  8101. HEAP32[(((textures)+(i*4))>>2)]=id;
  8102. }
  8103. }
  8104. function _emscripten_glVertexAttrib4f(x0, x1, x2, x3, x4) { GLctx['vertexAttrib4f'](x0, x1, x2, x3, x4) }
  8105. function _glDepthFunc(x0) { GLctx['depthFunc'](x0) }
  8106. Module["___uremdi3"] = ___uremdi3;
  8107. function _emscripten_glClearDepthf(x0) { GLctx['clearDepth'](x0) }
  8108. function _emscripten_glClear(x0) { GLctx['clear'](x0) }
  8109. function _emscripten_glBindBuffer(target, buffer) {
  8110. var bufferObj = buffer ? GL.buffers[buffer] : null;
  8111. GLctx.bindBuffer(target, bufferObj);
  8112. }
  8113. function _emscripten_glGetUniformfv(program, location, params) {
  8114. emscriptenWebGLGetUniform(program, location, params, 'Float');
  8115. }
  8116. function _glGetProgramiv(program, pname, p) {
  8117. if (!p) {
  8118. // GLES2 specification does not specify how to behave if p is a null pointer. Since calling this function does not make sense
  8119. // if p == null, issue a GL error to notify user about it.
  8120. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8121. return;
  8122. }
  8123. if (program >= GL.counter) {
  8124. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8125. return;
  8126. }
  8127. var ptable = GL.programInfos[program];
  8128. if (!ptable) {
  8129. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8130. return;
  8131. }
  8132. if (pname == 0x8B84) { // GL_INFO_LOG_LENGTH
  8133. var log = GLctx.getProgramInfoLog(GL.programs[program]);
  8134. if (log === null) log = '(unknown error)';
  8135. HEAP32[((p)>>2)]=log.length + 1;
  8136. } else if (pname == 0x8B87 /* GL_ACTIVE_UNIFORM_MAX_LENGTH */) {
  8137. HEAP32[((p)>>2)]=ptable.maxUniformLength;
  8138. } else if (pname == 0x8B8A /* GL_ACTIVE_ATTRIBUTE_MAX_LENGTH */) {
  8139. if (ptable.maxAttributeLength == -1) {
  8140. var program = GL.programs[program];
  8141. var numAttribs = GLctx.getProgramParameter(program, GLctx.ACTIVE_ATTRIBUTES);
  8142. ptable.maxAttributeLength = 0; // Spec says if there are no active attribs, 0 must be returned.
  8143. for (var i = 0; i < numAttribs; ++i) {
  8144. var activeAttrib = GLctx.getActiveAttrib(program, i);
  8145. ptable.maxAttributeLength = Math.max(ptable.maxAttributeLength, activeAttrib.name.length+1);
  8146. }
  8147. }
  8148. HEAP32[((p)>>2)]=ptable.maxAttributeLength;
  8149. } else if (pname == 0x8A35 /* GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH */) {
  8150. if (ptable.maxUniformBlockNameLength == -1) {
  8151. var program = GL.programs[program];
  8152. var numBlocks = GLctx.getProgramParameter(program, GLctx.ACTIVE_UNIFORM_BLOCKS);
  8153. ptable.maxUniformBlockNameLength = 0;
  8154. for (var i = 0; i < numBlocks; ++i) {
  8155. var activeBlockName = GLctx.getActiveUniformBlockName(program, i);
  8156. ptable.maxUniformBlockNameLength = Math.max(ptable.maxUniformBlockNameLength, activeBlockName.length+1);
  8157. }
  8158. }
  8159. HEAP32[((p)>>2)]=ptable.maxUniformBlockNameLength;
  8160. } else {
  8161. HEAP32[((p)>>2)]=GLctx.getProgramParameter(GL.programs[program], pname);
  8162. }
  8163. }
  8164. function _glVertexAttribPointer(index, size, type, normalized, stride, ptr) {
  8165. GLctx.vertexAttribPointer(index, size, type, !!normalized, stride, ptr);
  8166. }
  8167. function _emscripten_exit_pointerlock() {
  8168. // Make sure no queued up calls will fire after this.
  8169. JSEvents.removeDeferredCalls(JSEvents.requestPointerLock);
  8170. if (document.exitPointerLock) {
  8171. document.exitPointerLock();
  8172. } else if (document.msExitPointerLock) {
  8173. document.msExitPointerLock();
  8174. } else if (document.mozExitPointerLock) {
  8175. document.mozExitPointerLock();
  8176. } else if (document.webkitExitPointerLock) {
  8177. document.webkitExitPointerLock();
  8178. } else {
  8179. return -1;
  8180. }
  8181. return 0;
  8182. }
  8183. function _emscripten_glDrawRangeElements() {
  8184. Module['printErr']('missing function: emscripten_glDrawRangeElements'); abort(-1);
  8185. }
  8186. function _glGetUniformLocation(program, name) {
  8187. name = Pointer_stringify(name);
  8188. var arrayOffset = 0;
  8189. // If user passed an array accessor "[index]", parse the array index off the accessor.
  8190. if (name.indexOf(']', name.length-1) !== -1) {
  8191. var ls = name.lastIndexOf('[');
  8192. var arrayIndex = name.slice(ls+1, -1);
  8193. if (arrayIndex.length > 0) {
  8194. arrayOffset = parseInt(arrayIndex);
  8195. if (arrayOffset < 0) {
  8196. return -1;
  8197. }
  8198. }
  8199. name = name.slice(0, ls);
  8200. }
  8201. var ptable = GL.programInfos[program];
  8202. if (!ptable) {
  8203. return -1;
  8204. }
  8205. var utable = ptable.uniforms;
  8206. var uniformInfo = utable[name]; // returns pair [ dimension_of_uniform_array, uniform_location ]
  8207. 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.
  8208. return uniformInfo[1]+arrayOffset;
  8209. } else {
  8210. return -1;
  8211. }
  8212. }
  8213. function _emscripten_glGetAttachedShaders(program, maxCount, count, shaders) {
  8214. var result = GLctx.getAttachedShaders(GL.programs[program]);
  8215. var len = result.length;
  8216. if (len > maxCount) {
  8217. len = maxCount;
  8218. }
  8219. HEAP32[((count)>>2)]=len;
  8220. for (var i = 0; i < len; ++i) {
  8221. var id = GL.shaders.indexOf(result[i]);
  8222. assert(id !== -1, 'shader not bound to local id');
  8223. HEAP32[(((shaders)+(i*4))>>2)]=id;
  8224. }
  8225. }
  8226. function _emscripten_glGenRenderbuffers(n, renderbuffers) {
  8227. for (var i = 0; i < n; i++) {
  8228. var renderbuffer = GLctx.createRenderbuffer();
  8229. if (!renderbuffer) {
  8230. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8231. while(i < n) HEAP32[(((renderbuffers)+(i++*4))>>2)]=0;
  8232. return;
  8233. }
  8234. var id = GL.getNewId(GL.renderbuffers);
  8235. renderbuffer.name = id;
  8236. GL.renderbuffers[id] = renderbuffer;
  8237. HEAP32[(((renderbuffers)+(i*4))>>2)]=id;
  8238. }
  8239. }
  8240. function _emscripten_glFrontFace(x0) { GLctx['frontFace'](x0) }
  8241. function _emscripten_glDepthRangef(x0, x1) { GLctx['depthRange'](x0, x1) }
  8242. function _emscripten_glUniform1iv(location, count, value) {
  8243. GLctx.uniform1iv(GL.uniforms[location], HEAP32.subarray((value)>>2,(value+count*4)>>2));
  8244. }
  8245. function _glUniform4fv(location, count, value) {
  8246. var view;
  8247. if (4*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  8248. // avoid allocation when uploading few enough uniforms
  8249. view = GL.miniTempBufferViews[4*count-1];
  8250. for (var i = 0; i < 4*count; i += 4) {
  8251. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  8252. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  8253. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  8254. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  8255. }
  8256. } else {
  8257. view = HEAPF32.subarray((value)>>2,(value+count*16)>>2);
  8258. }
  8259. GLctx.uniform4fv(GL.uniforms[location], view);
  8260. }
  8261. function _emscripten_glTexCoordPointer() {
  8262. Module['printErr']('missing function: emscripten_glTexCoordPointer'); abort(-1);
  8263. }
  8264. function _emscripten_glGetInfoLogARB() {
  8265. Module['printErr']('missing function: emscripten_glGetInfoLogARB'); abort(-1);
  8266. }
  8267. function __exit(status) {
  8268. // void _exit(int status);
  8269. // http://pubs.opengroup.org/onlinepubs/000095399/functions/exit.html
  8270. Module['exit'](status);
  8271. }function _exit(status) {
  8272. __exit(status);
  8273. }
  8274. function _emscripten_glRenderbufferStorage(x0, x1, x2, x3) { GLctx['renderbufferStorage'](x0, x1, x2, x3) }
  8275. function _glCheckFramebufferStatus(x0) { return GLctx['checkFramebufferStatus'](x0) }
  8276. function _emscripten_glCopyTexSubImage2D(x0, x1, x2, x3, x4, x5, x6, x7) { GLctx['copyTexSubImage2D'](x0, x1, x2, x3, x4, x5, x6, x7) }
  8277. function _glfwSetCursorPosCallback(winid, cbfun) {
  8278. GLFW.setCursorPosCallback(winid, cbfun);
  8279. }
  8280. function _glBindAttribLocation(program, index, name) {
  8281. name = Pointer_stringify(name);
  8282. GLctx.bindAttribLocation(GL.programs[program], index, name);
  8283. }
  8284. function _emscripten_glShaderBinary() {
  8285. GL.recordError(0x0500/*GL_INVALID_ENUM*/);
  8286. }
  8287. function _emscripten_glIsProgram(program) {
  8288. var program = GL.programs[program];
  8289. if (!program) return 0;
  8290. return GLctx.isProgram(program);
  8291. }
  8292. function _emscripten_glBlendColor(x0, x1, x2, x3) { GLctx['blendColor'](x0, x1, x2, x3) }
  8293. function _emscripten_glGetShaderiv(shader, pname, p) {
  8294. if (!p) {
  8295. // GLES2 specification does not specify how to behave if p is a null pointer. Since calling this function does not make sense
  8296. // if p == null, issue a GL error to notify user about it.
  8297. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8298. return;
  8299. }
  8300. if (pname == 0x8B84) { // GL_INFO_LOG_LENGTH
  8301. var log = GLctx.getShaderInfoLog(GL.shaders[shader]);
  8302. if (log === null) log = '(unknown error)';
  8303. HEAP32[((p)>>2)]=log.length + 1;
  8304. } else {
  8305. HEAP32[((p)>>2)]=GLctx.getShaderParameter(GL.shaders[shader], pname);
  8306. }
  8307. }
  8308. function _emscripten_glUniformMatrix3fv(location, count, transpose, value) {
  8309. var view;
  8310. if (9*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  8311. // avoid allocation when uploading few enough uniforms
  8312. view = GL.miniTempBufferViews[9*count-1];
  8313. for (var i = 0; i < 9*count; i += 9) {
  8314. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  8315. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  8316. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  8317. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  8318. view[i+4] = HEAPF32[(((value)+(4*i+16))>>2)];
  8319. view[i+5] = HEAPF32[(((value)+(4*i+20))>>2)];
  8320. view[i+6] = HEAPF32[(((value)+(4*i+24))>>2)];
  8321. view[i+7] = HEAPF32[(((value)+(4*i+28))>>2)];
  8322. view[i+8] = HEAPF32[(((value)+(4*i+32))>>2)];
  8323. }
  8324. } else {
  8325. view = HEAPF32.subarray((value)>>2,(value+count*36)>>2);
  8326. }
  8327. GLctx.uniformMatrix3fv(GL.uniforms[location], !!transpose, view);
  8328. }
  8329. function _emscripten_glVertexAttrib2f(x0, x1, x2) { GLctx['vertexAttrib2f'](x0, x1, x2) }
  8330. function _emscripten_glUniform4fv(location, count, value) {
  8331. var view;
  8332. if (4*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  8333. // avoid allocation when uploading few enough uniforms
  8334. view = GL.miniTempBufferViews[4*count-1];
  8335. for (var i = 0; i < 4*count; i += 4) {
  8336. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  8337. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  8338. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  8339. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  8340. }
  8341. } else {
  8342. view = HEAPF32.subarray((value)>>2,(value+count*16)>>2);
  8343. }
  8344. GLctx.uniform4fv(GL.uniforms[location], view);
  8345. }
  8346. function _glBufferSubData(target, offset, size, data) {
  8347. GLctx.bufferSubData(target, offset, HEAPU8.subarray(data, data+size));
  8348. }
  8349. function _emscripten_glGenFramebuffers(n, ids) {
  8350. for (var i = 0; i < n; ++i) {
  8351. var framebuffer = GLctx.createFramebuffer();
  8352. if (!framebuffer) {
  8353. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8354. while(i < n) HEAP32[(((ids)+(i++*4))>>2)]=0;
  8355. return;
  8356. }
  8357. var id = GL.getNewId(GL.framebuffers);
  8358. framebuffer.name = id;
  8359. GL.framebuffers[id] = framebuffer;
  8360. HEAP32[(((ids)+(i*4))>>2)]=id;
  8361. }
  8362. }
  8363. function _glGetShaderiv(shader, pname, p) {
  8364. if (!p) {
  8365. // GLES2 specification does not specify how to behave if p is a null pointer. Since calling this function does not make sense
  8366. // if p == null, issue a GL error to notify user about it.
  8367. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8368. return;
  8369. }
  8370. if (pname == 0x8B84) { // GL_INFO_LOG_LENGTH
  8371. var log = GLctx.getShaderInfoLog(GL.shaders[shader]);
  8372. if (log === null) log = '(unknown error)';
  8373. HEAP32[((p)>>2)]=log.length + 1;
  8374. } else {
  8375. HEAP32[((p)>>2)]=GLctx.getShaderParameter(GL.shaders[shader], pname);
  8376. }
  8377. }
  8378. function _emscripten_glBlendEquationSeparate(x0, x1) { GLctx['blendEquationSeparate'](x0, x1) }
  8379. function _glfwSetWindowIconifyCallback(winid, cbfun) {
  8380. var win = GLFW.WindowFromId(winid);
  8381. if (!win) return;
  8382. win.windowIconifyFunc = cbfun;
  8383. }
  8384. function _emscripten_glUniform1i(location, v0) {
  8385. GLctx.uniform1i(GL.uniforms[location], v0);
  8386. }
  8387. function _emscripten_glGenTextures(n, textures) {
  8388. for (var i = 0; i < n; i++) {
  8389. var texture = GLctx.createTexture();
  8390. if (!texture) {
  8391. 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.
  8392. while(i < n) HEAP32[(((textures)+(i++*4))>>2)]=0;
  8393. return;
  8394. }
  8395. var id = GL.getNewId(GL.textures);
  8396. texture.name = id;
  8397. GL.textures[id] = texture;
  8398. HEAP32[(((textures)+(i*4))>>2)]=id;
  8399. }
  8400. }
  8401. function _emscripten_glVertexAttrib2fv(index, v) {
  8402. GLctx.vertexAttrib2f(index, HEAPF32[v>>2], HEAPF32[v+4>>2]);
  8403. }
  8404. function _emscripten_glGetActiveUniform(program, index, bufSize, length, size, type, name) {
  8405. program = GL.programs[program];
  8406. var info = GLctx.getActiveUniform(program, index);
  8407. if (!info) return; // If an error occurs, nothing will be written to length, size, type and name.
  8408. if (bufSize > 0 && name) {
  8409. var numBytesWrittenExclNull = stringToUTF8(info.name, name, bufSize);
  8410. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  8411. } else {
  8412. if (length) HEAP32[((length)>>2)]=0;
  8413. }
  8414. if (size) HEAP32[((size)>>2)]=info.size;
  8415. if (type) HEAP32[((type)>>2)]=info.type;
  8416. }
  8417. Module["_roundf"] = _roundf;
  8418. function _emscripten_glDeleteObjectARB() {
  8419. Module['printErr']('missing function: emscripten_glDeleteObjectARB'); abort(-1);
  8420. }
  8421. function _emscripten_set_touchmove_callback(target, userData, useCapture, callbackfunc) {
  8422. JSEvents.registerTouchEventCallback(target, userData, useCapture, callbackfunc, 24, "touchmove");
  8423. return 0;
  8424. }
  8425. function _emscripten_glUniform1f(location, v0) {
  8426. GLctx.uniform1f(GL.uniforms[location], v0);
  8427. }
  8428. function _emscripten_glVertexAttribPointer(index, size, type, normalized, stride, ptr) {
  8429. GLctx.vertexAttribPointer(index, size, type, !!normalized, stride, ptr);
  8430. }
  8431. function _glShaderSource(shader, count, string, length) {
  8432. var source = GL.getSource(shader, count, string, length);
  8433. GLctx.shaderSource(GL.shaders[shader], source);
  8434. }
  8435. function _emscripten_glDrawArrays(mode, first, count) {
  8436. GLctx.drawArrays(mode, first, count);
  8437. }
  8438. function _emscripten_glGenBuffers(n, buffers) {
  8439. for (var i = 0; i < n; i++) {
  8440. var buffer = GLctx.createBuffer();
  8441. if (!buffer) {
  8442. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8443. while(i < n) HEAP32[(((buffers)+(i++*4))>>2)]=0;
  8444. return;
  8445. }
  8446. var id = GL.getNewId(GL.buffers);
  8447. buffer.name = id;
  8448. GL.buffers[id] = buffer;
  8449. HEAP32[(((buffers)+(i*4))>>2)]=id;
  8450. }
  8451. }
  8452. function _emscripten_glClearDepth(x0) { GLctx['clearDepth'](x0) }
  8453. function _emscripten_set_keypress_callback(target, userData, useCapture, callbackfunc) {
  8454. JSEvents.registerKeyEventCallback(target, userData, useCapture, callbackfunc, 1, "keypress");
  8455. return 0;
  8456. }
  8457. function _glfwSetCharCallback(winid, cbfun) {
  8458. GLFW.setCharCallback(winid, cbfun);
  8459. }
  8460. function _emscripten_glGetUniformLocation(program, name) {
  8461. name = Pointer_stringify(name);
  8462. var arrayOffset = 0;
  8463. // If user passed an array accessor "[index]", parse the array index off the accessor.
  8464. if (name.indexOf(']', name.length-1) !== -1) {
  8465. var ls = name.lastIndexOf('[');
  8466. var arrayIndex = name.slice(ls+1, -1);
  8467. if (arrayIndex.length > 0) {
  8468. arrayOffset = parseInt(arrayIndex);
  8469. if (arrayOffset < 0) {
  8470. return -1;
  8471. }
  8472. }
  8473. name = name.slice(0, ls);
  8474. }
  8475. var ptable = GL.programInfos[program];
  8476. if (!ptable) {
  8477. return -1;
  8478. }
  8479. var utable = ptable.uniforms;
  8480. var uniformInfo = utable[name]; // returns pair [ dimension_of_uniform_array, uniform_location ]
  8481. 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.
  8482. return uniformInfo[1]+arrayOffset;
  8483. } else {
  8484. return -1;
  8485. }
  8486. }
  8487. function _glActiveTexture(x0) { GLctx['activeTexture'](x0) }
  8488. function _glBindBuffer(target, buffer) {
  8489. var bufferObj = buffer ? GL.buffers[buffer] : null;
  8490. GLctx.bindBuffer(target, bufferObj);
  8491. }
  8492. function _emscripten_glVertexAttrib4fv(index, v) {
  8493. GLctx.vertexAttrib4f(index, HEAPF32[v>>2], HEAPF32[v+4>>2], HEAPF32[v+8>>2], HEAPF32[v+12>>2]);
  8494. }
  8495. function _emscripten_glScissor(x0, x1, x2, x3) { GLctx['scissor'](x0, x1, x2, x3) }
  8496. function _glfwSetCursorEnterCallback(winid, cbfun) {
  8497. var win = GLFW.WindowFromId(winid);
  8498. if (!win) return;
  8499. win.cursorEnterFunc = cbfun;
  8500. }
  8501. Module["_bitshift64Lshr"] = _bitshift64Lshr;
  8502. function _glUniform3fv(location, count, value) {
  8503. var view;
  8504. if (3*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  8505. // avoid allocation when uploading few enough uniforms
  8506. view = GL.miniTempBufferViews[3*count-1];
  8507. for (var i = 0; i < 3*count; i += 3) {
  8508. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  8509. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  8510. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  8511. }
  8512. } else {
  8513. view = HEAPF32.subarray((value)>>2,(value+count*12)>>2);
  8514. }
  8515. GLctx.uniform3fv(GL.uniforms[location], view);
  8516. }
  8517. function _glBufferData(target, size, data, usage) {
  8518. if (!data) {
  8519. GLctx.bufferData(target, size, usage);
  8520. } else {
  8521. GLctx.bufferData(target, HEAPU8.subarray(data, data+size), usage);
  8522. }
  8523. }
  8524. function _emscripten_glIsShader(shader) {
  8525. var s = GL.shaders[shader];
  8526. if (!s) return 0;
  8527. return GLctx.isShader(s);
  8528. }
  8529. function _emscripten_glDrawBuffers(n, bufs) {
  8530. var bufArray = GL.tempFixedLengthArray[n];
  8531. for (var i = 0; i < n; i++) {
  8532. bufArray[i] = HEAP32[(((bufs)+(i*4))>>2)];
  8533. }
  8534. GLctx['drawBuffers'](bufArray);
  8535. }
  8536. function _glGetFloatv(name_, p) {
  8537. emscriptenWebGLGet(name_, p, 'Float');
  8538. }
  8539. function _emscripten_glBindFramebuffer(target, framebuffer) {
  8540. GLctx.bindFramebuffer(target, framebuffer ? GL.framebuffers[framebuffer] : null);
  8541. }
  8542. function _emscripten_glBlendEquation(x0) { GLctx['blendEquation'](x0) }
  8543. function _emscripten_glBufferSubData(target, offset, size, data) {
  8544. GLctx.bufferSubData(target, offset, HEAPU8.subarray(data, data+size));
  8545. }
  8546. function _emscripten_glBufferData(target, size, data, usage) {
  8547. if (!data) {
  8548. GLctx.bufferData(target, size, usage);
  8549. } else {
  8550. GLctx.bufferData(target, HEAPU8.subarray(data, data+size), usage);
  8551. }
  8552. }
  8553. Module["_sbrk"] = _sbrk;
  8554. Module["_bitshift64Shl"] = _bitshift64Shl;
  8555. function _emscripten_glGetShaderSource(shader, bufSize, length, source) {
  8556. var result = GLctx.getShaderSource(GL.shaders[shader]);
  8557. if (!result) return; // If an error occurs, nothing will be written to length or source.
  8558. if (bufSize > 0 && source) {
  8559. var numBytesWrittenExclNull = stringToUTF8(result, source, bufSize);
  8560. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  8561. } else {
  8562. if (length) HEAP32[((length)>>2)]=0;
  8563. }
  8564. }
  8565. Module["_llvm_bswap_i32"] = _llvm_bswap_i32;
  8566. function _glTexParameteri(x0, x1, x2) { GLctx['texParameteri'](x0, x1, x2) }
  8567. function _glBindRenderbuffer(target, renderbuffer) {
  8568. GLctx.bindRenderbuffer(target, renderbuffer ? GL.renderbuffers[renderbuffer] : null);
  8569. }
  8570. function _glfwSetKeyCallback(winid, cbfun) {
  8571. GLFW.setKeyCallback(winid, cbfun);
  8572. }
  8573. function _emscripten_set_gamepadconnected_callback(userData, useCapture, callbackfunc) {
  8574. if (!navigator.getGamepads && !navigator.webkitGetGamepads) return -1;
  8575. JSEvents.registerGamepadEventCallback(window, userData, useCapture, callbackfunc, 26, "gamepadconnected");
  8576. return 0;
  8577. }
  8578. function _emscripten_glGetFloatv(name_, p) {
  8579. emscriptenWebGLGet(name_, p, 'Float');
  8580. }
  8581. function _glTexImage2D(target, level, internalFormat, width, height, border, format, type, pixels) {
  8582. var pixelData = null;
  8583. if (pixels) pixelData = emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, internalFormat);
  8584. GLctx.texImage2D(target, level, internalFormat, width, height, border, format, type, pixelData);
  8585. }
  8586. function ___assert_fail(condition, filename, line, func) {
  8587. ABORT = true;
  8588. throw 'Assertion failed: ' + Pointer_stringify(condition) + ', at: ' + [filename ? Pointer_stringify(filename) : 'unknown filename', line, func ? Pointer_stringify(func) : 'unknown function'] + ' at ' + stackTrace();
  8589. }
  8590. function _emscripten_glVertexAttribDivisor(index, divisor) {
  8591. GLctx['vertexAttribDivisor'](index, divisor);
  8592. }
  8593. function _emscripten_glDrawElementsInstanced(mode, count, type, indices, primcount) {
  8594. GLctx['drawElementsInstanced'](mode, count, type, indices, primcount);
  8595. }
  8596. function _emscripten_glDrawElements(mode, count, type, indices) {
  8597. GLctx.drawElements(mode, count, type, indices);
  8598. }
  8599. function _glUniform1fv(location, count, value) {
  8600. var view;
  8601. if (count <= GL.MINI_TEMP_BUFFER_SIZE) {
  8602. // avoid allocation when uploading few enough uniforms
  8603. view = GL.miniTempBufferViews[count-1];
  8604. for (var i = 0; i < count; ++i) {
  8605. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  8606. }
  8607. } else {
  8608. view = HEAPF32.subarray((value)>>2,(value+count*4)>>2);
  8609. }
  8610. GLctx.uniform1fv(GL.uniforms[location], view);
  8611. }
  8612. function _glfwSetMouseButtonCallback(winid, cbfun) {
  8613. GLFW.setMouseButtonCallback(winid, cbfun);
  8614. }
  8615. function _emscripten_glCreateProgram() {
  8616. var id = GL.getNewId(GL.programs);
  8617. var program = GLctx.createProgram();
  8618. program.name = id;
  8619. GL.programs[id] = program;
  8620. return id;
  8621. }
  8622. function _emscripten_glCompressedTexImage2D(target, level, internalFormat, width, height, border, imageSize, data) {
  8623. GLctx['compressedTexImage2D'](target, level, internalFormat, width, height, border, data ? HEAPU8.subarray((data),(data+imageSize)) : null);
  8624. }
  8625. function _emscripten_glClearColor(x0, x1, x2, x3) { GLctx['clearColor'](x0, x1, x2, x3) }
  8626. function _emscripten_glBindVertexArray(vao) {
  8627. GLctx['bindVertexArray'](GL.vaos[vao]);
  8628. }
  8629. function _emscripten_glLoadMatrixf() {
  8630. Module['printErr']('missing function: emscripten_glLoadMatrixf'); abort(-1);
  8631. }
  8632. function _glDeleteShader(id) {
  8633. if (!id) return;
  8634. var shader = GL.shaders[id];
  8635. if (!shader) { // glDeleteShader actually signals an error when deleting a nonexisting object, unlike some other GL delete functions.
  8636. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8637. return;
  8638. }
  8639. GLctx.deleteShader(shader);
  8640. GL.shaders[id] = null;
  8641. }
  8642. function _emscripten_glGetProgramiv(program, pname, p) {
  8643. if (!p) {
  8644. // GLES2 specification does not specify how to behave if p is a null pointer. Since calling this function does not make sense
  8645. // if p == null, issue a GL error to notify user about it.
  8646. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8647. return;
  8648. }
  8649. if (program >= GL.counter) {
  8650. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8651. return;
  8652. }
  8653. var ptable = GL.programInfos[program];
  8654. if (!ptable) {
  8655. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8656. return;
  8657. }
  8658. if (pname == 0x8B84) { // GL_INFO_LOG_LENGTH
  8659. var log = GLctx.getProgramInfoLog(GL.programs[program]);
  8660. if (log === null) log = '(unknown error)';
  8661. HEAP32[((p)>>2)]=log.length + 1;
  8662. } else if (pname == 0x8B87 /* GL_ACTIVE_UNIFORM_MAX_LENGTH */) {
  8663. HEAP32[((p)>>2)]=ptable.maxUniformLength;
  8664. } else if (pname == 0x8B8A /* GL_ACTIVE_ATTRIBUTE_MAX_LENGTH */) {
  8665. if (ptable.maxAttributeLength == -1) {
  8666. var program = GL.programs[program];
  8667. var numAttribs = GLctx.getProgramParameter(program, GLctx.ACTIVE_ATTRIBUTES);
  8668. ptable.maxAttributeLength = 0; // Spec says if there are no active attribs, 0 must be returned.
  8669. for (var i = 0; i < numAttribs; ++i) {
  8670. var activeAttrib = GLctx.getActiveAttrib(program, i);
  8671. ptable.maxAttributeLength = Math.max(ptable.maxAttributeLength, activeAttrib.name.length+1);
  8672. }
  8673. }
  8674. HEAP32[((p)>>2)]=ptable.maxAttributeLength;
  8675. } else if (pname == 0x8A35 /* GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH */) {
  8676. if (ptable.maxUniformBlockNameLength == -1) {
  8677. var program = GL.programs[program];
  8678. var numBlocks = GLctx.getProgramParameter(program, GLctx.ACTIVE_UNIFORM_BLOCKS);
  8679. ptable.maxUniformBlockNameLength = 0;
  8680. for (var i = 0; i < numBlocks; ++i) {
  8681. var activeBlockName = GLctx.getActiveUniformBlockName(program, i);
  8682. ptable.maxUniformBlockNameLength = Math.max(ptable.maxUniformBlockNameLength, activeBlockName.length+1);
  8683. }
  8684. }
  8685. HEAP32[((p)>>2)]=ptable.maxUniformBlockNameLength;
  8686. } else {
  8687. HEAP32[((p)>>2)]=GLctx.getProgramParameter(GL.programs[program], pname);
  8688. }
  8689. }
  8690. function _emscripten_glGetProgramInfoLog(program, maxLength, length, infoLog) {
  8691. var log = GLctx.getProgramInfoLog(GL.programs[program]);
  8692. if (log === null) log = '(unknown error)';
  8693. if (maxLength > 0 && infoLog) {
  8694. var numBytesWrittenExclNull = stringToUTF8(log, infoLog, maxLength);
  8695. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  8696. } else {
  8697. if (length) HEAP32[((length)>>2)]=0;
  8698. }
  8699. }
  8700. function _emscripten_glTexImage2D(target, level, internalFormat, width, height, border, format, type, pixels) {
  8701. var pixelData = null;
  8702. if (pixels) pixelData = emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, internalFormat);
  8703. GLctx.texImage2D(target, level, internalFormat, width, height, border, format, type, pixelData);
  8704. }
  8705. function _glPixelStorei(pname, param) {
  8706. if (pname == 0x0D05 /* GL_PACK_ALIGNMENT */) {
  8707. GL.packAlignment = param;
  8708. } else if (pname == 0x0cf5 /* GL_UNPACK_ALIGNMENT */) {
  8709. GL.unpackAlignment = param;
  8710. }
  8711. GLctx.pixelStorei(pname, param);
  8712. }
  8713. function ___unlock() {}
  8714. function _emscripten_glActiveTexture(x0) { GLctx['activeTexture'](x0) }
  8715. function _glViewport(x0, x1, x2, x3) { GLctx['viewport'](x0, x1, x2, x3) }
  8716. function _glVertexAttrib2f(x0, x1, x2) { GLctx['vertexAttrib2f'](x0, x1, x2) }
  8717. function _glfwDestroyWindow(winid) {
  8718. return GLFW.destroyWindow(winid);
  8719. }
  8720. function _emscripten_glFlush() { GLctx['flush']() }
  8721. function _glfwSetErrorCallback(cbfun) {
  8722. GLFW.errorFunc = cbfun;
  8723. }
  8724. function _glfwSetCursorPos(winid, x, y) {
  8725. GLFW.setCursorPos(winid, x, y);
  8726. }
  8727. function _emscripten_glCreateShader(shaderType) {
  8728. var id = GL.getNewId(GL.shaders);
  8729. GL.shaders[id] = GLctx.createShader(shaderType);
  8730. return id;
  8731. }
  8732. function _glUniformMatrix4fv(location, count, transpose, value) {
  8733. var view;
  8734. if (16*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  8735. // avoid allocation when uploading few enough uniforms
  8736. view = GL.miniTempBufferViews[16*count-1];
  8737. for (var i = 0; i < 16*count; i += 16) {
  8738. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  8739. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  8740. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  8741. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  8742. view[i+4] = HEAPF32[(((value)+(4*i+16))>>2)];
  8743. view[i+5] = HEAPF32[(((value)+(4*i+20))>>2)];
  8744. view[i+6] = HEAPF32[(((value)+(4*i+24))>>2)];
  8745. view[i+7] = HEAPF32[(((value)+(4*i+28))>>2)];
  8746. view[i+8] = HEAPF32[(((value)+(4*i+32))>>2)];
  8747. view[i+9] = HEAPF32[(((value)+(4*i+36))>>2)];
  8748. view[i+10] = HEAPF32[(((value)+(4*i+40))>>2)];
  8749. view[i+11] = HEAPF32[(((value)+(4*i+44))>>2)];
  8750. view[i+12] = HEAPF32[(((value)+(4*i+48))>>2)];
  8751. view[i+13] = HEAPF32[(((value)+(4*i+52))>>2)];
  8752. view[i+14] = HEAPF32[(((value)+(4*i+56))>>2)];
  8753. view[i+15] = HEAPF32[(((value)+(4*i+60))>>2)];
  8754. }
  8755. } else {
  8756. view = HEAPF32.subarray((value)>>2,(value+count*64)>>2);
  8757. }
  8758. GLctx.uniformMatrix4fv(GL.uniforms[location], !!transpose, view);
  8759. }
  8760. function _emscripten_glValidateProgram(program) {
  8761. GLctx.validateProgram(GL.programs[program]);
  8762. }
  8763. function _emscripten_set_click_callback(target, userData, useCapture, callbackfunc) {
  8764. JSEvents.registerMouseEventCallback(target, userData, useCapture, callbackfunc, 4, "click");
  8765. return 0;
  8766. }
  8767. function _glFrontFace(x0) { GLctx['frontFace'](x0) }
  8768. function _emscripten_glColorMask(red, green, blue, alpha) {
  8769. GLctx.colorMask(!!red, !!green, !!blue, !!alpha);
  8770. }
  8771. function _emscripten_glPixelStorei(pname, param) {
  8772. if (pname == 0x0D05 /* GL_PACK_ALIGNMENT */) {
  8773. GL.packAlignment = param;
  8774. } else if (pname == 0x0cf5 /* GL_UNPACK_ALIGNMENT */) {
  8775. GL.unpackAlignment = param;
  8776. }
  8777. GLctx.pixelStorei(pname, param);
  8778. }
  8779. function _emscripten_glDeleteTextures(n, textures) {
  8780. for (var i = 0; i < n; i++) {
  8781. var id = HEAP32[(((textures)+(i*4))>>2)];
  8782. var texture = GL.textures[id];
  8783. if (!texture) continue; // GL spec: "glDeleteTextures silently ignores 0s and names that do not correspond to existing textures".
  8784. GLctx.deleteTexture(texture);
  8785. texture.name = 0;
  8786. GL.textures[id] = null;
  8787. }
  8788. }
  8789. function _glfwGetKey(winid, key) {
  8790. return GLFW.getKey(winid, key);
  8791. }
  8792. function _emscripten_glCompileShader(shader) {
  8793. GLctx.compileShader(GL.shaders[shader]);
  8794. }
  8795. function _emscripten_glGenVertexArrays(n, arrays) {
  8796. for (var i = 0; i < n; i++) {
  8797. var vao = GLctx['createVertexArray']();
  8798. if (!vao) {
  8799. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8800. while(i < n) HEAP32[(((arrays)+(i++*4))>>2)]=0;
  8801. return;
  8802. }
  8803. var id = GL.getNewId(GL.vaos);
  8804. vao.name = id;
  8805. GL.vaos[id] = vao;
  8806. HEAP32[(((arrays)+(i*4))>>2)]=id;
  8807. }
  8808. }
  8809. function _time(ptr) {
  8810. var ret = (Date.now()/1000)|0;
  8811. if (ptr) {
  8812. HEAP32[((ptr)>>2)]=ret;
  8813. }
  8814. return ret;
  8815. }
  8816. function _emscripten_glGetBooleanv(name_, p) {
  8817. emscriptenWebGLGet(name_, p, 'Boolean');
  8818. }
  8819. function ___syscall221(which, varargs) {SYSCALLS.varargs = varargs;
  8820. try {
  8821. // fcntl64
  8822. var stream = SYSCALLS.getStreamFromFD(), cmd = SYSCALLS.get();
  8823. switch (cmd) {
  8824. case 0: {
  8825. var arg = SYSCALLS.get();
  8826. if (arg < 0) {
  8827. return -ERRNO_CODES.EINVAL;
  8828. }
  8829. var newStream;
  8830. newStream = FS.open(stream.path, stream.flags, 0, arg);
  8831. return newStream.fd;
  8832. }
  8833. case 1:
  8834. case 2:
  8835. return 0; // FD_CLOEXEC makes no sense for a single process.
  8836. case 3:
  8837. return stream.flags;
  8838. case 4: {
  8839. var arg = SYSCALLS.get();
  8840. stream.flags |= arg;
  8841. return 0;
  8842. }
  8843. case 12:
  8844. case 12: {
  8845. var arg = SYSCALLS.get();
  8846. var offset = 0;
  8847. // We're always unlocked.
  8848. HEAP16[(((arg)+(offset))>>1)]=2;
  8849. return 0;
  8850. }
  8851. case 13:
  8852. case 14:
  8853. case 13:
  8854. case 14:
  8855. return 0; // Pretend that the locking is successful.
  8856. case 16:
  8857. case 8:
  8858. return -ERRNO_CODES.EINVAL; // These are for sockets. We don't have them fully implemented yet.
  8859. case 9:
  8860. // 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.
  8861. ___setErrNo(ERRNO_CODES.EINVAL);
  8862. return -1;
  8863. default: {
  8864. return -ERRNO_CODES.EINVAL;
  8865. }
  8866. }
  8867. } catch (e) {
  8868. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  8869. return -e.errno;
  8870. }
  8871. }
  8872. var GLctx; GL.init();
  8873. if (ENVIRONMENT_IS_NODE) {
  8874. _emscripten_get_now = function _emscripten_get_now_actual() {
  8875. var t = process['hrtime']();
  8876. return t[0] * 1e3 + t[1] / 1e6;
  8877. };
  8878. } else if (typeof dateNow !== 'undefined') {
  8879. _emscripten_get_now = dateNow;
  8880. } else if (typeof self === 'object' && self['performance'] && typeof self['performance']['now'] === 'function') {
  8881. _emscripten_get_now = function() { return self['performance']['now'](); };
  8882. } else if (typeof performance === 'object' && typeof performance['now'] === 'function') {
  8883. _emscripten_get_now = function() { return performance['now'](); };
  8884. } else {
  8885. _emscripten_get_now = Date.now;
  8886. };
  8887. 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) };
  8888. Module["requestFullscreen"] = function Module_requestFullscreen(lockPointer, resizeCanvas, vrDevice) { Browser.requestFullscreen(lockPointer, resizeCanvas, vrDevice) };
  8889. Module["requestAnimationFrame"] = function Module_requestAnimationFrame(func) { Browser.requestAnimationFrame(func) };
  8890. Module["setCanvasSize"] = function Module_setCanvasSize(width, height, noUpdates) { Browser.setCanvasSize(width, height, noUpdates) };
  8891. Module["pauseMainLoop"] = function Module_pauseMainLoop() { Browser.mainLoop.pause() };
  8892. Module["resumeMainLoop"] = function Module_resumeMainLoop() { Browser.mainLoop.resume() };
  8893. Module["getUserMedia"] = function Module_getUserMedia() { Browser.getUserMedia() }
  8894. Module["createContext"] = function Module_createContext(canvas, useWebGL, setInModule, webGLContextAttributes) { return Browser.createContext(canvas, useWebGL, setInModule, webGLContextAttributes) };
  8895. 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;;
  8896. __ATINIT__.unshift(function() { TTY.init() });__ATEXIT__.push(function() { TTY.shutdown() });;
  8897. if (ENVIRONMENT_IS_NODE) { var fs = require("fs"); var NODEJS_PATH = require("path"); NODEFS.staticInit(); };
  8898. JSEvents.staticInit();;
  8899. DYNAMICTOP_PTR = allocate(1, "i32", ALLOC_STATIC);
  8900. STACK_BASE = STACKTOP = Runtime.alignMemory(STATICTOP);
  8901. STACK_MAX = STACK_BASE + TOTAL_STACK;
  8902. DYNAMIC_BASE = Runtime.alignMemory(STACK_MAX);
  8903. HEAP32[DYNAMICTOP_PTR>>2] = DYNAMIC_BASE;
  8904. staticSealed = true; // seal the static portion of memory
  8905. assert(DYNAMIC_BASE < TOTAL_MEMORY, "TOTAL_MEMORY not big enough for stack");
  8906. 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) }
  8907. 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) }
  8908. 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) }
  8909. 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) }
  8910. 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) }
  8911. 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) }
  8912. 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) }
  8913. 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) }
  8914. 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) }
  8915. 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) }
  8916. 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) }
  8917. 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) }
  8918. 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) }
  8919. 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) }
  8920. 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) }
  8921. 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) }
  8922. 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) }
  8923. 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) }
  8924. 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) }
  8925. 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) }
  8926. 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) }
  8927. 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) }
  8928. 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) }
  8929. 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) }
  8930. function invoke_viiiii(index,a1,a2,a3,a4,a5) {
  8931. try {
  8932. Module["dynCall_viiiii"](index,a1,a2,a3,a4,a5);
  8933. } catch(e) {
  8934. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8935. Module["setThrew"](1, 0);
  8936. }
  8937. }
  8938. function invoke_vd(index,a1) {
  8939. try {
  8940. Module["dynCall_vd"](index,a1);
  8941. } catch(e) {
  8942. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8943. Module["setThrew"](1, 0);
  8944. }
  8945. }
  8946. function invoke_vid(index,a1,a2) {
  8947. try {
  8948. Module["dynCall_vid"](index,a1,a2);
  8949. } catch(e) {
  8950. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8951. Module["setThrew"](1, 0);
  8952. }
  8953. }
  8954. function invoke_vi(index,a1) {
  8955. try {
  8956. Module["dynCall_vi"](index,a1);
  8957. } catch(e) {
  8958. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8959. Module["setThrew"](1, 0);
  8960. }
  8961. }
  8962. function invoke_vii(index,a1,a2) {
  8963. try {
  8964. Module["dynCall_vii"](index,a1,a2);
  8965. } catch(e) {
  8966. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8967. Module["setThrew"](1, 0);
  8968. }
  8969. }
  8970. function invoke_ii(index,a1) {
  8971. try {
  8972. return Module["dynCall_ii"](index,a1);
  8973. } catch(e) {
  8974. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8975. Module["setThrew"](1, 0);
  8976. }
  8977. }
  8978. function invoke_viddd(index,a1,a2,a3,a4) {
  8979. try {
  8980. Module["dynCall_viddd"](index,a1,a2,a3,a4);
  8981. } catch(e) {
  8982. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8983. Module["setThrew"](1, 0);
  8984. }
  8985. }
  8986. function invoke_vidd(index,a1,a2,a3) {
  8987. try {
  8988. Module["dynCall_vidd"](index,a1,a2,a3);
  8989. } catch(e) {
  8990. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8991. Module["setThrew"](1, 0);
  8992. }
  8993. }
  8994. function invoke_iiii(index,a1,a2,a3) {
  8995. try {
  8996. return Module["dynCall_iiii"](index,a1,a2,a3);
  8997. } catch(e) {
  8998. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8999. Module["setThrew"](1, 0);
  9000. }
  9001. }
  9002. function invoke_viiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8) {
  9003. try {
  9004. Module["dynCall_viiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7,a8);
  9005. } catch(e) {
  9006. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  9007. Module["setThrew"](1, 0);
  9008. }
  9009. }
  9010. function invoke_viiiiii(index,a1,a2,a3,a4,a5,a6) {
  9011. try {
  9012. Module["dynCall_viiiiii"](index,a1,a2,a3,a4,a5,a6);
  9013. } catch(e) {
  9014. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  9015. Module["setThrew"](1, 0);
  9016. }
  9017. }
  9018. function invoke_viii(index,a1,a2,a3) {
  9019. try {
  9020. Module["dynCall_viii"](index,a1,a2,a3);
  9021. } catch(e) {
  9022. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  9023. Module["setThrew"](1, 0);
  9024. }
  9025. }
  9026. function invoke_vidddd(index,a1,a2,a3,a4,a5) {
  9027. try {
  9028. Module["dynCall_vidddd"](index,a1,a2,a3,a4,a5);
  9029. } catch(e) {
  9030. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  9031. Module["setThrew"](1, 0);
  9032. }
  9033. }
  9034. function invoke_vdi(index,a1,a2) {
  9035. try {
  9036. Module["dynCall_vdi"](index,a1,a2);
  9037. } catch(e) {
  9038. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  9039. Module["setThrew"](1, 0);
  9040. }
  9041. }
  9042. function invoke_viiiiiii(index,a1,a2,a3,a4,a5,a6,a7) {
  9043. try {
  9044. Module["dynCall_viiiiiii"](index,a1,a2,a3,a4,a5,a6,a7);
  9045. } catch(e) {
  9046. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  9047. Module["setThrew"](1, 0);
  9048. }
  9049. }
  9050. function invoke_viiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9) {
  9051. try {
  9052. Module["dynCall_viiiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7,a8,a9);
  9053. } catch(e) {
  9054. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  9055. Module["setThrew"](1, 0);
  9056. }
  9057. }
  9058. function invoke_iii(index,a1,a2) {
  9059. try {
  9060. return Module["dynCall_iii"](index,a1,a2);
  9061. } catch(e) {
  9062. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  9063. Module["setThrew"](1, 0);
  9064. }
  9065. }
  9066. function invoke_i(index) {
  9067. try {
  9068. return Module["dynCall_i"](index);
  9069. } catch(e) {
  9070. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  9071. Module["setThrew"](1, 0);
  9072. }
  9073. }
  9074. function invoke_vdddddd(index,a1,a2,a3,a4,a5,a6) {
  9075. try {
  9076. Module["dynCall_vdddddd"](index,a1,a2,a3,a4,a5,a6);
  9077. } catch(e) {
  9078. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  9079. Module["setThrew"](1, 0);
  9080. }
  9081. }
  9082. function invoke_vdddd(index,a1,a2,a3,a4) {
  9083. try {
  9084. Module["dynCall_vdddd"](index,a1,a2,a3,a4);
  9085. } catch(e) {
  9086. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  9087. Module["setThrew"](1, 0);
  9088. }
  9089. }
  9090. function invoke_vdd(index,a1,a2) {
  9091. try {
  9092. Module["dynCall_vdd"](index,a1,a2);
  9093. } catch(e) {
  9094. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  9095. Module["setThrew"](1, 0);
  9096. }
  9097. }
  9098. function invoke_v(index) {
  9099. try {
  9100. Module["dynCall_v"](index);
  9101. } catch(e) {
  9102. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  9103. Module["setThrew"](1, 0);
  9104. }
  9105. }
  9106. function invoke_viid(index,a1,a2,a3) {
  9107. try {
  9108. Module["dynCall_viid"](index,a1,a2,a3);
  9109. } catch(e) {
  9110. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  9111. Module["setThrew"](1, 0);
  9112. }
  9113. }
  9114. function invoke_viiii(index,a1,a2,a3,a4) {
  9115. try {
  9116. Module["dynCall_viiii"](index,a1,a2,a3,a4);
  9117. } catch(e) {
  9118. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  9119. Module["setThrew"](1, 0);
  9120. }
  9121. }
  9122. Module.asmGlobalArg = { "Math": Math, "Int8Array": Int8Array, "Int16Array": Int16Array, "Int32Array": Int32Array, "Uint8Array": Uint8Array, "Uint16Array": Uint16Array, "Uint32Array": Uint32Array, "Float32Array": Float32Array, "Float64Array": Float64Array, "NaN": NaN, "Infinity": Infinity };
  9123. 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, "_glUniform2fv": _glUniform2fv, "_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_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, "_glRenderbufferStorage": _glRenderbufferStorage, "_glGetProgramInfoLog": _glGetProgramInfoLog, "_glfwSetScrollCallback": _glfwSetScrollCallback, "_emscripten_glTexParameterf": _emscripten_glTexParameterf, "_emscripten_glGetAttachedShaders": _emscripten_glGetAttachedShaders, "_emscripten_glGenTextures": _emscripten_glGenTextures, "_emscripten_glTexParameteri": _emscripten_glTexParameteri, "_llvm_stackrestore": _llvm_stackrestore, "_glBindRenderbuffer": _glBindRenderbuffer, "_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_glUniform3f": _emscripten_glUniform3f, "_emscripten_glUniform3i": _emscripten_glUniform3i, "_emscripten_glRotatef": _emscripten_glRotatef, "_emscripten_glDeleteShader": _emscripten_glDeleteShader, "_glEnable": _glEnable, "_emscripten_glVertexAttrib1fv": _emscripten_glVertexAttrib1fv, "_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, "_glFramebufferRenderbuffer": _glFramebufferRenderbuffer, "_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, "_glBindFramebuffer": _glBindFramebuffer, "_emscripten_glVertexAttrib1f": _emscripten_glVertexAttrib1f, "_glGenFramebuffers": _glGenFramebuffers, "_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, "_glDeleteFramebuffers": _glDeleteFramebuffers, "_emscripten_get_gamepad_status": _emscripten_get_gamepad_status, "_emscripten_glUniform4f": _emscripten_glUniform4f, "_emscripten_glUniform2fv": _emscripten_glUniform2fv, "_glfwGetVideoModes": _glfwGetVideoModes, "_glUniform1fv": _glUniform1fv, "_emscripten_set_click_callback": _emscripten_set_click_callback, "_glCheckFramebufferStatus": _glCheckFramebufferStatus, "_emscripten_glFinish": _emscripten_glFinish, "_glFramebufferTexture2D": _glFramebufferTexture2D, "_emscripten_glShaderBinary": _emscripten_glShaderBinary, "_emscripten_glDrawElements": _emscripten_glDrawElements, "_emscripten_glBlendFunc": _emscripten_glBlendFunc, "_emscripten_get_num_gamepads": _emscripten_get_num_gamepads, "___syscall221": ___syscall221, "_emscripten_glStencilMask": _emscripten_glStencilMask, "_glUniform3fv": _glUniform3fv, "_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, "_emscripten_glDisable": _emscripten_glDisable, "_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, "_glfwSetCursorPos": _glfwSetCursorPos, "_emscripten_glPixelStorei": _emscripten_glPixelStorei, "_glCompileShader": _glCompileShader, "_emscripten_get_pointerlock_status": _emscripten_get_pointerlock_status, "_glfwGetMouseButton": _glfwGetMouseButton, "_emscripten_glColorPointer": _emscripten_glColorPointer, "_emscripten_glDepthRange": _emscripten_glDepthRange, "_emscripten_glTexCoordPointer": _emscripten_glTexCoordPointer, "_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_glStencilFuncSeparate": _emscripten_glStencilFuncSeparate, "_emscripten_glDeleteTextures": _emscripten_glDeleteTextures, "_glfwGetKey": _glfwGetKey, "_glfwGetPrimaryMonitor": _glfwGetPrimaryMonitor, "_emscripten_glBufferSubData": _emscripten_glBufferSubData, "_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, "_glUniform4fv": _glUniform4fv, "_emscripten_glFrustum": _emscripten_glFrustum, "_glVertexAttrib2f": _glVertexAttrib2f, "_emscripten_glDepthRangef": _emscripten_glDepthRangef, "__exit": __exit, "_emscripten_glLineWidth": _emscripten_glLineWidth, "_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, "_glfwMakeContextCurrent": _glfwMakeContextCurrent, "_emscripten_glUniformMatrix3fv": _emscripten_glUniformMatrix3fv, "_emscripten_glBindTexture": _emscripten_glBindTexture, "_glfwSetMouseButtonCallback": _glfwSetMouseButtonCallback, "_glfwGetCursorPos": _glfwGetCursorPos, "_emscripten_glActiveTexture": _emscripten_glActiveTexture, "_emscripten_glDeleteBuffers": _emscripten_glDeleteBuffers, "___syscall54": ___syscall54, "___unlock": ___unlock, "_glLinkProgram": _glLinkProgram, "_glfwSwapBuffers": _glfwSwapBuffers, "_emscripten_memcpy_big": _emscripten_memcpy_big, "_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, "_glCompressedTexImage2D": _glCompressedTexImage2D, "_emscripten_glDrawArrays": _emscripten_glDrawArrays, "_glGenRenderbuffers": _glGenRenderbuffers, "_emscripten_glCompressedTexImage2D": _emscripten_glCompressedTexImage2D, "_emscripten_glClearColor": _emscripten_glClearColor, "_emscripten_glBufferData": _emscripten_glBufferData, "_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 };
  9124. // EMSCRIPTEN_START_ASM
  9125. var asm = (function(global, env, buffer) {
  9126. 'use asm';
  9127. var HEAP8 = new global.Int8Array(buffer);
  9128. var HEAP16 = new global.Int16Array(buffer);
  9129. var HEAP32 = new global.Int32Array(buffer);
  9130. var HEAPU8 = new global.Uint8Array(buffer);
  9131. var HEAPU16 = new global.Uint16Array(buffer);
  9132. var HEAPU32 = new global.Uint32Array(buffer);
  9133. var HEAPF32 = new global.Float32Array(buffer);
  9134. var HEAPF64 = new global.Float64Array(buffer);
  9135. var DYNAMICTOP_PTR=env.DYNAMICTOP_PTR|0;
  9136. var tempDoublePtr=env.tempDoublePtr|0;
  9137. var ABORT=env.ABORT|0;
  9138. var STACKTOP=env.STACKTOP|0;
  9139. var STACK_MAX=env.STACK_MAX|0;
  9140. var cttz_i8=env.cttz_i8|0;
  9141. var __THREW__ = 0;
  9142. var threwValue = 0;
  9143. var setjmpId = 0;
  9144. var undef = 0;
  9145. var nan = global.NaN, inf = global.Infinity;
  9146. var tempInt = 0, tempBigInt = 0, tempBigIntP = 0, tempBigIntS = 0, tempBigIntR = 0.0, tempBigIntI = 0, tempBigIntD = 0, tempValue = 0, tempDouble = 0.0;
  9147. var tempRet0 = 0;
  9148. var Math_floor=global.Math.floor;
  9149. var Math_abs=global.Math.abs;
  9150. var Math_sqrt=global.Math.sqrt;
  9151. var Math_pow=global.Math.pow;
  9152. var Math_cos=global.Math.cos;
  9153. var Math_sin=global.Math.sin;
  9154. var Math_tan=global.Math.tan;
  9155. var Math_acos=global.Math.acos;
  9156. var Math_asin=global.Math.asin;
  9157. var Math_atan=global.Math.atan;
  9158. var Math_atan2=global.Math.atan2;
  9159. var Math_exp=global.Math.exp;
  9160. var Math_log=global.Math.log;
  9161. var Math_ceil=global.Math.ceil;
  9162. var Math_imul=global.Math.imul;
  9163. var Math_min=global.Math.min;
  9164. var Math_max=global.Math.max;
  9165. var Math_clz32=global.Math.clz32;
  9166. var abort=env.abort;
  9167. var assert=env.assert;
  9168. var enlargeMemory=env.enlargeMemory;
  9169. var getTotalMemory=env.getTotalMemory;
  9170. var abortOnCannotGrowMemory=env.abortOnCannotGrowMemory;
  9171. var abortStackOverflow=env.abortStackOverflow;
  9172. var nullFunc_viiiii=env.nullFunc_viiiii;
  9173. var nullFunc_vd=env.nullFunc_vd;
  9174. var nullFunc_vid=env.nullFunc_vid;
  9175. var nullFunc_vi=env.nullFunc_vi;
  9176. var nullFunc_vii=env.nullFunc_vii;
  9177. var nullFunc_ii=env.nullFunc_ii;
  9178. var nullFunc_viddd=env.nullFunc_viddd;
  9179. var nullFunc_vidd=env.nullFunc_vidd;
  9180. var nullFunc_iiii=env.nullFunc_iiii;
  9181. var nullFunc_viiiiiiii=env.nullFunc_viiiiiiii;
  9182. var nullFunc_viiiiii=env.nullFunc_viiiiii;
  9183. var nullFunc_viii=env.nullFunc_viii;
  9184. var nullFunc_vidddd=env.nullFunc_vidddd;
  9185. var nullFunc_vdi=env.nullFunc_vdi;
  9186. var nullFunc_viiiiiii=env.nullFunc_viiiiiii;
  9187. var nullFunc_viiiiiiiii=env.nullFunc_viiiiiiiii;
  9188. var nullFunc_iii=env.nullFunc_iii;
  9189. var nullFunc_i=env.nullFunc_i;
  9190. var nullFunc_vdddddd=env.nullFunc_vdddddd;
  9191. var nullFunc_vdddd=env.nullFunc_vdddd;
  9192. var nullFunc_vdd=env.nullFunc_vdd;
  9193. var nullFunc_v=env.nullFunc_v;
  9194. var nullFunc_viid=env.nullFunc_viid;
  9195. var nullFunc_viiii=env.nullFunc_viiii;
  9196. var invoke_viiiii=env.invoke_viiiii;
  9197. var invoke_vd=env.invoke_vd;
  9198. var invoke_vid=env.invoke_vid;
  9199. var invoke_vi=env.invoke_vi;
  9200. var invoke_vii=env.invoke_vii;
  9201. var invoke_ii=env.invoke_ii;
  9202. var invoke_viddd=env.invoke_viddd;
  9203. var invoke_vidd=env.invoke_vidd;
  9204. var invoke_iiii=env.invoke_iiii;
  9205. var invoke_viiiiiiii=env.invoke_viiiiiiii;
  9206. var invoke_viiiiii=env.invoke_viiiiii;
  9207. var invoke_viii=env.invoke_viii;
  9208. var invoke_vidddd=env.invoke_vidddd;
  9209. var invoke_vdi=env.invoke_vdi;
  9210. var invoke_viiiiiii=env.invoke_viiiiiii;
  9211. var invoke_viiiiiiiii=env.invoke_viiiiiiiii;
  9212. var invoke_iii=env.invoke_iii;
  9213. var invoke_i=env.invoke_i;
  9214. var invoke_vdddddd=env.invoke_vdddddd;
  9215. var invoke_vdddd=env.invoke_vdddd;
  9216. var invoke_vdd=env.invoke_vdd;
  9217. var invoke_v=env.invoke_v;
  9218. var invoke_viid=env.invoke_viid;
  9219. var invoke_viiii=env.invoke_viiii;
  9220. var _emscripten_glGetTexParameterfv=env._emscripten_glGetTexParameterfv;
  9221. var _glUseProgram=env._glUseProgram;
  9222. var _emscripten_glShaderSource=env._emscripten_glShaderSource;
  9223. var _glfwCreateWindow=env._glfwCreateWindow;
  9224. var _emscripten_glReleaseShaderCompiler=env._emscripten_glReleaseShaderCompiler;
  9225. var _emscripten_glBlendFuncSeparate=env._emscripten_glBlendFuncSeparate;
  9226. var _emscripten_glVertexAttribPointer=env._emscripten_glVertexAttribPointer;
  9227. var _emscripten_glGetIntegerv=env._emscripten_glGetIntegerv;
  9228. var _emscripten_glCullFace=env._emscripten_glCullFace;
  9229. var _emscripten_glIsProgram=env._emscripten_glIsProgram;
  9230. var _emscripten_glStencilMaskSeparate=env._emscripten_glStencilMaskSeparate;
  9231. var _emscripten_glViewport=env._emscripten_glViewport;
  9232. var _glUniform2fv=env._glUniform2fv;
  9233. var _emscripten_glFrontFace=env._emscripten_glFrontFace;
  9234. var ___assert_fail=env.___assert_fail;
  9235. var _glDeleteProgram=env._glDeleteProgram;
  9236. var _emscripten_glUniform3fv=env._emscripten_glUniform3fv;
  9237. var _emscripten_glPolygonOffset=env._emscripten_glPolygonOffset;
  9238. var _emscripten_glUseProgram=env._emscripten_glUseProgram;
  9239. var _glVertexAttrib4f=env._glVertexAttrib4f;
  9240. var _glBindBuffer=env._glBindBuffer;
  9241. var _emscripten_glDepthFunc=env._emscripten_glDepthFunc;
  9242. var _glGetShaderInfoLog=env._glGetShaderInfoLog;
  9243. var _emscripten_set_fullscreenchange_callback=env._emscripten_set_fullscreenchange_callback;
  9244. var _emscripten_set_touchmove_callback=env._emscripten_set_touchmove_callback;
  9245. var _emscripten_set_main_loop_timing=env._emscripten_set_main_loop_timing;
  9246. var _glDisable=env._glDisable;
  9247. var _glBlendFunc=env._glBlendFunc;
  9248. var _emscripten_glDisableVertexAttribArray=env._emscripten_glDisableVertexAttribArray;
  9249. var _glGetAttribLocation=env._glGetAttribLocation;
  9250. var _glDisableVertexAttribArray=env._glDisableVertexAttribArray;
  9251. var _glCreateShader=env._glCreateShader;
  9252. var _emscripten_glReadPixels=env._emscripten_glReadPixels;
  9253. var _emscripten_glSampleCoverage=env._emscripten_glSampleCoverage;
  9254. var _emscripten_glVertexPointer=env._emscripten_glVertexPointer;
  9255. var _emscripten_set_touchstart_callback=env._emscripten_set_touchstart_callback;
  9256. var emscriptenWebGLComputeImageSize=env.emscriptenWebGLComputeImageSize;
  9257. var _emscripten_glGetBooleanv=env._emscripten_glGetBooleanv;
  9258. var _emscripten_glGetShaderSource=env._emscripten_glGetShaderSource;
  9259. var _glUniform4f=env._glUniform4f;
  9260. var _llvm_stacksave=env._llvm_stacksave;
  9261. var _emscripten_glUniform1i=env._emscripten_glUniform1i;
  9262. var _emscripten_glLoadMatrixf=env._emscripten_glLoadMatrixf;
  9263. var _emscripten_glGenBuffers=env._emscripten_glGenBuffers;
  9264. var _emscripten_glDeleteObjectARB=env._emscripten_glDeleteObjectARB;
  9265. var _glfwSetWindowSizeCallback=env._glfwSetWindowSizeCallback;
  9266. var _emscripten_glGetShaderPrecisionFormat=env._emscripten_glGetShaderPrecisionFormat;
  9267. var _glfwInit=env._glfwInit;
  9268. var _glGenBuffers=env._glGenBuffers;
  9269. var _glShaderSource=env._glShaderSource;
  9270. var _emscripten_glGetString=env._emscripten_glGetString;
  9271. var _emscripten_glIsFramebuffer=env._emscripten_glIsFramebuffer;
  9272. var _glVertexAttrib3f=env._glVertexAttrib3f;
  9273. var _emscripten_glIsEnabled=env._emscripten_glIsEnabled;
  9274. var _emscripten_glScissor=env._emscripten_glScissor;
  9275. var _emscripten_glVertexAttrib4fv=env._emscripten_glVertexAttrib4fv;
  9276. var _emscripten_glFramebufferTexture2D=env._emscripten_glFramebufferTexture2D;
  9277. var _emscripten_glTexParameteriv=env._emscripten_glTexParameteriv;
  9278. var ___syscall145=env.___syscall145;
  9279. var _emscripten_glBindProgramARB=env._emscripten_glBindProgramARB;
  9280. var _emscripten_glStencilOpSeparate=env._emscripten_glStencilOpSeparate;
  9281. var _emscripten_glHint=env._emscripten_glHint;
  9282. var _emscripten_glFramebufferRenderbuffer=env._emscripten_glFramebufferRenderbuffer;
  9283. var ___syscall140=env.___syscall140;
  9284. var _glfwSetErrorCallback=env._glfwSetErrorCallback;
  9285. var _glfwDefaultWindowHints=env._glfwDefaultWindowHints;
  9286. var _glfwDestroyWindow=env._glfwDestroyWindow;
  9287. var ___syscall146=env.___syscall146;
  9288. var _emscripten_glGetActiveAttrib=env._emscripten_glGetActiveAttrib;
  9289. var _emscripten_glAttachShader=env._emscripten_glAttachShader;
  9290. var _glVertexAttribPointer=env._glVertexAttribPointer;
  9291. var _emscripten_glUniform2i=env._emscripten_glUniform2i;
  9292. var _emscripten_glUniform2f=env._emscripten_glUniform2f;
  9293. var _emscripten_glTexParameterfv=env._emscripten_glTexParameterfv;
  9294. var _emscripten_glUniformMatrix2fv=env._emscripten_glUniformMatrix2fv;
  9295. var _glRenderbufferStorage=env._glRenderbufferStorage;
  9296. var _glGetProgramInfoLog=env._glGetProgramInfoLog;
  9297. var _glfwSetScrollCallback=env._glfwSetScrollCallback;
  9298. var _emscripten_glTexParameterf=env._emscripten_glTexParameterf;
  9299. var _emscripten_glGetAttachedShaders=env._emscripten_glGetAttachedShaders;
  9300. var _emscripten_glGenTextures=env._emscripten_glGenTextures;
  9301. var _emscripten_glTexParameteri=env._emscripten_glTexParameteri;
  9302. var _llvm_stackrestore=env._llvm_stackrestore;
  9303. var _glBindRenderbuffer=env._glBindRenderbuffer;
  9304. var _emscripten_glClear=env._emscripten_glClear;
  9305. var _glDrawElements=env._glDrawElements;
  9306. var _glBufferSubData=env._glBufferSubData;
  9307. var _emscripten_glValidateProgram=env._emscripten_glValidateProgram;
  9308. var _emscripten_glVertexAttrib2fv=env._emscripten_glVertexAttrib2fv;
  9309. var _glViewport=env._glViewport;
  9310. var _emscripten_glUniform4iv=env._emscripten_glUniform4iv;
  9311. var _emscripten_glGetTexParameteriv=env._emscripten_glGetTexParameteriv;
  9312. var ___setErrNo=env.___setErrNo;
  9313. var _eglGetProcAddress=env._eglGetProcAddress;
  9314. var _emscripten_glBindAttribLocation=env._emscripten_glBindAttribLocation;
  9315. var _glDeleteTextures=env._glDeleteTextures;
  9316. var _glDepthFunc=env._glDepthFunc;
  9317. var _emscripten_glClientActiveTexture=env._emscripten_glClientActiveTexture;
  9318. var _emscripten_glVertexAttrib2f=env._emscripten_glVertexAttrib2f;
  9319. var _glUniform3f=env._glUniform3f;
  9320. var _emscripten_glFlush=env._emscripten_glFlush;
  9321. var _emscripten_glCheckFramebufferStatus=env._emscripten_glCheckFramebufferStatus;
  9322. var _emscripten_glGenerateMipmap=env._emscripten_glGenerateMipmap;
  9323. var _emscripten_glGetError=env._emscripten_glGetError;
  9324. var _emscripten_glClearDepthf=env._emscripten_glClearDepthf;
  9325. var _emscripten_glUniform3f=env._emscripten_glUniform3f;
  9326. var _emscripten_glUniform3i=env._emscripten_glUniform3i;
  9327. var _emscripten_glRotatef=env._emscripten_glRotatef;
  9328. var _emscripten_glDeleteShader=env._emscripten_glDeleteShader;
  9329. var _glEnable=env._glEnable;
  9330. var _emscripten_glVertexAttrib1fv=env._emscripten_glVertexAttrib1fv;
  9331. var _glGenTextures=env._glGenTextures;
  9332. var _emscripten_glMatrixMode=env._emscripten_glMatrixMode;
  9333. var _glGetString=env._glGetString;
  9334. var _emscripten_glClearStencil=env._emscripten_glClearStencil;
  9335. var _emscripten_glGetUniformLocation=env._emscripten_glGetUniformLocation;
  9336. var emscriptenWebGLGet=env.emscriptenWebGLGet;
  9337. var _emscripten_glEnableVertexAttribArray=env._emscripten_glEnableVertexAttribArray;
  9338. var _emscripten_glGetAttribLocation=env._emscripten_glGetAttribLocation;
  9339. var _emscripten_get_now=env._emscripten_get_now;
  9340. var _emscripten_glNormalPointer=env._emscripten_glNormalPointer;
  9341. var _glAttachShader=env._glAttachShader;
  9342. var _glFramebufferRenderbuffer=env._glFramebufferRenderbuffer;
  9343. var _emscripten_glEnable=env._emscripten_glEnable;
  9344. var _glCreateProgram=env._glCreateProgram;
  9345. var _glUniformMatrix4fv=env._glUniformMatrix4fv;
  9346. var _emscripten_glClearDepth=env._emscripten_glClearDepth;
  9347. var ___lock=env.___lock;
  9348. var emscriptenWebGLGetTexPixelData=env.emscriptenWebGLGetTexPixelData;
  9349. var ___syscall6=env.___syscall6;
  9350. var ___syscall5=env.___syscall5;
  9351. var _emscripten_glIsBuffer=env._emscripten_glIsBuffer;
  9352. var _emscripten_glVertexAttrib3f=env._emscripten_glVertexAttrib3f;
  9353. var _time=env._time;
  9354. var _glBindFramebuffer=env._glBindFramebuffer;
  9355. var _emscripten_glVertexAttrib1f=env._emscripten_glVertexAttrib1f;
  9356. var _glGenFramebuffers=env._glGenFramebuffers;
  9357. var _emscripten_glGetFramebufferAttachmentParameteriv=env._emscripten_glGetFramebufferAttachmentParameteriv;
  9358. var _emscripten_glBlendEquationSeparate=env._emscripten_glBlendEquationSeparate;
  9359. var _exit=env._exit;
  9360. var _emscripten_glEnableClientState=env._emscripten_glEnableClientState;
  9361. var _emscripten_glUniform4i=env._emscripten_glUniform4i;
  9362. var _emscripten_glDrawRangeElements=env._emscripten_glDrawRangeElements;
  9363. var _glCullFace=env._glCullFace;
  9364. var _emscripten_glGetPointerv=env._emscripten_glGetPointerv;
  9365. var _emscripten_set_keypress_callback=env._emscripten_set_keypress_callback;
  9366. var __emscripten_sample_gamepad_data=env.__emscripten_sample_gamepad_data;
  9367. var _glDeleteFramebuffers=env._glDeleteFramebuffers;
  9368. var _emscripten_get_gamepad_status=env._emscripten_get_gamepad_status;
  9369. var _emscripten_glUniform4f=env._emscripten_glUniform4f;
  9370. var _emscripten_glUniform2fv=env._emscripten_glUniform2fv;
  9371. var _glfwGetVideoModes=env._glfwGetVideoModes;
  9372. var _glUniform1fv=env._glUniform1fv;
  9373. var _emscripten_set_click_callback=env._emscripten_set_click_callback;
  9374. var _glCheckFramebufferStatus=env._glCheckFramebufferStatus;
  9375. var _emscripten_glFinish=env._emscripten_glFinish;
  9376. var _glFramebufferTexture2D=env._glFramebufferTexture2D;
  9377. var _emscripten_glShaderBinary=env._emscripten_glShaderBinary;
  9378. var _emscripten_glDrawElements=env._emscripten_glDrawElements;
  9379. var _emscripten_glBlendFunc=env._emscripten_glBlendFunc;
  9380. var _emscripten_get_num_gamepads=env._emscripten_get_num_gamepads;
  9381. var ___syscall221=env.___syscall221;
  9382. var _emscripten_glStencilMask=env._emscripten_glStencilMask;
  9383. var _glUniform3fv=env._glUniform3fv;
  9384. var _emscripten_glUniform1iv=env._emscripten_glUniform1iv;
  9385. var _emscripten_glGetVertexAttribPointerv=env._emscripten_glGetVertexAttribPointerv;
  9386. var _glClearDepthf=env._glClearDepthf;
  9387. var _emscripten_glCompressedTexSubImage2D=env._emscripten_glCompressedTexSubImage2D;
  9388. var emscriptenWebGLGetUniform=env.emscriptenWebGLGetUniform;
  9389. var _emscripten_glGenRenderbuffers=env._emscripten_glGenRenderbuffers;
  9390. var _emscripten_glDeleteVertexArrays=env._emscripten_glDeleteVertexArrays;
  9391. var _glfwSetWindowShouldClose=env._glfwSetWindowShouldClose;
  9392. var _emscripten_glUniform1fv=env._emscripten_glUniform1fv;
  9393. var _emscripten_glGetActiveUniform=env._emscripten_glGetActiveUniform;
  9394. var _glBindTexture=env._glBindTexture;
  9395. var _emscripten_glUniform3iv=env._emscripten_glUniform3iv;
  9396. var _emscripten_glUniform2iv=env._emscripten_glUniform2iv;
  9397. var _emscripten_glDisable=env._emscripten_glDisable;
  9398. var _glfwSetCharCallback=env._glfwSetCharCallback;
  9399. var emscriptenWebGLGetVertexAttrib=env.emscriptenWebGLGetVertexAttrib;
  9400. var _glGetFloatv=env._glGetFloatv;
  9401. var _emscripten_glDeleteProgram=env._emscripten_glDeleteProgram;
  9402. var _emscripten_glDeleteRenderbuffers=env._emscripten_glDeleteRenderbuffers;
  9403. var _emscripten_glDrawElementsInstanced=env._emscripten_glDrawElementsInstanced;
  9404. var _emscripten_glVertexAttrib4f=env._emscripten_glVertexAttrib4f;
  9405. var _glDrawArrays=env._glDrawArrays;
  9406. var _emscripten_glTexSubImage2D=env._emscripten_glTexSubImage2D;
  9407. var _glfwSetCursorPos=env._glfwSetCursorPos;
  9408. var _emscripten_glPixelStorei=env._emscripten_glPixelStorei;
  9409. var _glCompileShader=env._glCompileShader;
  9410. var _emscripten_get_pointerlock_status=env._emscripten_get_pointerlock_status;
  9411. var _glfwGetMouseButton=env._glfwGetMouseButton;
  9412. var _emscripten_glColorPointer=env._emscripten_glColorPointer;
  9413. var _emscripten_glDepthRange=env._emscripten_glDepthRange;
  9414. var _emscripten_glTexCoordPointer=env._emscripten_glTexCoordPointer;
  9415. var _emscripten_glGetBufferParameteriv=env._emscripten_glGetBufferParameteriv;
  9416. var _glActiveTexture=env._glActiveTexture;
  9417. var _emscripten_request_pointerlock=env._emscripten_request_pointerlock;
  9418. var _emscripten_set_gamepaddisconnected_callback=env._emscripten_set_gamepaddisconnected_callback;
  9419. var _emscripten_asm_const_iii=env._emscripten_asm_const_iii;
  9420. var _emscripten_glDepthMask=env._emscripten_glDepthMask;
  9421. var _glfwSetWindowIconifyCallback=env._glfwSetWindowIconifyCallback;
  9422. var _emscripten_glDrawBuffers=env._emscripten_glDrawBuffers;
  9423. var _glfwTerminate=env._glfwTerminate;
  9424. var _glFrontFace=env._glFrontFace;
  9425. var _emscripten_glGetObjectParameterivARB=env._emscripten_glGetObjectParameterivARB;
  9426. var _emscripten_exit_pointerlock=env._emscripten_exit_pointerlock;
  9427. var _glfwSwapInterval=env._glfwSwapInterval;
  9428. var _glUniform1i=env._glUniform1i;
  9429. var _glEnableVertexAttribArray=env._glEnableVertexAttribArray;
  9430. var _emscripten_glStencilFunc=env._emscripten_glStencilFunc;
  9431. var _abort=env._abort;
  9432. var _emscripten_glGetUniformiv=env._emscripten_glGetUniformiv;
  9433. var _glDeleteBuffers=env._glDeleteBuffers;
  9434. var _glBufferData=env._glBufferData;
  9435. var _glTexImage2D=env._glTexImage2D;
  9436. var _emscripten_glGetShaderiv=env._emscripten_glGetShaderiv;
  9437. var _glfwSetKeyCallback=env._glfwSetKeyCallback;
  9438. var _emscripten_glGenFramebuffers=env._emscripten_glGenFramebuffers;
  9439. var _glUniform1f=env._glUniform1f;
  9440. var _emscripten_glUniformMatrix4fv=env._emscripten_glUniformMatrix4fv;
  9441. var _emscripten_glLoadIdentity=env._emscripten_glLoadIdentity;
  9442. var _glDeleteShader=env._glDeleteShader;
  9443. var _emscripten_glUniform1f=env._emscripten_glUniform1f;
  9444. var _glGetProgramiv=env._glGetProgramiv;
  9445. var _emscripten_glBindFramebuffer=env._emscripten_glBindFramebuffer;
  9446. var _emscripten_glIsRenderbuffer=env._emscripten_glIsRenderbuffer;
  9447. var _glfwGetTime=env._glfwGetTime;
  9448. var _emscripten_glRenderbufferStorage=env._emscripten_glRenderbufferStorage;
  9449. var _emscripten_set_gamepadconnected_callback=env._emscripten_set_gamepadconnected_callback;
  9450. var _emscripten_glBlendColor=env._emscripten_glBlendColor;
  9451. var _emscripten_glGetVertexAttribiv=env._emscripten_glGetVertexAttribiv;
  9452. var _emscripten_glBindVertexArray=env._emscripten_glBindVertexArray;
  9453. var _emscripten_glDrawArraysInstanced=env._emscripten_glDrawArraysInstanced;
  9454. var _emscripten_set_touchcancel_callback=env._emscripten_set_touchcancel_callback;
  9455. var _emscripten_glCreateShader=env._emscripten_glCreateShader;
  9456. var _emscripten_glStencilFuncSeparate=env._emscripten_glStencilFuncSeparate;
  9457. var _emscripten_glDeleteTextures=env._emscripten_glDeleteTextures;
  9458. var _glfwGetKey=env._glfwGetKey;
  9459. var _glfwGetPrimaryMonitor=env._glfwGetPrimaryMonitor;
  9460. var _emscripten_glBufferSubData=env._emscripten_glBufferSubData;
  9461. var _emscripten_glVertexAttribDivisor=env._emscripten_glVertexAttribDivisor;
  9462. var _emscripten_set_touchend_callback=env._emscripten_set_touchend_callback;
  9463. var _emscripten_glGetUniformfv=env._emscripten_glGetUniformfv;
  9464. var _emscripten_glGetVertexAttribfv=env._emscripten_glGetVertexAttribfv;
  9465. var _emscripten_glGetRenderbufferParameteriv=env._emscripten_glGetRenderbufferParameteriv;
  9466. var _emscripten_glDeleteFramebuffers=env._emscripten_glDeleteFramebuffers;
  9467. var _glGetShaderiv=env._glGetShaderiv;
  9468. var _emscripten_glVertexAttrib3fv=env._emscripten_glVertexAttrib3fv;
  9469. var _glGetUniformLocation=env._glGetUniformLocation;
  9470. var _emscripten_glGetInfoLogARB=env._emscripten_glGetInfoLogARB;
  9471. var _emscripten_glCompileShader=env._emscripten_glCompileShader;
  9472. var _glClear=env._glClear;
  9473. var _glUniform4fv=env._glUniform4fv;
  9474. var _emscripten_glFrustum=env._emscripten_glFrustum;
  9475. var _glVertexAttrib2f=env._glVertexAttrib2f;
  9476. var _emscripten_glDepthRangef=env._emscripten_glDepthRangef;
  9477. var __exit=env.__exit;
  9478. var _emscripten_glLineWidth=env._emscripten_glLineWidth;
  9479. var _emscripten_glGetShaderInfoLog=env._emscripten_glGetShaderInfoLog;
  9480. var _emscripten_glStencilOp=env._emscripten_glStencilOp;
  9481. var _glBindAttribLocation=env._glBindAttribLocation;
  9482. var _glPixelStorei=env._glPixelStorei;
  9483. var _emscripten_glColorMask=env._emscripten_glColorMask;
  9484. var _emscripten_glLinkProgram=env._emscripten_glLinkProgram;
  9485. var _emscripten_glBlendEquation=env._emscripten_glBlendEquation;
  9486. var _emscripten_glIsTexture=env._emscripten_glIsTexture;
  9487. var _emscripten_glGetProgramiv=env._emscripten_glGetProgramiv;
  9488. var _glfwMakeContextCurrent=env._glfwMakeContextCurrent;
  9489. var _emscripten_glUniformMatrix3fv=env._emscripten_glUniformMatrix3fv;
  9490. var _emscripten_glBindTexture=env._emscripten_glBindTexture;
  9491. var _glfwSetMouseButtonCallback=env._glfwSetMouseButtonCallback;
  9492. var _glfwGetCursorPos=env._glfwGetCursorPos;
  9493. var _emscripten_glActiveTexture=env._emscripten_glActiveTexture;
  9494. var _emscripten_glDeleteBuffers=env._emscripten_glDeleteBuffers;
  9495. var ___syscall54=env.___syscall54;
  9496. var ___unlock=env.___unlock;
  9497. var _glLinkProgram=env._glLinkProgram;
  9498. var _glfwSwapBuffers=env._glfwSwapBuffers;
  9499. var _emscripten_memcpy_big=env._emscripten_memcpy_big;
  9500. var _emscripten_set_main_loop=env._emscripten_set_main_loop;
  9501. var _emscripten_glBindRenderbuffer=env._emscripten_glBindRenderbuffer;
  9502. var _emscripten_glGetProgramInfoLog=env._emscripten_glGetProgramInfoLog;
  9503. var _glfwWindowHint=env._glfwWindowHint;
  9504. var _emscripten_glIsShader=env._emscripten_glIsShader;
  9505. var _emscripten_glUniform4fv=env._emscripten_glUniform4fv;
  9506. var _emscripten_glGenVertexArrays=env._emscripten_glGenVertexArrays;
  9507. var _glCompressedTexImage2D=env._glCompressedTexImage2D;
  9508. var _emscripten_glDrawArrays=env._emscripten_glDrawArrays;
  9509. var _glGenRenderbuffers=env._glGenRenderbuffers;
  9510. var _emscripten_glCompressedTexImage2D=env._emscripten_glCompressedTexImage2D;
  9511. var _emscripten_glClearColor=env._emscripten_glClearColor;
  9512. var _emscripten_glBufferData=env._emscripten_glBufferData;
  9513. var _emscripten_glCreateProgram=env._emscripten_glCreateProgram;
  9514. var _emscripten_glCopyTexSubImage2D=env._emscripten_glCopyTexSubImage2D;
  9515. var _glTexParameteri=env._glTexParameteri;
  9516. var _emscripten_glBindBuffer=env._emscripten_glBindBuffer;
  9517. var _emscripten_glGetFloatv=env._emscripten_glGetFloatv;
  9518. var _emscripten_glDetachShader=env._emscripten_glDetachShader;
  9519. var _glClearColor=env._glClearColor;
  9520. var _glfwSetCursorPosCallback=env._glfwSetCursorPosCallback;
  9521. var _glfwSetCursorEnterCallback=env._glfwSetCursorEnterCallback;
  9522. var _emscripten_glCopyTexImage2D=env._emscripten_glCopyTexImage2D;
  9523. var _emscripten_glTexImage2D=env._emscripten_glTexImage2D;
  9524. var tempFloat = 0.0;
  9525. // EMSCRIPTEN_START_FUNCS
  9526. function stackAlloc(size) {
  9527. size = size|0;
  9528. var ret = 0;
  9529. ret = STACKTOP;
  9530. STACKTOP = (STACKTOP + size)|0;
  9531. STACKTOP = (STACKTOP + 15)&-16;
  9532. if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(size|0);
  9533. return ret|0;
  9534. }
  9535. function stackSave() {
  9536. return STACKTOP|0;
  9537. }
  9538. function stackRestore(top) {
  9539. top = top|0;
  9540. STACKTOP = top;
  9541. }
  9542. function establishStackSpace(stackBase, stackMax) {
  9543. stackBase = stackBase|0;
  9544. stackMax = stackMax|0;
  9545. STACKTOP = stackBase;
  9546. STACK_MAX = stackMax;
  9547. }
  9548. function setThrew(threw, value) {
  9549. threw = threw|0;
  9550. value = value|0;
  9551. if ((__THREW__|0) == 0) {
  9552. __THREW__ = threw;
  9553. threwValue = value;
  9554. }
  9555. }
  9556. function setTempRet0(value) {
  9557. value = value|0;
  9558. tempRet0 = value;
  9559. }
  9560. function getTempRet0() {
  9561. return tempRet0|0;
  9562. }
  9563. function _main() {
  9564. var $0 = 0, $1 = 0, $10 = 0, $11 = 0.0, $12 = 0.0, $13 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0.0, $9 = 0.0, $dwarf$byval_copy = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  9565. sp = STACKTOP;
  9566. STACKTOP = STACKTOP + 656|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(656|0);
  9567. $dwarf$byval_copy = sp + 392|0;
  9568. $0 = sp + 128|0;
  9569. $1 = sp + 104|0;
  9570. $2 = sp + 48|0;
  9571. $3 = sp;
  9572. _SetConfigFlags(32);
  9573. $4 = HEAP32[2]|0;
  9574. $5 = HEAP32[3]|0;
  9575. _InitWindow($4,$5,4448);
  9576. _LoadModel($0,4499);
  9577. _memcpy((18812|0),($0|0),264)|0;
  9578. _LoadTexture($1,4525);
  9579. ;HEAP32[19076>>2]=HEAP32[$1>>2]|0;HEAP32[19076+4>>2]=HEAP32[$1+4>>2]|0;HEAP32[19076+8>>2]=HEAP32[$1+8>>2]|0;HEAP32[19076+12>>2]=HEAP32[$1+12>>2]|0;HEAP32[19076+16>>2]=HEAP32[$1+16>>2]|0;
  9580. ;HEAP32[(19000)>>2]=HEAP32[$1>>2]|0;HEAP32[(19000)+4>>2]=HEAP32[$1+4>>2]|0;HEAP32[(19000)+8>>2]=HEAP32[$1+8>>2]|0;HEAP32[(19000)+12>>2]=HEAP32[$1+12>>2]|0;HEAP32[(19000)+16>>2]=HEAP32[$1+16>>2]|0;
  9581. _LoadShader($2,4559,4593);
  9582. dest=19096; 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));
  9583. dest=$dwarf$byval_copy; 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));
  9584. $6 = (_GetShaderLocation($dwarf$byval_copy,4628)|0);
  9585. HEAP32[4788] = $6;
  9586. $7 = HEAP32[2]|0;
  9587. $8 = (+($7|0));
  9588. $9 = $8 * 0.5;
  9589. HEAPF32[4789] = $9;
  9590. $10 = HEAP32[3]|0;
  9591. $11 = (+($10|0));
  9592. $12 = $11 * 0.5;
  9593. HEAPF32[(19160)>>2] = $12;
  9594. $13 = HEAP32[2]|0;
  9595. _LoadRenderTexture($3,$13,$10);
  9596. dest=19164; src=$3; stop=dest+44|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  9597. dest=$dwarf$byval_copy; src=16; 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));
  9598. _SetCameraMode($dwarf$byval_copy,2);
  9599. _emscripten_set_main_loop((1|0),0,1);
  9600. dest=$dwarf$byval_copy; src=19096; 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));
  9601. _UnloadShader($dwarf$byval_copy);
  9602. ;HEAP32[$dwarf$byval_copy>>2]=HEAP32[19076>>2]|0;HEAP32[$dwarf$byval_copy+4>>2]=HEAP32[19076+4>>2]|0;HEAP32[$dwarf$byval_copy+8>>2]=HEAP32[19076+8>>2]|0;HEAP32[$dwarf$byval_copy+12>>2]=HEAP32[19076+12>>2]|0;HEAP32[$dwarf$byval_copy+16>>2]=HEAP32[19076+16>>2]|0;
  9603. _UnloadTexture($dwarf$byval_copy);
  9604. _memcpy(($dwarf$byval_copy|0),(18812|0),264)|0;
  9605. _UnloadModel($dwarf$byval_copy);
  9606. _CloseWindow();
  9607. STACKTOP = sp;return 0;
  9608. }
  9609. function _UpdateDrawFrame() {
  9610. var $$byval_copy3 = 0, $$byval_copy4 = 0, $$byval_copy5 = 0, $$byval_copy6 = 0, $0 = 0, $1 = 0, $10 = 0.0, $11 = 0, $12 = 0.0, $13 = 0.0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $21 = 0, $22 = 0;
  9611. 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, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, dest = 0;
  9612. var label = 0, sp = 0, src = 0, stop = 0;
  9613. sp = STACKTOP;
  9614. STACKTOP = STACKTOP + 416|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(416|0);
  9615. $$byval_copy6 = sp + 344|0;
  9616. $$byval_copy5 = sp + 328|0;
  9617. $$byval_copy4 = sp + 64|0;
  9618. $$byval_copy3 = sp + 44|0;
  9619. $0 = sp;
  9620. $1 = sp + 408|0;
  9621. $2 = sp + 40|0;
  9622. $3 = sp + 404|0;
  9623. $4 = sp + 24|0;
  9624. $5 = sp + 16|0;
  9625. $6 = sp + 8|0;
  9626. $7 = sp + 400|0;
  9627. _GetMousePosition($0);
  9628. $8 = HEAP32[$0>>2]|0;
  9629. HEAP32[4789] = $8;
  9630. $9 = HEAP32[3]|0;
  9631. $10 = (+($9|0));
  9632. $11 = ((($0)) + 4|0);
  9633. $12 = +HEAPF32[$11>>2];
  9634. $13 = $10 - $12;
  9635. HEAPF32[(19160)>>2] = $13;
  9636. $14 = HEAP32[4788]|0;
  9637. dest=$$byval_copy6; src=19096; 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));
  9638. _SetShaderValue($$byval_copy6,$14,19156,2);
  9639. _UpdateCamera(16);
  9640. _BeginDrawing();
  9641. HEAP8[$1>>0] = -11;
  9642. $15 = ((($1)) + 1|0);
  9643. HEAP8[$15>>0] = -11;
  9644. $16 = ((($1)) + 2|0);
  9645. HEAP8[$16>>0] = -11;
  9646. $17 = ((($1)) + 3|0);
  9647. HEAP8[$17>>0] = -1;
  9648. ;HEAP8[$$byval_copy6>>0]=HEAP8[$1>>0]|0;HEAP8[$$byval_copy6+1>>0]=HEAP8[$1+1>>0]|0;HEAP8[$$byval_copy6+2>>0]=HEAP8[$1+2>>0]|0;HEAP8[$$byval_copy6+3>>0]=HEAP8[$1+3>>0]|0;
  9649. _ClearBackground($$byval_copy6);
  9650. dest=$$byval_copy6; src=19164; stop=dest+44|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  9651. _BeginTextureMode($$byval_copy6);
  9652. dest=$$byval_copy6; src=16; 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));
  9653. _Begin3dMode($$byval_copy6);
  9654. HEAP32[$2>>2] = -1;
  9655. _memcpy(($$byval_copy4|0),(18812|0),264)|0;
  9656. ;HEAP32[$$byval_copy5>>2]=HEAP32[18800>>2]|0;HEAP32[$$byval_copy5+4>>2]=HEAP32[18800+4>>2]|0;HEAP32[$$byval_copy5+8>>2]=HEAP32[18800+8>>2]|0;
  9657. ;HEAP8[$$byval_copy6>>0]=HEAP8[$2>>0]|0;HEAP8[$$byval_copy6+1>>0]=HEAP8[$2+1>>0]|0;HEAP8[$$byval_copy6+2>>0]=HEAP8[$2+2>>0]|0;HEAP8[$$byval_copy6+3>>0]=HEAP8[$2+3>>0]|0;
  9658. _DrawModel($$byval_copy4,$$byval_copy5,2.0,$$byval_copy6);
  9659. _DrawGrid(10,1.0);
  9660. _End3dMode();
  9661. HEAP8[$3>>0] = -26;
  9662. $18 = ((($3)) + 1|0);
  9663. HEAP8[$18>>0] = 41;
  9664. $19 = ((($3)) + 2|0);
  9665. HEAP8[$19>>0] = 55;
  9666. $20 = ((($3)) + 3|0);
  9667. HEAP8[$20>>0] = -1;
  9668. ;HEAP8[$$byval_copy6>>0]=HEAP8[$3>>0]|0;HEAP8[$$byval_copy6+1>>0]=HEAP8[$3+1>>0]|0;HEAP8[$$byval_copy6+2>>0]=HEAP8[$3+2>>0]|0;HEAP8[$$byval_copy6+3>>0]=HEAP8[$3+3>>0]|0;
  9669. _DrawText(4635,200,10,30,$$byval_copy6);
  9670. _EndTextureMode();
  9671. dest=$$byval_copy6; src=19096; 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));
  9672. _BeginShaderMode($$byval_copy6);
  9673. HEAP32[$4>>2] = 0;
  9674. $21 = ((($4)) + 4|0);
  9675. HEAP32[$21>>2] = 0;
  9676. $22 = ((($4)) + 8|0);
  9677. $23 = HEAP32[(19172)>>2]|0;
  9678. HEAP32[$22>>2] = $23;
  9679. $24 = ((($4)) + 12|0);
  9680. $25 = HEAP32[(19176)>>2]|0;
  9681. $26 = (0 - ($25))|0;
  9682. HEAP32[$24>>2] = $26;
  9683. HEAPF32[$5>>2] = 0.0;
  9684. $27 = ((($5)) + 4|0);
  9685. HEAPF32[$27>>2] = 0.0;
  9686. HEAP32[$6>>2] = -1;
  9687. ;HEAP32[$$byval_copy3>>2]=HEAP32[(19168)>>2]|0;HEAP32[$$byval_copy3+4>>2]=HEAP32[(19168)+4>>2]|0;HEAP32[$$byval_copy3+8>>2]=HEAP32[(19168)+8>>2]|0;HEAP32[$$byval_copy3+12>>2]=HEAP32[(19168)+12>>2]|0;HEAP32[$$byval_copy3+16>>2]=HEAP32[(19168)+16>>2]|0;
  9688. ;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;HEAP32[$$byval_copy4+12>>2]=HEAP32[$4+12>>2]|0;
  9689. ;HEAP32[$$byval_copy5>>2]=HEAP32[$5>>2]|0;HEAP32[$$byval_copy5+4>>2]=HEAP32[$5+4>>2]|0;
  9690. ;HEAP8[$$byval_copy6>>0]=HEAP8[$6>>0]|0;HEAP8[$$byval_copy6+1>>0]=HEAP8[$6+1>>0]|0;HEAP8[$$byval_copy6+2>>0]=HEAP8[$6+2>>0]|0;HEAP8[$$byval_copy6+3>>0]=HEAP8[$6+3>>0]|0;
  9691. _DrawTextureRec($$byval_copy3,$$byval_copy4,$$byval_copy5,$$byval_copy6);
  9692. _EndShaderMode();
  9693. $28 = HEAP32[2]|0;
  9694. $29 = (($28) + -200)|0;
  9695. $30 = HEAP32[3]|0;
  9696. $31 = (($30) + -20)|0;
  9697. HEAP8[$7>>0] = -126;
  9698. $32 = ((($7)) + 1|0);
  9699. HEAP8[$32>>0] = -126;
  9700. $33 = ((($7)) + 2|0);
  9701. HEAP8[$33>>0] = -126;
  9702. $34 = ((($7)) + 3|0);
  9703. HEAP8[$34>>0] = -1;
  9704. ;HEAP8[$$byval_copy6>>0]=HEAP8[$7>>0]|0;HEAP8[$$byval_copy6+1>>0]=HEAP8[$7+1>>0]|0;HEAP8[$$byval_copy6+2>>0]=HEAP8[$7+2>>0]|0;HEAP8[$$byval_copy6+3>>0]=HEAP8[$7+3>>0]|0;
  9705. _DrawText(4664,$29,$31,10,$$byval_copy6);
  9706. _DrawFPS(10,10);
  9707. _EndDrawing();
  9708. STACKTOP = sp;return;
  9709. }
  9710. function _Vector2Distance($0,$1) {
  9711. $0 = $0|0;
  9712. $1 = $1|0;
  9713. 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;
  9714. sp = STACKTOP;
  9715. $2 = +HEAPF32[$0>>2];
  9716. $3 = +HEAPF32[$1>>2];
  9717. $4 = $2 - $3;
  9718. $5 = $4 * $4;
  9719. $6 = ((($0)) + 4|0);
  9720. $7 = +HEAPF32[$6>>2];
  9721. $8 = ((($1)) + 4|0);
  9722. $9 = +HEAPF32[$8>>2];
  9723. $10 = $7 - $9;
  9724. $11 = $10 * $10;
  9725. $12 = $5 + $11;
  9726. $13 = (+Math_sqrt((+$12)));
  9727. return (+$13);
  9728. }
  9729. function _Vector2Angle($0,$1) {
  9730. $0 = $0|0;
  9731. $1 = $1|0;
  9732. 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;
  9733. sp = STACKTOP;
  9734. $2 = ((($1)) + 4|0);
  9735. $3 = +HEAPF32[$2>>2];
  9736. $4 = ((($0)) + 4|0);
  9737. $5 = +HEAPF32[$4>>2];
  9738. $6 = $3 - $5;
  9739. $7 = +HEAPF32[$1>>2];
  9740. $8 = +HEAPF32[$0>>2];
  9741. $9 = $7 - $8;
  9742. $10 = (+Math_atan2((+$6),(+$9)));
  9743. $11 = $10 * 57.2957763671875;
  9744. $12 = $11 < 0.0;
  9745. $13 = $11 + 360.0;
  9746. $$0 = $12 ? $13 : $11;
  9747. return (+$$0);
  9748. }
  9749. function _VectorZero($0) {
  9750. $0 = $0|0;
  9751. var $1 = 0, $2 = 0, label = 0, sp = 0;
  9752. sp = STACKTOP;
  9753. HEAPF32[$0>>2] = 0.0;
  9754. $1 = ((($0)) + 4|0);
  9755. HEAPF32[$1>>2] = 0.0;
  9756. $2 = ((($0)) + 8|0);
  9757. HEAPF32[$2>>2] = 0.0;
  9758. return;
  9759. }
  9760. function _VectorSubtract($0,$1,$2) {
  9761. $0 = $0|0;
  9762. $1 = $1|0;
  9763. $2 = $2|0;
  9764. 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;
  9765. sp = STACKTOP;
  9766. $3 = +HEAPF32[$1>>2];
  9767. $4 = +HEAPF32[$2>>2];
  9768. $5 = $3 - $4;
  9769. HEAPF32[$0>>2] = $5;
  9770. $6 = ((($0)) + 4|0);
  9771. $7 = ((($1)) + 4|0);
  9772. $8 = +HEAPF32[$7>>2];
  9773. $9 = ((($2)) + 4|0);
  9774. $10 = +HEAPF32[$9>>2];
  9775. $11 = $8 - $10;
  9776. HEAPF32[$6>>2] = $11;
  9777. $12 = ((($0)) + 8|0);
  9778. $13 = ((($1)) + 8|0);
  9779. $14 = +HEAPF32[$13>>2];
  9780. $15 = ((($2)) + 8|0);
  9781. $16 = +HEAPF32[$15>>2];
  9782. $17 = $14 - $16;
  9783. HEAPF32[$12>>2] = $17;
  9784. return;
  9785. }
  9786. function _VectorCrossProduct($0,$1,$2) {
  9787. $0 = $0|0;
  9788. $1 = $1|0;
  9789. $2 = $2|0;
  9790. 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;
  9791. var $9 = 0.0, label = 0, sp = 0;
  9792. sp = STACKTOP;
  9793. $3 = ((($1)) + 4|0);
  9794. $4 = +HEAPF32[$3>>2];
  9795. $5 = ((($2)) + 8|0);
  9796. $6 = +HEAPF32[$5>>2];
  9797. $7 = $4 * $6;
  9798. $8 = ((($1)) + 8|0);
  9799. $9 = +HEAPF32[$8>>2];
  9800. $10 = ((($2)) + 4|0);
  9801. $11 = +HEAPF32[$10>>2];
  9802. $12 = $9 * $11;
  9803. $13 = $7 - $12;
  9804. $14 = +HEAPF32[$2>>2];
  9805. $15 = $9 * $14;
  9806. $16 = +HEAPF32[$1>>2];
  9807. $17 = $6 * $16;
  9808. $18 = $15 - $17;
  9809. $19 = $11 * $16;
  9810. $20 = $4 * $14;
  9811. $21 = $19 - $20;
  9812. HEAPF32[$0>>2] = $13;
  9813. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  9814. HEAPF32[$$sroa$4$0$$sroa_idx2>>2] = $18;
  9815. $$sroa$5$0$$sroa_idx4 = ((($0)) + 8|0);
  9816. HEAPF32[$$sroa$5$0$$sroa_idx4>>2] = $21;
  9817. return;
  9818. }
  9819. function _VectorLength($0) {
  9820. $0 = $0|0;
  9821. 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;
  9822. sp = STACKTOP;
  9823. $1 = +HEAPF32[$0>>2];
  9824. $2 = $1 * $1;
  9825. $3 = ((($0)) + 4|0);
  9826. $4 = +HEAPF32[$3>>2];
  9827. $5 = $4 * $4;
  9828. $6 = $2 + $5;
  9829. $7 = ((($0)) + 8|0);
  9830. $8 = +HEAPF32[$7>>2];
  9831. $9 = $8 * $8;
  9832. $10 = $6 + $9;
  9833. $11 = (+Math_sqrt((+$10)));
  9834. return (+$11);
  9835. }
  9836. function _VectorScale($0,$1) {
  9837. $0 = $0|0;
  9838. $1 = +$1;
  9839. 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;
  9840. sp = STACKTOP;
  9841. $2 = +HEAPF32[$0>>2];
  9842. $3 = $2 * $1;
  9843. HEAPF32[$0>>2] = $3;
  9844. $4 = ((($0)) + 4|0);
  9845. $5 = +HEAPF32[$4>>2];
  9846. $6 = $5 * $1;
  9847. HEAPF32[$4>>2] = $6;
  9848. $7 = ((($0)) + 8|0);
  9849. $8 = +HEAPF32[$7>>2];
  9850. $9 = $8 * $1;
  9851. HEAPF32[$7>>2] = $9;
  9852. return;
  9853. }
  9854. function _VectorNormalize($0) {
  9855. $0 = $0|0;
  9856. 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;
  9857. sp = STACKTOP;
  9858. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  9859. $$byval_copy = sp;
  9860. ;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;
  9861. $1 = (+_VectorLength($$byval_copy));
  9862. $2 = $1 == 0.0;
  9863. $$op = 1.0 / $1;
  9864. $3 = $2 ? 1.0 : $$op;
  9865. $4 = +HEAPF32[$0>>2];
  9866. $5 = $4 * $3;
  9867. HEAPF32[$0>>2] = $5;
  9868. $6 = ((($0)) + 4|0);
  9869. $7 = +HEAPF32[$6>>2];
  9870. $8 = $3 * $7;
  9871. HEAPF32[$6>>2] = $8;
  9872. $9 = ((($0)) + 8|0);
  9873. $10 = +HEAPF32[$9>>2];
  9874. $11 = $3 * $10;
  9875. HEAPF32[$9>>2] = $11;
  9876. STACKTOP = sp;return;
  9877. }
  9878. function _VectorTransform($0,$1) {
  9879. $0 = $0|0;
  9880. $1 = $1|0;
  9881. 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;
  9882. 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;
  9883. var $47 = 0.0, $5 = 0, $6 = 0.0, $7 = 0.0, $8 = 0.0, $9 = 0, label = 0, sp = 0;
  9884. sp = STACKTOP;
  9885. $2 = +HEAPF32[$0>>2];
  9886. $3 = ((($0)) + 4|0);
  9887. $4 = +HEAPF32[$3>>2];
  9888. $5 = ((($0)) + 8|0);
  9889. $6 = +HEAPF32[$5>>2];
  9890. $7 = +HEAPF32[$1>>2];
  9891. $8 = $2 * $7;
  9892. $9 = ((($1)) + 4|0);
  9893. $10 = +HEAPF32[$9>>2];
  9894. $11 = $4 * $10;
  9895. $12 = $8 + $11;
  9896. $13 = ((($1)) + 8|0);
  9897. $14 = +HEAPF32[$13>>2];
  9898. $15 = $6 * $14;
  9899. $16 = $12 + $15;
  9900. $17 = ((($1)) + 12|0);
  9901. $18 = +HEAPF32[$17>>2];
  9902. $19 = $18 + $16;
  9903. HEAPF32[$0>>2] = $19;
  9904. $20 = ((($1)) + 16|0);
  9905. $21 = +HEAPF32[$20>>2];
  9906. $22 = $2 * $21;
  9907. $23 = ((($1)) + 20|0);
  9908. $24 = +HEAPF32[$23>>2];
  9909. $25 = $4 * $24;
  9910. $26 = $22 + $25;
  9911. $27 = ((($1)) + 24|0);
  9912. $28 = +HEAPF32[$27>>2];
  9913. $29 = $6 * $28;
  9914. $30 = $26 + $29;
  9915. $31 = ((($1)) + 28|0);
  9916. $32 = +HEAPF32[$31>>2];
  9917. $33 = $32 + $30;
  9918. HEAPF32[$3>>2] = $33;
  9919. $34 = ((($1)) + 32|0);
  9920. $35 = +HEAPF32[$34>>2];
  9921. $36 = $2 * $35;
  9922. $37 = ((($1)) + 36|0);
  9923. $38 = +HEAPF32[$37>>2];
  9924. $39 = $4 * $38;
  9925. $40 = $36 + $39;
  9926. $41 = ((($1)) + 40|0);
  9927. $42 = +HEAPF32[$41>>2];
  9928. $43 = $6 * $42;
  9929. $44 = $40 + $43;
  9930. $45 = ((($1)) + 44|0);
  9931. $46 = +HEAPF32[$45>>2];
  9932. $47 = $46 + $44;
  9933. HEAPF32[$5>>2] = $47;
  9934. return;
  9935. }
  9936. function _MatrixTranspose($0) {
  9937. $0 = $0|0;
  9938. 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;
  9939. var $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  9940. sp = STACKTOP;
  9941. $1 = ((($0)) + 4|0);
  9942. $2 = HEAP32[$1>>2]|0;
  9943. $3 = ((($0)) + 8|0);
  9944. $4 = HEAP32[$3>>2]|0;
  9945. $5 = ((($0)) + 12|0);
  9946. $6 = HEAP32[$5>>2]|0;
  9947. $7 = ((($0)) + 16|0);
  9948. $8 = HEAP32[$7>>2]|0;
  9949. $9 = ((($0)) + 24|0);
  9950. $10 = HEAP32[$9>>2]|0;
  9951. $11 = ((($0)) + 28|0);
  9952. $12 = HEAP32[$11>>2]|0;
  9953. $13 = ((($0)) + 32|0);
  9954. $14 = HEAP32[$13>>2]|0;
  9955. $15 = ((($0)) + 36|0);
  9956. $16 = HEAP32[$15>>2]|0;
  9957. $17 = ((($0)) + 44|0);
  9958. $18 = HEAP32[$17>>2]|0;
  9959. $19 = ((($0)) + 48|0);
  9960. $20 = HEAP32[$19>>2]|0;
  9961. $21 = ((($0)) + 52|0);
  9962. $22 = HEAP32[$21>>2]|0;
  9963. $23 = ((($0)) + 56|0);
  9964. $24 = HEAP32[$23>>2]|0;
  9965. HEAP32[$1>>2] = $8;
  9966. HEAP32[$3>>2] = $14;
  9967. HEAP32[$5>>2] = $20;
  9968. HEAP32[$7>>2] = $2;
  9969. HEAP32[$9>>2] = $16;
  9970. HEAP32[$11>>2] = $22;
  9971. HEAP32[$13>>2] = $4;
  9972. HEAP32[$15>>2] = $10;
  9973. HEAP32[$17>>2] = $24;
  9974. HEAP32[$19>>2] = $6;
  9975. HEAP32[$21>>2] = $12;
  9976. HEAP32[$23>>2] = $18;
  9977. return;
  9978. }
  9979. function _MatrixInvert($0) {
  9980. $0 = $0|0;
  9981. 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;
  9982. 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;
  9983. 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;
  9984. 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;
  9985. 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;
  9986. 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;
  9987. 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;
  9988. 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;
  9989. 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;
  9990. sp = STACKTOP;
  9991. $1 = +HEAPF32[$0>>2];
  9992. $2 = ((($0)) + 16|0);
  9993. $3 = +HEAPF32[$2>>2];
  9994. $4 = ((($0)) + 32|0);
  9995. $5 = +HEAPF32[$4>>2];
  9996. $6 = ((($0)) + 48|0);
  9997. $7 = +HEAPF32[$6>>2];
  9998. $8 = ((($0)) + 4|0);
  9999. $9 = +HEAPF32[$8>>2];
  10000. $10 = ((($0)) + 20|0);
  10001. $11 = +HEAPF32[$10>>2];
  10002. $12 = ((($0)) + 36|0);
  10003. $13 = +HEAPF32[$12>>2];
  10004. $14 = ((($0)) + 52|0);
  10005. $15 = +HEAPF32[$14>>2];
  10006. $16 = ((($0)) + 8|0);
  10007. $17 = +HEAPF32[$16>>2];
  10008. $18 = ((($0)) + 24|0);
  10009. $19 = +HEAPF32[$18>>2];
  10010. $20 = ((($0)) + 40|0);
  10011. $21 = +HEAPF32[$20>>2];
  10012. $22 = ((($0)) + 56|0);
  10013. $23 = +HEAPF32[$22>>2];
  10014. $24 = ((($0)) + 12|0);
  10015. $25 = +HEAPF32[$24>>2];
  10016. $26 = ((($0)) + 28|0);
  10017. $27 = +HEAPF32[$26>>2];
  10018. $28 = ((($0)) + 44|0);
  10019. $29 = +HEAPF32[$28>>2];
  10020. $30 = ((($0)) + 60|0);
  10021. $31 = +HEAPF32[$30>>2];
  10022. $32 = $1 * $11;
  10023. $33 = $3 * $9;
  10024. $34 = $32 - $33;
  10025. $35 = $1 * $13;
  10026. $36 = $5 * $9;
  10027. $37 = $35 - $36;
  10028. $38 = $1 * $15;
  10029. $39 = $7 * $9;
  10030. $40 = $38 - $39;
  10031. $41 = $3 * $13;
  10032. $42 = $5 * $11;
  10033. $43 = $41 - $42;
  10034. $44 = $3 * $15;
  10035. $45 = $7 * $11;
  10036. $46 = $44 - $45;
  10037. $47 = $5 * $15;
  10038. $48 = $7 * $13;
  10039. $49 = $47 - $48;
  10040. $50 = $17 * $27;
  10041. $51 = $19 * $25;
  10042. $52 = $50 - $51;
  10043. $53 = $17 * $29;
  10044. $54 = $21 * $25;
  10045. $55 = $53 - $54;
  10046. $56 = $17 * $31;
  10047. $57 = $23 * $25;
  10048. $58 = $56 - $57;
  10049. $59 = $19 * $29;
  10050. $60 = $21 * $27;
  10051. $61 = $59 - $60;
  10052. $62 = $19 * $31;
  10053. $63 = $23 * $27;
  10054. $64 = $62 - $63;
  10055. $65 = $21 * $31;
  10056. $66 = $23 * $29;
  10057. $67 = $65 - $66;
  10058. $68 = $34 * $67;
  10059. $69 = $37 * $64;
  10060. $70 = $68 - $69;
  10061. $71 = $40 * $61;
  10062. $72 = $71 + $70;
  10063. $73 = $43 * $58;
  10064. $74 = $73 + $72;
  10065. $75 = $46 * $55;
  10066. $76 = $74 - $75;
  10067. $77 = $49 * $52;
  10068. $78 = $77 + $76;
  10069. $79 = 1.0 / $78;
  10070. $80 = $11 * $67;
  10071. $81 = $13 * $64;
  10072. $82 = $80 - $81;
  10073. $83 = $15 * $61;
  10074. $84 = $83 + $82;
  10075. $85 = $84 * $79;
  10076. $86 = $3 * $67;
  10077. $87 = $5 * $64;
  10078. $88 = $87 - $86;
  10079. $89 = $7 * $61;
  10080. $90 = $88 - $89;
  10081. $91 = $90 * $79;
  10082. $92 = $49 * $27;
  10083. $93 = $46 * $29;
  10084. $94 = $92 - $93;
  10085. $95 = $43 * $31;
  10086. $96 = $94 + $95;
  10087. $97 = $96 * $79;
  10088. $98 = $19 * $49;
  10089. $99 = $46 * $21;
  10090. $100 = $99 - $98;
  10091. $101 = $43 * $23;
  10092. $102 = $100 - $101;
  10093. $103 = $102 * $79;
  10094. $104 = -$9;
  10095. $105 = $67 * $104;
  10096. $106 = $13 * $58;
  10097. $107 = $105 + $106;
  10098. $108 = $15 * $55;
  10099. $109 = $107 - $108;
  10100. $110 = $109 * $79;
  10101. $111 = $1 * $67;
  10102. $112 = $5 * $58;
  10103. $113 = $111 - $112;
  10104. $114 = $7 * $55;
  10105. $115 = $114 + $113;
  10106. $116 = $115 * $79;
  10107. $117 = -$25;
  10108. $118 = $49 * $117;
  10109. $119 = $40 * $29;
  10110. $120 = $118 + $119;
  10111. $121 = $37 * $31;
  10112. $122 = $120 - $121;
  10113. $123 = $122 * $79;
  10114. $124 = $17 * $49;
  10115. $125 = $40 * $21;
  10116. $126 = $124 - $125;
  10117. $127 = $37 * $23;
  10118. $128 = $126 + $127;
  10119. $129 = $128 * $79;
  10120. $130 = $9 * $64;
  10121. $131 = $11 * $58;
  10122. $132 = $130 - $131;
  10123. $133 = $15 * $52;
  10124. $134 = $133 + $132;
  10125. $135 = $134 * $79;
  10126. $136 = $1 * $64;
  10127. $137 = $3 * $58;
  10128. $138 = $137 - $136;
  10129. $139 = $7 * $52;
  10130. $140 = $138 - $139;
  10131. $141 = $140 * $79;
  10132. $142 = $46 * $25;
  10133. $143 = $40 * $27;
  10134. $144 = $142 - $143;
  10135. $145 = $34 * $31;
  10136. $146 = $144 + $145;
  10137. $147 = $146 * $79;
  10138. $148 = $17 * $46;
  10139. $149 = $19 * $40;
  10140. $150 = $149 - $148;
  10141. $151 = $34 * $23;
  10142. $152 = $150 - $151;
  10143. $153 = $152 * $79;
  10144. $154 = $61 * $104;
  10145. $155 = $11 * $55;
  10146. $156 = $154 + $155;
  10147. $157 = $13 * $52;
  10148. $158 = $156 - $157;
  10149. $159 = $158 * $79;
  10150. $160 = $1 * $61;
  10151. $161 = $3 * $55;
  10152. $162 = $160 - $161;
  10153. $163 = $5 * $52;
  10154. $164 = $163 + $162;
  10155. $165 = $164 * $79;
  10156. $166 = $43 * $117;
  10157. $167 = $37 * $27;
  10158. $168 = $166 + $167;
  10159. $169 = $34 * $29;
  10160. $170 = $168 - $169;
  10161. $171 = $170 * $79;
  10162. $172 = $17 * $43;
  10163. $173 = $37 * $19;
  10164. $174 = $172 - $173;
  10165. $175 = $34 * $21;
  10166. $176 = $174 + $175;
  10167. $177 = $176 * $79;
  10168. HEAPF32[$0>>2] = $85;
  10169. HEAPF32[$8>>2] = $110;
  10170. HEAPF32[$16>>2] = $135;
  10171. HEAPF32[$24>>2] = $159;
  10172. HEAPF32[$2>>2] = $91;
  10173. HEAPF32[$10>>2] = $116;
  10174. HEAPF32[$18>>2] = $141;
  10175. HEAPF32[$26>>2] = $165;
  10176. HEAPF32[$4>>2] = $97;
  10177. HEAPF32[$12>>2] = $123;
  10178. HEAPF32[$20>>2] = $147;
  10179. HEAPF32[$28>>2] = $171;
  10180. HEAPF32[$6>>2] = $103;
  10181. HEAPF32[$14>>2] = $129;
  10182. HEAPF32[$22>>2] = $153;
  10183. HEAPF32[$30>>2] = $177;
  10184. return;
  10185. }
  10186. function _MatrixIdentity($0) {
  10187. $0 = $0|0;
  10188. 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;
  10189. sp = STACKTOP;
  10190. HEAPF32[$0>>2] = 1.0;
  10191. $$sroa$5$0$$sroa_idx = ((($0)) + 4|0);
  10192. ;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;
  10193. $$sroa$55$0$$sroa_idx6 = ((($0)) + 20|0);
  10194. HEAPF32[$$sroa$55$0$$sroa_idx6>>2] = 1.0;
  10195. $$sroa$6$0$$sroa_idx = ((($0)) + 24|0);
  10196. ;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;
  10197. $$sroa$611$0$$sroa_idx12 = ((($0)) + 40|0);
  10198. HEAPF32[$$sroa$611$0$$sroa_idx12>>2] = 1.0;
  10199. $$sroa$7$0$$sroa_idx = ((($0)) + 44|0);
  10200. ;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;
  10201. $$sroa$717$0$$sroa_idx18 = ((($0)) + 60|0);
  10202. HEAPF32[$$sroa$717$0$$sroa_idx18>>2] = 1.0;
  10203. return;
  10204. }
  10205. function _MatrixTranslate($0,$1,$2,$3) {
  10206. $0 = $0|0;
  10207. $1 = +$1;
  10208. $2 = +$2;
  10209. $3 = +$3;
  10210. 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;
  10211. sp = STACKTOP;
  10212. HEAPF32[$0>>2] = 1.0;
  10213. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  10214. $$sroa$8$0$$sroa_idx10 = ((($0)) + 20|0);
  10215. ;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;
  10216. HEAPF32[$$sroa$8$0$$sroa_idx10>>2] = 1.0;
  10217. $$sroa$9$0$$sroa_idx12 = ((($0)) + 24|0);
  10218. $$sroa$13$0$$sroa_idx20 = ((($0)) + 40|0);
  10219. ;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;
  10220. HEAPF32[$$sroa$13$0$$sroa_idx20>>2] = 1.0;
  10221. $$sroa$14$0$$sroa_idx22 = ((($0)) + 44|0);
  10222. HEAPF32[$$sroa$14$0$$sroa_idx22>>2] = 0.0;
  10223. $$sroa$15$0$$sroa_idx24 = ((($0)) + 48|0);
  10224. HEAPF32[$$sroa$15$0$$sroa_idx24>>2] = $1;
  10225. $$sroa$16$0$$sroa_idx26 = ((($0)) + 52|0);
  10226. HEAPF32[$$sroa$16$0$$sroa_idx26>>2] = $2;
  10227. $$sroa$17$0$$sroa_idx28 = ((($0)) + 56|0);
  10228. HEAPF32[$$sroa$17$0$$sroa_idx28>>2] = $3;
  10229. $$sroa$18$0$$sroa_idx30 = ((($0)) + 60|0);
  10230. HEAPF32[$$sroa$18$0$$sroa_idx30>>2] = 1.0;
  10231. return;
  10232. }
  10233. function _MatrixRotate($0,$1,$2) {
  10234. $0 = $0|0;
  10235. $1 = $1|0;
  10236. $2 = +$2;
  10237. 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;
  10238. 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;
  10239. 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;
  10240. 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;
  10241. 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;
  10242. 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;
  10243. 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;
  10244. 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;
  10245. sp = STACKTOP;
  10246. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  10247. $3 = sp;
  10248. _MatrixIdentity($3);
  10249. $4 = +HEAPF32[$1>>2];
  10250. $5 = ((($1)) + 4|0);
  10251. $6 = +HEAPF32[$5>>2];
  10252. $7 = ((($1)) + 8|0);
  10253. $8 = +HEAPF32[$7>>2];
  10254. $9 = $4 * $4;
  10255. $10 = $6 * $6;
  10256. $11 = $9 + $10;
  10257. $12 = $8 * $8;
  10258. $13 = $11 + $12;
  10259. $14 = (+Math_sqrt((+$13)));
  10260. $15 = $14 != 1.0;
  10261. $16 = $14 != 0.0;
  10262. $or$cond = $15 & $16;
  10263. $17 = 1.0 / $14;
  10264. $18 = $4 * $17;
  10265. $19 = $6 * $17;
  10266. $20 = $8 * $17;
  10267. $$ = $or$cond ? $20 : $8;
  10268. $$221 = $or$cond ? $19 : $6;
  10269. $$222 = $or$cond ? $18 : $4;
  10270. $21 = (+Math_sin((+$2)));
  10271. $22 = (+Math_cos((+$2)));
  10272. $23 = 1.0 - $22;
  10273. $24 = +HEAPF32[$3>>2];
  10274. $25 = ((($3)) + 16|0);
  10275. $26 = +HEAPF32[$25>>2];
  10276. $27 = ((($3)) + 32|0);
  10277. $28 = +HEAPF32[$27>>2];
  10278. $29 = ((($3)) + 48|0);
  10279. $30 = +HEAPF32[$29>>2];
  10280. $31 = ((($3)) + 4|0);
  10281. $32 = +HEAPF32[$31>>2];
  10282. $33 = ((($3)) + 20|0);
  10283. $34 = +HEAPF32[$33>>2];
  10284. $35 = ((($3)) + 36|0);
  10285. $36 = +HEAPF32[$35>>2];
  10286. $37 = ((($3)) + 52|0);
  10287. $38 = +HEAPF32[$37>>2];
  10288. $39 = ((($3)) + 8|0);
  10289. $40 = +HEAPF32[$39>>2];
  10290. $41 = ((($3)) + 24|0);
  10291. $42 = +HEAPF32[$41>>2];
  10292. $43 = ((($3)) + 40|0);
  10293. $44 = +HEAPF32[$43>>2];
  10294. $45 = ((($3)) + 56|0);
  10295. $46 = +HEAPF32[$45>>2];
  10296. $47 = $$222 * $$222;
  10297. $48 = $23 * $47;
  10298. $49 = $22 + $48;
  10299. $50 = $$221 * $$222;
  10300. $51 = $23 * $50;
  10301. $52 = $21 * $$;
  10302. $53 = $52 + $51;
  10303. $54 = $$ * $$222;
  10304. $55 = $23 * $54;
  10305. $56 = $21 * $$221;
  10306. $57 = $55 - $56;
  10307. $58 = $51 - $52;
  10308. $59 = $$221 * $$221;
  10309. $60 = $23 * $59;
  10310. $61 = $22 + $60;
  10311. $62 = $$ * $$221;
  10312. $63 = $23 * $62;
  10313. $64 = $21 * $$222;
  10314. $65 = $64 + $63;
  10315. $66 = $56 + $55;
  10316. $67 = $63 - $64;
  10317. $68 = $$ * $$;
  10318. $69 = $23 * $68;
  10319. $70 = $22 + $69;
  10320. $71 = $24 * $49;
  10321. $72 = $53 * $32;
  10322. $73 = $71 + $72;
  10323. $74 = $57 * $40;
  10324. $75 = $73 + $74;
  10325. $76 = $26 * $49;
  10326. $77 = $53 * $34;
  10327. $78 = $76 + $77;
  10328. $79 = $57 * $42;
  10329. $80 = $78 + $79;
  10330. $81 = $28 * $49;
  10331. $82 = $53 * $36;
  10332. $83 = $81 + $82;
  10333. $84 = $57 * $44;
  10334. $85 = $83 + $84;
  10335. $86 = $30 * $49;
  10336. $87 = $53 * $38;
  10337. $88 = $86 + $87;
  10338. $89 = $57 * $46;
  10339. $90 = $88 + $89;
  10340. $91 = $24 * $58;
  10341. $92 = $61 * $32;
  10342. $93 = $91 + $92;
  10343. $94 = $65 * $40;
  10344. $95 = $93 + $94;
  10345. $96 = $26 * $58;
  10346. $97 = $61 * $34;
  10347. $98 = $96 + $97;
  10348. $99 = $65 * $42;
  10349. $100 = $98 + $99;
  10350. $101 = $28 * $58;
  10351. $102 = $61 * $36;
  10352. $103 = $101 + $102;
  10353. $104 = $65 * $44;
  10354. $105 = $103 + $104;
  10355. $106 = $30 * $58;
  10356. $107 = $61 * $38;
  10357. $108 = $106 + $107;
  10358. $109 = $65 * $46;
  10359. $110 = $108 + $109;
  10360. $111 = $24 * $66;
  10361. $112 = $67 * $32;
  10362. $113 = $111 + $112;
  10363. $114 = $70 * $40;
  10364. $115 = $113 + $114;
  10365. $116 = $26 * $66;
  10366. $117 = $67 * $34;
  10367. $118 = $116 + $117;
  10368. $119 = $70 * $42;
  10369. $120 = $118 + $119;
  10370. $121 = $28 * $66;
  10371. $122 = $67 * $36;
  10372. $123 = $121 + $122;
  10373. $124 = $70 * $44;
  10374. $125 = $123 + $124;
  10375. $126 = $30 * $66;
  10376. $127 = $67 * $38;
  10377. $128 = $126 + $127;
  10378. $129 = $70 * $46;
  10379. $130 = $128 + $129;
  10380. $131 = ((($3)) + 12|0);
  10381. $132 = HEAP32[$131>>2]|0;
  10382. $133 = ((($3)) + 28|0);
  10383. $134 = HEAP32[$133>>2]|0;
  10384. $135 = ((($3)) + 44|0);
  10385. $136 = HEAP32[$135>>2]|0;
  10386. $137 = ((($3)) + 60|0);
  10387. $138 = HEAP32[$137>>2]|0;
  10388. HEAPF32[$0>>2] = $75;
  10389. $$sroa$4$0$$sroa_idx187 = ((($0)) + 4|0);
  10390. HEAPF32[$$sroa$4$0$$sroa_idx187>>2] = $95;
  10391. $$sroa$5$0$$sroa_idx189 = ((($0)) + 8|0);
  10392. HEAPF32[$$sroa$5$0$$sroa_idx189>>2] = $115;
  10393. $$sroa$6$0$$sroa_idx191 = ((($0)) + 12|0);
  10394. HEAP32[$$sroa$6$0$$sroa_idx191>>2] = $132;
  10395. $$sroa$7$0$$sroa_idx193 = ((($0)) + 16|0);
  10396. HEAPF32[$$sroa$7$0$$sroa_idx193>>2] = $80;
  10397. $$sroa$8$0$$sroa_idx195 = ((($0)) + 20|0);
  10398. HEAPF32[$$sroa$8$0$$sroa_idx195>>2] = $100;
  10399. $$sroa$9$0$$sroa_idx197 = ((($0)) + 24|0);
  10400. HEAPF32[$$sroa$9$0$$sroa_idx197>>2] = $120;
  10401. $$sroa$10$0$$sroa_idx199 = ((($0)) + 28|0);
  10402. HEAP32[$$sroa$10$0$$sroa_idx199>>2] = $134;
  10403. $$sroa$11$0$$sroa_idx201 = ((($0)) + 32|0);
  10404. HEAPF32[$$sroa$11$0$$sroa_idx201>>2] = $85;
  10405. $$sroa$12$0$$sroa_idx203 = ((($0)) + 36|0);
  10406. HEAPF32[$$sroa$12$0$$sroa_idx203>>2] = $105;
  10407. $$sroa$13$0$$sroa_idx205 = ((($0)) + 40|0);
  10408. HEAPF32[$$sroa$13$0$$sroa_idx205>>2] = $125;
  10409. $$sroa$14$0$$sroa_idx207 = ((($0)) + 44|0);
  10410. HEAP32[$$sroa$14$0$$sroa_idx207>>2] = $136;
  10411. $$sroa$15$0$$sroa_idx209 = ((($0)) + 48|0);
  10412. HEAPF32[$$sroa$15$0$$sroa_idx209>>2] = $90;
  10413. $$sroa$16$0$$sroa_idx211 = ((($0)) + 52|0);
  10414. HEAPF32[$$sroa$16$0$$sroa_idx211>>2] = $110;
  10415. $$sroa$17$0$$sroa_idx213 = ((($0)) + 56|0);
  10416. HEAPF32[$$sroa$17$0$$sroa_idx213>>2] = $130;
  10417. $$sroa$18$0$$sroa_idx215 = ((($0)) + 60|0);
  10418. HEAP32[$$sroa$18$0$$sroa_idx215>>2] = $138;
  10419. STACKTOP = sp;return;
  10420. }
  10421. function _MatrixScale($0,$1,$2,$3) {
  10422. $0 = $0|0;
  10423. $1 = +$1;
  10424. $2 = +$2;
  10425. $3 = +$3;
  10426. 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;
  10427. sp = STACKTOP;
  10428. HEAPF32[$0>>2] = $1;
  10429. $$sroa$5$0$$sroa_idx = ((($0)) + 4|0);
  10430. ;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;
  10431. $$sroa$55$0$$sroa_idx6 = ((($0)) + 20|0);
  10432. HEAPF32[$$sroa$55$0$$sroa_idx6>>2] = $2;
  10433. $$sroa$6$0$$sroa_idx = ((($0)) + 24|0);
  10434. ;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;
  10435. $$sroa$611$0$$sroa_idx12 = ((($0)) + 40|0);
  10436. HEAPF32[$$sroa$611$0$$sroa_idx12>>2] = $3;
  10437. $$sroa$7$0$$sroa_idx = ((($0)) + 44|0);
  10438. ;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;
  10439. $$sroa$717$0$$sroa_idx18 = ((($0)) + 60|0);
  10440. HEAPF32[$$sroa$717$0$$sroa_idx18>>2] = 1.0;
  10441. return;
  10442. }
  10443. function _MatrixMultiply($0,$1,$2) {
  10444. $0 = $0|0;
  10445. $1 = $1|0;
  10446. $2 = $2|0;
  10447. 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;
  10448. 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;
  10449. 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;
  10450. 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;
  10451. 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;
  10452. 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;
  10453. 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;
  10454. 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;
  10455. 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;
  10456. 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;
  10457. sp = STACKTOP;
  10458. $3 = +HEAPF32[$2>>2];
  10459. $4 = +HEAPF32[$1>>2];
  10460. $5 = $3 * $4;
  10461. $6 = ((($2)) + 16|0);
  10462. $7 = +HEAPF32[$6>>2];
  10463. $8 = ((($1)) + 4|0);
  10464. $9 = +HEAPF32[$8>>2];
  10465. $10 = $7 * $9;
  10466. $11 = $5 + $10;
  10467. $12 = ((($2)) + 32|0);
  10468. $13 = +HEAPF32[$12>>2];
  10469. $14 = ((($1)) + 8|0);
  10470. $15 = +HEAPF32[$14>>2];
  10471. $16 = $13 * $15;
  10472. $17 = $11 + $16;
  10473. $18 = ((($2)) + 48|0);
  10474. $19 = +HEAPF32[$18>>2];
  10475. $20 = ((($1)) + 12|0);
  10476. $21 = +HEAPF32[$20>>2];
  10477. $22 = $19 * $21;
  10478. $23 = $17 + $22;
  10479. $24 = ((($1)) + 16|0);
  10480. $25 = +HEAPF32[$24>>2];
  10481. $26 = $3 * $25;
  10482. $27 = ((($1)) + 20|0);
  10483. $28 = +HEAPF32[$27>>2];
  10484. $29 = $7 * $28;
  10485. $30 = $26 + $29;
  10486. $31 = ((($1)) + 24|0);
  10487. $32 = +HEAPF32[$31>>2];
  10488. $33 = $13 * $32;
  10489. $34 = $30 + $33;
  10490. $35 = ((($1)) + 28|0);
  10491. $36 = +HEAPF32[$35>>2];
  10492. $37 = $19 * $36;
  10493. $38 = $34 + $37;
  10494. $39 = ((($1)) + 32|0);
  10495. $40 = +HEAPF32[$39>>2];
  10496. $41 = $3 * $40;
  10497. $42 = ((($1)) + 36|0);
  10498. $43 = +HEAPF32[$42>>2];
  10499. $44 = $7 * $43;
  10500. $45 = $41 + $44;
  10501. $46 = ((($1)) + 40|0);
  10502. $47 = +HEAPF32[$46>>2];
  10503. $48 = $13 * $47;
  10504. $49 = $45 + $48;
  10505. $50 = ((($1)) + 44|0);
  10506. $51 = +HEAPF32[$50>>2];
  10507. $52 = $19 * $51;
  10508. $53 = $49 + $52;
  10509. $54 = ((($1)) + 48|0);
  10510. $55 = +HEAPF32[$54>>2];
  10511. $56 = $3 * $55;
  10512. $57 = ((($1)) + 52|0);
  10513. $58 = +HEAPF32[$57>>2];
  10514. $59 = $7 * $58;
  10515. $60 = $56 + $59;
  10516. $61 = ((($1)) + 56|0);
  10517. $62 = +HEAPF32[$61>>2];
  10518. $63 = $13 * $62;
  10519. $64 = $60 + $63;
  10520. $65 = ((($1)) + 60|0);
  10521. $66 = +HEAPF32[$65>>2];
  10522. $67 = $19 * $66;
  10523. $68 = $64 + $67;
  10524. $69 = ((($2)) + 4|0);
  10525. $70 = +HEAPF32[$69>>2];
  10526. $71 = $4 * $70;
  10527. $72 = ((($2)) + 20|0);
  10528. $73 = +HEAPF32[$72>>2];
  10529. $74 = $9 * $73;
  10530. $75 = $71 + $74;
  10531. $76 = ((($2)) + 36|0);
  10532. $77 = +HEAPF32[$76>>2];
  10533. $78 = $15 * $77;
  10534. $79 = $75 + $78;
  10535. $80 = ((($2)) + 52|0);
  10536. $81 = +HEAPF32[$80>>2];
  10537. $82 = $21 * $81;
  10538. $83 = $79 + $82;
  10539. $84 = $25 * $70;
  10540. $85 = $28 * $73;
  10541. $86 = $84 + $85;
  10542. $87 = $32 * $77;
  10543. $88 = $86 + $87;
  10544. $89 = $36 * $81;
  10545. $90 = $88 + $89;
  10546. $91 = $40 * $70;
  10547. $92 = $43 * $73;
  10548. $93 = $91 + $92;
  10549. $94 = $47 * $77;
  10550. $95 = $93 + $94;
  10551. $96 = $51 * $81;
  10552. $97 = $95 + $96;
  10553. $98 = $55 * $70;
  10554. $99 = $58 * $73;
  10555. $100 = $98 + $99;
  10556. $101 = $62 * $77;
  10557. $102 = $100 + $101;
  10558. $103 = $66 * $81;
  10559. $104 = $102 + $103;
  10560. $105 = ((($2)) + 8|0);
  10561. $106 = +HEAPF32[$105>>2];
  10562. $107 = $4 * $106;
  10563. $108 = ((($2)) + 24|0);
  10564. $109 = +HEAPF32[$108>>2];
  10565. $110 = $9 * $109;
  10566. $111 = $107 + $110;
  10567. $112 = ((($2)) + 40|0);
  10568. $113 = +HEAPF32[$112>>2];
  10569. $114 = $15 * $113;
  10570. $115 = $111 + $114;
  10571. $116 = ((($2)) + 56|0);
  10572. $117 = +HEAPF32[$116>>2];
  10573. $118 = $21 * $117;
  10574. $119 = $115 + $118;
  10575. $120 = $25 * $106;
  10576. $121 = $28 * $109;
  10577. $122 = $120 + $121;
  10578. $123 = $32 * $113;
  10579. $124 = $122 + $123;
  10580. $125 = $36 * $117;
  10581. $126 = $124 + $125;
  10582. $127 = $40 * $106;
  10583. $128 = $43 * $109;
  10584. $129 = $127 + $128;
  10585. $130 = $47 * $113;
  10586. $131 = $129 + $130;
  10587. $132 = $51 * $117;
  10588. $133 = $131 + $132;
  10589. $134 = $55 * $106;
  10590. $135 = $58 * $109;
  10591. $136 = $134 + $135;
  10592. $137 = $62 * $113;
  10593. $138 = $136 + $137;
  10594. $139 = $66 * $117;
  10595. $140 = $138 + $139;
  10596. $141 = ((($2)) + 12|0);
  10597. $142 = +HEAPF32[$141>>2];
  10598. $143 = $4 * $142;
  10599. $144 = ((($2)) + 28|0);
  10600. $145 = +HEAPF32[$144>>2];
  10601. $146 = $9 * $145;
  10602. $147 = $143 + $146;
  10603. $148 = ((($2)) + 44|0);
  10604. $149 = +HEAPF32[$148>>2];
  10605. $150 = $15 * $149;
  10606. $151 = $147 + $150;
  10607. $152 = ((($2)) + 60|0);
  10608. $153 = +HEAPF32[$152>>2];
  10609. $154 = $21 * $153;
  10610. $155 = $151 + $154;
  10611. $156 = $25 * $142;
  10612. $157 = $28 * $145;
  10613. $158 = $156 + $157;
  10614. $159 = $32 * $149;
  10615. $160 = $158 + $159;
  10616. $161 = $36 * $153;
  10617. $162 = $160 + $161;
  10618. $163 = $40 * $142;
  10619. $164 = $43 * $145;
  10620. $165 = $163 + $164;
  10621. $166 = $47 * $149;
  10622. $167 = $165 + $166;
  10623. $168 = $51 * $153;
  10624. $169 = $167 + $168;
  10625. $170 = $55 * $142;
  10626. $171 = $58 * $145;
  10627. $172 = $170 + $171;
  10628. $173 = $62 * $149;
  10629. $174 = $172 + $173;
  10630. $175 = $66 * $153;
  10631. $176 = $174 + $175;
  10632. HEAPF32[$0>>2] = $23;
  10633. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  10634. HEAPF32[$$sroa$4$0$$sroa_idx2>>2] = $83;
  10635. $$sroa$5$0$$sroa_idx4 = ((($0)) + 8|0);
  10636. HEAPF32[$$sroa$5$0$$sroa_idx4>>2] = $119;
  10637. $$sroa$6$0$$sroa_idx6 = ((($0)) + 12|0);
  10638. HEAPF32[$$sroa$6$0$$sroa_idx6>>2] = $155;
  10639. $$sroa$7$0$$sroa_idx8 = ((($0)) + 16|0);
  10640. HEAPF32[$$sroa$7$0$$sroa_idx8>>2] = $38;
  10641. $$sroa$8$0$$sroa_idx10 = ((($0)) + 20|0);
  10642. HEAPF32[$$sroa$8$0$$sroa_idx10>>2] = $90;
  10643. $$sroa$9$0$$sroa_idx12 = ((($0)) + 24|0);
  10644. HEAPF32[$$sroa$9$0$$sroa_idx12>>2] = $126;
  10645. $$sroa$10$0$$sroa_idx14 = ((($0)) + 28|0);
  10646. HEAPF32[$$sroa$10$0$$sroa_idx14>>2] = $162;
  10647. $$sroa$11$0$$sroa_idx16 = ((($0)) + 32|0);
  10648. HEAPF32[$$sroa$11$0$$sroa_idx16>>2] = $53;
  10649. $$sroa$12$0$$sroa_idx18 = ((($0)) + 36|0);
  10650. HEAPF32[$$sroa$12$0$$sroa_idx18>>2] = $97;
  10651. $$sroa$13$0$$sroa_idx20 = ((($0)) + 40|0);
  10652. HEAPF32[$$sroa$13$0$$sroa_idx20>>2] = $133;
  10653. $$sroa$14$0$$sroa_idx22 = ((($0)) + 44|0);
  10654. HEAPF32[$$sroa$14$0$$sroa_idx22>>2] = $169;
  10655. $$sroa$15$0$$sroa_idx24 = ((($0)) + 48|0);
  10656. HEAPF32[$$sroa$15$0$$sroa_idx24>>2] = $68;
  10657. $$sroa$16$0$$sroa_idx26 = ((($0)) + 52|0);
  10658. HEAPF32[$$sroa$16$0$$sroa_idx26>>2] = $104;
  10659. $$sroa$17$0$$sroa_idx28 = ((($0)) + 56|0);
  10660. HEAPF32[$$sroa$17$0$$sroa_idx28>>2] = $140;
  10661. $$sroa$18$0$$sroa_idx30 = ((($0)) + 60|0);
  10662. HEAPF32[$$sroa$18$0$$sroa_idx30>>2] = $176;
  10663. return;
  10664. }
  10665. function _MatrixFrustum($0,$1,$2,$3,$4,$5,$6) {
  10666. $0 = $0|0;
  10667. $1 = +$1;
  10668. $2 = +$2;
  10669. $3 = +$3;
  10670. $4 = +$4;
  10671. $5 = +$5;
  10672. $6 = +$6;
  10673. 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;
  10674. 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;
  10675. var $35 = 0.0, $7 = 0.0, $8 = 0.0, $9 = 0.0, label = 0, sp = 0;
  10676. sp = STACKTOP;
  10677. $7 = $2 - $1;
  10678. $8 = $7;
  10679. $9 = $4 - $3;
  10680. $10 = $9;
  10681. $11 = $6 - $5;
  10682. $12 = $11;
  10683. $13 = $5 * 2.0;
  10684. $14 = $8;
  10685. $15 = $13 / $14;
  10686. $16 = $15;
  10687. $17 = $10;
  10688. $18 = $13 / $17;
  10689. $19 = $18;
  10690. $20 = $1 + $2;
  10691. $21 = $20 / $14;
  10692. $22 = $21;
  10693. $23 = $3 + $4;
  10694. $24 = $23 / $17;
  10695. $25 = $24;
  10696. $26 = $5 + $6;
  10697. $27 = -$26;
  10698. $28 = $12;
  10699. $29 = $27 / $28;
  10700. $30 = $29;
  10701. $31 = $5 * $6;
  10702. $32 = $31 * 2.0;
  10703. $33 = -$32;
  10704. $34 = $33 / $28;
  10705. $35 = $34;
  10706. HEAPF32[$0>>2] = $16;
  10707. $$sroa$4$0$$sroa_idx12 = ((($0)) + 4|0);
  10708. HEAPF32[$$sroa$4$0$$sroa_idx12>>2] = 0.0;
  10709. $$sroa$5$0$$sroa_idx14 = ((($0)) + 8|0);
  10710. HEAPF32[$$sroa$5$0$$sroa_idx14>>2] = $22;
  10711. $$sroa$6$0$$sroa_idx16 = ((($0)) + 12|0);
  10712. HEAPF32[$$sroa$6$0$$sroa_idx16>>2] = 0.0;
  10713. $$sroa$7$0$$sroa_idx18 = ((($0)) + 16|0);
  10714. HEAPF32[$$sroa$7$0$$sroa_idx18>>2] = 0.0;
  10715. $$sroa$8$0$$sroa_idx20 = ((($0)) + 20|0);
  10716. HEAPF32[$$sroa$8$0$$sroa_idx20>>2] = $19;
  10717. $$sroa$9$0$$sroa_idx22 = ((($0)) + 24|0);
  10718. HEAPF32[$$sroa$9$0$$sroa_idx22>>2] = $25;
  10719. $$sroa$10$0$$sroa_idx24 = ((($0)) + 28|0);
  10720. HEAPF32[$$sroa$10$0$$sroa_idx24>>2] = 0.0;
  10721. $$sroa$11$0$$sroa_idx26 = ((($0)) + 32|0);
  10722. HEAPF32[$$sroa$11$0$$sroa_idx26>>2] = 0.0;
  10723. $$sroa$12$0$$sroa_idx28 = ((($0)) + 36|0);
  10724. HEAPF32[$$sroa$12$0$$sroa_idx28>>2] = 0.0;
  10725. $$sroa$13$0$$sroa_idx30 = ((($0)) + 40|0);
  10726. HEAPF32[$$sroa$13$0$$sroa_idx30>>2] = $30;
  10727. $$sroa$14$0$$sroa_idx32 = ((($0)) + 44|0);
  10728. HEAPF32[$$sroa$14$0$$sroa_idx32>>2] = $35;
  10729. $$sroa$15$0$$sroa_idx34 = ((($0)) + 48|0);
  10730. HEAPF32[$$sroa$15$0$$sroa_idx34>>2] = 0.0;
  10731. $$sroa$16$0$$sroa_idx36 = ((($0)) + 52|0);
  10732. HEAPF32[$$sroa$16$0$$sroa_idx36>>2] = 0.0;
  10733. $$sroa$17$0$$sroa_idx38 = ((($0)) + 56|0);
  10734. HEAPF32[$$sroa$17$0$$sroa_idx38>>2] = -1.0;
  10735. $$sroa$18$0$$sroa_idx40 = ((($0)) + 60|0);
  10736. HEAPF32[$$sroa$18$0$$sroa_idx40>>2] = 0.0;
  10737. return;
  10738. }
  10739. function _MatrixOrtho($0,$1,$2,$3,$4,$5,$6) {
  10740. $0 = $0|0;
  10741. $1 = +$1;
  10742. $2 = +$2;
  10743. $3 = +$3;
  10744. $4 = +$4;
  10745. $5 = +$5;
  10746. $6 = +$6;
  10747. 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;
  10748. 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;
  10749. var sp = 0;
  10750. sp = STACKTOP;
  10751. $7 = $2 - $1;
  10752. $8 = $7;
  10753. $9 = $4 - $3;
  10754. $10 = $9;
  10755. $11 = $6 - $5;
  10756. $12 = $11;
  10757. $13 = 2.0 / $8;
  10758. $14 = 2.0 / $10;
  10759. $15 = -2.0 / $12;
  10760. $16 = $1 + $2;
  10761. $17 = -$16;
  10762. $18 = $8;
  10763. $19 = $17 / $18;
  10764. $20 = $19;
  10765. $21 = $3 + $4;
  10766. $22 = -$21;
  10767. $23 = $10;
  10768. $24 = $22 / $23;
  10769. $25 = $24;
  10770. $26 = $5 + $6;
  10771. $27 = -$26;
  10772. $28 = $12;
  10773. $29 = $27 / $28;
  10774. $30 = $29;
  10775. HEAPF32[$0>>2] = $13;
  10776. $$sroa$4$0$$sroa_idx12 = ((($0)) + 4|0);
  10777. HEAPF32[$$sroa$4$0$$sroa_idx12>>2] = 0.0;
  10778. $$sroa$5$0$$sroa_idx14 = ((($0)) + 8|0);
  10779. HEAPF32[$$sroa$5$0$$sroa_idx14>>2] = 0.0;
  10780. $$sroa$6$0$$sroa_idx16 = ((($0)) + 12|0);
  10781. HEAPF32[$$sroa$6$0$$sroa_idx16>>2] = $20;
  10782. $$sroa$7$0$$sroa_idx18 = ((($0)) + 16|0);
  10783. HEAPF32[$$sroa$7$0$$sroa_idx18>>2] = 0.0;
  10784. $$sroa$8$0$$sroa_idx20 = ((($0)) + 20|0);
  10785. HEAPF32[$$sroa$8$0$$sroa_idx20>>2] = $14;
  10786. $$sroa$9$0$$sroa_idx22 = ((($0)) + 24|0);
  10787. HEAPF32[$$sroa$9$0$$sroa_idx22>>2] = 0.0;
  10788. $$sroa$10$0$$sroa_idx24 = ((($0)) + 28|0);
  10789. HEAPF32[$$sroa$10$0$$sroa_idx24>>2] = $25;
  10790. $$sroa$11$0$$sroa_idx26 = ((($0)) + 32|0);
  10791. HEAPF32[$$sroa$11$0$$sroa_idx26>>2] = 0.0;
  10792. $$sroa$12$0$$sroa_idx28 = ((($0)) + 36|0);
  10793. HEAPF32[$$sroa$12$0$$sroa_idx28>>2] = 0.0;
  10794. $$sroa$13$0$$sroa_idx30 = ((($0)) + 40|0);
  10795. HEAPF32[$$sroa$13$0$$sroa_idx30>>2] = $15;
  10796. $$sroa$14$0$$sroa_idx32 = ((($0)) + 44|0);
  10797. HEAPF32[$$sroa$14$0$$sroa_idx32>>2] = $30;
  10798. $$sroa$15$0$$sroa_idx34 = ((($0)) + 48|0);
  10799. HEAPF32[$$sroa$15$0$$sroa_idx34>>2] = 0.0;
  10800. $$sroa$16$0$$sroa_idx36 = ((($0)) + 52|0);
  10801. HEAPF32[$$sroa$16$0$$sroa_idx36>>2] = 0.0;
  10802. $$sroa$17$0$$sroa_idx38 = ((($0)) + 56|0);
  10803. HEAPF32[$$sroa$17$0$$sroa_idx38>>2] = 0.0;
  10804. $$sroa$18$0$$sroa_idx40 = ((($0)) + 60|0);
  10805. HEAPF32[$$sroa$18$0$$sroa_idx40>>2] = 1.0;
  10806. return;
  10807. }
  10808. function _MatrixLookAt($0,$1,$2,$3) {
  10809. $0 = $0|0;
  10810. $1 = $1|0;
  10811. $2 = $2|0;
  10812. $3 = $3|0;
  10813. 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;
  10814. 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;
  10815. 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;
  10816. sp = STACKTOP;
  10817. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  10818. $$byval_copy5 = sp + 48|0;
  10819. $$byval_copy4 = sp + 36|0;
  10820. $4 = sp + 24|0;
  10821. $5 = sp + 12|0;
  10822. $6 = sp;
  10823. ;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;
  10824. ;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;
  10825. _VectorSubtract($4,$$byval_copy4,$$byval_copy5);
  10826. _VectorNormalize($4);
  10827. ;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;
  10828. ;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;
  10829. _VectorCrossProduct($5,$$byval_copy4,$$byval_copy5);
  10830. _VectorNormalize($5);
  10831. ;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;
  10832. ;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;
  10833. _VectorCrossProduct($6,$$byval_copy4,$$byval_copy5);
  10834. _VectorNormalize($6);
  10835. $7 = +HEAPF32[$5>>2];
  10836. $8 = ((($5)) + 4|0);
  10837. $9 = +HEAPF32[$8>>2];
  10838. $10 = ((($5)) + 8|0);
  10839. $11 = +HEAPF32[$10>>2];
  10840. $12 = +HEAPF32[$1>>2];
  10841. $13 = $7 * $12;
  10842. $14 = ((($1)) + 4|0);
  10843. $15 = +HEAPF32[$14>>2];
  10844. $16 = $9 * $15;
  10845. $17 = $13 + $16;
  10846. $18 = ((($1)) + 8|0);
  10847. $19 = +HEAPF32[$18>>2];
  10848. $20 = $11 * $19;
  10849. $21 = $17 + $20;
  10850. $22 = -$21;
  10851. $23 = +HEAPF32[$6>>2];
  10852. $24 = ((($6)) + 4|0);
  10853. $25 = +HEAPF32[$24>>2];
  10854. $26 = ((($6)) + 8|0);
  10855. $27 = +HEAPF32[$26>>2];
  10856. $28 = $12 * $23;
  10857. $29 = $15 * $25;
  10858. $30 = $28 + $29;
  10859. $31 = $19 * $27;
  10860. $32 = $30 + $31;
  10861. $33 = -$32;
  10862. $34 = +HEAPF32[$4>>2];
  10863. $35 = ((($4)) + 4|0);
  10864. $36 = +HEAPF32[$35>>2];
  10865. $37 = ((($4)) + 8|0);
  10866. $38 = +HEAPF32[$37>>2];
  10867. $39 = $12 * $34;
  10868. $40 = $15 * $36;
  10869. $41 = $39 + $40;
  10870. $42 = $19 * $38;
  10871. $43 = $41 + $42;
  10872. $44 = -$43;
  10873. HEAPF32[$0>>2] = $7;
  10874. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  10875. HEAPF32[$$sroa$4$0$$sroa_idx2>>2] = $23;
  10876. $$sroa$5$0$$sroa_idx4 = ((($0)) + 8|0);
  10877. HEAPF32[$$sroa$5$0$$sroa_idx4>>2] = $34;
  10878. $$sroa$6$0$$sroa_idx6 = ((($0)) + 12|0);
  10879. HEAPF32[$$sroa$6$0$$sroa_idx6>>2] = 0.0;
  10880. $$sroa$7$0$$sroa_idx8 = ((($0)) + 16|0);
  10881. HEAPF32[$$sroa$7$0$$sroa_idx8>>2] = $9;
  10882. $$sroa$8$0$$sroa_idx10 = ((($0)) + 20|0);
  10883. HEAPF32[$$sroa$8$0$$sroa_idx10>>2] = $25;
  10884. $$sroa$9$0$$sroa_idx12 = ((($0)) + 24|0);
  10885. HEAPF32[$$sroa$9$0$$sroa_idx12>>2] = $36;
  10886. $$sroa$10$0$$sroa_idx14 = ((($0)) + 28|0);
  10887. HEAPF32[$$sroa$10$0$$sroa_idx14>>2] = 0.0;
  10888. $$sroa$11$0$$sroa_idx16 = ((($0)) + 32|0);
  10889. HEAPF32[$$sroa$11$0$$sroa_idx16>>2] = $11;
  10890. $$sroa$12$0$$sroa_idx18 = ((($0)) + 36|0);
  10891. HEAPF32[$$sroa$12$0$$sroa_idx18>>2] = $27;
  10892. $$sroa$13$0$$sroa_idx20 = ((($0)) + 40|0);
  10893. HEAPF32[$$sroa$13$0$$sroa_idx20>>2] = $38;
  10894. $$sroa$14$0$$sroa_idx22 = ((($0)) + 44|0);
  10895. HEAPF32[$$sroa$14$0$$sroa_idx22>>2] = 0.0;
  10896. $$sroa$15$0$$sroa_idx24 = ((($0)) + 48|0);
  10897. HEAPF32[$$sroa$15$0$$sroa_idx24>>2] = $22;
  10898. $$sroa$16$0$$sroa_idx26 = ((($0)) + 52|0);
  10899. HEAPF32[$$sroa$16$0$$sroa_idx26>>2] = $33;
  10900. $$sroa$17$0$$sroa_idx28 = ((($0)) + 56|0);
  10901. HEAPF32[$$sroa$17$0$$sroa_idx28>>2] = $44;
  10902. $$sroa$18$0$$sroa_idx30 = ((($0)) + 60|0);
  10903. HEAPF32[$$sroa$18$0$$sroa_idx30>>2] = 1.0;
  10904. STACKTOP = sp;return;
  10905. }
  10906. function _ProcessGestureEvent($0) {
  10907. $0 = $0|0;
  10908. 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;
  10909. 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;
  10910. 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;
  10911. 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;
  10912. 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;
  10913. 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;
  10914. 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;
  10915. 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;
  10916. 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;
  10917. var $moveDownPosition2$byval_copy12 = 0, $or$cond = 0, $or$cond3 = 0, $or$cond5 = 0, $or$cond7 = 0, $or$cond9 = 0, label = 0, sp = 0;
  10918. sp = STACKTOP;
  10919. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  10920. $moveDownPosition2$byval_copy12 = sp + 8|0;
  10921. $moveDownPosition$byval_copy11 = sp;
  10922. $1 = ((($0)) + 4|0);
  10923. $2 = HEAP32[$1>>2]|0;
  10924. HEAP32[4803] = $2;
  10925. $3 = ($2|0)<(2);
  10926. $4 = HEAP32[$0>>2]|0;
  10927. $5 = ($4|0)==(1);
  10928. if (!($3)) {
  10929. if ($5) {
  10930. $88 = ((($0)) + 24|0);
  10931. $89 = $88;
  10932. $90 = $89;
  10933. $91 = HEAP32[$90>>2]|0;
  10934. $92 = (($89) + 4)|0;
  10935. $93 = $92;
  10936. $94 = HEAP32[$93>>2]|0;
  10937. $95 = 18520;
  10938. $96 = $95;
  10939. HEAP32[$96>>2] = $91;
  10940. $97 = (($95) + 4)|0;
  10941. $98 = $97;
  10942. HEAP32[$98>>2] = $94;
  10943. $99 = ((($0)) + 32|0);
  10944. $100 = $99;
  10945. $101 = $100;
  10946. $102 = HEAP32[$101>>2]|0;
  10947. $103 = (($100) + 4)|0;
  10948. $104 = $103;
  10949. $105 = HEAP32[$104>>2]|0;
  10950. $106 = 18560;
  10951. $107 = $106;
  10952. HEAP32[$107>>2] = $102;
  10953. $108 = (($106) + 4)|0;
  10954. $109 = $108;
  10955. HEAP32[$109>>2] = $105;
  10956. $110 = +HEAPF32[4640];
  10957. $111 = +HEAPF32[4630];
  10958. $112 = $110 - $111;
  10959. HEAPF32[4642] = $112;
  10960. $113 = +HEAPF32[(18564)>>2];
  10961. $114 = +HEAPF32[(18524)>>2];
  10962. $115 = $113 - $114;
  10963. HEAPF32[(18572)>>2] = $115;
  10964. HEAP32[4802] = 4;
  10965. STACKTOP = sp;return;
  10966. }
  10967. switch ($4|0) {
  10968. case 2: {
  10969. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[18552>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[18552+4>>2]|0;
  10970. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[18576>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[18576+4>>2]|0;
  10971. $116 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  10972. HEAPF32[4808] = $116;
  10973. $117 = 18552;
  10974. $118 = $117;
  10975. $119 = HEAP32[$118>>2]|0;
  10976. $120 = (($117) + 4)|0;
  10977. $121 = $120;
  10978. $122 = HEAP32[$121>>2]|0;
  10979. $123 = 18520;
  10980. $124 = $123;
  10981. HEAP32[$124>>2] = $119;
  10982. $125 = (($123) + 4)|0;
  10983. $126 = $125;
  10984. HEAP32[$126>>2] = $122;
  10985. $127 = 18576;
  10986. $128 = $127;
  10987. $129 = HEAP32[$128>>2]|0;
  10988. $130 = (($127) + 4)|0;
  10989. $131 = $130;
  10990. $132 = HEAP32[$131>>2]|0;
  10991. $133 = 18560;
  10992. $134 = $133;
  10993. HEAP32[$134>>2] = $129;
  10994. $135 = (($133) + 4)|0;
  10995. $136 = $135;
  10996. HEAP32[$136>>2] = $132;
  10997. $137 = ((($0)) + 24|0);
  10998. $138 = $137;
  10999. $139 = $138;
  11000. $140 = HEAP32[$139>>2]|0;
  11001. $141 = (($138) + 4)|0;
  11002. $142 = $141;
  11003. $143 = HEAP32[$142>>2]|0;
  11004. $144 = 18552;
  11005. $145 = $144;
  11006. HEAP32[$145>>2] = $140;
  11007. $146 = (($144) + 4)|0;
  11008. $147 = $146;
  11009. HEAP32[$147>>2] = $143;
  11010. $148 = ((($0)) + 32|0);
  11011. $149 = $148;
  11012. $150 = $149;
  11013. $151 = HEAP32[$150>>2]|0;
  11014. $152 = (($149) + 4)|0;
  11015. $153 = $152;
  11016. $154 = HEAP32[$153>>2]|0;
  11017. $155 = 18576;
  11018. $156 = $155;
  11019. HEAP32[$156>>2] = $151;
  11020. $157 = (($155) + 4)|0;
  11021. $158 = $157;
  11022. HEAP32[$158>>2] = $154;
  11023. $159 = +HEAPF32[4644];
  11024. $160 = +HEAPF32[4638];
  11025. $161 = $159 - $160;
  11026. HEAPF32[4642] = $161;
  11027. $162 = +HEAPF32[(18580)>>2];
  11028. $163 = +HEAPF32[(18556)>>2];
  11029. $164 = $162 - $163;
  11030. HEAPF32[(18572)>>2] = $164;
  11031. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[18520>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[18520+4>>2]|0;
  11032. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[18552>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[18552+4>>2]|0;
  11033. $165 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  11034. $166 = !($165 >= 0.004999999888241291);
  11035. if ($166) {
  11036. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[18560>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[18560+4>>2]|0;
  11037. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[18576>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[18576+4>>2]|0;
  11038. $167 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  11039. $168 = !($167 >= 0.004999999888241291);
  11040. if ($168) {
  11041. $$sink16 = 4;
  11042. } else {
  11043. label = 29;
  11044. }
  11045. } else {
  11046. label = 29;
  11047. }
  11048. if ((label|0) == 29) {
  11049. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[18552>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[18552+4>>2]|0;
  11050. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[18576>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[18576+4>>2]|0;
  11051. $169 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  11052. $170 = +HEAPF32[4808];
  11053. $171 = $169 - $170;
  11054. $172 = $171 < 0.0;
  11055. $$sink11 = $172 ? 256 : 512;
  11056. $$sink16 = $$sink11;
  11057. }
  11058. HEAP32[4802] = $$sink16;
  11059. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[18552>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[18552+4>>2]|0;
  11060. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[18576>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[18576+4>>2]|0;
  11061. $173 = (+_Vector2Angle($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  11062. $174 = 360.0 - $173;
  11063. HEAPF32[4809] = $174;
  11064. STACKTOP = sp;return;
  11065. break;
  11066. }
  11067. case 0: {
  11068. HEAPF32[4808] = 0.0;
  11069. HEAPF32[4809] = 0.0;
  11070. HEAPF32[4642] = 0.0;
  11071. HEAPF32[(18572)>>2] = 0.0;
  11072. HEAP32[4803] = 0;
  11073. HEAP32[4802] = 0;
  11074. STACKTOP = sp;return;
  11075. break;
  11076. }
  11077. default: {
  11078. STACKTOP = sp;return;
  11079. }
  11080. }
  11081. }
  11082. if ($5) {
  11083. $6 = HEAP32[4804]|0;
  11084. $7 = (($6) + 1)|0;
  11085. HEAP32[4804] = $7;
  11086. $8 = HEAP32[4802]|0;
  11087. $9 = ($8|0)==(0);
  11088. $10 = ($6|0)>(0);
  11089. $or$cond = $10 & $9;
  11090. if ($or$cond) {
  11091. $11 = ((($0)) + 24|0);
  11092. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[18520>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[18520+4>>2]|0;
  11093. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[$11>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[$11+4>>2]|0;
  11094. $12 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  11095. $13 = $12 < 0.029999999329447746;
  11096. if ($13) {
  11097. HEAP32[4802] = 2;
  11098. HEAP32[4804] = 0;
  11099. } else {
  11100. label = 6;
  11101. }
  11102. } else {
  11103. label = 6;
  11104. }
  11105. if ((label|0) == 6) {
  11106. HEAP32[4804] = 1;
  11107. HEAP32[4802] = 1;
  11108. }
  11109. $14 = ((($0)) + 24|0);
  11110. $15 = $14;
  11111. $16 = $15;
  11112. $17 = HEAP32[$16>>2]|0;
  11113. $18 = (($15) + 4)|0;
  11114. $19 = $18;
  11115. $20 = HEAP32[$19>>2]|0;
  11116. $21 = 18520;
  11117. $22 = $21;
  11118. HEAP32[$22>>2] = $17;
  11119. $23 = (($21) + 4)|0;
  11120. $24 = $23;
  11121. HEAP32[$24>>2] = $20;
  11122. $25 = 18528;
  11123. $26 = $25;
  11124. HEAP32[$26>>2] = $17;
  11125. $27 = (($25) + 4)|0;
  11126. $28 = $27;
  11127. HEAP32[$28>>2] = $20;
  11128. $29 = 18536;
  11129. $30 = $29;
  11130. HEAP32[$30>>2] = $17;
  11131. $31 = (($29) + 4)|0;
  11132. $32 = $31;
  11133. HEAP32[$32>>2] = $20;
  11134. $33 = ((($0)) + 8|0);
  11135. $34 = HEAP32[$33>>2]|0;
  11136. HEAP32[14] = $34;
  11137. HEAPF32[4636] = 0.0;
  11138. HEAPF32[(18548)>>2] = 0.0;
  11139. STACKTOP = sp;return;
  11140. }
  11141. switch ($4|0) {
  11142. case 0: {
  11143. $35 = HEAP32[4802]|0;
  11144. $36 = ($35|0)==(8);
  11145. if ($36) {
  11146. $37 = ((($0)) + 24|0);
  11147. $38 = $37;
  11148. $39 = $38;
  11149. $40 = HEAP32[$39>>2]|0;
  11150. $41 = (($38) + 4)|0;
  11151. $42 = $41;
  11152. $43 = HEAP32[$42>>2]|0;
  11153. $44 = 18536;
  11154. $45 = $44;
  11155. HEAP32[$45>>2] = $40;
  11156. $46 = (($44) + 4)|0;
  11157. $47 = $46;
  11158. HEAP32[$47>>2] = $43;
  11159. }
  11160. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[18520>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[18520+4>>2]|0;
  11161. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[18536>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[18536+4>>2]|0;
  11162. $48 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  11163. $49 = $48 / 0.0;
  11164. HEAPF32[4805] = $49;
  11165. HEAP32[4806] = 0;
  11166. $50 = $49 > 5.0000002374872565E-4;
  11167. if ($50) {
  11168. $51 = HEAP32[14]|0;
  11169. $52 = ((($0)) + 8|0);
  11170. $53 = HEAP32[$52>>2]|0;
  11171. $54 = ($51|0)==($53|0);
  11172. if ($54) {
  11173. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[18520>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[18520+4>>2]|0;
  11174. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[18536>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[18536+4>>2]|0;
  11175. $55 = (+_Vector2Angle($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  11176. $56 = 360.0 - $55;
  11177. HEAPF32[4807] = $56;
  11178. $57 = $56 < 30.0;
  11179. $58 = $56 > 330.0;
  11180. $or$cond3 = $57 | $58;
  11181. if ($or$cond3) {
  11182. $$sink10 = 16;
  11183. } else {
  11184. $59 = $56 > 30.0;
  11185. $60 = $56 < 120.0;
  11186. $or$cond5 = $59 & $60;
  11187. if ($or$cond5) {
  11188. $$sink10 = 64;
  11189. } else {
  11190. $61 = $56 > 120.0;
  11191. $62 = $56 < 210.0;
  11192. $or$cond7 = $61 & $62;
  11193. $63 = $56 > 210.0;
  11194. $64 = $56 < 300.0;
  11195. $or$cond9 = $63 & $64;
  11196. $$sink = $or$cond9 ? 128 : 0;
  11197. $$$sink = $or$cond7 ? 32 : $$sink;
  11198. $$sink10 = $$$sink;
  11199. }
  11200. }
  11201. } else {
  11202. label = 16;
  11203. }
  11204. } else {
  11205. label = 16;
  11206. }
  11207. if ((label|0) == 16) {
  11208. HEAPF32[4805] = 0.0;
  11209. HEAPF32[4807] = 0.0;
  11210. $$sink10 = 0;
  11211. }
  11212. HEAP32[4802] = $$sink10;
  11213. HEAPF32[4632] = 0.0;
  11214. HEAPF32[(18532)>>2] = 0.0;
  11215. HEAP32[4803] = 0;
  11216. STACKTOP = sp;return;
  11217. break;
  11218. }
  11219. case 2: {
  11220. $65 = HEAP32[4806]|0;
  11221. $66 = ($65|0)==(0);
  11222. if ($66) {
  11223. HEAP32[4806] = 1;
  11224. }
  11225. $67 = ((($0)) + 24|0);
  11226. $68 = $67;
  11227. $69 = $68;
  11228. $70 = HEAP32[$69>>2]|0;
  11229. $71 = (($68) + 4)|0;
  11230. $72 = $71;
  11231. $73 = HEAP32[$72>>2]|0;
  11232. $74 = 18552;
  11233. $75 = $74;
  11234. HEAP32[$75>>2] = $70;
  11235. $76 = (($74) + 4)|0;
  11236. $77 = $76;
  11237. HEAP32[$77>>2] = $73;
  11238. $78 = HEAP32[4802]|0;
  11239. $79 = ($78|0)==(4);
  11240. if ($79) {
  11241. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[18520>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[18520+4>>2]|0;
  11242. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[18552>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[18552+4>>2]|0;
  11243. $80 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  11244. $81 = !($80 >= 0.014999999664723873);
  11245. if (!($81)) {
  11246. HEAP32[4802] = 8;
  11247. }
  11248. }
  11249. $82 = +HEAPF32[4638];
  11250. $83 = +HEAPF32[4632];
  11251. $84 = $82 - $83;
  11252. HEAPF32[4636] = $84;
  11253. $85 = +HEAPF32[(18556)>>2];
  11254. $86 = +HEAPF32[(18532)>>2];
  11255. $87 = $85 - $86;
  11256. HEAPF32[(18548)>>2] = $87;
  11257. STACKTOP = sp;return;
  11258. break;
  11259. }
  11260. default: {
  11261. STACKTOP = sp;return;
  11262. }
  11263. }
  11264. }
  11265. function _UpdateGestures() {
  11266. 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;
  11267. sp = STACKTOP;
  11268. $0 = HEAP32[4802]|0;
  11269. $$off = (($0) + -1)|0;
  11270. $1 = ($$off>>>0)<(2);
  11271. $2 = HEAP32[4803]|0;
  11272. $3 = ($2|0)<(2);
  11273. $or$cond3 = $1 & $3;
  11274. if ($or$cond3) {
  11275. HEAP32[4802] = 4;
  11276. }
  11277. $4 = HEAP32[4802]|0;
  11278. $5 = (($4) + -16)|0;
  11279. $6 = $5 >>> 4;
  11280. $7 = $5 << 28;
  11281. $8 = $6 | $7;
  11282. switch ($8|0) {
  11283. case 0: case 1: case 3: case 7: {
  11284. break;
  11285. }
  11286. default: {
  11287. return;
  11288. }
  11289. }
  11290. HEAP32[4802] = 0;
  11291. return;
  11292. }
  11293. function _SetCameraMode($0,$1) {
  11294. $0 = $0|0;
  11295. $1 = $1|0;
  11296. 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;
  11297. 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;
  11298. sp = STACKTOP;
  11299. $$sroa$030$0$copyload = +HEAPF32[$0>>2];
  11300. $$sroa$432$0$$sroa_idx33 = ((($0)) + 4|0);
  11301. $$sroa$432$0$copyload = +HEAPF32[$$sroa$432$0$$sroa_idx33>>2];
  11302. $$sroa$535$0$$sroa_idx36 = ((($0)) + 8|0);
  11303. $$sroa$535$0$copyload = +HEAPF32[$$sroa$535$0$$sroa_idx36>>2];
  11304. $$sroa$023$0$$sroa_idx = ((($0)) + 12|0);
  11305. $$sroa$023$0$copyload = +HEAPF32[$$sroa$023$0$$sroa_idx>>2];
  11306. $$sroa$4$0$$sroa_idx25 = ((($0)) + 16|0);
  11307. $$sroa$4$0$copyload = +HEAPF32[$$sroa$4$0$$sroa_idx25>>2];
  11308. $$sroa$527$0$$sroa_idx28 = ((($0)) + 20|0);
  11309. $$sroa$527$0$copyload = +HEAPF32[$$sroa$527$0$$sroa_idx28>>2];
  11310. $2 = $$sroa$023$0$copyload - $$sroa$030$0$copyload;
  11311. $3 = $$sroa$4$0$copyload - $$sroa$432$0$copyload;
  11312. $4 = $$sroa$527$0$copyload - $$sroa$535$0$copyload;
  11313. $5 = $2 * $2;
  11314. $6 = $3 * $3;
  11315. $7 = $5 + $6;
  11316. $8 = $4 * $4;
  11317. $9 = $7 + $8;
  11318. $10 = (+Math_sqrt((+$9)));
  11319. HEAPF32[4810] = $10;
  11320. $11 = $5 + $8;
  11321. $12 = (+Math_sqrt((+$11)));
  11322. $13 = (+Math_sqrt((+$7)));
  11323. $14 = (+Math_abs((+$2)));
  11324. $15 = $14 / $12;
  11325. $16 = (+Math_asin((+$15)));
  11326. HEAPF32[4811] = $16;
  11327. $17 = (+Math_abs((+$3)));
  11328. $18 = $17 / $13;
  11329. $19 = (+Math_asin((+$18)));
  11330. $20 = -$19;
  11331. HEAPF32[4812] = $20;
  11332. $21 = HEAP32[$$sroa$432$0$$sroa_idx33>>2]|0;
  11333. HEAP32[15] = $21;
  11334. HEAP32[4813] = $1;
  11335. return;
  11336. }
  11337. function _UpdateCamera($0) {
  11338. $0 = $0|0;
  11339. 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;
  11340. 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;
  11341. 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;
  11342. 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;
  11343. 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;
  11344. 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;
  11345. 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;
  11346. 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;
  11347. 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;
  11348. 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;
  11349. 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;
  11350. 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;
  11351. 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;
  11352. 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;
  11353. 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;
  11354. 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;
  11355. 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;
  11356. 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;
  11357. 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;
  11358. 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;
  11359. 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;
  11360. 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;
  11361. var $or$cond5 = 0, $or$cond7 = 0, $or$cond9 = 0, $storemerge = 0.0, label = 0, sp = 0;
  11362. sp = STACKTOP;
  11363. STACKTOP = STACKTOP + 80|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(80|0);
  11364. $$byval_copy3 = sp + 72|0;
  11365. $1 = sp + 56|0;
  11366. $2 = sp + 16|0;
  11367. $3 = sp + 64|0;
  11368. $4 = sp + 48|0;
  11369. $5 = sp + 40|0;
  11370. $6 = sp + 8|0;
  11371. $7 = sp;
  11372. _GetMousePosition($1);
  11373. $8 = (_GetMouseWheelMove()|0);
  11374. $9 = HEAP32[16]|0;
  11375. $10 = (_IsMouseButtonDown($9)|0);
  11376. $11 = HEAP32[17]|0;
  11377. $12 = (_IsKeyDown($11)|0);
  11378. $13 = HEAP32[18]|0;
  11379. $14 = (_IsKeyDown($13)|0);
  11380. $15 = HEAP32[19]|0;
  11381. $16 = (_IsKeyDown($15)|0);
  11382. HEAP32[$2>>2] = $16;
  11383. $17 = ((($2)) + 4|0);
  11384. $18 = HEAP32[20]|0;
  11385. $19 = (_IsKeyDown($18)|0);
  11386. HEAP32[$17>>2] = $19;
  11387. $20 = ((($2)) + 8|0);
  11388. $21 = HEAP32[21]|0;
  11389. $22 = (_IsKeyDown($21)|0);
  11390. HEAP32[$20>>2] = $22;
  11391. $23 = ((($2)) + 12|0);
  11392. $24 = HEAP32[22]|0;
  11393. $25 = (_IsKeyDown($24)|0);
  11394. HEAP32[$23>>2] = $25;
  11395. $26 = ((($2)) + 16|0);
  11396. $27 = HEAP32[23]|0;
  11397. $28 = (_IsKeyDown($27)|0);
  11398. HEAP32[$26>>2] = $28;
  11399. $29 = ((($2)) + 20|0);
  11400. $30 = HEAP32[24]|0;
  11401. $31 = (_IsKeyDown($30)|0);
  11402. HEAP32[$29>>2] = $31;
  11403. $32 = HEAP32[4813]|0;
  11404. $33 = ($32|0)==(0);
  11405. L1: do {
  11406. if ($33) {
  11407. label = 58;
  11408. } else {
  11409. $34 = (_GetScreenWidth()|0);
  11410. $35 = (_GetScreenHeight()|0);
  11411. $$off187 = (($32) + -3)|0;
  11412. $36 = ($$off187>>>0)<(2);
  11413. do {
  11414. if ($36) {
  11415. _HideCursor();
  11416. $37 = +HEAPF32[$1>>2];
  11417. $38 = (+($35|0));
  11418. $39 = $38 / 3.0;
  11419. $40 = $37 < $39;
  11420. $41 = ((($1)) + 4|0);
  11421. $42 = +HEAPF32[$41>>2];
  11422. if ($40) {
  11423. $43 = (($35|0) / 3)&-1;
  11424. $44 = (($34) - ($43))|0;
  11425. $45 = (+($44|0));
  11426. HEAPF32[$3>>2] = $45;
  11427. $46 = ((($3)) + 4|0);
  11428. HEAPF32[$46>>2] = $42;
  11429. ;HEAP32[$$byval_copy3>>2]=HEAP32[$3>>2]|0;HEAP32[$$byval_copy3+4>>2]=HEAP32[$3+4>>2]|0;
  11430. _SetMousePosition($$byval_copy3);
  11431. $$sroa$095$0 = 0.0;$$sroa$9$0 = 0.0;
  11432. break;
  11433. }
  11434. $47 = $42 < $39;
  11435. if ($47) {
  11436. HEAPF32[$4>>2] = $37;
  11437. $48 = ((($4)) + 4|0);
  11438. $49 = (($35|0) / 3)&-1;
  11439. $50 = (($35) - ($49))|0;
  11440. $51 = (+($50|0));
  11441. HEAPF32[$48>>2] = $51;
  11442. ;HEAP32[$$byval_copy3>>2]=HEAP32[$4>>2]|0;HEAP32[$$byval_copy3+4>>2]=HEAP32[$4+4>>2]|0;
  11443. _SetMousePosition($$byval_copy3);
  11444. $$sroa$095$0 = 0.0;$$sroa$9$0 = 0.0;
  11445. break;
  11446. }
  11447. $52 = (+($34|0));
  11448. $53 = $52 - $39;
  11449. $54 = $37 > $53;
  11450. if ($54) {
  11451. $55 = (($35|0) / 3)&-1;
  11452. $56 = (+($55|0));
  11453. HEAPF32[$5>>2] = $56;
  11454. $57 = ((($5)) + 4|0);
  11455. $58 = HEAP32[$41>>2]|0;
  11456. HEAP32[$57>>2] = $58;
  11457. ;HEAP32[$$byval_copy3>>2]=HEAP32[$5>>2]|0;HEAP32[$$byval_copy3+4>>2]=HEAP32[$5+4>>2]|0;
  11458. _SetMousePosition($$byval_copy3);
  11459. $$sroa$095$0 = 0.0;$$sroa$9$0 = 0.0;
  11460. break;
  11461. }
  11462. $59 = $38 - $39;
  11463. $60 = $42 > $59;
  11464. if ($60) {
  11465. HEAPF32[$6>>2] = $37;
  11466. $61 = ((($6)) + 4|0);
  11467. $62 = (($35|0) / 3)&-1;
  11468. $63 = (+($62|0));
  11469. HEAPF32[$61>>2] = $63;
  11470. ;HEAP32[$$byval_copy3>>2]=HEAP32[$6>>2]|0;HEAP32[$$byval_copy3+4>>2]=HEAP32[$6+4>>2]|0;
  11471. _SetMousePosition($$byval_copy3);
  11472. $$sroa$095$0 = 0.0;$$sroa$9$0 = 0.0;
  11473. break;
  11474. } else {
  11475. $64 = +HEAPF32[4646];
  11476. $65 = $37 - $64;
  11477. $66 = +HEAPF32[(18588)>>2];
  11478. $67 = $42 - $66;
  11479. $$sroa$095$0 = $65;$$sroa$9$0 = $67;
  11480. break;
  11481. }
  11482. } else {
  11483. _ShowCursor();
  11484. $68 = +HEAPF32[$1>>2];
  11485. $69 = +HEAPF32[4646];
  11486. $70 = $68 - $69;
  11487. $71 = ((($1)) + 4|0);
  11488. $72 = +HEAPF32[$71>>2];
  11489. $73 = +HEAPF32[(18588)>>2];
  11490. $74 = $72 - $73;
  11491. $$sroa$095$0 = $70;$$sroa$9$0 = $74;
  11492. }
  11493. } while(0);
  11494. _GetMousePosition($7);
  11495. $75 = $7;
  11496. $76 = $75;
  11497. $77 = HEAP32[$76>>2]|0;
  11498. $78 = (($75) + 4)|0;
  11499. $79 = $78;
  11500. $80 = HEAP32[$79>>2]|0;
  11501. $81 = 18584;
  11502. $82 = $81;
  11503. HEAP32[$82>>2] = $77;
  11504. $83 = (($81) + 4)|0;
  11505. $84 = $83;
  11506. HEAP32[$84>>2] = $80;
  11507. $$pr = HEAP32[4813]|0;
  11508. switch ($$pr|0) {
  11509. case 1: {
  11510. $85 = +HEAPF32[4810];
  11511. $86 = $85 < 120.0;
  11512. $87 = ($8|0)<(0);
  11513. $or$cond3 = $87 & $86;
  11514. do {
  11515. if ($or$cond3) {
  11516. $88 = (+($8|0));
  11517. $89 = $88 * 1.5;
  11518. $90 = $85 - $89;
  11519. HEAPF32[4810] = $90;
  11520. $91 = $90 > 120.0;
  11521. if ($91) {
  11522. HEAPF32[4810] = 120.0;
  11523. }
  11524. } else {
  11525. $92 = ((($0)) + 4|0);
  11526. $93 = +HEAPF32[$92>>2];
  11527. $94 = ((($0)) + 12|0);
  11528. $95 = ((($0)) + 16|0);
  11529. $96 = +HEAPF32[$95>>2];
  11530. $97 = $93 > $96;
  11531. $98 = $85 == 120.0;
  11532. $or$cond5 = $98 & $97;
  11533. $or$cond7 = $87 & $or$cond5;
  11534. if ($or$cond7) {
  11535. $99 = (+($8|0));
  11536. $100 = +HEAPF32[$94>>2];
  11537. $101 = +HEAPF32[$0>>2];
  11538. $102 = $100 - $101;
  11539. $103 = $99 * $102;
  11540. $104 = $103 * 1.5;
  11541. $105 = $104 / $85;
  11542. $106 = $100 + $105;
  11543. HEAPF32[$94>>2] = $106;
  11544. $107 = $96 - $93;
  11545. $108 = $99 * $107;
  11546. $109 = $108 * 1.5;
  11547. $110 = $109 / $85;
  11548. $111 = $96 + $110;
  11549. HEAPF32[$95>>2] = $111;
  11550. $112 = ((($0)) + 20|0);
  11551. $113 = +HEAPF32[$112>>2];
  11552. $114 = ((($0)) + 8|0);
  11553. $115 = +HEAPF32[$114>>2];
  11554. $116 = $113 - $115;
  11555. $117 = $99 * $116;
  11556. $118 = $117 * 1.5;
  11557. $119 = $118 / $85;
  11558. $120 = $113 + $119;
  11559. HEAPF32[$112>>2] = $120;
  11560. break;
  11561. }
  11562. $$not = $97 ^ 1;
  11563. $121 = !($96 >= 0.0);
  11564. $or$cond = $121 | $$not;
  11565. if (!($or$cond)) {
  11566. $122 = (+($8|0));
  11567. $123 = +HEAPF32[$94>>2];
  11568. $124 = +HEAPF32[$0>>2];
  11569. $125 = $123 - $124;
  11570. $126 = $122 * $125;
  11571. $127 = $126 * 1.5;
  11572. $128 = $127 / $85;
  11573. $129 = $123 + $128;
  11574. HEAPF32[$94>>2] = $129;
  11575. $130 = $96 - $93;
  11576. $131 = $122 * $130;
  11577. $132 = $131 * 1.5;
  11578. $133 = $132 / $85;
  11579. $134 = $96 + $133;
  11580. HEAPF32[$95>>2] = $134;
  11581. $135 = ((($0)) + 20|0);
  11582. $136 = +HEAPF32[$135>>2];
  11583. $137 = ((($0)) + 8|0);
  11584. $138 = +HEAPF32[$137>>2];
  11585. $139 = $136 - $138;
  11586. $140 = $122 * $139;
  11587. $141 = $140 * 1.5;
  11588. $142 = $141 / $85;
  11589. $143 = $136 + $142;
  11590. HEAPF32[$135>>2] = $143;
  11591. break;
  11592. }
  11593. if ($97) {
  11594. $144 = $96 < 0.0;
  11595. $145 = ($8|0)>(0);
  11596. $or$cond9 = $145 & $144;
  11597. if ($or$cond9) {
  11598. $146 = (+($8|0));
  11599. $147 = $146 * 1.5;
  11600. $148 = $85 - $147;
  11601. HEAPF32[4810] = $148;
  11602. $149 = $148 < 0.30000001192092896;
  11603. if (!($149)) {
  11604. break;
  11605. }
  11606. HEAPF32[4810] = 0.30000001192092896;
  11607. break;
  11608. }
  11609. }
  11610. $150 = $93 < $96;
  11611. $or$cond11 = $98 & $150;
  11612. $or$cond13 = $87 & $or$cond11;
  11613. $151 = +HEAPF32[$95>>2];
  11614. $152 = +HEAPF32[$92>>2];
  11615. if ($or$cond13) {
  11616. $153 = (+($8|0));
  11617. $154 = +HEAPF32[$94>>2];
  11618. $155 = +HEAPF32[$0>>2];
  11619. $156 = $154 - $155;
  11620. $157 = $153 * $156;
  11621. $158 = $157 * 1.5;
  11622. $159 = $158 / $85;
  11623. $160 = $154 + $159;
  11624. HEAPF32[$94>>2] = $160;
  11625. $161 = $151 - $152;
  11626. $162 = $153 * $161;
  11627. $163 = $162 * 1.5;
  11628. $164 = +HEAPF32[4810];
  11629. $165 = $163 / $164;
  11630. $166 = $151 + $165;
  11631. HEAPF32[$95>>2] = $166;
  11632. $167 = ((($0)) + 20|0);
  11633. $168 = +HEAPF32[$167>>2];
  11634. $169 = ((($0)) + 8|0);
  11635. $170 = +HEAPF32[$169>>2];
  11636. $171 = $168 - $170;
  11637. $172 = $153 * $171;
  11638. $173 = $172 * 1.5;
  11639. $174 = $173 / $164;
  11640. $175 = $168 + $174;
  11641. HEAPF32[$167>>2] = $175;
  11642. break;
  11643. }
  11644. $$not188 = $150 ^ 1;
  11645. $176 = !($96 <= 0.0);
  11646. $or$cond189 = $176 | $$not188;
  11647. if (!($or$cond189)) {
  11648. $177 = (+($8|0));
  11649. $178 = +HEAPF32[$94>>2];
  11650. $179 = +HEAPF32[$0>>2];
  11651. $180 = $178 - $179;
  11652. $181 = $177 * $180;
  11653. $182 = $181 * 1.5;
  11654. $183 = $182 / $85;
  11655. $184 = $178 + $183;
  11656. HEAPF32[$94>>2] = $184;
  11657. $185 = $151 - $152;
  11658. $186 = $177 * $185;
  11659. $187 = $186 * 1.5;
  11660. $188 = +HEAPF32[4810];
  11661. $189 = $187 / $188;
  11662. $190 = $151 + $189;
  11663. HEAPF32[$95>>2] = $190;
  11664. $191 = ((($0)) + 20|0);
  11665. $192 = +HEAPF32[$191>>2];
  11666. $193 = ((($0)) + 8|0);
  11667. $194 = +HEAPF32[$193>>2];
  11668. $195 = $192 - $194;
  11669. $196 = $177 * $195;
  11670. $197 = $196 * 1.5;
  11671. $198 = $197 / $188;
  11672. $199 = $192 + $198;
  11673. HEAPF32[$191>>2] = $199;
  11674. break;
  11675. }
  11676. $200 = $152 < $151;
  11677. if ($200) {
  11678. $201 = $151 > 0.0;
  11679. $202 = ($8|0)>(0);
  11680. $or$cond15 = $202 & $201;
  11681. if ($or$cond15) {
  11682. $203 = (+($8|0));
  11683. $204 = $203 * 1.5;
  11684. $205 = +HEAPF32[4810];
  11685. $206 = $205 - $204;
  11686. HEAPF32[4810] = $206;
  11687. $207 = $206 < 0.30000001192092896;
  11688. if ($207) {
  11689. HEAPF32[4810] = 0.30000001192092896;
  11690. }
  11691. }
  11692. }
  11693. }
  11694. } while(0);
  11695. $208 = ($10|0)==(0);
  11696. if ($208) {
  11697. label = 58;
  11698. break L1;
  11699. }
  11700. $209 = ($12|0)==(0);
  11701. if ($209) {
  11702. $222 = $$sroa$095$0 * -0.0099999997764825821;
  11703. $223 = +HEAPF32[4811];
  11704. $224 = (+Math_cos((+$223)));
  11705. $225 = $222 * $224;
  11706. $226 = $$sroa$9$0 * 0.0099999997764825821;
  11707. $227 = (+Math_sin((+$223)));
  11708. $228 = $226 * $227;
  11709. $229 = +HEAPF32[4812];
  11710. $230 = (+Math_sin((+$229)));
  11711. $231 = $228 * $230;
  11712. $232 = $225 + $231;
  11713. $233 = +HEAPF32[4810];
  11714. $234 = $233 / 5.0999999046325684;
  11715. $235 = $232 * $234;
  11716. $236 = ((($0)) + 12|0);
  11717. $237 = +HEAPF32[$236>>2];
  11718. $238 = $237 + $235;
  11719. HEAPF32[$236>>2] = $238;
  11720. $239 = (+Math_cos((+$229)));
  11721. $240 = $226 * $239;
  11722. $241 = $234 * $240;
  11723. $242 = ((($0)) + 16|0);
  11724. $243 = +HEAPF32[$242>>2];
  11725. $244 = $243 + $241;
  11726. HEAPF32[$242>>2] = $244;
  11727. $245 = $$sroa$095$0 * 0.0099999997764825821;
  11728. $246 = $245 * $227;
  11729. $247 = $226 * $224;
  11730. $248 = $247 * $230;
  11731. $249 = $246 + $248;
  11732. $250 = $249 * $234;
  11733. $251 = ((($0)) + 20|0);
  11734. $252 = +HEAPF32[$251>>2];
  11735. $253 = $250 + $252;
  11736. HEAPF32[$251>>2] = $253;
  11737. label = 58;
  11738. break L1;
  11739. }
  11740. $210 = ($14|0)==(0);
  11741. if (!($210)) {
  11742. $211 = $$sroa$9$0 * 0.05000000074505806;
  11743. $212 = +HEAPF32[4810];
  11744. $213 = $211 + $212;
  11745. HEAPF32[4810] = $213;
  11746. label = 58;
  11747. break L1;
  11748. }
  11749. $214 = $$sroa$095$0 * 0.0099999997764825821;
  11750. $215 = +HEAPF32[4811];
  11751. $216 = $215 - $214;
  11752. HEAPF32[4811] = $216;
  11753. $217 = $$sroa$9$0 * 0.0099999997764825821;
  11754. $218 = +HEAPF32[4812];
  11755. $219 = $218 - $217;
  11756. HEAPF32[4812] = $219;
  11757. $220 = $219 > 1.483529806137085;
  11758. if ($220) {
  11759. HEAPF32[4812] = 1.483529806137085;
  11760. label = 58;
  11761. break L1;
  11762. }
  11763. $221 = $219 < -1.483529806137085;
  11764. if (!($221)) {
  11765. label = 58;
  11766. break L1;
  11767. }
  11768. HEAPF32[4812] = -1.483529806137085;
  11769. label = 58;
  11770. break L1;
  11771. break;
  11772. }
  11773. case 2: {
  11774. $254 = +HEAPF32[4811];
  11775. $255 = $254 + 0.0099999997764825821;
  11776. HEAPF32[4811] = $255;
  11777. $256 = (+($8|0));
  11778. $257 = $256 * 1.5;
  11779. $258 = +HEAPF32[4810];
  11780. $259 = $258 - $257;
  11781. HEAPF32[4810] = $259;
  11782. $260 = $259 < 1.2000000476837158;
  11783. if (!($260)) {
  11784. label = 58;
  11785. break L1;
  11786. }
  11787. HEAPF32[4810] = 1.2000000476837158;
  11788. label = 58;
  11789. break L1;
  11790. break;
  11791. }
  11792. case 4: case 3: {
  11793. $264 = +HEAPF32[4811];
  11794. $265 = (+Math_sin((+$264)));
  11795. $266 = HEAP32[$17>>2]|0;
  11796. $267 = (+($266>>>0));
  11797. $268 = $265 * $267;
  11798. $269 = HEAP32[$2>>2]|0;
  11799. $270 = (+($269>>>0));
  11800. $271 = $265 * $270;
  11801. $272 = $268 - $271;
  11802. $273 = (+Math_cos((+$264)));
  11803. $274 = HEAP32[$23>>2]|0;
  11804. $275 = (+($274>>>0));
  11805. $276 = $273 * $275;
  11806. $277 = $272 - $276;
  11807. $278 = HEAP32[$20>>2]|0;
  11808. $279 = (+($278>>>0));
  11809. $280 = $273 * $279;
  11810. $281 = $277 + $280;
  11811. $282 = $281 / 20.0;
  11812. $283 = +HEAPF32[$0>>2];
  11813. $284 = $283 + $282;
  11814. HEAPF32[$0>>2] = $284;
  11815. $285 = +HEAPF32[4812];
  11816. $286 = (+Math_sin((+$285)));
  11817. $287 = $270 * $286;
  11818. $288 = $267 * $286;
  11819. $289 = $287 - $288;
  11820. $290 = HEAP32[$26>>2]|0;
  11821. $291 = (+($290>>>0));
  11822. $292 = $289 + $291;
  11823. $293 = HEAP32[$29>>2]|0;
  11824. $294 = (+($293>>>0));
  11825. $295 = $292 - $294;
  11826. $296 = $295 / 20.0;
  11827. $297 = ((($0)) + 4|0);
  11828. $298 = +HEAPF32[$297>>2];
  11829. $299 = $298 + $296;
  11830. HEAPF32[$297>>2] = $299;
  11831. $300 = $267 * $273;
  11832. $301 = $273 * $270;
  11833. $302 = $300 - $301;
  11834. $303 = $265 * $275;
  11835. $304 = $302 + $303;
  11836. $305 = $265 * $279;
  11837. $306 = $304 - $305;
  11838. $307 = $306 / 20.0;
  11839. $308 = ((($0)) + 8|0);
  11840. $309 = +HEAPF32[$308>>2];
  11841. $310 = $307 + $309;
  11842. HEAPF32[$308>>2] = $310;
  11843. $311 = HEAP32[$2>>2]|0;
  11844. $312 = ($311|0)==(0);
  11845. if ($312) {
  11846. $261 = ((($2)) + 4|0);
  11847. $262 = HEAP32[$261>>2]|0;
  11848. $263 = ($262|0)==(0);
  11849. if ($263) {
  11850. $407 = ((($2)) + 8|0);
  11851. $408 = HEAP32[$407>>2]|0;
  11852. $409 = ($408|0)==(0);
  11853. if ($409) {
  11854. $410 = ((($2)) + 12|0);
  11855. $411 = HEAP32[$410>>2]|0;
  11856. $412 = ($411|0)==(0);
  11857. if ($412) {
  11858. $413 = ((($2)) + 16|0);
  11859. $414 = HEAP32[$413>>2]|0;
  11860. $415 = ($414|0)==(0);
  11861. if ($415) {
  11862. $416 = ((($2)) + 20|0);
  11863. $417 = HEAP32[$416>>2]|0;
  11864. $not$ = ($417|0)!=(0);
  11865. $$ = $not$&1;
  11866. $$0 = $$;
  11867. } else {
  11868. $$0 = 1;
  11869. }
  11870. } else {
  11871. $$0 = 1;
  11872. }
  11873. } else {
  11874. $$0 = 1;
  11875. }
  11876. } else {
  11877. $$0 = 1;
  11878. }
  11879. } else {
  11880. $$0 = 1;
  11881. }
  11882. $313 = $$sroa$095$0 * 0.0030000000260770321;
  11883. $314 = +HEAPF32[4811];
  11884. $315 = $314 - $313;
  11885. HEAPF32[4811] = $315;
  11886. $316 = $$sroa$9$0 * 0.0030000000260770321;
  11887. $317 = +HEAPF32[4812];
  11888. $318 = $317 - $316;
  11889. HEAPF32[4812] = $318;
  11890. $319 = HEAP32[4813]|0;
  11891. $320 = ($319|0)==(4);
  11892. if ($320) {
  11893. $321 = $318 > 0.087266460061073303;
  11894. if ($321) {
  11895. $$sink26 = 0.087266460061073303;
  11896. label = 49;
  11897. } else {
  11898. $322 = $318 < -1.483529806137085;
  11899. if ($322) {
  11900. $$sink26 = -1.483529806137085;
  11901. label = 49;
  11902. }
  11903. }
  11904. if ((label|0) == 49) {
  11905. HEAPF32[4812] = $$sink26;
  11906. }
  11907. $323 = (+($8|0));
  11908. $324 = $323 * 1.5;
  11909. $325 = +HEAPF32[4810];
  11910. $326 = $325 - $324;
  11911. $327 = $326 < 1.2000000476837158;
  11912. $storemerge = $327 ? 1.2000000476837158 : $326;
  11913. HEAPF32[4810] = $storemerge;
  11914. $328 = +HEAPF32[$0>>2];
  11915. $329 = +HEAPF32[4811];
  11916. $330 = (+Math_cos((+$329)));
  11917. $331 = $330 * 0.40000000596046448;
  11918. $332 = $328 + $331;
  11919. $333 = (+Math_sin((+$329)));
  11920. $334 = $333 * 0.0;
  11921. $335 = $332 + $334;
  11922. $336 = ((($0)) + 12|0);
  11923. HEAPF32[$336>>2] = $335;
  11924. $337 = +HEAPF32[$297>>2];
  11925. $338 = $337 + 0.0;
  11926. $339 = ((($0)) + 16|0);
  11927. HEAPF32[$339>>2] = $338;
  11928. $340 = +HEAPF32[$308>>2];
  11929. $341 = $334 + $340;
  11930. $342 = $333 * 0.40000000596046448;
  11931. $343 = $341 - $342;
  11932. $$sink = $343;$$sink17 = $336;
  11933. } else {
  11934. $344 = $318 > 1.483529806137085;
  11935. if ($344) {
  11936. $$sink28 = 1.483529806137085;
  11937. label = 53;
  11938. } else {
  11939. $345 = $318 < -1.483529806137085;
  11940. if ($345) {
  11941. $$sink28 = -1.483529806137085;
  11942. label = 53;
  11943. }
  11944. }
  11945. if ((label|0) == 53) {
  11946. HEAPF32[4812] = $$sink28;
  11947. }
  11948. $346 = +HEAPF32[$0>>2];
  11949. $347 = +HEAPF32[4811];
  11950. $348 = (+Math_sin((+$347)));
  11951. $349 = $348 * 25.0;
  11952. $350 = $346 - $349;
  11953. $351 = ((($0)) + 12|0);
  11954. HEAPF32[$351>>2] = $350;
  11955. $352 = +HEAPF32[$297>>2];
  11956. $353 = +HEAPF32[4812];
  11957. $354 = (+Math_sin((+$353)));
  11958. $355 = $354 * 25.0;
  11959. $356 = $352 + $355;
  11960. $357 = ((($0)) + 16|0);
  11961. HEAPF32[$357>>2] = $356;
  11962. $358 = +HEAPF32[$308>>2];
  11963. $359 = (+Math_cos((+$347)));
  11964. $360 = $359 * 25.0;
  11965. $361 = $358 - $360;
  11966. $362 = ((($0)) + 20|0);
  11967. HEAPF32[$362>>2] = $361;
  11968. $363 = ($$0|0)==(0);
  11969. if (!($363)) {
  11970. $364 = HEAP32[4814]|0;
  11971. $365 = (($364) + 1)|0;
  11972. HEAP32[4814] = $365;
  11973. }
  11974. $366 = +HEAPF32[15];
  11975. $367 = HEAP32[4814]|0;
  11976. $368 = (+($367|0));
  11977. $369 = $368 / 5.0;
  11978. $370 = (+Math_sin((+$369)));
  11979. $371 = $370 / 30.0;
  11980. $372 = $366 - $371;
  11981. HEAPF32[$297>>2] = $372;
  11982. $373 = $368 / 10.0;
  11983. $374 = (+Math_sin((+$373)));
  11984. $375 = $374 / 200.0;
  11985. $376 = ((($0)) + 24|0);
  11986. HEAPF32[$376>>2] = $375;
  11987. $377 = -$374;
  11988. $378 = $377 / 200.0;
  11989. $$sink = $378;$$sink17 = $376;
  11990. }
  11991. $379 = ((($$sink17)) + 8|0);
  11992. HEAPF32[$379>>2] = $$sink;
  11993. label = 58;
  11994. break L1;
  11995. break;
  11996. }
  11997. default: {
  11998. $380 = $$pr;
  11999. break L1;
  12000. }
  12001. }
  12002. }
  12003. } while(0);
  12004. if ((label|0) == 58) {
  12005. $$pr190 = HEAP32[4813]|0;
  12006. $380 = $$pr190;
  12007. }
  12008. switch ($380|0) {
  12009. case 1: case 2: case 4: {
  12010. break;
  12011. }
  12012. default: {
  12013. STACKTOP = sp;return;
  12014. }
  12015. }
  12016. $381 = +HEAPF32[4811];
  12017. $382 = (+Math_sin((+$381)));
  12018. $383 = +HEAPF32[4810];
  12019. $384 = $382 * $383;
  12020. $385 = +HEAPF32[4812];
  12021. $386 = (+Math_cos((+$385)));
  12022. $387 = $384 * $386;
  12023. $388 = ((($0)) + 12|0);
  12024. $389 = +HEAPF32[$388>>2];
  12025. $390 = $387 + $389;
  12026. HEAPF32[$0>>2] = $390;
  12027. $391 = !($385 <= 0.0);
  12028. $392 = (+Math_sin((+$385)));
  12029. $393 = +HEAPF32[4810];
  12030. $394 = ((($0)) + 16|0);
  12031. $395 = +HEAPF32[$394>>2];
  12032. $396 = $392 * $393;
  12033. $397 = $392 * $396;
  12034. $398 = -$397;
  12035. $$sink22$p = $391 ? $398 : $397;
  12036. $$sink22 = $395 + $$sink22$p;
  12037. $399 = ((($0)) + 4|0);
  12038. HEAPF32[$399>>2] = $$sink22;
  12039. $400 = (+Math_cos((+$381)));
  12040. $401 = $393 * $400;
  12041. $402 = $386 * $401;
  12042. $403 = ((($0)) + 20|0);
  12043. $404 = +HEAPF32[$403>>2];
  12044. $405 = $404 + $402;
  12045. $406 = ((($0)) + 8|0);
  12046. HEAPF32[$406>>2] = $405;
  12047. STACKTOP = sp;return;
  12048. }
  12049. function _GetMousePosition($0) {
  12050. $0 = $0|0;
  12051. 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;
  12052. sp = STACKTOP;
  12053. $1 = 18592;
  12054. $2 = $1;
  12055. $3 = HEAP32[$2>>2]|0;
  12056. $4 = (($1) + 4)|0;
  12057. $5 = $4;
  12058. $6 = HEAP32[$5>>2]|0;
  12059. $7 = $0;
  12060. $8 = $7;
  12061. HEAP32[$8>>2] = $3;
  12062. $9 = (($7) + 4)|0;
  12063. $10 = $9;
  12064. HEAP32[$10>>2] = $6;
  12065. return;
  12066. }
  12067. function _GetMouseWheelMove() {
  12068. var $0 = 0, $1 = 0, label = 0, sp = 0;
  12069. sp = STACKTOP;
  12070. $0 = HEAP32[4819]|0;
  12071. $1 = (($0|0) / 100)&-1;
  12072. return ($1|0);
  12073. }
  12074. function _IsMouseButtonDown($0) {
  12075. $0 = $0|0;
  12076. var $$ = 0, $1 = 0, $2 = 0, label = 0, sp = 0;
  12077. sp = STACKTOP;
  12078. $1 = (_GetMouseButtonStatus($0)|0);
  12079. $2 = ($1|0)==(1);
  12080. $$ = $2&1;
  12081. return ($$|0);
  12082. }
  12083. function _IsKeyDown($0) {
  12084. $0 = $0|0;
  12085. var $$ = 0, $1 = 0, $2 = 0, label = 0, sp = 0;
  12086. sp = STACKTOP;
  12087. $1 = (_GetKeyStatus($0)|0);
  12088. $2 = ($1|0)==(1);
  12089. $$ = $2&1;
  12090. return ($$|0);
  12091. }
  12092. function _GetScreenWidth() {
  12093. var $0 = 0, label = 0, sp = 0;
  12094. sp = STACKTOP;
  12095. $0 = HEAP32[4818]|0;
  12096. return ($0|0);
  12097. }
  12098. function _GetScreenHeight() {
  12099. var $0 = 0, label = 0, sp = 0;
  12100. sp = STACKTOP;
  12101. $0 = HEAP32[4817]|0;
  12102. return ($0|0);
  12103. }
  12104. function _HideCursor() {
  12105. var label = 0, sp = 0;
  12106. sp = STACKTOP;
  12107. HEAP32[4815] = 1;
  12108. return;
  12109. }
  12110. function _SetMousePosition($0) {
  12111. $0 = $0|0;
  12112. 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;
  12113. sp = STACKTOP;
  12114. $1 = $0;
  12115. $2 = $1;
  12116. $3 = HEAP32[$2>>2]|0;
  12117. $4 = (($1) + 4)|0;
  12118. $5 = $4;
  12119. $6 = HEAP32[$5>>2]|0;
  12120. $7 = 18592;
  12121. $8 = $7;
  12122. HEAP32[$8>>2] = $3;
  12123. $9 = (($7) + 4)|0;
  12124. $10 = $9;
  12125. HEAP32[$10>>2] = $6;
  12126. $11 = HEAP32[4816]|0;
  12127. $12 = +HEAPF32[$0>>2];
  12128. $13 = $12;
  12129. $14 = ((($0)) + 4|0);
  12130. $15 = +HEAPF32[$14>>2];
  12131. $16 = $15;
  12132. _glfwSetCursorPos(($11|0),(+$13),(+$16));
  12133. return;
  12134. }
  12135. function _ShowCursor() {
  12136. var label = 0, sp = 0;
  12137. sp = STACKTOP;
  12138. HEAP32[4815] = 0;
  12139. return;
  12140. }
  12141. function _GetKeyStatus($0) {
  12142. $0 = $0|0;
  12143. var $1 = 0, $2 = 0, label = 0, sp = 0;
  12144. sp = STACKTOP;
  12145. $1 = HEAP32[4816]|0;
  12146. $2 = (_glfwGetKey(($1|0),($0|0))|0);
  12147. return ($2|0);
  12148. }
  12149. function _GetMouseButtonStatus($0) {
  12150. $0 = $0|0;
  12151. var $1 = 0, $2 = 0, label = 0, sp = 0;
  12152. sp = STACKTOP;
  12153. $1 = HEAP32[4816]|0;
  12154. $2 = (_glfwGetMouseButton(($1|0),($0|0))|0);
  12155. return ($2|0);
  12156. }
  12157. function _InitWindow($0,$1,$2) {
  12158. $0 = $0|0;
  12159. $1 = $1|0;
  12160. $2 = $2|0;
  12161. 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;
  12162. sp = STACKTOP;
  12163. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  12164. $vararg_buffer = sp;
  12165. _TraceLog(0,4699,$vararg_buffer);
  12166. HEAP32[4820] = $2;
  12167. _InitGraphicsDevice($0,$1);
  12168. _LoadDefaultFont();
  12169. _InitTimer();
  12170. (_emscripten_set_fullscreenchange_callback((0|0),(0|0),1,(5|0))|0);
  12171. (_emscripten_set_keypress_callback((4728|0),(0|0),1,(6|0))|0);
  12172. (_emscripten_set_click_callback((4728|0),(0|0),1,(7|0))|0);
  12173. (_emscripten_set_touchstart_callback((4728|0),(0|0),1,(8|0))|0);
  12174. (_emscripten_set_touchend_callback((4728|0),(0|0),1,(8|0))|0);
  12175. (_emscripten_set_touchmove_callback((4728|0),(0|0),1,(8|0))|0);
  12176. (_emscripten_set_touchcancel_callback((4728|0),(0|0),1,(8|0))|0);
  12177. (_emscripten_set_gamepadconnected_callback((0|0),1,(9|0))|0);
  12178. (_emscripten_set_gamepaddisconnected_callback((0|0),1,(9|0))|0);
  12179. $3 = HEAP32[4818]|0;
  12180. $4 = (+($3|0));
  12181. $5 = $4 * 0.5;
  12182. HEAPF32[4648] = $5;
  12183. $6 = HEAP32[4817]|0;
  12184. $7 = (+($6|0));
  12185. $8 = $7 * 0.5;
  12186. HEAPF32[(18596)>>2] = $8;
  12187. $9 = HEAP32[4821]|0;
  12188. $10 = ($9|0)==(0);
  12189. if ($10) {
  12190. STACKTOP = sp;return;
  12191. }
  12192. _SetTargetFPS(60);
  12193. _LogoAnimation();
  12194. STACKTOP = sp;return;
  12195. }
  12196. function _TraceLog($0,$1,$varargs) {
  12197. $0 = $0|0;
  12198. $1 = $1|0;
  12199. $varargs = $varargs|0;
  12200. 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;
  12201. sp = STACKTOP;
  12202. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  12203. $2 = sp;
  12204. switch ($0|0) {
  12205. case 0: {
  12206. ;HEAP8[18632>>0]=HEAP8[9228>>0]|0;HEAP8[18632+1>>0]=HEAP8[9228+1>>0]|0;HEAP8[18632+2>>0]=HEAP8[9228+2>>0]|0;HEAP8[18632+3>>0]=HEAP8[9228+3>>0]|0;HEAP8[18632+4>>0]=HEAP8[9228+4>>0]|0;HEAP8[18632+5>>0]=HEAP8[9228+5>>0]|0;HEAP8[18632+6>>0]=HEAP8[9228+6>>0]|0;
  12207. break;
  12208. }
  12209. case 1: {
  12210. $3 = 18632;
  12211. $4 = $3;
  12212. HEAP32[$4>>2] = 1330795077;
  12213. $5 = (($3) + 4)|0;
  12214. $6 = $5;
  12215. HEAP32[$6>>2] = 2112082;
  12216. break;
  12217. }
  12218. case 2: {
  12219. dest=18632; src=9235; 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));
  12220. break;
  12221. }
  12222. case 3: {
  12223. $7 = 18632;
  12224. $8 = $7;
  12225. HEAP32[$8>>2] = 1430406468;
  12226. $9 = (($7) + 4)|0;
  12227. $10 = $9;
  12228. HEAP32[$10>>2] = 2112071;
  12229. break;
  12230. }
  12231. default: {
  12232. }
  12233. }
  12234. (_strcat(18632,$1)|0);
  12235. $strlen = (_strlen(18632)|0);
  12236. $endptr = (18632 + ($strlen)|0);
  12237. HEAP8[$endptr>>0]=10&255;HEAP8[$endptr+1>>0]=10>>8;
  12238. HEAP32[$2>>2] = $varargs;
  12239. $11 = ($0|0)==(3);
  12240. if ($11) {
  12241. STACKTOP = sp;return;
  12242. }
  12243. (_vprintf(18632,$2)|0);
  12244. $12 = ($0|0)==(1);
  12245. if ($12) {
  12246. _exit(1);
  12247. // unreachable;
  12248. } else {
  12249. STACKTOP = sp;return;
  12250. }
  12251. }
  12252. function _InitGraphicsDevice($0,$1) {
  12253. $0 = $0|0;
  12254. $1 = $1|0;
  12255. 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;
  12256. 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;
  12257. 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;
  12258. 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;
  12259. 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;
  12260. var label = 0, sp = 0, src = 0, stop = 0;
  12261. sp = STACKTOP;
  12262. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  12263. $$byval_copy = sp + 136|0;
  12264. $vararg_buffer22 = sp + 64|0;
  12265. $vararg_buffer18 = sp + 56|0;
  12266. $vararg_buffer14 = sp + 48|0;
  12267. $vararg_buffer10 = sp + 40|0;
  12268. $vararg_buffer8 = sp + 32|0;
  12269. $vararg_buffer6 = sp + 24|0;
  12270. $vararg_buffer3 = sp + 16|0;
  12271. $vararg_buffer1 = sp + 8|0;
  12272. $vararg_buffer = sp;
  12273. $2 = sp + 72|0;
  12274. $3 = sp + 140|0;
  12275. HEAP32[4818] = $0;
  12276. HEAP32[4817] = $1;
  12277. _MatrixIdentity($2);
  12278. dest=19360; 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));
  12279. (_glfwSetErrorCallback((2|0))|0);
  12280. $4 = (_glfwInit()|0);
  12281. $5 = ($4|0)==(0);
  12282. if ($5) {
  12283. _TraceLog(1,5370,$vararg_buffer);
  12284. }
  12285. $6 = HEAP32[4818]|0;
  12286. HEAP32[4856] = $6;
  12287. $7 = HEAP32[4817]|0;
  12288. HEAP32[4857] = $7;
  12289. _glfwDefaultWindowHints();
  12290. $8 = HEAP8[22104]|0;
  12291. $9 = $8 & 4;
  12292. $10 = ($9<<24>>24)==(0);
  12293. if ($10) {
  12294. _glfwWindowHint(131075,0);
  12295. } else {
  12296. _glfwWindowHint(131075,1);
  12297. }
  12298. $11 = HEAP8[22104]|0;
  12299. $12 = $11 & 8;
  12300. $13 = ($12<<24>>24)==(0);
  12301. if (!($13)) {
  12302. _glfwWindowHint(131077,1);
  12303. }
  12304. $14 = HEAP8[22104]|0;
  12305. $15 = $14 & 32;
  12306. $16 = ($15<<24>>24)==(0);
  12307. if (!($16)) {
  12308. _glfwWindowHint(135181,4);
  12309. _TraceLog(0,5396,$vararg_buffer1);
  12310. }
  12311. $17 = (_rlGetVersion()|0);
  12312. $18 = ($17|0)==(2);
  12313. if ($18) {
  12314. _glfwWindowHint(139266,2);
  12315. _glfwWindowHint(139267,1);
  12316. } else {
  12317. $19 = (_rlGetVersion()|0);
  12318. $20 = ($19|0)==(3);
  12319. if ($20) {
  12320. _glfwWindowHint(139266,3);
  12321. _glfwWindowHint(139267,3);
  12322. _glfwWindowHint(139272,204801);
  12323. _glfwWindowHint(139270,0);
  12324. }
  12325. }
  12326. $21 = HEAP32[4858]|0;
  12327. $22 = ($21|0)==(0);
  12328. if ($22) {
  12329. $47 = HEAP32[4818]|0;
  12330. $48 = HEAP32[4817]|0;
  12331. $49 = HEAP32[4820]|0;
  12332. $50 = (_glfwCreateWindow(($47|0),($48|0),($49|0),(0|0),(0|0))|0);
  12333. HEAP32[4816] = $50;
  12334. $51 = HEAP32[4818]|0;
  12335. HEAP32[4859] = $51;
  12336. $52 = HEAP32[4817]|0;
  12337. HEAP32[4860] = $52;
  12338. $54 = $50;
  12339. } else {
  12340. $23 = (_glfwGetPrimaryMonitor()|0);
  12341. $24 = (_glfwGetVideoModes(($23|0),($$byval_copy|0))|0);
  12342. $25 = HEAP32[$$byval_copy>>2]|0;
  12343. $26 = ($25|0)>(0);
  12344. L22: do {
  12345. if ($26) {
  12346. $27 = HEAP32[4818]|0;
  12347. $28 = HEAP32[$$byval_copy>>2]|0;
  12348. $29 = HEAP32[4817]|0;
  12349. $$015 = 0;
  12350. while(1) {
  12351. $30 = (($24) + (($$015*24)|0)|0);
  12352. $31 = HEAP32[$30>>2]|0;
  12353. $32 = ($31|0)<($27|0);
  12354. if (!($32)) {
  12355. $33 = (((($24) + (($$015*24)|0)|0)) + 4|0);
  12356. $34 = HEAP32[$33>>2]|0;
  12357. $35 = ($34|0)<($29|0);
  12358. if (!($35)) {
  12359. break;
  12360. }
  12361. }
  12362. $36 = (($$015) + 1)|0;
  12363. $37 = ($36|0)<($28|0);
  12364. if ($37) {
  12365. $$015 = $36;
  12366. } else {
  12367. break L22;
  12368. }
  12369. }
  12370. HEAP32[4856] = $31;
  12371. HEAP32[4857] = $34;
  12372. }
  12373. } while(0);
  12374. $38 = HEAP32[4856]|0;
  12375. $39 = HEAP32[4857]|0;
  12376. HEAP32[$vararg_buffer3>>2] = $38;
  12377. $vararg_ptr5 = ((($vararg_buffer3)) + 4|0);
  12378. HEAP32[$vararg_ptr5>>2] = $39;
  12379. _TraceLog(2,5421,$vararg_buffer3);
  12380. $40 = HEAP32[4856]|0;
  12381. $41 = HEAP32[4857]|0;
  12382. _SetupFramebufferSize($40,$41);
  12383. $42 = HEAP32[4856]|0;
  12384. $43 = HEAP32[4857]|0;
  12385. $44 = HEAP32[4820]|0;
  12386. $45 = (_glfwGetPrimaryMonitor()|0);
  12387. $46 = (_glfwCreateWindow(($42|0),($43|0),($44|0),($45|0),(0|0))|0);
  12388. HEAP32[4816] = $46;
  12389. $54 = $46;
  12390. }
  12391. $53 = ($54|0)==(0|0);
  12392. if ($53) {
  12393. _glfwTerminate();
  12394. _TraceLog(1,5459,$vararg_buffer6);
  12395. } else {
  12396. _TraceLog(0,5492,$vararg_buffer8);
  12397. $55 = HEAP32[4859]|0;
  12398. $56 = HEAP32[4860]|0;
  12399. HEAP32[$vararg_buffer10>>2] = $55;
  12400. $vararg_ptr13 = ((($vararg_buffer10)) + 4|0);
  12401. HEAP32[$vararg_ptr13>>2] = $56;
  12402. _TraceLog(0,5532,$vararg_buffer10);
  12403. $57 = HEAP32[4818]|0;
  12404. $58 = HEAP32[4817]|0;
  12405. HEAP32[$vararg_buffer14>>2] = $57;
  12406. $vararg_ptr17 = ((($vararg_buffer14)) + 4|0);
  12407. HEAP32[$vararg_ptr17>>2] = $58;
  12408. _TraceLog(0,5553,$vararg_buffer14);
  12409. $59 = HEAP32[4861]|0;
  12410. $60 = HEAP32[4862]|0;
  12411. HEAP32[$vararg_buffer18>>2] = $59;
  12412. $vararg_ptr21 = ((($vararg_buffer18)) + 4|0);
  12413. HEAP32[$vararg_ptr21>>2] = $60;
  12414. _TraceLog(0,5574,$vararg_buffer18);
  12415. }
  12416. $61 = HEAP32[4816]|0;
  12417. (_glfwSetWindowSizeCallback(($61|0),(1|0))|0);
  12418. $62 = HEAP32[4816]|0;
  12419. (_glfwSetCursorEnterCallback(($62|0),(3|0))|0);
  12420. $63 = HEAP32[4816]|0;
  12421. (_glfwSetKeyCallback(($63|0),(1|0))|0);
  12422. $64 = HEAP32[4816]|0;
  12423. (_glfwSetMouseButtonCallback(($64|0),(1|0))|0);
  12424. $65 = HEAP32[4816]|0;
  12425. (_glfwSetCursorPosCallback(($65|0),(1|0))|0);
  12426. $66 = HEAP32[4816]|0;
  12427. (_glfwSetCharCallback(($66|0),(4|0))|0);
  12428. $67 = HEAP32[4816]|0;
  12429. (_glfwSetScrollCallback(($67|0),(2|0))|0);
  12430. $68 = HEAP32[4816]|0;
  12431. (_glfwSetWindowIconifyCallback(($68|0),(5|0))|0);
  12432. $69 = HEAP32[4816]|0;
  12433. _glfwMakeContextCurrent(($69|0));
  12434. _glfwSwapInterval(0);
  12435. $70 = HEAP8[22104]|0;
  12436. $71 = $70 & 64;
  12437. $72 = ($71<<24>>24)==(0);
  12438. if ($72) {
  12439. $73 = HEAP32[4818]|0;
  12440. $74 = HEAP32[4817]|0;
  12441. _rlglInit($73,$74);
  12442. _SetupViewport();
  12443. _rlMatrixMode(5889);
  12444. _rlLoadIdentity();
  12445. $75 = HEAP32[4859]|0;
  12446. $76 = HEAP32[4861]|0;
  12447. $77 = (($75) - ($76))|0;
  12448. $78 = (+($77|0));
  12449. $79 = HEAP32[4860]|0;
  12450. $80 = HEAP32[4862]|0;
  12451. $81 = (($79) - ($80))|0;
  12452. $82 = (+($81|0));
  12453. _rlOrtho(0.0,$78,$82,0.0,0.0,1.0);
  12454. _rlMatrixMode(5888);
  12455. _rlLoadIdentity();
  12456. HEAP8[$3>>0] = -11;
  12457. $83 = ((($3)) + 1|0);
  12458. HEAP8[$83>>0] = -11;
  12459. $84 = ((($3)) + 2|0);
  12460. HEAP8[$84>>0] = -11;
  12461. $85 = ((($3)) + 3|0);
  12462. HEAP8[$85>>0] = -1;
  12463. ;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;
  12464. _ClearBackground($$byval_copy);
  12465. STACKTOP = sp;return;
  12466. }
  12467. _glfwSwapInterval(1);
  12468. _TraceLog(0,5599,$vararg_buffer22);
  12469. $73 = HEAP32[4818]|0;
  12470. $74 = HEAP32[4817]|0;
  12471. _rlglInit($73,$74);
  12472. _SetupViewport();
  12473. _rlMatrixMode(5889);
  12474. _rlLoadIdentity();
  12475. $75 = HEAP32[4859]|0;
  12476. $76 = HEAP32[4861]|0;
  12477. $77 = (($75) - ($76))|0;
  12478. $78 = (+($77|0));
  12479. $79 = HEAP32[4860]|0;
  12480. $80 = HEAP32[4862]|0;
  12481. $81 = (($79) - ($80))|0;
  12482. $82 = (+($81|0));
  12483. _rlOrtho(0.0,$78,$82,0.0,0.0,1.0);
  12484. _rlMatrixMode(5888);
  12485. _rlLoadIdentity();
  12486. HEAP8[$3>>0] = -11;
  12487. $83 = ((($3)) + 1|0);
  12488. HEAP8[$83>>0] = -11;
  12489. $84 = ((($3)) + 2|0);
  12490. HEAP8[$84>>0] = -11;
  12491. $85 = ((($3)) + 3|0);
  12492. HEAP8[$85>>0] = -1;
  12493. ;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;
  12494. _ClearBackground($$byval_copy);
  12495. STACKTOP = sp;return;
  12496. }
  12497. function _LoadDefaultFont() {
  12498. 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;
  12499. 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;
  12500. 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;
  12501. var $vararg_buffer = 0, label = 0, sp = 0;
  12502. sp = STACKTOP;
  12503. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  12504. $$byval_copy1 = sp + 44|0;
  12505. $vararg_buffer = sp;
  12506. $0 = sp + 4|0;
  12507. $1 = sp + 24|0;
  12508. HEAP32[(19328)>>2] = 224;
  12509. $2 = (_malloc(65536)|0);
  12510. _memset(($2|0),0,65536)|0;
  12511. $$095104 = 0;$$096103 = 0;
  12512. while(1) {
  12513. $3 = (100 + ($$095104<<2)|0);
  12514. $4 = HEAP32[$3>>2]|0;
  12515. $$097102 = 31;
  12516. while(1) {
  12517. $16 = 1 << $$097102;
  12518. $17 = $4 & $16;
  12519. $18 = ($17|0)==(0);
  12520. if (!($18)) {
  12521. $19 = (($$097102) + ($$096103))|0;
  12522. $$sroa$0$0$$sroa_idx = (($2) + ($19<<2)|0);
  12523. 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;
  12524. }
  12525. $20 = (($$097102) + -1)|0;
  12526. $21 = ($$097102|0)>(0);
  12527. if ($21) {
  12528. $$097102 = $20;
  12529. } else {
  12530. break;
  12531. }
  12532. }
  12533. $12 = (($$095104) + 1)|0;
  12534. $13 = ($$095104|0)>(511);
  12535. $$ = $13 ? 0 : $12;
  12536. $14 = (($$096103) + 32)|0;
  12537. $15 = ($14|0)<(16384);
  12538. if ($15) {
  12539. $$095104 = $$;$$096103 = $14;
  12540. } else {
  12541. break;
  12542. }
  12543. }
  12544. _LoadImageEx($0,$2,128,128);
  12545. _ImageFormat($0,2);
  12546. _free($2);
  12547. ;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;
  12548. _LoadTextureFromImage($1,$$byval_copy1);
  12549. ;HEAP32[19304>>2]=HEAP32[$1>>2]|0;HEAP32[19304+4>>2]=HEAP32[$1+4>>2]|0;HEAP32[19304+8>>2]=HEAP32[$1+8>>2]|0;HEAP32[19304+12>>2]=HEAP32[$1+12>>2]|0;HEAP32[19304+16>>2]=HEAP32[$1+16>>2]|0;
  12550. ;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;
  12551. _UnloadImage($$byval_copy1);
  12552. $5 = HEAP32[(19328)>>2]|0;
  12553. $6 = $5 << 5;
  12554. $7 = (_malloc($6)|0);
  12555. HEAP32[(19332)>>2] = $7;
  12556. $8 = ($5|0)>(0);
  12557. if (!($8)) {
  12558. $$lcssa = $7;
  12559. $22 = ((($$lcssa)) + 16|0);
  12560. $23 = HEAP32[$22>>2]|0;
  12561. HEAP32[(19324)>>2] = $23;
  12562. $24 = HEAP32[4826]|0;
  12563. HEAP32[$vararg_buffer>>2] = $24;
  12564. _TraceLog(0,4923,$vararg_buffer);
  12565. STACKTOP = sp;return;
  12566. }
  12567. $9 = HEAP32[(19308)>>2]|0;
  12568. $10 = HEAP32[(19328)>>2]|0;
  12569. $11 = HEAP32[(19332)>>2]|0;
  12570. $$0101 = 0;$$090100 = 1;$$09299 = 0;$27 = $7;
  12571. while(1) {
  12572. $25 = (($$0101) + 32)|0;
  12573. $26 = (($27) + ($$0101<<5)|0);
  12574. HEAP32[$26>>2] = $25;
  12575. $28 = (((($27) + ($$0101<<5)|0)) + 4|0);
  12576. HEAP32[$28>>2] = $$090100;
  12577. $29 = ($$09299*11)|0;
  12578. $30 = (($29) + 1)|0;
  12579. $31 = (((($27) + ($$0101<<5)|0)) + 8|0);
  12580. HEAP32[$31>>2] = $30;
  12581. $32 = (2148 + ($$0101<<2)|0);
  12582. $33 = HEAP32[$32>>2]|0;
  12583. $34 = (((($27) + ($$0101<<5)|0)) + 12|0);
  12584. HEAP32[$34>>2] = $33;
  12585. $35 = (((($27) + ($$0101<<5)|0)) + 16|0);
  12586. HEAP32[$35>>2] = 10;
  12587. $36 = (($$090100) + 1)|0;
  12588. $37 = (($36) + ($33))|0;
  12589. $38 = ($37|0)<($9|0);
  12590. $39 = (($$09299) + 1)|0;
  12591. if ($38) {
  12592. $$191 = $37;$$193 = $$09299;
  12593. } else {
  12594. $40 = ($39*11)|0;
  12595. $41 = (($40) + 1)|0;
  12596. $42 = (($33) + 2)|0;
  12597. HEAP32[$28>>2] = 1;
  12598. HEAP32[$31>>2] = $41;
  12599. $$191 = $42;$$193 = $39;
  12600. }
  12601. $43 = (((($27) + ($$0101<<5)|0)) + 20|0);
  12602. HEAP32[$43>>2] = 0;
  12603. $44 = (((($27) + ($$0101<<5)|0)) + 24|0);
  12604. HEAP32[$44>>2] = 0;
  12605. $45 = (((($27) + ($$0101<<5)|0)) + 28|0);
  12606. HEAP32[$45>>2] = 0;
  12607. $46 = (($$0101) + 1)|0;
  12608. $47 = ($46|0)<($10|0);
  12609. if ($47) {
  12610. $$0101 = $46;$$090100 = $$191;$$09299 = $$193;$27 = $11;
  12611. } else {
  12612. $$lcssa = $11;
  12613. break;
  12614. }
  12615. }
  12616. $22 = ((($$lcssa)) + 16|0);
  12617. $23 = HEAP32[$22>>2]|0;
  12618. HEAP32[(19324)>>2] = $23;
  12619. $24 = HEAP32[4826]|0;
  12620. HEAP32[$vararg_buffer>>2] = $24;
  12621. _TraceLog(0,4923,$vararg_buffer);
  12622. STACKTOP = sp;return;
  12623. }
  12624. function _InitTimer() {
  12625. var $0 = 0, $1 = 0.0, label = 0, sp = 0;
  12626. sp = STACKTOP;
  12627. $0 = (_time((0|0))|0);
  12628. _srand($0);
  12629. $1 = (+_GetTime());
  12630. HEAPF64[2328] = $1;
  12631. return;
  12632. }
  12633. function _EmscriptenFullscreenChangeCallback($0,$1,$2) {
  12634. $0 = $0|0;
  12635. $1 = $1|0;
  12636. $2 = $2|0;
  12637. 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;
  12638. sp = STACKTOP;
  12639. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  12640. $vararg_buffer4 = sp + 16|0;
  12641. $vararg_buffer = sp;
  12642. $3 = HEAP32[$1>>2]|0;
  12643. $4 = ($3|0)==(0);
  12644. $5 = ((($1)) + 264|0);
  12645. $6 = HEAP32[$5>>2]|0;
  12646. $7 = ((($1)) + 268|0);
  12647. $8 = HEAP32[$7>>2]|0;
  12648. $9 = ((($1)) + 272|0);
  12649. $10 = HEAP32[$9>>2]|0;
  12650. $11 = ((($1)) + 276|0);
  12651. $12 = HEAP32[$11>>2]|0;
  12652. if ($4) {
  12653. HEAP32[$vararg_buffer4>>2] = $6;
  12654. $vararg_ptr7 = ((($vararg_buffer4)) + 4|0);
  12655. HEAP32[$vararg_ptr7>>2] = $8;
  12656. $vararg_ptr8 = ((($vararg_buffer4)) + 8|0);
  12657. HEAP32[$vararg_ptr8>>2] = $10;
  12658. $vararg_ptr9 = ((($vararg_buffer4)) + 12|0);
  12659. HEAP32[$vararg_ptr9>>2] = $12;
  12660. _TraceLog(0,4856,$vararg_buffer4);
  12661. STACKTOP = sp;return 0;
  12662. } else {
  12663. HEAP32[$vararg_buffer>>2] = $6;
  12664. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  12665. HEAP32[$vararg_ptr1>>2] = $8;
  12666. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  12667. HEAP32[$vararg_ptr2>>2] = $10;
  12668. $vararg_ptr3 = ((($vararg_buffer)) + 12|0);
  12669. HEAP32[$vararg_ptr3>>2] = $12;
  12670. _TraceLog(0,4787,$vararg_buffer);
  12671. STACKTOP = sp;return 0;
  12672. }
  12673. return (0)|0;
  12674. }
  12675. function _EmscriptenKeyboardCallback($0,$1,$2) {
  12676. $0 = $0|0;
  12677. $1 = $1|0;
  12678. $2 = $2|0;
  12679. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  12680. sp = STACKTOP;
  12681. $3 = ($0|0)==(1);
  12682. if (!($3)) {
  12683. return 0;
  12684. }
  12685. $4 = ((($1)) + 32|0);
  12686. $5 = (_strcmp($4,4780)|0);
  12687. $6 = ($5|0)==(0);
  12688. if (!($6)) {
  12689. return 0;
  12690. }
  12691. (_emscripten_exit_pointerlock()|0);
  12692. return 0;
  12693. }
  12694. function _EmscriptenMouseCallback($0,$1,$2) {
  12695. $0 = $0|0;
  12696. $1 = $1|0;
  12697. $2 = $2|0;
  12698. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  12699. sp = STACKTOP;
  12700. STACKTOP = STACKTOP + 272|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(272|0);
  12701. $3 = sp;
  12702. $4 = ($0|0)==(4);
  12703. if (!($4)) {
  12704. STACKTOP = sp;return 0;
  12705. }
  12706. (_emscripten_get_pointerlock_status(($3|0))|0);
  12707. $5 = HEAP32[$3>>2]|0;
  12708. $6 = ($5|0)==(0);
  12709. if ($6) {
  12710. (_emscripten_request_pointerlock((0|0),1)|0);
  12711. } else {
  12712. (_emscripten_exit_pointerlock()|0);
  12713. (_emscripten_get_pointerlock_status(($3|0))|0);
  12714. }
  12715. STACKTOP = sp;return 0;
  12716. }
  12717. function _EmscriptenTouchCallback($0,$1,$2) {
  12718. $0 = $0|0;
  12719. $1 = $1|0;
  12720. $2 = $2|0;
  12721. 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;
  12722. 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;
  12723. 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;
  12724. var $60 = 0.0, $61 = 0.0, $7 = 0, $8 = 0, $9 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  12725. sp = STACKTOP;
  12726. STACKTOP = STACKTOP + 112|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(112|0);
  12727. $$byval_copy = sp + 56|0;
  12728. $3 = sp;
  12729. switch ($0|0) {
  12730. case 22: {
  12731. $$sink = 1;
  12732. label = 4;
  12733. break;
  12734. }
  12735. case 23: {
  12736. $$sink = 0;
  12737. label = 4;
  12738. break;
  12739. }
  12740. case 24: {
  12741. $$sink = 2;
  12742. label = 4;
  12743. break;
  12744. }
  12745. default: {
  12746. }
  12747. }
  12748. if ((label|0) == 4) {
  12749. HEAP32[$3>>2] = $$sink;
  12750. }
  12751. $4 = HEAP32[$1>>2]|0;
  12752. $5 = ((($3)) + 4|0);
  12753. HEAP32[$5>>2] = $4;
  12754. $6 = ((($1)) + 20|0);
  12755. $7 = HEAP32[$6>>2]|0;
  12756. $8 = ((($3)) + 8|0);
  12757. HEAP32[$8>>2] = $7;
  12758. $9 = ((($1)) + 72|0);
  12759. $10 = HEAP32[$9>>2]|0;
  12760. $11 = ((($3)) + 12|0);
  12761. HEAP32[$11>>2] = $10;
  12762. $12 = ((($1)) + 56|0);
  12763. $13 = HEAP32[$12>>2]|0;
  12764. $14 = (+($13|0));
  12765. $15 = ((($1)) + 60|0);
  12766. $16 = HEAP32[$15>>2]|0;
  12767. $17 = (+($16|0));
  12768. $$sroa$03$0$$sroa_idx = ((($3)) + 24|0);
  12769. HEAPF32[$$sroa$03$0$$sroa_idx>>2] = $14;
  12770. $$sroa$24$0$$sroa_idx5 = ((($3)) + 28|0);
  12771. HEAPF32[$$sroa$24$0$$sroa_idx5>>2] = $17;
  12772. $18 = ((($1)) + 108|0);
  12773. $19 = HEAP32[$18>>2]|0;
  12774. $20 = (+($19|0));
  12775. $21 = ((($1)) + 112|0);
  12776. $22 = HEAP32[$21>>2]|0;
  12777. $23 = (+($22|0));
  12778. $$sroa$0$0$$sroa_idx = ((($3)) + 32|0);
  12779. HEAPF32[$$sroa$0$0$$sroa_idx>>2] = $20;
  12780. $$sroa$2$0$$sroa_idx2 = ((($3)) + 36|0);
  12781. HEAPF32[$$sroa$2$0$$sroa_idx2>>2] = $23;
  12782. $24 = ((($3)) + 24|0);
  12783. $25 = $24;
  12784. $26 = $25;
  12785. $27 = HEAP32[$26>>2]|0;
  12786. $28 = (($25) + 4)|0;
  12787. $29 = $28;
  12788. $30 = HEAP32[$29>>2]|0;
  12789. $31 = 18608;
  12790. $32 = $31;
  12791. HEAP32[$32>>2] = $27;
  12792. $33 = (($31) + 4)|0;
  12793. $34 = $33;
  12794. HEAP32[$34>>2] = $30;
  12795. $35 = ((($3)) + 32|0);
  12796. $36 = $35;
  12797. $37 = $36;
  12798. $38 = HEAP32[$37>>2]|0;
  12799. $39 = (($36) + 4)|0;
  12800. $40 = $39;
  12801. $41 = HEAP32[$40>>2]|0;
  12802. $42 = (18616);
  12803. $43 = $42;
  12804. HEAP32[$43>>2] = $38;
  12805. $44 = (($42) + 4)|0;
  12806. $45 = $44;
  12807. HEAP32[$45>>2] = $41;
  12808. $46 = (_GetScreenWidth()|0);
  12809. $47 = (+($46|0));
  12810. $48 = +HEAPF32[$24>>2];
  12811. $49 = $48 / $47;
  12812. HEAPF32[$24>>2] = $49;
  12813. $50 = (_GetScreenHeight()|0);
  12814. $51 = (+($50|0));
  12815. $52 = +HEAPF32[$$sroa$24$0$$sroa_idx5>>2];
  12816. $53 = $52 / $51;
  12817. HEAPF32[$$sroa$24$0$$sroa_idx5>>2] = $53;
  12818. $54 = (_GetScreenWidth()|0);
  12819. $55 = (+($54|0));
  12820. $56 = +HEAPF32[$35>>2];
  12821. $57 = $56 / $55;
  12822. HEAPF32[$35>>2] = $57;
  12823. $58 = (_GetScreenHeight()|0);
  12824. $59 = (+($58|0));
  12825. $60 = +HEAPF32[$$sroa$2$0$$sroa_idx2>>2];
  12826. $61 = $60 / $59;
  12827. HEAPF32[$$sroa$2$0$$sroa_idx2>>2] = $61;
  12828. 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));
  12829. _ProcessGestureEvent($$byval_copy);
  12830. STACKTOP = sp;return 1;
  12831. }
  12832. function _EmscriptenGamepadCallback($0,$1,$2) {
  12833. $0 = $0|0;
  12834. $1 = $1|0;
  12835. $2 = $2|0;
  12836. 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;
  12837. sp = STACKTOP;
  12838. $3 = ((($1)) + 1296|0);
  12839. $4 = HEAP32[$3>>2]|0;
  12840. $5 = ($4|0)==(0);
  12841. if ($5) {
  12842. label = 3;
  12843. } else {
  12844. $6 = ((($1)) + 1300|0);
  12845. $7 = HEAP32[$6>>2]|0;
  12846. $8 = ($7|0)<(4);
  12847. if ($8) {
  12848. $$sink = 1;
  12849. } else {
  12850. label = 3;
  12851. }
  12852. }
  12853. if ((label|0) == 3) {
  12854. $$sink = 0;
  12855. }
  12856. $9 = ((($1)) + 1300|0);
  12857. $10 = HEAP32[$9>>2]|0;
  12858. $11 = (19288 + ($10<<2)|0);
  12859. HEAP32[$11>>2] = $$sink;
  12860. return 0;
  12861. }
  12862. function _SetTargetFPS($0) {
  12863. $0 = $0|0;
  12864. 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;
  12865. sp = STACKTOP;
  12866. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  12867. $vararg_buffer = sp;
  12868. $1 = ($0|0)<(1);
  12869. $2 = (+($0|0));
  12870. $3 = 1.0 / $2;
  12871. $$ = $1 ? 0.0 : $3;
  12872. HEAPF64[2325] = $$;
  12873. $4 = $3;
  12874. $$op = $4 * 1000.0;
  12875. $5 = $$op;
  12876. $6 = $1 ? 0.0 : $5;
  12877. HEAPF64[$vararg_buffer>>3] = $6;
  12878. _TraceLog(0,4736,$vararg_buffer);
  12879. STACKTOP = sp;return;
  12880. }
  12881. function _LogoAnimation() {
  12882. var label = 0, sp = 0;
  12883. sp = STACKTOP;
  12884. HEAP32[4821] = 0;
  12885. return;
  12886. }
  12887. function _GetTime() {
  12888. var $0 = 0.0, label = 0, sp = 0;
  12889. sp = STACKTOP;
  12890. $0 = (+_glfwGetTime());
  12891. return (+$0);
  12892. }
  12893. function _LoadImageEx($0,$1,$2,$3) {
  12894. $0 = $0|0;
  12895. $1 = $1|0;
  12896. $2 = $2|0;
  12897. $3 = $3|0;
  12898. 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;
  12899. 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;
  12900. sp = STACKTOP;
  12901. $4 = $2 << 2;
  12902. $5 = Math_imul($4, $3)|0;
  12903. $6 = (_malloc($5)|0);
  12904. $7 = ($5|0)>(0);
  12905. if ($7) {
  12906. $8 = (($5) + -1)|0;
  12907. $9 = $8 >>> 2;
  12908. $$03334 = 0;$$035 = 0;
  12909. while(1) {
  12910. $10 = (($1) + ($$03334<<2)|0);
  12911. $11 = HEAP8[$10>>0]|0;
  12912. $12 = (($6) + ($$035)|0);
  12913. HEAP8[$12>>0] = $11;
  12914. $13 = (((($1) + ($$03334<<2)|0)) + 1|0);
  12915. $14 = HEAP8[$13>>0]|0;
  12916. $15 = $$035 | 1;
  12917. $16 = (($6) + ($15)|0);
  12918. HEAP8[$16>>0] = $14;
  12919. $17 = (((($1) + ($$03334<<2)|0)) + 2|0);
  12920. $18 = HEAP8[$17>>0]|0;
  12921. $19 = $$035 | 2;
  12922. $20 = (($6) + ($19)|0);
  12923. HEAP8[$20>>0] = $18;
  12924. $21 = (((($1) + ($$03334<<2)|0)) + 3|0);
  12925. $22 = HEAP8[$21>>0]|0;
  12926. $23 = $$035 | 3;
  12927. $24 = (($6) + ($23)|0);
  12928. HEAP8[$24>>0] = $22;
  12929. $25 = (($$03334) + 1)|0;
  12930. $26 = (($$035) + 4)|0;
  12931. $exitcond = ($$03334|0)==($9|0);
  12932. if ($exitcond) {
  12933. break;
  12934. } else {
  12935. $$03334 = $25;$$035 = $26;
  12936. }
  12937. }
  12938. }
  12939. HEAP32[$0>>2] = $6;
  12940. $$sroa$9$0$$sroa_idx18 = ((($0)) + 4|0);
  12941. HEAP32[$$sroa$9$0$$sroa_idx18>>2] = $2;
  12942. $$sroa$12$0$$sroa_idx21 = ((($0)) + 8|0);
  12943. HEAP32[$$sroa$12$0$$sroa_idx21>>2] = $3;
  12944. $$sroa$15$0$$sroa_idx24 = ((($0)) + 12|0);
  12945. HEAP32[$$sroa$15$0$$sroa_idx24>>2] = 1;
  12946. $$sroa$16$0$$sroa_idx26 = ((($0)) + 16|0);
  12947. HEAP32[$$sroa$16$0$$sroa_idx26>>2] = 7;
  12948. return;
  12949. }
  12950. function _ImageFormat($0,$1) {
  12951. $0 = $0|0;
  12952. $1 = $1|0;
  12953. 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;
  12954. 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;
  12955. 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;
  12956. 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;
  12957. 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;
  12958. 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;
  12959. 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;
  12960. 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;
  12961. 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;
  12962. 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;
  12963. 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;
  12964. 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;
  12965. 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;
  12966. 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;
  12967. 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;
  12968. 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;
  12969. sp = STACKTOP;
  12970. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  12971. $$byval_copy = sp + 4|0;
  12972. $vararg_buffer = sp;
  12973. $2 = ((($0)) + 16|0);
  12974. $3 = HEAP32[$2>>2]|0;
  12975. $4 = ($3|0)==($1|0);
  12976. if ($4) {
  12977. STACKTOP = sp;return;
  12978. }
  12979. $5 = ($3|0)<(8);
  12980. $6 = ($1|0)<(8);
  12981. $or$cond = $6 & $5;
  12982. if (!($or$cond)) {
  12983. _TraceLog(2,5270,$vararg_buffer);
  12984. STACKTOP = sp;return;
  12985. }
  12986. ;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;
  12987. $7 = (_GetImageData($$byval_copy)|0);
  12988. $8 = HEAP32[$0>>2]|0;
  12989. _free($8);
  12990. HEAP32[$2>>2] = $1;
  12991. switch ($1|0) {
  12992. case 1: {
  12993. $9 = ((($0)) + 4|0);
  12994. $10 = HEAP32[$9>>2]|0;
  12995. $11 = ((($0)) + 8|0);
  12996. $12 = HEAP32[$11>>2]|0;
  12997. $13 = Math_imul($12, $10)|0;
  12998. $14 = (_malloc($13)|0);
  12999. HEAP32[$0>>2] = $14;
  13000. $15 = Math_imul($12, $10)|0;
  13001. $16 = ($15|0)>(0);
  13002. if ($16) {
  13003. $$0171188 = 0;
  13004. while(1) {
  13005. $17 = (($7) + ($$0171188<<2)|0);
  13006. $18 = HEAP8[$17>>0]|0;
  13007. $19 = (+($18&255));
  13008. $20 = $19 * 0.29899999499320984;
  13009. $21 = (((($7) + ($$0171188<<2)|0)) + 1|0);
  13010. $22 = HEAP8[$21>>0]|0;
  13011. $23 = (+($22&255));
  13012. $24 = $23 * 0.58700001239776611;
  13013. $25 = $20 + $24;
  13014. $26 = (((($7) + ($$0171188<<2)|0)) + 2|0);
  13015. $27 = HEAP8[$26>>0]|0;
  13016. $28 = (+($27&255));
  13017. $29 = $28 * 0.11400000005960464;
  13018. $30 = $25 + $29;
  13019. $31 = (~~(($30))&255);
  13020. $32 = HEAP32[$0>>2]|0;
  13021. $33 = (($32) + ($$0171188)|0);
  13022. HEAP8[$33>>0] = $31;
  13023. $34 = (($$0171188) + 1)|0;
  13024. $35 = HEAP32[$9>>2]|0;
  13025. $36 = HEAP32[$11>>2]|0;
  13026. $37 = Math_imul($36, $35)|0;
  13027. $38 = ($34|0)<($37|0);
  13028. if ($38) {
  13029. $$0171188 = $34;
  13030. } else {
  13031. break;
  13032. }
  13033. }
  13034. }
  13035. break;
  13036. }
  13037. case 2: {
  13038. $39 = ((($0)) + 4|0);
  13039. $40 = HEAP32[$39>>2]|0;
  13040. $41 = ((($0)) + 8|0);
  13041. $42 = HEAP32[$41>>2]|0;
  13042. $43 = $40 << 1;
  13043. $44 = Math_imul($43, $42)|0;
  13044. $45 = (_malloc($44)|0);
  13045. HEAP32[$0>>2] = $45;
  13046. $46 = HEAP32[$39>>2]|0;
  13047. $47 = $46 << 1;
  13048. $48 = Math_imul($47, $42)|0;
  13049. $49 = ($48|0)>(0);
  13050. if ($49) {
  13051. $$0170190 = 0;$$0172189 = 0;
  13052. while(1) {
  13053. $50 = (($7) + ($$0172189<<2)|0);
  13054. $51 = HEAP8[$50>>0]|0;
  13055. $52 = (+($51&255));
  13056. $53 = $52 * 0.29899999499320984;
  13057. $54 = (((($7) + ($$0172189<<2)|0)) + 1|0);
  13058. $55 = HEAP8[$54>>0]|0;
  13059. $56 = (+($55&255));
  13060. $57 = $56 * 0.58700001239776611;
  13061. $58 = $53 + $57;
  13062. $59 = (((($7) + ($$0172189<<2)|0)) + 2|0);
  13063. $60 = HEAP8[$59>>0]|0;
  13064. $61 = (+($60&255));
  13065. $62 = $61 * 0.11400000005960464;
  13066. $63 = $58 + $62;
  13067. $64 = (~~(($63))&255);
  13068. $65 = HEAP32[$0>>2]|0;
  13069. $66 = (($65) + ($$0170190)|0);
  13070. HEAP8[$66>>0] = $64;
  13071. $67 = (((($7) + ($$0172189<<2)|0)) + 3|0);
  13072. $68 = HEAP8[$67>>0]|0;
  13073. $69 = HEAP32[$0>>2]|0;
  13074. $70 = $$0170190 | 1;
  13075. $71 = (($69) + ($70)|0);
  13076. HEAP8[$71>>0] = $68;
  13077. $72 = (($$0172189) + 1)|0;
  13078. $73 = (($$0170190) + 2)|0;
  13079. $74 = HEAP32[$39>>2]|0;
  13080. $75 = HEAP32[$41>>2]|0;
  13081. $76 = $74 << 1;
  13082. $77 = Math_imul($76, $75)|0;
  13083. $78 = ($73|0)<($77|0);
  13084. if ($78) {
  13085. $$0170190 = $73;$$0172189 = $72;
  13086. } else {
  13087. break;
  13088. }
  13089. }
  13090. }
  13091. break;
  13092. }
  13093. case 3: {
  13094. $79 = ((($0)) + 4|0);
  13095. $80 = HEAP32[$79>>2]|0;
  13096. $81 = ((($0)) + 8|0);
  13097. $82 = HEAP32[$81>>2]|0;
  13098. $83 = $80 << 1;
  13099. $84 = Math_imul($83, $82)|0;
  13100. $85 = (_malloc($84)|0);
  13101. HEAP32[$0>>2] = $85;
  13102. $86 = HEAP32[$79>>2]|0;
  13103. $87 = Math_imul($82, $86)|0;
  13104. $88 = ($87|0)>(0);
  13105. if ($88) {
  13106. $89 = HEAP8[$7>>0]|0;
  13107. $90 = (+($89&255));
  13108. $91 = $90 * 31.0;
  13109. $92 = $91 / 255.0;
  13110. $roundf179 = (+_roundf((+$92)));
  13111. $93 = (~~(($roundf179))&255);
  13112. $94 = ((($7)) + 1|0);
  13113. $95 = HEAP8[$94>>0]|0;
  13114. $96 = (+($95&255));
  13115. $97 = $96 * 63.0;
  13116. $98 = $97 / 255.0;
  13117. $roundf180 = (+_roundf((+$98)));
  13118. $99 = (~~(($roundf180))&255);
  13119. $100 = ((($7)) + 2|0);
  13120. $101 = HEAP8[$100>>0]|0;
  13121. $102 = (+($101&255));
  13122. $103 = $102 * 31.0;
  13123. $104 = $103 / 255.0;
  13124. $roundf181 = (+_roundf((+$104)));
  13125. $105 = (~~(($roundf181))&255);
  13126. $106 = $93&255;
  13127. $107 = $106 << 11;
  13128. $108 = $99&255;
  13129. $109 = $108 << 5;
  13130. $110 = $109 | $107;
  13131. $111 = $105&255;
  13132. $112 = $110 | $111;
  13133. $113 = $112&65535;
  13134. $114 = HEAP32[$0>>2]|0;
  13135. $115 = HEAP32[$79>>2]|0;
  13136. $116 = HEAP32[$81>>2]|0;
  13137. $117 = Math_imul($116, $115)|0;
  13138. $$0169192 = 0;
  13139. while(1) {
  13140. $118 = (($114) + ($$0169192<<1)|0);
  13141. HEAP16[$118>>1] = $113;
  13142. $119 = (($$0169192) + 1)|0;
  13143. $120 = ($119|0)<($117|0);
  13144. if ($120) {
  13145. $$0169192 = $119;
  13146. } else {
  13147. break;
  13148. }
  13149. }
  13150. }
  13151. break;
  13152. }
  13153. case 4: {
  13154. $121 = ((($0)) + 4|0);
  13155. $122 = HEAP32[$121>>2]|0;
  13156. $123 = ((($0)) + 8|0);
  13157. $124 = HEAP32[$123>>2]|0;
  13158. $125 = ($122*3)|0;
  13159. $126 = Math_imul($125, $124)|0;
  13160. $127 = (_malloc($126)|0);
  13161. HEAP32[$0>>2] = $127;
  13162. $128 = HEAP32[$121>>2]|0;
  13163. $129 = ($128*3)|0;
  13164. $130 = Math_imul($129, $124)|0;
  13165. $131 = ($130|0)>(0);
  13166. if ($131) {
  13167. $$0168195 = 0;$$1194 = 0;
  13168. while(1) {
  13169. $132 = (($7) + ($$1194<<2)|0);
  13170. $133 = HEAP8[$132>>0]|0;
  13171. $134 = HEAP32[$0>>2]|0;
  13172. $135 = (($134) + ($$0168195)|0);
  13173. HEAP8[$135>>0] = $133;
  13174. $136 = (((($7) + ($$1194<<2)|0)) + 1|0);
  13175. $137 = HEAP8[$136>>0]|0;
  13176. $138 = HEAP32[$0>>2]|0;
  13177. $139 = (($$0168195) + 1)|0;
  13178. $140 = (($138) + ($139)|0);
  13179. HEAP8[$140>>0] = $137;
  13180. $141 = (((($7) + ($$1194<<2)|0)) + 2|0);
  13181. $142 = HEAP8[$141>>0]|0;
  13182. $143 = HEAP32[$0>>2]|0;
  13183. $144 = (($$0168195) + 2)|0;
  13184. $145 = (($143) + ($144)|0);
  13185. HEAP8[$145>>0] = $142;
  13186. $146 = (($$1194) + 1)|0;
  13187. $147 = (($$0168195) + 3)|0;
  13188. $148 = HEAP32[$121>>2]|0;
  13189. $149 = HEAP32[$123>>2]|0;
  13190. $150 = ($148*3)|0;
  13191. $151 = Math_imul($150, $149)|0;
  13192. $152 = ($147|0)<($151|0);
  13193. if ($152) {
  13194. $$0168195 = $147;$$1194 = $146;
  13195. } else {
  13196. break;
  13197. }
  13198. }
  13199. }
  13200. break;
  13201. }
  13202. case 5: {
  13203. $153 = ((($0)) + 4|0);
  13204. $154 = HEAP32[$153>>2]|0;
  13205. $155 = ((($0)) + 8|0);
  13206. $156 = HEAP32[$155>>2]|0;
  13207. $157 = $154 << 1;
  13208. $158 = Math_imul($157, $156)|0;
  13209. $159 = (_malloc($158)|0);
  13210. HEAP32[$0>>2] = $159;
  13211. $160 = HEAP32[$153>>2]|0;
  13212. $161 = Math_imul($156, $160)|0;
  13213. $162 = ($161|0)>(0);
  13214. if ($162) {
  13215. $163 = HEAP32[$0>>2]|0;
  13216. $164 = HEAP32[$153>>2]|0;
  13217. $165 = HEAP32[$155>>2]|0;
  13218. $166 = Math_imul($165, $164)|0;
  13219. $$0167197 = 0;
  13220. while(1) {
  13221. $167 = (($7) + ($$0167197<<2)|0);
  13222. $168 = HEAP8[$167>>0]|0;
  13223. $169 = (+($168&255));
  13224. $170 = $169 * 31.0;
  13225. $171 = $170 / 255.0;
  13226. $roundf176 = (+_roundf((+$171)));
  13227. $172 = (~~(($roundf176))&255);
  13228. $173 = (((($7) + ($$0167197<<2)|0)) + 1|0);
  13229. $174 = HEAP8[$173>>0]|0;
  13230. $175 = (+($174&255));
  13231. $176 = $175 * 31.0;
  13232. $177 = $176 / 255.0;
  13233. $roundf177 = (+_roundf((+$177)));
  13234. $178 = (~~(($roundf177))&255);
  13235. $179 = (((($7) + ($$0167197<<2)|0)) + 2|0);
  13236. $180 = HEAP8[$179>>0]|0;
  13237. $181 = (+($180&255));
  13238. $182 = $181 * 31.0;
  13239. $183 = $182 / 255.0;
  13240. $roundf178 = (+_roundf((+$183)));
  13241. $184 = (~~(($roundf178))&255);
  13242. $185 = (((($7) + ($$0167197<<2)|0)) + 3|0);
  13243. $186 = HEAP8[$185>>0]|0;
  13244. $187 = ($186&255)>(50);
  13245. $188 = $172&255;
  13246. $189 = $188 << 11;
  13247. $190 = $178&255;
  13248. $191 = $190 << 6;
  13249. $192 = $191 | $189;
  13250. $193 = $184&255;
  13251. $194 = $193 << 1;
  13252. $195 = $192 | $194;
  13253. $196 = $187&1;
  13254. $197 = $195 | $196;
  13255. $198 = $197&65535;
  13256. $199 = (($163) + ($$0167197<<1)|0);
  13257. HEAP16[$199>>1] = $198;
  13258. $200 = (($$0167197) + 1)|0;
  13259. $201 = ($200|0)<($166|0);
  13260. if ($201) {
  13261. $$0167197 = $200;
  13262. } else {
  13263. break;
  13264. }
  13265. }
  13266. }
  13267. break;
  13268. }
  13269. case 6: {
  13270. $202 = ((($0)) + 4|0);
  13271. $203 = HEAP32[$202>>2]|0;
  13272. $204 = ((($0)) + 8|0);
  13273. $205 = HEAP32[$204>>2]|0;
  13274. $206 = $203 << 1;
  13275. $207 = Math_imul($206, $205)|0;
  13276. $208 = (_malloc($207)|0);
  13277. HEAP32[$0>>2] = $208;
  13278. $209 = HEAP32[$202>>2]|0;
  13279. $210 = Math_imul($205, $209)|0;
  13280. $211 = ($210|0)>(0);
  13281. if ($211) {
  13282. $212 = HEAP32[$0>>2]|0;
  13283. $213 = HEAP32[$202>>2]|0;
  13284. $214 = HEAP32[$204>>2]|0;
  13285. $215 = Math_imul($214, $213)|0;
  13286. $$0166199 = 0;
  13287. while(1) {
  13288. $216 = (($7) + ($$0166199<<2)|0);
  13289. $217 = HEAP8[$216>>0]|0;
  13290. $218 = (+($217&255));
  13291. $219 = $218 * 15.0;
  13292. $220 = $219 / 255.0;
  13293. $roundf = (+_roundf((+$220)));
  13294. $221 = (~~(($roundf))&255);
  13295. $222 = (((($7) + ($$0166199<<2)|0)) + 1|0);
  13296. $223 = HEAP8[$222>>0]|0;
  13297. $224 = (+($223&255));
  13298. $225 = $224 * 15.0;
  13299. $226 = $225 / 255.0;
  13300. $roundf173 = (+_roundf((+$226)));
  13301. $227 = (~~(($roundf173))&255);
  13302. $228 = (((($7) + ($$0166199<<2)|0)) + 2|0);
  13303. $229 = HEAP8[$228>>0]|0;
  13304. $230 = (+($229&255));
  13305. $231 = $230 * 15.0;
  13306. $232 = $231 / 255.0;
  13307. $roundf174 = (+_roundf((+$232)));
  13308. $233 = (~~(($roundf174))&255);
  13309. $234 = (((($7) + ($$0166199<<2)|0)) + 3|0);
  13310. $235 = HEAP8[$234>>0]|0;
  13311. $236 = (+($235&255));
  13312. $237 = $236 * 15.0;
  13313. $238 = $237 / 255.0;
  13314. $roundf175 = (+_roundf((+$238)));
  13315. $239 = (~~(($roundf175))&255);
  13316. $240 = $221&255;
  13317. $241 = $240 << 12;
  13318. $242 = $227&255;
  13319. $243 = $242 << 8;
  13320. $244 = $243 | $241;
  13321. $245 = $233&255;
  13322. $246 = $245 << 4;
  13323. $247 = $244 | $246;
  13324. $248 = $239&255;
  13325. $249 = $247 | $248;
  13326. $250 = $249&65535;
  13327. $251 = (($212) + ($$0166199<<1)|0);
  13328. HEAP16[$251>>1] = $250;
  13329. $252 = (($$0166199) + 1)|0;
  13330. $253 = ($252|0)<($215|0);
  13331. if ($253) {
  13332. $$0166199 = $252;
  13333. } else {
  13334. break;
  13335. }
  13336. }
  13337. }
  13338. break;
  13339. }
  13340. case 7: {
  13341. $254 = ((($0)) + 4|0);
  13342. $255 = HEAP32[$254>>2]|0;
  13343. $256 = ((($0)) + 8|0);
  13344. $257 = HEAP32[$256>>2]|0;
  13345. $258 = $255 << 2;
  13346. $259 = Math_imul($258, $257)|0;
  13347. $260 = (_malloc($259)|0);
  13348. HEAP32[$0>>2] = $260;
  13349. $261 = HEAP32[$254>>2]|0;
  13350. $262 = $261 << 2;
  13351. $263 = Math_imul($262, $257)|0;
  13352. $264 = ($263|0)>(0);
  13353. if ($264) {
  13354. $$0202 = 0;$$2201 = 0;
  13355. while(1) {
  13356. $265 = (($7) + ($$2201<<2)|0);
  13357. $266 = HEAP8[$265>>0]|0;
  13358. $267 = HEAP32[$0>>2]|0;
  13359. $268 = (($267) + ($$0202)|0);
  13360. HEAP8[$268>>0] = $266;
  13361. $269 = (((($7) + ($$2201<<2)|0)) + 1|0);
  13362. $270 = HEAP8[$269>>0]|0;
  13363. $271 = HEAP32[$0>>2]|0;
  13364. $272 = $$0202 | 1;
  13365. $273 = (($271) + ($272)|0);
  13366. HEAP8[$273>>0] = $270;
  13367. $274 = (((($7) + ($$2201<<2)|0)) + 2|0);
  13368. $275 = HEAP8[$274>>0]|0;
  13369. $276 = HEAP32[$0>>2]|0;
  13370. $277 = $$0202 | 2;
  13371. $278 = (($276) + ($277)|0);
  13372. HEAP8[$278>>0] = $275;
  13373. $279 = (((($7) + ($$2201<<2)|0)) + 3|0);
  13374. $280 = HEAP8[$279>>0]|0;
  13375. $281 = HEAP32[$0>>2]|0;
  13376. $282 = $$0202 | 3;
  13377. $283 = (($281) + ($282)|0);
  13378. HEAP8[$283>>0] = $280;
  13379. $284 = (($$2201) + 1)|0;
  13380. $285 = (($$0202) + 4)|0;
  13381. $286 = HEAP32[$254>>2]|0;
  13382. $287 = HEAP32[$256>>2]|0;
  13383. $288 = $286 << 2;
  13384. $289 = Math_imul($288, $287)|0;
  13385. $290 = ($285|0)<($289|0);
  13386. if ($290) {
  13387. $$0202 = $285;$$2201 = $284;
  13388. } else {
  13389. break;
  13390. }
  13391. }
  13392. }
  13393. break;
  13394. }
  13395. default: {
  13396. }
  13397. }
  13398. _free($7);
  13399. STACKTOP = sp;return;
  13400. }
  13401. function _LoadTextureFromImage($0,$1) {
  13402. $0 = $0|0;
  13403. $1 = $1|0;
  13404. 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;
  13405. sp = STACKTOP;
  13406. $2 = HEAP32[$1>>2]|0;
  13407. $3 = ((($1)) + 4|0);
  13408. $4 = HEAP32[$3>>2]|0;
  13409. $5 = ((($1)) + 8|0);
  13410. $6 = HEAP32[$5>>2]|0;
  13411. $7 = ((($1)) + 16|0);
  13412. $8 = HEAP32[$7>>2]|0;
  13413. $9 = ((($1)) + 12|0);
  13414. $10 = HEAP32[$9>>2]|0;
  13415. $11 = (_rlglLoadTexture($2,$4,$6,$8,$10)|0);
  13416. $12 = HEAP32[$3>>2]|0;
  13417. $13 = HEAP32[$5>>2]|0;
  13418. HEAP32[$0>>2] = $11;
  13419. $$sroa$5$0$$sroa_idx2 = ((($0)) + 4|0);
  13420. HEAP32[$$sroa$5$0$$sroa_idx2>>2] = $12;
  13421. $$sroa$7$0$$sroa_idx4 = ((($0)) + 8|0);
  13422. HEAP32[$$sroa$7$0$$sroa_idx4>>2] = $13;
  13423. $$sroa$9$0$$sroa_idx6 = ((($0)) + 12|0);
  13424. HEAP32[$$sroa$9$0$$sroa_idx6>>2] = $10;
  13425. $$sroa$11$0$$sroa_idx8 = ((($0)) + 16|0);
  13426. HEAP32[$$sroa$11$0$$sroa_idx8>>2] = $8;
  13427. return;
  13428. }
  13429. function _UnloadImage($0) {
  13430. $0 = $0|0;
  13431. var $1 = 0, label = 0, sp = 0;
  13432. sp = STACKTOP;
  13433. $1 = HEAP32[$0>>2]|0;
  13434. _free($1);
  13435. return;
  13436. }
  13437. function _rlglLoadTexture($0,$1,$2,$3,$4) {
  13438. $0 = $0|0;
  13439. $1 = $1|0;
  13440. $2 = $2|0;
  13441. $3 = $3|0;
  13442. $4 = $4|0;
  13443. 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;
  13444. 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;
  13445. 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;
  13446. var $vararg_buffer9 = 0, $vararg_ptr13 = 0, $vararg_ptr14 = 0, label = 0, sp = 0;
  13447. sp = STACKTOP;
  13448. STACKTOP = STACKTOP + 80|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(80|0);
  13449. $vararg_buffer15 = sp + 64|0;
  13450. $vararg_buffer11 = sp + 48|0;
  13451. $vararg_buffer9 = sp + 40|0;
  13452. $vararg_buffer7 = sp + 32|0;
  13453. $vararg_buffer5 = sp + 24|0;
  13454. $vararg_buffer3 = sp + 16|0;
  13455. $vararg_buffer1 = sp + 8|0;
  13456. $vararg_buffer = sp;
  13457. $5 = sp + 68|0;
  13458. _glBindTexture(3553,0);
  13459. HEAP32[$5>>2] = 0;
  13460. $6 = HEAP32[4834]|0;
  13461. $7 = ($6|0)==(0);
  13462. $8 = $3 & -4;
  13463. $switch = ($8|0)==(8);
  13464. $or$cond100 = $switch & $7;
  13465. if ($or$cond100) {
  13466. _TraceLog(2,4968,$vararg_buffer);
  13467. $$0 = HEAP32[$5>>2]|0;
  13468. STACKTOP = sp;return ($$0|0);
  13469. }
  13470. $9 = HEAP32[4835]|0;
  13471. $10 = ($9|0)==(0);
  13472. $11 = ($3|0)==(12);
  13473. $or$cond7 = $11 & $10;
  13474. if ($or$cond7) {
  13475. _TraceLog(2,5012,$vararg_buffer1);
  13476. $$0 = HEAP32[$5>>2]|0;
  13477. STACKTOP = sp;return ($$0|0);
  13478. }
  13479. $12 = HEAP32[4836]|0;
  13480. $13 = ($12|0)==(0);
  13481. $$off = (($3) + -13)|0;
  13482. $14 = ($$off>>>0)<(2);
  13483. $or$cond = $14 & $13;
  13484. if ($or$cond) {
  13485. _TraceLog(2,5057,$vararg_buffer3);
  13486. $$0 = HEAP32[$5>>2]|0;
  13487. STACKTOP = sp;return ($$0|0);
  13488. }
  13489. $15 = HEAP32[4837]|0;
  13490. $16 = ($15|0)==(0);
  13491. $$off92 = (($3) + -15)|0;
  13492. $17 = ($$off92>>>0)<(2);
  13493. $or$cond96 = $17 & $16;
  13494. if ($or$cond96) {
  13495. _TraceLog(2,5102,$vararg_buffer5);
  13496. $$0 = HEAP32[$5>>2]|0;
  13497. STACKTOP = sp;return ($$0|0);
  13498. }
  13499. $18 = HEAP32[4838]|0;
  13500. $19 = ($18|0)==(0);
  13501. $$off93 = (($3) + -17)|0;
  13502. $20 = ($$off93>>>0)<(2);
  13503. $or$cond98 = $20 & $19;
  13504. if ($or$cond98) {
  13505. _TraceLog(2,5147,$vararg_buffer7);
  13506. $$0 = HEAP32[$5>>2]|0;
  13507. STACKTOP = sp;return ($$0|0);
  13508. }
  13509. _glGenTextures(1,($5|0));
  13510. $21 = HEAP32[$5>>2]|0;
  13511. _glBindTexture(3553,($21|0));
  13512. do {
  13513. switch ($3|0) {
  13514. case 1: {
  13515. _glTexImage2D(3553,0,6409,($1|0),($2|0),0,6409,5121,($0|0));
  13516. break;
  13517. }
  13518. case 2: {
  13519. _glTexImage2D(3553,0,6410,($1|0),($2|0),0,6410,5121,($0|0));
  13520. break;
  13521. }
  13522. case 3: {
  13523. _glTexImage2D(3553,0,6407,($1|0),($2|0),0,6407,33635,($0|0));
  13524. break;
  13525. }
  13526. case 4: {
  13527. _glTexImage2D(3553,0,6407,($1|0),($2|0),0,6407,5121,($0|0));
  13528. break;
  13529. }
  13530. case 5: {
  13531. _glTexImage2D(3553,0,6408,($1|0),($2|0),0,6408,32820,($0|0));
  13532. break;
  13533. }
  13534. case 6: {
  13535. _glTexImage2D(3553,0,6408,($1|0),($2|0),0,6408,32819,($0|0));
  13536. break;
  13537. }
  13538. case 7: {
  13539. _glTexImage2D(3553,0,6408,($1|0),($2|0),0,6408,5121,($0|0));
  13540. break;
  13541. }
  13542. case 8: {
  13543. $22 = HEAP32[4834]|0;
  13544. $23 = ($22|0)==(0);
  13545. if (!($23)) {
  13546. _LoadCompressedTexture($0,$1,$2,$4,33776);
  13547. }
  13548. break;
  13549. }
  13550. case 9: {
  13551. $24 = HEAP32[4834]|0;
  13552. $25 = ($24|0)==(0);
  13553. if (!($25)) {
  13554. _LoadCompressedTexture($0,$1,$2,$4,33777);
  13555. }
  13556. break;
  13557. }
  13558. case 10: {
  13559. $26 = HEAP32[4834]|0;
  13560. $27 = ($26|0)==(0);
  13561. if (!($27)) {
  13562. _LoadCompressedTexture($0,$1,$2,$4,33778);
  13563. }
  13564. break;
  13565. }
  13566. case 11: {
  13567. $28 = HEAP32[4834]|0;
  13568. $29 = ($28|0)==(0);
  13569. if (!($29)) {
  13570. _LoadCompressedTexture($0,$1,$2,$4,33779);
  13571. }
  13572. break;
  13573. }
  13574. case 12: {
  13575. $30 = HEAP32[4835]|0;
  13576. $31 = ($30|0)==(0);
  13577. if (!($31)) {
  13578. _LoadCompressedTexture($0,$1,$2,$4,36196);
  13579. }
  13580. break;
  13581. }
  13582. case 13: {
  13583. $32 = HEAP32[4836]|0;
  13584. $33 = ($32|0)==(0);
  13585. if (!($33)) {
  13586. _LoadCompressedTexture($0,$1,$2,$4,37492);
  13587. }
  13588. break;
  13589. }
  13590. case 14: {
  13591. $34 = HEAP32[4836]|0;
  13592. $35 = ($34|0)==(0);
  13593. if (!($35)) {
  13594. _LoadCompressedTexture($0,$1,$2,$4,37496);
  13595. }
  13596. break;
  13597. }
  13598. case 15: {
  13599. $36 = HEAP32[4837]|0;
  13600. $37 = ($36|0)==(0);
  13601. if (!($37)) {
  13602. _LoadCompressedTexture($0,$1,$2,$4,35840);
  13603. }
  13604. break;
  13605. }
  13606. case 16: {
  13607. $38 = HEAP32[4837]|0;
  13608. $39 = ($38|0)==(0);
  13609. if (!($39)) {
  13610. _LoadCompressedTexture($0,$1,$2,$4,35842);
  13611. }
  13612. break;
  13613. }
  13614. case 17: {
  13615. $40 = HEAP32[4838]|0;
  13616. $41 = ($40|0)==(0);
  13617. if (!($41)) {
  13618. _LoadCompressedTexture($0,$1,$2,$4,37808);
  13619. }
  13620. break;
  13621. }
  13622. case 18: {
  13623. $42 = HEAP32[4838]|0;
  13624. $43 = ($42|0)==(0);
  13625. if (!($43)) {
  13626. _LoadCompressedTexture($0,$1,$2,$4,37815);
  13627. }
  13628. break;
  13629. }
  13630. default: {
  13631. _TraceLog(2,5192,$vararg_buffer9);
  13632. }
  13633. }
  13634. } while(0);
  13635. $44 = HEAP32[4839]|0;
  13636. $45 = ($44|0)==(0);
  13637. if ($45) {
  13638. _glTexParameteri(3553,10242,33071);
  13639. _glTexParameteri(3553,10243,33071);
  13640. } else {
  13641. _glTexParameteri(3553,10242,10497);
  13642. _glTexParameteri(3553,10243,10497);
  13643. }
  13644. _glTexParameteri(3553,10240,9728);
  13645. _glTexParameteri(3553,10241,9728);
  13646. _glBindTexture(3553,0);
  13647. $46 = HEAP32[$5>>2]|0;
  13648. $47 = ($46|0)==(0);
  13649. if ($47) {
  13650. _TraceLog(2,12367,$vararg_buffer15);
  13651. $$0 = HEAP32[$5>>2]|0;
  13652. STACKTOP = sp;return ($$0|0);
  13653. } else {
  13654. HEAP32[$vararg_buffer11>>2] = $46;
  13655. $vararg_ptr13 = ((($vararg_buffer11)) + 4|0);
  13656. HEAP32[$vararg_ptr13>>2] = $1;
  13657. $vararg_ptr14 = ((($vararg_buffer11)) + 8|0);
  13658. HEAP32[$vararg_ptr14>>2] = $2;
  13659. _TraceLog(0,5221,$vararg_buffer11);
  13660. $$0 = HEAP32[$5>>2]|0;
  13661. STACKTOP = sp;return ($$0|0);
  13662. }
  13663. return (0)|0;
  13664. }
  13665. function _LoadCompressedTexture($0,$1,$2,$3,$4) {
  13666. $0 = $0|0;
  13667. $1 = $1|0;
  13668. $2 = $2|0;
  13669. $3 = $3|0;
  13670. $4 = $4|0;
  13671. 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;
  13672. var $23 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, $or$cond42 = 0, label = 0, sp = 0;
  13673. sp = STACKTOP;
  13674. _glPixelStorei(3317,1);
  13675. switch ($4|0) {
  13676. case 33776: case 33777: case 36196: case 37492: {
  13677. $$038 = 8;
  13678. break;
  13679. }
  13680. default: {
  13681. $$038 = 16;
  13682. }
  13683. }
  13684. $5 = ($3|0)<(1);
  13685. $6 = $1 | $2;
  13686. $7 = ($6|0)==(0);
  13687. $or$cond42 = $5 | $7;
  13688. if ($or$cond42) {
  13689. return;
  13690. } else {
  13691. $$03645 = 0;$$03744 = 0;$$03943 = $2;$$046 = $1;
  13692. }
  13693. while(1) {
  13694. $8 = (($$046) + 3)|0;
  13695. $9 = (($8|0) / 4)&-1;
  13696. $10 = (($$03943) + 3)|0;
  13697. $11 = (($10|0) / 4)&-1;
  13698. $12 = Math_imul($11, $$038)|0;
  13699. $13 = Math_imul($12, $9)|0;
  13700. $14 = (($0) + ($$03744)|0);
  13701. _glCompressedTexImage2D(3553,($$03645|0),($4|0),($$046|0),($$03943|0),0,($13|0),($14|0));
  13702. $15 = (($13) + ($$03744))|0;
  13703. $16 = (($$046|0) / 2)&-1;
  13704. $17 = (($$03943|0) / 2)&-1;
  13705. $18 = ($$046|0)<(2);
  13706. $$ = $18 ? 1 : $16;
  13707. $19 = ($$03943|0)<(2);
  13708. $$140 = $19 ? 1 : $17;
  13709. $20 = (($$03645) + 1)|0;
  13710. $21 = ($20|0)>=($3|0);
  13711. $22 = $$ | $$140;
  13712. $23 = ($22|0)==(0);
  13713. $or$cond = $21 | $23;
  13714. if ($or$cond) {
  13715. break;
  13716. } else {
  13717. $$03645 = $20;$$03744 = $15;$$03943 = $$140;$$046 = $$;
  13718. }
  13719. }
  13720. return;
  13721. }
  13722. function _GetImageData($0) {
  13723. $0 = $0|0;
  13724. 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;
  13725. 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;
  13726. 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;
  13727. 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;
  13728. 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;
  13729. 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;
  13730. 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;
  13731. var $97 = 0.0, $98 = 0.0, $99 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  13732. sp = STACKTOP;
  13733. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  13734. $vararg_buffer = sp;
  13735. $1 = ((($0)) + 4|0);
  13736. $2 = HEAP32[$1>>2]|0;
  13737. $3 = ((($0)) + 8|0);
  13738. $4 = HEAP32[$3>>2]|0;
  13739. $5 = $2 << 2;
  13740. $6 = Math_imul($5, $4)|0;
  13741. $7 = (_malloc($6)|0);
  13742. $8 = HEAP32[$1>>2]|0;
  13743. $9 = Math_imul($4, $8)|0;
  13744. $10 = ($9|0)>(0);
  13745. if (!($10)) {
  13746. STACKTOP = sp;return ($7|0);
  13747. }
  13748. $11 = ((($0)) + 16|0);
  13749. $12 = HEAP32[$11>>2]|0;
  13750. $13 = HEAP32[$0>>2]|0;
  13751. $$0104105 = 0;$$0106 = 0;
  13752. while(1) {
  13753. switch ($12|0) {
  13754. case 1: {
  13755. $14 = (($13) + ($$0106)|0);
  13756. $15 = HEAP8[$14>>0]|0;
  13757. $16 = (($7) + ($$0104105<<2)|0);
  13758. HEAP8[$16>>0] = $15;
  13759. $17 = HEAP8[$14>>0]|0;
  13760. $18 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  13761. HEAP8[$18>>0] = $17;
  13762. $19 = HEAP8[$14>>0]|0;
  13763. $20 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  13764. HEAP8[$20>>0] = $19;
  13765. $21 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  13766. HEAP8[$21>>0] = -1;
  13767. $22 = (($$0106) + 1)|0;
  13768. $$1 = $22;
  13769. break;
  13770. }
  13771. case 2: {
  13772. $23 = (($13) + ($$0106)|0);
  13773. $24 = HEAP8[$23>>0]|0;
  13774. $25 = (($7) + ($$0104105<<2)|0);
  13775. HEAP8[$25>>0] = $24;
  13776. $26 = HEAP8[$23>>0]|0;
  13777. $27 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  13778. HEAP8[$27>>0] = $26;
  13779. $28 = HEAP8[$23>>0]|0;
  13780. $29 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  13781. HEAP8[$29>>0] = $28;
  13782. $30 = (($$0106) + 1)|0;
  13783. $31 = (($13) + ($30)|0);
  13784. $32 = HEAP8[$31>>0]|0;
  13785. $33 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  13786. HEAP8[$33>>0] = $32;
  13787. $34 = (($$0106) + 2)|0;
  13788. $$1 = $34;
  13789. break;
  13790. }
  13791. case 5: {
  13792. $35 = (($13) + ($$0106<<1)|0);
  13793. $36 = HEAP16[$35>>1]|0;
  13794. $37 = $36&65535;
  13795. $38 = $37 >>> 11;
  13796. $39 = (+($38|0));
  13797. $40 = $39 * 8.0;
  13798. $41 = (~~(($40))&255);
  13799. $42 = (($7) + ($$0104105<<2)|0);
  13800. HEAP8[$42>>0] = $41;
  13801. $43 = $37 >>> 6;
  13802. $44 = $43 & 31;
  13803. $45 = (+($44|0));
  13804. $46 = $45 * 8.0;
  13805. $47 = (~~(($46))&255);
  13806. $48 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  13807. HEAP8[$48>>0] = $47;
  13808. $49 = $37 >>> 1;
  13809. $50 = $49 & 31;
  13810. $51 = (+($50|0));
  13811. $52 = $51 * 8.0;
  13812. $53 = (~~(($52))&255);
  13813. $54 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  13814. HEAP8[$54>>0] = $53;
  13815. $55 = $37 & 1;
  13816. $56 = (0 - ($55))|0;
  13817. $57 = $56&255;
  13818. $58 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  13819. HEAP8[$58>>0] = $57;
  13820. $59 = (($$0106) + 1)|0;
  13821. $$1 = $59;
  13822. break;
  13823. }
  13824. case 3: {
  13825. $60 = (($13) + ($$0106<<1)|0);
  13826. $61 = HEAP16[$60>>1]|0;
  13827. $62 = $61&65535;
  13828. $63 = $62 >>> 11;
  13829. $64 = (+($63|0));
  13830. $65 = $64 * 8.0;
  13831. $66 = (~~(($65))&255);
  13832. $67 = (($7) + ($$0104105<<2)|0);
  13833. HEAP8[$67>>0] = $66;
  13834. $68 = $62 >>> 5;
  13835. $69 = $68 & 63;
  13836. $70 = (+($69|0));
  13837. $71 = $70 * 4.0;
  13838. $72 = (~~(($71))&255);
  13839. $73 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  13840. HEAP8[$73>>0] = $72;
  13841. $74 = $62 & 31;
  13842. $75 = (+($74|0));
  13843. $76 = $75 * 8.0;
  13844. $77 = (~~(($76))&255);
  13845. $78 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  13846. HEAP8[$78>>0] = $77;
  13847. $79 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  13848. HEAP8[$79>>0] = -1;
  13849. $80 = (($$0106) + 1)|0;
  13850. $$1 = $80;
  13851. break;
  13852. }
  13853. case 6: {
  13854. $81 = (($13) + ($$0106<<1)|0);
  13855. $82 = HEAP16[$81>>1]|0;
  13856. $83 = $82&65535;
  13857. $84 = $83 >>> 12;
  13858. $85 = (+($84|0));
  13859. $86 = $85 * 17.0;
  13860. $87 = (~~(($86))&255);
  13861. $88 = (($7) + ($$0104105<<2)|0);
  13862. HEAP8[$88>>0] = $87;
  13863. $89 = $83 >>> 8;
  13864. $90 = $89 & 15;
  13865. $91 = (+($90|0));
  13866. $92 = $91 * 17.0;
  13867. $93 = (~~(($92))&255);
  13868. $94 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  13869. HEAP8[$94>>0] = $93;
  13870. $95 = $83 >>> 4;
  13871. $96 = $95 & 15;
  13872. $97 = (+($96|0));
  13873. $98 = $97 * 17.0;
  13874. $99 = (~~(($98))&255);
  13875. $100 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  13876. HEAP8[$100>>0] = $99;
  13877. $101 = $83 & 15;
  13878. $102 = (+($101|0));
  13879. $103 = $102 * 17.0;
  13880. $104 = (~~(($103))&255);
  13881. $105 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  13882. HEAP8[$105>>0] = $104;
  13883. $106 = (($$0106) + 1)|0;
  13884. $$1 = $106;
  13885. break;
  13886. }
  13887. case 7: {
  13888. $107 = (($13) + ($$0106)|0);
  13889. $108 = HEAP8[$107>>0]|0;
  13890. $109 = (($7) + ($$0104105<<2)|0);
  13891. HEAP8[$109>>0] = $108;
  13892. $110 = (($$0106) + 1)|0;
  13893. $111 = (($13) + ($110)|0);
  13894. $112 = HEAP8[$111>>0]|0;
  13895. $113 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  13896. HEAP8[$113>>0] = $112;
  13897. $114 = (($$0106) + 2)|0;
  13898. $115 = (($13) + ($114)|0);
  13899. $116 = HEAP8[$115>>0]|0;
  13900. $117 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  13901. HEAP8[$117>>0] = $116;
  13902. $118 = (($$0106) + 3)|0;
  13903. $119 = (($13) + ($118)|0);
  13904. $120 = HEAP8[$119>>0]|0;
  13905. $121 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  13906. HEAP8[$121>>0] = $120;
  13907. $122 = (($$0106) + 4)|0;
  13908. $$1 = $122;
  13909. break;
  13910. }
  13911. case 4: {
  13912. $123 = (($13) + ($$0106)|0);
  13913. $124 = HEAP8[$123>>0]|0;
  13914. $125 = (($7) + ($$0104105<<2)|0);
  13915. HEAP8[$125>>0] = $124;
  13916. $126 = (($$0106) + 1)|0;
  13917. $127 = (($13) + ($126)|0);
  13918. $128 = HEAP8[$127>>0]|0;
  13919. $129 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  13920. HEAP8[$129>>0] = $128;
  13921. $130 = (($$0106) + 2)|0;
  13922. $131 = (($13) + ($130)|0);
  13923. $132 = HEAP8[$131>>0]|0;
  13924. $133 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  13925. HEAP8[$133>>0] = $132;
  13926. $134 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  13927. HEAP8[$134>>0] = -1;
  13928. $135 = (($$0106) + 3)|0;
  13929. $$1 = $135;
  13930. break;
  13931. }
  13932. default: {
  13933. _TraceLog(2,5324,$vararg_buffer);
  13934. $$1 = $$0106;
  13935. }
  13936. }
  13937. $136 = (($$0104105) + 1)|0;
  13938. $137 = HEAP32[$1>>2]|0;
  13939. $138 = HEAP32[$3>>2]|0;
  13940. $139 = Math_imul($138, $137)|0;
  13941. $140 = ($136|0)<($139|0);
  13942. if ($140) {
  13943. $$0104105 = $136;$$0106 = $$1;
  13944. } else {
  13945. break;
  13946. }
  13947. }
  13948. STACKTOP = sp;return ($7|0);
  13949. }
  13950. function _ErrorCallback($0,$1) {
  13951. $0 = $0|0;
  13952. $1 = $1|0;
  13953. var $vararg_buffer = 0, $vararg_ptr1 = 0, label = 0, sp = 0;
  13954. sp = STACKTOP;
  13955. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  13956. $vararg_buffer = sp;
  13957. HEAP32[$vararg_buffer>>2] = $0;
  13958. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  13959. HEAP32[$vararg_ptr1>>2] = $1;
  13960. _TraceLog(2,9190,$vararg_buffer);
  13961. STACKTOP = sp;return;
  13962. }
  13963. function _rlGetVersion() {
  13964. var label = 0, sp = 0;
  13965. sp = STACKTOP;
  13966. return 4;
  13967. }
  13968. function _SetupFramebufferSize($0,$1) {
  13969. $0 = $0|0;
  13970. $1 = $1|0;
  13971. 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;
  13972. 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;
  13973. 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;
  13974. var $vararg_ptr3 = 0, $vararg_ptr7 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  13975. sp = STACKTOP;
  13976. STACKTOP = STACKTOP + 112|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(112|0);
  13977. $vararg_buffer8 = sp + 24|0;
  13978. $vararg_buffer4 = sp + 16|0;
  13979. $vararg_buffer = sp;
  13980. $2 = sp + 40|0;
  13981. $3 = HEAP32[4818]|0;
  13982. $4 = ($3|0)>($0|0);
  13983. if (!($4)) {
  13984. $5 = HEAP32[4817]|0;
  13985. $6 = ($5|0)>($1|0);
  13986. if (!($6)) {
  13987. $30 = ($3|0)<($0|0);
  13988. $31 = ($5|0)<($1|0);
  13989. $or$cond = $30 | $31;
  13990. if (!($or$cond)) {
  13991. HEAP32[4859] = $3;
  13992. HEAP32[4860] = $5;
  13993. HEAP32[4861] = 0;
  13994. HEAP32[4862] = 0;
  13995. STACKTOP = sp;return;
  13996. }
  13997. HEAP32[$vararg_buffer8>>2] = $3;
  13998. $vararg_ptr11 = ((($vararg_buffer8)) + 4|0);
  13999. HEAP32[$vararg_ptr11>>2] = $5;
  14000. $vararg_ptr12 = ((($vararg_buffer8)) + 8|0);
  14001. HEAP32[$vararg_ptr12>>2] = $0;
  14002. $vararg_ptr13 = ((($vararg_buffer8)) + 12|0);
  14003. HEAP32[$vararg_ptr13>>2] = $1;
  14004. _TraceLog(0,9124,$vararg_buffer8);
  14005. $32 = (+($0|0));
  14006. $33 = (+($1|0));
  14007. $34 = $32 / $33;
  14008. $35 = HEAP32[4818]|0;
  14009. $36 = (+($35|0));
  14010. $37 = HEAP32[4817]|0;
  14011. $38 = (+($37|0));
  14012. $39 = $36 / $38;
  14013. $40 = !($34 <= $39);
  14014. if ($40) {
  14015. $44 = $34 * $38;
  14016. $roundf = (+_roundf((+$44)));
  14017. $45 = (~~(($roundf)));
  14018. HEAP32[4859] = $45;
  14019. HEAP32[4860] = $37;
  14020. $46 = (($45) - ($35))|0;
  14021. HEAP32[4861] = $46;
  14022. $$sink1 = 0;
  14023. } else {
  14024. HEAP32[4859] = $35;
  14025. $41 = $36 / $34;
  14026. $roundf38 = (+_roundf((+$41)));
  14027. $42 = (~~(($roundf38)));
  14028. HEAP32[4860] = $42;
  14029. HEAP32[4861] = 0;
  14030. $43 = (($42) - ($37))|0;
  14031. $$sink1 = $43;
  14032. }
  14033. HEAP32[4862] = $$sink1;
  14034. STACKTOP = sp;return;
  14035. }
  14036. }
  14037. $7 = HEAP32[4817]|0;
  14038. HEAP32[$vararg_buffer>>2] = $3;
  14039. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  14040. HEAP32[$vararg_ptr1>>2] = $7;
  14041. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  14042. HEAP32[$vararg_ptr2>>2] = $0;
  14043. $vararg_ptr3 = ((($vararg_buffer)) + 12|0);
  14044. HEAP32[$vararg_ptr3>>2] = $1;
  14045. _TraceLog(2,8981,$vararg_buffer);
  14046. $8 = (+($0|0));
  14047. $9 = HEAP32[4818]|0;
  14048. $10 = (+($9|0));
  14049. $11 = $8 / $10;
  14050. $12 = (+($1|0));
  14051. $13 = HEAP32[4817]|0;
  14052. $14 = (+($13|0));
  14053. $15 = $12 / $14;
  14054. $16 = !($11 <= $15);
  14055. if ($16) {
  14056. $22 = $10 * $15;
  14057. $roundf39 = (+_roundf((+$22)));
  14058. $23 = (~~(($roundf39)));
  14059. HEAP32[4859] = $23;
  14060. HEAP32[4860] = $1;
  14061. $24 = (($0) - ($23))|0;
  14062. HEAP32[4861] = $24;
  14063. $$sink = 0;
  14064. } else {
  14065. HEAP32[4859] = $0;
  14066. $17 = HEAP32[4817]|0;
  14067. $18 = (+($17|0));
  14068. $19 = $11 * $18;
  14069. $roundf40 = (+_roundf((+$19)));
  14070. $20 = (~~(($roundf40)));
  14071. HEAP32[4860] = $20;
  14072. HEAP32[4861] = 0;
  14073. $21 = (($1) - ($20))|0;
  14074. $$sink = $21;
  14075. }
  14076. HEAP32[4862] = $$sink;
  14077. $25 = HEAP32[4859]|0;
  14078. $26 = (+($25|0));
  14079. $27 = HEAP32[4818]|0;
  14080. $28 = (+($27|0));
  14081. $29 = $26 / $28;
  14082. _MatrixScale($2,$29,$29,$29);
  14083. dest=19360; 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));
  14084. HEAP32[4859] = $0;
  14085. HEAP32[4860] = $1;
  14086. HEAP32[$vararg_buffer4>>2] = $0;
  14087. $vararg_ptr7 = ((($vararg_buffer4)) + 4|0);
  14088. HEAP32[$vararg_ptr7>>2] = $1;
  14089. _TraceLog(2,9059,$vararg_buffer4);
  14090. STACKTOP = sp;return;
  14091. }
  14092. function _WindowSizeCallback($0,$1,$2) {
  14093. $0 = $0|0;
  14094. $1 = $1|0;
  14095. $2 = $2|0;
  14096. var $3 = 0.0, $4 = 0.0, label = 0, sp = 0;
  14097. sp = STACKTOP;
  14098. _rlViewport(0,0,$1,$2);
  14099. _rlMatrixMode(5889);
  14100. _rlLoadIdentity();
  14101. $3 = (+($1|0));
  14102. $4 = (+($2|0));
  14103. _rlOrtho(0.0,$3,$4,0.0,0.0,1.0);
  14104. _rlMatrixMode(5888);
  14105. _rlLoadIdentity();
  14106. _rlClearScreenBuffers();
  14107. HEAP32[4818] = $1;
  14108. HEAP32[4817] = $2;
  14109. HEAP32[4859] = $1;
  14110. HEAP32[4860] = $2;
  14111. return;
  14112. }
  14113. function _CursorEnterCallback($0,$1) {
  14114. $0 = $0|0;
  14115. $1 = $1|0;
  14116. var label = 0, sp = 0;
  14117. sp = STACKTOP;
  14118. return;
  14119. }
  14120. function _KeyCallback($0,$1,$2,$3,$4) {
  14121. $0 = $0|0;
  14122. $1 = $1|0;
  14123. $2 = $2|0;
  14124. $3 = $3|0;
  14125. $4 = $4|0;
  14126. var $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, label = 0, sp = 0;
  14127. sp = STACKTOP;
  14128. $5 = HEAP32[762]|0;
  14129. $6 = ($5|0)==($1|0);
  14130. $7 = ($3|0)==(1);
  14131. $or$cond = $7 & $6;
  14132. if ($or$cond) {
  14133. _glfwSetWindowShouldClose(($0|0),1);
  14134. return;
  14135. }
  14136. $8 = $3&255;
  14137. $9 = (22111 + ($1)|0);
  14138. HEAP8[$9>>0] = $8;
  14139. if (!($7)) {
  14140. return;
  14141. }
  14142. HEAP32[761] = $1;
  14143. return;
  14144. }
  14145. function _MouseButtonCallback($0,$1,$2,$3) {
  14146. $0 = $0|0;
  14147. $1 = $1|0;
  14148. $2 = $2|0;
  14149. $3 = $3|0;
  14150. 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;
  14151. 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;
  14152. sp = STACKTOP;
  14153. STACKTOP = STACKTOP + 128|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(128|0);
  14154. $$byval_copy = sp + 64|0;
  14155. $4 = sp + 8|0;
  14156. $5 = sp;
  14157. $6 = $2&255;
  14158. $7 = (22105 + ($1)|0);
  14159. HEAP8[$7>>0] = $6;
  14160. $8 = (_IsMouseButtonPressed(0)|0);
  14161. $9 = ($8|0)==(0);
  14162. if ($9) {
  14163. $10 = (_IsMouseButtonReleased(0)|0);
  14164. $11 = ($10|0)==(0);
  14165. if (!($11)) {
  14166. $$sink = 0;
  14167. label = 3;
  14168. }
  14169. } else {
  14170. $$sink = 1;
  14171. label = 3;
  14172. }
  14173. if ((label|0) == 3) {
  14174. HEAP32[$4>>2] = $$sink;
  14175. }
  14176. $12 = ((($4)) + 8|0);
  14177. HEAP32[$12>>2] = 0;
  14178. $13 = ((($4)) + 4|0);
  14179. HEAP32[$13>>2] = 1;
  14180. $14 = ((($4)) + 24|0);
  14181. _GetMousePosition($5);
  14182. $15 = $5;
  14183. $16 = $15;
  14184. $17 = HEAP32[$16>>2]|0;
  14185. $18 = (($15) + 4)|0;
  14186. $19 = $18;
  14187. $20 = HEAP32[$19>>2]|0;
  14188. $21 = $14;
  14189. $22 = $21;
  14190. HEAP32[$22>>2] = $17;
  14191. $23 = (($21) + 4)|0;
  14192. $24 = $23;
  14193. HEAP32[$24>>2] = $20;
  14194. $25 = (_GetScreenWidth()|0);
  14195. $26 = (+($25|0));
  14196. $27 = +HEAPF32[$14>>2];
  14197. $28 = $27 / $26;
  14198. HEAPF32[$14>>2] = $28;
  14199. $29 = (_GetScreenHeight()|0);
  14200. $30 = (+($29|0));
  14201. $31 = ((($4)) + 28|0);
  14202. $32 = +HEAPF32[$31>>2];
  14203. $33 = $32 / $30;
  14204. HEAPF32[$31>>2] = $33;
  14205. 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));
  14206. _ProcessGestureEvent($$byval_copy);
  14207. STACKTOP = sp;return;
  14208. }
  14209. function _MouseCursorPosCallback($0,$1,$2) {
  14210. $0 = $0|0;
  14211. $1 = +$1;
  14212. $2 = +$2;
  14213. 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;
  14214. 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;
  14215. sp = STACKTOP;
  14216. STACKTOP = STACKTOP + 112|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(112|0);
  14217. $$byval_copy = sp + 56|0;
  14218. $3 = sp;
  14219. HEAP32[$3>>2] = 2;
  14220. $4 = ((($3)) + 8|0);
  14221. HEAP32[$4>>2] = 0;
  14222. $5 = ((($3)) + 4|0);
  14223. HEAP32[$5>>2] = 1;
  14224. $6 = $1;
  14225. $7 = $2;
  14226. $$sroa$0$0$$sroa_idx = ((($3)) + 24|0);
  14227. HEAPF32[$$sroa$0$0$$sroa_idx>>2] = $6;
  14228. $$sroa$2$0$$sroa_idx1 = ((($3)) + 28|0);
  14229. HEAPF32[$$sroa$2$0$$sroa_idx1>>2] = $7;
  14230. $8 = ((($3)) + 24|0);
  14231. $9 = $8;
  14232. $10 = $9;
  14233. $11 = HEAP32[$10>>2]|0;
  14234. $12 = (($9) + 4)|0;
  14235. $13 = $12;
  14236. $14 = HEAP32[$13>>2]|0;
  14237. $15 = 18608;
  14238. $16 = $15;
  14239. HEAP32[$16>>2] = $11;
  14240. $17 = (($15) + 4)|0;
  14241. $18 = $17;
  14242. HEAP32[$18>>2] = $14;
  14243. $19 = (_GetScreenWidth()|0);
  14244. $20 = (+($19|0));
  14245. $21 = +HEAPF32[$8>>2];
  14246. $22 = $21 / $20;
  14247. HEAPF32[$8>>2] = $22;
  14248. $23 = (_GetScreenHeight()|0);
  14249. $24 = (+($23|0));
  14250. $25 = +HEAPF32[$$sroa$2$0$$sroa_idx1>>2];
  14251. $26 = $25 / $24;
  14252. HEAPF32[$$sroa$2$0$$sroa_idx1>>2] = $26;
  14253. 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));
  14254. _ProcessGestureEvent($$byval_copy);
  14255. STACKTOP = sp;return;
  14256. }
  14257. function _CharCallback($0,$1) {
  14258. $0 = $0|0;
  14259. $1 = $1|0;
  14260. var label = 0, sp = 0;
  14261. sp = STACKTOP;
  14262. HEAP32[761] = $1;
  14263. return;
  14264. }
  14265. function _ScrollCallback($0,$1,$2) {
  14266. $0 = $0|0;
  14267. $1 = +$1;
  14268. $2 = +$2;
  14269. var $3 = 0, label = 0, sp = 0;
  14270. sp = STACKTOP;
  14271. $3 = (~~(($2)));
  14272. HEAP32[5232] = $3;
  14273. return;
  14274. }
  14275. function _WindowIconifyCallback($0,$1) {
  14276. $0 = $0|0;
  14277. $1 = $1|0;
  14278. var $$sink = 0, $2 = 0, label = 0, sp = 0;
  14279. sp = STACKTOP;
  14280. $2 = ($1|0)!=(0);
  14281. $$sink = $2&1;
  14282. HEAP32[5231] = $$sink;
  14283. return;
  14284. }
  14285. function _rlglInit($0,$1) {
  14286. $0 = $0|0;
  14287. $1 = $1|0;
  14288. 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;
  14289. 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;
  14290. 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;
  14291. 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;
  14292. 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;
  14293. 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;
  14294. sp = STACKTOP;
  14295. STACKTOP = STACKTOP + 2464|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(2464|0);
  14296. $vararg_buffer41 = sp + 2184|0;
  14297. $vararg_buffer39 = sp + 2176|0;
  14298. $vararg_buffer36 = sp + 2168|0;
  14299. $vararg_buffer34 = sp + 2160|0;
  14300. $vararg_buffer31 = sp + 2152|0;
  14301. $vararg_buffer29 = sp + 2144|0;
  14302. $vararg_buffer27 = sp + 2136|0;
  14303. $vararg_buffer25 = sp + 2128|0;
  14304. $vararg_buffer23 = sp + 2120|0;
  14305. $vararg_buffer21 = sp + 2112|0;
  14306. $vararg_buffer19 = sp + 2104|0;
  14307. $vararg_buffer17 = sp + 2096|0;
  14308. $vararg_buffer15 = sp + 2088|0;
  14309. $vararg_buffer13 = sp + 2080|0;
  14310. $vararg_buffer10 = sp + 2072|0;
  14311. $vararg_buffer7 = sp + 24|0;
  14312. $vararg_buffer4 = sp + 16|0;
  14313. $vararg_buffer1 = sp + 8|0;
  14314. $vararg_buffer = sp;
  14315. $2 = sp + 2400|0;
  14316. $3 = sp + 2384|0;
  14317. $4 = sp + 2320|0;
  14318. $5 = sp + 2256|0;
  14319. $6 = sp + 2192|0;
  14320. $7 = (_glGetString(7936)|0);
  14321. HEAP32[$vararg_buffer>>2] = $7;
  14322. _TraceLog(0,5622,$vararg_buffer);
  14323. $8 = (_glGetString(7937)|0);
  14324. HEAP32[$vararg_buffer1>>2] = $8;
  14325. _TraceLog(0,5640,$vararg_buffer1);
  14326. $9 = (_glGetString(7938)|0);
  14327. HEAP32[$vararg_buffer4>>2] = $9;
  14328. _TraceLog(0,5658,$vararg_buffer4);
  14329. $10 = (_glGetString(35724)|0);
  14330. HEAP32[$vararg_buffer7>>2] = $10;
  14331. _TraceLog(0,5676,$vararg_buffer7);
  14332. $11 = (_glGetString(7939)|0);
  14333. $12 = (_strlen($11)|0);
  14334. $13 = (($12) + 1)|0;
  14335. $14 = (_malloc($13)|0);
  14336. _memcpy(($14|0),($11|0),($13|0))|0;
  14337. $$062 = 0;$$sink63 = $14;
  14338. while(1) {
  14339. $15 = (_strtok($$sink63,5694)|0);
  14340. $16 = (($vararg_buffer7) + ($$062<<2)|0);
  14341. HEAP32[$16>>2] = $15;
  14342. $17 = ($15|0)==(0|0);
  14343. $18 = (($$062) + 1)|0;
  14344. if ($17) {
  14345. break;
  14346. } else {
  14347. $$062 = $18;$$sink63 = 0;
  14348. }
  14349. }
  14350. _free($14);
  14351. $19 = (($$062) + -1)|0;
  14352. HEAP32[$vararg_buffer10>>2] = $19;
  14353. _TraceLog(0,5696,$vararg_buffer10);
  14354. $20 = ($$062|0)>(1);
  14355. if ($20) {
  14356. $$06167 = 0;
  14357. while(1) {
  14358. $23 = (($vararg_buffer7) + ($$06167<<2)|0);
  14359. $24 = HEAP32[$23>>2]|0;
  14360. $25 = (_strcmp($24,5731)|0);
  14361. $26 = ($25|0)==(0);
  14362. if ($26) {
  14363. HEAP32[4897] = 1;
  14364. $27 = (_eglGetProcAddress((5758|0))|0);
  14365. HEAP32[4898] = $27;
  14366. $28 = (_eglGetProcAddress((5779|0))|0);
  14367. HEAP32[4899] = $28;
  14368. $29 = (_eglGetProcAddress((5800|0))|0);
  14369. HEAP32[4900] = $29;
  14370. }
  14371. $30 = (_strcmp($24,5824)|0);
  14372. $31 = ($30|0)==(0);
  14373. if ($31) {
  14374. HEAP32[4839] = 1;
  14375. }
  14376. $32 = (_strcmp($24,5844)|0);
  14377. $33 = ($32|0)==(0);
  14378. if ($33) {
  14379. label = 12;
  14380. } else {
  14381. $34 = HEAP32[$23>>2]|0;
  14382. $35 = (_strcmp($34,5876)|0);
  14383. $36 = ($35|0)==(0);
  14384. if ($36) {
  14385. label = 12;
  14386. } else {
  14387. $37 = (_strcmp($34,5909)|0);
  14388. $38 = ($37|0)==(0);
  14389. if ($38) {
  14390. label = 12;
  14391. }
  14392. }
  14393. }
  14394. if ((label|0) == 12) {
  14395. label = 0;
  14396. HEAP32[4834] = 1;
  14397. }
  14398. $39 = (_strcmp($24,5949)|0);
  14399. $40 = ($39|0)==(0);
  14400. if ($40) {
  14401. label = 15;
  14402. } else {
  14403. $41 = HEAP32[$23>>2]|0;
  14404. $42 = (_strcmp($41,5985)|0);
  14405. $43 = ($42|0)==(0);
  14406. if ($43) {
  14407. label = 15;
  14408. }
  14409. }
  14410. if ((label|0) == 15) {
  14411. label = 0;
  14412. HEAP32[4835] = 1;
  14413. }
  14414. $44 = HEAP32[$23>>2]|0;
  14415. $45 = (_strcmp($44,6018)|0);
  14416. $46 = ($45|0)==(0);
  14417. if ($46) {
  14418. HEAP32[4836] = 1;
  14419. }
  14420. $47 = (_strcmp($44,6043)|0);
  14421. $48 = ($47|0)==(0);
  14422. if ($48) {
  14423. HEAP32[4837] = 1;
  14424. }
  14425. $49 = (_strcmp($44,6076)|0);
  14426. $50 = ($49|0)==(0);
  14427. if ($50) {
  14428. HEAP32[4838] = 1;
  14429. }
  14430. $51 = (_strcmp($44,6112)|0);
  14431. $52 = ($51|0)==(0);
  14432. if ($52) {
  14433. HEAP32[4901] = 1;
  14434. _glGetFloatv(34047,(19608|0));
  14435. }
  14436. $53 = HEAP32[$23>>2]|0;
  14437. $54 = (_strcmp($53,6146)|0);
  14438. $55 = ($54|0)==(0);
  14439. if ($55) {
  14440. HEAP32[4903] = 1;
  14441. }
  14442. $56 = (($$06167) + 1)|0;
  14443. $exitcond70 = ($56|0)==($19|0);
  14444. if ($exitcond70) {
  14445. break;
  14446. } else {
  14447. $$06167 = $56;
  14448. }
  14449. }
  14450. }
  14451. $21 = HEAP32[4897]|0;
  14452. $22 = ($21|0)==(0);
  14453. if ($22) {
  14454. _TraceLog(2,6249,$vararg_buffer15);
  14455. } else {
  14456. _TraceLog(0,6174,$vararg_buffer13);
  14457. }
  14458. $57 = HEAP32[4839]|0;
  14459. $58 = ($57|0)==(0);
  14460. if ($58) {
  14461. _TraceLog(2,6385,$vararg_buffer19);
  14462. } else {
  14463. _TraceLog(0,6310,$vararg_buffer17);
  14464. }
  14465. $59 = HEAP32[4834]|0;
  14466. $60 = ($59|0)==(0);
  14467. if (!($60)) {
  14468. _TraceLog(0,6477,$vararg_buffer21);
  14469. }
  14470. $61 = HEAP32[4835]|0;
  14471. $62 = ($61|0)==(0);
  14472. if (!($62)) {
  14473. _TraceLog(0,6523,$vararg_buffer23);
  14474. }
  14475. $63 = HEAP32[4836]|0;
  14476. $64 = ($63|0)==(0);
  14477. if (!($64)) {
  14478. _TraceLog(0,6570,$vararg_buffer25);
  14479. }
  14480. $65 = HEAP32[4837]|0;
  14481. $66 = ($65|0)==(0);
  14482. if (!($66)) {
  14483. _TraceLog(0,6621,$vararg_buffer27);
  14484. }
  14485. $67 = HEAP32[4838]|0;
  14486. $68 = ($67|0)==(0);
  14487. if (!($68)) {
  14488. _TraceLog(0,6668,$vararg_buffer29);
  14489. }
  14490. $69 = HEAP32[4901]|0;
  14491. $70 = ($69|0)==(0);
  14492. if (!($70)) {
  14493. $71 = +HEAPF32[4902];
  14494. $72 = $71;
  14495. HEAPF64[$vararg_buffer31>>3] = $72;
  14496. _TraceLog(0,6715,$vararg_buffer31);
  14497. }
  14498. $73 = HEAP32[4903]|0;
  14499. $74 = ($73|0)==(0);
  14500. if (!($74)) {
  14501. _TraceLog(0,6781,$vararg_buffer34);
  14502. }
  14503. HEAP32[$vararg_buffer10>>2] = -1;
  14504. $75 = (_rlglLoadTexture($vararg_buffer10,1,1,7,1)|0);
  14505. HEAP32[4904] = $75;
  14506. $76 = ($75|0)==(0);
  14507. if ($76) {
  14508. _TraceLog(2,6885,$vararg_buffer39);
  14509. } else {
  14510. HEAP32[$vararg_buffer36>>2] = $75;
  14511. _TraceLog(0,6834,$vararg_buffer36);
  14512. }
  14513. _LoadDefaultShader($2);
  14514. dest=19620; 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));
  14515. dest=19676; 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));
  14516. _LoadDefaultBuffers();
  14517. $77 = (_malloc(49152)|0);
  14518. HEAP32[4933] = $77;
  14519. $$06066 = 0;
  14520. while(1) {
  14521. $79 = HEAP32[4933]|0;
  14522. $80 = (($79) + (($$06066*12)|0)|0);
  14523. _VectorZero($3);
  14524. ;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;
  14525. $81 = (($$06066) + 1)|0;
  14526. $exitcond69 = ($81|0)==(4096);
  14527. if ($exitcond69) {
  14528. break;
  14529. } else {
  14530. $$06066 = $81;
  14531. }
  14532. }
  14533. $78 = (_malloc(36864)|0);
  14534. HEAP32[4934] = $78;
  14535. $$05965 = 0;
  14536. while(1) {
  14537. $82 = (((($78) + (($$05965*144)|0)|0)) + 8|0);
  14538. HEAP32[$82>>2] = 0;
  14539. $83 = (($78) + (($$05965*144)|0)|0);
  14540. HEAP32[$83>>2] = 0;
  14541. $84 = (($$05965) + 1)|0;
  14542. $exitcond = ($84|0)==(256);
  14543. if ($exitcond) {
  14544. break;
  14545. } else {
  14546. $$05965 = $84;
  14547. }
  14548. }
  14549. HEAP32[4935] = 1;
  14550. $85 = HEAP32[4904]|0;
  14551. $86 = ((($78)) + 8|0);
  14552. HEAP32[$86>>2] = $85;
  14553. HEAP32[4936] = 4;
  14554. _MatrixIdentity($4);
  14555. dest=19748; 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));
  14556. _MatrixIdentity($4);
  14557. dest=(19812); 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));
  14558. _MatrixIdentity($4);
  14559. dest=(19876); 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));
  14560. _MatrixIdentity($4);
  14561. dest=(19940); 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));
  14562. _MatrixIdentity($4);
  14563. dest=(20004); 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));
  14564. _MatrixIdentity($4);
  14565. dest=(20068); 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));
  14566. _MatrixIdentity($4);
  14567. dest=(20132); 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));
  14568. _MatrixIdentity($4);
  14569. dest=(20196); 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));
  14570. _MatrixIdentity($4);
  14571. dest=(20260); 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));
  14572. _MatrixIdentity($4);
  14573. dest=(20324); 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));
  14574. _MatrixIdentity($4);
  14575. dest=(20388); 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));
  14576. _MatrixIdentity($4);
  14577. dest=(20452); 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));
  14578. _MatrixIdentity($4);
  14579. dest=(20516); 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));
  14580. _MatrixIdentity($4);
  14581. dest=(20580); 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));
  14582. _MatrixIdentity($4);
  14583. dest=(20644); 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));
  14584. _MatrixIdentity($4);
  14585. dest=(20708); 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));
  14586. _MatrixIdentity($5);
  14587. dest=19456; 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));
  14588. _MatrixIdentity($6);
  14589. dest=19520; 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));
  14590. HEAP32[4863] = 19520;
  14591. _glDepthFunc(515);
  14592. _glDisable(2929);
  14593. _glBlendFunc(770,771);
  14594. _glEnable(3042);
  14595. _glCullFace(1029);
  14596. _glFrontFace(2305);
  14597. _glEnable(2884);
  14598. _glClearColor(0.0,0.0,0.0,1.0);
  14599. _glClearDepthf(1.0);
  14600. _glClear(16640);
  14601. HEAP32[5193] = $0;
  14602. HEAP32[5194] = $1;
  14603. _TraceLog(0,6924,$vararg_buffer41);
  14604. STACKTOP = sp;return;
  14605. }
  14606. function _SetupViewport() {
  14607. var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, label = 0, sp = 0;
  14608. sp = STACKTOP;
  14609. $0 = HEAP32[4861]|0;
  14610. $1 = (($0|0) / 2)&-1;
  14611. $2 = HEAP32[4862]|0;
  14612. $3 = (($2|0) / 2)&-1;
  14613. $4 = HEAP32[4859]|0;
  14614. $5 = (($4) - ($0))|0;
  14615. $6 = HEAP32[4860]|0;
  14616. $7 = (($6) - ($2))|0;
  14617. _rlViewport($1,$3,$5,$7);
  14618. return;
  14619. }
  14620. function _rlMatrixMode($0) {
  14621. $0 = $0|0;
  14622. var $modelview$sink = 0, label = 0, sp = 0;
  14623. sp = STACKTOP;
  14624. switch ($0|0) {
  14625. case 5889: {
  14626. $modelview$sink = 19456;
  14627. label = 3;
  14628. break;
  14629. }
  14630. case 5888: {
  14631. $modelview$sink = 19520;
  14632. label = 3;
  14633. break;
  14634. }
  14635. default: {
  14636. }
  14637. }
  14638. if ((label|0) == 3) {
  14639. HEAP32[4863] = $modelview$sink;
  14640. }
  14641. HEAP32[4896] = $0;
  14642. return;
  14643. }
  14644. function _rlLoadIdentity() {
  14645. var $0 = 0, $1 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  14646. sp = STACKTOP;
  14647. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  14648. $0 = sp;
  14649. $1 = HEAP32[4863]|0;
  14650. _MatrixIdentity($0);
  14651. 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));
  14652. STACKTOP = sp;return;
  14653. }
  14654. function _rlOrtho($0,$1,$2,$3,$4,$5) {
  14655. $0 = +$0;
  14656. $1 = +$1;
  14657. $2 = +$2;
  14658. $3 = +$3;
  14659. $4 = +$4;
  14660. $5 = +$5;
  14661. var $$byval_copy = 0, $$byval_copy1 = 0, $6 = 0, $7 = 0, $8 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  14662. sp = STACKTOP;
  14663. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  14664. $$byval_copy1 = sp + 192|0;
  14665. $$byval_copy = sp + 128|0;
  14666. $6 = sp + 64|0;
  14667. $7 = sp;
  14668. _MatrixOrtho($6,$0,$1,$2,$3,$4,$5);
  14669. _MatrixTranspose($6);
  14670. $8 = HEAP32[4863]|0;
  14671. 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));
  14672. 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));
  14673. _MatrixMultiply($7,$$byval_copy,$$byval_copy1);
  14674. 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));
  14675. STACKTOP = sp;return;
  14676. }
  14677. function _ClearBackground($0) {
  14678. $0 = $0|0;
  14679. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, label = 0, sp = 0;
  14680. sp = STACKTOP;
  14681. $1 = HEAP8[$0>>0]|0;
  14682. $2 = ((($0)) + 1|0);
  14683. $3 = HEAP8[$2>>0]|0;
  14684. $4 = ((($0)) + 2|0);
  14685. $5 = HEAP8[$4>>0]|0;
  14686. $6 = ((($0)) + 3|0);
  14687. $7 = HEAP8[$6>>0]|0;
  14688. _rlClearColor($1,$3,$5,$7);
  14689. return;
  14690. }
  14691. function _rlClearColor($0,$1,$2,$3) {
  14692. $0 = $0|0;
  14693. $1 = $1|0;
  14694. $2 = $2|0;
  14695. $3 = $3|0;
  14696. 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;
  14697. sp = STACKTOP;
  14698. $4 = (+($0&255));
  14699. $5 = $4 / 255.0;
  14700. $6 = (+($1&255));
  14701. $7 = $6 / 255.0;
  14702. $8 = (+($2&255));
  14703. $9 = $8 / 255.0;
  14704. $10 = (+($3&255));
  14705. $11 = $10 / 255.0;
  14706. _glClearColor((+$5),(+$7),(+$9),(+$11));
  14707. return;
  14708. }
  14709. function _rlViewport($0,$1,$2,$3) {
  14710. $0 = $0|0;
  14711. $1 = $1|0;
  14712. $2 = $2|0;
  14713. $3 = $3|0;
  14714. var label = 0, sp = 0;
  14715. sp = STACKTOP;
  14716. _glViewport(($0|0),($1|0),($2|0),($3|0));
  14717. return;
  14718. }
  14719. function _LoadDefaultShader($0) {
  14720. $0 = $0|0;
  14721. 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;
  14722. sp = STACKTOP;
  14723. STACKTOP = STACKTOP + 1008|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(1008|0);
  14724. $vararg_buffer1 = sp + 8|0;
  14725. $vararg_buffer = sp;
  14726. $1 = sp + 16|0;
  14727. $2 = sp + 513|0;
  14728. $3 = sp + 72|0;
  14729. _memcpy(($2|0),(7500|0),489)|0;
  14730. _memcpy(($3|0),(7989|0),441)|0;
  14731. $4 = (_LoadShaderProgram($2,$3)|0);
  14732. HEAP32[$1>>2] = $4;
  14733. $5 = ($4|0)==(0);
  14734. if ($5) {
  14735. HEAP32[$vararg_buffer1>>2] = $4;
  14736. _TraceLog(2,8478,$vararg_buffer1);
  14737. } else {
  14738. HEAP32[$vararg_buffer>>2] = $4;
  14739. _TraceLog(0,8430,$vararg_buffer);
  14740. }
  14741. $6 = HEAP32[$1>>2]|0;
  14742. $7 = ($6|0)==(0);
  14743. if (!($7)) {
  14744. _LoadDefaultShaderLocations($1);
  14745. }
  14746. 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));
  14747. STACKTOP = sp;return;
  14748. }
  14749. function _LoadDefaultBuffers() {
  14750. 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;
  14751. 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;
  14752. 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;
  14753. 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;
  14754. 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;
  14755. 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;
  14756. 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;
  14757. sp = STACKTOP;
  14758. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  14759. $vararg_buffer17 = sp + 48|0;
  14760. $vararg_buffer14 = sp + 40|0;
  14761. $vararg_buffer10 = sp + 32|0;
  14762. $vararg_buffer7 = sp + 24|0;
  14763. $vararg_buffer3 = sp + 16|0;
  14764. $vararg_buffer1 = sp + 8|0;
  14765. $vararg_buffer = sp;
  14766. $0 = (_malloc(24576)|0);
  14767. HEAP32[(20792)>>2] = $0;
  14768. $1 = (_malloc(8192)|0);
  14769. HEAP32[(20800)>>2] = $1;
  14770. HEAP32[(20796)>>2] = 0;
  14771. HEAP32[(20804)>>2] = 0;
  14772. _memset(($0|0),0,24576)|0;
  14773. $$05972 = 0;
  14774. while(1) {
  14775. $2 = HEAP32[(20800)>>2]|0;
  14776. $3 = (($2) + ($$05972)|0);
  14777. HEAP8[$3>>0] = 0;
  14778. $4 = (($$05972) + 1)|0;
  14779. $exitcond80 = ($4|0)==(8192);
  14780. if ($exitcond80) {
  14781. break;
  14782. } else {
  14783. $$05972 = $4;
  14784. }
  14785. }
  14786. HEAP32[5195] = 0;
  14787. HEAP32[(20788)>>2] = 0;
  14788. HEAP32[(20784)>>2] = 0;
  14789. $5 = (_malloc(73728)|0);
  14790. HEAP32[(20840)>>2] = $5;
  14791. $6 = (_malloc(24576)|0);
  14792. HEAP32[(20848)>>2] = $6;
  14793. HEAP32[(20844)>>2] = 0;
  14794. HEAP32[(20852)>>2] = 0;
  14795. _memset(($5|0),0,73728)|0;
  14796. $$05770 = 0;
  14797. while(1) {
  14798. $7 = HEAP32[(20848)>>2]|0;
  14799. $8 = (($7) + ($$05770)|0);
  14800. HEAP8[$8>>0] = 0;
  14801. $9 = (($$05770) + 1)|0;
  14802. $exitcond78 = ($9|0)==(24576);
  14803. if ($exitcond78) {
  14804. break;
  14805. } else {
  14806. $$05770 = $9;
  14807. }
  14808. }
  14809. HEAP32[5207] = 0;
  14810. HEAP32[(20836)>>2] = 0;
  14811. HEAP32[(20832)>>2] = 0;
  14812. $10 = (_malloc(49152)|0);
  14813. HEAP32[(20888)>>2] = $10;
  14814. $11 = (_malloc(32768)|0);
  14815. HEAP32[(20892)>>2] = $11;
  14816. $12 = (_malloc(16384)|0);
  14817. HEAP32[(20896)>>2] = $12;
  14818. $13 = (_malloc(12288)|0);
  14819. HEAP32[(20900)>>2] = $13;
  14820. $14 = HEAP32[(20888)>>2]|0;
  14821. _memset(($14|0),0,49152)|0;
  14822. $15 = HEAP32[(20892)>>2]|0;
  14823. _memset(($15|0),0,32768)|0;
  14824. $$05467 = 0;
  14825. while(1) {
  14826. $17 = HEAP32[(20896)>>2]|0;
  14827. $18 = (($17) + ($$05467)|0);
  14828. HEAP8[$18>>0] = 0;
  14829. $19 = (($$05467) + 1)|0;
  14830. $exitcond75 = ($19|0)==(16384);
  14831. if ($exitcond75) {
  14832. break;
  14833. } else {
  14834. $$05467 = $19;
  14835. }
  14836. }
  14837. $16 = HEAP32[(20900)>>2]|0;
  14838. $$05365 = 0;$$066 = 0;
  14839. while(1) {
  14840. $22 = $$05365 << 2;
  14841. $23 = $22&65535;
  14842. $24 = (($16) + ($$066<<1)|0);
  14843. HEAP16[$24>>1] = $23;
  14844. $25 = $22 | 1;
  14845. $26 = $25&65535;
  14846. $27 = $$066 | 1;
  14847. $28 = (($16) + ($27<<1)|0);
  14848. HEAP16[$28>>1] = $26;
  14849. $29 = $22 | 2;
  14850. $30 = $29&65535;
  14851. $31 = (($$066) + 2)|0;
  14852. $32 = (($16) + ($31<<1)|0);
  14853. HEAP16[$32>>1] = $30;
  14854. $33 = (($$066) + 3)|0;
  14855. $34 = (($16) + ($33<<1)|0);
  14856. HEAP16[$34>>1] = $23;
  14857. $35 = (($$066) + 4)|0;
  14858. $36 = (($16) + ($35<<1)|0);
  14859. HEAP16[$36>>1] = $30;
  14860. $37 = $22 | 3;
  14861. $38 = $37&65535;
  14862. $39 = (($$066) + 5)|0;
  14863. $40 = (($16) + ($39<<1)|0);
  14864. HEAP16[$40>>1] = $38;
  14865. $41 = (($$05365) + 1)|0;
  14866. $42 = (($$066) + 6)|0;
  14867. $exitcond = ($41|0)==(1024);
  14868. if ($exitcond) {
  14869. break;
  14870. } else {
  14871. $$05365 = $41;$$066 = $42;
  14872. }
  14873. }
  14874. HEAP32[5219] = 0;
  14875. HEAP32[(20880)>>2] = 0;
  14876. HEAP32[(20884)>>2] = 0;
  14877. _TraceLog(0,6971,$vararg_buffer);
  14878. $20 = HEAP32[4897]|0;
  14879. $21 = ($20|0)==(0);
  14880. if (!($21)) {
  14881. $43 = HEAP32[4898]|0;
  14882. FUNCTION_TABLE_vii[$43 & 63](1,(20808));
  14883. $44 = HEAP32[4899]|0;
  14884. $45 = HEAP32[(20808)>>2]|0;
  14885. FUNCTION_TABLE_vi[$44 & 31]($45);
  14886. }
  14887. _glGenBuffers(2,((20812)|0));
  14888. $46 = HEAP32[(20812)>>2]|0;
  14889. _glBindBuffer(34962,($46|0));
  14890. $47 = HEAP32[(20792)>>2]|0;
  14891. _glBufferData(34962,24576,($47|0),35048);
  14892. $48 = HEAP32[(19680)>>2]|0;
  14893. _glEnableVertexAttribArray(($48|0));
  14894. $49 = HEAP32[(19680)>>2]|0;
  14895. _glVertexAttribPointer(($49|0),3,5126,0,0,(0|0));
  14896. _glGenBuffers(2,((20816)|0));
  14897. $50 = HEAP32[(20816)>>2]|0;
  14898. _glBindBuffer(34962,($50|0));
  14899. $51 = HEAP32[(20800)>>2]|0;
  14900. _glBufferData(34962,8192,($51|0),35048);
  14901. $52 = HEAP32[(19700)>>2]|0;
  14902. _glEnableVertexAttribArray(($52|0));
  14903. $53 = HEAP32[(19700)>>2]|0;
  14904. _glVertexAttribPointer(($53|0),4,5121,1,0,(0|0));
  14905. $54 = HEAP32[4897]|0;
  14906. $55 = ($54|0)==(0);
  14907. if ($55) {
  14908. $57 = HEAP32[(20812)>>2]|0;
  14909. $58 = HEAP32[(20816)>>2]|0;
  14910. HEAP32[$vararg_buffer3>>2] = $57;
  14911. $vararg_ptr6 = ((($vararg_buffer3)) + 4|0);
  14912. HEAP32[$vararg_ptr6>>2] = $58;
  14913. _TraceLog(0,7109,$vararg_buffer3);
  14914. } else {
  14915. $56 = HEAP32[(20808)>>2]|0;
  14916. HEAP32[$vararg_buffer1>>2] = $56;
  14917. _TraceLog(0,7044,$vararg_buffer1);
  14918. }
  14919. $59 = HEAP32[4897]|0;
  14920. $60 = ($59|0)==(0);
  14921. if (!($60)) {
  14922. $61 = HEAP32[4898]|0;
  14923. FUNCTION_TABLE_vii[$61 & 63](1,(20856));
  14924. $62 = HEAP32[4899]|0;
  14925. $63 = HEAP32[(20856)>>2]|0;
  14926. FUNCTION_TABLE_vi[$62 & 31]($63);
  14927. }
  14928. _glGenBuffers(1,((20860)|0));
  14929. $64 = HEAP32[(20860)>>2]|0;
  14930. _glBindBuffer(34962,($64|0));
  14931. $65 = HEAP32[(20840)>>2]|0;
  14932. _glBufferData(34962,73728,($65|0),35048);
  14933. $66 = HEAP32[(19680)>>2]|0;
  14934. _glEnableVertexAttribArray(($66|0));
  14935. $67 = HEAP32[(19680)>>2]|0;
  14936. _glVertexAttribPointer(($67|0),3,5126,0,0,(0|0));
  14937. _glGenBuffers(1,((20864)|0));
  14938. $68 = HEAP32[(20864)>>2]|0;
  14939. _glBindBuffer(34962,($68|0));
  14940. $69 = HEAP32[(20848)>>2]|0;
  14941. _glBufferData(34962,24576,($69|0),35048);
  14942. $70 = HEAP32[(19700)>>2]|0;
  14943. _glEnableVertexAttribArray(($70|0));
  14944. $71 = HEAP32[(19700)>>2]|0;
  14945. _glVertexAttribPointer(($71|0),4,5121,1,0,(0|0));
  14946. $72 = HEAP32[4897]|0;
  14947. $73 = ($72|0)==(0);
  14948. if ($73) {
  14949. $75 = HEAP32[(20860)>>2]|0;
  14950. $76 = HEAP32[(20864)>>2]|0;
  14951. HEAP32[$vararg_buffer10>>2] = $75;
  14952. $vararg_ptr13 = ((($vararg_buffer10)) + 4|0);
  14953. HEAP32[$vararg_ptr13>>2] = $76;
  14954. _TraceLog(0,7255,$vararg_buffer10);
  14955. } else {
  14956. $74 = HEAP32[(20856)>>2]|0;
  14957. HEAP32[$vararg_buffer7>>2] = $74;
  14958. _TraceLog(0,7186,$vararg_buffer7);
  14959. }
  14960. $77 = HEAP32[4897]|0;
  14961. $78 = ($77|0)==(0);
  14962. if (!($78)) {
  14963. $79 = HEAP32[4898]|0;
  14964. FUNCTION_TABLE_vii[$79 & 63](1,(20904));
  14965. $80 = HEAP32[4899]|0;
  14966. $81 = HEAP32[(20904)>>2]|0;
  14967. FUNCTION_TABLE_vi[$80 & 31]($81);
  14968. }
  14969. _glGenBuffers(1,((20908)|0));
  14970. $82 = HEAP32[(20908)>>2]|0;
  14971. _glBindBuffer(34962,($82|0));
  14972. $83 = HEAP32[(20888)>>2]|0;
  14973. _glBufferData(34962,49152,($83|0),35048);
  14974. $84 = HEAP32[(19680)>>2]|0;
  14975. _glEnableVertexAttribArray(($84|0));
  14976. $85 = HEAP32[(19680)>>2]|0;
  14977. _glVertexAttribPointer(($85|0),3,5126,0,0,(0|0));
  14978. _glGenBuffers(1,((20912)|0));
  14979. $86 = HEAP32[(20912)>>2]|0;
  14980. _glBindBuffer(34962,($86|0));
  14981. $87 = HEAP32[(20892)>>2]|0;
  14982. _glBufferData(34962,32768,($87|0),35048);
  14983. $88 = HEAP32[(19684)>>2]|0;
  14984. _glEnableVertexAttribArray(($88|0));
  14985. $89 = HEAP32[(19684)>>2]|0;
  14986. _glVertexAttribPointer(($89|0),2,5126,0,0,(0|0));
  14987. _glGenBuffers(1,((20916)|0));
  14988. $90 = HEAP32[(20916)>>2]|0;
  14989. _glBindBuffer(34962,($90|0));
  14990. $91 = HEAP32[(20896)>>2]|0;
  14991. _glBufferData(34962,16384,($91|0),35048);
  14992. $92 = HEAP32[(19700)>>2]|0;
  14993. _glEnableVertexAttribArray(($92|0));
  14994. $93 = HEAP32[(19700)>>2]|0;
  14995. _glVertexAttribPointer(($93|0),4,5121,1,0,(0|0));
  14996. _glGenBuffers(1,((20920)|0));
  14997. $94 = HEAP32[(20920)>>2]|0;
  14998. _glBindBuffer(34963,($94|0));
  14999. $95 = HEAP32[(20900)>>2]|0;
  15000. _glBufferData(34963,12288,($95|0),35044);
  15001. $96 = HEAP32[4897]|0;
  15002. $97 = ($96|0)==(0);
  15003. if ($97) {
  15004. $99 = HEAP32[(20908)>>2]|0;
  15005. $100 = HEAP32[(20912)>>2]|0;
  15006. $101 = HEAP32[(20916)>>2]|0;
  15007. $102 = HEAP32[(20920)>>2]|0;
  15008. HEAP32[$vararg_buffer17>>2] = $99;
  15009. $vararg_ptr20 = ((($vararg_buffer17)) + 4|0);
  15010. HEAP32[$vararg_ptr20>>2] = $100;
  15011. $vararg_ptr21 = ((($vararg_buffer17)) + 8|0);
  15012. HEAP32[$vararg_ptr21>>2] = $101;
  15013. $vararg_ptr22 = ((($vararg_buffer17)) + 12|0);
  15014. HEAP32[$vararg_ptr22>>2] = $102;
  15015. _TraceLog(0,7401,$vararg_buffer17);
  15016. } else {
  15017. $98 = HEAP32[(20904)>>2]|0;
  15018. HEAP32[$vararg_buffer14>>2] = $98;
  15019. _TraceLog(0,7336,$vararg_buffer14);
  15020. }
  15021. $103 = HEAP32[4897]|0;
  15022. $104 = ($103|0)==(0);
  15023. if ($104) {
  15024. STACKTOP = sp;return;
  15025. }
  15026. $105 = HEAP32[4899]|0;
  15027. FUNCTION_TABLE_vi[$105 & 31](0);
  15028. STACKTOP = sp;return;
  15029. }
  15030. function _LoadShaderProgram($0,$1) {
  15031. $0 = $0|0;
  15032. $1 = $1|0;
  15033. 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;
  15034. 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;
  15035. sp = STACKTOP;
  15036. STACKTOP = STACKTOP + 96|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(96|0);
  15037. $vararg_buffer22 = sp + 64|0;
  15038. $vararg_buffer19 = sp + 56|0;
  15039. $vararg_buffer16 = sp + 48|0;
  15040. $vararg_buffer13 = sp + 40|0;
  15041. $vararg_buffer10 = sp + 32|0;
  15042. $vararg_buffer7 = sp + 24|0;
  15043. $vararg_buffer4 = sp + 16|0;
  15044. $vararg_buffer1 = sp + 8|0;
  15045. $vararg_buffer = sp;
  15046. $2 = sp + 80|0;
  15047. $3 = sp + 76|0;
  15048. $4 = sp + 72|0;
  15049. $5 = sp + 68|0;
  15050. $6 = (_glCreateShader(35633)|0);
  15051. $7 = (_glCreateShader(35632)|0);
  15052. HEAP32[$2>>2] = $0;
  15053. HEAP32[$3>>2] = $1;
  15054. _glShaderSource(($6|0),1,($2|0),(0|0));
  15055. _glShaderSource(($7|0),1,($3|0),(0|0));
  15056. HEAP32[$4>>2] = 0;
  15057. _glCompileShader(($6|0));
  15058. _glGetShaderiv(($6|0),35713,($4|0));
  15059. $8 = HEAP32[$4>>2]|0;
  15060. $9 = ($8|0)==(1);
  15061. if ($9) {
  15062. HEAP32[$vararg_buffer4>>2] = $6;
  15063. _TraceLog(0,8734,$vararg_buffer4);
  15064. } else {
  15065. HEAP32[$vararg_buffer>>2] = $6;
  15066. _TraceLog(2,8682,$vararg_buffer);
  15067. HEAP32[$vararg_buffer>>2] = 0;
  15068. _glGetShaderiv(($6|0),35716,($vararg_buffer|0));
  15069. $10 = HEAP32[$vararg_buffer>>2]|0;
  15070. $11 = (_llvm_stacksave()|0);
  15071. $$alloca_mul = $10;
  15072. $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);;
  15073. $13 = HEAP32[$vararg_buffer>>2]|0;
  15074. _glGetShaderInfoLog(($6|0),($13|0),($5|0),($12|0));
  15075. HEAP32[$vararg_buffer1>>2] = $12;
  15076. _TraceLog(0,8731,$vararg_buffer1);
  15077. _llvm_stackrestore(($11|0));
  15078. }
  15079. _glCompileShader(($7|0));
  15080. _glGetShaderiv(($7|0),35713,($4|0));
  15081. $14 = HEAP32[$4>>2]|0;
  15082. $15 = ($14|0)==(1);
  15083. if ($15) {
  15084. HEAP32[$vararg_buffer13>>2] = $7;
  15085. _TraceLog(0,8835,$vararg_buffer13);
  15086. } else {
  15087. HEAP32[$vararg_buffer7>>2] = $7;
  15088. _TraceLog(2,8784,$vararg_buffer7);
  15089. HEAP32[$vararg_buffer7>>2] = 0;
  15090. _glGetShaderiv(($7|0),35716,($vararg_buffer7|0));
  15091. $16 = HEAP32[$vararg_buffer7>>2]|0;
  15092. $17 = (_llvm_stacksave()|0);
  15093. $$alloca_mul34 = $16;
  15094. $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);;
  15095. $19 = HEAP32[$vararg_buffer7>>2]|0;
  15096. _glGetShaderInfoLog(($7|0),($19|0),($5|0),($18|0));
  15097. HEAP32[$vararg_buffer10>>2] = $18;
  15098. _TraceLog(0,8731,$vararg_buffer10);
  15099. _llvm_stackrestore(($17|0));
  15100. }
  15101. $20 = (_glCreateProgram()|0);
  15102. _glAttachShader(($20|0),($6|0));
  15103. _glAttachShader(($20|0),($7|0));
  15104. _glBindAttribLocation(($20|0),0,(8526|0));
  15105. _glBindAttribLocation(($20|0),1,(8541|0));
  15106. _glBindAttribLocation(($20|0),2,(8572|0));
  15107. _glBindAttribLocation(($20|0),3,(8599|0));
  15108. _glBindAttribLocation(($20|0),4,(8585|0));
  15109. _glBindAttribLocation(($20|0),5,(8556|0));
  15110. _glLinkProgram(($20|0));
  15111. _glGetProgramiv(($20|0),35714,($4|0));
  15112. $21 = HEAP32[$4>>2]|0;
  15113. $22 = ($21|0)==(0);
  15114. if ($22) {
  15115. HEAP32[$vararg_buffer16>>2] = $20;
  15116. _TraceLog(2,8887,$vararg_buffer16);
  15117. HEAP32[$vararg_buffer16>>2] = 0;
  15118. _glGetProgramiv(($20|0),35716,($vararg_buffer16|0));
  15119. $23 = HEAP32[$vararg_buffer16>>2]|0;
  15120. $24 = (_llvm_stacksave()|0);
  15121. $$alloca_mul36 = $23;
  15122. $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);;
  15123. $26 = HEAP32[$vararg_buffer16>>2]|0;
  15124. _glGetProgramInfoLog(($20|0),($26|0),($5|0),($25|0));
  15125. HEAP32[$vararg_buffer19>>2] = $25;
  15126. _TraceLog(0,8731,$vararg_buffer19);
  15127. _glDeleteProgram(($20|0));
  15128. _llvm_stackrestore(($24|0));
  15129. $$0 = 0;
  15130. _glDeleteShader(($6|0));
  15131. _glDeleteShader(($7|0));
  15132. STACKTOP = sp;return ($$0|0);
  15133. } else {
  15134. HEAP32[$vararg_buffer22>>2] = $20;
  15135. _TraceLog(0,8933,$vararg_buffer22);
  15136. $$0 = $20;
  15137. _glDeleteShader(($6|0));
  15138. _glDeleteShader(($7|0));
  15139. STACKTOP = sp;return ($$0|0);
  15140. }
  15141. return (0)|0;
  15142. }
  15143. function _LoadDefaultShaderLocations($0) {
  15144. $0 = $0|0;
  15145. 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;
  15146. 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;
  15147. var sp = 0;
  15148. sp = STACKTOP;
  15149. $1 = HEAP32[$0>>2]|0;
  15150. $2 = (_glGetAttribLocation(($1|0),(8526|0))|0);
  15151. $3 = ((($0)) + 4|0);
  15152. HEAP32[$3>>2] = $2;
  15153. $4 = HEAP32[$0>>2]|0;
  15154. $5 = (_glGetAttribLocation(($4|0),(8541|0))|0);
  15155. $6 = ((($0)) + 8|0);
  15156. HEAP32[$6>>2] = $5;
  15157. $7 = HEAP32[$0>>2]|0;
  15158. $8 = (_glGetAttribLocation(($7|0),(8556|0))|0);
  15159. $9 = ((($0)) + 12|0);
  15160. HEAP32[$9>>2] = $8;
  15161. $10 = HEAP32[$0>>2]|0;
  15162. $11 = (_glGetAttribLocation(($10|0),(8572|0))|0);
  15163. $12 = ((($0)) + 16|0);
  15164. HEAP32[$12>>2] = $11;
  15165. $13 = HEAP32[$0>>2]|0;
  15166. $14 = (_glGetAttribLocation(($13|0),(8585|0))|0);
  15167. $15 = ((($0)) + 20|0);
  15168. HEAP32[$15>>2] = $14;
  15169. $16 = HEAP32[$0>>2]|0;
  15170. $17 = (_glGetAttribLocation(($16|0),(8599|0))|0);
  15171. $18 = ((($0)) + 24|0);
  15172. HEAP32[$18>>2] = $17;
  15173. $19 = HEAP32[$0>>2]|0;
  15174. $20 = (_glGetUniformLocation(($19|0),(8611|0))|0);
  15175. $21 = ((($0)) + 28|0);
  15176. HEAP32[$21>>2] = $20;
  15177. $22 = HEAP32[$0>>2]|0;
  15178. $23 = (_glGetUniformLocation(($22|0),(8621|0))|0);
  15179. $24 = ((($0)) + 32|0);
  15180. HEAP32[$24>>2] = $23;
  15181. $25 = HEAP32[$0>>2]|0;
  15182. $26 = (_glGetUniformLocation(($25|0),(8632|0))|0);
  15183. $27 = ((($0)) + 36|0);
  15184. HEAP32[$27>>2] = $26;
  15185. $28 = HEAP32[$0>>2]|0;
  15186. $29 = (_glGetUniformLocation(($28|0),(8643|0))|0);
  15187. $30 = ((($0)) + 40|0);
  15188. HEAP32[$30>>2] = $29;
  15189. $31 = HEAP32[$0>>2]|0;
  15190. $32 = (_glGetUniformLocation(($31|0),(8655|0))|0);
  15191. $33 = ((($0)) + 44|0);
  15192. HEAP32[$33>>2] = $32;
  15193. $34 = HEAP32[$0>>2]|0;
  15194. $35 = (_glGetUniformLocation(($34|0),(8664|0))|0);
  15195. $36 = ((($0)) + 48|0);
  15196. HEAP32[$36>>2] = $35;
  15197. $37 = HEAP32[$0>>2]|0;
  15198. $38 = (_glGetUniformLocation(($37|0),(8673|0))|0);
  15199. $39 = ((($0)) + 52|0);
  15200. HEAP32[$39>>2] = $38;
  15201. return;
  15202. }
  15203. function _IsMouseButtonPressed($0) {
  15204. $0 = $0|0;
  15205. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $or$cond = 0, label = 0, sp = 0;
  15206. sp = STACKTOP;
  15207. $1 = (22105 + ($0)|0);
  15208. $2 = HEAP8[$1>>0]|0;
  15209. $3 = (22108 + ($0)|0);
  15210. $4 = HEAP8[$3>>0]|0;
  15211. $5 = ($2<<24>>24)!=($4<<24>>24);
  15212. $6 = ($2<<24>>24)==(1);
  15213. $or$cond = $6 & $5;
  15214. $$0 = $or$cond&1;
  15215. return ($$0|0);
  15216. }
  15217. function _IsMouseButtonReleased($0) {
  15218. $0 = $0|0;
  15219. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $or$cond = 0, label = 0, sp = 0;
  15220. sp = STACKTOP;
  15221. $1 = (22105 + ($0)|0);
  15222. $2 = HEAP8[$1>>0]|0;
  15223. $3 = (22108 + ($0)|0);
  15224. $4 = HEAP8[$3>>0]|0;
  15225. $5 = ($2<<24>>24)!=($4<<24>>24);
  15226. $6 = ($2<<24>>24)==(0);
  15227. $or$cond = $6 & $5;
  15228. $$0 = $or$cond&1;
  15229. return ($$0|0);
  15230. }
  15231. function _rlClearScreenBuffers() {
  15232. var label = 0, sp = 0;
  15233. sp = STACKTOP;
  15234. _glClear(16640);
  15235. return;
  15236. }
  15237. function _CloseWindow() {
  15238. var $0 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  15239. sp = STACKTOP;
  15240. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  15241. $vararg_buffer = sp;
  15242. _UnloadDefaultFont();
  15243. _rlglClose();
  15244. $0 = HEAP32[4816]|0;
  15245. _glfwDestroyWindow(($0|0));
  15246. _glfwTerminate();
  15247. _TraceLog(0,9245,$vararg_buffer);
  15248. STACKTOP = sp;return;
  15249. }
  15250. function _UnloadDefaultFont() {
  15251. var $$byval_copy = 0, $0 = 0, label = 0, sp = 0;
  15252. sp = STACKTOP;
  15253. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  15254. $$byval_copy = sp;
  15255. ;HEAP32[$$byval_copy>>2]=HEAP32[19304>>2]|0;HEAP32[$$byval_copy+4>>2]=HEAP32[19304+4>>2]|0;HEAP32[$$byval_copy+8>>2]=HEAP32[19304+8>>2]|0;HEAP32[$$byval_copy+12>>2]=HEAP32[19304+12>>2]|0;HEAP32[$$byval_copy+16>>2]=HEAP32[19304+16>>2]|0;
  15256. _UnloadTexture($$byval_copy);
  15257. $0 = HEAP32[(19332)>>2]|0;
  15258. _free($0);
  15259. STACKTOP = sp;return;
  15260. }
  15261. function _rlglClose() {
  15262. var $0 = 0, $1 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  15263. sp = STACKTOP;
  15264. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  15265. $vararg_buffer = sp;
  15266. _UnloadDefaultShader();
  15267. _UnloadDefaultBuffers();
  15268. _glDeleteTextures(1,(19616|0));
  15269. $0 = HEAP32[4904]|0;
  15270. HEAP32[$vararg_buffer>>2] = $0;
  15271. _TraceLog(0,9272,$vararg_buffer);
  15272. $1 = HEAP32[4934]|0;
  15273. _free($1);
  15274. STACKTOP = sp;return;
  15275. }
  15276. function _UnloadDefaultShader() {
  15277. var $0 = 0, label = 0, sp = 0;
  15278. sp = STACKTOP;
  15279. _glUseProgram(0);
  15280. $0 = HEAP32[4905]|0;
  15281. _glDeleteProgram(($0|0));
  15282. return;
  15283. }
  15284. function _UnloadDefaultBuffers() {
  15285. 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;
  15286. sp = STACKTOP;
  15287. $0 = HEAP32[4897]|0;
  15288. $1 = ($0|0)==(0);
  15289. if (!($1)) {
  15290. $2 = HEAP32[4899]|0;
  15291. FUNCTION_TABLE_vi[$2 & 31](0);
  15292. }
  15293. _glDisableVertexAttribArray(0);
  15294. _glDisableVertexAttribArray(1);
  15295. _glDisableVertexAttribArray(2);
  15296. _glDisableVertexAttribArray(3);
  15297. _glBindBuffer(34962,0);
  15298. _glBindBuffer(34963,0);
  15299. _glDeleteBuffers(1,((20812)|0));
  15300. _glDeleteBuffers(1,((20816)|0));
  15301. _glDeleteBuffers(1,((20860)|0));
  15302. _glDeleteBuffers(1,((20864)|0));
  15303. _glDeleteBuffers(1,((20908)|0));
  15304. _glDeleteBuffers(1,((20912)|0));
  15305. _glDeleteBuffers(1,((20916)|0));
  15306. _glDeleteBuffers(1,((20920)|0));
  15307. $3 = HEAP32[4897]|0;
  15308. $4 = ($3|0)==(0);
  15309. if (!($4)) {
  15310. $5 = HEAP32[4900]|0;
  15311. FUNCTION_TABLE_vii[$5 & 63](1,(20808));
  15312. $6 = HEAP32[4900]|0;
  15313. FUNCTION_TABLE_vii[$6 & 63](1,(20856));
  15314. $7 = HEAP32[4900]|0;
  15315. FUNCTION_TABLE_vii[$7 & 63](1,(20904));
  15316. }
  15317. $8 = HEAP32[(20792)>>2]|0;
  15318. _free($8);
  15319. $9 = HEAP32[(20800)>>2]|0;
  15320. _free($9);
  15321. $10 = HEAP32[(20840)>>2]|0;
  15322. _free($10);
  15323. $11 = HEAP32[(20848)>>2]|0;
  15324. _free($11);
  15325. $12 = HEAP32[(20888)>>2]|0;
  15326. _free($12);
  15327. $13 = HEAP32[(20892)>>2]|0;
  15328. _free($13);
  15329. $14 = HEAP32[(20896)>>2]|0;
  15330. _free($14);
  15331. $15 = HEAP32[(20900)>>2]|0;
  15332. _free($15);
  15333. return;
  15334. }
  15335. function _UnloadTexture($0) {
  15336. $0 = $0|0;
  15337. var $1 = 0, $2 = 0, $3 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  15338. sp = STACKTOP;
  15339. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  15340. $vararg_buffer = sp;
  15341. $1 = HEAP32[$0>>2]|0;
  15342. $2 = ($1|0)==(0);
  15343. if ($2) {
  15344. STACKTOP = sp;return;
  15345. }
  15346. _rlDeleteTextures($1);
  15347. $3 = HEAP32[$0>>2]|0;
  15348. HEAP32[$vararg_buffer>>2] = $3;
  15349. _TraceLog(0,9337,$vararg_buffer);
  15350. STACKTOP = sp;return;
  15351. }
  15352. function _rlDeleteTextures($0) {
  15353. $0 = $0|0;
  15354. var $1 = 0, $2 = 0, label = 0, sp = 0;
  15355. sp = STACKTOP;
  15356. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  15357. $1 = sp;
  15358. HEAP32[$1>>2] = $0;
  15359. $2 = ($0|0)==(0);
  15360. if (!($2)) {
  15361. _glDeleteTextures(1,($1|0));
  15362. }
  15363. STACKTOP = sp;return;
  15364. }
  15365. function _BeginDrawing() {
  15366. var $0 = 0.0, $1 = 0.0, $2 = 0.0, $downscaleView$byval_copy = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  15367. sp = STACKTOP;
  15368. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  15369. $downscaleView$byval_copy = sp;
  15370. $0 = (+_GetTime());
  15371. HEAPF64[2345] = $0;
  15372. $1 = +HEAPF64[2328];
  15373. $2 = $0 - $1;
  15374. HEAPF64[2346] = $2;
  15375. HEAPF64[2328] = $0;
  15376. _rlClearScreenBuffers();
  15377. _rlLoadIdentity();
  15378. dest=$downscaleView$byval_copy; src=19360; 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));
  15379. (_MatrixToFloat($downscaleView$byval_copy)|0);
  15380. _rlMultMatrixf(20932);
  15381. STACKTOP = sp;return;
  15382. }
  15383. function _MatrixToFloat($0) {
  15384. $0 = $0|0;
  15385. 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;
  15386. 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;
  15387. sp = STACKTOP;
  15388. $1 = HEAP32[$0>>2]|0;
  15389. HEAP32[5233] = $1;
  15390. $2 = ((($0)) + 4|0);
  15391. $3 = HEAP32[$2>>2]|0;
  15392. HEAP32[(20936)>>2] = $3;
  15393. $4 = ((($0)) + 8|0);
  15394. $5 = HEAP32[$4>>2]|0;
  15395. HEAP32[(20940)>>2] = $5;
  15396. $6 = ((($0)) + 12|0);
  15397. $7 = HEAP32[$6>>2]|0;
  15398. HEAP32[(20944)>>2] = $7;
  15399. $8 = ((($0)) + 16|0);
  15400. $9 = HEAP32[$8>>2]|0;
  15401. HEAP32[(20948)>>2] = $9;
  15402. $10 = ((($0)) + 20|0);
  15403. $11 = HEAP32[$10>>2]|0;
  15404. HEAP32[(20952)>>2] = $11;
  15405. $12 = ((($0)) + 24|0);
  15406. $13 = HEAP32[$12>>2]|0;
  15407. HEAP32[(20956)>>2] = $13;
  15408. $14 = ((($0)) + 28|0);
  15409. $15 = HEAP32[$14>>2]|0;
  15410. HEAP32[(20960)>>2] = $15;
  15411. $16 = ((($0)) + 32|0);
  15412. $17 = HEAP32[$16>>2]|0;
  15413. HEAP32[(20964)>>2] = $17;
  15414. $18 = ((($0)) + 36|0);
  15415. $19 = HEAP32[$18>>2]|0;
  15416. HEAP32[(20968)>>2] = $19;
  15417. $20 = ((($0)) + 40|0);
  15418. $21 = HEAP32[$20>>2]|0;
  15419. HEAP32[(20972)>>2] = $21;
  15420. $22 = ((($0)) + 44|0);
  15421. $23 = HEAP32[$22>>2]|0;
  15422. HEAP32[(20976)>>2] = $23;
  15423. $24 = ((($0)) + 48|0);
  15424. $25 = HEAP32[$24>>2]|0;
  15425. HEAP32[(20980)>>2] = $25;
  15426. $26 = ((($0)) + 52|0);
  15427. $27 = HEAP32[$26>>2]|0;
  15428. HEAP32[(20984)>>2] = $27;
  15429. $28 = ((($0)) + 56|0);
  15430. $29 = HEAP32[$28>>2]|0;
  15431. HEAP32[(20988)>>2] = $29;
  15432. $30 = ((($0)) + 60|0);
  15433. $31 = HEAP32[$30>>2]|0;
  15434. HEAP32[(20992)>>2] = $31;
  15435. return (20932|0);
  15436. }
  15437. function _rlMultMatrixf($0) {
  15438. $0 = $0|0;
  15439. 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;
  15440. 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;
  15441. 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;
  15442. sp = STACKTOP;
  15443. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  15444. $$byval_copy1 = sp + 192|0;
  15445. $$byval_copy = sp + 128|0;
  15446. $1 = sp + 64|0;
  15447. $2 = sp;
  15448. $3 = HEAP32[$0>>2]|0;
  15449. HEAP32[$1>>2] = $3;
  15450. $4 = ((($1)) + 4|0);
  15451. $5 = ((($0)) + 4|0);
  15452. $6 = HEAP32[$5>>2]|0;
  15453. HEAP32[$4>>2] = $6;
  15454. $7 = ((($1)) + 8|0);
  15455. $8 = ((($0)) + 8|0);
  15456. $9 = HEAP32[$8>>2]|0;
  15457. HEAP32[$7>>2] = $9;
  15458. $10 = ((($1)) + 12|0);
  15459. $11 = ((($0)) + 12|0);
  15460. $12 = HEAP32[$11>>2]|0;
  15461. HEAP32[$10>>2] = $12;
  15462. $13 = ((($1)) + 16|0);
  15463. $14 = ((($0)) + 16|0);
  15464. $15 = HEAP32[$14>>2]|0;
  15465. HEAP32[$13>>2] = $15;
  15466. $16 = ((($1)) + 20|0);
  15467. $17 = ((($0)) + 20|0);
  15468. $18 = HEAP32[$17>>2]|0;
  15469. HEAP32[$16>>2] = $18;
  15470. $19 = ((($1)) + 24|0);
  15471. $20 = ((($0)) + 24|0);
  15472. $21 = HEAP32[$20>>2]|0;
  15473. HEAP32[$19>>2] = $21;
  15474. $22 = ((($1)) + 28|0);
  15475. $23 = ((($0)) + 28|0);
  15476. $24 = HEAP32[$23>>2]|0;
  15477. HEAP32[$22>>2] = $24;
  15478. $25 = ((($1)) + 32|0);
  15479. $26 = ((($0)) + 32|0);
  15480. $27 = HEAP32[$26>>2]|0;
  15481. HEAP32[$25>>2] = $27;
  15482. $28 = ((($1)) + 36|0);
  15483. $29 = ((($0)) + 36|0);
  15484. $30 = HEAP32[$29>>2]|0;
  15485. HEAP32[$28>>2] = $30;
  15486. $31 = ((($1)) + 40|0);
  15487. $32 = ((($0)) + 40|0);
  15488. $33 = HEAP32[$32>>2]|0;
  15489. HEAP32[$31>>2] = $33;
  15490. $34 = ((($1)) + 44|0);
  15491. $35 = ((($0)) + 44|0);
  15492. $36 = HEAP32[$35>>2]|0;
  15493. HEAP32[$34>>2] = $36;
  15494. $37 = ((($1)) + 48|0);
  15495. $38 = ((($0)) + 48|0);
  15496. $39 = HEAP32[$38>>2]|0;
  15497. HEAP32[$37>>2] = $39;
  15498. $40 = ((($1)) + 52|0);
  15499. $41 = ((($0)) + 52|0);
  15500. $42 = HEAP32[$41>>2]|0;
  15501. HEAP32[$40>>2] = $42;
  15502. $43 = ((($1)) + 56|0);
  15503. $44 = ((($0)) + 56|0);
  15504. $45 = HEAP32[$44>>2]|0;
  15505. HEAP32[$43>>2] = $45;
  15506. $46 = ((($1)) + 60|0);
  15507. $47 = ((($0)) + 60|0);
  15508. $48 = HEAP32[$47>>2]|0;
  15509. HEAP32[$46>>2] = $48;
  15510. $49 = HEAP32[4863]|0;
  15511. 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));
  15512. 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));
  15513. _MatrixMultiply($2,$$byval_copy,$$byval_copy1);
  15514. 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));
  15515. STACKTOP = sp;return;
  15516. }
  15517. function _EndDrawing() {
  15518. 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;
  15519. sp = STACKTOP;
  15520. _rlglDraw();
  15521. _SwapBuffers();
  15522. _PollInputEvents();
  15523. $0 = (+_GetTime());
  15524. HEAPF64[2345] = $0;
  15525. $1 = +HEAPF64[2328];
  15526. $2 = $0 - $1;
  15527. HEAPF64[2347] = $2;
  15528. HEAPF64[2328] = $0;
  15529. $3 = +HEAPF64[2346];
  15530. $4 = $2 + $3;
  15531. HEAPF64[2348] = $4;
  15532. $5 = +HEAPF64[2325];
  15533. $6 = $4 < $5;
  15534. if (!($6)) {
  15535. return;
  15536. }
  15537. $7 = $5 - $4;
  15538. $8 = $7 * 1000.0;
  15539. $9 = $8;
  15540. _Wait($9);
  15541. $10 = (+_GetTime());
  15542. HEAPF64[2345] = $10;
  15543. $11 = +HEAPF64[2328];
  15544. $12 = $10 - $11;
  15545. HEAPF64[2328] = $10;
  15546. $13 = +HEAPF64[2348];
  15547. $14 = $12 + $13;
  15548. HEAPF64[2348] = $14;
  15549. return;
  15550. }
  15551. function _rlglDraw() {
  15552. var label = 0, sp = 0;
  15553. sp = STACKTOP;
  15554. _UpdateDefaultBuffers();
  15555. _DrawDefaultBuffers();
  15556. return;
  15557. }
  15558. function _SwapBuffers() {
  15559. var $0 = 0, label = 0, sp = 0;
  15560. sp = STACKTOP;
  15561. $0 = HEAP32[4816]|0;
  15562. _glfwSwapBuffers(($0|0));
  15563. return;
  15564. }
  15565. function _PollInputEvents() {
  15566. 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;
  15567. 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;
  15568. 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;
  15569. sp = STACKTOP;
  15570. STACKTOP = STACKTOP + 1456|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(1456|0);
  15571. $0 = sp + 1440|0;
  15572. $1 = sp + 1432|0;
  15573. $2 = sp;
  15574. _UpdateGestures();
  15575. HEAP32[761] = -1;
  15576. HEAP32[763] = -1;
  15577. HEAP32[5249] = 0;
  15578. $3 = HEAP32[4816]|0;
  15579. _glfwGetCursorPos(($3|0),($0|0),($1|0));
  15580. $4 = +HEAPF64[$0>>3];
  15581. $5 = $4;
  15582. HEAPF32[4648] = $5;
  15583. $6 = +HEAPF64[$1>>3];
  15584. $7 = $6;
  15585. HEAPF32[(18596)>>2] = $7;
  15586. _memcpy((22623|0),(22111|0),512)|0;
  15587. ;HEAP8[22108>>0]=HEAP8[22105>>0]|0;HEAP8[22108+1>>0]=HEAP8[22105+1>>0]|0;HEAP8[22108+2>>0]=HEAP8[22105+2>>0]|0;
  15588. $8 = HEAP32[5232]|0;
  15589. HEAP32[4819] = $8;
  15590. HEAP32[5232] = 0;
  15591. $9 = (_emscripten_get_num_gamepads()|0);
  15592. $10 = ($9|0)>(0);
  15593. if (!($10)) {
  15594. STACKTOP = sp;return;
  15595. }
  15596. $11 = ((($2)) + 12|0);
  15597. $12 = ((($2)) + 8|0);
  15598. $$05160 = 0;
  15599. while(1) {
  15600. $scevgep = (23135 + ($$05160<<5)|0);
  15601. $scevgep67 = (23263 + ($$05160<<5)|0);
  15602. 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));
  15603. $13 = (_emscripten_get_gamepad_status(($$05160|0),($2|0))|0);
  15604. $14 = ($13|0)==(0);
  15605. if ($14) {
  15606. $15 = HEAP32[$11>>2]|0;
  15607. $16 = ($15|0)>(0);
  15608. if ($16) {
  15609. $17 = HEAP32[$11>>2]|0;
  15610. $$04857 = 0;
  15611. while(1) {
  15612. $21 = (((($2)) + 1040|0) + ($$04857<<2)|0);
  15613. $22 = HEAP32[$21>>2]|0;
  15614. $23 = ($22|0)==(1);
  15615. $24 = ((23263 + ($$05160<<5)|0) + ($$04857)|0);
  15616. if ($23) {
  15617. HEAP8[$24>>0] = 1;
  15618. HEAP32[763] = $$04857;
  15619. } else {
  15620. HEAP8[$24>>0] = 0;
  15621. }
  15622. $25 = (($$04857) + 1)|0;
  15623. $26 = ($25|0)<($17|0);
  15624. $27 = ($25|0)<(32);
  15625. $28 = $27 & $26;
  15626. if ($28) {
  15627. $$04857 = $25;
  15628. } else {
  15629. break;
  15630. }
  15631. }
  15632. }
  15633. $18 = HEAP32[$12>>2]|0;
  15634. $19 = ($18|0)>(0);
  15635. if ($19) {
  15636. $20 = HEAP32[$12>>2]|0;
  15637. $$058 = 0;
  15638. while(1) {
  15639. $29 = (((($2)) + 16|0) + ($$058<<3)|0);
  15640. $30 = +HEAPF64[$29>>3];
  15641. $31 = $30;
  15642. $32 = ((21000 + ($$05160<<5)|0) + ($$058<<2)|0);
  15643. HEAPF32[$32>>2] = $31;
  15644. $33 = (($$058) + 1)|0;
  15645. $34 = ($33|0)<($20|0);
  15646. $35 = ($33|0)<(8);
  15647. $36 = $35 & $34;
  15648. if ($36) {
  15649. $$058 = $33;
  15650. } else {
  15651. $$lcssa = $20;
  15652. break;
  15653. }
  15654. }
  15655. } else {
  15656. $$lcssa = $18;
  15657. }
  15658. HEAP32[5249] = $$lcssa;
  15659. }
  15660. $37 = (($$05160) + 1)|0;
  15661. $38 = ($37|0)<($9|0);
  15662. $39 = ($37|0)<(4);
  15663. $40 = $38 & $39;
  15664. if ($40) {
  15665. $$05160 = $37;
  15666. } else {
  15667. break;
  15668. }
  15669. }
  15670. STACKTOP = sp;return;
  15671. }
  15672. function _Wait($0) {
  15673. $0 = +$0;
  15674. 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;
  15675. sp = STACKTOP;
  15676. $1 = (+_GetTime());
  15677. $2 = 0.0 - $1;
  15678. $3 = $0 / 1000.0;
  15679. $4 = $3;
  15680. $5 = $2 < $4;
  15681. if (!($5)) {
  15682. return;
  15683. }
  15684. while(1) {
  15685. $6 = (+_GetTime());
  15686. $7 = $6 - $1;
  15687. $8 = $7 < $4;
  15688. if (!($8)) {
  15689. break;
  15690. }
  15691. }
  15692. return;
  15693. }
  15694. function _UpdateDefaultBuffers() {
  15695. 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;
  15696. 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;
  15697. var $45 = 0, $46 = 0, $47 = 0, $48 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  15698. sp = STACKTOP;
  15699. $0 = HEAP32[5195]|0;
  15700. $1 = ($0|0)>(0);
  15701. if ($1) {
  15702. $2 = HEAP32[4897]|0;
  15703. $3 = ($2|0)==(0);
  15704. if (!($3)) {
  15705. $4 = HEAP32[4899]|0;
  15706. $5 = HEAP32[(20808)>>2]|0;
  15707. FUNCTION_TABLE_vi[$4 & 31]($5);
  15708. }
  15709. $6 = HEAP32[(20812)>>2]|0;
  15710. _glBindBuffer(34962,($6|0));
  15711. $7 = HEAP32[5195]|0;
  15712. $8 = ($7*12)|0;
  15713. $9 = HEAP32[(20792)>>2]|0;
  15714. _glBufferSubData(34962,0,($8|0),($9|0));
  15715. $10 = HEAP32[(20816)>>2]|0;
  15716. _glBindBuffer(34962,($10|0));
  15717. $11 = HEAP32[(20788)>>2]|0;
  15718. $12 = $11 << 2;
  15719. $13 = HEAP32[(20800)>>2]|0;
  15720. _glBufferSubData(34962,0,($12|0),($13|0));
  15721. }
  15722. $14 = HEAP32[5207]|0;
  15723. $15 = ($14|0)>(0);
  15724. if ($15) {
  15725. $16 = HEAP32[4897]|0;
  15726. $17 = ($16|0)==(0);
  15727. if (!($17)) {
  15728. $18 = HEAP32[4899]|0;
  15729. $19 = HEAP32[(20856)>>2]|0;
  15730. FUNCTION_TABLE_vi[$18 & 31]($19);
  15731. }
  15732. $20 = HEAP32[(20860)>>2]|0;
  15733. _glBindBuffer(34962,($20|0));
  15734. $21 = HEAP32[5207]|0;
  15735. $22 = ($21*12)|0;
  15736. $23 = HEAP32[(20840)>>2]|0;
  15737. _glBufferSubData(34962,0,($22|0),($23|0));
  15738. $24 = HEAP32[(20864)>>2]|0;
  15739. _glBindBuffer(34962,($24|0));
  15740. $25 = HEAP32[(20836)>>2]|0;
  15741. $26 = $25 << 2;
  15742. $27 = HEAP32[(20848)>>2]|0;
  15743. _glBufferSubData(34962,0,($26|0),($27|0));
  15744. }
  15745. $28 = HEAP32[5219]|0;
  15746. $29 = ($28|0)>(0);
  15747. if ($29) {
  15748. $30 = HEAP32[4897]|0;
  15749. $31 = ($30|0)==(0);
  15750. if (!($31)) {
  15751. $32 = HEAP32[4899]|0;
  15752. $33 = HEAP32[(20904)>>2]|0;
  15753. FUNCTION_TABLE_vi[$32 & 31]($33);
  15754. }
  15755. $34 = HEAP32[(20908)>>2]|0;
  15756. _glBindBuffer(34962,($34|0));
  15757. $35 = HEAP32[5219]|0;
  15758. $36 = ($35*12)|0;
  15759. $37 = HEAP32[(20888)>>2]|0;
  15760. _glBufferSubData(34962,0,($36|0),($37|0));
  15761. $38 = HEAP32[(20912)>>2]|0;
  15762. _glBindBuffer(34962,($38|0));
  15763. $39 = HEAP32[5219]|0;
  15764. $40 = $39 << 3;
  15765. $41 = HEAP32[(20892)>>2]|0;
  15766. _glBufferSubData(34962,0,($40|0),($41|0));
  15767. $42 = HEAP32[(20916)>>2]|0;
  15768. _glBindBuffer(34962,($42|0));
  15769. $43 = HEAP32[5219]|0;
  15770. $44 = $43 << 2;
  15771. $45 = HEAP32[(20896)>>2]|0;
  15772. _glBufferSubData(34962,0,($44|0),($45|0));
  15773. }
  15774. $46 = HEAP32[4897]|0;
  15775. $47 = ($46|0)==(0);
  15776. if ($47) {
  15777. return;
  15778. }
  15779. $48 = HEAP32[4899]|0;
  15780. FUNCTION_TABLE_vi[$48 & 31](0);
  15781. return;
  15782. }
  15783. function _DrawDefaultBuffers() {
  15784. 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;
  15785. 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;
  15786. 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;
  15787. 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;
  15788. 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;
  15789. var $or$cond = 0, $or$cond3 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  15790. sp = STACKTOP;
  15791. STACKTOP = STACKTOP + 320|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(320|0);
  15792. $$byval_copy2 = sp + 256|0;
  15793. $modelview$byval_copy = sp + 192|0;
  15794. $0 = sp + 128|0;
  15795. $1 = sp + 64|0;
  15796. $2 = sp;
  15797. dest=$0; src=19456; 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));
  15798. dest=$1; src=19520; 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));
  15799. $3 = HEAP32[5282]|0;
  15800. $4 = ($3|0)!=(0);
  15801. $$ = $4 ? 2 : 1;
  15802. $$02932 = 0;
  15803. while(1) {
  15804. if ($4) {
  15805. 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));
  15806. 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));
  15807. _SetStereoView($$02932,$modelview$byval_copy,$$byval_copy2);
  15808. }
  15809. $8 = HEAP32[5195]|0;
  15810. $9 = ($8|0)>(0);
  15811. $10 = HEAP32[5207]|0;
  15812. $11 = ($10|0)>(0);
  15813. $or$cond = $9 | $11;
  15814. $12 = HEAP32[5219]|0;
  15815. $13 = ($12|0)>(0);
  15816. $or$cond3 = $or$cond | $13;
  15817. if ($or$cond3) {
  15818. $14 = HEAP32[4919]|0;
  15819. _glUseProgram(($14|0));
  15820. dest=$modelview$byval_copy; src=19520; 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));
  15821. dest=$$byval_copy2; src=19456; 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));
  15822. _MatrixMultiply($2,$modelview$byval_copy,$$byval_copy2);
  15823. $15 = HEAP32[(19704)>>2]|0;
  15824. 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));
  15825. $16 = (_MatrixToFloat($$byval_copy2)|0);
  15826. _glUniformMatrix4fv(($15|0),1,0,($16|0));
  15827. $17 = HEAP32[(19708)>>2]|0;
  15828. _glUniform4f(($17|0),1.0,1.0,1.0,1.0);
  15829. $18 = HEAP32[(19720)>>2]|0;
  15830. _glUniform1i(($18|0),0);
  15831. }
  15832. $19 = HEAP32[5195]|0;
  15833. $20 = ($19|0)>(0);
  15834. if ($20) {
  15835. $21 = HEAP32[4904]|0;
  15836. _glBindTexture(3553,($21|0));
  15837. $22 = HEAP32[4897]|0;
  15838. $23 = ($22|0)==(0);
  15839. if ($23) {
  15840. $26 = HEAP32[(20812)>>2]|0;
  15841. _glBindBuffer(34962,($26|0));
  15842. $27 = HEAP32[(19680)>>2]|0;
  15843. _glVertexAttribPointer(($27|0),3,5126,0,0,(0|0));
  15844. $28 = HEAP32[(19680)>>2]|0;
  15845. _glEnableVertexAttribArray(($28|0));
  15846. $29 = HEAP32[(20816)>>2]|0;
  15847. _glBindBuffer(34962,($29|0));
  15848. $30 = HEAP32[(19700)>>2]|0;
  15849. _glVertexAttribPointer(($30|0),4,5121,1,0,(0|0));
  15850. $31 = HEAP32[(19700)>>2]|0;
  15851. _glEnableVertexAttribArray(($31|0));
  15852. } else {
  15853. $24 = HEAP32[4899]|0;
  15854. $25 = HEAP32[(20808)>>2]|0;
  15855. FUNCTION_TABLE_vi[$24 & 31]($25);
  15856. }
  15857. $32 = HEAP32[5195]|0;
  15858. _glDrawArrays(1,0,($32|0));
  15859. $33 = HEAP32[4897]|0;
  15860. $34 = ($33|0)==(0);
  15861. if ($34) {
  15862. _glBindBuffer(34962,0);
  15863. }
  15864. _glBindTexture(3553,0);
  15865. }
  15866. $35 = HEAP32[5207]|0;
  15867. $36 = ($35|0)>(0);
  15868. if ($36) {
  15869. $37 = HEAP32[4904]|0;
  15870. _glBindTexture(3553,($37|0));
  15871. $38 = HEAP32[4897]|0;
  15872. $39 = ($38|0)==(0);
  15873. if ($39) {
  15874. $42 = HEAP32[(20860)>>2]|0;
  15875. _glBindBuffer(34962,($42|0));
  15876. $43 = HEAP32[(19680)>>2]|0;
  15877. _glVertexAttribPointer(($43|0),3,5126,0,0,(0|0));
  15878. $44 = HEAP32[(19680)>>2]|0;
  15879. _glEnableVertexAttribArray(($44|0));
  15880. $45 = HEAP32[(20864)>>2]|0;
  15881. _glBindBuffer(34962,($45|0));
  15882. $46 = HEAP32[(19700)>>2]|0;
  15883. _glVertexAttribPointer(($46|0),4,5121,1,0,(0|0));
  15884. $47 = HEAP32[(19700)>>2]|0;
  15885. _glEnableVertexAttribArray(($47|0));
  15886. } else {
  15887. $40 = HEAP32[4899]|0;
  15888. $41 = HEAP32[(20856)>>2]|0;
  15889. FUNCTION_TABLE_vi[$40 & 31]($41);
  15890. }
  15891. $48 = HEAP32[5207]|0;
  15892. _glDrawArrays(4,0,($48|0));
  15893. $49 = HEAP32[4897]|0;
  15894. $50 = ($49|0)==(0);
  15895. if ($50) {
  15896. _glBindBuffer(34962,0);
  15897. }
  15898. _glBindTexture(3553,0);
  15899. }
  15900. $51 = HEAP32[5219]|0;
  15901. $52 = ($51|0)>(0);
  15902. if ($52) {
  15903. $53 = HEAP32[4897]|0;
  15904. $54 = ($53|0)==(0);
  15905. if ($54) {
  15906. $57 = HEAP32[(20908)>>2]|0;
  15907. _glBindBuffer(34962,($57|0));
  15908. $58 = HEAP32[(19680)>>2]|0;
  15909. _glVertexAttribPointer(($58|0),3,5126,0,0,(0|0));
  15910. $59 = HEAP32[(19680)>>2]|0;
  15911. _glEnableVertexAttribArray(($59|0));
  15912. $60 = HEAP32[(20912)>>2]|0;
  15913. _glBindBuffer(34962,($60|0));
  15914. $61 = HEAP32[(19684)>>2]|0;
  15915. _glVertexAttribPointer(($61|0),2,5126,0,0,(0|0));
  15916. $62 = HEAP32[(19684)>>2]|0;
  15917. _glEnableVertexAttribArray(($62|0));
  15918. $63 = HEAP32[(20916)>>2]|0;
  15919. _glBindBuffer(34962,($63|0));
  15920. $64 = HEAP32[(19700)>>2]|0;
  15921. _glVertexAttribPointer(($64|0),4,5121,1,0,(0|0));
  15922. $65 = HEAP32[(19700)>>2]|0;
  15923. _glEnableVertexAttribArray(($65|0));
  15924. $66 = HEAP32[(20920)>>2]|0;
  15925. _glBindBuffer(34963,($66|0));
  15926. } else {
  15927. $55 = HEAP32[4899]|0;
  15928. $56 = HEAP32[(20904)>>2]|0;
  15929. FUNCTION_TABLE_vi[$55 & 31]($56);
  15930. }
  15931. $67 = HEAP32[4935]|0;
  15932. $68 = ($67|0)>(0);
  15933. if ($68) {
  15934. $$02830 = 0;$$031 = 0;
  15935. while(1) {
  15936. $71 = HEAP32[4934]|0;
  15937. $72 = (($71) + (($$031*144)|0)|0);
  15938. $73 = HEAP32[$72>>2]|0;
  15939. $74 = (($73|0) / 4)&-1;
  15940. $75 = ($74*6)|0;
  15941. $76 = (((($71) + (($$031*144)|0)|0)) + 8|0);
  15942. $77 = HEAP32[$76>>2]|0;
  15943. _glBindTexture(3553,($77|0));
  15944. $78 = $$02830 << 1;
  15945. $79 = $78;
  15946. _glDrawElements(4,($75|0),5123,($79|0));
  15947. $80 = HEAP32[4934]|0;
  15948. $81 = (($80) + (($$031*144)|0)|0);
  15949. $82 = HEAP32[$81>>2]|0;
  15950. $83 = (($82|0) / 4)&-1;
  15951. $84 = ($83*6)|0;
  15952. $85 = (($84) + ($$02830))|0;
  15953. $86 = (($$031) + 1)|0;
  15954. $87 = HEAP32[4935]|0;
  15955. $88 = ($86|0)<($87|0);
  15956. if ($88) {
  15957. $$02830 = $85;$$031 = $86;
  15958. } else {
  15959. break;
  15960. }
  15961. }
  15962. }
  15963. $69 = HEAP32[4897]|0;
  15964. $70 = ($69|0)==(0);
  15965. if ($70) {
  15966. _glBindBuffer(34962,0);
  15967. _glBindBuffer(34963,0);
  15968. }
  15969. _glBindTexture(3553,0);
  15970. }
  15971. $89 = HEAP32[4897]|0;
  15972. $90 = ($89|0)==(0);
  15973. if (!($90)) {
  15974. $91 = HEAP32[4899]|0;
  15975. FUNCTION_TABLE_vi[$91 & 31](0);
  15976. }
  15977. _glUseProgram(0);
  15978. $92 = (($$02932) + 1)|0;
  15979. $93 = ($92|0)<($$|0);
  15980. if ($93) {
  15981. $$02932 = $92;
  15982. } else {
  15983. break;
  15984. }
  15985. }
  15986. HEAP32[4935] = 1;
  15987. $5 = HEAP32[4904]|0;
  15988. $6 = HEAP32[4934]|0;
  15989. $7 = ((($6)) + 8|0);
  15990. HEAP32[$7>>2] = $5;
  15991. HEAP32[$6>>2] = 0;
  15992. HEAP32[5195] = 0;
  15993. HEAP32[(20788)>>2] = 0;
  15994. HEAP32[5207] = 0;
  15995. HEAP32[(20836)>>2] = 0;
  15996. HEAP32[5219] = 0;
  15997. HEAP32[(20880)>>2] = 0;
  15998. HEAP32[(20884)>>2] = 0;
  15999. HEAPF32[764] = -1.0;
  16000. dest=19456; 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));
  16001. dest=19520; 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));
  16002. STACKTOP = sp;return;
  16003. }
  16004. function _SetStereoView($0,$1,$2) {
  16005. $0 = $0|0;
  16006. $1 = $1|0;
  16007. $2 = $2|0;
  16008. 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;
  16009. sp = STACKTOP;
  16010. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  16011. $$byval_copy3 = sp + 192|0;
  16012. $$byval_copy = sp + 64|0;
  16013. $3 = sp;
  16014. $4 = sp + 128|0;
  16015. 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));
  16016. $5 = HEAP32[5193]|0;
  16017. $6 = Math_imul($5, $0)|0;
  16018. $7 = (($6|0) / 2)&-1;
  16019. $8 = (($5|0) / 2)&-1;
  16020. $9 = HEAP32[5194]|0;
  16021. _rlViewport($7,0,$8,$9);
  16022. $10 = (21360 + ($0<<6)|0);
  16023. 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));
  16024. 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));
  16025. _MatrixMultiply($4,$$byval_copy,$$byval_copy3);
  16026. $11 = (21232 + ($0<<6)|0);
  16027. 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));
  16028. 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));
  16029. _SetMatrixModelview($$byval_copy3);
  16030. 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));
  16031. _SetMatrixProjection($$byval_copy3);
  16032. STACKTOP = sp;return;
  16033. }
  16034. function _SetMatrixModelview($0) {
  16035. $0 = $0|0;
  16036. var dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  16037. sp = STACKTOP;
  16038. dest=19520; 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));
  16039. return;
  16040. }
  16041. function _SetMatrixProjection($0) {
  16042. $0 = $0|0;
  16043. var dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  16044. sp = STACKTOP;
  16045. dest=19456; 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));
  16046. return;
  16047. }
  16048. function _Begin3dMode($0) {
  16049. $0 = $0|0;
  16050. 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;
  16051. var $8 = 0.0, $9 = 0.0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  16052. sp = STACKTOP;
  16053. STACKTOP = STACKTOP + 160|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(160|0);
  16054. $$byval_copy3 = sp + 88|0;
  16055. $$byval_copy1 = sp + 76|0;
  16056. $$byval_copy = sp + 64|0;
  16057. $1 = sp;
  16058. _rlglDraw();
  16059. _rlMatrixMode(5889);
  16060. _rlPushMatrix();
  16061. _rlLoadIdentity();
  16062. $2 = HEAP32[4818]|0;
  16063. $3 = (+($2|0));
  16064. $4 = HEAP32[4817]|0;
  16065. $5 = (+($4|0));
  16066. $6 = $3 / $5;
  16067. $7 = ((($0)) + 36|0);
  16068. $8 = +HEAPF32[$7>>2];
  16069. $9 = $8 * 3.1415927410125732;
  16070. $10 = $9;
  16071. $11 = $10 / 360.0;
  16072. $12 = (+Math_tan((+$11)));
  16073. $13 = $12 * 0.01;
  16074. $14 = $6;
  16075. $15 = $13 * $14;
  16076. $16 = -$15;
  16077. $17 = -$13;
  16078. _rlFrustum($16,$15,$17,$13,0.01,1000.0);
  16079. _rlMatrixMode(5888);
  16080. _rlLoadIdentity();
  16081. $18 = ((($0)) + 12|0);
  16082. $19 = ((($0)) + 24|0);
  16083. ;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;
  16084. ;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;
  16085. ;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;
  16086. _MatrixLookAt($1,$$byval_copy,$$byval_copy1,$$byval_copy3);
  16087. 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));
  16088. (_MatrixToFloat($$byval_copy3)|0);
  16089. _rlMultMatrixf(20932);
  16090. _rlEnableDepthTest();
  16091. STACKTOP = sp;return;
  16092. }
  16093. function _rlPushMatrix() {
  16094. 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;
  16095. sp = STACKTOP;
  16096. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  16097. $vararg_buffer = sp;
  16098. $0 = HEAP32[5372]|0;
  16099. $1 = ($0|0)==(15);
  16100. if ($1) {
  16101. HEAP32[$vararg_buffer>>2] = 16;
  16102. _TraceLog(1,9387,$vararg_buffer);
  16103. }
  16104. $2 = HEAP32[5372]|0;
  16105. $3 = (19748 + ($2<<6)|0);
  16106. $4 = HEAP32[4863]|0;
  16107. 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));
  16108. _rlLoadIdentity();
  16109. $5 = HEAP32[5372]|0;
  16110. $6 = (($5) + 1)|0;
  16111. HEAP32[5372] = $6;
  16112. $7 = HEAP32[4896]|0;
  16113. $8 = ($7|0)==(5888);
  16114. if (!($8)) {
  16115. STACKTOP = sp;return;
  16116. }
  16117. HEAP32[5373] = 1;
  16118. STACKTOP = sp;return;
  16119. }
  16120. function _rlFrustum($0,$1,$2,$3,$4,$5) {
  16121. $0 = +$0;
  16122. $1 = +$1;
  16123. $2 = +$2;
  16124. $3 = +$3;
  16125. $4 = +$4;
  16126. $5 = +$5;
  16127. var $$byval_copy = 0, $$byval_copy1 = 0, $6 = 0, $7 = 0, $8 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  16128. sp = STACKTOP;
  16129. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  16130. $$byval_copy1 = sp + 192|0;
  16131. $$byval_copy = sp + 128|0;
  16132. $6 = sp + 64|0;
  16133. $7 = sp;
  16134. _MatrixFrustum($6,$0,$1,$2,$3,$4,$5);
  16135. _MatrixTranspose($6);
  16136. $8 = HEAP32[4863]|0;
  16137. 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));
  16138. 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));
  16139. _MatrixMultiply($7,$$byval_copy,$$byval_copy1);
  16140. 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));
  16141. STACKTOP = sp;return;
  16142. }
  16143. function _rlEnableDepthTest() {
  16144. var label = 0, sp = 0;
  16145. sp = STACKTOP;
  16146. _glEnable(2929);
  16147. return;
  16148. }
  16149. function _End3dMode() {
  16150. var label = 0, sp = 0;
  16151. sp = STACKTOP;
  16152. _rlglDraw();
  16153. _rlMatrixMode(5889);
  16154. _rlPopMatrix();
  16155. _rlMatrixMode(5888);
  16156. _rlLoadIdentity();
  16157. _rlDisableDepthTest();
  16158. return;
  16159. }
  16160. function _rlPopMatrix() {
  16161. var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  16162. sp = STACKTOP;
  16163. $0 = HEAP32[5372]|0;
  16164. $1 = ($0|0)>(0);
  16165. if (!($1)) {
  16166. return;
  16167. }
  16168. $2 = HEAP32[5372]|0;
  16169. $3 = (($2) + -1)|0;
  16170. $4 = (19748 + ($3<<6)|0);
  16171. $5 = HEAP32[4863]|0;
  16172. _memmove(($5|0),($4|0),64)|0;
  16173. $6 = (($2) + -1)|0;
  16174. HEAP32[5372] = $6;
  16175. return;
  16176. }
  16177. function _rlDisableDepthTest() {
  16178. var label = 0, sp = 0;
  16179. sp = STACKTOP;
  16180. _glDisable(2929);
  16181. return;
  16182. }
  16183. function _BeginTextureMode($0) {
  16184. $0 = $0|0;
  16185. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0.0, $7 = 0.0, label = 0, sp = 0;
  16186. sp = STACKTOP;
  16187. _rlglDraw();
  16188. $1 = HEAP32[$0>>2]|0;
  16189. _rlEnableRenderTexture($1);
  16190. _rlClearScreenBuffers();
  16191. $2 = ((($0)) + 8|0);
  16192. $3 = HEAP32[$2>>2]|0;
  16193. $4 = ((($0)) + 12|0);
  16194. $5 = HEAP32[$4>>2]|0;
  16195. _rlViewport(0,0,$3,$5);
  16196. _rlMatrixMode(5889);
  16197. _rlLoadIdentity();
  16198. $6 = (+($3|0));
  16199. $7 = (+($5|0));
  16200. _rlOrtho(0.0,$6,$7,0.0,0.0,1.0);
  16201. _rlMatrixMode(5888);
  16202. _rlLoadIdentity();
  16203. return;
  16204. }
  16205. function _rlEnableRenderTexture($0) {
  16206. $0 = $0|0;
  16207. var label = 0, sp = 0;
  16208. sp = STACKTOP;
  16209. _glBindFramebuffer(36160,($0|0));
  16210. return;
  16211. }
  16212. function _EndTextureMode() {
  16213. var $0 = 0, $1 = 0.0, $2 = 0, $3 = 0.0, label = 0, sp = 0;
  16214. sp = STACKTOP;
  16215. _rlglDraw();
  16216. _rlDisableRenderTexture();
  16217. _SetupViewport();
  16218. _rlMatrixMode(5889);
  16219. _rlLoadIdentity();
  16220. $0 = (_GetScreenWidth()|0);
  16221. $1 = (+($0|0));
  16222. $2 = (_GetScreenHeight()|0);
  16223. $3 = (+($2|0));
  16224. _rlOrtho(0.0,$1,$3,0.0,0.0,1.0);
  16225. _rlMatrixMode(5888);
  16226. _rlLoadIdentity();
  16227. return;
  16228. }
  16229. function _rlDisableRenderTexture() {
  16230. var label = 0, sp = 0;
  16231. sp = STACKTOP;
  16232. _glBindFramebuffer(36160,0);
  16233. return;
  16234. }
  16235. function _GetFPS() {
  16236. var $0 = 0.0, $1 = 0.0, $2 = 0, label = 0, sp = 0;
  16237. sp = STACKTOP;
  16238. $0 = (+_GetFrameTime());
  16239. $1 = 1.0 / $0;
  16240. $2 = (~~(($1)));
  16241. return ($2|0);
  16242. }
  16243. function _GetFrameTime() {
  16244. var $0 = 0.0, $1 = 0.0, label = 0, sp = 0;
  16245. sp = STACKTOP;
  16246. $0 = +HEAPF64[2348];
  16247. $1 = $0;
  16248. return (+$1);
  16249. }
  16250. function _SetConfigFlags($0) {
  16251. $0 = $0|0;
  16252. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  16253. sp = STACKTOP;
  16254. HEAP8[22104] = $0;
  16255. $1 = $0 & 1;
  16256. $2 = ($1<<24>>24)==(0);
  16257. if (!($2)) {
  16258. HEAP32[4821] = 1;
  16259. }
  16260. $3 = HEAP8[22104]|0;
  16261. $4 = $3 & 2;
  16262. $5 = ($4<<24>>24)==(0);
  16263. if ($5) {
  16264. return;
  16265. }
  16266. HEAP32[4858] = 1;
  16267. return;
  16268. }
  16269. function _IsFileExtension($0,$1) {
  16270. $0 = $0|0;
  16271. $1 = $1|0;
  16272. var $$ = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  16273. sp = STACKTOP;
  16274. $2 = (_strrchr($0,46)|0);
  16275. $3 = ($2|0)==(0|0);
  16276. if ($3) {
  16277. return 0;
  16278. } else {
  16279. $4 = (_strcmp($2,$1)|0);
  16280. $5 = ($4|0)==(0);
  16281. $$ = $5&1;
  16282. return ($$|0);
  16283. }
  16284. return (0)|0;
  16285. }
  16286. function _rlTranslatef($0,$1,$2) {
  16287. $0 = +$0;
  16288. $1 = +$1;
  16289. $2 = +$2;
  16290. var $$byval_copy = 0, $$byval_copy1 = 0, $3 = 0, $4 = 0, $5 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  16291. sp = STACKTOP;
  16292. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  16293. $$byval_copy1 = sp + 192|0;
  16294. $$byval_copy = sp + 128|0;
  16295. $3 = sp + 64|0;
  16296. $4 = sp;
  16297. _MatrixTranslate($3,$0,$1,$2);
  16298. _MatrixTranspose($3);
  16299. $5 = HEAP32[4863]|0;
  16300. 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));
  16301. 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));
  16302. _MatrixMultiply($4,$$byval_copy,$$byval_copy1);
  16303. 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));
  16304. STACKTOP = sp;return;
  16305. }
  16306. function _rlRotatef($0,$1,$2,$3) {
  16307. $0 = +$0;
  16308. $1 = +$1;
  16309. $2 = +$2;
  16310. $3 = +$3;
  16311. 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;
  16312. sp = STACKTOP;
  16313. STACKTOP = STACKTOP + 336|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(336|0);
  16314. $$byval_copy2 = sp + 272|0;
  16315. $$byval_copy1 = sp + 208|0;
  16316. $4 = sp + 144|0;
  16317. $5 = sp + 64|0;
  16318. $6 = sp + 80|0;
  16319. $7 = sp;
  16320. _MatrixIdentity($4);
  16321. HEAPF32[$5>>2] = $1;
  16322. $8 = ((($5)) + 4|0);
  16323. HEAPF32[$8>>2] = $2;
  16324. $9 = ((($5)) + 8|0);
  16325. HEAPF32[$9>>2] = $3;
  16326. _VectorNormalize($5);
  16327. $10 = $0 * 0.01745329238474369;
  16328. ;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;
  16329. _MatrixRotate($6,$$byval_copy2,$10);
  16330. 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));
  16331. _MatrixTranspose($4);
  16332. $11 = HEAP32[4863]|0;
  16333. 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));
  16334. 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));
  16335. _MatrixMultiply($7,$$byval_copy1,$$byval_copy2);
  16336. 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));
  16337. STACKTOP = sp;return;
  16338. }
  16339. function _rlBegin($0) {
  16340. $0 = $0|0;
  16341. var label = 0, sp = 0;
  16342. sp = STACKTOP;
  16343. HEAP32[4936] = $0;
  16344. return;
  16345. }
  16346. function _rlEnd() {
  16347. 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;
  16348. 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;
  16349. 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;
  16350. 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;
  16351. 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;
  16352. 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;
  16353. 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;
  16354. 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;
  16355. var $scevgep = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  16356. sp = STACKTOP;
  16357. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  16358. $$byval_copy = sp;
  16359. $0 = HEAP32[5373]|0;
  16360. $1 = ($0|0)==(0);
  16361. if (!($1)) {
  16362. $2 = HEAP32[5374]|0;
  16363. $3 = ($2|0)>(0);
  16364. if ($3) {
  16365. $$03956 = 0;
  16366. while(1) {
  16367. $6 = HEAP32[4933]|0;
  16368. $7 = (($6) + (($$03956*12)|0)|0);
  16369. $8 = HEAP32[4863]|0;
  16370. 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));
  16371. _VectorTransform($7,$$byval_copy);
  16372. $9 = (($$03956) + 1)|0;
  16373. $5 = HEAP32[5374]|0;
  16374. $10 = ($9|0)<($5|0);
  16375. if ($10) {
  16376. $$03956 = $9;
  16377. } else {
  16378. break;
  16379. }
  16380. }
  16381. HEAP32[5373] = 0;
  16382. $4 = ($5|0)>(0);
  16383. if ($4) {
  16384. $$04154 = 0;
  16385. while(1) {
  16386. $11 = HEAP32[4933]|0;
  16387. $12 = (($11) + (($$04154*12)|0)|0);
  16388. $13 = +HEAPF32[$12>>2];
  16389. $14 = (((($11) + (($$04154*12)|0)|0)) + 4|0);
  16390. $15 = +HEAPF32[$14>>2];
  16391. $16 = (((($11) + (($$04154*12)|0)|0)) + 8|0);
  16392. $17 = +HEAPF32[$16>>2];
  16393. _rlVertex3f($13,$15,$17);
  16394. $18 = (($$04154) + 1)|0;
  16395. $19 = HEAP32[5374]|0;
  16396. $20 = ($18|0)<($19|0);
  16397. if ($20) {
  16398. $$04154 = $18;
  16399. } else {
  16400. break;
  16401. }
  16402. }
  16403. }
  16404. } else {
  16405. HEAP32[5373] = 0;
  16406. }
  16407. HEAP32[5374] = 0;
  16408. }
  16409. $21 = HEAP32[4936]|0;
  16410. switch ($21|0) {
  16411. case 1: {
  16412. $22 = HEAP32[5195]|0;
  16413. $23 = HEAP32[(20788)>>2]|0;
  16414. $24 = ($22|0)==($23|0);
  16415. if ($24) {
  16416. $148 = +HEAPF32[764];
  16417. $149 = $148 + 4.9999998736893758E-5;
  16418. HEAPF32[764] = $149;
  16419. STACKTOP = sp;return;
  16420. }
  16421. $25 = (($22) - ($23))|0;
  16422. $26 = ($25|0)>(0);
  16423. if ($26) {
  16424. $$04347 = 0;
  16425. } else {
  16426. $148 = +HEAPF32[764];
  16427. $149 = $148 + 4.9999998736893758E-5;
  16428. HEAPF32[764] = $149;
  16429. STACKTOP = sp;return;
  16430. }
  16431. while(1) {
  16432. $27 = HEAP32[(20800)>>2]|0;
  16433. $28 = HEAP32[(20788)>>2]|0;
  16434. $29 = $28 << 2;
  16435. $30 = (($29) + -4)|0;
  16436. $31 = (($27) + ($30)|0);
  16437. $32 = HEAP8[$31>>0]|0;
  16438. $33 = (($27) + ($29)|0);
  16439. HEAP8[$33>>0] = $32;
  16440. $34 = HEAP32[(20800)>>2]|0;
  16441. $35 = HEAP32[(20788)>>2]|0;
  16442. $36 = $35 << 2;
  16443. $37 = (($36) + -3)|0;
  16444. $38 = (($34) + ($37)|0);
  16445. $39 = HEAP8[$38>>0]|0;
  16446. $40 = $36 | 1;
  16447. $41 = (($34) + ($40)|0);
  16448. HEAP8[$41>>0] = $39;
  16449. $42 = HEAP32[(20800)>>2]|0;
  16450. $43 = HEAP32[(20788)>>2]|0;
  16451. $44 = $43 << 2;
  16452. $45 = (($44) + -2)|0;
  16453. $46 = (($42) + ($45)|0);
  16454. $47 = HEAP8[$46>>0]|0;
  16455. $48 = $44 | 2;
  16456. $49 = (($42) + ($48)|0);
  16457. HEAP8[$49>>0] = $47;
  16458. $50 = HEAP32[(20800)>>2]|0;
  16459. $51 = HEAP32[(20788)>>2]|0;
  16460. $52 = $51 << 2;
  16461. $53 = (($52) + -1)|0;
  16462. $54 = (($50) + ($53)|0);
  16463. $55 = HEAP8[$54>>0]|0;
  16464. $56 = $52 | 3;
  16465. $57 = (($50) + ($56)|0);
  16466. HEAP8[$57>>0] = $55;
  16467. $58 = HEAP32[(20788)>>2]|0;
  16468. $59 = (($58) + 1)|0;
  16469. HEAP32[(20788)>>2] = $59;
  16470. $60 = (($$04347) + 1)|0;
  16471. $exitcond = ($60|0)==($25|0);
  16472. if ($exitcond) {
  16473. break;
  16474. } else {
  16475. $$04347 = $60;
  16476. }
  16477. }
  16478. $148 = +HEAPF32[764];
  16479. $149 = $148 + 4.9999998736893758E-5;
  16480. HEAPF32[764] = $149;
  16481. STACKTOP = sp;return;
  16482. break;
  16483. }
  16484. case 4: {
  16485. $61 = HEAP32[5207]|0;
  16486. $62 = HEAP32[(20836)>>2]|0;
  16487. $63 = ($61|0)==($62|0);
  16488. if ($63) {
  16489. $148 = +HEAPF32[764];
  16490. $149 = $148 + 4.9999998736893758E-5;
  16491. HEAPF32[764] = $149;
  16492. STACKTOP = sp;return;
  16493. }
  16494. $64 = (($61) - ($62))|0;
  16495. $65 = ($64|0)>(0);
  16496. if ($65) {
  16497. $$04248 = 0;
  16498. } else {
  16499. $148 = +HEAPF32[764];
  16500. $149 = $148 + 4.9999998736893758E-5;
  16501. HEAPF32[764] = $149;
  16502. STACKTOP = sp;return;
  16503. }
  16504. while(1) {
  16505. $66 = HEAP32[(20848)>>2]|0;
  16506. $67 = HEAP32[(20836)>>2]|0;
  16507. $68 = $67 << 2;
  16508. $69 = (($68) + -4)|0;
  16509. $70 = (($66) + ($69)|0);
  16510. $71 = HEAP8[$70>>0]|0;
  16511. $72 = (($66) + ($68)|0);
  16512. HEAP8[$72>>0] = $71;
  16513. $73 = HEAP32[(20848)>>2]|0;
  16514. $74 = HEAP32[(20836)>>2]|0;
  16515. $75 = $74 << 2;
  16516. $76 = (($75) + -3)|0;
  16517. $77 = (($73) + ($76)|0);
  16518. $78 = HEAP8[$77>>0]|0;
  16519. $79 = $75 | 1;
  16520. $80 = (($73) + ($79)|0);
  16521. HEAP8[$80>>0] = $78;
  16522. $81 = HEAP32[(20848)>>2]|0;
  16523. $82 = HEAP32[(20836)>>2]|0;
  16524. $83 = $82 << 2;
  16525. $84 = (($83) + -2)|0;
  16526. $85 = (($81) + ($84)|0);
  16527. $86 = HEAP8[$85>>0]|0;
  16528. $87 = $83 | 2;
  16529. $88 = (($81) + ($87)|0);
  16530. HEAP8[$88>>0] = $86;
  16531. $89 = HEAP32[(20848)>>2]|0;
  16532. $90 = HEAP32[(20836)>>2]|0;
  16533. $91 = $90 << 2;
  16534. $92 = (($91) + -1)|0;
  16535. $93 = (($89) + ($92)|0);
  16536. $94 = HEAP8[$93>>0]|0;
  16537. $95 = $91 | 3;
  16538. $96 = (($89) + ($95)|0);
  16539. HEAP8[$96>>0] = $94;
  16540. $97 = HEAP32[(20836)>>2]|0;
  16541. $98 = (($97) + 1)|0;
  16542. HEAP32[(20836)>>2] = $98;
  16543. $99 = (($$04248) + 1)|0;
  16544. $exitcond60 = ($99|0)==($64|0);
  16545. if ($exitcond60) {
  16546. break;
  16547. } else {
  16548. $$04248 = $99;
  16549. }
  16550. }
  16551. $148 = +HEAPF32[764];
  16552. $149 = $148 + 4.9999998736893758E-5;
  16553. HEAPF32[764] = $149;
  16554. STACKTOP = sp;return;
  16555. break;
  16556. }
  16557. case 7: {
  16558. $100 = HEAP32[5219]|0;
  16559. $101 = HEAP32[(20884)>>2]|0;
  16560. $102 = ($100|0)==($101|0);
  16561. if (!($102)) {
  16562. $103 = (($100) - ($101))|0;
  16563. $104 = ($103|0)>(0);
  16564. if ($104) {
  16565. $$04052 = 0;
  16566. while(1) {
  16567. $105 = HEAP32[(20896)>>2]|0;
  16568. $106 = HEAP32[(20884)>>2]|0;
  16569. $107 = $106 << 2;
  16570. $108 = (($107) + -4)|0;
  16571. $109 = (($105) + ($108)|0);
  16572. $110 = HEAP8[$109>>0]|0;
  16573. $111 = (($105) + ($107)|0);
  16574. HEAP8[$111>>0] = $110;
  16575. $112 = HEAP32[(20896)>>2]|0;
  16576. $113 = HEAP32[(20884)>>2]|0;
  16577. $114 = $113 << 2;
  16578. $115 = (($114) + -3)|0;
  16579. $116 = (($112) + ($115)|0);
  16580. $117 = HEAP8[$116>>0]|0;
  16581. $118 = $114 | 1;
  16582. $119 = (($112) + ($118)|0);
  16583. HEAP8[$119>>0] = $117;
  16584. $120 = HEAP32[(20896)>>2]|0;
  16585. $121 = HEAP32[(20884)>>2]|0;
  16586. $122 = $121 << 2;
  16587. $123 = (($122) + -2)|0;
  16588. $124 = (($120) + ($123)|0);
  16589. $125 = HEAP8[$124>>0]|0;
  16590. $126 = $122 | 2;
  16591. $127 = (($120) + ($126)|0);
  16592. HEAP8[$127>>0] = $125;
  16593. $128 = HEAP32[(20896)>>2]|0;
  16594. $129 = HEAP32[(20884)>>2]|0;
  16595. $130 = $129 << 2;
  16596. $131 = (($130) + -1)|0;
  16597. $132 = (($128) + ($131)|0);
  16598. $133 = HEAP8[$132>>0]|0;
  16599. $134 = $130 | 3;
  16600. $135 = (($128) + ($134)|0);
  16601. HEAP8[$135>>0] = $133;
  16602. $136 = HEAP32[(20884)>>2]|0;
  16603. $137 = (($136) + 1)|0;
  16604. HEAP32[(20884)>>2] = $137;
  16605. $138 = (($$04052) + 1)|0;
  16606. $exitcond63 = ($138|0)==($103|0);
  16607. if ($exitcond63) {
  16608. break;
  16609. } else {
  16610. $$04052 = $138;
  16611. }
  16612. }
  16613. }
  16614. }
  16615. $139 = HEAP32[5219]|0;
  16616. $140 = HEAP32[(20880)>>2]|0;
  16617. $141 = ($139|0)>($140|0);
  16618. if (!($141)) {
  16619. $148 = +HEAPF32[764];
  16620. $149 = $148 + 4.9999998736893758E-5;
  16621. HEAPF32[764] = $149;
  16622. STACKTOP = sp;return;
  16623. }
  16624. $142 = HEAP32[(20892)>>2]|0;
  16625. $$promoted = HEAP32[(20880)>>2]|0;
  16626. $143 = $$promoted << 1;
  16627. $scevgep = (($142) + ($143<<2)|0);
  16628. $144 = (($139) - ($140))|0;
  16629. $145 = $144 << 3;
  16630. _memset(($scevgep|0),0,($145|0))|0;
  16631. $146 = (($139) + ($$promoted))|0;
  16632. $147 = (($146) - ($140))|0;
  16633. HEAP32[(20880)>>2] = $147;
  16634. $148 = +HEAPF32[764];
  16635. $149 = $148 + 4.9999998736893758E-5;
  16636. HEAPF32[764] = $149;
  16637. STACKTOP = sp;return;
  16638. break;
  16639. }
  16640. default: {
  16641. $148 = +HEAPF32[764];
  16642. $149 = $148 + 4.9999998736893758E-5;
  16643. HEAPF32[764] = $149;
  16644. STACKTOP = sp;return;
  16645. }
  16646. }
  16647. }
  16648. function _rlVertex3f($0,$1,$2) {
  16649. $0 = +$0;
  16650. $1 = +$1;
  16651. $2 = +$2;
  16652. 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;
  16653. 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;
  16654. var $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, $vararg_buffer3 = 0, label = 0, sp = 0;
  16655. sp = STACKTOP;
  16656. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  16657. $vararg_buffer3 = sp + 16|0;
  16658. $vararg_buffer1 = sp + 8|0;
  16659. $vararg_buffer = sp;
  16660. $3 = HEAP32[5373]|0;
  16661. $4 = ($3|0)==(0);
  16662. if (!($4)) {
  16663. $5 = HEAP32[4933]|0;
  16664. $6 = HEAP32[5374]|0;
  16665. $7 = (($5) + (($6*12)|0)|0);
  16666. HEAPF32[$7>>2] = $0;
  16667. $8 = (((($5) + (($6*12)|0)|0)) + 4|0);
  16668. HEAPF32[$8>>2] = $1;
  16669. $9 = (((($5) + (($6*12)|0)|0)) + 8|0);
  16670. HEAPF32[$9>>2] = $2;
  16671. $10 = (($6) + 1)|0;
  16672. HEAP32[5374] = $10;
  16673. STACKTOP = sp;return;
  16674. }
  16675. $11 = HEAP32[4936]|0;
  16676. switch ($11|0) {
  16677. case 1: {
  16678. $12 = HEAP32[5195]|0;
  16679. $13 = ($12|0)<(2048);
  16680. if ($13) {
  16681. $14 = HEAP32[(20792)>>2]|0;
  16682. $15 = ($12*3)|0;
  16683. $16 = (($14) + ($15<<2)|0);
  16684. HEAPF32[$16>>2] = $0;
  16685. $17 = (($15) + 1)|0;
  16686. $18 = (($14) + ($17<<2)|0);
  16687. HEAPF32[$18>>2] = $1;
  16688. $19 = (($15) + 2)|0;
  16689. $20 = (($14) + ($19<<2)|0);
  16690. HEAPF32[$20>>2] = $2;
  16691. $21 = (($12) + 1)|0;
  16692. HEAP32[5195] = $21;
  16693. STACKTOP = sp;return;
  16694. } else {
  16695. _TraceLog(1,9425,$vararg_buffer);
  16696. STACKTOP = sp;return;
  16697. }
  16698. break;
  16699. }
  16700. case 4: {
  16701. $22 = HEAP32[5207]|0;
  16702. $23 = ($22|0)<(6144);
  16703. if ($23) {
  16704. $24 = HEAP32[(20840)>>2]|0;
  16705. $25 = ($22*3)|0;
  16706. $26 = (($24) + ($25<<2)|0);
  16707. HEAPF32[$26>>2] = $0;
  16708. $27 = (($25) + 1)|0;
  16709. $28 = (($24) + ($27<<2)|0);
  16710. HEAPF32[$28>>2] = $1;
  16711. $29 = (($25) + 2)|0;
  16712. $30 = (($24) + ($29<<2)|0);
  16713. HEAPF32[$30>>2] = $2;
  16714. $31 = (($22) + 1)|0;
  16715. HEAP32[5207] = $31;
  16716. STACKTOP = sp;return;
  16717. } else {
  16718. _TraceLog(1,9450,$vararg_buffer1);
  16719. STACKTOP = sp;return;
  16720. }
  16721. break;
  16722. }
  16723. case 7: {
  16724. $32 = HEAP32[5219]|0;
  16725. $33 = ($32|0)<(4096);
  16726. if ($33) {
  16727. $34 = HEAP32[(20888)>>2]|0;
  16728. $35 = ($32*3)|0;
  16729. $36 = (($34) + ($35<<2)|0);
  16730. HEAPF32[$36>>2] = $0;
  16731. $37 = (($35) + 1)|0;
  16732. $38 = (($34) + ($37<<2)|0);
  16733. HEAPF32[$38>>2] = $1;
  16734. $39 = (($35) + 2)|0;
  16735. $40 = (($34) + ($39<<2)|0);
  16736. HEAPF32[$40>>2] = $2;
  16737. $41 = (($32) + 1)|0;
  16738. HEAP32[5219] = $41;
  16739. $42 = HEAP32[4934]|0;
  16740. $43 = HEAP32[4935]|0;
  16741. $44 = (($43) + -1)|0;
  16742. $45 = (($42) + (($44*144)|0)|0);
  16743. $46 = HEAP32[$45>>2]|0;
  16744. $47 = (($46) + 1)|0;
  16745. HEAP32[$45>>2] = $47;
  16746. STACKTOP = sp;return;
  16747. } else {
  16748. _TraceLog(1,9479,$vararg_buffer3);
  16749. STACKTOP = sp;return;
  16750. }
  16751. break;
  16752. }
  16753. default: {
  16754. STACKTOP = sp;return;
  16755. }
  16756. }
  16757. }
  16758. function _rlVertex2f($0,$1) {
  16759. $0 = +$0;
  16760. $1 = +$1;
  16761. var $2 = 0.0, label = 0, sp = 0;
  16762. sp = STACKTOP;
  16763. $2 = +HEAPF32[764];
  16764. _rlVertex3f($0,$1,$2);
  16765. return;
  16766. }
  16767. function _rlTexCoord2f($0,$1) {
  16768. $0 = +$0;
  16769. $1 = +$1;
  16770. var $10 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  16771. sp = STACKTOP;
  16772. $2 = HEAP32[4936]|0;
  16773. $3 = ($2|0)==(7);
  16774. if (!($3)) {
  16775. return;
  16776. }
  16777. $4 = HEAP32[(20892)>>2]|0;
  16778. $5 = HEAP32[(20880)>>2]|0;
  16779. $6 = $5 << 1;
  16780. $7 = (($4) + ($6<<2)|0);
  16781. HEAPF32[$7>>2] = $0;
  16782. $8 = $6 | 1;
  16783. $9 = (($4) + ($8<<2)|0);
  16784. HEAPF32[$9>>2] = $1;
  16785. $10 = (($5) + 1)|0;
  16786. HEAP32[(20880)>>2] = $10;
  16787. return;
  16788. }
  16789. function _rlNormal3f($0,$1,$2) {
  16790. $0 = +$0;
  16791. $1 = +$1;
  16792. $2 = +$2;
  16793. var label = 0, sp = 0;
  16794. sp = STACKTOP;
  16795. return;
  16796. }
  16797. function _rlColor4ub($0,$1,$2,$3) {
  16798. $0 = $0|0;
  16799. $1 = $1|0;
  16800. $2 = $2|0;
  16801. $3 = $3|0;
  16802. 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;
  16803. var $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  16804. sp = STACKTOP;
  16805. $4 = HEAP32[4936]|0;
  16806. switch ($4|0) {
  16807. case 1: {
  16808. $$sink37 = (20788);$$sink38 = (20800);
  16809. break;
  16810. }
  16811. case 4: {
  16812. $$sink37 = (20836);$$sink38 = (20848);
  16813. break;
  16814. }
  16815. case 7: {
  16816. $$sink37 = (20884);$$sink38 = (20896);
  16817. break;
  16818. }
  16819. default: {
  16820. return;
  16821. }
  16822. }
  16823. $5 = HEAP32[$$sink38>>2]|0;
  16824. $6 = HEAP32[$$sink37>>2]|0;
  16825. $7 = $6 << 2;
  16826. $8 = (($5) + ($7)|0);
  16827. HEAP8[$8>>0] = $0;
  16828. $9 = HEAP32[$$sink38>>2]|0;
  16829. $10 = HEAP32[$$sink37>>2]|0;
  16830. $11 = $10 << 2;
  16831. $12 = $11 | 1;
  16832. $13 = (($9) + ($12)|0);
  16833. HEAP8[$13>>0] = $1;
  16834. $14 = HEAP32[$$sink38>>2]|0;
  16835. $15 = HEAP32[$$sink37>>2]|0;
  16836. $16 = $15 << 2;
  16837. $17 = $16 | 2;
  16838. $18 = (($14) + ($17)|0);
  16839. HEAP8[$18>>0] = $2;
  16840. $19 = HEAP32[$$sink38>>2]|0;
  16841. $20 = HEAP32[$$sink37>>2]|0;
  16842. $21 = $20 << 2;
  16843. $22 = $21 | 3;
  16844. $23 = (($19) + ($22)|0);
  16845. HEAP8[$23>>0] = $3;
  16846. $24 = HEAP32[$$sink37>>2]|0;
  16847. $25 = (($24) + 1)|0;
  16848. HEAP32[$$sink37>>2] = $25;
  16849. return;
  16850. }
  16851. function _rlColor3f($0,$1,$2) {
  16852. $0 = +$0;
  16853. $1 = +$1;
  16854. $2 = +$2;
  16855. var $3 = 0.0, $4 = 0, $5 = 0.0, $6 = 0, $7 = 0.0, $8 = 0, label = 0, sp = 0;
  16856. sp = STACKTOP;
  16857. $3 = $0 * 255.0;
  16858. $4 = (~~(($3))&255);
  16859. $5 = $1 * 255.0;
  16860. $6 = (~~(($5))&255);
  16861. $7 = $2 * 255.0;
  16862. $8 = (~~(($7))&255);
  16863. _rlColor4ub($4,$6,$8,-1);
  16864. return;
  16865. }
  16866. function _rlEnableTexture($0) {
  16867. $0 = $0|0;
  16868. 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;
  16869. sp = STACKTOP;
  16870. $1 = HEAP32[4934]|0;
  16871. $2 = HEAP32[4935]|0;
  16872. $3 = (($2) + -1)|0;
  16873. $4 = (((($1) + (($3*144)|0)|0)) + 8|0);
  16874. $5 = HEAP32[$4>>2]|0;
  16875. $6 = ($5|0)==($0|0);
  16876. if ($6) {
  16877. return;
  16878. }
  16879. $7 = (($1) + (($3*144)|0)|0);
  16880. $8 = HEAP32[$7>>2]|0;
  16881. $9 = ($8|0)>(0);
  16882. if ($9) {
  16883. $10 = (($2) + 1)|0;
  16884. HEAP32[4935] = $10;
  16885. }
  16886. $11 = HEAP32[4935]|0;
  16887. $12 = (($11) + -1)|0;
  16888. $13 = (((($1) + (($12*144)|0)|0)) + 8|0);
  16889. HEAP32[$13>>2] = $0;
  16890. $14 = (($1) + (($12*144)|0)|0);
  16891. HEAP32[$14>>2] = 0;
  16892. return;
  16893. }
  16894. function _rlDisableTexture() {
  16895. var $0 = 0, $1 = 0, label = 0, sp = 0;
  16896. sp = STACKTOP;
  16897. $0 = HEAP32[5219]|0;
  16898. $1 = ($0|0)>(4095);
  16899. if (!($1)) {
  16900. return;
  16901. }
  16902. _rlglDraw();
  16903. return;
  16904. }
  16905. function _rlDeleteShader($0) {
  16906. $0 = $0|0;
  16907. var $1 = 0, label = 0, sp = 0;
  16908. sp = STACKTOP;
  16909. $1 = ($0|0)==(0);
  16910. if ($1) {
  16911. return;
  16912. }
  16913. _glDeleteProgram(($0|0));
  16914. return;
  16915. }
  16916. function _rlDeleteVertexArrays($0) {
  16917. $0 = $0|0;
  16918. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  16919. sp = STACKTOP;
  16920. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  16921. $vararg_buffer = sp;
  16922. $1 = sp + 4|0;
  16923. HEAP32[$1>>2] = $0;
  16924. $2 = HEAP32[4897]|0;
  16925. $3 = ($2|0)==(0);
  16926. if ($3) {
  16927. STACKTOP = sp;return;
  16928. }
  16929. $4 = ($0|0)==(0);
  16930. if (!($4)) {
  16931. $5 = HEAP32[4900]|0;
  16932. FUNCTION_TABLE_vii[$5 & 63](1,$1);
  16933. }
  16934. $6 = HEAP32[$1>>2]|0;
  16935. HEAP32[$vararg_buffer>>2] = $6;
  16936. _TraceLog(0,9504,$vararg_buffer);
  16937. STACKTOP = sp;return;
  16938. }
  16939. function _rlDeleteBuffers($0) {
  16940. $0 = $0|0;
  16941. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  16942. sp = STACKTOP;
  16943. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  16944. $vararg_buffer = sp;
  16945. $1 = sp + 4|0;
  16946. HEAP32[$1>>2] = $0;
  16947. $2 = ($0|0)==(0);
  16948. if ($2) {
  16949. STACKTOP = sp;return;
  16950. }
  16951. _glDeleteBuffers(1,($1|0));
  16952. $3 = HEAP32[4897]|0;
  16953. $4 = ($3|0)==(0);
  16954. if (!($4)) {
  16955. STACKTOP = sp;return;
  16956. }
  16957. $5 = HEAP32[$1>>2]|0;
  16958. HEAP32[$vararg_buffer>>2] = $5;
  16959. _TraceLog(0,9552,$vararg_buffer);
  16960. STACKTOP = sp;return;
  16961. }
  16962. function _rlglLoadRenderTexture($0,$1,$2) {
  16963. $0 = $0|0;
  16964. $1 = $1|0;
  16965. $2 = $2|0;
  16966. 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, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $vararg_buffer = 0;
  16967. var $vararg_buffer1 = 0, $vararg_buffer3 = 0, $vararg_buffer5 = 0, $vararg_buffer7 = 0, $vararg_buffer9 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  16968. sp = STACKTOP;
  16969. STACKTOP = STACKTOP + 96|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(96|0);
  16970. $vararg_buffer9 = sp + 40|0;
  16971. $vararg_buffer7 = sp + 32|0;
  16972. $vararg_buffer5 = sp + 24|0;
  16973. $vararg_buffer3 = sp + 16|0;
  16974. $vararg_buffer1 = sp + 8|0;
  16975. $vararg_buffer = sp;
  16976. $3 = sp + 44|0;
  16977. HEAP32[$3>>2] = 0;
  16978. $4 = ((($3)) + 4|0);
  16979. HEAP32[$4>>2] = 0;
  16980. $5 = ((($3)) + 8|0);
  16981. HEAP32[$5>>2] = $1;
  16982. $6 = ((($3)) + 12|0);
  16983. HEAP32[$6>>2] = $2;
  16984. $7 = ((($3)) + 20|0);
  16985. HEAP32[$7>>2] = 7;
  16986. $8 = ((($3)) + 16|0);
  16987. HEAP32[$8>>2] = 1;
  16988. $9 = ((($3)) + 24|0);
  16989. HEAP32[$9>>2] = 0;
  16990. $10 = ((($3)) + 28|0);
  16991. HEAP32[$10>>2] = $1;
  16992. $11 = ((($3)) + 32|0);
  16993. HEAP32[$11>>2] = $2;
  16994. $12 = ((($3)) + 40|0);
  16995. HEAP32[$12>>2] = 19;
  16996. $13 = ((($3)) + 36|0);
  16997. HEAP32[$13>>2] = 1;
  16998. _glGenTextures(1,($4|0));
  16999. $14 = HEAP32[$4>>2]|0;
  17000. _glBindTexture(3553,($14|0));
  17001. _glTexParameteri(3553,10242,33071);
  17002. _glTexParameteri(3553,10243,33071);
  17003. _glTexParameteri(3553,10241,9729);
  17004. _glTexParameteri(3553,10240,9729);
  17005. _glTexImage2D(3553,0,6408,($1|0),($2|0),0,6408,5121,(0|0));
  17006. _glBindTexture(3553,0);
  17007. _glGenRenderbuffers(1,($9|0));
  17008. $15 = HEAP32[$9>>2]|0;
  17009. _glBindRenderbuffer(36161,($15|0));
  17010. _glRenderbufferStorage(36161,33189,($1|0),($2|0));
  17011. _glGenFramebuffers(1,($3|0));
  17012. $16 = HEAP32[$3>>2]|0;
  17013. _glBindFramebuffer(36160,($16|0));
  17014. $17 = HEAP32[$4>>2]|0;
  17015. _glFramebufferTexture2D(36160,36064,3553,($17|0),0);
  17016. $18 = HEAP32[$9>>2]|0;
  17017. _glFramebufferRenderbuffer(36160,36096,36161,($18|0));
  17018. $19 = (_glCheckFramebufferStatus(36160)|0);
  17019. $20 = ($19|0)==(36053);
  17020. if ($20) {
  17021. $21 = HEAP32[$3>>2]|0;
  17022. HEAP32[$vararg_buffer9>>2] = $21;
  17023. _TraceLog(0,9787,$vararg_buffer9);
  17024. _glBindFramebuffer(36160,0);
  17025. dest=$0; src=$3; stop=dest+44|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  17026. STACKTOP = sp;return;
  17027. }
  17028. _TraceLog(2,9607,$vararg_buffer);
  17029. switch ($19|0) {
  17030. case 36061: {
  17031. _TraceLog(2,9650,$vararg_buffer1);
  17032. break;
  17033. }
  17034. case 36054: {
  17035. _TraceLog(2,9677,$vararg_buffer3);
  17036. break;
  17037. }
  17038. case 36057: {
  17039. _TraceLog(2,9711,$vararg_buffer5);
  17040. break;
  17041. }
  17042. case 36055: {
  17043. _TraceLog(2,9745,$vararg_buffer7);
  17044. break;
  17045. }
  17046. default: {
  17047. }
  17048. }
  17049. _glDeleteTextures(1,($4|0));
  17050. _glDeleteTextures(1,($9|0));
  17051. _glDeleteFramebuffers(1,($3|0));
  17052. _glBindFramebuffer(36160,0);
  17053. dest=$0; src=$3; stop=dest+44|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  17054. STACKTOP = sp;return;
  17055. }
  17056. function _rlglLoadMesh($0,$1) {
  17057. $0 = $0|0;
  17058. $1 = $1|0;
  17059. 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;
  17060. 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;
  17061. 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;
  17062. 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;
  17063. var $82 = 0, $83 = 0, $84 = 0, $85 = 0, $9 = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, $vararg_buffer3 = 0, label = 0, sp = 0;
  17064. sp = STACKTOP;
  17065. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  17066. $vararg_buffer3 = sp + 16|0;
  17067. $vararg_buffer1 = sp + 8|0;
  17068. $vararg_buffer = sp;
  17069. $2 = sp + 48|0;
  17070. $3 = sp + 20|0;
  17071. $4 = ((($0)) + 36|0);
  17072. $5 = ((($0)) + 40|0);
  17073. $6 = ((($0)) + 44|0);
  17074. $7 = ((($0)) + 48|0);
  17075. $8 = ((($0)) + 52|0);
  17076. $9 = ((($0)) + 56|0);
  17077. $10 = ((($0)) + 60|0);
  17078. $11 = ((($0)) + 64|0);
  17079. $12 = ($1|0)!=(0);
  17080. $$ = $12 ? 35048 : 35044;
  17081. ;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;
  17082. HEAP32[$2>>2] = 0;
  17083. ;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;
  17084. $13 = HEAP32[4897]|0;
  17085. $14 = ($13|0)==(0);
  17086. if (!($14)) {
  17087. $15 = HEAP32[4898]|0;
  17088. FUNCTION_TABLE_vii[$15 & 63](1,$2);
  17089. $16 = HEAP32[4899]|0;
  17090. $17 = HEAP32[$2>>2]|0;
  17091. FUNCTION_TABLE_vi[$16 & 31]($17);
  17092. }
  17093. _glGenBuffers(1,($3|0));
  17094. $18 = HEAP32[$3>>2]|0;
  17095. _glBindBuffer(34962,($18|0));
  17096. $19 = HEAP32[$0>>2]|0;
  17097. $20 = ($19*12)|0;
  17098. $21 = ((($0)) + 8|0);
  17099. $22 = HEAP32[$21>>2]|0;
  17100. _glBufferData(34962,($20|0),($22|0),($$|0));
  17101. _glVertexAttribPointer(0,3,5126,0,0,(0|0));
  17102. _glEnableVertexAttribArray(0);
  17103. $23 = ((($3)) + 4|0);
  17104. _glGenBuffers(1,($23|0));
  17105. $24 = HEAP32[$23>>2]|0;
  17106. _glBindBuffer(34962,($24|0));
  17107. $25 = HEAP32[$0>>2]|0;
  17108. $26 = $25 << 3;
  17109. $27 = ((($0)) + 12|0);
  17110. $28 = HEAP32[$27>>2]|0;
  17111. _glBufferData(34962,($26|0),($28|0),($$|0));
  17112. _glVertexAttribPointer(1,2,5126,0,0,(0|0));
  17113. _glEnableVertexAttribArray(1);
  17114. $29 = ((($0)) + 20|0);
  17115. $30 = HEAP32[$29>>2]|0;
  17116. $31 = ($30|0)==(0|0);
  17117. if ($31) {
  17118. _glVertexAttrib3f(2,1.0,1.0,1.0);
  17119. _glDisableVertexAttribArray(2);
  17120. } else {
  17121. $32 = ((($3)) + 8|0);
  17122. _glGenBuffers(1,($32|0));
  17123. $33 = HEAP32[$32>>2]|0;
  17124. _glBindBuffer(34962,($33|0));
  17125. $34 = HEAP32[$0>>2]|0;
  17126. $35 = ($34*12)|0;
  17127. $36 = HEAP32[$29>>2]|0;
  17128. _glBufferData(34962,($35|0),($36|0),($$|0));
  17129. _glVertexAttribPointer(2,3,5126,0,0,(0|0));
  17130. _glEnableVertexAttribArray(2);
  17131. }
  17132. $37 = ((($0)) + 28|0);
  17133. $38 = HEAP32[$37>>2]|0;
  17134. $39 = ($38|0)==(0|0);
  17135. if ($39) {
  17136. _glVertexAttrib4f(3,1.0,1.0,1.0,1.0);
  17137. _glDisableVertexAttribArray(3);
  17138. } else {
  17139. $40 = ((($3)) + 12|0);
  17140. _glGenBuffers(1,($40|0));
  17141. $41 = HEAP32[$40>>2]|0;
  17142. _glBindBuffer(34962,($41|0));
  17143. $42 = HEAP32[$0>>2]|0;
  17144. $43 = $42 << 2;
  17145. $44 = HEAP32[$37>>2]|0;
  17146. _glBufferData(34962,($43|0),($44|0),($$|0));
  17147. _glVertexAttribPointer(3,4,5121,1,0,(0|0));
  17148. _glEnableVertexAttribArray(3);
  17149. }
  17150. $45 = ((($0)) + 24|0);
  17151. $46 = HEAP32[$45>>2]|0;
  17152. $47 = ($46|0)==(0|0);
  17153. if ($47) {
  17154. _glVertexAttrib3f(4,0.0,0.0,0.0);
  17155. _glDisableVertexAttribArray(4);
  17156. } else {
  17157. $48 = ((($3)) + 16|0);
  17158. _glGenBuffers(1,($48|0));
  17159. $49 = HEAP32[$48>>2]|0;
  17160. _glBindBuffer(34962,($49|0));
  17161. $50 = HEAP32[$0>>2]|0;
  17162. $51 = ($50*12)|0;
  17163. $52 = HEAP32[$45>>2]|0;
  17164. _glBufferData(34962,($51|0),($52|0),($$|0));
  17165. _glVertexAttribPointer(4,3,5126,0,0,(0|0));
  17166. _glEnableVertexAttribArray(4);
  17167. }
  17168. $53 = ((($0)) + 16|0);
  17169. $54 = HEAP32[$53>>2]|0;
  17170. $55 = ($54|0)==(0|0);
  17171. if ($55) {
  17172. _glVertexAttrib2f(5,0.0,0.0);
  17173. _glDisableVertexAttribArray(5);
  17174. } else {
  17175. $56 = ((($3)) + 20|0);
  17176. _glGenBuffers(1,($56|0));
  17177. $57 = HEAP32[$56>>2]|0;
  17178. _glBindBuffer(34962,($57|0));
  17179. $58 = HEAP32[$0>>2]|0;
  17180. $59 = $58 << 3;
  17181. $60 = HEAP32[$53>>2]|0;
  17182. _glBufferData(34962,($59|0),($60|0),($$|0));
  17183. _glVertexAttribPointer(5,2,5126,0,0,(0|0));
  17184. _glEnableVertexAttribArray(5);
  17185. }
  17186. $61 = ((($0)) + 32|0);
  17187. $62 = HEAP32[$61>>2]|0;
  17188. $63 = ($62|0)==(0|0);
  17189. if (!($63)) {
  17190. $64 = ((($3)) + 24|0);
  17191. _glGenBuffers(1,($64|0));
  17192. $65 = HEAP32[$64>>2]|0;
  17193. _glBindBuffer(34963,($65|0));
  17194. $66 = ((($0)) + 4|0);
  17195. $67 = HEAP32[$66>>2]|0;
  17196. $68 = ($67*6)|0;
  17197. $69 = HEAP32[$61>>2]|0;
  17198. _glBufferData(34963,($68|0),($69|0),35044);
  17199. }
  17200. $70 = HEAP32[$3>>2]|0;
  17201. HEAP32[$5>>2] = $70;
  17202. $71 = HEAP32[$23>>2]|0;
  17203. HEAP32[$6>>2] = $71;
  17204. $72 = ((($3)) + 8|0);
  17205. $73 = HEAP32[$72>>2]|0;
  17206. HEAP32[$7>>2] = $73;
  17207. $74 = ((($3)) + 12|0);
  17208. $75 = HEAP32[$74>>2]|0;
  17209. HEAP32[$8>>2] = $75;
  17210. $76 = ((($3)) + 16|0);
  17211. $77 = HEAP32[$76>>2]|0;
  17212. HEAP32[$9>>2] = $77;
  17213. $78 = ((($3)) + 20|0);
  17214. $79 = HEAP32[$78>>2]|0;
  17215. HEAP32[$10>>2] = $79;
  17216. $80 = ((($3)) + 24|0);
  17217. $81 = HEAP32[$80>>2]|0;
  17218. HEAP32[$11>>2] = $81;
  17219. $82 = HEAP32[4897]|0;
  17220. $83 = ($82|0)==(0);
  17221. if ($83) {
  17222. _TraceLog(0,9933,$vararg_buffer3);
  17223. STACKTOP = sp;return;
  17224. }
  17225. $84 = HEAP32[$2>>2]|0;
  17226. $85 = ($84|0)==(0);
  17227. if ($85) {
  17228. _TraceLog(2,9892,$vararg_buffer1);
  17229. STACKTOP = sp;return;
  17230. } else {
  17231. HEAP32[$4>>2] = $84;
  17232. HEAP32[$vararg_buffer>>2] = $84;
  17233. _TraceLog(0,9839,$vararg_buffer);
  17234. STACKTOP = sp;return;
  17235. }
  17236. }
  17237. function _rlglDrawMesh($0,$1,$2) {
  17238. $0 = $0|0;
  17239. $1 = $1|0;
  17240. $2 = $2|0;
  17241. 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;
  17242. 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;
  17243. 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;
  17244. 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;
  17245. 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;
  17246. 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;
  17247. 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;
  17248. 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;
  17249. 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;
  17250. var label = 0, sp = 0, src = 0, stop = 0;
  17251. sp = STACKTOP;
  17252. STACKTOP = STACKTOP + 384|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(384|0);
  17253. $$byval_copy5 = sp + 320|0;
  17254. $modelview$byval_copy4 = sp + 256|0;
  17255. $3 = sp + 192|0;
  17256. $4 = sp + 128|0;
  17257. $5 = sp + 64|0;
  17258. $6 = sp;
  17259. $7 = HEAP32[$1>>2]|0;
  17260. _glUseProgram(($7|0));
  17261. $8 = ((($1)) + 32|0);
  17262. $9 = HEAP32[$8>>2]|0;
  17263. $10 = ((($1)) + 116|0);
  17264. $11 = HEAP8[$10>>0]|0;
  17265. $12 = (+($11&255));
  17266. $13 = $12 / 255.0;
  17267. $14 = ((($1)) + 117|0);
  17268. $15 = HEAP8[$14>>0]|0;
  17269. $16 = (+($15&255));
  17270. $17 = $16 / 255.0;
  17271. $18 = ((($1)) + 118|0);
  17272. $19 = HEAP8[$18>>0]|0;
  17273. $20 = (+($19&255));
  17274. $21 = $20 / 255.0;
  17275. $22 = ((($1)) + 119|0);
  17276. $23 = HEAP8[$22>>0]|0;
  17277. $24 = (+($23&255));
  17278. $25 = $24 / 255.0;
  17279. _glUniform4f(($9|0),(+$13),(+$17),(+$21),(+$25));
  17280. $26 = ((($1)) + 36|0);
  17281. $27 = HEAP32[$26>>2]|0;
  17282. $28 = ($27|0)==(-1);
  17283. if (!($28)) {
  17284. $29 = ((($1)) + 120|0);
  17285. $30 = HEAP8[$29>>0]|0;
  17286. $31 = (+($30&255));
  17287. $32 = $31 / 255.0;
  17288. $33 = ((($1)) + 121|0);
  17289. $34 = HEAP8[$33>>0]|0;
  17290. $35 = (+($34&255));
  17291. $36 = $35 / 255.0;
  17292. $37 = ((($1)) + 122|0);
  17293. $38 = HEAP8[$37>>0]|0;
  17294. $39 = (+($38&255));
  17295. $40 = $39 / 255.0;
  17296. $41 = ((($1)) + 123|0);
  17297. $42 = HEAP8[$41>>0]|0;
  17298. $43 = (+($42&255));
  17299. $44 = $43 / 255.0;
  17300. _glUniform4f(($27|0),(+$32),(+$36),(+$40),(+$44));
  17301. }
  17302. $45 = ((($1)) + 40|0);
  17303. $46 = HEAP32[$45>>2]|0;
  17304. $47 = ($46|0)==(-1);
  17305. if (!($47)) {
  17306. $48 = ((($1)) + 124|0);
  17307. $49 = HEAP8[$48>>0]|0;
  17308. $50 = (+($49&255));
  17309. $51 = $50 / 255.0;
  17310. $52 = ((($1)) + 125|0);
  17311. $53 = HEAP8[$52>>0]|0;
  17312. $54 = (+($53&255));
  17313. $55 = $54 / 255.0;
  17314. $56 = ((($1)) + 126|0);
  17315. $57 = HEAP8[$56>>0]|0;
  17316. $58 = (+($57&255));
  17317. $59 = $58 / 255.0;
  17318. $60 = ((($1)) + 127|0);
  17319. $61 = HEAP8[$60>>0]|0;
  17320. $62 = (+($61&255));
  17321. $63 = $62 / 255.0;
  17322. _glUniform4f(($46|0),(+$51),(+$55),(+$59),(+$63));
  17323. }
  17324. dest=$3; src=19520; 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));
  17325. dest=$4; src=19456; 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));
  17326. 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));
  17327. dest=$$byval_copy5; src=19520; 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));
  17328. _MatrixMultiply($5,$modelview$byval_copy4,$$byval_copy5);
  17329. $64 = HEAP32[$1>>2]|0;
  17330. $65 = HEAP32[4905]|0;
  17331. $66 = ($64|0)==($65|0);
  17332. if (!($66)) {
  17333. $67 = (_glGetUniformLocation(($64|0),(9981|0))|0);
  17334. $68 = ($67|0)==(-1);
  17335. if (!($68)) {
  17336. 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));
  17337. _MatrixTranspose($modelview$byval_copy4);
  17338. _MatrixInvert($modelview$byval_copy4);
  17339. 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));
  17340. $69 = (_MatrixToFloat($$byval_copy5)|0);
  17341. _glUniformMatrix4fv(($67|0),1,0,($69|0));
  17342. }
  17343. $70 = HEAP32[$1>>2]|0;
  17344. $71 = (_glGetUniformLocation(($70|0),(9993|0))|0);
  17345. $72 = ($71|0)==(-1);
  17346. if (!($72)) {
  17347. $73 = ((($3)) + 8|0);
  17348. $74 = +HEAPF32[$73>>2];
  17349. $75 = ((($3)) + 24|0);
  17350. $76 = +HEAPF32[$75>>2];
  17351. $77 = ((($3)) + 40|0);
  17352. $78 = +HEAPF32[$77>>2];
  17353. _glUniform3f(($71|0),(+$74),(+$76),(+$78));
  17354. }
  17355. $79 = (_glGetUniformLocation(($70|0),(10001|0))|0);
  17356. $80 = ($79|0)==(-1);
  17357. if (!($80)) {
  17358. $81 = ((($1)) + 128|0);
  17359. $82 = +HEAPF32[$81>>2];
  17360. _glUniform1f(($79|0),(+$82));
  17361. }
  17362. }
  17363. _glActiveTexture(33984);
  17364. $83 = ((($1)) + 56|0);
  17365. $84 = HEAP32[$83>>2]|0;
  17366. _glBindTexture(3553,($84|0));
  17367. $85 = ((($1)) + 44|0);
  17368. $86 = HEAP32[$85>>2]|0;
  17369. _glUniform1i(($86|0),0);
  17370. $87 = ((($1)) + 76|0);
  17371. $88 = HEAP32[$87>>2]|0;
  17372. $89 = ($88|0)==(0);
  17373. if (!($89)) {
  17374. $90 = ((($1)) + 48|0);
  17375. $91 = HEAP32[$90>>2]|0;
  17376. $92 = ($91|0)==(-1);
  17377. if (!($92)) {
  17378. $93 = HEAP32[$1>>2]|0;
  17379. $94 = (_glGetUniformLocation(($93|0),(10012|0))|0);
  17380. _glUniform1i(($94|0),1);
  17381. _glActiveTexture(33985);
  17382. $95 = HEAP32[$87>>2]|0;
  17383. _glBindTexture(3553,($95|0));
  17384. $96 = HEAP32[$90>>2]|0;
  17385. _glUniform1i(($96|0),1);
  17386. }
  17387. }
  17388. $97 = ((($1)) + 96|0);
  17389. $98 = HEAP32[$97>>2]|0;
  17390. $99 = ($98|0)==(0);
  17391. if (!($99)) {
  17392. $100 = ((($1)) + 52|0);
  17393. $101 = HEAP32[$100>>2]|0;
  17394. $102 = ($101|0)==(-1);
  17395. if (!($102)) {
  17396. $103 = HEAP32[$1>>2]|0;
  17397. $104 = (_glGetUniformLocation(($103|0),(10022|0))|0);
  17398. _glUniform1i(($104|0),1);
  17399. _glActiveTexture(33986);
  17400. $105 = HEAP32[$97>>2]|0;
  17401. _glBindTexture(3553,($105|0));
  17402. $106 = HEAP32[$100>>2]|0;
  17403. _glUniform1i(($106|0),2);
  17404. }
  17405. }
  17406. $107 = HEAP32[4897]|0;
  17407. $108 = ($107|0)==(0);
  17408. if ($108) {
  17409. $112 = ((($0)) + 40|0);
  17410. $113 = HEAP32[$112>>2]|0;
  17411. _glBindBuffer(34962,($113|0));
  17412. $114 = ((($1)) + 4|0);
  17413. $115 = HEAP32[$114>>2]|0;
  17414. _glVertexAttribPointer(($115|0),3,5126,0,0,(0|0));
  17415. _glEnableVertexAttribArray(($115|0));
  17416. $116 = ((($0)) + 44|0);
  17417. $117 = HEAP32[$116>>2]|0;
  17418. _glBindBuffer(34962,($117|0));
  17419. $118 = ((($1)) + 8|0);
  17420. $119 = HEAP32[$118>>2]|0;
  17421. _glVertexAttribPointer(($119|0),2,5126,0,0,(0|0));
  17422. _glEnableVertexAttribArray(($119|0));
  17423. $120 = ((($1)) + 16|0);
  17424. $121 = HEAP32[$120>>2]|0;
  17425. $122 = ($121|0)==(-1);
  17426. if (!($122)) {
  17427. $123 = ((($0)) + 48|0);
  17428. $124 = HEAP32[$123>>2]|0;
  17429. _glBindBuffer(34962,($124|0));
  17430. $125 = HEAP32[$120>>2]|0;
  17431. _glVertexAttribPointer(($125|0),3,5126,0,0,(0|0));
  17432. $126 = HEAP32[$120>>2]|0;
  17433. _glEnableVertexAttribArray(($126|0));
  17434. }
  17435. $127 = ((($1)) + 24|0);
  17436. $128 = HEAP32[$127>>2]|0;
  17437. $129 = ($128|0)==(-1);
  17438. do {
  17439. if (!($129)) {
  17440. $130 = ((($0)) + 52|0);
  17441. $131 = HEAP32[$130>>2]|0;
  17442. $132 = ($131|0)==(0);
  17443. if ($132) {
  17444. _glVertexAttrib4f(($128|0),1.0,1.0,1.0,1.0);
  17445. $135 = HEAP32[$127>>2]|0;
  17446. _glDisableVertexAttribArray(($135|0));
  17447. break;
  17448. } else {
  17449. _glBindBuffer(34962,($131|0));
  17450. $133 = HEAP32[$127>>2]|0;
  17451. _glVertexAttribPointer(($133|0),4,5121,1,0,(0|0));
  17452. $134 = HEAP32[$127>>2]|0;
  17453. _glEnableVertexAttribArray(($134|0));
  17454. break;
  17455. }
  17456. }
  17457. } while(0);
  17458. $136 = ((($1)) + 20|0);
  17459. $137 = HEAP32[$136>>2]|0;
  17460. $138 = ($137|0)==(-1);
  17461. if (!($138)) {
  17462. $139 = ((($0)) + 56|0);
  17463. $140 = HEAP32[$139>>2]|0;
  17464. _glBindBuffer(34962,($140|0));
  17465. $141 = HEAP32[$136>>2]|0;
  17466. _glVertexAttribPointer(($141|0),3,5126,0,0,(0|0));
  17467. $142 = HEAP32[$136>>2]|0;
  17468. _glEnableVertexAttribArray(($142|0));
  17469. }
  17470. $143 = ((($1)) + 12|0);
  17471. $144 = HEAP32[$143>>2]|0;
  17472. $145 = ($144|0)==(-1);
  17473. if (!($145)) {
  17474. $146 = ((($0)) + 60|0);
  17475. $147 = HEAP32[$146>>2]|0;
  17476. _glBindBuffer(34962,($147|0));
  17477. $148 = HEAP32[$143>>2]|0;
  17478. _glVertexAttribPointer(($148|0),2,5126,0,0,(0|0));
  17479. $149 = HEAP32[$143>>2]|0;
  17480. _glEnableVertexAttribArray(($149|0));
  17481. }
  17482. $150 = ((($0)) + 32|0);
  17483. $151 = HEAP32[$150>>2]|0;
  17484. $152 = ($151|0)==(0|0);
  17485. if (!($152)) {
  17486. $153 = HEAP32[(20920)>>2]|0;
  17487. _glBindBuffer(34963,($153|0));
  17488. }
  17489. } else {
  17490. $109 = HEAP32[4899]|0;
  17491. $110 = ((($0)) + 36|0);
  17492. $111 = HEAP32[$110>>2]|0;
  17493. FUNCTION_TABLE_vi[$109 & 31]($111);
  17494. }
  17495. $154 = HEAP32[5282]|0;
  17496. $155 = ($154|0)!=(0);
  17497. $$ = $155 ? 2 : 1;
  17498. $156 = ((($1)) + 28|0);
  17499. $157 = ((($0)) + 32|0);
  17500. $158 = HEAP32[$0>>2]|0;
  17501. $159 = ((($0)) + 4|0);
  17502. $$020 = 0;
  17503. while(1) {
  17504. if ($155) {
  17505. 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));
  17506. 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));
  17507. _SetStereoView($$020,$modelview$byval_copy4,$$byval_copy5);
  17508. } else {
  17509. dest=19520; 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));
  17510. }
  17511. dest=$modelview$byval_copy4; src=19520; 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));
  17512. dest=$$byval_copy5; src=19456; 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));
  17513. _MatrixMultiply($6,$modelview$byval_copy4,$$byval_copy5);
  17514. $162 = HEAP32[$156>>2]|0;
  17515. 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));
  17516. $163 = (_MatrixToFloat($$byval_copy5)|0);
  17517. _glUniformMatrix4fv(($162|0),1,0,($163|0));
  17518. $164 = HEAP32[$157>>2]|0;
  17519. $165 = ($164|0)==(0|0);
  17520. if ($165) {
  17521. _glDrawArrays(4,0,($158|0));
  17522. } else {
  17523. $166 = HEAP32[$159>>2]|0;
  17524. $167 = ($166*3)|0;
  17525. _glDrawElements(4,($167|0),5123,(0|0));
  17526. }
  17527. $168 = (($$020) + 1)|0;
  17528. $169 = ($168|0)<($$|0);
  17529. if ($169) {
  17530. $$020 = $168;
  17531. } else {
  17532. break;
  17533. }
  17534. }
  17535. $160 = HEAP32[$87>>2]|0;
  17536. $161 = ($160|0)==(0);
  17537. if (!($161)) {
  17538. _glActiveTexture(33985);
  17539. _glBindTexture(3553,0);
  17540. }
  17541. $170 = HEAP32[$97>>2]|0;
  17542. $171 = ($170|0)==(0);
  17543. if (!($171)) {
  17544. _glActiveTexture(33986);
  17545. _glBindTexture(3553,0);
  17546. }
  17547. _glActiveTexture(33984);
  17548. _glBindTexture(3553,0);
  17549. $172 = HEAP32[4897]|0;
  17550. $173 = ($172|0)==(0);
  17551. if (!($173)) {
  17552. $174 = HEAP32[4899]|0;
  17553. FUNCTION_TABLE_vi[$174 & 31](0);
  17554. _glUseProgram(0);
  17555. dest=19456; 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));
  17556. dest=19520; 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));
  17557. STACKTOP = sp;return;
  17558. }
  17559. _glBindBuffer(34962,0);
  17560. $175 = ((($0)) + 32|0);
  17561. $176 = HEAP32[$175>>2]|0;
  17562. $177 = ($176|0)==(0|0);
  17563. if ($177) {
  17564. _glUseProgram(0);
  17565. dest=19456; 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));
  17566. dest=19520; 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));
  17567. STACKTOP = sp;return;
  17568. }
  17569. _glBindBuffer(34963,0);
  17570. _glUseProgram(0);
  17571. dest=19456; 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));
  17572. dest=19520; 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));
  17573. STACKTOP = sp;return;
  17574. }
  17575. function _rlglUnloadMesh($0) {
  17576. $0 = $0|0;
  17577. 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;
  17578. 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;
  17579. sp = STACKTOP;
  17580. $1 = ((($0)) + 8|0);
  17581. $2 = HEAP32[$1>>2]|0;
  17582. $3 = ($2|0)==(0|0);
  17583. if (!($3)) {
  17584. _free($2);
  17585. }
  17586. $4 = ((($0)) + 12|0);
  17587. $5 = HEAP32[$4>>2]|0;
  17588. $6 = ($5|0)==(0|0);
  17589. if (!($6)) {
  17590. _free($5);
  17591. }
  17592. $7 = ((($0)) + 20|0);
  17593. $8 = HEAP32[$7>>2]|0;
  17594. $9 = ($8|0)==(0|0);
  17595. if (!($9)) {
  17596. _free($8);
  17597. }
  17598. $10 = ((($0)) + 28|0);
  17599. $11 = HEAP32[$10>>2]|0;
  17600. $12 = ($11|0)==(0|0);
  17601. if (!($12)) {
  17602. _free($11);
  17603. }
  17604. $13 = ((($0)) + 24|0);
  17605. $14 = HEAP32[$13>>2]|0;
  17606. $15 = ($14|0)==(0|0);
  17607. if (!($15)) {
  17608. _free($14);
  17609. }
  17610. $16 = ((($0)) + 16|0);
  17611. $17 = HEAP32[$16>>2]|0;
  17612. $18 = ($17|0)==(0|0);
  17613. if (!($18)) {
  17614. _free($17);
  17615. }
  17616. $19 = ((($0)) + 32|0);
  17617. $20 = HEAP32[$19>>2]|0;
  17618. $21 = ($20|0)==(0|0);
  17619. if (!($21)) {
  17620. _free($20);
  17621. }
  17622. $22 = ((($0)) + 40|0);
  17623. $23 = HEAP32[$22>>2]|0;
  17624. _rlDeleteBuffers($23);
  17625. $24 = ((($0)) + 44|0);
  17626. $25 = HEAP32[$24>>2]|0;
  17627. _rlDeleteBuffers($25);
  17628. $26 = ((($0)) + 48|0);
  17629. $27 = HEAP32[$26>>2]|0;
  17630. _rlDeleteBuffers($27);
  17631. $28 = ((($0)) + 52|0);
  17632. $29 = HEAP32[$28>>2]|0;
  17633. _rlDeleteBuffers($29);
  17634. $30 = ((($0)) + 56|0);
  17635. $31 = HEAP32[$30>>2]|0;
  17636. _rlDeleteBuffers($31);
  17637. $32 = ((($0)) + 60|0);
  17638. $33 = HEAP32[$32>>2]|0;
  17639. _rlDeleteBuffers($33);
  17640. $34 = ((($0)) + 64|0);
  17641. $35 = HEAP32[$34>>2]|0;
  17642. _rlDeleteBuffers($35);
  17643. $36 = ((($0)) + 36|0);
  17644. $37 = HEAP32[$36>>2]|0;
  17645. _rlDeleteVertexArrays($37);
  17646. return;
  17647. }
  17648. function _GetDefaultTexture($0) {
  17649. $0 = $0|0;
  17650. 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;
  17651. sp = STACKTOP;
  17652. $1 = HEAP32[4904]|0;
  17653. HEAP32[$0>>2] = $1;
  17654. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  17655. HEAP32[$$sroa$4$0$$sroa_idx2>>2] = 1;
  17656. $$sroa$5$0$$sroa_idx4 = ((($0)) + 8|0);
  17657. HEAP32[$$sroa$5$0$$sroa_idx4>>2] = 1;
  17658. $$sroa$6$0$$sroa_idx6 = ((($0)) + 12|0);
  17659. HEAP32[$$sroa$6$0$$sroa_idx6>>2] = 1;
  17660. $$sroa$7$0$$sroa_idx8 = ((($0)) + 16|0);
  17661. HEAP32[$$sroa$7$0$$sroa_idx8>>2] = 7;
  17662. return;
  17663. }
  17664. function _LoadText($0) {
  17665. $0 = $0|0;
  17666. var $$0 = 0, $$1 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  17667. sp = STACKTOP;
  17668. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  17669. $vararg_buffer = sp;
  17670. $1 = ($0|0)==(0|0);
  17671. if ($1) {
  17672. $$1 = 0;
  17673. STACKTOP = sp;return ($$1|0);
  17674. }
  17675. $2 = (_fopen($0,12434)|0);
  17676. $3 = ($2|0)==(0|0);
  17677. if ($3) {
  17678. HEAP32[$vararg_buffer>>2] = $0;
  17679. _TraceLog(2,10034,$vararg_buffer);
  17680. $$1 = 0;
  17681. STACKTOP = sp;return ($$1|0);
  17682. }
  17683. (_fseek($2,0,2)|0);
  17684. $4 = (_ftell($2)|0);
  17685. _rewind($2);
  17686. $5 = ($4|0)>(0);
  17687. if ($5) {
  17688. $6 = (($4) + 1)|0;
  17689. $7 = (_malloc($6)|0);
  17690. $8 = (_fread($7,1,$4,$2)|0);
  17691. $9 = (($7) + ($8)|0);
  17692. HEAP8[$9>>0] = 0;
  17693. $$0 = $7;
  17694. } else {
  17695. $$0 = 0;
  17696. }
  17697. (_fclose($2)|0);
  17698. $$1 = $$0;
  17699. STACKTOP = sp;return ($$1|0);
  17700. }
  17701. function _LoadShader($0,$1,$2) {
  17702. $0 = $0|0;
  17703. $1 = $1|0;
  17704. $2 = $2|0;
  17705. var $10 = 0, $11 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, $vararg_buffer = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  17706. sp = STACKTOP;
  17707. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  17708. $vararg_buffer = sp;
  17709. $3 = sp + 8|0;
  17710. dest=$3; stop=dest+56|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  17711. $4 = (_LoadText($1)|0);
  17712. $5 = (_LoadText($2)|0);
  17713. $6 = ($4|0)!=(0|0);
  17714. $7 = ($5|0)!=(0|0);
  17715. $or$cond = $6 & $7;
  17716. if ($or$cond) {
  17717. $8 = (_LoadShaderProgram($4,$5)|0);
  17718. HEAP32[$3>>2] = $8;
  17719. $9 = ($8|0)==(0);
  17720. if (!($9)) {
  17721. _LoadDefaultShaderLocations($3);
  17722. }
  17723. _free($4);
  17724. _free($5);
  17725. }
  17726. $10 = HEAP32[$3>>2]|0;
  17727. $11 = ($10|0)==(0);
  17728. if ($11) {
  17729. _TraceLog(2,10069,$vararg_buffer);
  17730. dest=$3; src=19620; 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));
  17731. }
  17732. dest=$0; 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));
  17733. STACKTOP = sp;return;
  17734. }
  17735. function _UnloadShader($0) {
  17736. $0 = $0|0;
  17737. var $1 = 0, $2 = 0, $3 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  17738. sp = STACKTOP;
  17739. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  17740. $vararg_buffer = sp;
  17741. $1 = HEAP32[$0>>2]|0;
  17742. $2 = ($1|0)==(0);
  17743. if ($2) {
  17744. STACKTOP = sp;return;
  17745. }
  17746. _rlDeleteShader($1);
  17747. $3 = HEAP32[$0>>2]|0;
  17748. HEAP32[$vararg_buffer>>2] = $3;
  17749. _TraceLog(0,10103,$vararg_buffer);
  17750. STACKTOP = sp;return;
  17751. }
  17752. function _BeginShaderMode($0) {
  17753. $0 = $0|0;
  17754. var $1 = 0, $2 = 0, $3 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  17755. sp = STACKTOP;
  17756. $1 = HEAP32[4919]|0;
  17757. $2 = HEAP32[$0>>2]|0;
  17758. $3 = ($1|0)==($2|0);
  17759. if ($3) {
  17760. return;
  17761. }
  17762. _rlglDraw();
  17763. dest=19676; src=$0; 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));
  17764. return;
  17765. }
  17766. function _EndShaderMode() {
  17767. var $defaultShader$byval_copy = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  17768. sp = STACKTOP;
  17769. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  17770. $defaultShader$byval_copy = sp;
  17771. dest=$defaultShader$byval_copy; src=19620; 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));
  17772. _BeginShaderMode($defaultShader$byval_copy);
  17773. STACKTOP = sp;return;
  17774. }
  17775. function _GetDefaultShader($0) {
  17776. $0 = $0|0;
  17777. var dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  17778. sp = STACKTOP;
  17779. dest=$0; src=19620; 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));
  17780. return;
  17781. }
  17782. function _GetShaderLocation($0,$1) {
  17783. $0 = $0|0;
  17784. $1 = $1|0;
  17785. var $2 = 0, $3 = 0, $4 = 0, $vararg_buffer = 0, $vararg_ptr1 = 0, label = 0, sp = 0;
  17786. sp = STACKTOP;
  17787. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  17788. $vararg_buffer = sp;
  17789. $2 = HEAP32[$0>>2]|0;
  17790. $3 = (_glGetUniformLocation(($2|0),($1|0))|0);
  17791. $4 = ($3|0)==(-1);
  17792. if (!($4)) {
  17793. STACKTOP = sp;return ($3|0);
  17794. }
  17795. HEAP32[$vararg_buffer>>2] = $2;
  17796. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  17797. HEAP32[$vararg_ptr1>>2] = $1;
  17798. _TraceLog(3,10145,$vararg_buffer);
  17799. STACKTOP = sp;return ($3|0);
  17800. }
  17801. function _SetShaderValue($0,$1,$2,$3) {
  17802. $0 = $0|0;
  17803. $1 = $1|0;
  17804. $2 = $2|0;
  17805. $3 = $3|0;
  17806. var $4 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  17807. sp = STACKTOP;
  17808. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  17809. $vararg_buffer = sp;
  17810. $4 = HEAP32[$0>>2]|0;
  17811. _glUseProgram(($4|0));
  17812. switch ($3|0) {
  17813. case 1: {
  17814. _glUniform1fv(($1|0),1,($2|0));
  17815. break;
  17816. }
  17817. case 2: {
  17818. _glUniform2fv(($1|0),1,($2|0));
  17819. break;
  17820. }
  17821. case 3: {
  17822. _glUniform3fv(($1|0),1,($2|0));
  17823. break;
  17824. }
  17825. case 4: {
  17826. _glUniform4fv(($1|0),1,($2|0));
  17827. break;
  17828. }
  17829. default: {
  17830. _TraceLog(2,10200,$vararg_buffer);
  17831. }
  17832. }
  17833. STACKTOP = sp;return;
  17834. }
  17835. function _stbi__err($0) {
  17836. $0 = $0|0;
  17837. var label = 0, sp = 0;
  17838. sp = STACKTOP;
  17839. HEAP32[5375] = $0;
  17840. return;
  17841. }
  17842. function _stbi_load_from_file($0,$1,$2,$3,$4) {
  17843. $0 = $0|0;
  17844. $1 = $1|0;
  17845. $2 = $2|0;
  17846. $3 = $3|0;
  17847. $4 = $4|0;
  17848. var $10 = 0, $11 = 0, $12 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  17849. sp = STACKTOP;
  17850. STACKTOP = STACKTOP + 192|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(192|0);
  17851. $5 = sp;
  17852. _stbi__start_file($5,$0);
  17853. $6 = (_stbi__load_and_postprocess_8bit($5,$1,$2,$3,$4)|0);
  17854. $7 = ($6|0)==(0|0);
  17855. if ($7) {
  17856. STACKTOP = sp;return ($6|0);
  17857. }
  17858. $8 = ((($5)) + 172|0);
  17859. $9 = HEAP32[$8>>2]|0;
  17860. $10 = ((($5)) + 168|0);
  17861. $11 = HEAP32[$10>>2]|0;
  17862. $12 = (($11) - ($9))|0;
  17863. (_fseek($0,$12,1)|0);
  17864. STACKTOP = sp;return ($6|0);
  17865. }
  17866. function _stbi__start_file($0,$1) {
  17867. $0 = $0|0;
  17868. $1 = $1|0;
  17869. var label = 0, sp = 0;
  17870. sp = STACKTOP;
  17871. _stbi__start_callbacks($0,3172,$1);
  17872. return;
  17873. }
  17874. function _stbi__load_and_postprocess_8bit($0,$1,$2,$3,$4) {
  17875. $0 = $0|0;
  17876. $1 = $1|0;
  17877. $2 = $2|0;
  17878. $3 = $3|0;
  17879. $4 = $4|0;
  17880. 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;
  17881. 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;
  17882. var $7 = 0, $8 = 0, $9 = 0, $exitcond = 0, $exitcond79 = 0, $exitcond80 = 0, label = 0, sp = 0;
  17883. sp = STACKTOP;
  17884. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  17885. $5 = sp;
  17886. $6 = (_stbi__load_main($0,$1,$2,$3,$4,$5)|0);
  17887. $7 = ($6|0)==(0|0);
  17888. if ($7) {
  17889. $$0 = 0;
  17890. STACKTOP = sp;return ($$0|0);
  17891. }
  17892. $8 = HEAP32[$5>>2]|0;
  17893. switch ($8|0) {
  17894. case 8: {
  17895. $$070 = $6;
  17896. break;
  17897. }
  17898. case 16: {
  17899. label = 4;
  17900. break;
  17901. }
  17902. default: {
  17903. ___assert_fail((10244|0),(10270|0),1041,(10293|0));
  17904. // unreachable;
  17905. }
  17906. }
  17907. if ((label|0) == 4) {
  17908. $9 = HEAP32[$1>>2]|0;
  17909. $10 = HEAP32[$2>>2]|0;
  17910. $11 = ($4|0)==(0);
  17911. if ($11) {
  17912. $12 = HEAP32[$3>>2]|0;
  17913. $13 = $12;
  17914. } else {
  17915. $13 = $4;
  17916. }
  17917. $14 = (_stbi__convert_16_to_8($6,$9,$10,$13)|0);
  17918. HEAP32[$5>>2] = 8;
  17919. $$070 = $14;
  17920. }
  17921. $15 = HEAP32[5376]|0;
  17922. $16 = ($15|0)==(0);
  17923. if ($16) {
  17924. $$0 = $$070;
  17925. STACKTOP = sp;return ($$0|0);
  17926. }
  17927. $17 = HEAP32[$1>>2]|0;
  17928. $18 = HEAP32[$2>>2]|0;
  17929. $19 = ($4|0)==(0);
  17930. if ($19) {
  17931. $20 = HEAP32[$3>>2]|0;
  17932. $25 = $20;
  17933. } else {
  17934. $25 = $4;
  17935. }
  17936. $21 = $18 >> 1;
  17937. $22 = ($21|0)>(0);
  17938. if (!($22)) {
  17939. $$0 = $$070;
  17940. STACKTOP = sp;return ($$0|0);
  17941. }
  17942. $23 = ($17|0)>(0);
  17943. $24 = ($25|0)>(0);
  17944. $26 = (($18) + -1)|0;
  17945. $$07378 = 0;
  17946. while(1) {
  17947. if ($23) {
  17948. $27 = Math_imul($$07378, $17)|0;
  17949. $28 = (($26) - ($$07378))|0;
  17950. $29 = Math_imul($28, $17)|0;
  17951. $$07276 = 0;
  17952. while(1) {
  17953. if ($24) {
  17954. $30 = (($$07276) + ($27))|0;
  17955. $31 = Math_imul($30, $25)|0;
  17956. $32 = (($$07276) + ($29))|0;
  17957. $33 = Math_imul($32, $25)|0;
  17958. $$07175 = 0;
  17959. while(1) {
  17960. $34 = (($$07175) + ($31))|0;
  17961. $35 = (($$070) + ($34)|0);
  17962. $36 = HEAP8[$35>>0]|0;
  17963. $37 = (($$07175) + ($33))|0;
  17964. $38 = (($$070) + ($37)|0);
  17965. $39 = HEAP8[$38>>0]|0;
  17966. HEAP8[$35>>0] = $39;
  17967. HEAP8[$38>>0] = $36;
  17968. $40 = (($$07175) + 1)|0;
  17969. $exitcond = ($40|0)==($25|0);
  17970. if ($exitcond) {
  17971. break;
  17972. } else {
  17973. $$07175 = $40;
  17974. }
  17975. }
  17976. }
  17977. $41 = (($$07276) + 1)|0;
  17978. $exitcond79 = ($41|0)==($17|0);
  17979. if ($exitcond79) {
  17980. break;
  17981. } else {
  17982. $$07276 = $41;
  17983. }
  17984. }
  17985. }
  17986. $42 = (($$07378) + 1)|0;
  17987. $exitcond80 = ($42|0)==($21|0);
  17988. if ($exitcond80) {
  17989. $$0 = $$070;
  17990. break;
  17991. } else {
  17992. $$07378 = $42;
  17993. }
  17994. }
  17995. STACKTOP = sp;return ($$0|0);
  17996. }
  17997. function _stbi__load_main($0,$1,$2,$3,$4,$5) {
  17998. $0 = $0|0;
  17999. $1 = $1|0;
  18000. $2 = $2|0;
  18001. $3 = $3|0;
  18002. $4 = $4|0;
  18003. $5 = $5|0;
  18004. var $$0 = 0, $10 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  18005. sp = STACKTOP;
  18006. HEAP32[$5>>2] = 8;
  18007. $6 = ((($5)) + 8|0);
  18008. HEAP32[$6>>2] = 0;
  18009. $7 = ((($5)) + 4|0);
  18010. HEAP32[$7>>2] = 0;
  18011. $8 = (_stbi__png_test($0)|0);
  18012. $9 = ($8|0)==(0);
  18013. if ($9) {
  18014. _stbi__err(10334);
  18015. $$0 = 0;
  18016. return ($$0|0);
  18017. } else {
  18018. $10 = (_stbi__png_load($0,$1,$2,$3,$4,$5)|0);
  18019. $$0 = $10;
  18020. return ($$0|0);
  18021. }
  18022. return (0)|0;
  18023. }
  18024. function _stbi__convert_16_to_8($0,$1,$2,$3) {
  18025. $0 = $0|0;
  18026. $1 = $1|0;
  18027. $2 = $2|0;
  18028. $3 = $3|0;
  18029. 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;
  18030. sp = STACKTOP;
  18031. $4 = Math_imul($2, $1)|0;
  18032. $5 = Math_imul($4, $3)|0;
  18033. $6 = (_stbi__malloc($5)|0);
  18034. $7 = ($6|0)==(0|0);
  18035. if ($7) {
  18036. _stbi__err(10325);
  18037. $$0 = 0;
  18038. return ($$0|0);
  18039. }
  18040. $8 = ($5|0)>(0);
  18041. if ($8) {
  18042. $$01819 = 0;
  18043. while(1) {
  18044. $9 = (($0) + ($$01819<<1)|0);
  18045. $10 = HEAP16[$9>>1]|0;
  18046. $11 = ($10&65535) >>> 8;
  18047. $12 = $11&255;
  18048. $13 = (($6) + ($$01819)|0);
  18049. HEAP8[$13>>0] = $12;
  18050. $14 = (($$01819) + 1)|0;
  18051. $exitcond = ($14|0)==($5|0);
  18052. if ($exitcond) {
  18053. break;
  18054. } else {
  18055. $$01819 = $14;
  18056. }
  18057. }
  18058. }
  18059. _free($0);
  18060. $$0 = $6;
  18061. return ($$0|0);
  18062. }
  18063. function _stbi__malloc($0) {
  18064. $0 = $0|0;
  18065. var $1 = 0, label = 0, sp = 0;
  18066. sp = STACKTOP;
  18067. $1 = (_malloc($0)|0);
  18068. return ($1|0);
  18069. }
  18070. function _stbi__png_test($0) {
  18071. $0 = $0|0;
  18072. var $1 = 0, label = 0, sp = 0;
  18073. sp = STACKTOP;
  18074. $1 = (_stbi__check_png_header($0)|0);
  18075. _stbi__rewind($0);
  18076. return ($1|0);
  18077. }
  18078. function _stbi__png_load($0,$1,$2,$3,$4,$5) {
  18079. $0 = $0|0;
  18080. $1 = $1|0;
  18081. $2 = $2|0;
  18082. $3 = $3|0;
  18083. $4 = $4|0;
  18084. $5 = $5|0;
  18085. var $6 = 0, $7 = 0, label = 0, sp = 0;
  18086. sp = STACKTOP;
  18087. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  18088. $6 = sp;
  18089. HEAP32[$6>>2] = $0;
  18090. $7 = (_stbi__do_png($6,$1,$2,$3,$4,$5)|0);
  18091. STACKTOP = sp;return ($7|0);
  18092. }
  18093. function _stbi__do_png($0,$1,$2,$3,$4,$5) {
  18094. $0 = $0|0;
  18095. $1 = $1|0;
  18096. $2 = $2|0;
  18097. $3 = $3|0;
  18098. $4 = $4|0;
  18099. $5 = $5|0;
  18100. 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;
  18101. 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;
  18102. var $9 = 0, label = 0, sp = 0;
  18103. sp = STACKTOP;
  18104. $6 = ($4>>>0)>(4);
  18105. if ($6) {
  18106. _stbi__err(10353);
  18107. $$045 = 0;
  18108. return ($$045|0);
  18109. }
  18110. $7 = (_stbi__parse_png_file($0,0,$4)|0);
  18111. $8 = ($7|0)==(0);
  18112. if ($8) {
  18113. $$2 = 0;
  18114. } else {
  18115. $9 = ((($0)) + 16|0);
  18116. $10 = HEAP32[$9>>2]|0;
  18117. $11 = ($10|0)>(8);
  18118. $$ = $11 ? $10 : 8;
  18119. HEAP32[$5>>2] = $$;
  18120. $12 = ((($0)) + 12|0);
  18121. $13 = HEAP32[$12>>2]|0;
  18122. HEAP32[$12>>2] = 0;
  18123. $14 = ($4|0)==(0);
  18124. if ($14) {
  18125. $$1 = $13;
  18126. } else {
  18127. $15 = HEAP32[$0>>2]|0;
  18128. $16 = ((($15)) + 12|0);
  18129. $17 = HEAP32[$16>>2]|0;
  18130. $18 = ($17|0)==($4|0);
  18131. if ($18) {
  18132. $$1 = $13;
  18133. } else {
  18134. $19 = HEAP32[$5>>2]|0;
  18135. $20 = ($19|0)==(8);
  18136. $21 = ((($15)) + 4|0);
  18137. $22 = HEAP32[$21>>2]|0;
  18138. $23 = HEAP32[$15>>2]|0;
  18139. if ($20) {
  18140. $24 = (_stbi__convert_format($13,$17,$4,$23,$22)|0);
  18141. $$0 = $24;
  18142. } else {
  18143. $25 = (_stbi__convert_format16($13,$17,$4,$23,$22)|0);
  18144. $$0 = $25;
  18145. }
  18146. $26 = HEAP32[$0>>2]|0;
  18147. $27 = ((($26)) + 12|0);
  18148. HEAP32[$27>>2] = $4;
  18149. $28 = ($$0|0)==(0|0);
  18150. if ($28) {
  18151. $$045 = 0;
  18152. return ($$045|0);
  18153. } else {
  18154. $$1 = $$0;
  18155. }
  18156. }
  18157. }
  18158. $29 = HEAP32[$0>>2]|0;
  18159. $30 = HEAP32[$29>>2]|0;
  18160. HEAP32[$1>>2] = $30;
  18161. $31 = ((($29)) + 4|0);
  18162. $32 = HEAP32[$31>>2]|0;
  18163. HEAP32[$2>>2] = $32;
  18164. $33 = ($3|0)==(0|0);
  18165. if ($33) {
  18166. $$2 = $$1;
  18167. } else {
  18168. $34 = ((($29)) + 8|0);
  18169. $35 = HEAP32[$34>>2]|0;
  18170. HEAP32[$3>>2] = $35;
  18171. $$2 = $$1;
  18172. }
  18173. }
  18174. $36 = ((($0)) + 12|0);
  18175. $37 = HEAP32[$36>>2]|0;
  18176. _free($37);
  18177. HEAP32[$36>>2] = 0;
  18178. $38 = ((($0)) + 8|0);
  18179. $39 = HEAP32[$38>>2]|0;
  18180. _free($39);
  18181. HEAP32[$38>>2] = 0;
  18182. $40 = ((($0)) + 4|0);
  18183. $41 = HEAP32[$40>>2]|0;
  18184. _free($41);
  18185. HEAP32[$40>>2] = 0;
  18186. $$045 = $$2;
  18187. return ($$045|0);
  18188. }
  18189. function _stbi__parse_png_file($0,$1,$2) {
  18190. $0 = $0|0;
  18191. $1 = $1|0;
  18192. $2 = $2|0;
  18193. 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;
  18194. 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;
  18195. 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;
  18196. 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;
  18197. 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;
  18198. 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;
  18199. 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;
  18200. 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;
  18201. 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;
  18202. 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;
  18203. 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;
  18204. 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;
  18205. 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;
  18206. sp = STACKTOP;
  18207. STACKTOP = STACKTOP + 1056|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(1056|0);
  18208. $3 = sp + 32|0;
  18209. $4 = sp + 22|0;
  18210. $5 = sp + 16|0;
  18211. $6 = sp + 8|0;
  18212. $7 = sp;
  18213. $8 = HEAP32[$0>>2]|0;
  18214. $9 = ((($0)) + 8|0);
  18215. HEAP32[$9>>2] = 0;
  18216. $10 = ((($0)) + 4|0);
  18217. HEAP32[$10>>2] = 0;
  18218. $11 = ((($0)) + 12|0);
  18219. HEAP32[$11>>2] = 0;
  18220. $12 = (_stbi__check_png_header($8)|0);
  18221. $13 = ($12|0)==(0);
  18222. if ($13) {
  18223. $$7 = 0;
  18224. STACKTOP = sp;return ($$7|0);
  18225. }
  18226. $14 = ($1|0)==(1);
  18227. if ($14) {
  18228. $$7 = 1;
  18229. STACKTOP = sp;return ($$7|0);
  18230. }
  18231. $15 = ((($6)) + 4|0);
  18232. $16 = ((($8)) + 4|0);
  18233. $17 = ((($0)) + 16|0);
  18234. $18 = ((($8)) + 8|0);
  18235. $19 = ($1|0)==(2);
  18236. $20 = ((($8)) + 8|0);
  18237. $21 = ((($8)) + 8|0);
  18238. $22 = ((($0)) + 16|0);
  18239. $23 = ($1|0)==(2);
  18240. $24 = ($1|0)==(2);
  18241. $$0206 = 0;$$0211 = 0;$$0214 = 0;$$0217 = 0;$$0228 = 0;$$0231 = 0;$$0235 = 0;$$0241 = 1;$$0245 = 0;
  18242. L7: while(1) {
  18243. _stbi__get_chunk_header($6,$8);
  18244. $25 = HEAP32[$15>>2]|0;
  18245. $switch$split2D = ($25|0)<(1229472850);
  18246. L9: do {
  18247. if ($switch$split2D) {
  18248. $switch$split52D = ($25|0)<(1229209940);
  18249. if ($switch$split52D) {
  18250. switch ($25|0) {
  18251. case 1130840649: {
  18252. break;
  18253. }
  18254. default: {
  18255. label = 103;
  18256. break L9;
  18257. }
  18258. }
  18259. $26 = HEAP32[$6>>2]|0;
  18260. _stbi__skip($8,$26);
  18261. $$1212 = $$0211;$$1215 = $$0214;$$1229 = 1;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$0217;
  18262. break;
  18263. }
  18264. $switch$split112D = ($25|0)<(1229278788);
  18265. if (!($switch$split112D)) {
  18266. switch ($25|0) {
  18267. case 1229278788: {
  18268. label = 85;
  18269. break L7;
  18270. break;
  18271. }
  18272. default: {
  18273. label = 103;
  18274. break L9;
  18275. }
  18276. }
  18277. }
  18278. switch ($25|0) {
  18279. case 1229209940: {
  18280. break;
  18281. }
  18282. default: {
  18283. label = 103;
  18284. break L9;
  18285. }
  18286. }
  18287. $130 = ($$0241|0)==(0);
  18288. if (!($130)) {
  18289. label = 70;
  18290. break L7;
  18291. }
  18292. $131 = ($$0206<<24>>24)==(0);
  18293. $132 = ($$0245|0)!=(0);
  18294. $or$cond = $132 | $131;
  18295. if (!($or$cond)) {
  18296. label = 72;
  18297. break L7;
  18298. }
  18299. if ($24) {
  18300. label = 74;
  18301. break L7;
  18302. }
  18303. $135 = HEAP32[$6>>2]|0;
  18304. $136 = (($135) + ($$0214))|0;
  18305. $137 = ($136|0)<($$0214|0);
  18306. if ($137) {
  18307. $$6$ph = 0;
  18308. break L7;
  18309. }
  18310. $138 = ($136>>>0)>($$0217>>>0);
  18311. if ($138) {
  18312. $139 = ($$0217|0)==(0);
  18313. $140 = ($135>>>0)>(4096);
  18314. $141 = $140 ? $135 : 4096;
  18315. $$$0217 = $139 ? $141 : $$0217;
  18316. $142 = HEAP32[$6>>2]|0;
  18317. $143 = (($142) + ($$0214))|0;
  18318. $$1218 = $$$0217;
  18319. while(1) {
  18320. $144 = ($143>>>0)>($$1218>>>0);
  18321. $145 = $$1218 << 1;
  18322. if ($144) {
  18323. $$1218 = $145;
  18324. } else {
  18325. break;
  18326. }
  18327. }
  18328. $146 = HEAP32[$10>>2]|0;
  18329. $147 = (_realloc($146,$$1218)|0);
  18330. $148 = ($147|0)==(0|0);
  18331. if ($148) {
  18332. label = 81;
  18333. break L7;
  18334. }
  18335. HEAP32[$10>>2] = $147;
  18336. $$2219 = $$1218;
  18337. } else {
  18338. $$2219 = $$0217;
  18339. }
  18340. $149 = HEAP32[$10>>2]|0;
  18341. $150 = (($149) + ($$0214)|0);
  18342. $151 = HEAP32[$6>>2]|0;
  18343. $152 = (_stbi__getn($8,$150,$151)|0);
  18344. $153 = ($152|0)==(0);
  18345. if ($153) {
  18346. label = 83;
  18347. break L7;
  18348. }
  18349. $154 = HEAP32[$6>>2]|0;
  18350. $155 = (($154) + ($$0214))|0;
  18351. $$1212 = $$0211;$$1215 = $155;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$2219;
  18352. } else {
  18353. $switch$split82D = ($25|0)<(1347179589);
  18354. if ($switch$split82D) {
  18355. switch ($25|0) {
  18356. case 1229472850: {
  18357. break;
  18358. }
  18359. default: {
  18360. label = 103;
  18361. break L9;
  18362. }
  18363. }
  18364. $27 = ($$0241|0)==(0);
  18365. if ($27) {
  18366. label = 7;
  18367. break L7;
  18368. }
  18369. $28 = HEAP32[$6>>2]|0;
  18370. $29 = ($28|0)==(13);
  18371. if (!($29)) {
  18372. label = 9;
  18373. break L7;
  18374. }
  18375. $30 = (_stbi__get32be($8)|0);
  18376. HEAP32[$8>>2] = $30;
  18377. $31 = ($30>>>0)>(16777216);
  18378. if ($31) {
  18379. label = 11;
  18380. break L7;
  18381. }
  18382. $32 = (_stbi__get32be($8)|0);
  18383. HEAP32[$16>>2] = $32;
  18384. $33 = ($32>>>0)>(16777216);
  18385. if ($33) {
  18386. label = 13;
  18387. break L7;
  18388. }
  18389. $34 = (_stbi__get8($8)|0);
  18390. $35 = $34&255;
  18391. HEAP32[$17>>2] = $35;
  18392. switch ($34<<24>>24) {
  18393. case 16: case 8: case 4: case 2: case 1: {
  18394. break;
  18395. }
  18396. default: {
  18397. label = 15;
  18398. break L7;
  18399. }
  18400. }
  18401. $36 = (_stbi__get8($8)|0);
  18402. $37 = $36&255;
  18403. $38 = ($36&255)>(6);
  18404. if ($38) {
  18405. label = 17;
  18406. break L7;
  18407. }
  18408. $39 = ($36<<24>>24)==(3);
  18409. if ($39) {
  18410. $40 = HEAP32[$17>>2]|0;
  18411. $41 = ($40|0)==(16);
  18412. if ($41) {
  18413. label = 20;
  18414. break L7;
  18415. } else {
  18416. $$1207 = 3;
  18417. }
  18418. } else {
  18419. $42 = $37 & 1;
  18420. $43 = ($42|0)==(0);
  18421. if ($43) {
  18422. $$1207 = $$0206;
  18423. } else {
  18424. label = 22;
  18425. break L7;
  18426. }
  18427. }
  18428. $44 = (_stbi__get8($8)|0);
  18429. $45 = ($44<<24>>24)==(0);
  18430. if (!($45)) {
  18431. label = 24;
  18432. break L7;
  18433. }
  18434. $46 = (_stbi__get8($8)|0);
  18435. $47 = ($46<<24>>24)==(0);
  18436. if (!($47)) {
  18437. label = 26;
  18438. break L7;
  18439. }
  18440. $48 = (_stbi__get8($8)|0);
  18441. $49 = $48&255;
  18442. $50 = ($48&255)>(1);
  18443. if ($50) {
  18444. label = 28;
  18445. break L7;
  18446. }
  18447. $51 = HEAP32[$8>>2]|0;
  18448. $52 = ($51|0)==(0);
  18449. if ($52) {
  18450. label = 31;
  18451. break L7;
  18452. }
  18453. $53 = HEAP32[$16>>2]|0;
  18454. $54 = ($53|0)==(0);
  18455. if ($54) {
  18456. label = 31;
  18457. break L7;
  18458. }
  18459. $55 = ($$1207<<24>>24)==(0);
  18460. $56 = (1073741824 / ($51>>>0))&-1;
  18461. if (!($55)) {
  18462. HEAP32[$20>>2] = 1;
  18463. $63 = $56 >>> 2;
  18464. $64 = ($63>>>0)<($53>>>0);
  18465. if ($64) {
  18466. label = 37;
  18467. break L7;
  18468. } else {
  18469. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $37;$$2237 = $49;$$2243 = 0;$$3209 = $$1207;$$3220 = $$0217;
  18470. break;
  18471. }
  18472. }
  18473. $57 = $37 & 2;
  18474. $58 = $57 | 1;
  18475. $59 = $37 >>> 2;
  18476. $$lobit = $59 & 1;
  18477. $60 = (($58) + ($$lobit))|0;
  18478. HEAP32[$18>>2] = $60;
  18479. $61 = (($56>>>0) / ($60>>>0))&-1;
  18480. $62 = ($61>>>0)<($53>>>0);
  18481. if ($62) {
  18482. label = 34;
  18483. break L7;
  18484. }
  18485. if ($19) {
  18486. $$6$ph = 1;
  18487. break L7;
  18488. } else {
  18489. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $37;$$2237 = $49;$$2243 = 0;$$3209 = 0;$$3220 = $$0217;
  18490. break;
  18491. }
  18492. }
  18493. $switch$split142D = ($25|0)<(1951551059);
  18494. if ($switch$split142D) {
  18495. switch ($25|0) {
  18496. case 1347179589: {
  18497. break;
  18498. }
  18499. default: {
  18500. label = 103;
  18501. break L9;
  18502. }
  18503. }
  18504. $65 = ($$0241|0)==(0);
  18505. if (!($65)) {
  18506. label = 39;
  18507. break L7;
  18508. }
  18509. $66 = HEAP32[$6>>2]|0;
  18510. $67 = ($66>>>0)>(768);
  18511. if ($67) {
  18512. label = 41;
  18513. break L7;
  18514. }
  18515. $68 = (($66>>>0) / 3)&-1;
  18516. $69 = ($68*3)|0;
  18517. $70 = ($69|0)==($66|0);
  18518. if (!($70)) {
  18519. label = 44;
  18520. break L7;
  18521. }
  18522. $71 = ($66>>>0)>(2);
  18523. if ($71) {
  18524. $$0226593 = 0;
  18525. } else {
  18526. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $68;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = $$0206;$$3220 = $$0217;
  18527. break;
  18528. }
  18529. while(1) {
  18530. $72 = (_stbi__get8($8)|0);
  18531. $73 = $$0226593 << 2;
  18532. $74 = (($3) + ($73)|0);
  18533. HEAP8[$74>>0] = $72;
  18534. $75 = (_stbi__get8($8)|0);
  18535. $76 = $73 | 1;
  18536. $77 = (($3) + ($76)|0);
  18537. HEAP8[$77>>0] = $75;
  18538. $78 = (_stbi__get8($8)|0);
  18539. $79 = $73 | 2;
  18540. $80 = (($3) + ($79)|0);
  18541. HEAP8[$80>>0] = $78;
  18542. $81 = $73 | 3;
  18543. $82 = (($3) + ($81)|0);
  18544. HEAP8[$82>>0] = -1;
  18545. $83 = (($$0226593) + 1)|0;
  18546. $84 = ($83>>>0)<($68>>>0);
  18547. if ($84) {
  18548. $$0226593 = $83;
  18549. } else {
  18550. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $68;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$0217;
  18551. break L9;
  18552. }
  18553. }
  18554. }
  18555. switch ($25|0) {
  18556. case 1951551059: {
  18557. break;
  18558. }
  18559. default: {
  18560. label = 103;
  18561. break L9;
  18562. }
  18563. }
  18564. $85 = ($$0241|0)==(0);
  18565. if (!($85)) {
  18566. label = 47;
  18567. break L7;
  18568. }
  18569. $86 = HEAP32[$10>>2]|0;
  18570. $87 = ($86|0)==(0|0);
  18571. if (!($87)) {
  18572. label = 49;
  18573. break L7;
  18574. }
  18575. $88 = ($$0206<<24>>24)==(0);
  18576. if (!($88)) {
  18577. if ($23) {
  18578. label = 52;
  18579. break L7;
  18580. }
  18581. $90 = ($$0245|0)==(0);
  18582. if ($90) {
  18583. label = 54;
  18584. break L7;
  18585. }
  18586. $91 = HEAP32[$6>>2]|0;
  18587. $92 = ($91>>>0)>($$0245>>>0);
  18588. if ($92) {
  18589. label = 58;
  18590. break L7;
  18591. }
  18592. $93 = HEAP32[$6>>2]|0;
  18593. $94 = ($93|0)==(0);
  18594. if ($94) {
  18595. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = 4;$$3220 = $$0217;
  18596. break;
  18597. }
  18598. $95 = HEAP32[$6>>2]|0;
  18599. $$1227588 = 0;
  18600. while(1) {
  18601. $96 = (_stbi__get8($8)|0);
  18602. $97 = $$1227588 << 2;
  18603. $98 = $97 | 3;
  18604. $99 = (($3) + ($98)|0);
  18605. HEAP8[$99>>0] = $96;
  18606. $100 = (($$1227588) + 1)|0;
  18607. $101 = ($100>>>0)<($95>>>0);
  18608. if ($101) {
  18609. $$1227588 = $100;
  18610. } else {
  18611. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = 4;$$3220 = $$0217;
  18612. break L9;
  18613. }
  18614. }
  18615. }
  18616. $102 = HEAP32[$21>>2]|0;
  18617. $103 = $102 & 1;
  18618. $104 = ($103|0)==(0);
  18619. if ($104) {
  18620. label = 61;
  18621. break L7;
  18622. }
  18623. $105 = HEAP32[$6>>2]|0;
  18624. $106 = $102 << 1;
  18625. $107 = ($105|0)==($106|0);
  18626. if (!($107)) {
  18627. label = 63;
  18628. break L7;
  18629. }
  18630. $108 = HEAP32[$22>>2]|0;
  18631. $109 = ($108|0)==(16);
  18632. $110 = HEAP32[$21>>2]|0;
  18633. $111 = ($110|0)>(0);
  18634. if ($109) {
  18635. if ($111) {
  18636. $$0239591 = 0;
  18637. } else {
  18638. $$1212 = 1;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = 0;$$3220 = $$0217;
  18639. break;
  18640. }
  18641. while(1) {
  18642. $112 = (_stbi__get16be($8)|0);
  18643. $113 = $112&65535;
  18644. $114 = (($5) + ($$0239591<<1)|0);
  18645. HEAP16[$114>>1] = $113;
  18646. $115 = (($$0239591) + 1)|0;
  18647. $116 = HEAP32[$21>>2]|0;
  18648. $117 = ($115|0)<($116|0);
  18649. if ($117) {
  18650. $$0239591 = $115;
  18651. } else {
  18652. $$1212 = 1;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$0217;
  18653. break;
  18654. }
  18655. }
  18656. } else {
  18657. if ($111) {
  18658. $$1240589 = 0;
  18659. } else {
  18660. $$1212 = 1;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = 0;$$3220 = $$0217;
  18661. break;
  18662. }
  18663. while(1) {
  18664. $118 = (_stbi__get16be($8)|0);
  18665. $119 = $118 & 255;
  18666. $120 = HEAP32[$22>>2]|0;
  18667. $121 = (10669 + ($120)|0);
  18668. $122 = HEAP8[$121>>0]|0;
  18669. $123 = $122&255;
  18670. $124 = Math_imul($123, $119)|0;
  18671. $125 = $124&255;
  18672. $126 = (($4) + ($$1240589)|0);
  18673. HEAP8[$126>>0] = $125;
  18674. $127 = (($$1240589) + 1)|0;
  18675. $128 = HEAP32[$21>>2]|0;
  18676. $129 = ($127|0)<($128|0);
  18677. if ($129) {
  18678. $$1240589 = $127;
  18679. } else {
  18680. $$1212 = 1;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$0217;
  18681. break;
  18682. }
  18683. }
  18684. }
  18685. }
  18686. } while(0);
  18687. if ((label|0) == 103) {
  18688. label = 0;
  18689. $202 = ($$0241|0)==(0);
  18690. if (!($202)) {
  18691. label = 104;
  18692. break;
  18693. }
  18694. $203 = $25 & 536870912;
  18695. $204 = ($203|0)==(0);
  18696. if ($204) {
  18697. label = 106;
  18698. break;
  18699. }
  18700. $213 = HEAP32[$6>>2]|0;
  18701. _stbi__skip($8,$213);
  18702. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = $$0206;$$3220 = $$0217;
  18703. }
  18704. (_stbi__get32be($8)|0);
  18705. $$0206 = $$3209;$$0211 = $$1212;$$0214 = $$1215;$$0217 = $$3220;$$0228 = $$1229;$$0231 = $$2233;$$0235 = $$2237;$$0241 = $$2243;$$0245 = $$1246;
  18706. }
  18707. switch (label|0) {
  18708. case 7: {
  18709. _stbi__err(10443);
  18710. $$6$ph = 0;
  18711. break;
  18712. }
  18713. case 9: {
  18714. _stbi__err(10457);
  18715. $$6$ph = 0;
  18716. break;
  18717. }
  18718. case 11: {
  18719. _stbi__err(10470);
  18720. $$6$ph = 0;
  18721. break;
  18722. }
  18723. case 13: {
  18724. _stbi__err(10470);
  18725. $$6$ph = 0;
  18726. break;
  18727. }
  18728. case 15: {
  18729. _stbi__err(10480);
  18730. $$6$ph = 0;
  18731. break;
  18732. }
  18733. case 17: {
  18734. _stbi__err(10500);
  18735. $$6$ph = 0;
  18736. break;
  18737. }
  18738. case 20: {
  18739. _stbi__err(10500);
  18740. $$6$ph = 0;
  18741. break;
  18742. }
  18743. case 22: {
  18744. _stbi__err(10500);
  18745. $$6$ph = 0;
  18746. break;
  18747. }
  18748. case 24: {
  18749. _stbi__err(10510);
  18750. $$6$ph = 0;
  18751. break;
  18752. }
  18753. case 26: {
  18754. _stbi__err(10526);
  18755. $$6$ph = 0;
  18756. break;
  18757. }
  18758. case 28: {
  18759. _stbi__err(10544);
  18760. $$6$ph = 0;
  18761. break;
  18762. }
  18763. case 31: {
  18764. _stbi__err(10565);
  18765. $$6$ph = 0;
  18766. break;
  18767. }
  18768. case 34: {
  18769. _stbi__err(10470);
  18770. $$6$ph = 0;
  18771. break;
  18772. }
  18773. case 37: {
  18774. _stbi__err(10470);
  18775. $$6$ph = 0;
  18776. break;
  18777. }
  18778. case 39: {
  18779. _stbi__err(10579);
  18780. $$6$ph = 0;
  18781. break;
  18782. }
  18783. case 41: {
  18784. _stbi__err(10594);
  18785. $$6$ph = 0;
  18786. break;
  18787. }
  18788. case 44: {
  18789. _stbi__err(10594);
  18790. $$6$ph = 0;
  18791. break;
  18792. }
  18793. case 47: {
  18794. _stbi__err(10579);
  18795. $$6$ph = 0;
  18796. break;
  18797. }
  18798. case 49: {
  18799. _stbi__err(10607);
  18800. $$6$ph = 0;
  18801. break;
  18802. }
  18803. case 52: {
  18804. $89 = ((($8)) + 8|0);
  18805. HEAP32[$89>>2] = 4;
  18806. $$6$ph = 1;
  18807. break;
  18808. }
  18809. case 54: {
  18810. _stbi__err(10623);
  18811. $$6$ph = 0;
  18812. break;
  18813. }
  18814. case 58: {
  18815. _stbi__err(10640);
  18816. $$6$ph = 0;
  18817. break;
  18818. }
  18819. case 61: {
  18820. _stbi__err(10653);
  18821. $$6$ph = 0;
  18822. break;
  18823. }
  18824. case 63: {
  18825. _stbi__err(10640);
  18826. $$6$ph = 0;
  18827. break;
  18828. }
  18829. case 70: {
  18830. _stbi__err(10579);
  18831. $$6$ph = 0;
  18832. break;
  18833. }
  18834. case 72: {
  18835. _stbi__err(10678);
  18836. $$6$ph = 0;
  18837. break;
  18838. }
  18839. case 74: {
  18840. $133 = $$0206&255;
  18841. $134 = ((($8)) + 8|0);
  18842. HEAP32[$134>>2] = $133;
  18843. $$6$ph = 1;
  18844. break;
  18845. }
  18846. case 81: {
  18847. _stbi__err(10325);
  18848. $$6$ph = 0;
  18849. break;
  18850. }
  18851. case 83: {
  18852. _stbi__err(10686);
  18853. $$6$ph = 0;
  18854. break;
  18855. }
  18856. case 85: {
  18857. $156 = ($$0241|0)==(0);
  18858. do {
  18859. if ($156) {
  18860. $157 = ($1|0)==(0);
  18861. if ($157) {
  18862. $158 = HEAP32[$10>>2]|0;
  18863. $159 = ($158|0)==(0|0);
  18864. if ($159) {
  18865. _stbi__err(10696);
  18866. $$4 = 0;
  18867. break;
  18868. }
  18869. $160 = HEAP32[$8>>2]|0;
  18870. $161 = ((($0)) + 16|0);
  18871. $162 = HEAP32[$161>>2]|0;
  18872. $163 = Math_imul($162, $160)|0;
  18873. $164 = (($163) + 7)|0;
  18874. $165 = $164 >>> 3;
  18875. $166 = ((($8)) + 4|0);
  18876. $167 = HEAP32[$166>>2]|0;
  18877. $168 = ((($8)) + 8|0);
  18878. $169 = HEAP32[$168>>2]|0;
  18879. $170 = Math_imul($169, $167)|0;
  18880. $171 = Math_imul($170, $165)|0;
  18881. $172 = (($171) + ($167))|0;
  18882. HEAP32[$7>>2] = $172;
  18883. $173 = ($$0228|0)!=(0);
  18884. $174 = $173 ^ 1;
  18885. $175 = $174&1;
  18886. $176 = (_stbi_zlib_decode_malloc_guesssize_headerflag($158,$$0214,$172,$7,$175)|0);
  18887. HEAP32[$9>>2] = $176;
  18888. $177 = ($176|0)==(0|0);
  18889. if ($177) {
  18890. $$4 = 0;
  18891. } else {
  18892. $178 = HEAP32[$10>>2]|0;
  18893. _free($178);
  18894. HEAP32[$10>>2] = 0;
  18895. $179 = HEAP32[$168>>2]|0;
  18896. $180 = (($179) + 1)|0;
  18897. $notlhs = ($180|0)!=($2|0);
  18898. $notrhs = ($2|0)==(3);
  18899. $or$cond5$not = $notrhs | $notlhs;
  18900. $181 = ($$0206<<24>>24)!=(0);
  18901. $or$cond7 = $181 | $or$cond5$not;
  18902. $182 = ($$0211<<24>>24)==(0);
  18903. $or$cond248 = $182 & $or$cond7;
  18904. $$254 = $or$cond248 ? $179 : $180;
  18905. $183 = ((($8)) + 12|0);
  18906. HEAP32[$183>>2] = $$254;
  18907. $184 = HEAP32[$9>>2]|0;
  18908. $185 = HEAP32[$7>>2]|0;
  18909. $186 = HEAP32[$161>>2]|0;
  18910. $187 = (_stbi__create_png_image($0,$184,$185,$$254,$186,$$0231,$$0235)|0);
  18911. $188 = ($187|0)==(0);
  18912. if ($188) {
  18913. $$4 = 0;
  18914. } else {
  18915. do {
  18916. if (!($182)) {
  18917. $189 = HEAP32[$161>>2]|0;
  18918. $190 = ($189|0)==(16);
  18919. if ($190) {
  18920. $191 = HEAP32[$183>>2]|0;
  18921. _stbi__compute_transparency16($0,$5,$191);
  18922. break;
  18923. } else {
  18924. $192 = HEAP32[$183>>2]|0;
  18925. _stbi__compute_transparency($0,$4,$192);
  18926. break;
  18927. }
  18928. }
  18929. } while(0);
  18930. $193 = HEAP32[5377]|0;
  18931. $194 = ($193|0)!=(0);
  18932. $or$cond11 = $173 & $194;
  18933. if ($or$cond11) {
  18934. $195 = HEAP32[$183>>2]|0;
  18935. $196 = ($195|0)>(2);
  18936. if ($196) {
  18937. _stbi__de_iphone($0);
  18938. }
  18939. }
  18940. if ($181) {
  18941. $197 = $$0206&255;
  18942. HEAP32[$168>>2] = $197;
  18943. $198 = ($2|0)>(2);
  18944. $$ = $198 ? $2 : $197;
  18945. HEAP32[$183>>2] = $$;
  18946. $199 = (_stbi__expand_png_palette($0,$3,$$)|0);
  18947. $200 = ($199|0)==(0);
  18948. if ($200) {
  18949. $$4 = 0;
  18950. break;
  18951. }
  18952. }
  18953. $201 = HEAP32[$9>>2]|0;
  18954. _free($201);
  18955. HEAP32[$9>>2] = 0;
  18956. $$4 = 1;
  18957. }
  18958. }
  18959. } else {
  18960. $$4 = 1;
  18961. }
  18962. } else {
  18963. _stbi__err(10579);
  18964. $$4 = 0;
  18965. }
  18966. } while(0);
  18967. $$6$ph = $$4;
  18968. break;
  18969. }
  18970. case 104: {
  18971. _stbi__err(10579);
  18972. $$6$ph = 0;
  18973. break;
  18974. }
  18975. case 106: {
  18976. $205 = $25 >>> 24;
  18977. $206 = $205&255;
  18978. HEAP8[10704] = $206;
  18979. $207 = HEAP32[$15>>2]|0;
  18980. $208 = $207 >>> 16;
  18981. $209 = $208&255;
  18982. HEAP8[(10705)>>0] = $209;
  18983. $210 = $207 >>> 8;
  18984. $211 = $210&255;
  18985. HEAP8[(10706)>>0] = $211;
  18986. $212 = $207&255;
  18987. HEAP8[(10707)>>0] = $212;
  18988. _stbi__err(10704);
  18989. $$6$ph = 0;
  18990. break;
  18991. }
  18992. }
  18993. $$7 = $$6$ph;
  18994. STACKTOP = sp;return ($$7|0);
  18995. }
  18996. function _stbi__convert_format($0,$1,$2,$3,$4) {
  18997. $0 = $0|0;
  18998. $1 = $1|0;
  18999. $2 = $2|0;
  19000. $3 = $3|0;
  19001. $4 = $4|0;
  19002. 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;
  19003. 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;
  19004. 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;
  19005. 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;
  19006. 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;
  19007. 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;
  19008. 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;
  19009. 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;
  19010. 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;
  19011. 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;
  19012. var sp = 0;
  19013. sp = STACKTOP;
  19014. $5 = ($2|0)==($1|0);
  19015. if ($5) {
  19016. $$0163 = $0;
  19017. return ($$0163|0);
  19018. }
  19019. $$off = (($2) + -1)|0;
  19020. $6 = ($$off>>>0)<(4);
  19021. if (!($6)) {
  19022. ___assert_fail((10366|0),(10270|0),1477,(10422|0));
  19023. // unreachable;
  19024. }
  19025. $7 = (_stbi__malloc_mad3($2,$3,$4)|0);
  19026. $8 = ($7|0)==(0|0);
  19027. if ($8) {
  19028. _free($0);
  19029. _stbi__err(10325);
  19030. $$0163 = 0;
  19031. return ($$0163|0);
  19032. }
  19033. $9 = ($4|0)>(0);
  19034. L11: do {
  19035. if ($9) {
  19036. $10 = $1 << 3;
  19037. $11 = (($10) + ($2))|0;
  19038. $$0165254 = (($3) + -1)|0;
  19039. $12 = ($$0165254|0)>(-1);
  19040. $$1166249 = (($3) + -1)|0;
  19041. $13 = ($$1166249|0)>(-1);
  19042. $$2167244 = (($3) + -1)|0;
  19043. $14 = ($$2167244|0)>(-1);
  19044. $$3168239 = (($3) + -1)|0;
  19045. $15 = ($$3168239|0)>(-1);
  19046. $$4169234 = (($3) + -1)|0;
  19047. $16 = ($$4169234|0)>(-1);
  19048. $$5170229 = (($3) + -1)|0;
  19049. $17 = ($$5170229|0)>(-1);
  19050. $$6171224 = (($3) + -1)|0;
  19051. $18 = ($$6171224|0)>(-1);
  19052. $$7172219 = (($3) + -1)|0;
  19053. $19 = ($$7172219|0)>(-1);
  19054. $$8173214 = (($3) + -1)|0;
  19055. $20 = ($$8173214|0)>(-1);
  19056. $$9174209 = (($3) + -1)|0;
  19057. $21 = ($$9174209|0)>(-1);
  19058. $$10175204 = (($3) + -1)|0;
  19059. $22 = ($$10175204|0)>(-1);
  19060. $$11176200 = (($3) + -1)|0;
  19061. $23 = ($$11176200|0)>(-1);
  19062. $$0164259 = 0;
  19063. L13: while(1) {
  19064. $24 = Math_imul($$0164259, $3)|0;
  19065. $25 = Math_imul($24, $1)|0;
  19066. $26 = (($0) + ($25)|0);
  19067. $27 = Math_imul($24, $2)|0;
  19068. $28 = (($7) + ($27)|0);
  19069. do {
  19070. switch ($11|0) {
  19071. case 10: {
  19072. if ($12) {
  19073. $$0151255 = $26;$$0165257 = $$0165254;$$0256 = $28;
  19074. while(1) {
  19075. $29 = HEAP8[$$0151255>>0]|0;
  19076. HEAP8[$$0256>>0] = $29;
  19077. $30 = ((($$0256)) + 1|0);
  19078. HEAP8[$30>>0] = -1;
  19079. $31 = ((($$0151255)) + 1|0);
  19080. $32 = ((($$0256)) + 2|0);
  19081. $$0165 = (($$0165257) + -1)|0;
  19082. $33 = ($$0165|0)>(-1);
  19083. if ($33) {
  19084. $$0151255 = $31;$$0165257 = $$0165;$$0256 = $32;
  19085. } else {
  19086. break;
  19087. }
  19088. }
  19089. }
  19090. break;
  19091. }
  19092. case 11: {
  19093. if ($13) {
  19094. $$1152250 = $26;$$1166252 = $$1166249;$$1251 = $28;
  19095. while(1) {
  19096. $34 = HEAP8[$$1152250>>0]|0;
  19097. $35 = ((($$1251)) + 2|0);
  19098. HEAP8[$35>>0] = $34;
  19099. $36 = ((($$1251)) + 1|0);
  19100. HEAP8[$36>>0] = $34;
  19101. HEAP8[$$1251>>0] = $34;
  19102. $37 = ((($$1152250)) + 1|0);
  19103. $38 = ((($$1251)) + 3|0);
  19104. $$1166 = (($$1166252) + -1)|0;
  19105. $39 = ($$1166|0)>(-1);
  19106. if ($39) {
  19107. $$1152250 = $37;$$1166252 = $$1166;$$1251 = $38;
  19108. } else {
  19109. break;
  19110. }
  19111. }
  19112. }
  19113. break;
  19114. }
  19115. case 12: {
  19116. if ($14) {
  19117. $$2153245 = $26;$$2167247 = $$2167244;$$2246 = $28;
  19118. while(1) {
  19119. $40 = HEAP8[$$2153245>>0]|0;
  19120. $41 = ((($$2246)) + 2|0);
  19121. HEAP8[$41>>0] = $40;
  19122. $42 = ((($$2246)) + 1|0);
  19123. HEAP8[$42>>0] = $40;
  19124. HEAP8[$$2246>>0] = $40;
  19125. $43 = ((($$2246)) + 3|0);
  19126. HEAP8[$43>>0] = -1;
  19127. $44 = ((($$2153245)) + 1|0);
  19128. $45 = ((($$2246)) + 4|0);
  19129. $$2167 = (($$2167247) + -1)|0;
  19130. $46 = ($$2167|0)>(-1);
  19131. if ($46) {
  19132. $$2153245 = $44;$$2167247 = $$2167;$$2246 = $45;
  19133. } else {
  19134. break;
  19135. }
  19136. }
  19137. }
  19138. break;
  19139. }
  19140. case 17: {
  19141. if ($15) {
  19142. $$3154240 = $26;$$3168242 = $$3168239;$$3241 = $28;
  19143. while(1) {
  19144. $47 = HEAP8[$$3154240>>0]|0;
  19145. HEAP8[$$3241>>0] = $47;
  19146. $48 = ((($$3154240)) + 2|0);
  19147. $49 = ((($$3241)) + 1|0);
  19148. $$3168 = (($$3168242) + -1)|0;
  19149. $50 = ($$3168|0)>(-1);
  19150. if ($50) {
  19151. $$3154240 = $48;$$3168242 = $$3168;$$3241 = $49;
  19152. } else {
  19153. break;
  19154. }
  19155. }
  19156. }
  19157. break;
  19158. }
  19159. case 19: {
  19160. if ($16) {
  19161. $$4155235 = $26;$$4169237 = $$4169234;$$4236 = $28;
  19162. while(1) {
  19163. $51 = HEAP8[$$4155235>>0]|0;
  19164. $52 = ((($$4236)) + 2|0);
  19165. HEAP8[$52>>0] = $51;
  19166. $53 = ((($$4236)) + 1|0);
  19167. HEAP8[$53>>0] = $51;
  19168. HEAP8[$$4236>>0] = $51;
  19169. $54 = ((($$4155235)) + 2|0);
  19170. $55 = ((($$4236)) + 3|0);
  19171. $$4169 = (($$4169237) + -1)|0;
  19172. $56 = ($$4169|0)>(-1);
  19173. if ($56) {
  19174. $$4155235 = $54;$$4169237 = $$4169;$$4236 = $55;
  19175. } else {
  19176. break;
  19177. }
  19178. }
  19179. }
  19180. break;
  19181. }
  19182. case 20: {
  19183. if ($17) {
  19184. $$5156230 = $26;$$5170232 = $$5170229;$$5231 = $28;
  19185. while(1) {
  19186. $57 = HEAP8[$$5156230>>0]|0;
  19187. $58 = ((($$5231)) + 2|0);
  19188. HEAP8[$58>>0] = $57;
  19189. $59 = ((($$5231)) + 1|0);
  19190. HEAP8[$59>>0] = $57;
  19191. HEAP8[$$5231>>0] = $57;
  19192. $60 = ((($$5156230)) + 1|0);
  19193. $61 = HEAP8[$60>>0]|0;
  19194. $62 = ((($$5231)) + 3|0);
  19195. HEAP8[$62>>0] = $61;
  19196. $63 = ((($$5156230)) + 2|0);
  19197. $64 = ((($$5231)) + 4|0);
  19198. $$5170 = (($$5170232) + -1)|0;
  19199. $65 = ($$5170|0)>(-1);
  19200. if ($65) {
  19201. $$5156230 = $63;$$5170232 = $$5170;$$5231 = $64;
  19202. } else {
  19203. break;
  19204. }
  19205. }
  19206. }
  19207. break;
  19208. }
  19209. case 28: {
  19210. if ($18) {
  19211. $$6157225 = $26;$$6171227 = $$6171224;$$6226 = $28;
  19212. while(1) {
  19213. $66 = HEAP8[$$6157225>>0]|0;
  19214. HEAP8[$$6226>>0] = $66;
  19215. $67 = ((($$6157225)) + 1|0);
  19216. $68 = HEAP8[$67>>0]|0;
  19217. $69 = ((($$6226)) + 1|0);
  19218. HEAP8[$69>>0] = $68;
  19219. $70 = ((($$6157225)) + 2|0);
  19220. $71 = HEAP8[$70>>0]|0;
  19221. $72 = ((($$6226)) + 2|0);
  19222. HEAP8[$72>>0] = $71;
  19223. $73 = ((($$6226)) + 3|0);
  19224. HEAP8[$73>>0] = -1;
  19225. $74 = ((($$6157225)) + 3|0);
  19226. $75 = ((($$6226)) + 4|0);
  19227. $$6171 = (($$6171227) + -1)|0;
  19228. $76 = ($$6171|0)>(-1);
  19229. if ($76) {
  19230. $$6157225 = $74;$$6171227 = $$6171;$$6226 = $75;
  19231. } else {
  19232. break;
  19233. }
  19234. }
  19235. }
  19236. break;
  19237. }
  19238. case 25: {
  19239. if ($19) {
  19240. $$7158220 = $26;$$7172222 = $$7172219;$$7221 = $28;
  19241. while(1) {
  19242. $77 = HEAP8[$$7158220>>0]|0;
  19243. $78 = $77&255;
  19244. $79 = ((($$7158220)) + 1|0);
  19245. $80 = HEAP8[$79>>0]|0;
  19246. $81 = $80&255;
  19247. $82 = ((($$7158220)) + 2|0);
  19248. $83 = HEAP8[$82>>0]|0;
  19249. $84 = $83&255;
  19250. $85 = (_stbi__compute_y($78,$81,$84)|0);
  19251. HEAP8[$$7221>>0] = $85;
  19252. $86 = ((($$7158220)) + 3|0);
  19253. $87 = ((($$7221)) + 1|0);
  19254. $$7172 = (($$7172222) + -1)|0;
  19255. $88 = ($$7172|0)>(-1);
  19256. if ($88) {
  19257. $$7158220 = $86;$$7172222 = $$7172;$$7221 = $87;
  19258. } else {
  19259. break;
  19260. }
  19261. }
  19262. }
  19263. break;
  19264. }
  19265. case 26: {
  19266. if ($20) {
  19267. $$8159215 = $26;$$8173217 = $$8173214;$$8216 = $28;
  19268. while(1) {
  19269. $89 = HEAP8[$$8159215>>0]|0;
  19270. $90 = $89&255;
  19271. $91 = ((($$8159215)) + 1|0);
  19272. $92 = HEAP8[$91>>0]|0;
  19273. $93 = $92&255;
  19274. $94 = ((($$8159215)) + 2|0);
  19275. $95 = HEAP8[$94>>0]|0;
  19276. $96 = $95&255;
  19277. $97 = (_stbi__compute_y($90,$93,$96)|0);
  19278. HEAP8[$$8216>>0] = $97;
  19279. $98 = ((($$8216)) + 1|0);
  19280. HEAP8[$98>>0] = -1;
  19281. $99 = ((($$8159215)) + 3|0);
  19282. $100 = ((($$8216)) + 2|0);
  19283. $$8173 = (($$8173217) + -1)|0;
  19284. $101 = ($$8173|0)>(-1);
  19285. if ($101) {
  19286. $$8159215 = $99;$$8173217 = $$8173;$$8216 = $100;
  19287. } else {
  19288. break;
  19289. }
  19290. }
  19291. }
  19292. break;
  19293. }
  19294. case 33: {
  19295. if ($21) {
  19296. $$9160210 = $26;$$9174212 = $$9174209;$$9211 = $28;
  19297. while(1) {
  19298. $102 = HEAP8[$$9160210>>0]|0;
  19299. $103 = $102&255;
  19300. $104 = ((($$9160210)) + 1|0);
  19301. $105 = HEAP8[$104>>0]|0;
  19302. $106 = $105&255;
  19303. $107 = ((($$9160210)) + 2|0);
  19304. $108 = HEAP8[$107>>0]|0;
  19305. $109 = $108&255;
  19306. $110 = (_stbi__compute_y($103,$106,$109)|0);
  19307. HEAP8[$$9211>>0] = $110;
  19308. $111 = ((($$9160210)) + 4|0);
  19309. $112 = ((($$9211)) + 1|0);
  19310. $$9174 = (($$9174212) + -1)|0;
  19311. $113 = ($$9174|0)>(-1);
  19312. if ($113) {
  19313. $$9160210 = $111;$$9174212 = $$9174;$$9211 = $112;
  19314. } else {
  19315. break;
  19316. }
  19317. }
  19318. }
  19319. break;
  19320. }
  19321. case 34: {
  19322. if ($22) {
  19323. $$10161205 = $26;$$10175207 = $$10175204;$$10206 = $28;
  19324. while(1) {
  19325. $114 = HEAP8[$$10161205>>0]|0;
  19326. $115 = $114&255;
  19327. $116 = ((($$10161205)) + 1|0);
  19328. $117 = HEAP8[$116>>0]|0;
  19329. $118 = $117&255;
  19330. $119 = ((($$10161205)) + 2|0);
  19331. $120 = HEAP8[$119>>0]|0;
  19332. $121 = $120&255;
  19333. $122 = (_stbi__compute_y($115,$118,$121)|0);
  19334. HEAP8[$$10206>>0] = $122;
  19335. $123 = ((($$10161205)) + 3|0);
  19336. $124 = HEAP8[$123>>0]|0;
  19337. $125 = ((($$10206)) + 1|0);
  19338. HEAP8[$125>>0] = $124;
  19339. $126 = ((($$10161205)) + 4|0);
  19340. $127 = ((($$10206)) + 2|0);
  19341. $$10175 = (($$10175207) + -1)|0;
  19342. $128 = ($$10175|0)>(-1);
  19343. if ($128) {
  19344. $$10161205 = $126;$$10175207 = $$10175;$$10206 = $127;
  19345. } else {
  19346. break;
  19347. }
  19348. }
  19349. }
  19350. break;
  19351. }
  19352. case 35: {
  19353. if ($23) {
  19354. $$11162201 = $26;$$11176203 = $$11176200;$$11202 = $28;
  19355. while(1) {
  19356. $129 = HEAP8[$$11162201>>0]|0;
  19357. HEAP8[$$11202>>0] = $129;
  19358. $130 = ((($$11162201)) + 1|0);
  19359. $131 = HEAP8[$130>>0]|0;
  19360. $132 = ((($$11202)) + 1|0);
  19361. HEAP8[$132>>0] = $131;
  19362. $133 = ((($$11162201)) + 2|0);
  19363. $134 = HEAP8[$133>>0]|0;
  19364. $135 = ((($$11202)) + 2|0);
  19365. HEAP8[$135>>0] = $134;
  19366. $136 = ((($$11162201)) + 4|0);
  19367. $137 = ((($$11202)) + 3|0);
  19368. $$11176 = (($$11176203) + -1)|0;
  19369. $138 = ($$11176|0)>(-1);
  19370. if ($138) {
  19371. $$11162201 = $136;$$11176203 = $$11176;$$11202 = $137;
  19372. } else {
  19373. break;
  19374. }
  19375. }
  19376. }
  19377. break;
  19378. }
  19379. default: {
  19380. break L13;
  19381. }
  19382. }
  19383. } while(0);
  19384. $139 = (($$0164259) + 1)|0;
  19385. $140 = ($139|0)<($4|0);
  19386. if ($140) {
  19387. $$0164259 = $139;
  19388. } else {
  19389. break L11;
  19390. }
  19391. }
  19392. ___assert_fail((10420|0),(10270|0),1506,(10422|0));
  19393. // unreachable;
  19394. }
  19395. } while(0);
  19396. _free($0);
  19397. $$0163 = $7;
  19398. return ($$0163|0);
  19399. }
  19400. function _stbi__convert_format16($0,$1,$2,$3,$4) {
  19401. $0 = $0|0;
  19402. $1 = $1|0;
  19403. $2 = $2|0;
  19404. $3 = $3|0;
  19405. $4 = $4|0;
  19406. 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;
  19407. 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;
  19408. 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;
  19409. 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;
  19410. 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;
  19411. 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;
  19412. 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;
  19413. 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;
  19414. 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;
  19415. 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;
  19416. var $98 = 0, $99 = 0, label = 0, sp = 0;
  19417. sp = STACKTOP;
  19418. $5 = ($2|0)==($1|0);
  19419. if ($5) {
  19420. $$0163 = $0;
  19421. return ($$0163|0);
  19422. }
  19423. $$off = (($2) + -1)|0;
  19424. $6 = ($$off>>>0)<(4);
  19425. if (!($6)) {
  19426. ___assert_fail((10366|0),(10270|0),1526,(10397|0));
  19427. // unreachable;
  19428. }
  19429. $7 = $2 << 1;
  19430. $8 = Math_imul($7, $3)|0;
  19431. $9 = Math_imul($8, $4)|0;
  19432. $10 = (_stbi__malloc($9)|0);
  19433. $11 = ($10|0)==(0|0);
  19434. if ($11) {
  19435. _free($0);
  19436. _stbi__err(10325);
  19437. $$0163 = 0;
  19438. return ($$0163|0);
  19439. }
  19440. $12 = ($4|0)>(0);
  19441. L11: do {
  19442. if ($12) {
  19443. $13 = $1 << 3;
  19444. $14 = (($13) + ($2))|0;
  19445. $$0165254 = (($3) + -1)|0;
  19446. $15 = ($$0165254|0)>(-1);
  19447. $$1166249 = (($3) + -1)|0;
  19448. $16 = ($$1166249|0)>(-1);
  19449. $$2167244 = (($3) + -1)|0;
  19450. $17 = ($$2167244|0)>(-1);
  19451. $$3168239 = (($3) + -1)|0;
  19452. $18 = ($$3168239|0)>(-1);
  19453. $$4169234 = (($3) + -1)|0;
  19454. $19 = ($$4169234|0)>(-1);
  19455. $$5170229 = (($3) + -1)|0;
  19456. $20 = ($$5170229|0)>(-1);
  19457. $$6171224 = (($3) + -1)|0;
  19458. $21 = ($$6171224|0)>(-1);
  19459. $$7172219 = (($3) + -1)|0;
  19460. $22 = ($$7172219|0)>(-1);
  19461. $$8173214 = (($3) + -1)|0;
  19462. $23 = ($$8173214|0)>(-1);
  19463. $$9174209 = (($3) + -1)|0;
  19464. $24 = ($$9174209|0)>(-1);
  19465. $$10175204 = (($3) + -1)|0;
  19466. $25 = ($$10175204|0)>(-1);
  19467. $$11176200 = (($3) + -1)|0;
  19468. $26 = ($$11176200|0)>(-1);
  19469. $$0164259 = 0;
  19470. L13: while(1) {
  19471. $27 = Math_imul($$0164259, $3)|0;
  19472. $28 = Math_imul($27, $1)|0;
  19473. $29 = (($0) + ($28<<1)|0);
  19474. $30 = Math_imul($27, $2)|0;
  19475. $31 = (($10) + ($30<<1)|0);
  19476. do {
  19477. switch ($14|0) {
  19478. case 10: {
  19479. if ($15) {
  19480. $$0151255 = $29;$$0165257 = $$0165254;$$0256 = $31;
  19481. while(1) {
  19482. $32 = HEAP16[$$0151255>>1]|0;
  19483. HEAP16[$$0256>>1] = $32;
  19484. $33 = ((($$0256)) + 2|0);
  19485. HEAP16[$33>>1] = -1;
  19486. $34 = ((($$0151255)) + 2|0);
  19487. $35 = ((($$0256)) + 4|0);
  19488. $$0165 = (($$0165257) + -1)|0;
  19489. $36 = ($$0165|0)>(-1);
  19490. if ($36) {
  19491. $$0151255 = $34;$$0165257 = $$0165;$$0256 = $35;
  19492. } else {
  19493. break;
  19494. }
  19495. }
  19496. }
  19497. break;
  19498. }
  19499. case 11: {
  19500. if ($16) {
  19501. $$1152250 = $29;$$1166252 = $$1166249;$$1251 = $31;
  19502. while(1) {
  19503. $37 = HEAP16[$$1152250>>1]|0;
  19504. $38 = ((($$1251)) + 4|0);
  19505. HEAP16[$38>>1] = $37;
  19506. $39 = ((($$1251)) + 2|0);
  19507. HEAP16[$39>>1] = $37;
  19508. HEAP16[$$1251>>1] = $37;
  19509. $40 = ((($$1152250)) + 2|0);
  19510. $41 = ((($$1251)) + 6|0);
  19511. $$1166 = (($$1166252) + -1)|0;
  19512. $42 = ($$1166|0)>(-1);
  19513. if ($42) {
  19514. $$1152250 = $40;$$1166252 = $$1166;$$1251 = $41;
  19515. } else {
  19516. break;
  19517. }
  19518. }
  19519. }
  19520. break;
  19521. }
  19522. case 12: {
  19523. if ($17) {
  19524. $$2153245 = $29;$$2167247 = $$2167244;$$2246 = $31;
  19525. while(1) {
  19526. $43 = HEAP16[$$2153245>>1]|0;
  19527. $44 = ((($$2246)) + 4|0);
  19528. HEAP16[$44>>1] = $43;
  19529. $45 = ((($$2246)) + 2|0);
  19530. HEAP16[$45>>1] = $43;
  19531. HEAP16[$$2246>>1] = $43;
  19532. $46 = ((($$2246)) + 6|0);
  19533. HEAP16[$46>>1] = -1;
  19534. $47 = ((($$2153245)) + 2|0);
  19535. $48 = ((($$2246)) + 8|0);
  19536. $$2167 = (($$2167247) + -1)|0;
  19537. $49 = ($$2167|0)>(-1);
  19538. if ($49) {
  19539. $$2153245 = $47;$$2167247 = $$2167;$$2246 = $48;
  19540. } else {
  19541. break;
  19542. }
  19543. }
  19544. }
  19545. break;
  19546. }
  19547. case 17: {
  19548. if ($18) {
  19549. $$3154240 = $29;$$3168242 = $$3168239;$$3241 = $31;
  19550. while(1) {
  19551. $50 = HEAP16[$$3154240>>1]|0;
  19552. HEAP16[$$3241>>1] = $50;
  19553. $51 = ((($$3154240)) + 4|0);
  19554. $52 = ((($$3241)) + 2|0);
  19555. $$3168 = (($$3168242) + -1)|0;
  19556. $53 = ($$3168|0)>(-1);
  19557. if ($53) {
  19558. $$3154240 = $51;$$3168242 = $$3168;$$3241 = $52;
  19559. } else {
  19560. break;
  19561. }
  19562. }
  19563. }
  19564. break;
  19565. }
  19566. case 19: {
  19567. if ($19) {
  19568. $$4155235 = $29;$$4169237 = $$4169234;$$4236 = $31;
  19569. while(1) {
  19570. $54 = HEAP16[$$4155235>>1]|0;
  19571. $55 = ((($$4236)) + 4|0);
  19572. HEAP16[$55>>1] = $54;
  19573. $56 = ((($$4236)) + 2|0);
  19574. HEAP16[$56>>1] = $54;
  19575. HEAP16[$$4236>>1] = $54;
  19576. $57 = ((($$4155235)) + 4|0);
  19577. $58 = ((($$4236)) + 6|0);
  19578. $$4169 = (($$4169237) + -1)|0;
  19579. $59 = ($$4169|0)>(-1);
  19580. if ($59) {
  19581. $$4155235 = $57;$$4169237 = $$4169;$$4236 = $58;
  19582. } else {
  19583. break;
  19584. }
  19585. }
  19586. }
  19587. break;
  19588. }
  19589. case 20: {
  19590. if ($20) {
  19591. $$5156230 = $29;$$5170232 = $$5170229;$$5231 = $31;
  19592. while(1) {
  19593. $60 = HEAP16[$$5156230>>1]|0;
  19594. $61 = ((($$5231)) + 4|0);
  19595. HEAP16[$61>>1] = $60;
  19596. $62 = ((($$5231)) + 2|0);
  19597. HEAP16[$62>>1] = $60;
  19598. HEAP16[$$5231>>1] = $60;
  19599. $63 = ((($$5156230)) + 2|0);
  19600. $64 = HEAP16[$63>>1]|0;
  19601. $65 = ((($$5231)) + 6|0);
  19602. HEAP16[$65>>1] = $64;
  19603. $66 = ((($$5156230)) + 4|0);
  19604. $67 = ((($$5231)) + 8|0);
  19605. $$5170 = (($$5170232) + -1)|0;
  19606. $68 = ($$5170|0)>(-1);
  19607. if ($68) {
  19608. $$5156230 = $66;$$5170232 = $$5170;$$5231 = $67;
  19609. } else {
  19610. break;
  19611. }
  19612. }
  19613. }
  19614. break;
  19615. }
  19616. case 28: {
  19617. if ($21) {
  19618. $$6157225 = $29;$$6171227 = $$6171224;$$6226 = $31;
  19619. while(1) {
  19620. $69 = HEAP16[$$6157225>>1]|0;
  19621. HEAP16[$$6226>>1] = $69;
  19622. $70 = ((($$6157225)) + 2|0);
  19623. $71 = HEAP16[$70>>1]|0;
  19624. $72 = ((($$6226)) + 2|0);
  19625. HEAP16[$72>>1] = $71;
  19626. $73 = ((($$6157225)) + 4|0);
  19627. $74 = HEAP16[$73>>1]|0;
  19628. $75 = ((($$6226)) + 4|0);
  19629. HEAP16[$75>>1] = $74;
  19630. $76 = ((($$6226)) + 6|0);
  19631. HEAP16[$76>>1] = -1;
  19632. $77 = ((($$6157225)) + 6|0);
  19633. $78 = ((($$6226)) + 8|0);
  19634. $$6171 = (($$6171227) + -1)|0;
  19635. $79 = ($$6171|0)>(-1);
  19636. if ($79) {
  19637. $$6157225 = $77;$$6171227 = $$6171;$$6226 = $78;
  19638. } else {
  19639. break;
  19640. }
  19641. }
  19642. }
  19643. break;
  19644. }
  19645. case 25: {
  19646. if ($22) {
  19647. $$7158220 = $29;$$7172222 = $$7172219;$$7221 = $31;
  19648. while(1) {
  19649. $80 = HEAP16[$$7158220>>1]|0;
  19650. $81 = $80&65535;
  19651. $82 = ((($$7158220)) + 2|0);
  19652. $83 = HEAP16[$82>>1]|0;
  19653. $84 = $83&65535;
  19654. $85 = ((($$7158220)) + 4|0);
  19655. $86 = HEAP16[$85>>1]|0;
  19656. $87 = $86&65535;
  19657. $88 = (_stbi__compute_y_16($81,$84,$87)|0);
  19658. HEAP16[$$7221>>1] = $88;
  19659. $89 = ((($$7158220)) + 6|0);
  19660. $90 = ((($$7221)) + 2|0);
  19661. $$7172 = (($$7172222) + -1)|0;
  19662. $91 = ($$7172|0)>(-1);
  19663. if ($91) {
  19664. $$7158220 = $89;$$7172222 = $$7172;$$7221 = $90;
  19665. } else {
  19666. break;
  19667. }
  19668. }
  19669. }
  19670. break;
  19671. }
  19672. case 26: {
  19673. if ($23) {
  19674. $$8159215 = $29;$$8173217 = $$8173214;$$8216 = $31;
  19675. while(1) {
  19676. $92 = HEAP16[$$8159215>>1]|0;
  19677. $93 = $92&65535;
  19678. $94 = ((($$8159215)) + 2|0);
  19679. $95 = HEAP16[$94>>1]|0;
  19680. $96 = $95&65535;
  19681. $97 = ((($$8159215)) + 4|0);
  19682. $98 = HEAP16[$97>>1]|0;
  19683. $99 = $98&65535;
  19684. $100 = (_stbi__compute_y_16($93,$96,$99)|0);
  19685. HEAP16[$$8216>>1] = $100;
  19686. $101 = ((($$8216)) + 2|0);
  19687. HEAP16[$101>>1] = -1;
  19688. $102 = ((($$8159215)) + 6|0);
  19689. $103 = ((($$8216)) + 4|0);
  19690. $$8173 = (($$8173217) + -1)|0;
  19691. $104 = ($$8173|0)>(-1);
  19692. if ($104) {
  19693. $$8159215 = $102;$$8173217 = $$8173;$$8216 = $103;
  19694. } else {
  19695. break;
  19696. }
  19697. }
  19698. }
  19699. break;
  19700. }
  19701. case 33: {
  19702. if ($24) {
  19703. $$9160210 = $29;$$9174212 = $$9174209;$$9211 = $31;
  19704. while(1) {
  19705. $105 = HEAP16[$$9160210>>1]|0;
  19706. $106 = $105&65535;
  19707. $107 = ((($$9160210)) + 2|0);
  19708. $108 = HEAP16[$107>>1]|0;
  19709. $109 = $108&65535;
  19710. $110 = ((($$9160210)) + 4|0);
  19711. $111 = HEAP16[$110>>1]|0;
  19712. $112 = $111&65535;
  19713. $113 = (_stbi__compute_y_16($106,$109,$112)|0);
  19714. HEAP16[$$9211>>1] = $113;
  19715. $114 = ((($$9160210)) + 8|0);
  19716. $115 = ((($$9211)) + 2|0);
  19717. $$9174 = (($$9174212) + -1)|0;
  19718. $116 = ($$9174|0)>(-1);
  19719. if ($116) {
  19720. $$9160210 = $114;$$9174212 = $$9174;$$9211 = $115;
  19721. } else {
  19722. break;
  19723. }
  19724. }
  19725. }
  19726. break;
  19727. }
  19728. case 34: {
  19729. if ($25) {
  19730. $$10161205 = $29;$$10175207 = $$10175204;$$10206 = $31;
  19731. while(1) {
  19732. $117 = HEAP16[$$10161205>>1]|0;
  19733. $118 = $117&65535;
  19734. $119 = ((($$10161205)) + 2|0);
  19735. $120 = HEAP16[$119>>1]|0;
  19736. $121 = $120&65535;
  19737. $122 = ((($$10161205)) + 4|0);
  19738. $123 = HEAP16[$122>>1]|0;
  19739. $124 = $123&65535;
  19740. $125 = (_stbi__compute_y_16($118,$121,$124)|0);
  19741. HEAP16[$$10206>>1] = $125;
  19742. $126 = ((($$10161205)) + 6|0);
  19743. $127 = HEAP16[$126>>1]|0;
  19744. $128 = ((($$10206)) + 2|0);
  19745. HEAP16[$128>>1] = $127;
  19746. $129 = ((($$10161205)) + 8|0);
  19747. $130 = ((($$10206)) + 4|0);
  19748. $$10175 = (($$10175207) + -1)|0;
  19749. $131 = ($$10175|0)>(-1);
  19750. if ($131) {
  19751. $$10161205 = $129;$$10175207 = $$10175;$$10206 = $130;
  19752. } else {
  19753. break;
  19754. }
  19755. }
  19756. }
  19757. break;
  19758. }
  19759. case 35: {
  19760. if ($26) {
  19761. $$11162201 = $29;$$11176203 = $$11176200;$$11202 = $31;
  19762. while(1) {
  19763. $132 = HEAP16[$$11162201>>1]|0;
  19764. HEAP16[$$11202>>1] = $132;
  19765. $133 = ((($$11162201)) + 2|0);
  19766. $134 = HEAP16[$133>>1]|0;
  19767. $135 = ((($$11202)) + 2|0);
  19768. HEAP16[$135>>1] = $134;
  19769. $136 = ((($$11162201)) + 4|0);
  19770. $137 = HEAP16[$136>>1]|0;
  19771. $138 = ((($$11202)) + 4|0);
  19772. HEAP16[$138>>1] = $137;
  19773. $139 = ((($$11162201)) + 8|0);
  19774. $140 = ((($$11202)) + 6|0);
  19775. $$11176 = (($$11176203) + -1)|0;
  19776. $141 = ($$11176|0)>(-1);
  19777. if ($141) {
  19778. $$11162201 = $139;$$11176203 = $$11176;$$11202 = $140;
  19779. } else {
  19780. break;
  19781. }
  19782. }
  19783. }
  19784. break;
  19785. }
  19786. default: {
  19787. break L13;
  19788. }
  19789. }
  19790. } while(0);
  19791. $142 = (($$0164259) + 1)|0;
  19792. $143 = ($142|0)<($4|0);
  19793. if ($143) {
  19794. $$0164259 = $142;
  19795. } else {
  19796. break L11;
  19797. }
  19798. }
  19799. ___assert_fail((10420|0),(10270|0),1555,(10397|0));
  19800. // unreachable;
  19801. }
  19802. } while(0);
  19803. _free($0);
  19804. $$0163 = $10;
  19805. return ($$0163|0);
  19806. }
  19807. function _stbi__compute_y_16($0,$1,$2) {
  19808. $0 = $0|0;
  19809. $1 = $1|0;
  19810. $2 = $2|0;
  19811. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  19812. sp = STACKTOP;
  19813. $3 = ($0*77)|0;
  19814. $4 = ($1*150)|0;
  19815. $5 = (($4) + ($3))|0;
  19816. $6 = ($2*29)|0;
  19817. $7 = (($5) + ($6))|0;
  19818. $8 = $7 >>> 8;
  19819. $9 = $8&65535;
  19820. return ($9|0);
  19821. }
  19822. function _stbi__malloc_mad3($0,$1,$2) {
  19823. $0 = $0|0;
  19824. $1 = $1|0;
  19825. $2 = $2|0;
  19826. var $$0 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, label = 0, sp = 0;
  19827. sp = STACKTOP;
  19828. $3 = (_stbi__mad3sizes_valid($0,$1,$2)|0);
  19829. $4 = ($3|0)==(0);
  19830. if ($4) {
  19831. $$0 = 0;
  19832. return ($$0|0);
  19833. }
  19834. $5 = Math_imul($1, $0)|0;
  19835. $6 = Math_imul($5, $2)|0;
  19836. $7 = (_stbi__malloc($6)|0);
  19837. $$0 = $7;
  19838. return ($$0|0);
  19839. }
  19840. function _stbi__compute_y($0,$1,$2) {
  19841. $0 = $0|0;
  19842. $1 = $1|0;
  19843. $2 = $2|0;
  19844. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  19845. sp = STACKTOP;
  19846. $3 = ($0*77)|0;
  19847. $4 = ($1*150)|0;
  19848. $5 = (($4) + ($3))|0;
  19849. $6 = ($2*29)|0;
  19850. $7 = (($5) + ($6))|0;
  19851. $8 = $7 >>> 8;
  19852. $9 = $8&255;
  19853. return ($9|0);
  19854. }
  19855. function _stbi__mad3sizes_valid($0,$1,$2) {
  19856. $0 = $0|0;
  19857. $1 = $1|0;
  19858. $2 = $2|0;
  19859. 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;
  19860. sp = STACKTOP;
  19861. $3 = (_stbi__mul2sizes_valid($0,$1)|0);
  19862. $4 = ($3|0)==(0);
  19863. if ($4) {
  19864. $12 = 0;
  19865. } else {
  19866. $5 = Math_imul($1, $0)|0;
  19867. $6 = (_stbi__mul2sizes_valid($5,$2)|0);
  19868. $7 = ($6|0)==(0);
  19869. if ($7) {
  19870. $12 = 0;
  19871. } else {
  19872. $8 = Math_imul($5, $2)|0;
  19873. $9 = (_stbi__addsizes_valid($8)|0);
  19874. $10 = ($9|0)!=(0);
  19875. $12 = $10;
  19876. }
  19877. }
  19878. $11 = $12&1;
  19879. return ($11|0);
  19880. }
  19881. function _stbi__mul2sizes_valid($0,$1) {
  19882. $0 = $0|0;
  19883. $1 = $1|0;
  19884. var $$0 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, label = 0, sp = 0;
  19885. sp = STACKTOP;
  19886. $2 = $1 | $0;
  19887. $3 = ($2|0)<(0);
  19888. if ($3) {
  19889. $$0 = 0;
  19890. } else {
  19891. $4 = ($1|0)==(0);
  19892. if ($4) {
  19893. $$0 = 1;
  19894. } else {
  19895. $5 = (2147483647 / ($1|0))&-1;
  19896. $6 = ($5|0)>=($0|0);
  19897. $7 = $6&1;
  19898. $$0 = $7;
  19899. }
  19900. }
  19901. return ($$0|0);
  19902. }
  19903. function _stbi__addsizes_valid($0) {
  19904. $0 = $0|0;
  19905. var label = 0, sp = 0;
  19906. sp = STACKTOP;
  19907. return 1;
  19908. }
  19909. function _stbi__check_png_header($0) {
  19910. $0 = $0|0;
  19911. 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;
  19912. sp = STACKTOP;
  19913. $1 = (_stbi__get8($0)|0);
  19914. $2 = ($1<<24>>24)==(-119);
  19915. if ($2) {
  19916. $3 = (_stbi__get8($0)|0);
  19917. $4 = ($3<<24>>24)==(80);
  19918. if ($4) {
  19919. $5 = (_stbi__get8($0)|0);
  19920. $6 = ($5<<24>>24)==(78);
  19921. if ($6) {
  19922. $7 = (_stbi__get8($0)|0);
  19923. $8 = ($7<<24>>24)==(71);
  19924. if ($8) {
  19925. $9 = (_stbi__get8($0)|0);
  19926. $10 = ($9<<24>>24)==(13);
  19927. if ($10) {
  19928. $11 = (_stbi__get8($0)|0);
  19929. $12 = ($11<<24>>24)==(10);
  19930. if ($12) {
  19931. $13 = (_stbi__get8($0)|0);
  19932. $14 = ($13<<24>>24)==(26);
  19933. if ($14) {
  19934. $15 = (_stbi__get8($0)|0);
  19935. $16 = ($15<<24>>24)==(10);
  19936. if ($16) {
  19937. $$05 = 1;
  19938. return ($$05|0);
  19939. }
  19940. }
  19941. }
  19942. }
  19943. }
  19944. }
  19945. }
  19946. }
  19947. _stbi__err(11681);
  19948. $$05 = 0;
  19949. return ($$05|0);
  19950. }
  19951. function _stbi__get_chunk_header($0,$1) {
  19952. $0 = $0|0;
  19953. $1 = $1|0;
  19954. var $$sroa$4$0$$sroa_idx2 = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  19955. sp = STACKTOP;
  19956. $2 = (_stbi__get32be($1)|0);
  19957. $3 = (_stbi__get32be($1)|0);
  19958. HEAP32[$0>>2] = $2;
  19959. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  19960. HEAP32[$$sroa$4$0$$sroa_idx2>>2] = $3;
  19961. return;
  19962. }
  19963. function _stbi__skip($0,$1) {
  19964. $0 = $0|0;
  19965. $1 = $1|0;
  19966. 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;
  19967. var $8 = 0, $9 = 0, label = 0, sp = 0;
  19968. sp = STACKTOP;
  19969. $2 = ($1|0)<(0);
  19970. if ($2) {
  19971. $3 = ((($0)) + 172|0);
  19972. $4 = HEAP32[$3>>2]|0;
  19973. $5 = ((($0)) + 168|0);
  19974. HEAP32[$5>>2] = $4;
  19975. return;
  19976. }
  19977. $6 = ((($0)) + 16|0);
  19978. $7 = HEAP32[$6>>2]|0;
  19979. $8 = ($7|0)==(0|0);
  19980. if (!($8)) {
  19981. $9 = ((($0)) + 172|0);
  19982. $10 = HEAP32[$9>>2]|0;
  19983. $11 = ((($0)) + 168|0);
  19984. $12 = HEAP32[$11>>2]|0;
  19985. $13 = $10;
  19986. $14 = (($13) - ($12))|0;
  19987. $15 = ($14|0)<($1|0);
  19988. if ($15) {
  19989. HEAP32[$11>>2] = $10;
  19990. $16 = ((($0)) + 20|0);
  19991. $17 = HEAP32[$16>>2]|0;
  19992. $18 = ((($0)) + 28|0);
  19993. $19 = HEAP32[$18>>2]|0;
  19994. $20 = (($1) - ($14))|0;
  19995. FUNCTION_TABLE_vii[$17 & 63]($19,$20);
  19996. return;
  19997. }
  19998. }
  19999. $21 = ((($0)) + 168|0);
  20000. $22 = HEAP32[$21>>2]|0;
  20001. $23 = (($22) + ($1)|0);
  20002. HEAP32[$21>>2] = $23;
  20003. return;
  20004. }
  20005. function _stbi__get32be($0) {
  20006. $0 = $0|0;
  20007. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, label = 0, sp = 0;
  20008. sp = STACKTOP;
  20009. $1 = (_stbi__get16be($0)|0);
  20010. $2 = $1 << 16;
  20011. $3 = (_stbi__get16be($0)|0);
  20012. $4 = (($2) + ($3))|0;
  20013. return ($4|0);
  20014. }
  20015. function _stbi__get8($0) {
  20016. $0 = $0|0;
  20017. 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;
  20018. sp = STACKTOP;
  20019. $1 = ((($0)) + 168|0);
  20020. $2 = HEAP32[$1>>2]|0;
  20021. $3 = ((($0)) + 172|0);
  20022. $4 = HEAP32[$3>>2]|0;
  20023. $5 = ($2>>>0)<($4>>>0);
  20024. do {
  20025. if ($5) {
  20026. $$sink6 = $2;
  20027. } else {
  20028. $6 = ((($0)) + 32|0);
  20029. $7 = HEAP32[$6>>2]|0;
  20030. $8 = ($7|0)==(0);
  20031. if ($8) {
  20032. $$0 = 0;
  20033. return ($$0|0);
  20034. } else {
  20035. _stbi__refill_buffer($0);
  20036. $9 = HEAP32[$1>>2]|0;
  20037. $$sink6 = $9;
  20038. break;
  20039. }
  20040. }
  20041. } while(0);
  20042. $10 = ((($$sink6)) + 1|0);
  20043. HEAP32[$1>>2] = $10;
  20044. $11 = HEAP8[$$sink6>>0]|0;
  20045. $$0 = $11;
  20046. return ($$0|0);
  20047. }
  20048. function _stbi__get16be($0) {
  20049. $0 = $0|0;
  20050. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  20051. sp = STACKTOP;
  20052. $1 = (_stbi__get8($0)|0);
  20053. $2 = $1&255;
  20054. $3 = $2 << 8;
  20055. $4 = (_stbi__get8($0)|0);
  20056. $5 = $4&255;
  20057. $6 = $3 | $5;
  20058. return ($6|0);
  20059. }
  20060. function _stbi__getn($0,$1,$2) {
  20061. $0 = $0|0;
  20062. $1 = $1|0;
  20063. $2 = $2|0;
  20064. 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;
  20065. var $29 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  20066. sp = STACKTOP;
  20067. $3 = ((($0)) + 16|0);
  20068. $4 = HEAP32[$3>>2]|0;
  20069. $5 = ($4|0)==(0|0);
  20070. if (!($5)) {
  20071. $6 = ((($0)) + 172|0);
  20072. $7 = HEAP32[$6>>2]|0;
  20073. $8 = ((($0)) + 168|0);
  20074. $9 = HEAP32[$8>>2]|0;
  20075. $10 = $9;
  20076. $11 = (($7) - ($10))|0;
  20077. $12 = ($11|0)<($2|0);
  20078. if ($12) {
  20079. _memcpy(($1|0),($9|0),($11|0))|0;
  20080. $13 = HEAP32[$3>>2]|0;
  20081. $14 = ((($0)) + 28|0);
  20082. $15 = HEAP32[$14>>2]|0;
  20083. $16 = (($1) + ($11)|0);
  20084. $17 = (($2) - ($11))|0;
  20085. $18 = (FUNCTION_TABLE_iiii[$13 & 15]($15,$16,$17)|0);
  20086. $19 = ($18|0)==($17|0);
  20087. $20 = $19&1;
  20088. $21 = HEAP32[$6>>2]|0;
  20089. HEAP32[$8>>2] = $21;
  20090. $$1 = $20;
  20091. return ($$1|0);
  20092. }
  20093. }
  20094. $22 = ((($0)) + 168|0);
  20095. $23 = HEAP32[$22>>2]|0;
  20096. $24 = (($23) + ($2)|0);
  20097. $25 = ((($0)) + 172|0);
  20098. $26 = HEAP32[$25>>2]|0;
  20099. $27 = ($24>>>0)>($26>>>0);
  20100. if ($27) {
  20101. $$1 = 0;
  20102. return ($$1|0);
  20103. }
  20104. _memcpy(($1|0),($23|0),($2|0))|0;
  20105. $28 = HEAP32[$22>>2]|0;
  20106. $29 = (($28) + ($2)|0);
  20107. HEAP32[$22>>2] = $29;
  20108. $$1 = 1;
  20109. return ($$1|0);
  20110. }
  20111. function _stbi_zlib_decode_malloc_guesssize_headerflag($0,$1,$2,$3,$4) {
  20112. $0 = $0|0;
  20113. $1 = $1|0;
  20114. $2 = $2|0;
  20115. $3 = $3|0;
  20116. $4 = $4|0;
  20117. 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;
  20118. sp = STACKTOP;
  20119. STACKTOP = STACKTOP + 4080|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(4080|0);
  20120. $5 = sp;
  20121. $6 = (_stbi__malloc($2)|0);
  20122. $7 = ($6|0)==(0|0);
  20123. do {
  20124. if ($7) {
  20125. $$0 = 0;
  20126. } else {
  20127. HEAP32[$5>>2] = $0;
  20128. $8 = (($0) + ($1)|0);
  20129. $9 = ((($5)) + 4|0);
  20130. HEAP32[$9>>2] = $8;
  20131. $10 = (_stbi__do_zlib($5,$6,$2,1,$4)|0);
  20132. $11 = ($10|0)==(0);
  20133. $12 = ((($5)) + 20|0);
  20134. $13 = HEAP32[$12>>2]|0;
  20135. if ($11) {
  20136. _free($13);
  20137. $$0 = 0;
  20138. break;
  20139. }
  20140. $14 = ($3|0)==(0|0);
  20141. if ($14) {
  20142. $$0 = $13;
  20143. } else {
  20144. $15 = ((($5)) + 16|0);
  20145. $16 = HEAP32[$15>>2]|0;
  20146. $17 = $13;
  20147. $18 = (($16) - ($17))|0;
  20148. HEAP32[$3>>2] = $18;
  20149. $$0 = $13;
  20150. }
  20151. }
  20152. } while(0);
  20153. STACKTOP = sp;return ($$0|0);
  20154. }
  20155. function _stbi__create_png_image($0,$1,$2,$3,$4,$5,$6) {
  20156. $0 = $0|0;
  20157. $1 = $1|0;
  20158. $2 = $2|0;
  20159. $3 = $3|0;
  20160. $4 = $4|0;
  20161. $5 = $5|0;
  20162. $6 = $6|0;
  20163. 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;
  20164. 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;
  20165. 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;
  20166. 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;
  20167. var $80 = 0, $81 = 0, $82 = 0, $9 = 0, $or$cond = 0, label = 0, sp = 0;
  20168. sp = STACKTOP;
  20169. $7 = ($4|0)==(16);
  20170. $8 = $7 ? 2 : 1;
  20171. $9 = Math_imul($8, $3)|0;
  20172. $10 = ($6|0)==(0);
  20173. $11 = HEAP32[$0>>2]|0;
  20174. $12 = HEAP32[$11>>2]|0;
  20175. $13 = ((($11)) + 4|0);
  20176. $14 = HEAP32[$13>>2]|0;
  20177. if ($10) {
  20178. $15 = (_stbi__create_png_image_raw($0,$1,$2,$3,$12,$14,$4,$5)|0);
  20179. $$4 = $15;
  20180. return ($$4|0);
  20181. }
  20182. $16 = (_stbi__malloc_mad3($12,$14,$9)|0);
  20183. $17 = ((($0)) + 12|0);
  20184. $18 = ((($0)) + 12|0);
  20185. $$0103117 = 0;$$095119 = $1;$$099118 = $2;
  20186. while(1) {
  20187. $19 = HEAP32[$0>>2]|0;
  20188. $20 = HEAP32[$19>>2]|0;
  20189. $21 = (3060 + ($$0103117<<2)|0);
  20190. $22 = HEAP32[$21>>2]|0;
  20191. $23 = (3088 + ($$0103117<<2)|0);
  20192. $24 = HEAP32[$23>>2]|0;
  20193. $25 = (($20) + -1)|0;
  20194. $26 = (($25) - ($22))|0;
  20195. $27 = (($26) + ($24))|0;
  20196. $28 = (($27>>>0) / ($24>>>0))&-1;
  20197. $29 = ((($19)) + 4|0);
  20198. $30 = HEAP32[$29>>2]|0;
  20199. $31 = (3116 + ($$0103117<<2)|0);
  20200. $32 = HEAP32[$31>>2]|0;
  20201. $33 = (3144 + ($$0103117<<2)|0);
  20202. $34 = HEAP32[$33>>2]|0;
  20203. $35 = (($30) + -1)|0;
  20204. $36 = (($35) - ($32))|0;
  20205. $37 = (($36) + ($34))|0;
  20206. $38 = (($37>>>0) / ($34>>>0))&-1;
  20207. $39 = ($24>>>0)<=($27>>>0);
  20208. $40 = ($34>>>0)<=($37>>>0);
  20209. $or$cond = $39 & $40;
  20210. if ($or$cond) {
  20211. $41 = ((($19)) + 8|0);
  20212. $42 = HEAP32[$41>>2]|0;
  20213. $43 = Math_imul($28, $4)|0;
  20214. $44 = Math_imul($43, $42)|0;
  20215. $45 = (($44) + 7)|0;
  20216. $46 = $45 >> 3;
  20217. $47 = (($46) + 1)|0;
  20218. $48 = Math_imul($47, $38)|0;
  20219. $49 = (_stbi__create_png_image_raw($0,$$095119,$$099118,$3,$28,$38,$4,$5)|0);
  20220. $50 = ($49|0)==(0);
  20221. if ($50) {
  20222. label = 13;
  20223. break;
  20224. }
  20225. $51 = ($38|0)>(0);
  20226. if ($51) {
  20227. $52 = ($28|0)>(0);
  20228. $$0106116 = 0;
  20229. while(1) {
  20230. if ($52) {
  20231. $53 = HEAP32[$33>>2]|0;
  20232. $54 = Math_imul($53, $$0106116)|0;
  20233. $55 = HEAP32[$31>>2]|0;
  20234. $56 = (($54) + ($55))|0;
  20235. $57 = HEAP32[$23>>2]|0;
  20236. $58 = HEAP32[$21>>2]|0;
  20237. $59 = Math_imul($56, $9)|0;
  20238. $60 = Math_imul($$0106116, $28)|0;
  20239. $$0107115 = 0;
  20240. while(1) {
  20241. $61 = Math_imul($57, $$0107115)|0;
  20242. $62 = (($61) + ($58))|0;
  20243. $63 = HEAP32[$0>>2]|0;
  20244. $64 = HEAP32[$63>>2]|0;
  20245. $65 = Math_imul($59, $64)|0;
  20246. $66 = (($16) + ($65)|0);
  20247. $67 = Math_imul($62, $9)|0;
  20248. $68 = (($66) + ($67)|0);
  20249. $69 = HEAP32[$18>>2]|0;
  20250. $70 = (($$0107115) + ($60))|0;
  20251. $71 = Math_imul($70, $9)|0;
  20252. $72 = (($69) + ($71)|0);
  20253. _memcpy(($68|0),($72|0),($9|0))|0;
  20254. $73 = (($$0107115) + 1)|0;
  20255. $74 = ($73|0)<($28|0);
  20256. if ($74) {
  20257. $$0107115 = $73;
  20258. } else {
  20259. break;
  20260. }
  20261. }
  20262. }
  20263. $75 = (($$0106116) + 1)|0;
  20264. $76 = ($75|0)<($38|0);
  20265. if ($76) {
  20266. $$0106116 = $75;
  20267. } else {
  20268. break;
  20269. }
  20270. }
  20271. }
  20272. $77 = HEAP32[$17>>2]|0;
  20273. _free($77);
  20274. $78 = (($$095119) + ($48)|0);
  20275. $79 = (($$099118) - ($48))|0;
  20276. $$3102$ph = $79;$$398$ph = $78;
  20277. } else {
  20278. $$3102$ph = $$099118;$$398$ph = $$095119;
  20279. }
  20280. $80 = (($$0103117) + 1)|0;
  20281. $81 = ($80|0)<(7);
  20282. if ($81) {
  20283. $$0103117 = $80;$$095119 = $$398$ph;$$099118 = $$3102$ph;
  20284. } else {
  20285. label = 15;
  20286. break;
  20287. }
  20288. }
  20289. if ((label|0) == 13) {
  20290. _free($16);
  20291. $$4 = 0;
  20292. return ($$4|0);
  20293. }
  20294. else if ((label|0) == 15) {
  20295. $82 = ((($0)) + 12|0);
  20296. HEAP32[$82>>2] = $16;
  20297. $$4 = 1;
  20298. return ($$4|0);
  20299. }
  20300. return (0)|0;
  20301. }
  20302. function _stbi__compute_transparency16($0,$1,$2) {
  20303. $0 = $0|0;
  20304. $1 = $1|0;
  20305. $2 = $2|0;
  20306. 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;
  20307. 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;
  20308. sp = STACKTOP;
  20309. $3 = HEAP32[$0>>2]|0;
  20310. $4 = HEAP32[$3>>2]|0;
  20311. $5 = ((($3)) + 4|0);
  20312. $6 = HEAP32[$5>>2]|0;
  20313. $7 = Math_imul($6, $4)|0;
  20314. $8 = ((($0)) + 12|0);
  20315. $9 = HEAP32[$8>>2]|0;
  20316. switch ($2|0) {
  20317. case 2: {
  20318. $13 = ($7|0)==(0);
  20319. if ($13) {
  20320. return;
  20321. } else {
  20322. $$0323 = 0;$$04 = $9;
  20323. }
  20324. while(1) {
  20325. $14 = HEAP16[$$04>>1]|0;
  20326. $15 = HEAP16[$1>>1]|0;
  20327. $not$ = ($14<<16>>16)!=($15<<16>>16);
  20328. $16 = $not$ << 31 >> 31;
  20329. $17 = ((($$04)) + 2|0);
  20330. HEAP16[$17>>1] = $16;
  20331. $18 = ((($$04)) + 4|0);
  20332. $19 = (($$0323) + 1)|0;
  20333. $exitcond = ($19|0)==($7|0);
  20334. if ($exitcond) {
  20335. break;
  20336. } else {
  20337. $$0323 = $19;$$04 = $18;
  20338. }
  20339. }
  20340. return;
  20341. break;
  20342. }
  20343. case 4: {
  20344. $10 = ($7|0)==(0);
  20345. if ($10) {
  20346. return;
  20347. }
  20348. $11 = ((($1)) + 2|0);
  20349. $12 = ((($1)) + 4|0);
  20350. $$1335 = 0;$$16 = $9;
  20351. while(1) {
  20352. $20 = HEAP16[$$16>>1]|0;
  20353. $21 = HEAP16[$1>>1]|0;
  20354. $22 = ($20<<16>>16)==($21<<16>>16);
  20355. if ($22) {
  20356. $23 = ((($$16)) + 2|0);
  20357. $24 = HEAP16[$23>>1]|0;
  20358. $25 = HEAP16[$11>>1]|0;
  20359. $26 = ($24<<16>>16)==($25<<16>>16);
  20360. if ($26) {
  20361. $27 = ((($$16)) + 4|0);
  20362. $28 = HEAP16[$27>>1]|0;
  20363. $29 = HEAP16[$12>>1]|0;
  20364. $30 = ($28<<16>>16)==($29<<16>>16);
  20365. if ($30) {
  20366. $31 = ((($$16)) + 6|0);
  20367. HEAP16[$31>>1] = 0;
  20368. }
  20369. }
  20370. }
  20371. $32 = ((($$16)) + 8|0);
  20372. $33 = (($$1335) + 1)|0;
  20373. $exitcond9 = ($33|0)==($7|0);
  20374. if ($exitcond9) {
  20375. break;
  20376. } else {
  20377. $$1335 = $33;$$16 = $32;
  20378. }
  20379. }
  20380. return;
  20381. break;
  20382. }
  20383. default: {
  20384. ___assert_fail((10763|0),(10270|0),4569,(10815|0));
  20385. // unreachable;
  20386. }
  20387. }
  20388. }
  20389. function _stbi__compute_transparency($0,$1,$2) {
  20390. $0 = $0|0;
  20391. $1 = $1|0;
  20392. $2 = $2|0;
  20393. 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;
  20394. 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;
  20395. sp = STACKTOP;
  20396. $3 = HEAP32[$0>>2]|0;
  20397. $4 = HEAP32[$3>>2]|0;
  20398. $5 = ((($3)) + 4|0);
  20399. $6 = HEAP32[$5>>2]|0;
  20400. $7 = Math_imul($6, $4)|0;
  20401. $8 = ((($0)) + 12|0);
  20402. $9 = HEAP32[$8>>2]|0;
  20403. switch ($2|0) {
  20404. case 2: {
  20405. $13 = ($7|0)==(0);
  20406. if ($13) {
  20407. return;
  20408. } else {
  20409. $$0323 = 0;$$04 = $9;
  20410. }
  20411. while(1) {
  20412. $14 = HEAP8[$$04>>0]|0;
  20413. $15 = HEAP8[$1>>0]|0;
  20414. $not$ = ($14<<24>>24)!=($15<<24>>24);
  20415. $16 = $not$ << 31 >> 31;
  20416. $17 = ((($$04)) + 1|0);
  20417. HEAP8[$17>>0] = $16;
  20418. $18 = ((($$04)) + 2|0);
  20419. $19 = (($$0323) + 1)|0;
  20420. $exitcond = ($19|0)==($7|0);
  20421. if ($exitcond) {
  20422. break;
  20423. } else {
  20424. $$0323 = $19;$$04 = $18;
  20425. }
  20426. }
  20427. return;
  20428. break;
  20429. }
  20430. case 4: {
  20431. $10 = ($7|0)==(0);
  20432. if ($10) {
  20433. return;
  20434. }
  20435. $11 = ((($1)) + 1|0);
  20436. $12 = ((($1)) + 2|0);
  20437. $$1335 = 0;$$16 = $9;
  20438. while(1) {
  20439. $20 = HEAP8[$$16>>0]|0;
  20440. $21 = HEAP8[$1>>0]|0;
  20441. $22 = ($20<<24>>24)==($21<<24>>24);
  20442. if ($22) {
  20443. $23 = ((($$16)) + 1|0);
  20444. $24 = HEAP8[$23>>0]|0;
  20445. $25 = HEAP8[$11>>0]|0;
  20446. $26 = ($24<<24>>24)==($25<<24>>24);
  20447. if ($26) {
  20448. $27 = ((($$16)) + 2|0);
  20449. $28 = HEAP8[$27>>0]|0;
  20450. $29 = HEAP8[$12>>0]|0;
  20451. $30 = ($28<<24>>24)==($29<<24>>24);
  20452. if ($30) {
  20453. $31 = ((($$16)) + 3|0);
  20454. HEAP8[$31>>0] = 0;
  20455. }
  20456. }
  20457. }
  20458. $32 = ((($$16)) + 4|0);
  20459. $33 = (($$1335) + 1)|0;
  20460. $exitcond9 = ($33|0)==($7|0);
  20461. if ($exitcond9) {
  20462. break;
  20463. } else {
  20464. $$1335 = $33;$$16 = $32;
  20465. }
  20466. }
  20467. return;
  20468. break;
  20469. }
  20470. default: {
  20471. ___assert_fail((10763|0),(10270|0),4544,(10788|0));
  20472. // unreachable;
  20473. }
  20474. }
  20475. }
  20476. function _stbi__de_iphone($0) {
  20477. $0 = $0|0;
  20478. 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;
  20479. 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;
  20480. 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;
  20481. sp = STACKTOP;
  20482. $1 = HEAP32[$0>>2]|0;
  20483. $2 = HEAP32[$1>>2]|0;
  20484. $3 = ((($1)) + 4|0);
  20485. $4 = HEAP32[$3>>2]|0;
  20486. $5 = Math_imul($4, $2)|0;
  20487. $6 = ((($0)) + 12|0);
  20488. $7 = HEAP32[$6>>2]|0;
  20489. $8 = ((($1)) + 12|0);
  20490. $9 = HEAP32[$8>>2]|0;
  20491. switch ($9|0) {
  20492. case 3: {
  20493. $10 = ($5|0)==(0);
  20494. if ($10) {
  20495. return;
  20496. } else {
  20497. $$05158 = $7;$$059 = 0;
  20498. }
  20499. while(1) {
  20500. $11 = HEAP8[$$05158>>0]|0;
  20501. $12 = ((($$05158)) + 2|0);
  20502. $13 = HEAP8[$12>>0]|0;
  20503. HEAP8[$$05158>>0] = $13;
  20504. HEAP8[$12>>0] = $11;
  20505. $14 = ((($$05158)) + 3|0);
  20506. $15 = (($$059) + 1)|0;
  20507. $exitcond = ($15|0)==($5|0);
  20508. if ($exitcond) {
  20509. break;
  20510. } else {
  20511. $$05158 = $14;$$059 = $15;
  20512. }
  20513. }
  20514. return;
  20515. break;
  20516. }
  20517. case 4: {
  20518. $16 = HEAP32[5378]|0;
  20519. $17 = ($16|0)==(0);
  20520. $18 = ($5|0)!=(0);
  20521. if ($17) {
  20522. if ($18) {
  20523. $$25360 = $7;$$261 = 0;
  20524. } else {
  20525. return;
  20526. }
  20527. while(1) {
  20528. $42 = HEAP8[$$25360>>0]|0;
  20529. $43 = ((($$25360)) + 2|0);
  20530. $44 = HEAP8[$43>>0]|0;
  20531. HEAP8[$$25360>>0] = $44;
  20532. HEAP8[$43>>0] = $42;
  20533. $45 = ((($$25360)) + 4|0);
  20534. $46 = (($$261) + 1)|0;
  20535. $exitcond68 = ($46|0)==($5|0);
  20536. if ($exitcond68) {
  20537. break;
  20538. } else {
  20539. $$25360 = $45;$$261 = $46;
  20540. }
  20541. }
  20542. return;
  20543. }
  20544. if ($18) {
  20545. $$15263 = $7;$$164 = 0;
  20546. } else {
  20547. return;
  20548. }
  20549. while(1) {
  20550. $19 = ((($$15263)) + 3|0);
  20551. $20 = HEAP8[$19>>0]|0;
  20552. $21 = HEAP8[$$15263>>0]|0;
  20553. $22 = ($20<<24>>24)==(0);
  20554. $23 = ((($$15263)) + 2|0);
  20555. $24 = HEAP8[$23>>0]|0;
  20556. if ($22) {
  20557. HEAP8[$$15263>>0] = $24;
  20558. $$sink = $21;
  20559. } else {
  20560. $25 = $24&255;
  20561. $26 = ($25*255)|0;
  20562. $27 = $20&255;
  20563. $28 = (($26>>>0) / ($27>>>0))&-1;
  20564. $29 = $28&255;
  20565. HEAP8[$$15263>>0] = $29;
  20566. $30 = ((($$15263)) + 1|0);
  20567. $31 = HEAP8[$30>>0]|0;
  20568. $32 = $31&255;
  20569. $33 = ($32*255)|0;
  20570. $34 = (($33>>>0) / ($27>>>0))&-1;
  20571. $35 = $34&255;
  20572. HEAP8[$30>>0] = $35;
  20573. $36 = $21&255;
  20574. $37 = ($36*255)|0;
  20575. $38 = (($37>>>0) / ($27>>>0))&-1;
  20576. $39 = $38&255;
  20577. $$sink = $39;
  20578. }
  20579. HEAP8[$23>>0] = $$sink;
  20580. $40 = ((($$15263)) + 4|0);
  20581. $41 = (($$164) + 1)|0;
  20582. $exitcond69 = ($41|0)==($5|0);
  20583. if ($exitcond69) {
  20584. break;
  20585. } else {
  20586. $$15263 = $40;$$164 = $41;
  20587. }
  20588. }
  20589. return;
  20590. break;
  20591. }
  20592. default: {
  20593. ___assert_fail((10729|0),(10270|0),4650,(10747|0));
  20594. // unreachable;
  20595. }
  20596. }
  20597. }
  20598. function _stbi__expand_png_palette($0,$1,$2) {
  20599. $0 = $0|0;
  20600. $1 = $1|0;
  20601. $2 = $2|0;
  20602. 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;
  20603. 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;
  20604. 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;
  20605. sp = STACKTOP;
  20606. $3 = HEAP32[$0>>2]|0;
  20607. $4 = HEAP32[$3>>2]|0;
  20608. $5 = ((($3)) + 4|0);
  20609. $6 = HEAP32[$5>>2]|0;
  20610. $7 = Math_imul($6, $4)|0;
  20611. $8 = ((($0)) + 12|0);
  20612. $9 = HEAP32[$8>>2]|0;
  20613. $10 = (_stbi__malloc_mad2($7,$2)|0);
  20614. $11 = ($10|0)==(0|0);
  20615. if ($11) {
  20616. _stbi__err(10325);
  20617. $$0 = 0;
  20618. return ($$0|0);
  20619. }
  20620. $12 = ($2|0)==(3);
  20621. $13 = ($7|0)!=(0);
  20622. if ($12) {
  20623. if ($13) {
  20624. $$0574 = 0;$$0583 = $10;
  20625. while(1) {
  20626. $14 = (($9) + ($$0574)|0);
  20627. $15 = HEAP8[$14>>0]|0;
  20628. $16 = $15&255;
  20629. $17 = $16 << 2;
  20630. $18 = (($1) + ($17)|0);
  20631. $19 = HEAP8[$18>>0]|0;
  20632. HEAP8[$$0583>>0] = $19;
  20633. $20 = $17 | 1;
  20634. $21 = (($1) + ($20)|0);
  20635. $22 = HEAP8[$21>>0]|0;
  20636. $23 = ((($$0583)) + 1|0);
  20637. HEAP8[$23>>0] = $22;
  20638. $24 = $17 | 2;
  20639. $25 = (($1) + ($24)|0);
  20640. $26 = HEAP8[$25>>0]|0;
  20641. $27 = ((($$0583)) + 2|0);
  20642. HEAP8[$27>>0] = $26;
  20643. $28 = ((($$0583)) + 3|0);
  20644. $29 = (($$0574) + 1)|0;
  20645. $exitcond = ($29|0)==($7|0);
  20646. if ($exitcond) {
  20647. break;
  20648. } else {
  20649. $$0574 = $29;$$0583 = $28;
  20650. }
  20651. }
  20652. }
  20653. } else {
  20654. if ($13) {
  20655. $$1595 = $10;$$16 = 0;
  20656. while(1) {
  20657. $30 = (($9) + ($$16)|0);
  20658. $31 = HEAP8[$30>>0]|0;
  20659. $32 = $31&255;
  20660. $33 = $32 << 2;
  20661. $34 = (($1) + ($33)|0);
  20662. $35 = HEAP8[$34>>0]|0;
  20663. HEAP8[$$1595>>0] = $35;
  20664. $36 = $33 | 1;
  20665. $37 = (($1) + ($36)|0);
  20666. $38 = HEAP8[$37>>0]|0;
  20667. $39 = ((($$1595)) + 1|0);
  20668. HEAP8[$39>>0] = $38;
  20669. $40 = $33 | 2;
  20670. $41 = (($1) + ($40)|0);
  20671. $42 = HEAP8[$41>>0]|0;
  20672. $43 = ((($$1595)) + 2|0);
  20673. HEAP8[$43>>0] = $42;
  20674. $44 = $33 | 3;
  20675. $45 = (($1) + ($44)|0);
  20676. $46 = HEAP8[$45>>0]|0;
  20677. $47 = ((($$1595)) + 3|0);
  20678. HEAP8[$47>>0] = $46;
  20679. $48 = ((($$1595)) + 4|0);
  20680. $49 = (($$16) + 1)|0;
  20681. $exitcond9 = ($49|0)==($7|0);
  20682. if ($exitcond9) {
  20683. break;
  20684. } else {
  20685. $$1595 = $48;$$16 = $49;
  20686. }
  20687. }
  20688. }
  20689. }
  20690. $50 = HEAP32[$8>>2]|0;
  20691. _free($50);
  20692. HEAP32[$8>>2] = $10;
  20693. $$0 = 1;
  20694. return ($$0|0);
  20695. }
  20696. function _stbi__malloc_mad2($0,$1) {
  20697. $0 = $0|0;
  20698. $1 = $1|0;
  20699. var $$0 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  20700. sp = STACKTOP;
  20701. $2 = (_stbi__mad2sizes_valid($0,$1)|0);
  20702. $3 = ($2|0)==(0);
  20703. if ($3) {
  20704. $$0 = 0;
  20705. return ($$0|0);
  20706. }
  20707. $4 = Math_imul($1, $0)|0;
  20708. $5 = (_stbi__malloc($4)|0);
  20709. $$0 = $5;
  20710. return ($$0|0);
  20711. }
  20712. function _stbi__mad2sizes_valid($0,$1) {
  20713. $0 = $0|0;
  20714. $1 = $1|0;
  20715. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, label = 0, sp = 0;
  20716. sp = STACKTOP;
  20717. $2 = (_stbi__mul2sizes_valid($0,$1)|0);
  20718. $3 = ($2|0)==(0);
  20719. if ($3) {
  20720. $8 = 0;
  20721. $7 = $8&1;
  20722. return ($7|0);
  20723. }
  20724. $4 = Math_imul($1, $0)|0;
  20725. $5 = (_stbi__addsizes_valid($4)|0);
  20726. $6 = ($5|0)!=(0);
  20727. $8 = $6;
  20728. $7 = $8&1;
  20729. return ($7|0);
  20730. }
  20731. function _stbi__create_png_image_raw($0,$1,$2,$3,$4,$5,$6,$7) {
  20732. $0 = $0|0;
  20733. $1 = $1|0;
  20734. $2 = $2|0;
  20735. $3 = $3|0;
  20736. $4 = $4|0;
  20737. $5 = $5|0;
  20738. $6 = $6|0;
  20739. $7 = $7|0;
  20740. 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;
  20741. 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;
  20742. 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;
  20743. 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;
  20744. 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;
  20745. 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;
  20746. 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;
  20747. 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;
  20748. 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;
  20749. 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;
  20750. 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;
  20751. 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;
  20752. 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;
  20753. 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;
  20754. 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;
  20755. 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;
  20756. 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;
  20757. 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;
  20758. 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;
  20759. 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;
  20760. 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;
  20761. 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;
  20762. 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;
  20763. 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;
  20764. 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;
  20765. 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;
  20766. 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;
  20767. 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;
  20768. 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;
  20769. 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;
  20770. 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;
  20771. 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;
  20772. 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;
  20773. 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;
  20774. 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;
  20775. 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;
  20776. 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;
  20777. 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;
  20778. sp = STACKTOP;
  20779. $8 = ($6|0)==(16);
  20780. $9 = $8 ? 2 : 1;
  20781. $10 = HEAP32[$0>>2]|0;
  20782. $11 = Math_imul($4, $3)|0;
  20783. $12 = Math_imul($9, $11)|0;
  20784. $13 = ((($10)) + 8|0);
  20785. $14 = HEAP32[$13>>2]|0;
  20786. $15 = Math_imul($9, $3)|0;
  20787. $16 = Math_imul($14, $9)|0;
  20788. $17 = ($14|0)==($3|0);
  20789. $18 = (($14) + 1)|0;
  20790. $19 = ($18|0)==($3|0);
  20791. $or$cond = $17 | $19;
  20792. if (!($or$cond)) {
  20793. ___assert_fail((10844|0),(10270|0),4294,(10885|0));
  20794. // unreachable;
  20795. }
  20796. $20 = (_stbi__malloc_mad3($4,$5,$15)|0);
  20797. $21 = ((($0)) + 12|0);
  20798. HEAP32[$21>>2] = $20;
  20799. $22 = ($20|0)==(0|0);
  20800. if ($22) {
  20801. _stbi__err(10325);
  20802. $$2 = 0;
  20803. return ($$2|0);
  20804. }
  20805. $23 = Math_imul($14, $4)|0;
  20806. $24 = Math_imul($23, $6)|0;
  20807. $25 = (($24) + 7)|0;
  20808. $26 = $25 >>> 3;
  20809. $27 = (($26) + 1)|0;
  20810. $28 = Math_imul($27, $5)|0;
  20811. $29 = HEAP32[$10>>2]|0;
  20812. $30 = ($29|0)==($4|0);
  20813. if ($30) {
  20814. $31 = ((($10)) + 4|0);
  20815. $32 = HEAP32[$31>>2]|0;
  20816. $33 = ($32|0)==($5|0);
  20817. if ($33) {
  20818. $34 = ($28|0)==($2|0);
  20819. if (!($34)) {
  20820. _stbi__err(10912);
  20821. $$2 = 0;
  20822. return ($$2|0);
  20823. }
  20824. } else {
  20825. label = 9;
  20826. }
  20827. } else {
  20828. label = 9;
  20829. }
  20830. if ((label|0) == 9) {
  20831. $35 = ($28>>>0)>($2>>>0);
  20832. if ($35) {
  20833. _stbi__err(10912);
  20834. $$2 = 0;
  20835. return ($$2|0);
  20836. }
  20837. }
  20838. $36 = ($5|0)==(0);
  20839. L18: do {
  20840. if (!($36)) {
  20841. $37 = ($6|0)<(8);
  20842. $38 = ($26>>>0)>($4>>>0);
  20843. $39 = (($11) - ($26))|0;
  20844. $40 = (0 - ($12))|0;
  20845. $41 = ($6|0)==(8);
  20846. $brmerge = $37 | $17;
  20847. $42 = ($4|0)==(0);
  20848. $$0614793 = (($4) + -1)|0;
  20849. $43 = ($$0614793|0)==(0);
  20850. $$1615785 = (($4) + -1)|0;
  20851. $44 = ($$1615785|0)==(0);
  20852. $$2616776 = (($4) + -1)|0;
  20853. $45 = ($$2616776|0)==(0);
  20854. $$3617767 = (($4) + -1)|0;
  20855. $46 = ($$3617767|0)==(0);
  20856. $$4618758 = (($4) + -1)|0;
  20857. $47 = ($$4618758|0)==(0);
  20858. $$5619750 = (($4) + -1)|0;
  20859. $48 = ($$5619750|0)==(0);
  20860. $$6620742 = (($4) + -1)|0;
  20861. $49 = ($$6620742|0)==(0);
  20862. $$not = $8 ^ 1;
  20863. $brmerge894 = $42 | $$not;
  20864. $$0577817 = $1;$$0608816 = $4;$$0611815 = $16;$$0623814 = 0;
  20865. while(1) {
  20866. $50 = HEAP32[$21>>2]|0;
  20867. $51 = Math_imul($$0623814, $12)|0;
  20868. $52 = (($50) + ($51)|0);
  20869. $53 = ((($$0577817)) + 1|0);
  20870. $54 = HEAP8[$$0577817>>0]|0;
  20871. $55 = $54&255;
  20872. $56 = ($54&255)>(4);
  20873. if ($56) {
  20874. label = 105;
  20875. break;
  20876. }
  20877. if ($37) {
  20878. if ($38) {
  20879. label = 16;
  20880. break;
  20881. }
  20882. $57 = (($52) + ($39)|0);
  20883. $$0597 = $57;$$1609 = $26;$$1612 = 1;
  20884. } else {
  20885. $$0597 = $52;$$1609 = $$0608816;$$1612 = $$0611815;
  20886. }
  20887. $58 = (($$0597) + ($40)|0);
  20888. $59 = ($$0623814|0)==(0);
  20889. if ($59) {
  20890. $60 = (10951 + ($55)|0);
  20891. $61 = HEAP8[$60>>0]|0;
  20892. $62 = $61&255;
  20893. $$0588 = $62;
  20894. } else {
  20895. $$0588 = $55;
  20896. }
  20897. $63 = ($$1612|0)>(0);
  20898. L30: do {
  20899. if ($63) {
  20900. $trunc638 = $$0588&255;
  20901. $$0625734 = 0;
  20902. while(1) {
  20903. switch ($trunc638<<24>>24) {
  20904. case 0: {
  20905. $64 = (($53) + ($$0625734)|0);
  20906. $65 = HEAP8[$64>>0]|0;
  20907. $$sink = $65;
  20908. label = 30;
  20909. break;
  20910. }
  20911. case 1: {
  20912. $66 = (($53) + ($$0625734)|0);
  20913. $67 = HEAP8[$66>>0]|0;
  20914. $$sink = $67;
  20915. label = 30;
  20916. break;
  20917. }
  20918. case 2: {
  20919. $68 = (($53) + ($$0625734)|0);
  20920. $69 = HEAP8[$68>>0]|0;
  20921. $70 = $69&255;
  20922. $71 = (($58) + ($$0625734)|0);
  20923. $72 = HEAP8[$71>>0]|0;
  20924. $73 = $72&255;
  20925. $74 = (($73) + ($70))|0;
  20926. $75 = $74&255;
  20927. $$sink = $75;
  20928. label = 30;
  20929. break;
  20930. }
  20931. case 3: {
  20932. $76 = (($53) + ($$0625734)|0);
  20933. $77 = HEAP8[$76>>0]|0;
  20934. $78 = $77&255;
  20935. $79 = (($58) + ($$0625734)|0);
  20936. $80 = HEAP8[$79>>0]|0;
  20937. $81 = $80&255;
  20938. $82 = $81 >>> 1;
  20939. $83 = (($82) + ($78))|0;
  20940. $84 = $83&255;
  20941. $$sink = $84;
  20942. label = 30;
  20943. break;
  20944. }
  20945. case 4: {
  20946. $85 = (($53) + ($$0625734)|0);
  20947. $86 = HEAP8[$85>>0]|0;
  20948. $87 = $86&255;
  20949. $88 = (($58) + ($$0625734)|0);
  20950. $89 = HEAP8[$88>>0]|0;
  20951. $90 = $89&255;
  20952. $91 = (_stbi__paeth(0,$90,0)|0);
  20953. $92 = (($91) + ($87))|0;
  20954. $93 = $92&255;
  20955. $$sink = $93;
  20956. label = 30;
  20957. break;
  20958. }
  20959. case 5: {
  20960. $94 = (($53) + ($$0625734)|0);
  20961. $95 = HEAP8[$94>>0]|0;
  20962. $$sink = $95;
  20963. label = 30;
  20964. break;
  20965. }
  20966. case 6: {
  20967. $96 = (($53) + ($$0625734)|0);
  20968. $97 = HEAP8[$96>>0]|0;
  20969. $$sink = $97;
  20970. label = 30;
  20971. break;
  20972. }
  20973. default: {
  20974. }
  20975. }
  20976. if ((label|0) == 30) {
  20977. label = 0;
  20978. $$sink1 = (($$0597) + ($$0625734)|0);
  20979. HEAP8[$$sink1>>0] = $$sink;
  20980. }
  20981. $98 = (($$0625734) + 1)|0;
  20982. $exitcond864 = ($98|0)==($$1612|0);
  20983. if ($exitcond864) {
  20984. break L30;
  20985. } else {
  20986. $$0625734 = $98;
  20987. }
  20988. }
  20989. }
  20990. } while(0);
  20991. do {
  20992. if ($41) {
  20993. if (!($17)) {
  20994. $99 = (($$0597) + ($14)|0);
  20995. HEAP8[$99>>0] = -1;
  20996. }
  20997. $100 = (($53) + ($14)|0);
  20998. $$1578 = $100;$$sink641 = $3;
  20999. } else {
  21000. if (!($8)) {
  21001. $105 = ((($$0577817)) + 2|0);
  21002. $$1578 = $105;$$sink641 = 1;
  21003. break;
  21004. }
  21005. if (!($17)) {
  21006. $101 = (($$1612) + 1)|0;
  21007. $102 = (($$0597) + ($101)|0);
  21008. $103 = (($$0597) + ($$1612)|0);
  21009. HEAP8[$103>>0] = -1;
  21010. HEAP8[$102>>0] = -1;
  21011. }
  21012. $104 = (($53) + ($$1612)|0);
  21013. $$1578 = $104;$$sink641 = $15;
  21014. }
  21015. } while(0);
  21016. $106 = (($$0597) + ($$sink641)|0);
  21017. $107 = (($58) + ($$sink641)|0);
  21018. if ($brmerge) {
  21019. $108 = (($$1609) + -1)|0;
  21020. $109 = Math_imul($108, $$1612)|0;
  21021. $trunc637 = $$0588&255;
  21022. switch ($trunc637<<24>>24) {
  21023. case 0: {
  21024. _memcpy(($106|0),($$1578|0),($109|0))|0;
  21025. break;
  21026. }
  21027. case 1: {
  21028. $115 = ($109|0)>(0);
  21029. if ($115) {
  21030. $$1626812 = 0;
  21031. while(1) {
  21032. $116 = (($$1578) + ($$1626812)|0);
  21033. $117 = HEAP8[$116>>0]|0;
  21034. $118 = $117&255;
  21035. $119 = (($$1626812) - ($$1612))|0;
  21036. $120 = (($106) + ($119)|0);
  21037. $121 = HEAP8[$120>>0]|0;
  21038. $122 = $121&255;
  21039. $123 = (($122) + ($118))|0;
  21040. $124 = $123&255;
  21041. $125 = (($106) + ($$1626812)|0);
  21042. HEAP8[$125>>0] = $124;
  21043. $126 = (($$1626812) + 1)|0;
  21044. $exitcond886 = ($126|0)==($109|0);
  21045. if ($exitcond886) {
  21046. break;
  21047. } else {
  21048. $$1626812 = $126;
  21049. }
  21050. }
  21051. }
  21052. break;
  21053. }
  21054. case 2: {
  21055. $114 = ($109|0)>(0);
  21056. if ($114) {
  21057. $$2627810 = 0;
  21058. while(1) {
  21059. $127 = (($$1578) + ($$2627810)|0);
  21060. $128 = HEAP8[$127>>0]|0;
  21061. $129 = $128&255;
  21062. $130 = (($107) + ($$2627810)|0);
  21063. $131 = HEAP8[$130>>0]|0;
  21064. $132 = $131&255;
  21065. $133 = (($132) + ($129))|0;
  21066. $134 = $133&255;
  21067. $135 = (($106) + ($$2627810)|0);
  21068. HEAP8[$135>>0] = $134;
  21069. $136 = (($$2627810) + 1)|0;
  21070. $exitcond885 = ($136|0)==($109|0);
  21071. if ($exitcond885) {
  21072. break;
  21073. } else {
  21074. $$2627810 = $136;
  21075. }
  21076. }
  21077. }
  21078. break;
  21079. }
  21080. case 3: {
  21081. $113 = ($109|0)>(0);
  21082. if ($113) {
  21083. $$3628808 = 0;
  21084. while(1) {
  21085. $137 = (($$1578) + ($$3628808)|0);
  21086. $138 = HEAP8[$137>>0]|0;
  21087. $139 = $138&255;
  21088. $140 = (($107) + ($$3628808)|0);
  21089. $141 = HEAP8[$140>>0]|0;
  21090. $142 = $141&255;
  21091. $143 = (($$3628808) - ($$1612))|0;
  21092. $144 = (($106) + ($143)|0);
  21093. $145 = HEAP8[$144>>0]|0;
  21094. $146 = $145&255;
  21095. $147 = (($146) + ($142))|0;
  21096. $148 = $147 >>> 1;
  21097. $149 = (($148) + ($139))|0;
  21098. $150 = $149&255;
  21099. $151 = (($106) + ($$3628808)|0);
  21100. HEAP8[$151>>0] = $150;
  21101. $152 = (($$3628808) + 1)|0;
  21102. $exitcond884 = ($152|0)==($109|0);
  21103. if ($exitcond884) {
  21104. break;
  21105. } else {
  21106. $$3628808 = $152;
  21107. }
  21108. }
  21109. }
  21110. break;
  21111. }
  21112. case 4: {
  21113. $112 = ($109|0)>(0);
  21114. if ($112) {
  21115. $$4629806 = 0;
  21116. while(1) {
  21117. $153 = (($$1578) + ($$4629806)|0);
  21118. $154 = HEAP8[$153>>0]|0;
  21119. $155 = $154&255;
  21120. $156 = (($$4629806) - ($$1612))|0;
  21121. $157 = (($106) + ($156)|0);
  21122. $158 = HEAP8[$157>>0]|0;
  21123. $159 = $158&255;
  21124. $160 = (($107) + ($$4629806)|0);
  21125. $161 = HEAP8[$160>>0]|0;
  21126. $162 = $161&255;
  21127. $163 = (($107) + ($156)|0);
  21128. $164 = HEAP8[$163>>0]|0;
  21129. $165 = $164&255;
  21130. $166 = (_stbi__paeth($159,$162,$165)|0);
  21131. $167 = (($166) + ($155))|0;
  21132. $168 = $167&255;
  21133. $169 = (($106) + ($$4629806)|0);
  21134. HEAP8[$169>>0] = $168;
  21135. $170 = (($$4629806) + 1)|0;
  21136. $exitcond883 = ($170|0)==($109|0);
  21137. if ($exitcond883) {
  21138. break;
  21139. } else {
  21140. $$4629806 = $170;
  21141. }
  21142. }
  21143. }
  21144. break;
  21145. }
  21146. case 5: {
  21147. $111 = ($109|0)>(0);
  21148. if ($111) {
  21149. $$5630804 = 0;
  21150. while(1) {
  21151. $171 = (($$1578) + ($$5630804)|0);
  21152. $172 = HEAP8[$171>>0]|0;
  21153. $173 = $172&255;
  21154. $174 = (($$5630804) - ($$1612))|0;
  21155. $175 = (($106) + ($174)|0);
  21156. $176 = HEAP8[$175>>0]|0;
  21157. $177 = $176&255;
  21158. $178 = $177 >>> 1;
  21159. $179 = (($178) + ($173))|0;
  21160. $180 = $179&255;
  21161. $181 = (($106) + ($$5630804)|0);
  21162. HEAP8[$181>>0] = $180;
  21163. $182 = (($$5630804) + 1)|0;
  21164. $exitcond882 = ($182|0)==($109|0);
  21165. if ($exitcond882) {
  21166. break;
  21167. } else {
  21168. $$5630804 = $182;
  21169. }
  21170. }
  21171. }
  21172. break;
  21173. }
  21174. case 6: {
  21175. $110 = ($109|0)>(0);
  21176. if ($110) {
  21177. $$6631802 = 0;
  21178. while(1) {
  21179. $183 = (($$1578) + ($$6631802)|0);
  21180. $184 = HEAP8[$183>>0]|0;
  21181. $185 = $184&255;
  21182. $186 = (($$6631802) - ($$1612))|0;
  21183. $187 = (($106) + ($186)|0);
  21184. $188 = HEAP8[$187>>0]|0;
  21185. $189 = $188&255;
  21186. $190 = (_stbi__paeth($189,0,0)|0);
  21187. $191 = (($190) + ($185))|0;
  21188. $192 = $191&255;
  21189. $193 = (($106) + ($$6631802)|0);
  21190. HEAP8[$193>>0] = $192;
  21191. $194 = (($$6631802) + 1)|0;
  21192. $exitcond881 = ($194|0)==($109|0);
  21193. if ($exitcond881) {
  21194. break;
  21195. } else {
  21196. $$6631802 = $194;
  21197. }
  21198. }
  21199. }
  21200. break;
  21201. }
  21202. default: {
  21203. }
  21204. }
  21205. $195 = (($$1578) + ($109)|0);
  21206. $$11$ph = $195;
  21207. } else {
  21208. if (!($19)) {
  21209. label = 58;
  21210. break;
  21211. }
  21212. $trunc = $$0588&255;
  21213. switch ($trunc<<24>>24) {
  21214. case 0: {
  21215. if ($43) {
  21216. $$9586 = $$1578;
  21217. } else {
  21218. $208 = ($$1612|0)>(0);
  21219. $209 = Math_imul($$6620742, $$1612)|0;
  21220. $$0614796 = $$0614793;$$2579795 = $$1578;$$2599794 = $106;
  21221. while(1) {
  21222. if ($208) {
  21223. $$7632790 = 0;
  21224. while(1) {
  21225. $210 = (($$2579795) + ($$7632790)|0);
  21226. $211 = HEAP8[$210>>0]|0;
  21227. $212 = (($$2599794) + ($$7632790)|0);
  21228. HEAP8[$212>>0] = $211;
  21229. $213 = (($$7632790) + 1)|0;
  21230. $exitcond877 = ($213|0)==($$1612|0);
  21231. if ($exitcond877) {
  21232. break;
  21233. } else {
  21234. $$7632790 = $213;
  21235. }
  21236. }
  21237. }
  21238. $214 = (($$2599794) + ($$1612)|0);
  21239. HEAP8[$214>>0] = -1;
  21240. $215 = (($$2579795) + ($$1612)|0);
  21241. $216 = (($$2599794) + ($15)|0);
  21242. $$0614 = (($$0614796) + -1)|0;
  21243. $217 = ($$0614|0)==(0);
  21244. if ($217) {
  21245. break;
  21246. } else {
  21247. $$0614796 = $$0614;$$2579795 = $215;$$2599794 = $216;
  21248. }
  21249. }
  21250. $scevgep879 = (($$1578) + ($209)|0);
  21251. $$9586 = $scevgep879;
  21252. }
  21253. break;
  21254. }
  21255. case 1: {
  21256. if ($44) {
  21257. $$9586 = $$1578;
  21258. } else {
  21259. $206 = ($$1612|0)>(0);
  21260. $207 = Math_imul($$6620742, $$1612)|0;
  21261. $$1615788 = $$1615785;$$3580787 = $$1578;$$3600786 = $106;
  21262. while(1) {
  21263. if ($206) {
  21264. $$8633782 = 0;
  21265. while(1) {
  21266. $218 = (($$3580787) + ($$8633782)|0);
  21267. $219 = HEAP8[$218>>0]|0;
  21268. $220 = $219&255;
  21269. $221 = (($$8633782) - ($15))|0;
  21270. $222 = (($$3600786) + ($221)|0);
  21271. $223 = HEAP8[$222>>0]|0;
  21272. $224 = $223&255;
  21273. $225 = (($224) + ($220))|0;
  21274. $226 = $225&255;
  21275. $227 = (($$3600786) + ($$8633782)|0);
  21276. HEAP8[$227>>0] = $226;
  21277. $228 = (($$8633782) + 1)|0;
  21278. $exitcond875 = ($228|0)==($$1612|0);
  21279. if ($exitcond875) {
  21280. break;
  21281. } else {
  21282. $$8633782 = $228;
  21283. }
  21284. }
  21285. }
  21286. $229 = (($$3600786) + ($$1612)|0);
  21287. HEAP8[$229>>0] = -1;
  21288. $230 = (($$3580787) + ($$1612)|0);
  21289. $231 = (($$3600786) + ($15)|0);
  21290. $$1615 = (($$1615788) + -1)|0;
  21291. $232 = ($$1615|0)==(0);
  21292. if ($232) {
  21293. break;
  21294. } else {
  21295. $$1615788 = $$1615;$$3580787 = $230;$$3600786 = $231;
  21296. }
  21297. }
  21298. $scevgep876 = (($$1578) + ($207)|0);
  21299. $$9586 = $scevgep876;
  21300. }
  21301. break;
  21302. }
  21303. case 2: {
  21304. if ($45) {
  21305. $$9586 = $$1578;
  21306. } else {
  21307. $204 = ($$1612|0)>(0);
  21308. $205 = Math_imul($$6620742, $$1612)|0;
  21309. $$2616780 = $$2616776;$$3592778 = $107;$$4581779 = $$1578;$$4601777 = $106;
  21310. while(1) {
  21311. if ($204) {
  21312. $$9634773 = 0;
  21313. while(1) {
  21314. $233 = (($$4581779) + ($$9634773)|0);
  21315. $234 = HEAP8[$233>>0]|0;
  21316. $235 = $234&255;
  21317. $236 = (($$3592778) + ($$9634773)|0);
  21318. $237 = HEAP8[$236>>0]|0;
  21319. $238 = $237&255;
  21320. $239 = (($238) + ($235))|0;
  21321. $240 = $239&255;
  21322. $241 = (($$4601777) + ($$9634773)|0);
  21323. HEAP8[$241>>0] = $240;
  21324. $242 = (($$9634773) + 1)|0;
  21325. $exitcond873 = ($242|0)==($$1612|0);
  21326. if ($exitcond873) {
  21327. break;
  21328. } else {
  21329. $$9634773 = $242;
  21330. }
  21331. }
  21332. }
  21333. $243 = (($$4601777) + ($$1612)|0);
  21334. HEAP8[$243>>0] = -1;
  21335. $244 = (($$4581779) + ($$1612)|0);
  21336. $245 = (($$4601777) + ($15)|0);
  21337. $246 = (($$3592778) + ($15)|0);
  21338. $$2616 = (($$2616780) + -1)|0;
  21339. $247 = ($$2616|0)==(0);
  21340. if ($247) {
  21341. break;
  21342. } else {
  21343. $$2616780 = $$2616;$$3592778 = $246;$$4581779 = $244;$$4601777 = $245;
  21344. }
  21345. }
  21346. $scevgep874 = (($$1578) + ($205)|0);
  21347. $$9586 = $scevgep874;
  21348. }
  21349. break;
  21350. }
  21351. case 3: {
  21352. if ($46) {
  21353. $$9586 = $$1578;
  21354. } else {
  21355. $202 = ($$1612|0)>(0);
  21356. $203 = Math_imul($$6620742, $$1612)|0;
  21357. $$3617771 = $$3617767;$$4593769 = $107;$$5582770 = $$1578;$$5602768 = $106;
  21358. while(1) {
  21359. if ($202) {
  21360. $$10635764 = 0;
  21361. while(1) {
  21362. $248 = (($$5582770) + ($$10635764)|0);
  21363. $249 = HEAP8[$248>>0]|0;
  21364. $250 = $249&255;
  21365. $251 = (($$4593769) + ($$10635764)|0);
  21366. $252 = HEAP8[$251>>0]|0;
  21367. $253 = $252&255;
  21368. $254 = (($$10635764) - ($15))|0;
  21369. $255 = (($$5602768) + ($254)|0);
  21370. $256 = HEAP8[$255>>0]|0;
  21371. $257 = $256&255;
  21372. $258 = (($257) + ($253))|0;
  21373. $259 = $258 >>> 1;
  21374. $260 = (($259) + ($250))|0;
  21375. $261 = $260&255;
  21376. $262 = (($$5602768) + ($$10635764)|0);
  21377. HEAP8[$262>>0] = $261;
  21378. $263 = (($$10635764) + 1)|0;
  21379. $exitcond871 = ($263|0)==($$1612|0);
  21380. if ($exitcond871) {
  21381. break;
  21382. } else {
  21383. $$10635764 = $263;
  21384. }
  21385. }
  21386. }
  21387. $264 = (($$5602768) + ($$1612)|0);
  21388. HEAP8[$264>>0] = -1;
  21389. $265 = (($$5582770) + ($$1612)|0);
  21390. $266 = (($$5602768) + ($15)|0);
  21391. $267 = (($$4593769) + ($15)|0);
  21392. $$3617 = (($$3617771) + -1)|0;
  21393. $268 = ($$3617|0)==(0);
  21394. if ($268) {
  21395. break;
  21396. } else {
  21397. $$3617771 = $$3617;$$4593769 = $267;$$5582770 = $265;$$5602768 = $266;
  21398. }
  21399. }
  21400. $scevgep872 = (($$1578) + ($203)|0);
  21401. $$9586 = $scevgep872;
  21402. }
  21403. break;
  21404. }
  21405. case 4: {
  21406. if ($47) {
  21407. $$9586 = $$1578;
  21408. } else {
  21409. $200 = ($$1612|0)>(0);
  21410. $201 = Math_imul($$6620742, $$1612)|0;
  21411. $$4618762 = $$4618758;$$5594760 = $107;$$6583761 = $$1578;$$6603759 = $106;
  21412. while(1) {
  21413. if ($200) {
  21414. $$11636755 = 0;
  21415. while(1) {
  21416. $269 = (($$6583761) + ($$11636755)|0);
  21417. $270 = HEAP8[$269>>0]|0;
  21418. $271 = $270&255;
  21419. $272 = (($$11636755) - ($15))|0;
  21420. $273 = (($$6603759) + ($272)|0);
  21421. $274 = HEAP8[$273>>0]|0;
  21422. $275 = $274&255;
  21423. $276 = (($$5594760) + ($$11636755)|0);
  21424. $277 = HEAP8[$276>>0]|0;
  21425. $278 = $277&255;
  21426. $279 = (($$5594760) + ($272)|0);
  21427. $280 = HEAP8[$279>>0]|0;
  21428. $281 = $280&255;
  21429. $282 = (_stbi__paeth($275,$278,$281)|0);
  21430. $283 = (($282) + ($271))|0;
  21431. $284 = $283&255;
  21432. $285 = (($$6603759) + ($$11636755)|0);
  21433. HEAP8[$285>>0] = $284;
  21434. $286 = (($$11636755) + 1)|0;
  21435. $exitcond869 = ($286|0)==($$1612|0);
  21436. if ($exitcond869) {
  21437. break;
  21438. } else {
  21439. $$11636755 = $286;
  21440. }
  21441. }
  21442. }
  21443. $287 = (($$6603759) + ($$1612)|0);
  21444. HEAP8[$287>>0] = -1;
  21445. $288 = (($$6583761) + ($$1612)|0);
  21446. $289 = (($$6603759) + ($15)|0);
  21447. $290 = (($$5594760) + ($15)|0);
  21448. $$4618 = (($$4618762) + -1)|0;
  21449. $291 = ($$4618|0)==(0);
  21450. if ($291) {
  21451. break;
  21452. } else {
  21453. $$4618762 = $$4618;$$5594760 = $290;$$6583761 = $288;$$6603759 = $289;
  21454. }
  21455. }
  21456. $scevgep870 = (($$1578) + ($201)|0);
  21457. $$9586 = $scevgep870;
  21458. }
  21459. break;
  21460. }
  21461. case 5: {
  21462. if ($48) {
  21463. $$9586 = $$1578;
  21464. } else {
  21465. $198 = ($$1612|0)>(0);
  21466. $199 = Math_imul($$6620742, $$1612)|0;
  21467. $$5619753 = $$5619750;$$7584752 = $$1578;$$7604751 = $106;
  21468. while(1) {
  21469. if ($198) {
  21470. $$12747 = 0;
  21471. while(1) {
  21472. $292 = (($$7584752) + ($$12747)|0);
  21473. $293 = HEAP8[$292>>0]|0;
  21474. $294 = $293&255;
  21475. $295 = (($$12747) - ($15))|0;
  21476. $296 = (($$7604751) + ($295)|0);
  21477. $297 = HEAP8[$296>>0]|0;
  21478. $298 = $297&255;
  21479. $299 = $298 >>> 1;
  21480. $300 = (($299) + ($294))|0;
  21481. $301 = $300&255;
  21482. $302 = (($$7604751) + ($$12747)|0);
  21483. HEAP8[$302>>0] = $301;
  21484. $303 = (($$12747) + 1)|0;
  21485. $exitcond867 = ($303|0)==($$1612|0);
  21486. if ($exitcond867) {
  21487. break;
  21488. } else {
  21489. $$12747 = $303;
  21490. }
  21491. }
  21492. }
  21493. $304 = (($$7604751) + ($$1612)|0);
  21494. HEAP8[$304>>0] = -1;
  21495. $305 = (($$7584752) + ($$1612)|0);
  21496. $306 = (($$7604751) + ($15)|0);
  21497. $$5619 = (($$5619753) + -1)|0;
  21498. $307 = ($$5619|0)==(0);
  21499. if ($307) {
  21500. break;
  21501. } else {
  21502. $$5619753 = $$5619;$$7584752 = $305;$$7604751 = $306;
  21503. }
  21504. }
  21505. $scevgep868 = (($$1578) + ($199)|0);
  21506. $$9586 = $scevgep868;
  21507. }
  21508. break;
  21509. }
  21510. case 6: {
  21511. if ($49) {
  21512. $$9586 = $$1578;
  21513. } else {
  21514. $196 = ($$1612|0)>(0);
  21515. $197 = Math_imul($$6620742, $$1612)|0;
  21516. $$6620745 = $$6620742;$$8585744 = $$1578;$$8605743 = $106;
  21517. while(1) {
  21518. if ($196) {
  21519. $$13739 = 0;
  21520. while(1) {
  21521. $308 = (($$8585744) + ($$13739)|0);
  21522. $309 = HEAP8[$308>>0]|0;
  21523. $310 = $309&255;
  21524. $311 = (($$13739) - ($15))|0;
  21525. $312 = (($$8605743) + ($311)|0);
  21526. $313 = HEAP8[$312>>0]|0;
  21527. $314 = $313&255;
  21528. $315 = (_stbi__paeth($314,0,0)|0);
  21529. $316 = (($315) + ($310))|0;
  21530. $317 = $316&255;
  21531. $318 = (($$8605743) + ($$13739)|0);
  21532. HEAP8[$318>>0] = $317;
  21533. $319 = (($$13739) + 1)|0;
  21534. $exitcond865 = ($319|0)==($$1612|0);
  21535. if ($exitcond865) {
  21536. break;
  21537. } else {
  21538. $$13739 = $319;
  21539. }
  21540. }
  21541. }
  21542. $320 = (($$8605743) + ($$1612)|0);
  21543. HEAP8[$320>>0] = -1;
  21544. $321 = (($$8585744) + ($$1612)|0);
  21545. $322 = (($$8605743) + ($15)|0);
  21546. $$6620 = (($$6620745) + -1)|0;
  21547. $323 = ($$6620|0)==(0);
  21548. if ($323) {
  21549. break;
  21550. } else {
  21551. $$6620745 = $$6620;$$8585744 = $321;$$8605743 = $322;
  21552. }
  21553. }
  21554. $scevgep866 = (($$1578) + ($197)|0);
  21555. $$9586 = $scevgep866;
  21556. }
  21557. break;
  21558. }
  21559. default: {
  21560. $$9586 = $$1578;
  21561. }
  21562. }
  21563. if ($brmerge894) {
  21564. $$11$ph = $$9586;
  21565. } else {
  21566. $324 = HEAP32[$21>>2]|0;
  21567. $325 = (($324) + ($51)|0);
  21568. $326 = (($$1612) + 1)|0;
  21569. $$7621798 = 0;$$9606799 = $325;
  21570. while(1) {
  21571. $327 = (($$9606799) + ($326)|0);
  21572. HEAP8[$327>>0] = -1;
  21573. $328 = (($$7621798) + 1)|0;
  21574. $329 = (($$9606799) + ($15)|0);
  21575. $exitcond880 = ($328|0)==($4|0);
  21576. if ($exitcond880) {
  21577. $$11$ph = $$9586;
  21578. break;
  21579. } else {
  21580. $$7621798 = $328;$$9606799 = $329;
  21581. }
  21582. }
  21583. }
  21584. }
  21585. $330 = (($$0623814) + 1)|0;
  21586. $331 = ($330>>>0)<($5>>>0);
  21587. if ($331) {
  21588. $$0577817 = $$11$ph;$$0608816 = $$1609;$$0611815 = $$1612;$$0623814 = $330;
  21589. } else {
  21590. break L18;
  21591. }
  21592. }
  21593. if ((label|0) == 16) {
  21594. ___assert_fail((10930|0),(10270|0),4315,(10885|0));
  21595. // unreachable;
  21596. }
  21597. else if ((label|0) == 58) {
  21598. ___assert_fail((10956|0),(10270|0),4377,(10885|0));
  21599. // unreachable;
  21600. }
  21601. else if ((label|0) == 105) {
  21602. _stbi__err(10973);
  21603. $$2 = 0;
  21604. return ($$2|0);
  21605. }
  21606. }
  21607. } while(0);
  21608. $332 = ($6|0)<(8);
  21609. if (!($332)) {
  21610. if (!($8)) {
  21611. $$2 = 1;
  21612. return ($$2|0);
  21613. }
  21614. $601 = Math_imul($4, $3)|0;
  21615. $602 = Math_imul($601, $5)|0;
  21616. $603 = ($602|0)==(0);
  21617. if ($603) {
  21618. $$2 = 1;
  21619. return ($$2|0);
  21620. }
  21621. $604 = HEAP32[$21>>2]|0;
  21622. $$0731 = $604;$$8622729 = 0;
  21623. while(1) {
  21624. $605 = HEAP8[$$0731>>0]|0;
  21625. $606 = $605&255;
  21626. $607 = $606 << 8;
  21627. $608 = ((($$0731)) + 1|0);
  21628. $609 = HEAP8[$608>>0]|0;
  21629. $610 = $609&255;
  21630. $611 = $607 | $610;
  21631. $612 = $611&65535;
  21632. HEAP16[$$0731>>1] = $612;
  21633. $613 = (($$8622729) + 1)|0;
  21634. $614 = ((($$0731)) + 2|0);
  21635. $exitcond = ($613|0)==($602|0);
  21636. if ($exitcond) {
  21637. $$2 = 1;
  21638. break;
  21639. } else {
  21640. $$0731 = $614;$$8622729 = $613;
  21641. }
  21642. }
  21643. return ($$2|0);
  21644. }
  21645. $333 = ($5|0)==(0);
  21646. if ($333) {
  21647. $$2 = 1;
  21648. return ($$2|0);
  21649. }
  21650. $334 = (0 - ($26))|0;
  21651. $335 = ($7|0)==(0);
  21652. $336 = (10669 + ($6)|0);
  21653. $$0568724 = (($4) + -1)|0;
  21654. $337 = ($$0568724|0)>(-1);
  21655. $$1721 = (($4) + -1)|0;
  21656. $338 = ($$1721|0)>(-1);
  21657. $339 = ($23|0)>(1);
  21658. $340 = ($23|0)>(3);
  21659. $341 = ($23|0)>(7);
  21660. $342 = (($23) + -8)|0;
  21661. $343 = $342 >>> 3;
  21662. $344 = $343 << 3;
  21663. $345 = (($344) + 8)|0;
  21664. $346 = (($342) - ($344))|0;
  21665. $347 = (($343) + ($11))|0;
  21666. $348 = (($347) + 1)|0;
  21667. $349 = (($348) - ($26))|0;
  21668. $350 = (($23) + -4)|0;
  21669. $351 = $350 >>> 2;
  21670. $352 = $351 << 2;
  21671. $353 = (($352) + 4)|0;
  21672. $354 = (($350) - ($352))|0;
  21673. $355 = (($351) + ($11))|0;
  21674. $356 = (($355) + 1)|0;
  21675. $357 = (($356) - ($26))|0;
  21676. $358 = (($23) + -2)|0;
  21677. $359 = $358 >>> 1;
  21678. $360 = $359 << 1;
  21679. $361 = (($360) + 2)|0;
  21680. $362 = (($358) - ($360))|0;
  21681. $363 = (($359) + ($11))|0;
  21682. $364 = (($363) + 1)|0;
  21683. $365 = (($364) - ($26))|0;
  21684. $$1624727 = 0;$indvars$iv = $345;$indvars$iv848 = $349;$indvars$iv851 = $353;$indvars$iv854 = $357;$indvars$iv857 = $361;$indvars$iv860 = $365;
  21685. L174: while(1) {
  21686. $366 = HEAP32[$21>>2]|0;
  21687. $367 = Math_imul($$1624727, $12)|0;
  21688. $368 = (($366) + ($367)|0);
  21689. $369 = (($368) + ($11)|0);
  21690. $370 = (($369) + ($334)|0);
  21691. if ($335) {
  21692. $371 = HEAP8[$336>>0]|0;
  21693. $372 = $371&255;
  21694. $377 = $372;
  21695. } else {
  21696. $377 = 1;
  21697. }
  21698. switch ($6|0) {
  21699. case 4: {
  21700. if ($339) {
  21701. $scevgep859 = (($366) + ($indvars$iv857)|0);
  21702. $$0571715 = $370;$$0574714 = $368;$$14713 = $23;
  21703. while(1) {
  21704. $373 = HEAP8[$$0571715>>0]|0;
  21705. $374 = $373&255;
  21706. $375 = $374 >>> 4;
  21707. $376 = Math_imul($375, $377)|0;
  21708. $378 = $376&255;
  21709. $379 = ((($$0574714)) + 1|0);
  21710. HEAP8[$$0574714>>0] = $378;
  21711. $380 = HEAP8[$$0571715>>0]|0;
  21712. $381 = $380 & 15;
  21713. $382 = $381&255;
  21714. $383 = Math_imul($382, $377)|0;
  21715. $384 = $383&255;
  21716. $385 = ((($$0574714)) + 2|0);
  21717. HEAP8[$379>>0] = $384;
  21718. $386 = (($$14713) + -2)|0;
  21719. $387 = ((($$0571715)) + 1|0);
  21720. $388 = ($386|0)>(1);
  21721. if ($388) {
  21722. $$0571715 = $387;$$0574714 = $385;$$14713 = $386;
  21723. } else {
  21724. break;
  21725. }
  21726. }
  21727. $scevgep862 = (($366) + ($indvars$iv860)|0);
  21728. $$0571$lcssa = $scevgep862;$$0574$lcssa = $scevgep859;$$14$lcssa = $362;
  21729. } else {
  21730. $$0571$lcssa = $370;$$0574$lcssa = $368;$$14$lcssa = $23;
  21731. }
  21732. $389 = ($$14$lcssa|0)==(1);
  21733. if ($389) {
  21734. $390 = HEAP8[$$0571$lcssa>>0]|0;
  21735. $391 = $390&255;
  21736. $392 = $391 >>> 4;
  21737. $393 = Math_imul($392, $377)|0;
  21738. $394 = $393&255;
  21739. HEAP8[$$0574$lcssa>>0] = $394;
  21740. }
  21741. break;
  21742. }
  21743. case 2: {
  21744. if ($340) {
  21745. $scevgep853 = (($366) + ($indvars$iv851)|0);
  21746. $$15705 = $23;$$1572707 = $370;$$1575706 = $368;
  21747. while(1) {
  21748. $395 = HEAP8[$$1572707>>0]|0;
  21749. $396 = $395&255;
  21750. $397 = $396 >>> 6;
  21751. $398 = Math_imul($397, $377)|0;
  21752. $399 = $398&255;
  21753. $400 = ((($$1575706)) + 1|0);
  21754. HEAP8[$$1575706>>0] = $399;
  21755. $401 = HEAP8[$$1572707>>0]|0;
  21756. $402 = $401&255;
  21757. $403 = $402 >>> 4;
  21758. $404 = $403 & 3;
  21759. $405 = Math_imul($404, $377)|0;
  21760. $406 = $405&255;
  21761. $407 = ((($$1575706)) + 2|0);
  21762. HEAP8[$400>>0] = $406;
  21763. $408 = HEAP8[$$1572707>>0]|0;
  21764. $409 = $408&255;
  21765. $410 = $409 >>> 2;
  21766. $411 = $410 & 3;
  21767. $412 = Math_imul($411, $377)|0;
  21768. $413 = $412&255;
  21769. $414 = ((($$1575706)) + 3|0);
  21770. HEAP8[$407>>0] = $413;
  21771. $415 = HEAP8[$$1572707>>0]|0;
  21772. $416 = $415 & 3;
  21773. $417 = $416&255;
  21774. $418 = Math_imul($417, $377)|0;
  21775. $419 = $418&255;
  21776. $420 = ((($$1575706)) + 4|0);
  21777. HEAP8[$414>>0] = $419;
  21778. $421 = (($$15705) + -4)|0;
  21779. $422 = ((($$1572707)) + 1|0);
  21780. $423 = ($421|0)>(3);
  21781. if ($423) {
  21782. $$15705 = $421;$$1572707 = $422;$$1575706 = $420;
  21783. } else {
  21784. break;
  21785. }
  21786. }
  21787. $scevgep856 = (($366) + ($indvars$iv854)|0);
  21788. $$15$lcssa = $354;$$1572$lcssa = $scevgep856;$$1575$lcssa = $scevgep853;
  21789. } else {
  21790. $$15$lcssa = $23;$$1572$lcssa = $370;$$1575$lcssa = $368;
  21791. }
  21792. $424 = ($$15$lcssa|0)>(0);
  21793. if ($424) {
  21794. $425 = HEAP8[$$1572$lcssa>>0]|0;
  21795. $426 = $425&255;
  21796. $427 = $426 >>> 6;
  21797. $428 = Math_imul($427, $377)|0;
  21798. $429 = $428&255;
  21799. HEAP8[$$1575$lcssa>>0] = $429;
  21800. $430 = ($$15$lcssa|0)==(1);
  21801. if (!($430)) {
  21802. $431 = ((($$1575$lcssa)) + 1|0);
  21803. $432 = HEAP8[$$1572$lcssa>>0]|0;
  21804. $433 = $432&255;
  21805. $434 = $433 >>> 4;
  21806. $435 = $434 & 3;
  21807. $436 = Math_imul($435, $377)|0;
  21808. $437 = $436&255;
  21809. HEAP8[$431>>0] = $437;
  21810. $438 = ($$15$lcssa|0)>(2);
  21811. if ($438) {
  21812. $439 = ((($$1575$lcssa)) + 2|0);
  21813. $440 = HEAP8[$$1572$lcssa>>0]|0;
  21814. $441 = $440&255;
  21815. $442 = $441 >>> 2;
  21816. $443 = $442 & 3;
  21817. $444 = Math_imul($443, $377)|0;
  21818. $445 = $444&255;
  21819. HEAP8[$439>>0] = $445;
  21820. }
  21821. }
  21822. }
  21823. break;
  21824. }
  21825. case 1: {
  21826. if ($341) {
  21827. $scevgep = (($366) + ($indvars$iv)|0);
  21828. $$16700 = $23;$$2573702 = $370;$$4701 = $368;
  21829. while(1) {
  21830. $446 = HEAP8[$$2573702>>0]|0;
  21831. $447 = $446&255;
  21832. $448 = $447 >>> 7;
  21833. $449 = (0 - ($448))|0;
  21834. $450 = $377 & $449;
  21835. $451 = $450&255;
  21836. $452 = ((($$4701)) + 1|0);
  21837. HEAP8[$$4701>>0] = $451;
  21838. $453 = HEAP8[$$2573702>>0]|0;
  21839. $454 = $453&255;
  21840. $455 = $454 >>> 6;
  21841. $456 = $455 & 1;
  21842. $457 = (0 - ($456))|0;
  21843. $458 = $377 & $457;
  21844. $459 = $458&255;
  21845. $460 = ((($$4701)) + 2|0);
  21846. HEAP8[$452>>0] = $459;
  21847. $461 = HEAP8[$$2573702>>0]|0;
  21848. $462 = $461&255;
  21849. $463 = $462 >>> 5;
  21850. $464 = $463 & 1;
  21851. $465 = (0 - ($464))|0;
  21852. $466 = $377 & $465;
  21853. $467 = $466&255;
  21854. $468 = ((($$4701)) + 3|0);
  21855. HEAP8[$460>>0] = $467;
  21856. $469 = HEAP8[$$2573702>>0]|0;
  21857. $470 = $469&255;
  21858. $471 = $470 >>> 4;
  21859. $472 = $471 & 1;
  21860. $473 = (0 - ($472))|0;
  21861. $474 = $377 & $473;
  21862. $475 = $474&255;
  21863. $476 = ((($$4701)) + 4|0);
  21864. HEAP8[$468>>0] = $475;
  21865. $477 = HEAP8[$$2573702>>0]|0;
  21866. $478 = $477&255;
  21867. $479 = $478 >>> 3;
  21868. $480 = $479 & 1;
  21869. $481 = (0 - ($480))|0;
  21870. $482 = $377 & $481;
  21871. $483 = $482&255;
  21872. $484 = ((($$4701)) + 5|0);
  21873. HEAP8[$476>>0] = $483;
  21874. $485 = HEAP8[$$2573702>>0]|0;
  21875. $486 = $485&255;
  21876. $487 = $486 >>> 2;
  21877. $488 = $487 & 1;
  21878. $489 = (0 - ($488))|0;
  21879. $490 = $377 & $489;
  21880. $491 = $490&255;
  21881. $492 = ((($$4701)) + 6|0);
  21882. HEAP8[$484>>0] = $491;
  21883. $493 = HEAP8[$$2573702>>0]|0;
  21884. $494 = $493&255;
  21885. $495 = $494 >>> 1;
  21886. $496 = $495 & 1;
  21887. $497 = (0 - ($496))|0;
  21888. $498 = $377 & $497;
  21889. $499 = $498&255;
  21890. $500 = ((($$4701)) + 7|0);
  21891. HEAP8[$492>>0] = $499;
  21892. $501 = HEAP8[$$2573702>>0]|0;
  21893. $502 = $501 & 1;
  21894. $503 = $502&255;
  21895. $504 = (0 - ($503))|0;
  21896. $505 = $377 & $504;
  21897. $506 = $505&255;
  21898. $507 = ((($$4701)) + 8|0);
  21899. HEAP8[$500>>0] = $506;
  21900. $508 = (($$16700) + -8)|0;
  21901. $509 = ((($$2573702)) + 1|0);
  21902. $510 = ($508|0)>(7);
  21903. if ($510) {
  21904. $$16700 = $508;$$2573702 = $509;$$4701 = $507;
  21905. } else {
  21906. break;
  21907. }
  21908. }
  21909. $scevgep850 = (($366) + ($indvars$iv848)|0);
  21910. $$16$lcssa = $346;$$2573$lcssa = $scevgep850;$$4$lcssa = $scevgep;
  21911. } else {
  21912. $$16$lcssa = $23;$$2573$lcssa = $370;$$4$lcssa = $368;
  21913. }
  21914. $511 = ($$16$lcssa|0)>(0);
  21915. if ($511) {
  21916. $512 = HEAP8[$$2573$lcssa>>0]|0;
  21917. $513 = $512&255;
  21918. $514 = $513 >>> 7;
  21919. $515 = (0 - ($514))|0;
  21920. $516 = $377 & $515;
  21921. $517 = $516&255;
  21922. HEAP8[$$4$lcssa>>0] = $517;
  21923. $518 = ($$16$lcssa|0)==(1);
  21924. if (!($518)) {
  21925. $519 = ((($$4$lcssa)) + 1|0);
  21926. $520 = HEAP8[$$2573$lcssa>>0]|0;
  21927. $521 = $520&255;
  21928. $522 = $521 >>> 6;
  21929. $523 = $522 & 1;
  21930. $524 = (0 - ($523))|0;
  21931. $525 = $377 & $524;
  21932. $526 = $525&255;
  21933. HEAP8[$519>>0] = $526;
  21934. $527 = ($$16$lcssa|0)>(2);
  21935. if ($527) {
  21936. $528 = ((($$4$lcssa)) + 2|0);
  21937. $529 = HEAP8[$$2573$lcssa>>0]|0;
  21938. $530 = $529&255;
  21939. $531 = $530 >>> 5;
  21940. $532 = $531 & 1;
  21941. $533 = (0 - ($532))|0;
  21942. $534 = $377 & $533;
  21943. $535 = $534&255;
  21944. HEAP8[$528>>0] = $535;
  21945. $536 = ($$16$lcssa|0)==(3);
  21946. if (!($536)) {
  21947. $537 = ((($$4$lcssa)) + 3|0);
  21948. $538 = HEAP8[$$2573$lcssa>>0]|0;
  21949. $539 = $538&255;
  21950. $540 = $539 >>> 4;
  21951. $541 = $540 & 1;
  21952. $542 = (0 - ($541))|0;
  21953. $543 = $377 & $542;
  21954. $544 = $543&255;
  21955. HEAP8[$537>>0] = $544;
  21956. $545 = ($$16$lcssa|0)>(4);
  21957. if ($545) {
  21958. $546 = ((($$4$lcssa)) + 4|0);
  21959. $547 = HEAP8[$$2573$lcssa>>0]|0;
  21960. $548 = $547&255;
  21961. $549 = $548 >>> 3;
  21962. $550 = $549 & 1;
  21963. $551 = (0 - ($550))|0;
  21964. $552 = $377 & $551;
  21965. $553 = $552&255;
  21966. HEAP8[$546>>0] = $553;
  21967. $554 = ($$16$lcssa|0)==(5);
  21968. if (!($554)) {
  21969. $555 = ((($$4$lcssa)) + 5|0);
  21970. $556 = HEAP8[$$2573$lcssa>>0]|0;
  21971. $557 = $556&255;
  21972. $558 = $557 >>> 2;
  21973. $559 = $558 & 1;
  21974. $560 = (0 - ($559))|0;
  21975. $561 = $377 & $560;
  21976. $562 = $561&255;
  21977. HEAP8[$555>>0] = $562;
  21978. $563 = ($$16$lcssa|0)>(6);
  21979. if ($563) {
  21980. $564 = ((($$4$lcssa)) + 6|0);
  21981. $565 = HEAP8[$$2573$lcssa>>0]|0;
  21982. $566 = $565&255;
  21983. $567 = $566 >>> 1;
  21984. $568 = $567 & 1;
  21985. $569 = (0 - ($568))|0;
  21986. $570 = $377 & $569;
  21987. $571 = $570&255;
  21988. HEAP8[$564>>0] = $571;
  21989. }
  21990. }
  21991. }
  21992. }
  21993. }
  21994. }
  21995. }
  21996. break;
  21997. }
  21998. default: {
  21999. }
  22000. }
  22001. L213: do {
  22002. if (!($17)) {
  22003. $572 = HEAP32[$21>>2]|0;
  22004. $573 = (($572) + ($367)|0);
  22005. switch ($14|0) {
  22006. case 1: {
  22007. if ($337) {
  22008. $$0568725 = $$0568724;
  22009. } else {
  22010. break L213;
  22011. }
  22012. while(1) {
  22013. $574 = $$0568725 << 1;
  22014. $575 = $574 | 1;
  22015. $576 = (($573) + ($575)|0);
  22016. HEAP8[$576>>0] = -1;
  22017. $577 = (($573) + ($$0568725)|0);
  22018. $578 = HEAP8[$577>>0]|0;
  22019. $579 = (($573) + ($574)|0);
  22020. HEAP8[$579>>0] = $578;
  22021. $$0568 = (($$0568725) + -1)|0;
  22022. $580 = ($$0568|0)>(-1);
  22023. if ($580) {
  22024. $$0568725 = $$0568;
  22025. } else {
  22026. break;
  22027. }
  22028. }
  22029. break;
  22030. }
  22031. case 3: {
  22032. if ($338) {
  22033. $$1722 = $$1721;
  22034. } else {
  22035. break L213;
  22036. }
  22037. while(1) {
  22038. $581 = $$1722 << 2;
  22039. $582 = $581 | 3;
  22040. $583 = (($573) + ($582)|0);
  22041. HEAP8[$583>>0] = -1;
  22042. $584 = ($$1722*3)|0;
  22043. $585 = (($584) + 2)|0;
  22044. $586 = (($573) + ($585)|0);
  22045. $587 = HEAP8[$586>>0]|0;
  22046. $588 = $581 | 2;
  22047. $589 = (($573) + ($588)|0);
  22048. HEAP8[$589>>0] = $587;
  22049. $590 = (($584) + 1)|0;
  22050. $591 = (($573) + ($590)|0);
  22051. $592 = HEAP8[$591>>0]|0;
  22052. $593 = $581 | 1;
  22053. $594 = (($573) + ($593)|0);
  22054. HEAP8[$594>>0] = $592;
  22055. $595 = (($573) + ($584)|0);
  22056. $596 = HEAP8[$595>>0]|0;
  22057. $597 = (($573) + ($581)|0);
  22058. HEAP8[$597>>0] = $596;
  22059. $$1 = (($$1722) + -1)|0;
  22060. $598 = ($$1|0)>(-1);
  22061. if ($598) {
  22062. $$1722 = $$1;
  22063. } else {
  22064. break;
  22065. }
  22066. }
  22067. break;
  22068. }
  22069. default: {
  22070. label = 144;
  22071. break L174;
  22072. }
  22073. }
  22074. }
  22075. } while(0);
  22076. $599 = (($$1624727) + 1)|0;
  22077. $600 = ($599>>>0)<($5>>>0);
  22078. $indvars$iv$next = (($indvars$iv) + ($12))|0;
  22079. $indvars$iv$next849 = (($indvars$iv848) + ($12))|0;
  22080. $indvars$iv$next852 = (($indvars$iv851) + ($12))|0;
  22081. $indvars$iv$next855 = (($indvars$iv854) + ($12))|0;
  22082. $indvars$iv$next858 = (($indvars$iv857) + ($12))|0;
  22083. $indvars$iv$next861 = (($indvars$iv860) + ($12))|0;
  22084. if ($600) {
  22085. $$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;
  22086. } else {
  22087. $$2 = 1;
  22088. label = 151;
  22089. break;
  22090. }
  22091. }
  22092. if ((label|0) == 144) {
  22093. ___assert_fail((10988|0),(10270|0),4466,(10885|0));
  22094. // unreachable;
  22095. }
  22096. else if ((label|0) == 151) {
  22097. return ($$2|0);
  22098. }
  22099. return (0)|0;
  22100. }
  22101. function _stbi__paeth($0,$1,$2) {
  22102. $0 = $0|0;
  22103. $1 = $1|0;
  22104. $2 = $2|0;
  22105. 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;
  22106. var label = 0, sp = 0;
  22107. sp = STACKTOP;
  22108. $3 = (($1) + ($0))|0;
  22109. $4 = (($3) - ($2))|0;
  22110. $5 = (($4) - ($0))|0;
  22111. $ispos = ($5|0)>(-1);
  22112. $neg = (0 - ($5))|0;
  22113. $6 = $ispos ? $5 : $neg;
  22114. $7 = (($4) - ($1))|0;
  22115. $ispos26 = ($7|0)>(-1);
  22116. $neg27 = (0 - ($7))|0;
  22117. $8 = $ispos26 ? $7 : $neg27;
  22118. $9 = (($4) - ($2))|0;
  22119. $ispos28 = ($9|0)>(-1);
  22120. $neg29 = (0 - ($9))|0;
  22121. $10 = $ispos28 ? $9 : $neg29;
  22122. $11 = ($6|0)>($8|0);
  22123. $12 = ($6|0)>($10|0);
  22124. $or$cond = $11 | $12;
  22125. $13 = ($8|0)>($10|0);
  22126. $$ = $13 ? $2 : $1;
  22127. $$0 = $or$cond ? $$ : $0;
  22128. return ($$0|0);
  22129. }
  22130. function _stbi__do_zlib($0,$1,$2,$3,$4) {
  22131. $0 = $0|0;
  22132. $1 = $1|0;
  22133. $2 = $2|0;
  22134. $3 = $3|0;
  22135. $4 = $4|0;
  22136. var $10 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  22137. sp = STACKTOP;
  22138. $5 = ((($0)) + 20|0);
  22139. HEAP32[$5>>2] = $1;
  22140. $6 = ((($0)) + 16|0);
  22141. HEAP32[$6>>2] = $1;
  22142. $7 = (($1) + ($2)|0);
  22143. $8 = ((($0)) + 24|0);
  22144. HEAP32[$8>>2] = $7;
  22145. $9 = ((($0)) + 28|0);
  22146. HEAP32[$9>>2] = $3;
  22147. $10 = (_stbi__parse_zlib($0,$4)|0);
  22148. return ($10|0);
  22149. }
  22150. function _stbi__parse_zlib($0,$1) {
  22151. $0 = $0|0;
  22152. $1 = $1|0;
  22153. 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;
  22154. var $9 = 0, label = 0, sp = 0;
  22155. sp = STACKTOP;
  22156. $2 = ($1|0)==(0);
  22157. if (!($2)) {
  22158. $3 = (_stbi__parse_zlib_header($0)|0);
  22159. $4 = ($3|0)==(0);
  22160. if ($4) {
  22161. $$0 = 0;
  22162. return ($$0|0);
  22163. }
  22164. }
  22165. $5 = ((($0)) + 8|0);
  22166. HEAP32[$5>>2] = 0;
  22167. $6 = ((($0)) + 12|0);
  22168. HEAP32[$6>>2] = 0;
  22169. $7 = ((($0)) + 32|0);
  22170. $8 = ((($0)) + 2052|0);
  22171. L5: while(1) {
  22172. $9 = (_stbi__zreceive($0,1)|0);
  22173. $10 = (_stbi__zreceive($0,2)|0);
  22174. switch ($10|0) {
  22175. case 3: {
  22176. $$0 = 0;
  22177. label = 11;
  22178. break L5;
  22179. break;
  22180. }
  22181. case 0: {
  22182. $11 = (_stbi__parse_uncompressed_block($0)|0);
  22183. $12 = ($11|0)==(0);
  22184. if ($12) {
  22185. $$0 = 0;
  22186. label = 11;
  22187. break L5;
  22188. }
  22189. break;
  22190. }
  22191. case 1: {
  22192. $13 = (_stbi__zbuild_huffman($7,10999,288)|0);
  22193. $14 = ($13|0)==(0);
  22194. if ($14) {
  22195. $$0 = 0;
  22196. label = 11;
  22197. break L5;
  22198. }
  22199. $15 = (_stbi__zbuild_huffman($8,11287,32)|0);
  22200. $16 = ($15|0)==(0);
  22201. if ($16) {
  22202. $$0 = 0;
  22203. label = 11;
  22204. break L5;
  22205. } else {
  22206. label = 9;
  22207. }
  22208. break;
  22209. }
  22210. default: {
  22211. $17 = (_stbi__compute_huffman_codes($0)|0);
  22212. $18 = ($17|0)==(0);
  22213. if ($18) {
  22214. $$0 = 0;
  22215. label = 11;
  22216. break L5;
  22217. } else {
  22218. label = 9;
  22219. }
  22220. }
  22221. }
  22222. if ((label|0) == 9) {
  22223. label = 0;
  22224. $19 = (_stbi__parse_huffman_block($0)|0);
  22225. $20 = ($19|0)==(0);
  22226. if ($20) {
  22227. $$0 = 0;
  22228. label = 11;
  22229. break;
  22230. }
  22231. }
  22232. $21 = ($9|0)==(0);
  22233. if (!($21)) {
  22234. $$0 = 1;
  22235. label = 11;
  22236. break;
  22237. }
  22238. }
  22239. if ((label|0) == 11) {
  22240. return ($$0|0);
  22241. }
  22242. return (0)|0;
  22243. }
  22244. function _stbi__parse_zlib_header($0) {
  22245. $0 = $0|0;
  22246. 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;
  22247. sp = STACKTOP;
  22248. $1 = (_stbi__zget8($0)|0);
  22249. $2 = $1&255;
  22250. $3 = $2 & 15;
  22251. $4 = (_stbi__zget8($0)|0);
  22252. $5 = $4&255;
  22253. $6 = $2 << 8;
  22254. $7 = $6 | $5;
  22255. $8 = (($7>>>0) % 31)&-1;
  22256. $9 = ($8|0)==(0);
  22257. if (!($9)) {
  22258. _stbi__err(11634);
  22259. $$0 = 0;
  22260. return ($$0|0);
  22261. }
  22262. $10 = $5 & 32;
  22263. $11 = ($10|0)==(0);
  22264. if (!($11)) {
  22265. _stbi__err(11650);
  22266. $$0 = 0;
  22267. return ($$0|0);
  22268. }
  22269. $12 = ($3|0)==(8);
  22270. if ($12) {
  22271. $$0 = 1;
  22272. return ($$0|0);
  22273. }
  22274. _stbi__err(11665);
  22275. $$0 = 0;
  22276. return ($$0|0);
  22277. }
  22278. function _stbi__zreceive($0,$1) {
  22279. $0 = $0|0;
  22280. $1 = $1|0;
  22281. 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;
  22282. sp = STACKTOP;
  22283. $2 = ((($0)) + 8|0);
  22284. $3 = HEAP32[$2>>2]|0;
  22285. $4 = ($3|0)<($1|0);
  22286. if ($4) {
  22287. _stbi__fill_bits($0);
  22288. }
  22289. $5 = ((($0)) + 12|0);
  22290. $6 = HEAP32[$5>>2]|0;
  22291. $7 = 1 << $1;
  22292. $8 = (($7) + -1)|0;
  22293. $9 = $6 & $8;
  22294. $10 = $6 >>> $1;
  22295. HEAP32[$5>>2] = $10;
  22296. $11 = HEAP32[$2>>2]|0;
  22297. $12 = (($11) - ($1))|0;
  22298. HEAP32[$2>>2] = $12;
  22299. return ($9|0);
  22300. }
  22301. function _stbi__parse_uncompressed_block($0) {
  22302. $0 = $0|0;
  22303. 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;
  22304. 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;
  22305. 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;
  22306. 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;
  22307. sp = STACKTOP;
  22308. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  22309. $1 = sp;
  22310. $2 = ((($0)) + 8|0);
  22311. $3 = HEAP32[$2>>2]|0;
  22312. $4 = $3 & 7;
  22313. $5 = ($4|0)==(0);
  22314. if ($5) {
  22315. $$ph = $3;
  22316. } else {
  22317. (_stbi__zreceive($0,$4)|0);
  22318. $$pr = HEAP32[$2>>2]|0;
  22319. $$ph = $$pr;
  22320. }
  22321. $6 = ($$ph|0)>(0);
  22322. if ($6) {
  22323. $7 = ((($0)) + 12|0);
  22324. $$promoted = HEAP32[$7>>2]|0;
  22325. $8 = $$ph ^ -1;
  22326. $9 = ($8|0)>(-9);
  22327. $smax = $9 ? $8 : -9;
  22328. $10 = (($$ph) + ($smax))|0;
  22329. $11 = (($10) + 8)|0;
  22330. $12 = $11 >>> 3;
  22331. $13 = (($12) + 1)|0;
  22332. $14 = $12 << 3;
  22333. $$037 = 0;$16 = $$promoted;
  22334. while(1) {
  22335. $15 = $16&255;
  22336. $17 = (($$037) + 1)|0;
  22337. $18 = (($1) + ($$037)|0);
  22338. HEAP8[$18>>0] = $15;
  22339. $19 = $16 >>> 8;
  22340. $exitcond47 = ($17|0)==($13|0);
  22341. if ($exitcond47) {
  22342. break;
  22343. } else {
  22344. $$037 = $17;$16 = $19;
  22345. }
  22346. }
  22347. $20 = (($$ph) + -8)|0;
  22348. $21 = (($20) - ($14))|0;
  22349. HEAP32[$7>>2] = $19;
  22350. HEAP32[$2>>2] = $21;
  22351. $$0$lcssa = $13;$$lcssa = $21;
  22352. } else {
  22353. $$0$lcssa = 0;$$lcssa = $$ph;
  22354. }
  22355. $22 = ($$lcssa|0)==(0);
  22356. if (!($22)) {
  22357. ___assert_fail((11556|0),(10270|0),4033,(11573|0));
  22358. // unreachable;
  22359. }
  22360. $23 = ($$0$lcssa|0)<(4);
  22361. if ($23) {
  22362. $$136 = $$0$lcssa;
  22363. while(1) {
  22364. $24 = (_stbi__zget8($0)|0);
  22365. $25 = (($$136) + 1)|0;
  22366. $26 = (($1) + ($$136)|0);
  22367. HEAP8[$26>>0] = $24;
  22368. $exitcond = ($25|0)==(4);
  22369. if ($exitcond) {
  22370. break;
  22371. } else {
  22372. $$136 = $25;
  22373. }
  22374. }
  22375. }
  22376. $27 = ((($1)) + 1|0);
  22377. $28 = HEAP8[$27>>0]|0;
  22378. $29 = $28&255;
  22379. $30 = $29 << 8;
  22380. $31 = HEAP8[$1>>0]|0;
  22381. $32 = $31&255;
  22382. $33 = $30 | $32;
  22383. $34 = ((($1)) + 3|0);
  22384. $35 = HEAP8[$34>>0]|0;
  22385. $36 = $35&255;
  22386. $37 = $36 << 8;
  22387. $38 = ((($1)) + 2|0);
  22388. $39 = HEAP8[$38>>0]|0;
  22389. $40 = $39&255;
  22390. $41 = $37 | $40;
  22391. $42 = $33 ^ 65535;
  22392. $43 = ($41|0)==($42|0);
  22393. if (!($43)) {
  22394. _stbi__err(11604);
  22395. $$034 = 0;
  22396. STACKTOP = sp;return ($$034|0);
  22397. }
  22398. $44 = HEAP32[$0>>2]|0;
  22399. $45 = (($44) + ($33)|0);
  22400. $46 = ((($0)) + 4|0);
  22401. $47 = HEAP32[$46>>2]|0;
  22402. $48 = ($45>>>0)>($47>>>0);
  22403. if ($48) {
  22404. _stbi__err(11617);
  22405. $$034 = 0;
  22406. STACKTOP = sp;return ($$034|0);
  22407. }
  22408. $49 = ((($0)) + 16|0);
  22409. $50 = HEAP32[$49>>2]|0;
  22410. $51 = (($50) + ($33)|0);
  22411. $52 = ((($0)) + 24|0);
  22412. $53 = HEAP32[$52>>2]|0;
  22413. $54 = ($51>>>0)>($53>>>0);
  22414. if ($54) {
  22415. $55 = (_stbi__zexpand($0,$50,$33)|0);
  22416. $56 = ($55|0)==(0);
  22417. if ($56) {
  22418. $$034 = 0;
  22419. STACKTOP = sp;return ($$034|0);
  22420. }
  22421. }
  22422. $57 = HEAP32[$49>>2]|0;
  22423. $58 = HEAP32[$0>>2]|0;
  22424. _memcpy(($57|0),($58|0),($33|0))|0;
  22425. $59 = HEAP32[$0>>2]|0;
  22426. $60 = (($59) + ($33)|0);
  22427. HEAP32[$0>>2] = $60;
  22428. $61 = HEAP32[$49>>2]|0;
  22429. $62 = (($61) + ($33)|0);
  22430. HEAP32[$49>>2] = $62;
  22431. $$034 = 1;
  22432. STACKTOP = sp;return ($$034|0);
  22433. }
  22434. function _stbi__zbuild_huffman($0,$1,$2) {
  22435. $0 = $0|0;
  22436. $1 = $1|0;
  22437. $2 = $2|0;
  22438. 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;
  22439. 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;
  22440. 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;
  22441. 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;
  22442. 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;
  22443. 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;
  22444. sp = STACKTOP;
  22445. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  22446. $3 = sp + 72|0;
  22447. $4 = sp;
  22448. dest=$4; stop=dest+68|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  22449. _memset(($0|0),0,1024)|0;
  22450. $5 = ($2|0)>(0);
  22451. if ($5) {
  22452. $$07688 = 0;
  22453. while(1) {
  22454. $6 = (($1) + ($$07688)|0);
  22455. $7 = HEAP8[$6>>0]|0;
  22456. $8 = $7&255;
  22457. $9 = (($4) + ($8<<2)|0);
  22458. $10 = HEAP32[$9>>2]|0;
  22459. $11 = (($10) + 1)|0;
  22460. HEAP32[$9>>2] = $11;
  22461. $12 = (($$07688) + 1)|0;
  22462. $exitcond91 = ($12|0)==($2|0);
  22463. if ($exitcond91) {
  22464. break;
  22465. } else {
  22466. $$07688 = $12;
  22467. }
  22468. }
  22469. }
  22470. HEAP32[$4>>2] = 0;
  22471. $16 = ((($4)) + 4|0);
  22472. $17 = HEAP32[$16>>2]|0;
  22473. $18 = ($17|0)>(2);
  22474. if (!($18)) {
  22475. $13 = ((($4)) + 8|0);
  22476. $14 = HEAP32[$13>>2]|0;
  22477. $15 = ($14|0)>(4);
  22478. if (!($15)) {
  22479. $69 = ((($4)) + 12|0);
  22480. $70 = HEAP32[$69>>2]|0;
  22481. $71 = ($70|0)>(8);
  22482. if (!($71)) {
  22483. $72 = ((($4)) + 16|0);
  22484. $73 = HEAP32[$72>>2]|0;
  22485. $74 = ($73|0)>(16);
  22486. if (!($74)) {
  22487. $75 = ((($4)) + 20|0);
  22488. $76 = HEAP32[$75>>2]|0;
  22489. $77 = ($76|0)>(32);
  22490. if (!($77)) {
  22491. $78 = ((($4)) + 24|0);
  22492. $79 = HEAP32[$78>>2]|0;
  22493. $80 = ($79|0)>(64);
  22494. if (!($80)) {
  22495. $81 = ((($4)) + 28|0);
  22496. $82 = HEAP32[$81>>2]|0;
  22497. $83 = ($82|0)>(128);
  22498. if (!($83)) {
  22499. $84 = ((($4)) + 32|0);
  22500. $85 = HEAP32[$84>>2]|0;
  22501. $86 = ($85|0)>(256);
  22502. if (!($86)) {
  22503. $87 = ((($4)) + 36|0);
  22504. $88 = HEAP32[$87>>2]|0;
  22505. $89 = ($88|0)>(512);
  22506. if (!($89)) {
  22507. $90 = ((($4)) + 40|0);
  22508. $91 = HEAP32[$90>>2]|0;
  22509. $92 = ($91|0)>(1024);
  22510. if (!($92)) {
  22511. $93 = ((($4)) + 44|0);
  22512. $94 = HEAP32[$93>>2]|0;
  22513. $95 = ($94|0)>(2048);
  22514. if (!($95)) {
  22515. $96 = ((($4)) + 48|0);
  22516. $97 = HEAP32[$96>>2]|0;
  22517. $98 = ($97|0)>(4096);
  22518. if (!($98)) {
  22519. $99 = ((($4)) + 52|0);
  22520. $100 = HEAP32[$99>>2]|0;
  22521. $101 = ($100|0)>(8192);
  22522. if (!($101)) {
  22523. $102 = ((($4)) + 56|0);
  22524. $103 = HEAP32[$102>>2]|0;
  22525. $104 = ($103|0)>(16384);
  22526. if (!($104)) {
  22527. $105 = ((($4)) + 60|0);
  22528. $106 = HEAP32[$105>>2]|0;
  22529. $107 = ($106|0)>(32768);
  22530. if (!($107)) {
  22531. $$07785 = 0;$$07884 = 0;$$286 = 1;
  22532. while(1) {
  22533. $19 = (($3) + ($$286<<2)|0);
  22534. HEAP32[$19>>2] = $$07884;
  22535. $20 = $$07884&65535;
  22536. $21 = (((($0)) + 1024|0) + ($$286<<1)|0);
  22537. HEAP16[$21>>1] = $20;
  22538. $22 = $$07785&65535;
  22539. $23 = (((($0)) + 1124|0) + ($$286<<1)|0);
  22540. HEAP16[$23>>1] = $22;
  22541. $24 = (($4) + ($$286<<2)|0);
  22542. $25 = HEAP32[$24>>2]|0;
  22543. $26 = (($25) + ($$07884))|0;
  22544. $27 = ($25|0)!=(0);
  22545. $28 = 1 << $$286;
  22546. $29 = ($26|0)>($28|0);
  22547. $or$cond = $27 & $29;
  22548. if ($or$cond) {
  22549. label = 7;
  22550. break;
  22551. }
  22552. $30 = (16 - ($$286))|0;
  22553. $31 = $26 << $30;
  22554. $32 = (((($0)) + 1056|0) + ($$286<<2)|0);
  22555. HEAP32[$32>>2] = $31;
  22556. $33 = $26 << 1;
  22557. $34 = (($25) + ($$07785))|0;
  22558. $35 = (($$286) + 1)|0;
  22559. $36 = ($35|0)<(16);
  22560. if ($36) {
  22561. $$07785 = $34;$$07884 = $33;$$286 = $35;
  22562. } else {
  22563. break;
  22564. }
  22565. }
  22566. if ((label|0) == 7) {
  22567. _stbi__err(11494);
  22568. $$075 = 0;
  22569. STACKTOP = sp;return ($$075|0);
  22570. }
  22571. $37 = ((($0)) + 1120|0);
  22572. HEAP32[$37>>2] = 65536;
  22573. $38 = ($2|0)>(0);
  22574. if ($38) {
  22575. $$382 = 0;
  22576. } else {
  22577. $$075 = 1;
  22578. STACKTOP = sp;return ($$075|0);
  22579. }
  22580. while(1) {
  22581. $39 = (($1) + ($$382)|0);
  22582. $40 = HEAP8[$39>>0]|0;
  22583. $41 = $40&255;
  22584. $42 = ($40<<24>>24)==(0);
  22585. if (!($42)) {
  22586. $43 = (($3) + ($41<<2)|0);
  22587. $44 = HEAP32[$43>>2]|0;
  22588. $45 = (((($0)) + 1024|0) + ($41<<1)|0);
  22589. $46 = HEAP16[$45>>1]|0;
  22590. $47 = $46&65535;
  22591. $48 = (($44) - ($47))|0;
  22592. $49 = (((($0)) + 1124|0) + ($41<<1)|0);
  22593. $50 = HEAP16[$49>>1]|0;
  22594. $51 = $50&65535;
  22595. $52 = (($48) + ($51))|0;
  22596. $53 = $41 << 9;
  22597. $54 = $53 | $$382;
  22598. $55 = $54&65535;
  22599. $56 = (((($0)) + 1156|0) + ($52)|0);
  22600. HEAP8[$56>>0] = $40;
  22601. $57 = $$382&65535;
  22602. $58 = (((($0)) + 1444|0) + ($52<<1)|0);
  22603. HEAP16[$58>>1] = $57;
  22604. $59 = ($40&255)<(10);
  22605. do {
  22606. if ($59) {
  22607. $60 = (_stbi__bit_reverse($44,$41)|0);
  22608. $61 = ($60|0)<(512);
  22609. if (!($61)) {
  22610. break;
  22611. }
  22612. $62 = 1 << $41;
  22613. $$081 = $60;
  22614. while(1) {
  22615. $63 = (($0) + ($$081<<1)|0);
  22616. HEAP16[$63>>1] = $55;
  22617. $64 = (($$081) + ($62))|0;
  22618. $65 = ($64|0)<(512);
  22619. if ($65) {
  22620. $$081 = $64;
  22621. } else {
  22622. break;
  22623. }
  22624. }
  22625. }
  22626. } while(0);
  22627. $66 = HEAP32[$43>>2]|0;
  22628. $67 = (($66) + 1)|0;
  22629. HEAP32[$43>>2] = $67;
  22630. }
  22631. $68 = (($$382) + 1)|0;
  22632. $exitcond = ($68|0)==($2|0);
  22633. if ($exitcond) {
  22634. $$075 = 1;
  22635. break;
  22636. } else {
  22637. $$382 = $68;
  22638. }
  22639. }
  22640. STACKTOP = sp;return ($$075|0);
  22641. }
  22642. }
  22643. }
  22644. }
  22645. }
  22646. }
  22647. }
  22648. }
  22649. }
  22650. }
  22651. }
  22652. }
  22653. }
  22654. }
  22655. }
  22656. _stbi__err(11546);
  22657. $$075 = 0;
  22658. STACKTOP = sp;return ($$075|0);
  22659. }
  22660. function _stbi__compute_huffman_codes($0) {
  22661. $0 = $0|0;
  22662. 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;
  22663. 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;
  22664. 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;
  22665. var label = 0, sp = 0, stop = 0;
  22666. sp = STACKTOP;
  22667. STACKTOP = STACKTOP + 2496|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(2496|0);
  22668. $1 = sp;
  22669. $2 = sp + 2039|0;
  22670. $3 = sp + 2020|0;
  22671. $4 = (_stbi__zreceive($0,5)|0);
  22672. $5 = (($4) + 257)|0;
  22673. $6 = (_stbi__zreceive($0,5)|0);
  22674. $7 = (($6) + 1)|0;
  22675. $8 = (_stbi__zreceive($0,4)|0);
  22676. $9 = (($8) + 4)|0;
  22677. $10 = (($7) + ($5))|0;
  22678. dest=$3; stop=dest+19|0; do { HEAP8[dest>>0]=0|0; dest=dest+1|0; } while ((dest|0) < (stop|0));
  22679. $11 = ($9|0)>(0);
  22680. if ($11) {
  22681. $$06579 = 0;
  22682. while(1) {
  22683. $12 = (_stbi__zreceive($0,3)|0);
  22684. $13 = $12&255;
  22685. $14 = (12340 + ($$06579)|0);
  22686. $15 = HEAP8[$14>>0]|0;
  22687. $16 = $15&255;
  22688. $17 = (($3) + ($16)|0);
  22689. HEAP8[$17>>0] = $13;
  22690. $18 = (($$06579) + 1)|0;
  22691. $exitcond = ($18|0)==($9|0);
  22692. if ($exitcond) {
  22693. break;
  22694. } else {
  22695. $$06579 = $18;
  22696. }
  22697. }
  22698. }
  22699. $19 = (_stbi__zbuild_huffman($1,$3,19)|0);
  22700. $20 = ($19|0)==(0);
  22701. if ($20) {
  22702. $$4 = 0;
  22703. STACKTOP = sp;return ($$4|0);
  22704. }
  22705. $21 = ($10|0)>(0);
  22706. L8: do {
  22707. if ($21) {
  22708. $$06678 = 0;
  22709. L9: while(1) {
  22710. $22 = (_stbi__zhuffman_decode($0,$1)|0);
  22711. $23 = ($22>>>0)>(18);
  22712. if ($23) {
  22713. label = 6;
  22714. break;
  22715. }
  22716. $24 = ($22|0)<(16);
  22717. if ($24) {
  22718. $25 = $22&255;
  22719. $26 = (($$06678) + 1)|0;
  22720. $27 = (($2) + ($$06678)|0);
  22721. HEAP8[$27>>0] = $25;
  22722. $$066$be = $26;
  22723. } else {
  22724. switch ($22|0) {
  22725. case 16: {
  22726. $28 = (_stbi__zreceive($0,2)|0);
  22727. $29 = ($$06678|0)==(0);
  22728. if ($29) {
  22729. label = 11;
  22730. break L9;
  22731. }
  22732. $30 = (($28) + 3)|0;
  22733. $31 = (($$06678) + -1)|0;
  22734. $32 = (($2) + ($31)|0);
  22735. $33 = HEAP8[$32>>0]|0;
  22736. $$0 = $33;$$061 = $30;
  22737. break;
  22738. }
  22739. case 17: {
  22740. $34 = (_stbi__zreceive($0,3)|0);
  22741. $35 = (($34) + 3)|0;
  22742. $$0 = 0;$$061 = $35;
  22743. break;
  22744. }
  22745. case 18: {
  22746. $36 = (_stbi__zreceive($0,7)|0);
  22747. $37 = (($36) + 11)|0;
  22748. $$0 = 0;$$061 = $37;
  22749. break;
  22750. }
  22751. default: {
  22752. label = 14;
  22753. break L9;
  22754. }
  22755. }
  22756. $38 = (($10) - ($$06678))|0;
  22757. $39 = ($38|0)<($$061|0);
  22758. if ($39) {
  22759. label = 17;
  22760. break;
  22761. }
  22762. $40 = (($2) + ($$06678)|0);
  22763. _memset(($40|0),($$0|0),($$061|0))|0;
  22764. $41 = (($$061) + ($$06678))|0;
  22765. $$066$be = $41;
  22766. }
  22767. $42 = ($10|0)>($$066$be|0);
  22768. if ($42) {
  22769. $$06678 = $$066$be;
  22770. } else {
  22771. $$066$lcssa = $$066$be;
  22772. break L8;
  22773. }
  22774. }
  22775. if ((label|0) == 6) {
  22776. _stbi__err(11494);
  22777. $$4 = 0;
  22778. STACKTOP = sp;return ($$4|0);
  22779. }
  22780. else if ((label|0) == 11) {
  22781. _stbi__err(11494);
  22782. $$4 = 0;
  22783. STACKTOP = sp;return ($$4|0);
  22784. }
  22785. else if ((label|0) == 14) {
  22786. ___assert_fail((11510|0),(10270|0),4006,(11518|0));
  22787. // unreachable;
  22788. }
  22789. else if ((label|0) == 17) {
  22790. _stbi__err(11494);
  22791. $$4 = 0;
  22792. STACKTOP = sp;return ($$4|0);
  22793. }
  22794. } else {
  22795. $$066$lcssa = 0;
  22796. }
  22797. } while(0);
  22798. $43 = ($10|0)==($$066$lcssa|0);
  22799. if (!($43)) {
  22800. _stbi__err(11494);
  22801. $$4 = 0;
  22802. STACKTOP = sp;return ($$4|0);
  22803. }
  22804. $44 = ((($0)) + 32|0);
  22805. $45 = (_stbi__zbuild_huffman($44,$2,$5)|0);
  22806. $46 = ($45|0)==(0);
  22807. if ($46) {
  22808. $$4 = 0;
  22809. STACKTOP = sp;return ($$4|0);
  22810. }
  22811. $47 = ((($0)) + 2052|0);
  22812. $48 = (($2) + ($5)|0);
  22813. $49 = (_stbi__zbuild_huffman($47,$48,$7)|0);
  22814. $not$ = ($49|0)!=(0);
  22815. $$ = $not$&1;
  22816. $$4 = $$;
  22817. STACKTOP = sp;return ($$4|0);
  22818. }
  22819. function _stbi__parse_huffman_block($0) {
  22820. $0 = $0|0;
  22821. 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;
  22822. 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;
  22823. 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;
  22824. var $56 = 0, $57 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $scevgep = 0, $scevgep92 = 0, label = 0, sp = 0;
  22825. sp = STACKTOP;
  22826. $1 = ((($0)) + 16|0);
  22827. $2 = HEAP32[$1>>2]|0;
  22828. $3 = ((($0)) + 32|0);
  22829. $4 = ((($0)) + 24|0);
  22830. $5 = ((($0)) + 2052|0);
  22831. $6 = ((($0)) + 20|0);
  22832. $7 = ((($0)) + 24|0);
  22833. $$070 = $2;
  22834. while(1) {
  22835. $10 = (_stbi__zhuffman_decode($0,$3)|0);
  22836. $11 = ($10|0)<(256);
  22837. if ($11) {
  22838. $12 = ($10|0)<(0);
  22839. if ($12) {
  22840. label = 6;
  22841. break;
  22842. }
  22843. $13 = HEAP32[$4>>2]|0;
  22844. $14 = ($$070>>>0)<($13>>>0);
  22845. if ($14) {
  22846. $$171 = $$070;
  22847. } else {
  22848. $15 = (_stbi__zexpand($0,$$070,1)|0);
  22849. $16 = ($15|0)==(0);
  22850. if ($16) {
  22851. $$3$ph = 0;
  22852. label = 28;
  22853. break;
  22854. }
  22855. $17 = HEAP32[$1>>2]|0;
  22856. $$171 = $17;
  22857. }
  22858. $18 = $10&255;
  22859. $19 = ((($$171)) + 1|0);
  22860. HEAP8[$$171>>0] = $18;
  22861. $$070 = $19;
  22862. continue;
  22863. }
  22864. $20 = ($10|0)==(256);
  22865. if ($20) {
  22866. label = 12;
  22867. break;
  22868. }
  22869. $21 = (($10) + -257)|0;
  22870. $22 = (3320 + ($21<<2)|0);
  22871. $23 = HEAP32[$22>>2]|0;
  22872. $24 = (($10) + -265)|0;
  22873. $25 = ($24>>>0)<(20);
  22874. if ($25) {
  22875. $26 = (3196 + ($21<<2)|0);
  22876. $27 = HEAP32[$26>>2]|0;
  22877. $28 = (_stbi__zreceive($0,$27)|0);
  22878. $29 = (($28) + ($23))|0;
  22879. $$064 = $29;
  22880. } else {
  22881. $$064 = $23;
  22882. }
  22883. $30 = (_stbi__zhuffman_decode($0,$5)|0);
  22884. $31 = ($30|0)<(0);
  22885. if ($31) {
  22886. label = 16;
  22887. break;
  22888. }
  22889. $32 = (3572 + ($30<<2)|0);
  22890. $33 = HEAP32[$32>>2]|0;
  22891. $34 = (($30) + -4)|0;
  22892. $35 = ($34>>>0)<(26);
  22893. if ($35) {
  22894. $36 = (3444 + ($30<<2)|0);
  22895. $37 = HEAP32[$36>>2]|0;
  22896. $38 = (_stbi__zreceive($0,$37)|0);
  22897. $39 = (($38) + ($33))|0;
  22898. $$063 = $39;
  22899. } else {
  22900. $$063 = $33;
  22901. }
  22902. $40 = HEAP32[$6>>2]|0;
  22903. $41 = $$070;
  22904. $42 = (($41) - ($40))|0;
  22905. $43 = ($42|0)<($$063|0);
  22906. if ($43) {
  22907. label = 20;
  22908. break;
  22909. }
  22910. $44 = (($$070) + ($$064)|0);
  22911. $45 = HEAP32[$7>>2]|0;
  22912. $46 = ($44>>>0)>($45>>>0);
  22913. if ($46) {
  22914. $47 = (_stbi__zexpand($0,$$070,$$064)|0);
  22915. $48 = ($47|0)==(0);
  22916. if ($48) {
  22917. $$3$ph = 0;
  22918. label = 28;
  22919. break;
  22920. }
  22921. $49 = HEAP32[$1>>2]|0;
  22922. $$272 = $49;
  22923. } else {
  22924. $$272 = $$070;
  22925. }
  22926. $50 = (0 - ($$063))|0;
  22927. $9 = (($$272) + ($50)|0);
  22928. $51 = ($$063|0)==(1);
  22929. $52 = ($$064|0)!=(0);
  22930. if ($51) {
  22931. if (!($52)) {
  22932. $$070 = $$272;
  22933. continue;
  22934. }
  22935. $8 = HEAP8[$9>>0]|0;
  22936. _memset(($$272|0),($8|0),($$064|0))|0;
  22937. $scevgep92 = (($$272) + ($$064)|0);
  22938. $$070 = $scevgep92;
  22939. continue;
  22940. }
  22941. if ($52) {
  22942. $$067 = $9;$$266 = $$064;$$5 = $$272;
  22943. } else {
  22944. $$070 = $$272;
  22945. continue;
  22946. }
  22947. while(1) {
  22948. $53 = ((($$067)) + 1|0);
  22949. $54 = HEAP8[$$067>>0]|0;
  22950. $55 = ((($$5)) + 1|0);
  22951. HEAP8[$$5>>0] = $54;
  22952. $56 = (($$266) + -1)|0;
  22953. $57 = ($56|0)==(0);
  22954. if ($57) {
  22955. break;
  22956. } else {
  22957. $$067 = $53;$$266 = $56;$$5 = $55;
  22958. }
  22959. }
  22960. $scevgep = (($$272) + ($$064)|0);
  22961. $$070 = $scevgep;
  22962. }
  22963. if ((label|0) == 6) {
  22964. _stbi__err(11319);
  22965. $$3$ph = 0;
  22966. return ($$3$ph|0);
  22967. }
  22968. else if ((label|0) == 12) {
  22969. HEAP32[$1>>2] = $$070;
  22970. $$3$ph = 1;
  22971. return ($$3$ph|0);
  22972. }
  22973. else if ((label|0) == 16) {
  22974. _stbi__err(11319);
  22975. $$3$ph = 0;
  22976. return ($$3$ph|0);
  22977. }
  22978. else if ((label|0) == 20) {
  22979. _stbi__err(11336);
  22980. $$3$ph = 0;
  22981. return ($$3$ph|0);
  22982. }
  22983. else if ((label|0) == 28) {
  22984. return ($$3$ph|0);
  22985. }
  22986. return (0)|0;
  22987. }
  22988. function _stbi__zhuffman_decode($0,$1) {
  22989. $0 = $0|0;
  22990. $1 = $1|0;
  22991. 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;
  22992. sp = STACKTOP;
  22993. $2 = ((($0)) + 8|0);
  22994. $3 = HEAP32[$2>>2]|0;
  22995. $4 = ($3|0)<(16);
  22996. if ($4) {
  22997. _stbi__fill_bits($0);
  22998. }
  22999. $5 = ((($0)) + 12|0);
  23000. $6 = HEAP32[$5>>2]|0;
  23001. $7 = $6 & 511;
  23002. $8 = (($1) + ($7<<1)|0);
  23003. $9 = HEAP16[$8>>1]|0;
  23004. $10 = $9&65535;
  23005. $11 = ($9<<16>>16)==(0);
  23006. if ($11) {
  23007. $17 = (_stbi__zhuffman_decode_slowpath($0,$1)|0);
  23008. $$0 = $17;
  23009. return ($$0|0);
  23010. } else {
  23011. $12 = $10 >>> 9;
  23012. $13 = $6 >>> $12;
  23013. HEAP32[$5>>2] = $13;
  23014. $14 = HEAP32[$2>>2]|0;
  23015. $15 = (($14) - ($12))|0;
  23016. HEAP32[$2>>2] = $15;
  23017. $16 = $10 & 511;
  23018. $$0 = $16;
  23019. return ($$0|0);
  23020. }
  23021. return (0)|0;
  23022. }
  23023. function _stbi__zexpand($0,$1,$2) {
  23024. $0 = $0|0;
  23025. $1 = $1|0;
  23026. $2 = $2|0;
  23027. 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;
  23028. var $9 = 0, label = 0, sp = 0;
  23029. sp = STACKTOP;
  23030. $3 = ((($0)) + 16|0);
  23031. HEAP32[$3>>2] = $1;
  23032. $4 = ((($0)) + 28|0);
  23033. $5 = HEAP32[$4>>2]|0;
  23034. $6 = ($5|0)==(0);
  23035. if ($6) {
  23036. _stbi__err(11345);
  23037. $$0 = 0;
  23038. return ($$0|0);
  23039. }
  23040. $7 = ((($0)) + 20|0);
  23041. $8 = HEAP32[$7>>2]|0;
  23042. $9 = $1;
  23043. $10 = $8;
  23044. $11 = (($9) - ($10))|0;
  23045. $12 = ((($0)) + 24|0);
  23046. $13 = HEAP32[$12>>2]|0;
  23047. $14 = (($13) - ($10))|0;
  23048. $15 = (($11) + ($2))|0;
  23049. $$029 = $14;
  23050. while(1) {
  23051. $16 = ($15|0)>($$029|0);
  23052. $17 = $$029 << 1;
  23053. if ($16) {
  23054. $$029 = $17;
  23055. } else {
  23056. break;
  23057. }
  23058. }
  23059. $18 = (_realloc($8,$$029)|0);
  23060. $19 = ($18|0)==(0|0);
  23061. if ($19) {
  23062. _stbi__err(10325);
  23063. $$0 = 0;
  23064. return ($$0|0);
  23065. } else {
  23066. HEAP32[$7>>2] = $18;
  23067. $20 = (($18) + ($11)|0);
  23068. HEAP32[$3>>2] = $20;
  23069. $21 = (($18) + ($$029)|0);
  23070. HEAP32[$12>>2] = $21;
  23071. $$0 = 1;
  23072. return ($$0|0);
  23073. }
  23074. return (0)|0;
  23075. }
  23076. function _stbi__fill_bits($0) {
  23077. $0 = $0|0;
  23078. 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;
  23079. sp = STACKTOP;
  23080. $1 = ((($0)) + 12|0);
  23081. $2 = ((($0)) + 8|0);
  23082. while(1) {
  23083. $3 = HEAP32[$1>>2]|0;
  23084. $4 = HEAP32[$2>>2]|0;
  23085. $5 = 1 << $4;
  23086. $6 = ($3>>>0)<($5>>>0);
  23087. if (!($6)) {
  23088. label = 3;
  23089. break;
  23090. }
  23091. $7 = (_stbi__zget8($0)|0);
  23092. $8 = $7&255;
  23093. $9 = HEAP32[$2>>2]|0;
  23094. $10 = $8 << $9;
  23095. $11 = HEAP32[$1>>2]|0;
  23096. $12 = $11 | $10;
  23097. HEAP32[$1>>2] = $12;
  23098. $13 = (($9) + 8)|0;
  23099. HEAP32[$2>>2] = $13;
  23100. $14 = ($13|0)<(25);
  23101. if (!($14)) {
  23102. label = 5;
  23103. break;
  23104. }
  23105. }
  23106. if ((label|0) == 3) {
  23107. ___assert_fail((11441|0),(10270|0),3848,(11478|0));
  23108. // unreachable;
  23109. }
  23110. else if ((label|0) == 5) {
  23111. return;
  23112. }
  23113. }
  23114. function _stbi__zhuffman_decode_slowpath($0,$1) {
  23115. $0 = $0|0;
  23116. $1 = $1|0;
  23117. 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;
  23118. 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;
  23119. sp = STACKTOP;
  23120. $2 = ((($0)) + 12|0);
  23121. $3 = HEAP32[$2>>2]|0;
  23122. $4 = (_stbi__bit_reverse($3,16)|0);
  23123. $$025 = 10;
  23124. while(1) {
  23125. $5 = (((($1)) + 1056|0) + ($$025<<2)|0);
  23126. $6 = HEAP32[$5>>2]|0;
  23127. $7 = ($4|0)<($6|0);
  23128. $8 = (($$025) + 1)|0;
  23129. if ($7) {
  23130. break;
  23131. } else {
  23132. $$025 = $8;
  23133. }
  23134. }
  23135. $9 = ($$025|0)==(16);
  23136. if ($9) {
  23137. $$0 = -1;
  23138. return ($$0|0);
  23139. }
  23140. $10 = (16 - ($$025))|0;
  23141. $11 = $4 >> $10;
  23142. $12 = (((($1)) + 1024|0) + ($$025<<1)|0);
  23143. $13 = HEAP16[$12>>1]|0;
  23144. $14 = $13&65535;
  23145. $15 = (($11) - ($14))|0;
  23146. $16 = (((($1)) + 1124|0) + ($$025<<1)|0);
  23147. $17 = HEAP16[$16>>1]|0;
  23148. $18 = $17&65535;
  23149. $19 = (($15) + ($18))|0;
  23150. $20 = (((($1)) + 1156|0) + ($19)|0);
  23151. $21 = HEAP8[$20>>0]|0;
  23152. $22 = $21&255;
  23153. $23 = ($22|0)==($$025|0);
  23154. if (!($23)) {
  23155. ___assert_fail((11365|0),(10270|0),3876,(11381|0));
  23156. // unreachable;
  23157. }
  23158. $24 = HEAP32[$2>>2]|0;
  23159. $25 = $24 >>> $$025;
  23160. HEAP32[$2>>2] = $25;
  23161. $26 = ((($0)) + 8|0);
  23162. $27 = HEAP32[$26>>2]|0;
  23163. $28 = (($27) - ($$025))|0;
  23164. HEAP32[$26>>2] = $28;
  23165. $29 = (((($1)) + 1444|0) + ($19<<1)|0);
  23166. $30 = HEAP16[$29>>1]|0;
  23167. $31 = $30&65535;
  23168. $$0 = $31;
  23169. return ($$0|0);
  23170. }
  23171. function _stbi__bit_reverse($0,$1) {
  23172. $0 = $0|0;
  23173. $1 = $1|0;
  23174. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  23175. sp = STACKTOP;
  23176. $2 = ($1|0)<(17);
  23177. if ($2) {
  23178. $3 = (_stbi__bitreverse16($0)|0);
  23179. $4 = (16 - ($1))|0;
  23180. $5 = $3 >> $4;
  23181. return ($5|0);
  23182. } else {
  23183. ___assert_fail((11412|0),(10270|0),3766,(11423|0));
  23184. // unreachable;
  23185. }
  23186. return (0)|0;
  23187. }
  23188. function _stbi__bitreverse16($0) {
  23189. $0 = $0|0;
  23190. 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;
  23191. var sp = 0;
  23192. sp = STACKTOP;
  23193. $1 = $0 >>> 1;
  23194. $2 = $1 & 21845;
  23195. $3 = $0 << 1;
  23196. $4 = $3 & 43690;
  23197. $5 = $2 | $4;
  23198. $6 = $5 >>> 2;
  23199. $7 = $6 & 13107;
  23200. $8 = $5 << 2;
  23201. $9 = $8 & 52428;
  23202. $10 = $7 | $9;
  23203. $11 = $10 >>> 4;
  23204. $12 = $11 & 3855;
  23205. $13 = $10 << 4;
  23206. $14 = $13 & 61680;
  23207. $15 = $12 | $14;
  23208. $16 = $15 >>> 8;
  23209. $17 = $15 << 8;
  23210. $18 = $17 & 65280;
  23211. $19 = $18 | $16;
  23212. return ($19|0);
  23213. }
  23214. function _stbi__zget8($0) {
  23215. $0 = $0|0;
  23216. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  23217. sp = STACKTOP;
  23218. $1 = HEAP32[$0>>2]|0;
  23219. $2 = ((($0)) + 4|0);
  23220. $3 = HEAP32[$2>>2]|0;
  23221. $4 = ($1>>>0)<($3>>>0);
  23222. if (!($4)) {
  23223. $$0 = 0;
  23224. return ($$0|0);
  23225. }
  23226. $5 = ((($1)) + 1|0);
  23227. HEAP32[$0>>2] = $5;
  23228. $6 = HEAP8[$1>>0]|0;
  23229. $$0 = $6;
  23230. return ($$0|0);
  23231. }
  23232. function _stbi__refill_buffer($0) {
  23233. $0 = $0|0;
  23234. 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;
  23235. sp = STACKTOP;
  23236. $1 = ((($0)) + 16|0);
  23237. $2 = HEAP32[$1>>2]|0;
  23238. $3 = ((($0)) + 28|0);
  23239. $4 = HEAP32[$3>>2]|0;
  23240. $5 = ((($0)) + 40|0);
  23241. $6 = ((($0)) + 36|0);
  23242. $7 = HEAP32[$6>>2]|0;
  23243. $8 = (FUNCTION_TABLE_iiii[$2 & 15]($4,$5,$7)|0);
  23244. $9 = ($8|0)==(0);
  23245. if ($9) {
  23246. $10 = ((($0)) + 32|0);
  23247. HEAP32[$10>>2] = 0;
  23248. $11 = ((($0)) + 168|0);
  23249. HEAP32[$11>>2] = $5;
  23250. $12 = ((($0)) + 41|0);
  23251. $13 = ((($0)) + 172|0);
  23252. HEAP32[$13>>2] = $12;
  23253. HEAP8[$5>>0] = 0;
  23254. return;
  23255. } else {
  23256. $14 = ((($0)) + 168|0);
  23257. HEAP32[$14>>2] = $5;
  23258. $15 = (((($0)) + 40|0) + ($8)|0);
  23259. $16 = ((($0)) + 172|0);
  23260. HEAP32[$16>>2] = $15;
  23261. return;
  23262. }
  23263. }
  23264. function _stbi__rewind($0) {
  23265. $0 = $0|0;
  23266. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  23267. sp = STACKTOP;
  23268. $1 = ((($0)) + 176|0);
  23269. $2 = HEAP32[$1>>2]|0;
  23270. $3 = ((($0)) + 168|0);
  23271. HEAP32[$3>>2] = $2;
  23272. $4 = ((($0)) + 180|0);
  23273. $5 = HEAP32[$4>>2]|0;
  23274. $6 = ((($0)) + 172|0);
  23275. HEAP32[$6>>2] = $5;
  23276. return;
  23277. }
  23278. function _stbi__start_callbacks($0,$1,$2) {
  23279. $0 = $0|0;
  23280. $1 = $1|0;
  23281. $2 = $2|0;
  23282. var $10 = 0, $11 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  23283. sp = STACKTOP;
  23284. $3 = ((($0)) + 16|0);
  23285. ;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;
  23286. $4 = ((($0)) + 28|0);
  23287. HEAP32[$4>>2] = $2;
  23288. $5 = ((($0)) + 36|0);
  23289. HEAP32[$5>>2] = 128;
  23290. $6 = ((($0)) + 32|0);
  23291. HEAP32[$6>>2] = 1;
  23292. $7 = ((($0)) + 40|0);
  23293. $8 = ((($0)) + 176|0);
  23294. HEAP32[$8>>2] = $7;
  23295. _stbi__refill_buffer($0);
  23296. $9 = ((($0)) + 172|0);
  23297. $10 = HEAP32[$9>>2]|0;
  23298. $11 = ((($0)) + 180|0);
  23299. HEAP32[$11>>2] = $10;
  23300. return;
  23301. }
  23302. function _stbi__stdio_read($0,$1,$2) {
  23303. $0 = $0|0;
  23304. $1 = $1|0;
  23305. $2 = $2|0;
  23306. var $3 = 0, label = 0, sp = 0;
  23307. sp = STACKTOP;
  23308. $3 = (_fread($1,1,$2,$0)|0);
  23309. return ($3|0);
  23310. }
  23311. function _stbi__stdio_skip($0,$1) {
  23312. $0 = $0|0;
  23313. $1 = $1|0;
  23314. var label = 0, sp = 0;
  23315. sp = STACKTOP;
  23316. (_fseek($0,$1,1)|0);
  23317. return;
  23318. }
  23319. function _stbi__stdio_eof($0) {
  23320. $0 = $0|0;
  23321. var $1 = 0, label = 0, sp = 0;
  23322. sp = STACKTOP;
  23323. $1 = (_feof($0)|0);
  23324. return ($1|0);
  23325. }
  23326. function _LoadImage($0,$1) {
  23327. $0 = $0|0;
  23328. $1 = $1|0;
  23329. 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;
  23330. 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;
  23331. 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;
  23332. var $vararg_buffer1 = 0, $vararg_buffer4 = 0, $vararg_buffer9 = 0, $vararg_ptr7 = 0, $vararg_ptr8 = 0, label = 0, sp = 0;
  23333. sp = STACKTOP;
  23334. STACKTOP = STACKTOP + 80|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(80|0);
  23335. $vararg_buffer9 = sp + 32|0;
  23336. $vararg_buffer4 = sp + 16|0;
  23337. $vararg_buffer1 = sp + 8|0;
  23338. $vararg_buffer = sp;
  23339. $2 = sp + 48|0;
  23340. $3 = sp + 44|0;
  23341. $4 = sp + 40|0;
  23342. $5 = sp + 36|0;
  23343. $6 = (_IsFileExtension($1,11693)|0);
  23344. $7 = ($6|0)==(0);
  23345. do {
  23346. if ($7) {
  23347. $19 = (_IsFileExtension($1,11746)|0);
  23348. $20 = ($19|0)==(0);
  23349. if ($20) {
  23350. HEAP32[$vararg_buffer1>>2] = $1;
  23351. _TraceLog(2,11751,$vararg_buffer1);
  23352. $$sroa$10$141 = 0;$$sroa$13$147 = 0;$$sroa$15$249 = 0;$$sroa$7$143 = 0;
  23353. break;
  23354. }
  23355. HEAP32[$3>>2] = 0;
  23356. HEAP32[$4>>2] = 0;
  23357. HEAP32[$5>>2] = 0;
  23358. $21 = (_fopen($1,11885)|0);
  23359. $22 = (_stbi_load_from_file($21,$3,$4,$5,0)|0);
  23360. (_fclose($21)|0);
  23361. $23 = HEAP32[$3>>2]|0;
  23362. $24 = HEAP32[$4>>2]|0;
  23363. $25 = HEAP32[$5>>2]|0;
  23364. switch ($25|0) {
  23365. case 1: {
  23366. $$sink = 1;
  23367. label = 11;
  23368. break;
  23369. }
  23370. case 2: {
  23371. $$sink = 2;
  23372. label = 11;
  23373. break;
  23374. }
  23375. case 3: {
  23376. $$sink = 4;
  23377. label = 11;
  23378. break;
  23379. }
  23380. case 4: {
  23381. $$sink = 7;
  23382. label = 11;
  23383. break;
  23384. }
  23385. default: {
  23386. $$sroa$15$1 = 0;
  23387. }
  23388. }
  23389. if ((label|0) == 11) {
  23390. $$sroa$15$1 = $$sink;
  23391. }
  23392. $$sroa$0$1 = $22;$$sroa$10$1 = $24;$$sroa$13$1 = 1;$$sroa$15$2 = $$sroa$15$1;$$sroa$7$1 = $23;
  23393. label = 14;
  23394. } else {
  23395. $8 = (_LoadResource($1,0)|0);
  23396. $9 = HEAP32[$8>>2]|0;
  23397. $10 = ($9|0)==(1);
  23398. if ($10) {
  23399. $11 = ((($8)) + 20|0);
  23400. $12 = HEAP32[$11>>2]|0;
  23401. $13 = ((($8)) + 4|0);
  23402. $14 = HEAP32[$13>>2]|0;
  23403. $15 = ((($8)) + 8|0);
  23404. $16 = HEAP32[$15>>2]|0;
  23405. $17 = ((($8)) + 12|0);
  23406. $18 = HEAP32[$17>>2]|0;
  23407. _LoadImagePro($2,$12,$14,$16,$18);
  23408. $$sroa$0$0$copyload = HEAP32[$2>>2]|0;
  23409. $$sroa$7$0$$sroa_idx15 = ((($2)) + 4|0);
  23410. $$sroa$7$0$copyload = HEAP32[$$sroa$7$0$$sroa_idx15>>2]|0;
  23411. $$sroa$10$0$$sroa_idx19 = ((($2)) + 8|0);
  23412. $$sroa$10$0$copyload = HEAP32[$$sroa$10$0$$sroa_idx19>>2]|0;
  23413. $$sroa$13$0$$sroa_idx23 = ((($2)) + 12|0);
  23414. $$sroa$13$0$copyload = HEAP32[$$sroa$13$0$$sroa_idx23>>2]|0;
  23415. $$sroa$15$0$$sroa_idx27 = ((($2)) + 16|0);
  23416. $$sroa$15$0$copyload = HEAP32[$$sroa$15$0$$sroa_idx27>>2]|0;
  23417. $$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;
  23418. } else {
  23419. HEAP32[$vararg_buffer>>2] = $1;
  23420. _TraceLog(2,11699,$vararg_buffer);
  23421. $$sroa$0$0 = 0;$$sroa$10$0 = 0;$$sroa$13$0 = 0;$$sroa$15$0 = 0;$$sroa$7$0 = 0;
  23422. }
  23423. _UnloadResource($8);
  23424. $$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;
  23425. label = 14;
  23426. }
  23427. } while(0);
  23428. if ((label|0) == 14) {
  23429. $26 = ($$sroa$0$1|0)==(0|0);
  23430. if ($26) {
  23431. $$sroa$10$141 = $$sroa$10$1;$$sroa$13$147 = $$sroa$13$1;$$sroa$15$249 = $$sroa$15$2;$$sroa$7$143 = $$sroa$7$1;
  23432. } else {
  23433. HEAP32[$vararg_buffer4>>2] = $1;
  23434. $vararg_ptr7 = ((($vararg_buffer4)) + 4|0);
  23435. HEAP32[$vararg_ptr7>>2] = $$sroa$7$1;
  23436. $vararg_ptr8 = ((($vararg_buffer4)) + 8|0);
  23437. HEAP32[$vararg_ptr8>>2] = $$sroa$10$1;
  23438. _TraceLog(0,11787,$vararg_buffer4);
  23439. $$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;
  23440. HEAP32[$0>>2] = $$sroa$0$144;
  23441. $$sroa$7$0$$sroa_idx16 = ((($0)) + 4|0);
  23442. HEAP32[$$sroa$7$0$$sroa_idx16>>2] = $$sroa$7$142;
  23443. $$sroa$10$0$$sroa_idx20 = ((($0)) + 8|0);
  23444. HEAP32[$$sroa$10$0$$sroa_idx20>>2] = $$sroa$10$140;
  23445. $$sroa$13$0$$sroa_idx24 = ((($0)) + 12|0);
  23446. HEAP32[$$sroa$13$0$$sroa_idx24>>2] = $$sroa$13$146;
  23447. $$sroa$15$0$$sroa_idx28 = ((($0)) + 16|0);
  23448. HEAP32[$$sroa$15$0$$sroa_idx28>>2] = $$sroa$15$248;
  23449. STACKTOP = sp;return;
  23450. }
  23451. }
  23452. HEAP32[$vararg_buffer9>>2] = $1;
  23453. _TraceLog(2,11826,$vararg_buffer9);
  23454. $$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;
  23455. HEAP32[$0>>2] = $$sroa$0$144;
  23456. $$sroa$7$0$$sroa_idx16 = ((($0)) + 4|0);
  23457. HEAP32[$$sroa$7$0$$sroa_idx16>>2] = $$sroa$7$142;
  23458. $$sroa$10$0$$sroa_idx20 = ((($0)) + 8|0);
  23459. HEAP32[$$sroa$10$0$$sroa_idx20>>2] = $$sroa$10$140;
  23460. $$sroa$13$0$$sroa_idx24 = ((($0)) + 12|0);
  23461. HEAP32[$$sroa$13$0$$sroa_idx24>>2] = $$sroa$13$146;
  23462. $$sroa$15$0$$sroa_idx28 = ((($0)) + 16|0);
  23463. HEAP32[$$sroa$15$0$$sroa_idx28>>2] = $$sroa$15$248;
  23464. STACKTOP = sp;return;
  23465. }
  23466. function _LoadResource($0,$1) {
  23467. $0 = $0|0;
  23468. $1 = $1|0;
  23469. 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;
  23470. 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;
  23471. 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;
  23472. 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;
  23473. 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;
  23474. sp = STACKTOP;
  23475. STACKTOP = STACKTOP + 80|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(80|0);
  23476. $vararg_buffer8 = sp + 24|0;
  23477. $vararg_buffer4 = sp + 16|0;
  23478. $vararg_buffer1 = sp + 8|0;
  23479. $vararg_buffer = sp;
  23480. $2 = sp + 64|0;
  23481. $3 = sp + 32|0;
  23482. $4 = (_fopen($0,11885)|0);
  23483. $5 = ($4|0)==(0|0);
  23484. if ($5) {
  23485. HEAP32[$vararg_buffer>>2] = $0;
  23486. _TraceLog(2,11888,$vararg_buffer);
  23487. $$2 = 0;
  23488. STACKTOP = sp;return ($$2|0);
  23489. }
  23490. (_fread($2,1,1,$4)|0);
  23491. $6 = ((($2)) + 1|0);
  23492. (_fread($6,1,1,$4)|0);
  23493. $7 = ((($2)) + 2|0);
  23494. (_fread($7,1,1,$4)|0);
  23495. $8 = ((($2)) + 3|0);
  23496. (_fread($8,1,1,$4)|0);
  23497. $9 = ((($2)) + 4|0);
  23498. (_fread($9,2,1,$4)|0);
  23499. $10 = ((($2)) + 6|0);
  23500. (_fread($10,2,1,$4)|0);
  23501. $11 = HEAP8[$2>>0]|0;
  23502. $12 = ($11<<24>>24)==(114);
  23503. $13 = HEAP8[$6>>0]|0;
  23504. $14 = ($13<<24>>24)==(82);
  23505. $or$cond = $12 | $14;
  23506. $15 = HEAP8[$7>>0]|0;
  23507. $16 = ($15<<24>>24)==(69);
  23508. $or$cond60 = $or$cond | $16;
  23509. $17 = HEAP8[$8>>0]|0;
  23510. $18 = ($17<<24>>24)==(83);
  23511. $or$cond62 = $or$cond60 | $18;
  23512. if ($or$cond62) {
  23513. $19 = HEAP16[$10>>1]|0;
  23514. $20 = ($19<<16>>16)==(0);
  23515. if ($20) {
  23516. $$0$lcssa = 0;
  23517. } else {
  23518. $21 = ((($3)) + 7|0);
  23519. $22 = HEAP16[$10>>1]|0;
  23520. $23 = $22&65535;
  23521. $24 = ((($3)) + 8|0);
  23522. $25 = ((($3)) + 4|0);
  23523. $26 = ((($3)) + 16|0);
  23524. $27 = ((($3)) + 20|0);
  23525. $28 = ((($3)) + 24|0);
  23526. $29 = ((($3)) + 28|0);
  23527. $30 = ((($3)) + 8|0);
  23528. $31 = ((($3)) + 5|0);
  23529. $32 = ((($3)) + 12|0);
  23530. $$05665 = 0;
  23531. while(1) {
  23532. (_fread($3,32,1,$4)|0);
  23533. $36 = HEAP8[$21>>0]|0;
  23534. $37 = $36&255;
  23535. $38 = ($37*24)|0;
  23536. $39 = (_malloc($38)|0);
  23537. $40 = HEAP32[$3>>2]|0;
  23538. $41 = ($40|0)==($1|0);
  23539. if ($41) {
  23540. $42 = HEAP8[$21>>0]|0;
  23541. $43 = ($42<<24>>24)==(0);
  23542. if (!($43)) {
  23543. $$05764 = 0;
  23544. while(1) {
  23545. $44 = HEAP8[$25>>0]|0;
  23546. $45 = $44&255;
  23547. $46 = (($39) + (($$05764*24)|0)|0);
  23548. HEAP32[$46>>2] = $45;
  23549. $47 = HEAP32[$26>>2]|0;
  23550. $48 = (((($39) + (($$05764*24)|0)|0)) + 4|0);
  23551. HEAP32[$48>>2] = $47;
  23552. $49 = HEAP32[$27>>2]|0;
  23553. $50 = (((($39) + (($$05764*24)|0)|0)) + 8|0);
  23554. HEAP32[$50>>2] = $49;
  23555. $51 = HEAP32[$28>>2]|0;
  23556. $52 = (((($39) + (($$05764*24)|0)|0)) + 12|0);
  23557. HEAP32[$52>>2] = $51;
  23558. $53 = HEAP32[$29>>2]|0;
  23559. $54 = (((($39) + (($$05764*24)|0)|0)) + 16|0);
  23560. HEAP32[$54>>2] = $53;
  23561. $55 = HEAP32[$30>>2]|0;
  23562. $56 = (_malloc($55)|0);
  23563. (_fread($56,$55,1,$4)|0);
  23564. $57 = HEAP8[$31>>0]|0;
  23565. $58 = ($57<<24>>24)==(1);
  23566. if ($58) {
  23567. $59 = HEAP32[$30>>2]|0;
  23568. $60 = HEAP32[$32>>2]|0;
  23569. $61 = (_DecompressData($56,$59,$60)|0);
  23570. $62 = (((($39) + (($$05764*24)|0)|0)) + 20|0);
  23571. HEAP32[$62>>2] = $61;
  23572. _free($56);
  23573. } else {
  23574. $63 = (((($39) + (($$05764*24)|0)|0)) + 20|0);
  23575. HEAP32[$63>>2] = $56;
  23576. }
  23577. $64 = (((($39) + (($$05764*24)|0)|0)) + 20|0);
  23578. $65 = HEAP32[$64>>2]|0;
  23579. $66 = ($65|0)==(0|0);
  23580. if (!($66)) {
  23581. $67 = HEAP32[$3>>2]|0;
  23582. HEAP32[$vararg_buffer4>>2] = $0;
  23583. $vararg_ptr7 = ((($vararg_buffer4)) + 4|0);
  23584. HEAP32[$vararg_ptr7>>2] = $67;
  23585. _TraceLog(0,11985,$vararg_buffer4);
  23586. }
  23587. (_fread($3,32,1,$4)|0);
  23588. $68 = (($$05764) + 1)|0;
  23589. $69 = HEAP8[$21>>0]|0;
  23590. $70 = $69&255;
  23591. $71 = ($68|0)<($70|0);
  23592. if ($71) {
  23593. $$05764 = $68;
  23594. } else {
  23595. break;
  23596. }
  23597. }
  23598. }
  23599. } else {
  23600. $72 = HEAP32[$24>>2]|0;
  23601. (_fseek($4,$72,1)|0);
  23602. }
  23603. $73 = (($$05665) + 1)|0;
  23604. $74 = ($73|0)<($23|0);
  23605. if ($74) {
  23606. $$05665 = $73;
  23607. } else {
  23608. $$0$lcssa = $39;
  23609. break;
  23610. }
  23611. }
  23612. }
  23613. $33 = ((($$0$lcssa)) + 20|0);
  23614. $34 = HEAP32[$33>>2]|0;
  23615. $35 = ($34|0)==(0|0);
  23616. if ($35) {
  23617. HEAP32[$vararg_buffer8>>2] = $0;
  23618. $vararg_ptr11 = ((($vararg_buffer8)) + 4|0);
  23619. HEAP32[$vararg_ptr11>>2] = $1;
  23620. _TraceLog(2,12031,$vararg_buffer8);
  23621. $$1 = $$0$lcssa;
  23622. } else {
  23623. $$1 = $$0$lcssa;
  23624. }
  23625. } else {
  23626. HEAP32[$vararg_buffer1>>2] = $0;
  23627. _TraceLog(2,11939,$vararg_buffer1);
  23628. $$1 = 0;
  23629. }
  23630. (_fclose($4)|0);
  23631. $$2 = $$1;
  23632. STACKTOP = sp;return ($$2|0);
  23633. }
  23634. function _LoadImagePro($0,$1,$2,$3,$4) {
  23635. $0 = $0|0;
  23636. $1 = $1|0;
  23637. $2 = $2|0;
  23638. $3 = $3|0;
  23639. $4 = $4|0;
  23640. var $$byval_copy = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  23641. sp = STACKTOP;
  23642. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  23643. $$byval_copy = sp + 20|0;
  23644. $5 = sp;
  23645. HEAP32[$5>>2] = $1;
  23646. $6 = ((($5)) + 4|0);
  23647. HEAP32[$6>>2] = $2;
  23648. $7 = ((($5)) + 8|0);
  23649. HEAP32[$7>>2] = $3;
  23650. $8 = ((($5)) + 12|0);
  23651. HEAP32[$8>>2] = 1;
  23652. $9 = ((($5)) + 16|0);
  23653. HEAP32[$9>>2] = $4;
  23654. ;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;
  23655. _ImageCopy($0,$$byval_copy);
  23656. STACKTOP = sp;return;
  23657. }
  23658. function _UnloadResource($0) {
  23659. $0 = $0|0;
  23660. var $1 = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  23661. sp = STACKTOP;
  23662. $1 = ((($0)) + 20|0);
  23663. $2 = HEAP32[$1>>2]|0;
  23664. $3 = ($2|0)==(0|0);
  23665. if ($3) {
  23666. return;
  23667. }
  23668. _free($2);
  23669. return;
  23670. }
  23671. function _ImageCopy($0,$1) {
  23672. $0 = $0|0;
  23673. $1 = $1|0;
  23674. 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;
  23675. 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;
  23676. sp = STACKTOP;
  23677. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  23678. $vararg_buffer = sp;
  23679. $2 = ((($1)) + 4|0);
  23680. $3 = HEAP32[$2>>2]|0;
  23681. $4 = ((($1)) + 8|0);
  23682. $5 = HEAP32[$4>>2]|0;
  23683. $6 = Math_imul($5, $3)|0;
  23684. $7 = ((($1)) + 16|0);
  23685. $8 = HEAP32[$7>>2]|0;
  23686. switch ($8|0) {
  23687. case 17: case 14: case 11: case 10: case 1: {
  23688. $$0 = $6;
  23689. break;
  23690. }
  23691. case 6: case 5: case 3: case 2: {
  23692. $9 = $6 << 1;
  23693. $$0 = $9;
  23694. break;
  23695. }
  23696. case 4: {
  23697. $10 = ($6*3)|0;
  23698. $$0 = $10;
  23699. break;
  23700. }
  23701. case 7: {
  23702. $11 = $6 << 2;
  23703. $$0 = $11;
  23704. break;
  23705. }
  23706. case 16: case 15: case 13: case 12: case 9: case 8: {
  23707. $12 = (($6|0) / 2)&-1;
  23708. $$0 = $12;
  23709. break;
  23710. }
  23711. case 18: {
  23712. $13 = (($6|0) / 4)&-1;
  23713. $$0 = $13;
  23714. break;
  23715. }
  23716. default: {
  23717. _TraceLog(2,11857,$vararg_buffer);
  23718. $$0 = $6;
  23719. }
  23720. }
  23721. $14 = (_malloc($$0)|0);
  23722. $15 = ($14|0)==(0|0);
  23723. if ($15) {
  23724. $$sroa$6$0 = 0;$$sroa$7$0 = 0;$$sroa$8$0 = 0;$$sroa$9$0 = 0;
  23725. } else {
  23726. $16 = HEAP32[$1>>2]|0;
  23727. _memcpy(($14|0),($16|0),($$0|0))|0;
  23728. $17 = HEAP32[$2>>2]|0;
  23729. $18 = HEAP32[$4>>2]|0;
  23730. $19 = ((($1)) + 12|0);
  23731. $20 = HEAP32[$19>>2]|0;
  23732. $21 = HEAP32[$7>>2]|0;
  23733. $$sroa$6$0 = $17;$$sroa$7$0 = $18;$$sroa$8$0 = $20;$$sroa$9$0 = $21;
  23734. }
  23735. HEAP32[$0>>2] = $14;
  23736. $$sroa$6$0$$sroa_idx10 = ((($0)) + 4|0);
  23737. HEAP32[$$sroa$6$0$$sroa_idx10>>2] = $$sroa$6$0;
  23738. $$sroa$7$0$$sroa_idx12 = ((($0)) + 8|0);
  23739. HEAP32[$$sroa$7$0$$sroa_idx12>>2] = $$sroa$7$0;
  23740. $$sroa$8$0$$sroa_idx14 = ((($0)) + 12|0);
  23741. HEAP32[$$sroa$8$0$$sroa_idx14>>2] = $$sroa$8$0;
  23742. $$sroa$9$0$$sroa_idx16 = ((($0)) + 16|0);
  23743. HEAP32[$$sroa$9$0$$sroa_idx16>>2] = $$sroa$9$0;
  23744. STACKTOP = sp;return;
  23745. }
  23746. function _DecompressData($0,$1,$2) {
  23747. $0 = $0|0;
  23748. $1 = $1|0;
  23749. $2 = $2|0;
  23750. 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;
  23751. sp = STACKTOP;
  23752. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  23753. $vararg_buffer10 = sp + 40|0;
  23754. $vararg_buffer7 = sp + 32|0;
  23755. $vararg_buffer5 = sp + 24|0;
  23756. $vararg_buffer3 = sp + 16|0;
  23757. $vararg_buffer1 = sp + 8|0;
  23758. $vararg_buffer = sp;
  23759. $3 = (_malloc($2)|0);
  23760. $4 = ($3|0)==(0|0);
  23761. if ($4) {
  23762. _TraceLog(2,12081,$vararg_buffer);
  23763. STACKTOP = sp;return ($3|0);
  23764. }
  23765. $5 = (_tinfl_decompress_mem_to_mem($3,$2,$0,$1,1)|0);
  23766. $6 = ($5|0)==(-1);
  23767. if ($6) {
  23768. _TraceLog(2,12120,$vararg_buffer1);
  23769. _free($3);
  23770. }
  23771. $7 = ($5|0)==($2|0);
  23772. if (!($7)) {
  23773. _TraceLog(2,12146,$vararg_buffer3);
  23774. HEAP32[$vararg_buffer5>>2] = $2;
  23775. _TraceLog(2,12209,$vararg_buffer5);
  23776. HEAP32[$vararg_buffer7>>2] = $5;
  23777. _TraceLog(2,12244,$vararg_buffer7);
  23778. }
  23779. HEAP32[$vararg_buffer10>>2] = $1;
  23780. $vararg_ptr13 = ((($vararg_buffer10)) + 4|0);
  23781. HEAP32[$vararg_ptr13>>2] = $5;
  23782. _TraceLog(0,12279,$vararg_buffer10);
  23783. STACKTOP = sp;return ($3|0);
  23784. }
  23785. function _tinfl_decompress_mem_to_mem($0,$1,$2,$3,$4) {
  23786. $0 = $0|0;
  23787. $1 = $1|0;
  23788. $2 = $2|0;
  23789. $3 = $3|0;
  23790. $4 = $4|0;
  23791. var $10 = 0, $11 = 0, $12 = 0, $13 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  23792. sp = STACKTOP;
  23793. STACKTOP = STACKTOP + 11008|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(11008|0);
  23794. $5 = sp + 11000|0;
  23795. $6 = sp;
  23796. $7 = sp + 8|0;
  23797. HEAP32[$5>>2] = $1;
  23798. HEAP32[$6>>2] = $3;
  23799. HEAP32[$7>>2] = 0;
  23800. $8 = $4 & -7;
  23801. $9 = $8 | 4;
  23802. $10 = (_tinfl_decompress($7,$2,$6,$0,$0,$5,$9)|0);
  23803. $11 = ($10|0)!=(0);
  23804. $12 = HEAP32[$5>>2]|0;
  23805. $13 = $11 ? -1 : $12;
  23806. STACKTOP = sp;return ($13|0);
  23807. }
  23808. function _tinfl_decompress($0,$1,$2,$3,$4,$5,$6) {
  23809. $0 = $0|0;
  23810. $1 = $1|0;
  23811. $2 = $2|0;
  23812. $3 = $3|0;
  23813. $4 = $4|0;
  23814. $5 = $5|0;
  23815. $6 = $6|0;
  23816. 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;
  23817. 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;
  23818. 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;
  23819. 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;
  23820. 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;
  23821. 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;
  23822. 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;
  23823. 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;
  23824. 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;
  23825. 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;
  23826. 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;
  23827. 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;
  23828. 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;
  23829. 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;
  23830. 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;
  23831. 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;
  23832. 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;
  23833. 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;
  23834. 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;
  23835. 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;
  23836. 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;
  23837. 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;
  23838. 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;
  23839. 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;
  23840. 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;
  23841. 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;
  23842. 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;
  23843. 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;
  23844. 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;
  23845. 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;
  23846. 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;
  23847. 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;
  23848. 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;
  23849. 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;
  23850. 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;
  23851. 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;
  23852. 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;
  23853. 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;
  23854. 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;
  23855. 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;
  23856. 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;
  23857. 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;
  23858. 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;
  23859. 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;
  23860. 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;
  23861. 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;
  23862. 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;
  23863. 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;
  23864. 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;
  23865. 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;
  23866. 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;
  23867. 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;
  23868. 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;
  23869. 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;
  23870. 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;
  23871. 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;
  23872. 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;
  23873. 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;
  23874. 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;
  23875. 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;
  23876. 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;
  23877. 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;
  23878. 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;
  23879. 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;
  23880. 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;
  23881. 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;
  23882. 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;
  23883. 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;
  23884. 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;
  23885. 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;
  23886. 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;
  23887. 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;
  23888. 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;
  23889. 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;
  23890. 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;
  23891. 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;
  23892. 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;
  23893. 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;
  23894. 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;
  23895. 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;
  23896. 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;
  23897. 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;
  23898. 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;
  23899. 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;
  23900. 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;
  23901. 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;
  23902. 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;
  23903. 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;
  23904. 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;
  23905. 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;
  23906. 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;
  23907. 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;
  23908. 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;
  23909. 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;
  23910. 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;
  23911. 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;
  23912. 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;
  23913. sp = STACKTOP;
  23914. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  23915. $7 = sp + 64|0;
  23916. $8 = sp;
  23917. $9 = HEAP32[$2>>2]|0;
  23918. $10 = (($1) + ($9)|0);
  23919. $11 = HEAP32[$5>>2]|0;
  23920. $12 = (($4) + ($11)|0);
  23921. $13 = $6 & 4;
  23922. $14 = ($13|0)!=(0);
  23923. $15 = $4;
  23924. $16 = $3;
  23925. $17 = $16 ^ -1;
  23926. $18 = (($15) + ($17))|0;
  23927. $19 = (($18) + ($11))|0;
  23928. $$1753 = $14 ? -1 : $19;
  23929. $20 = (($$1753) + 1)|0;
  23930. $21 = $20 & $$1753;
  23931. $22 = ($21|0)!=(0);
  23932. $23 = ($4>>>0)<($3>>>0);
  23933. $or$cond1702 = $23 | $22;
  23934. if ($or$cond1702) {
  23935. HEAP32[$5>>2] = 0;
  23936. HEAP32[$2>>2] = 0;
  23937. $$0951 = -3;
  23938. STACKTOP = sp;return ($$0951|0);
  23939. }
  23940. $24 = ((($0)) + 4|0);
  23941. $25 = HEAP32[$24>>2]|0;
  23942. $26 = ((($0)) + 56|0);
  23943. $27 = HEAP32[$26>>2]|0;
  23944. $28 = ((($0)) + 32|0);
  23945. $29 = HEAP32[$28>>2]|0;
  23946. $30 = ((($0)) + 36|0);
  23947. $31 = HEAP32[$30>>2]|0;
  23948. $32 = ((($0)) + 40|0);
  23949. $33 = HEAP32[$32>>2]|0;
  23950. $34 = ((($0)) + 60|0);
  23951. $35 = HEAP32[$34>>2]|0;
  23952. $36 = HEAP32[$0>>2]|0;
  23953. L5: do {
  23954. switch ($36|0) {
  23955. case 0: {
  23956. $37 = ((($0)) + 12|0);
  23957. HEAP32[$37>>2] = 0;
  23958. $38 = ((($0)) + 8|0);
  23959. HEAP32[$38>>2] = 0;
  23960. $39 = ((($0)) + 28|0);
  23961. HEAP32[$39>>2] = 1;
  23962. $40 = ((($0)) + 16|0);
  23963. HEAP32[$40>>2] = 1;
  23964. $41 = $6 & 1;
  23965. $42 = ($41|0)==(0);
  23966. if ($42) {
  23967. $$01416 = $35;$$01607 = $4;$$41511 = $1;$$5 = 0;$$51102 = 0;$$51208 = 0;$$51314 = 0;$$5996 = 0;
  23968. label = 14;
  23969. } else {
  23970. $43 = ($9|0)<(1);
  23971. if ($43) {
  23972. $$01097 = 0;$$01203 = 0;$$01309 = 0;$$0987 = 0;$$0991 = 0;
  23973. label = 6;
  23974. } else {
  23975. $$11098$ph = 0;$$11204$ph = 0;$$11310$ph = 0;$$1988$ph = 0;$$1992$ph = 0;
  23976. label = 8;
  23977. }
  23978. }
  23979. break;
  23980. }
  23981. case 1: {
  23982. $46 = ($9|0)>(0);
  23983. if ($46) {
  23984. $$11098$ph = $31;$$11204$ph = $33;$$11310$ph = $27;$$1988$ph = $25;$$1992$ph = $29;
  23985. label = 8;
  23986. } else {
  23987. $$01097 = $31;$$01203 = $33;$$01309 = $27;$$0987 = $25;$$0991 = $29;
  23988. label = 6;
  23989. }
  23990. break;
  23991. }
  23992. case 2: {
  23993. $53 = ($9|0)>(0);
  23994. if ($53) {
  23995. $$31206$ph = $33;$$31312$ph = $27;$$3990$ph = $25;$$3994$ph = $29;$$sink1705 = $1;
  23996. label = 12;
  23997. } else {
  23998. $$11508 = $1;$$21099 = $31;$$21205 = $33;$$21311 = $27;$$2989 = $25;$$2993 = $29;
  23999. label = 10;
  24000. }
  24001. break;
  24002. }
  24003. case 36: {
  24004. $$0960 = -1;$$891505 = $35;$$931084 = $29;$$931700 = $4;$$951192 = $31;$$951298 = $33;$$981605 = $1;$$99 = $25;$$991408 = $27;$$sink30 = 36;
  24005. label = 243;
  24006. break;
  24007. }
  24008. case 3: {
  24009. $75 = ($9|0)>(0);
  24010. if ($75) {
  24011. $$31419$ph = $35;$$31610$ph = $4;$$8$ph = $25;$$81105$ph = $31;$$81211$ph = $33;$$81317$ph = $27;$$8999$ph = $29;$$sink1710 = $1;
  24012. label = 18;
  24013. } else {
  24014. $$21418 = $35;$$21609 = $4;$$61513 = $1;$$7 = $25;$$71104 = $31;$$71210 = $33;$$71316 = $27;$$7998 = $29;
  24015. label = 16;
  24016. }
  24017. break;
  24018. }
  24019. case 5: {
  24020. $90 = ($9|0)>(0);
  24021. if ($90) {
  24022. $91 = ((($1)) + 1|0);
  24023. $92 = HEAP8[$1>>0]|0;
  24024. $93 = $92&255;
  24025. $$01412 = $93;$$111518 = $91;
  24026. } else {
  24027. $88 = $6 & 2;
  24028. $89 = ($88|0)==(0);
  24029. if ($89) {
  24030. $$01412 = 0;$$111518 = $1;
  24031. } else {
  24032. $$0960 = 1;$$891505 = $35;$$931084 = $29;$$931700 = $4;$$951192 = $31;$$951298 = $33;$$981605 = $1;$$99 = $25;$$991408 = $27;$$sink30 = 5;
  24033. label = 243;
  24034. break L5;
  24035. }
  24036. }
  24037. $94 = $$01412 << $25;
  24038. $95 = $94 | $27;
  24039. $96 = (($25) + 8)|0;
  24040. $$121519 = $$111518;$$13 = $96;$$131004 = $29;$$131216 = $33;$$131322 = $95;$$81424 = $35;$$81615 = $4;
  24041. label = 25;
  24042. break;
  24043. }
  24044. case 6: {
  24045. $106 = ($9|0)>(0);
  24046. if ($106) {
  24047. $$121428$ph = $35;$$121619$ph = $4;$$161113$ph = $31;$$17$ph = $25;$$171008$ph = $29;$$171220$ph = $33;$$171326$ph = $27;$$sink1713 = $1;
  24048. label = 32;
  24049. } else {
  24050. $$111427 = $35;$$111618 = $4;$$151112 = $31;$$151522 = $1;$$16 = $25;$$161007 = $29;$$161219 = $33;$$161325 = $27;
  24051. label = 30;
  24052. }
  24053. break;
  24054. }
  24055. case 7: {
  24056. $120 = ($9|0)>(0);
  24057. if ($120) {
  24058. $121 = ((($1)) + 1|0);
  24059. $122 = HEAP8[$1>>0]|0;
  24060. $$151431 = $35;$$151622 = $4;$$191116 = $31;$$191526 = $121;$$20 = $25;$$201011 = $29;$$201223 = $33;$$201329 = $27;$$sink12 = $122;
  24061. label = 39;
  24062. } else {
  24063. $$141430 = $35;$$141621 = $4;$$181115 = $31;$$181525 = $1;$$19 = $25;$$191010 = $29;$$191222 = $33;$$191328 = $27;
  24064. label = 36;
  24065. }
  24066. break;
  24067. }
  24068. case 39: {
  24069. $$171433 = $35;$$171624 = $4;$$211118 = $31;$$211528 = $1;$$22 = $25;$$221013 = $29;$$221225 = $33;$$221331 = $27;
  24070. label = 43;
  24071. break;
  24072. }
  24073. case 51: {
  24074. $152 = ($9|0)>(0);
  24075. if ($152) {
  24076. $$211437$ph = $35;$$211628$ph = $4;$$251122$ph = $31;$$26$ph = $25;$$261017$ph = $29;$$261229$ph = $33;$$261335$ph = $27;$$sink1716 = $1;
  24077. label = 49;
  24078. } else {
  24079. $$201436 = $35;$$201627 = $4;$$241121 = $31;$$241531 = $1;$$25 = $25;$$251016 = $29;$$251228 = $33;$$251334 = $27;
  24080. label = 47;
  24081. }
  24082. break;
  24083. }
  24084. case 52: {
  24085. $$231439 = $35;$$231630 = $4;$$271018 = $29;$$271124 = $31;$$271534 = $1;$$28 = $25;$$281231 = $33;$$281337 = $27;
  24086. label = 52;
  24087. break;
  24088. }
  24089. case 9: {
  24090. $$251441 = $35;$$251632 = $4;$$291020 = $29;$$291126 = $31;$$291536 = $1;$$30 = $25;$$301233 = $33;$$301339 = $27;
  24091. label = 55;
  24092. break;
  24093. }
  24094. case 38: {
  24095. $$261442 = $35;$$261633 = $4;$$301021 = $29;$$301127 = $31;$$301537 = $1;$$31 = $25;$$311234 = $33;$$311340 = $27;
  24096. label = 56;
  24097. break;
  24098. }
  24099. case 40: {
  24100. $$271443 = $35;$$271634 = $4;$$311022 = $29;$$311128 = $31;$$311538 = $1;$$32 = $25;$$321235 = $33;$$321341 = $27;
  24101. label = 58;
  24102. break;
  24103. }
  24104. case 10: {
  24105. $$281444 = $35;$$281635 = $4;$$321023 = $29;$$321129 = $31;$$321539 = $1;$$33 = $25;$$331236 = $33;$$331342 = $27;
  24106. label = 60;
  24107. break;
  24108. }
  24109. case 11: {
  24110. $193 = ($9|0)>(0);
  24111. if ($193) {
  24112. $$321448$ph = $35;$$321639$ph = $4;$$361027$ph = $29;$$361133$ph = $31;$$37$ph = $25;$$371240$ph = $33;$$371346$ph = $27;$$sink1719 = $1;
  24113. label = 66;
  24114. } else {
  24115. $$311447 = $35;$$311638 = $4;$$351026 = $29;$$351132 = $31;$$351542 = $1;$$36 = $25;$$361239 = $33;$$361345 = $27;
  24116. label = 64;
  24117. }
  24118. break;
  24119. }
  24120. case 14: {
  24121. $224 = ($9|0)>(0);
  24122. if ($224) {
  24123. $$371453$ph = $35;$$371644$ph = $4;$$411032$ph = $29;$$411138$ph = $31;$$42$ph = $25;$$421245$ph = $33;$$421351$ph = $27;$$sink1722 = $1;
  24124. label = 75;
  24125. } else {
  24126. $$361452 = $35;$$361643 = $4;$$401031 = $29;$$401137 = $31;$$401547 = $1;$$41 = $25;$$411244 = $33;$$411350 = $27;
  24127. label = 73;
  24128. }
  24129. break;
  24130. }
  24131. case 35: {
  24132. $$401456 = $35;$$401647 = $4;$$441035 = $29;$$441141 = $31;$$441551 = $1;$$45 = $25;$$451248 = $33;$$451354 = $27;
  24133. label = 86;
  24134. break;
  24135. }
  24136. case 16: {
  24137. $452 = ($9|0)>(0);
  24138. if ($452) {
  24139. $$441460$ph = $35;$$441651$ph = $4;$$481039$ph = $29;$$481145$ph = $31;$$49$ph = $25;$$491252$ph = $33;$$491358$ph = $27;$$sink1729 = $1;
  24140. label = 116;
  24141. } else {
  24142. $$431459 = $35;$$431650 = $4;$$471038 = $29;$$471144 = $31;$$471554 = $1;$$48 = $25;$$481251 = $33;$$481357 = $27;
  24143. label = 114;
  24144. }
  24145. break;
  24146. }
  24147. case 17: {
  24148. $$461462 = $35;$$461653 = $4;$$491040 = $29;$$501147 = $31;$$501557 = $1;$$51 = $25;$$511254 = $33;$$511360 = $27;
  24149. label = 125;
  24150. break;
  24151. }
  24152. case 18: {
  24153. $503 = ($9|0)>(0);
  24154. if ($503) {
  24155. $$491465$ph = $35;$$491656$ph = $4;$$521043$ph = $29;$$531150$ph = $31;$$54$ph = $25;$$541257$ph = $33;$$541363$ph = $27;$$sink1732 = $1;
  24156. label = 130;
  24157. } else {
  24158. $$481464 = $35;$$481655 = $4;$$511042 = $29;$$521149 = $31;$$521559 = $1;$$53 = $25;$$531256 = $33;$$531362 = $27;
  24159. label = 128;
  24160. }
  24161. break;
  24162. }
  24163. case 21: {
  24164. $$511467 = $35;$$511658 = $4;$$541045 = $29;$$551152 = $31;$$551562 = $1;$$56 = $25;$$561259 = $33;$$561365 = $27;
  24165. label = 136;
  24166. break;
  24167. }
  24168. case 23: {
  24169. $572 = ($9|0)>(0);
  24170. if ($572) {
  24171. $$571473$ph = $35;$$571664$ph = $4;$$601051$ph = $29;$$611158$ph = $31;$$62$ph = $25;$$621265$ph = $33;$$621371$ph = $27;$$sink1736 = $1;
  24172. label = 153;
  24173. } else {
  24174. $$561472 = $35;$$561663 = $4;$$591050 = $29;$$601157 = $31;$$601567 = $1;$$61 = $25;$$611264 = $33;$$611370 = $27;
  24175. label = 151;
  24176. }
  24177. break;
  24178. }
  24179. case 24: {
  24180. $$591475 = $35;$$591666 = $4;$$621053 = $29;$$621159 = $31;$$631570 = $1;$$64 = $25;$$641267 = $33;$$641373 = $27;
  24181. label = 160;
  24182. break;
  24183. }
  24184. case 25: {
  24185. $696 = ($9|0)>(0);
  24186. if ($696) {
  24187. $$631479$ph = $35;$$641671$ph = $4;$$661057$ph = $29;$$671164$ph = $31;$$681271$ph = $33;$$71$ph = $25;$$711380$ph = $27;$$sink1739 = $1;
  24188. label = 182;
  24189. } else {
  24190. $$621478 = $35;$$631670 = $4;$$651056 = $29;$$661163 = $31;$$671270 = $33;$$691576 = $1;$$70 = $25;$$701379 = $27;
  24191. label = 180;
  24192. }
  24193. break;
  24194. }
  24195. case 26: {
  24196. $737 = ($9|0)>(0);
  24197. if ($737) {
  24198. $$681484$ph = $35;$$691676$ph = $4;$$711062$ph = $29;$$721169$ph = $31;$$731276$ph = $33;$$76$ph = $25;$$761385$ph = $27;$$sink1743 = $1;
  24199. label = 195;
  24200. } else {
  24201. $$671483 = $35;$$681675 = $4;$$701061 = $29;$$711168 = $31;$$721275 = $33;$$741581 = $1;$$75 = $25;$$751384 = $27;
  24202. label = 193;
  24203. }
  24204. break;
  24205. }
  24206. case 27: {
  24207. $784 = ($9|0)>(0);
  24208. if ($784) {
  24209. $$721488$ph = $35;$$731680$ph = $4;$$741065$ph = $29;$$761173$ph = $31;$$761279$ph = $33;$$80$ph = $25;$$801389$ph = $27;$$sink1746 = $1;
  24210. label = 206;
  24211. } else {
  24212. $$711487 = $35;$$721679 = $4;$$731064 = $29;$$751172 = $31;$$751278 = $33;$$781585 = $1;$$79 = $25;$$791388 = $27;
  24213. label = 204;
  24214. }
  24215. break;
  24216. }
  24217. case 37: {
  24218. $$731489 = $35;$$761683 = $4;$$771068 = $29;$$791176 = $31;$$791282 = $33;$$821589 = $1;$$83 = $25;$$831392 = $27;
  24219. label = 210;
  24220. break;
  24221. }
  24222. case 53: {
  24223. $$751491 = $35;$$781685 = $4;$$791070 = $29;$$811178 = $31;$$811284 = $33;$$841591 = $1;$$85 = $25;$$851394 = $27;
  24224. label = 213;
  24225. break;
  24226. }
  24227. case 32: {
  24228. $842 = ($9|0)>(0);
  24229. if ($842) {
  24230. $843 = ((($1)) + 1|0);
  24231. $844 = HEAP8[$1>>0]|0;
  24232. $845 = $844&255;
  24233. $$0949 = $845;$$881595 = $843;
  24234. } else {
  24235. $840 = $6 & 2;
  24236. $841 = ($840|0)==(0);
  24237. if ($841) {
  24238. $$0949 = 0;$$881595 = $1;
  24239. } else {
  24240. $$0960 = 1;$$891505 = $35;$$931084 = $29;$$931700 = $4;$$951192 = $31;$$951298 = $33;$$981605 = $1;$$99 = $25;$$991408 = $27;$$sink30 = 32;
  24241. label = 243;
  24242. break L5;
  24243. }
  24244. }
  24245. $846 = $$0949 << $25;
  24246. $847 = $846 | $27;
  24247. $848 = (($25) + 8)|0;
  24248. $$801496 = $35;$$841075 = $29;$$841691 = $4;$$861289 = $33;$$891596 = $$881595;$$90 = $848;$$901399 = $847;
  24249. label = 226;
  24250. break;
  24251. }
  24252. case 41: {
  24253. $858 = ($9|0)>(0);
  24254. if ($858) {
  24255. $$841500$ph = $35;$$881079$ph = $29;$$881695$ph = $4;$$901187$ph = $31;$$901293$ph = $33;$$94$ph = $25;$$941403$ph = $27;$$sink1750 = $1;
  24256. label = 233;
  24257. } else {
  24258. $$831499 = $35;$$871078 = $29;$$871694 = $4;$$891186 = $31;$$891292 = $33;$$921599 = $1;$$93 = $25;$$931402 = $27;
  24259. label = 231;
  24260. }
  24261. break;
  24262. }
  24263. case 42: {
  24264. $871 = ($9|0)>(0);
  24265. if ($871) {
  24266. $872 = ((($1)) + 1|0);
  24267. $873 = HEAP8[$1>>0]|0;
  24268. $874 = $873&255;
  24269. $$0948 = $874;$$871503 = $35;$$911082 = $29;$$911698 = $4;$$931190 = $31;$$931296 = $33;$$961603 = $872;$$97 = $25;$$971406 = $27;
  24270. label = 241;
  24271. } else {
  24272. $$861502 = $35;$$901081 = $29;$$901697 = $4;$$921189 = $31;$$921295 = $33;$$951602 = $1;$$96 = $25;$$961405 = $27;
  24273. label = 237;
  24274. }
  24275. break;
  24276. }
  24277. case 34: {
  24278. $$881504 = $35;$$921083 = $29;$$921699 = $4;$$941191 = $31;$$941297 = $33;$$971604 = $1;$$98 = $25;$$981407 = $27;
  24279. label = 242;
  24280. break;
  24281. }
  24282. default: {
  24283. $$100 = $25;$$1001409 = $27;$$1961 = -1;$$901506 = $35;$$941085 = $29;$$941701 = $4;$$961193 = $31;$$961299 = $33;$$991606 = $1;
  24284. label = 244;
  24285. }
  24286. }
  24287. } while(0);
  24288. if ((label|0) == 6) {
  24289. $44 = $6 & 2;
  24290. $45 = ($44|0)==(0);
  24291. if ($45) {
  24292. $$01507 = $1;$$11098 = $$01097;$$11204 = $$01203;$$11310 = $$01309;$$1988 = $$0987;$$1992 = $$0991;$$sink3$shrunk = 0;
  24293. label = 9;
  24294. } else {
  24295. $$0960 = 1;$$891505 = $35;$$931084 = $$0991;$$931700 = $4;$$951192 = $$01097;$$951298 = $$01203;$$981605 = $1;$$99 = $$0987;$$991408 = $$01309;$$sink30 = 1;
  24296. label = 243;
  24297. }
  24298. }
  24299. else if ((label|0) == 8) {
  24300. $47 = ((($1)) + 1|0);
  24301. $48 = HEAP8[$1>>0]|0;
  24302. $$01507 = $47;$$11098 = $$11098$ph;$$11204 = $$11204$ph;$$11310 = $$11310$ph;$$1988 = $$1988$ph;$$1992 = $$1992$ph;$$sink3$shrunk = $48;
  24303. label = 9;
  24304. }
  24305. if ((label|0) == 9) {
  24306. $$sink3 = $$sink3$shrunk&255;
  24307. $49 = ((($0)) + 8|0);
  24308. HEAP32[$49>>2] = $$sink3;
  24309. $50 = ($$01507>>>0)<($10>>>0);
  24310. if ($50) {
  24311. $$31206$ph = $$11204;$$31312$ph = $$11310;$$3990$ph = $$1988;$$3994$ph = $$1992;$$sink1705 = $$01507;
  24312. label = 12;
  24313. } else {
  24314. $$11508 = $$01507;$$21099 = $$11098;$$21205 = $$11204;$$21311 = $$11310;$$2989 = $$1988;$$2993 = $$1992;
  24315. label = 10;
  24316. }
  24317. }
  24318. if ((label|0) == 10) {
  24319. $51 = $6 & 2;
  24320. $52 = ($51|0)==(0);
  24321. if ($52) {
  24322. $$21509 = $$11508;$$31206 = $$21205;$$31312 = $$21311;$$3990 = $$2989;$$3994 = $$2993;$$sink9$shrunk = 0;
  24323. label = 13;
  24324. } else {
  24325. $$0960 = 1;$$891505 = $35;$$931084 = $$2993;$$931700 = $4;$$951192 = $$21099;$$951298 = $$21205;$$981605 = $$11508;$$99 = $$2989;$$991408 = $$21311;$$sink30 = 2;
  24326. label = 243;
  24327. }
  24328. }
  24329. else if ((label|0) == 12) {
  24330. $54 = ((($$sink1705)) + 1|0);
  24331. $55 = HEAP8[$$sink1705>>0]|0;
  24332. $$21509 = $54;$$31206 = $$31206$ph;$$31312 = $$31312$ph;$$3990 = $$3990$ph;$$3994 = $$3994$ph;$$sink9$shrunk = $55;
  24333. label = 13;
  24334. }
  24335. if ((label|0) == 13) {
  24336. $$sink9 = $$sink9$shrunk&255;
  24337. $56 = ((($0)) + 12|0);
  24338. HEAP32[$56>>2] = $$sink9;
  24339. $57 = ((($0)) + 8|0);
  24340. $58 = HEAP32[$57>>2]|0;
  24341. $59 = $58 << 8;
  24342. $60 = $59 | $$sink9;
  24343. $61 = (($60>>>0) % 31)&-1;
  24344. $62 = $$sink9 & 32;
  24345. $63 = $61 | $62;
  24346. $64 = $58 & 15;
  24347. $65 = ($64|0)!=(8);
  24348. $not$ = ($63|0)!=(0);
  24349. $$1754 = $65 | $not$;
  24350. $66 = $58 >>> 4;
  24351. $67 = 256 << $66;
  24352. $68 = ($67>>>0)>(32768);
  24353. $69 = ($20>>>0)<($67>>>0);
  24354. $$ = $68 | $69;
  24355. $not$1755 = $14 ^ 1;
  24356. $70 = $$ & $not$1755;
  24357. $$31100$v = $70 | $$1754;
  24358. if ($$31100$v) {
  24359. $$0960 = -1;$$891505 = $35;$$931084 = $$3994;$$931700 = $4;$$951192 = 1;$$951298 = $$31206;$$981605 = $$21509;$$99 = $$3990;$$991408 = $$31312;$$sink30 = 36;
  24360. label = 243;
  24361. } else {
  24362. $$01416 = $35;$$01607 = $4;$$41511 = $$21509;$$5 = $$3990;$$51102 = 0;$$51208 = $$31206;$$51314 = $$31312;$$5996 = $$3994;
  24363. label = 14;
  24364. }
  24365. }
  24366. L46: while(1) {
  24367. switch (label|0) {
  24368. case 14: {
  24369. label = 0;
  24370. $71 = ($$5>>>0)<(3);
  24371. if ($71) {
  24372. $$11417 = $$01416;$$11608 = $$01607;$$51512 = $$41511;$$6 = $$5;$$61103 = $$51102;$$61209 = $$51208;$$61315 = $$51314;$$6997 = $$5996;
  24373. label = 15;
  24374. } else {
  24375. $$41420 = $$01416;$$41611 = $$01607;$$81515 = $$41511;$$9 = $$5;$$91000 = $$5996;$$91106 = $$51102;$$91212 = $$51208;$$91318 = $$51314;
  24376. label = 20;
  24377. }
  24378. break;
  24379. }
  24380. case 16: {
  24381. label = 0;
  24382. $73 = $6 & 2;
  24383. $74 = ($73|0)==(0);
  24384. if ($74) {
  24385. $$01413$shrunk = 0;$$31419 = $$21418;$$31610 = $$21609;$$71514 = $$61513;$$8 = $$7;$$81105 = $$71104;$$81211 = $$71210;$$81317 = $$71316;$$8999 = $$7998;
  24386. label = 19;
  24387. } else {
  24388. $$0960 = 1;$$891505 = $$21418;$$931084 = $$7998;$$931700 = $$21609;$$951192 = $$71104;$$951298 = $$71210;$$981605 = $$61513;$$99 = $$7;$$991408 = $$71316;$$sink30 = 3;
  24389. label = 243;
  24390. continue L46;
  24391. }
  24392. break;
  24393. }
  24394. case 18: {
  24395. label = 0;
  24396. $76 = ((($$sink1710)) + 1|0);
  24397. $77 = HEAP8[$$sink1710>>0]|0;
  24398. $$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;
  24399. label = 19;
  24400. break;
  24401. }
  24402. case 25: {
  24403. label = 0;
  24404. $97 = $$13 & 7;
  24405. $98 = $$131322 >>> $97;
  24406. $99 = (($$13) - ($97))|0;
  24407. $$131110 = 0;$$131520 = $$121519;$$14 = $99;$$141005 = $$131004;$$141217 = $$131216;$$141323 = $98;$$91425 = $$81424;$$91616 = $$81615;
  24408. label = 26;
  24409. break;
  24410. }
  24411. case 30: {
  24412. label = 0;
  24413. $104 = $6 & 2;
  24414. $105 = ($104|0)==(0);
  24415. if ($105) {
  24416. $$01411$shrunk = 0;$$121428 = $$111427;$$121619 = $$111618;$$161113 = $$151112;$$161523 = $$151522;$$17 = $$16;$$171008 = $$161007;$$171220 = $$161219;$$171326 = $$161325;
  24417. label = 33;
  24418. } else {
  24419. $$0960 = 1;$$891505 = $$111427;$$931084 = $$161007;$$931700 = $$111618;$$951192 = $$151112;$$951298 = $$161219;$$981605 = $$151522;$$99 = $$16;$$991408 = $$161325;$$sink30 = 6;
  24420. label = 243;
  24421. continue L46;
  24422. }
  24423. break;
  24424. }
  24425. case 32: {
  24426. label = 0;
  24427. $107 = ((($$sink1713)) + 1|0);
  24428. $108 = HEAP8[$$sink1713>>0]|0;
  24429. $$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;
  24430. label = 33;
  24431. break;
  24432. }
  24433. case 36: {
  24434. label = 0;
  24435. $118 = $6 & 2;
  24436. $119 = ($118|0)==(0);
  24437. if ($119) {
  24438. $$151431 = $$141430;$$151622 = $$141621;$$191116 = $$181115;$$191526 = $$181525;$$20 = $$19;$$201011 = $$191010;$$201223 = $$191222;$$201329 = $$191328;$$sink12 = 0;
  24439. label = 39;
  24440. continue L46;
  24441. } else {
  24442. $$0960 = 1;$$891505 = $$141430;$$931084 = $$191010;$$931700 = $$141621;$$951192 = $$181115;$$951298 = $$191222;$$981605 = $$181525;$$99 = $$19;$$991408 = $$191328;$$sink30 = 7;
  24443. label = 243;
  24444. continue L46;
  24445. }
  24446. break;
  24447. }
  24448. case 39: {
  24449. label = 0;
  24450. $$sink13 = (((($0)) + 10528|0) + ($$191116)|0);
  24451. HEAP8[$$sink13>>0] = $$sink12;
  24452. $$161432 = $$151431;$$161623 = $$151622;$$201117 = $$191116;$$201527 = $$191526;$$21 = $$20;$$211012 = $$201011;$$211224 = $$201223;$$211330 = $$201329;
  24453. label = 41;
  24454. break;
  24455. }
  24456. case 43: {
  24457. label = 0;
  24458. $$0960 = -1;$$891505 = $$171433;$$931084 = $$221013;$$931700 = $$171624;$$951192 = $$211118;$$951298 = $$221225;$$981605 = $$211528;$$99 = $$22;$$991408 = $$221331;$$sink30 = 39;
  24459. label = 243;
  24460. continue L46;
  24461. break;
  24462. }
  24463. case 47: {
  24464. label = 0;
  24465. $150 = $6 & 2;
  24466. $151 = ($150|0)==(0);
  24467. if ($151) {
  24468. $$01410$shrunk = 0;$$211437 = $$201436;$$211628 = $$201627;$$251122 = $$241121;$$251532 = $$241531;$$26 = $$25;$$261017 = $$251016;$$261229 = $$251228;$$261335 = $$251334;
  24469. label = 50;
  24470. } else {
  24471. $$0960 = 1;$$891505 = $$201436;$$931084 = $$251016;$$931700 = $$201627;$$951192 = $$241121;$$951298 = $$251228;$$981605 = $$241531;$$99 = $$25;$$991408 = $$251334;$$sink30 = 51;
  24472. label = 243;
  24473. continue L46;
  24474. }
  24475. break;
  24476. }
  24477. case 49: {
  24478. label = 0;
  24479. $153 = ((($$sink1716)) + 1|0);
  24480. $154 = HEAP8[$$sink1716>>0]|0;
  24481. $$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;
  24482. label = 50;
  24483. break;
  24484. }
  24485. case 52: {
  24486. label = 0;
  24487. $162 = ($$231630>>>0)<($12>>>0);
  24488. if (!($162)) {
  24489. $$0960 = 2;$$891505 = $$231439;$$931084 = $$271018;$$931700 = $$231630;$$951192 = $$271124;$$951298 = $$281231;$$981605 = $$271534;$$99 = $$28;$$991408 = $$281337;$$sink30 = 52;
  24490. label = 243;
  24491. continue L46;
  24492. }
  24493. $163 = $$271018&255;
  24494. $164 = ((($$231630)) + 1|0);
  24495. HEAP8[$$231630>>0] = $163;
  24496. $165 = (($$271124) + -1)|0;
  24497. $$181434 = $$231439;$$181625 = $164;$$221119 = $165;$$221529 = $$271534;$$23 = $$28;$$231014 = $$271018;$$231226 = $$281231;$$231332 = $$281337;
  24498. label = 44;
  24499. break;
  24500. }
  24501. case 55: {
  24502. label = 0;
  24503. $167 = ($$251632>>>0)<($12>>>0);
  24504. if ($167) {
  24505. $$261442 = $$251441;$$261633 = $$251632;$$301021 = $$291020;$$301127 = $$291126;$$301537 = $$291536;$$31 = $$30;$$311234 = $$301233;$$311340 = $$301339;
  24506. label = 56;
  24507. continue L46;
  24508. } else {
  24509. $$0960 = 2;$$891505 = $$251441;$$931084 = $$291020;$$931700 = $$251632;$$951192 = $$291126;$$951298 = $$301233;$$981605 = $$291536;$$99 = $$30;$$991408 = $$301339;$$sink30 = 9;
  24510. label = 243;
  24511. continue L46;
  24512. }
  24513. break;
  24514. }
  24515. case 56: {
  24516. label = 0;
  24517. $168 = ($$301537>>>0)<($10>>>0);
  24518. if ($168) {
  24519. $171 = $12;
  24520. $172 = $$261633;
  24521. $173 = (($171) - ($172))|0;
  24522. $174 = $10;
  24523. $175 = $$301537;
  24524. $176 = (($174) - ($175))|0;
  24525. $177 = ($173>>>0)<($176>>>0);
  24526. $$sink17 = $177 ? $12 : $10;
  24527. $$sink16 = $177 ? $$261633 : $$301537;
  24528. $178 = $$sink17;
  24529. $179 = $$sink16;
  24530. $180 = (($178) - ($179))|0;
  24531. $181 = ($180>>>0)<($$301127>>>0);
  24532. $$$301127 = $181 ? $180 : $$301127;
  24533. _memcpy(($$261633|0),($$301537|0),($$$301127|0))|0;
  24534. $182 = (($$301537) + ($$$301127)|0);
  24535. $183 = (($$261633) + ($$$301127)|0);
  24536. $184 = (($$301127) - ($$$301127))|0;
  24537. $$241440 = $$261442;$$241631 = $183;$$281019 = $$301021;$$281125 = $184;$$281535 = $182;$$29 = $$31;$$291232 = $$311234;$$291338 = $$311340;
  24538. label = 54;
  24539. break;
  24540. } else {
  24541. $169 = $6 & 2;
  24542. $170 = ($169|0)==(0);
  24543. if ($170) {
  24544. $$271443 = $$261442;$$271634 = $$261633;$$311022 = $$301021;$$311128 = $$301127;$$311538 = $$301537;$$32 = $$31;$$321235 = $$311234;$$321341 = $$311340;
  24545. label = 58;
  24546. continue L46;
  24547. } else {
  24548. $$0960 = 1;$$891505 = $$261442;$$931084 = $$301021;$$931700 = $$261633;$$951192 = $$301127;$$951298 = $$311234;$$981605 = $$301537;$$99 = $$31;$$991408 = $$311340;$$sink30 = 38;
  24549. label = 243;
  24550. continue L46;
  24551. }
  24552. }
  24553. break;
  24554. }
  24555. case 58: {
  24556. label = 0;
  24557. $$0960 = -1;$$891505 = $$271443;$$931084 = $$311022;$$931700 = $$271634;$$951192 = $$311128;$$951298 = $$321235;$$981605 = $$311538;$$99 = $$32;$$991408 = $$321341;$$sink30 = 40;
  24558. label = 243;
  24559. continue L46;
  24560. break;
  24561. }
  24562. case 60: {
  24563. label = 0;
  24564. $$0960 = -1;$$891505 = $$281444;$$931084 = $$321023;$$931700 = $$281635;$$951192 = $$321129;$$951298 = $$331236;$$981605 = $$321539;$$99 = $$33;$$991408 = $$331342;$$sink30 = 10;
  24565. label = 243;
  24566. continue L46;
  24567. break;
  24568. }
  24569. case 64: {
  24570. label = 0;
  24571. $191 = $6 & 2;
  24572. $192 = ($191|0)==(0);
  24573. if ($192) {
  24574. $$01300$shrunk = 0;$$321448 = $$311447;$$321639 = $$311638;$$361027 = $$351026;$$361133 = $$351132;$$361543 = $$351542;$$37 = $$36;$$371240 = $$361239;$$371346 = $$361345;
  24575. label = 67;
  24576. } else {
  24577. $$0960 = 1;$$891505 = $$311447;$$931084 = $$351026;$$931700 = $$311638;$$951192 = $$351132;$$951298 = $$361239;$$981605 = $$351542;$$99 = $$36;$$991408 = $$361345;$$sink30 = 11;
  24578. label = 243;
  24579. continue L46;
  24580. }
  24581. break;
  24582. }
  24583. case 66: {
  24584. label = 0;
  24585. $194 = ((($$sink1719)) + 1|0);
  24586. $195 = HEAP8[$$sink1719>>0]|0;
  24587. $$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;
  24588. label = 67;
  24589. break;
  24590. }
  24591. case 73: {
  24592. label = 0;
  24593. $222 = $6 & 2;
  24594. $223 = ($222|0)==(0);
  24595. if ($223) {
  24596. $$01202$shrunk = 0;$$371453 = $$361452;$$371644 = $$361643;$$411032 = $$401031;$$411138 = $$401137;$$411548 = $$401547;$$42 = $$41;$$421245 = $$411244;$$421351 = $$411350;
  24597. label = 76;
  24598. } else {
  24599. $$0960 = 1;$$891505 = $$361452;$$931084 = $$401031;$$931700 = $$361643;$$951192 = $$401137;$$951298 = $$411244;$$981605 = $$401547;$$99 = $$41;$$991408 = $$411350;$$sink30 = 14;
  24600. label = 243;
  24601. continue L46;
  24602. }
  24603. break;
  24604. }
  24605. case 75: {
  24606. label = 0;
  24607. $225 = ((($$sink1722)) + 1|0);
  24608. $226 = HEAP8[$$sink1722>>0]|0;
  24609. $$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;
  24610. label = 76;
  24611. break;
  24612. }
  24613. case 86: {
  24614. label = 0;
  24615. $$0960 = -1;$$891505 = $$401456;$$931084 = $$441035;$$931700 = $$401647;$$951192 = $$441141;$$951298 = $$451248;$$981605 = $$441551;$$99 = $$45;$$991408 = $$451354;$$sink30 = 35;
  24616. label = 243;
  24617. continue L46;
  24618. break;
  24619. }
  24620. case 114: {
  24621. label = 0;
  24622. $450 = $6 & 2;
  24623. $451 = ($450|0)==(0);
  24624. if ($451) {
  24625. $$0980$shrunk = 0;$$441460 = $$431459;$$441651 = $$431650;$$481039 = $$471038;$$481145 = $$471144;$$481555 = $$471554;$$49 = $$48;$$491252 = $$481251;$$491358 = $$481357;
  24626. label = 117;
  24627. } else {
  24628. $$0960 = 1;$$891505 = $$431459;$$931084 = $$471038;$$931700 = $$431650;$$951192 = $$471144;$$951298 = $$481251;$$981605 = $$471554;$$99 = $$48;$$991408 = $$481357;$$sink30 = 16;
  24629. label = 243;
  24630. continue L46;
  24631. }
  24632. break;
  24633. }
  24634. case 116: {
  24635. label = 0;
  24636. $453 = ((($$sink1729)) + 1|0);
  24637. $454 = HEAP8[$$sink1729>>0]|0;
  24638. $$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;
  24639. label = 117;
  24640. break;
  24641. }
  24642. case 125: {
  24643. label = 0;
  24644. $$0960 = -1;$$891505 = $$461462;$$931084 = $$491040;$$931700 = $$461653;$$951192 = $$501147;$$951298 = $$511254;$$981605 = $$501557;$$99 = $$51;$$991408 = $$511360;$$sink30 = 17;
  24645. label = 243;
  24646. continue L46;
  24647. break;
  24648. }
  24649. case 128: {
  24650. label = 0;
  24651. $501 = $6 & 2;
  24652. $502 = ($501|0)==(0);
  24653. if ($502) {
  24654. $$0979$shrunk = 0;$$491465 = $$481464;$$491656 = $$481655;$$521043 = $$511042;$$531150 = $$521149;$$531560 = $$521559;$$54 = $$53;$$541257 = $$531256;$$541363 = $$531362;
  24655. label = 131;
  24656. } else {
  24657. $$0960 = 1;$$891505 = $$481464;$$931084 = $$511042;$$931700 = $$481655;$$951192 = $$521149;$$951298 = $$531256;$$981605 = $$521559;$$99 = $$53;$$991408 = $$531362;$$sink30 = 18;
  24658. label = 243;
  24659. continue L46;
  24660. }
  24661. break;
  24662. }
  24663. case 130: {
  24664. label = 0;
  24665. $504 = ((($$sink1732)) + 1|0);
  24666. $505 = HEAP8[$$sink1732>>0]|0;
  24667. $$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;
  24668. label = 131;
  24669. break;
  24670. }
  24671. case 136: {
  24672. label = 0;
  24673. $$0960 = -1;$$891505 = $$511467;$$931084 = $$541045;$$931700 = $$511658;$$951192 = $$551152;$$951298 = $$561259;$$981605 = $$551562;$$99 = $$56;$$991408 = $$561365;$$sink30 = 21;
  24674. label = 243;
  24675. continue L46;
  24676. break;
  24677. }
  24678. case 151: {
  24679. label = 0;
  24680. $570 = $6 & 2;
  24681. $571 = ($570|0)==(0);
  24682. if ($571) {
  24683. $$0971$shrunk = 0;$$571473 = $$561472;$$571664 = $$561663;$$601051 = $$591050;$$611158 = $$601157;$$611568 = $$601567;$$62 = $$61;$$621265 = $$611264;$$621371 = $$611370;
  24684. label = 154;
  24685. } else {
  24686. $$0960 = 1;$$891505 = $$561472;$$931084 = $$591050;$$931700 = $$561663;$$951192 = $$601157;$$951298 = $$611264;$$981605 = $$601567;$$99 = $$61;$$991408 = $$611370;$$sink30 = 23;
  24687. label = 243;
  24688. continue L46;
  24689. }
  24690. break;
  24691. }
  24692. case 153: {
  24693. label = 0;
  24694. $573 = ((($$sink1736)) + 1|0);
  24695. $574 = HEAP8[$$sink1736>>0]|0;
  24696. $$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;
  24697. label = 154;
  24698. break;
  24699. }
  24700. case 160: {
  24701. label = 0;
  24702. $610 = ($$591666>>>0)<($12>>>0);
  24703. if (!($610)) {
  24704. $$0960 = 2;$$891505 = $$591475;$$931084 = $$621053;$$931700 = $$591666;$$951192 = $$621159;$$951298 = $$641267;$$981605 = $$631570;$$99 = $$64;$$991408 = $$641373;$$sink30 = 24;
  24705. label = 243;
  24706. continue L46;
  24707. }
  24708. $611 = $$621159&255;
  24709. $612 = ((($$591666)) + 1|0);
  24710. HEAP8[$$591666>>0] = $611;
  24711. $$541470$ph = $$591475;$$541661$ph = $612;$$571048$ph = $$621053;$$581155$ph = $$621159;$$581565$ph = $$631570;$$59$ph = $$64;$$591262$ph = $$641267;$$591368$ph = $$641373;
  24712. label = 140;
  24713. break;
  24714. }
  24715. case 180: {
  24716. label = 0;
  24717. $694 = $6 & 2;
  24718. $695 = ($694|0)==(0);
  24719. if ($695) {
  24720. $$0959$shrunk = 0;$$631479 = $$621478;$$641671 = $$631670;$$661057 = $$651056;$$671164 = $$661163;$$681271 = $$671270;$$701577 = $$691576;$$71 = $$70;$$711380 = $$701379;
  24721. label = 183;
  24722. } else {
  24723. $$0960 = 1;$$891505 = $$621478;$$931084 = $$651056;$$931700 = $$631670;$$951192 = $$661163;$$951298 = $$671270;$$981605 = $$691576;$$99 = $$70;$$991408 = $$701379;$$sink30 = 25;
  24724. label = 243;
  24725. continue L46;
  24726. }
  24727. break;
  24728. }
  24729. case 182: {
  24730. label = 0;
  24731. $697 = ((($$sink1739)) + 1|0);
  24732. $698 = HEAP8[$$sink1739>>0]|0;
  24733. $$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;
  24734. label = 183;
  24735. break;
  24736. }
  24737. case 193: {
  24738. label = 0;
  24739. $735 = $6 & 2;
  24740. $736 = ($735|0)==(0);
  24741. if ($736) {
  24742. $$0952$shrunk = 0;$$681484 = $$671483;$$691676 = $$681675;$$711062 = $$701061;$$721169 = $$711168;$$731276 = $$721275;$$751582 = $$741581;$$76 = $$75;$$761385 = $$751384;
  24743. label = 196;
  24744. } else {
  24745. $$0960 = 1;$$891505 = $$671483;$$931084 = $$701061;$$931700 = $$681675;$$951192 = $$711168;$$951298 = $$721275;$$981605 = $$741581;$$99 = $$75;$$991408 = $$751384;$$sink30 = 26;
  24746. label = 243;
  24747. continue L46;
  24748. }
  24749. break;
  24750. }
  24751. case 195: {
  24752. label = 0;
  24753. $738 = ((($$sink1743)) + 1|0);
  24754. $739 = HEAP8[$$sink1743>>0]|0;
  24755. $$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;
  24756. label = 196;
  24757. break;
  24758. }
  24759. case 204: {
  24760. label = 0;
  24761. $782 = $6 & 2;
  24762. $783 = ($782|0)==(0);
  24763. if ($783) {
  24764. $$0950$shrunk = 0;$$721488 = $$711487;$$731680 = $$721679;$$741065 = $$731064;$$761173 = $$751172;$$761279 = $$751278;$$791586 = $$781585;$$80 = $$79;$$801389 = $$791388;
  24765. label = 207;
  24766. } else {
  24767. $$0960 = 1;$$891505 = $$711487;$$931084 = $$731064;$$931700 = $$721679;$$951192 = $$751172;$$951298 = $$751278;$$981605 = $$781585;$$99 = $$79;$$991408 = $$791388;$$sink30 = 27;
  24768. label = 243;
  24769. continue L46;
  24770. }
  24771. break;
  24772. }
  24773. case 206: {
  24774. label = 0;
  24775. $785 = ((($$sink1746)) + 1|0);
  24776. $786 = HEAP8[$$sink1746>>0]|0;
  24777. $$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;
  24778. label = 207;
  24779. break;
  24780. }
  24781. case 210: {
  24782. label = 0;
  24783. $$0960 = -1;$$891505 = $$731489;$$931084 = $$771068;$$931700 = $$761683;$$951192 = $$791176;$$951298 = $$791282;$$981605 = $$821589;$$99 = $$83;$$991408 = $$831392;$$sink30 = 37;
  24784. label = 243;
  24785. continue L46;
  24786. break;
  24787. }
  24788. case 213: {
  24789. label = 0;
  24790. $809 = ($$781685>>>0)<($12>>>0);
  24791. if (!($809)) {
  24792. $$0960 = 2;$$891505 = $$751491;$$931084 = $$791070;$$931700 = $$781685;$$951192 = $$811178;$$951298 = $$811284;$$981605 = $$841591;$$99 = $$85;$$991408 = $$851394;$$sink30 = 53;
  24793. label = 243;
  24794. continue L46;
  24795. }
  24796. $810 = (($$751491) + 1)|0;
  24797. $811 = (($$751491) - ($$791070))|0;
  24798. $812 = $811 & $$1753;
  24799. $813 = (($3) + ($812)|0);
  24800. $814 = HEAP8[$813>>0]|0;
  24801. $815 = ((($$781685)) + 1|0);
  24802. HEAP8[$$781685>>0] = $814;
  24803. $$741490 = $810;$$771684 = $815;$$781069 = $$791070;$$801177 = $$811178;$$801283 = $$811284;$$831590 = $$841591;$$84 = $$85;$$841393 = $$851394;
  24804. label = 212;
  24805. break;
  24806. }
  24807. case 226: {
  24808. label = 0;
  24809. $849 = $$90 & 7;
  24810. $850 = $$901399 >>> $849;
  24811. $851 = (($$90) - ($849))|0;
  24812. $$811497 = $$801496;$$851076 = $$841075;$$851692 = $$841691;$$871184 = 0;$$871290 = $$861289;$$901597 = $$891596;$$91 = $851;$$911400 = $850;
  24813. label = 227;
  24814. break;
  24815. }
  24816. case 231: {
  24817. label = 0;
  24818. $856 = $6 & 2;
  24819. $857 = ($856|0)==(0);
  24820. if ($857) {
  24821. $$0947$shrunk = 0;$$841500 = $$831499;$$881079 = $$871078;$$881695 = $$871694;$$901187 = $$891186;$$901293 = $$891292;$$931600 = $$921599;$$94 = $$93;$$941403 = $$931402;
  24822. label = 234;
  24823. } else {
  24824. $$0960 = 1;$$891505 = $$831499;$$931084 = $$871078;$$931700 = $$871694;$$951192 = $$891186;$$951298 = $$891292;$$981605 = $$921599;$$99 = $$93;$$991408 = $$931402;$$sink30 = 41;
  24825. label = 243;
  24826. continue L46;
  24827. }
  24828. break;
  24829. }
  24830. case 233: {
  24831. label = 0;
  24832. $859 = ((($$sink1750)) + 1|0);
  24833. $860 = HEAP8[$$sink1750>>0]|0;
  24834. $$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;
  24835. label = 234;
  24836. break;
  24837. }
  24838. case 237: {
  24839. label = 0;
  24840. $869 = $6 & 2;
  24841. $870 = ($869|0)==(0);
  24842. if ($870) {
  24843. $$0948 = 0;$$871503 = $$861502;$$911082 = $$901081;$$911698 = $$901697;$$931190 = $$921189;$$931296 = $$921295;$$961603 = $$951602;$$97 = $$96;$$971406 = $$961405;
  24844. label = 241;
  24845. continue L46;
  24846. } else {
  24847. $$0960 = 1;$$891505 = $$861502;$$931084 = $$901081;$$931700 = $$901697;$$951192 = $$921189;$$951298 = $$921295;$$981605 = $$951602;$$99 = $$96;$$991408 = $$961405;$$sink30 = 42;
  24848. label = 243;
  24849. continue L46;
  24850. }
  24851. break;
  24852. }
  24853. case 241: {
  24854. label = 0;
  24855. $878 = ((($0)) + 16|0);
  24856. $879 = HEAP32[$878>>2]|0;
  24857. $880 = $879 << 8;
  24858. $881 = $880 | $$0948;
  24859. HEAP32[$878>>2] = $881;
  24860. $882 = (($$931190) + 1)|0;
  24861. $$811497 = $$871503;$$851076 = $$911082;$$851692 = $$911698;$$871184 = $882;$$871290 = $$931296;$$901597 = $$961603;$$91 = $$97;$$911400 = $$971406;
  24862. label = 227;
  24863. break;
  24864. }
  24865. case 242: {
  24866. label = 0;
  24867. $$0960 = 0;$$891505 = $$881504;$$931084 = $$921083;$$931700 = $$921699;$$951192 = $$941191;$$951298 = $$941297;$$981605 = $$971604;$$99 = $$98;$$991408 = $$981407;$$sink30 = 34;
  24868. label = 243;
  24869. continue L46;
  24870. break;
  24871. }
  24872. case 243: {
  24873. label = 0;
  24874. HEAP32[$0>>2] = $$sink30;
  24875. $$100 = $$99;$$1001409 = $$991408;$$1961 = $$0960;$$901506 = $$891505;$$941085 = $$931084;$$941701 = $$931700;$$961193 = $$951192;$$961299 = $$951298;$$991606 = $$981605;
  24876. label = 244;
  24877. continue L46;
  24878. break;
  24879. }
  24880. case 244: {
  24881. label = 0;
  24882. HEAP32[$24>>2] = $$100;
  24883. HEAP32[$26>>2] = $$1001409;
  24884. HEAP32[$28>>2] = $$941085;
  24885. HEAP32[$30>>2] = $$961193;
  24886. HEAP32[$32>>2] = $$961299;
  24887. HEAP32[$34>>2] = $$901506;
  24888. $883 = $$991606;
  24889. $884 = $1;
  24890. $885 = (($883) - ($884))|0;
  24891. HEAP32[$2>>2] = $885;
  24892. $886 = $$941701;
  24893. $887 = $4;
  24894. $888 = (($886) - ($887))|0;
  24895. HEAP32[$5>>2] = $888;
  24896. $889 = $6 & 9;
  24897. $890 = ($889|0)!=(0);
  24898. $891 = ($$1961|0)>(-1);
  24899. $or$cond29 = $890 & $891;
  24900. if ($or$cond29) {
  24901. break L46;
  24902. } else {
  24903. $$0951 = $$1961;
  24904. label = 258;
  24905. break L46;
  24906. }
  24907. break;
  24908. }
  24909. }
  24910. switch (label|0) {
  24911. case 19: {
  24912. label = 0;
  24913. $$01413 = $$01413$shrunk&255;
  24914. $78 = $$01413 << $$8;
  24915. $79 = $78 | $$81317;
  24916. $80 = (($$8) + 8)|0;
  24917. $81 = ($80>>>0)<(3);
  24918. if ($81) {
  24919. $$11417 = $$31419;$$11608 = $$31610;$$51512 = $$71514;$$6 = $80;$$61103 = $$81105;$$61209 = $$81211;$$61315 = $79;$$6997 = $$8999;
  24920. label = 15;
  24921. } else {
  24922. $$41420 = $$31419;$$41611 = $$31610;$$81515 = $$71514;$$9 = $80;$$91000 = $$8999;$$91106 = $$81105;$$91212 = $$81211;$$91318 = $79;
  24923. label = 20;
  24924. }
  24925. break;
  24926. }
  24927. case 33: {
  24928. label = 0;
  24929. $$01411 = $$01411$shrunk&255;
  24930. $109 = $$01411 << $$17;
  24931. $110 = $109 | $$171326;
  24932. $111 = (($$17) + 8)|0;
  24933. $112 = ($$17>>>0)>(4294967287);
  24934. if ($112) {
  24935. $$101426 = $$121428;$$101617 = $$121619;$$141111 = $$161113;$$141521 = $$161523;$$15 = $111;$$151006 = $$171008;$$151218 = $$171220;$$151324 = $110;
  24936. label = 29;
  24937. } else {
  24938. $$131429 = $$121428;$$131620 = $$121619;$$171114 = $$161113;$$171524 = $$161523;$$18 = $111;$$181009 = $$171008;$$181221 = $$171220;$$181327 = $110;
  24939. label = 34;
  24940. }
  24941. break;
  24942. }
  24943. case 50: {
  24944. label = 0;
  24945. $$01410 = $$01410$shrunk&255;
  24946. $155 = $$01410 << $$26;
  24947. $156 = $155 | $$261335;
  24948. $157 = (($$26) + 8)|0;
  24949. $158 = ($$26>>>0)>(4294967287);
  24950. if ($158) {
  24951. $$191435 = $$211437;$$191626 = $$211628;$$231120 = $$251122;$$231530 = $$251532;$$24 = $157;$$241015 = $$261017;$$241227 = $$261229;$$241333 = $156;
  24952. label = 46;
  24953. } else {
  24954. $$221438 = $$211437;$$221629 = $$211628;$$261123 = $$251122;$$261533 = $$251532;$$27 = $157;$$271230 = $$261229;$$271336 = $156;
  24955. label = 51;
  24956. }
  24957. break;
  24958. }
  24959. case 67: {
  24960. label = 0;
  24961. $$01300 = $$01300$shrunk&255;
  24962. $196 = $$01300 << $$37;
  24963. $197 = $196 | $$371346;
  24964. $198 = (($$37) + 8)|0;
  24965. $199 = (12336 + ($$361133)|0);
  24966. $200 = HEAP8[$199>>0]|0;
  24967. $201 = $200 << 24 >> 24;
  24968. $202 = ($198>>>0)<($201>>>0);
  24969. if ($202) {
  24970. $$301446 = $$321448;$$301637 = $$321639;$$341025 = $$361027;$$341131 = $$361133;$$341541 = $$361543;$$35 = $198;$$351238 = $$371240;$$351344 = $197;
  24971. label = 63;
  24972. } else {
  24973. $$331449 = $$321448;$$331640 = $$321639;$$371028 = $$361027;$$371134 = $$361133;$$371544 = $$361543;$$38 = $198;$$381241 = $$371240;$$381347 = $197;
  24974. label = 68;
  24975. }
  24976. break;
  24977. }
  24978. case 76: {
  24979. label = 0;
  24980. $$01202 = $$01202$shrunk&255;
  24981. $227 = $$01202 << $$42;
  24982. $228 = $227 | $$421351;
  24983. $229 = (($$42) + 8)|0;
  24984. $230 = ($229>>>0)<(3);
  24985. if ($230) {
  24986. $$351451 = $$371453;$$351642 = $$371644;$$391030 = $$411032;$$391136 = $$411138;$$391546 = $$411548;$$40 = $229;$$401243 = $$421245;$$401349 = $228;
  24987. label = 72;
  24988. } else {
  24989. $$381454 = $$371453;$$381645 = $$371644;$$421033 = $$411032;$$421139 = $$411138;$$421549 = $$411548;$$43 = $229;$$431246 = $$421245;$$431352 = $228;
  24990. label = 77;
  24991. }
  24992. break;
  24993. }
  24994. case 117: {
  24995. label = 0;
  24996. $$0980 = $$0980$shrunk&255;
  24997. $455 = $$0980 << $$49;
  24998. $456 = $455 | $$491358;
  24999. $457 = (($$49) + 8)|0;
  25000. $458 = ($457>>>0)<(15);
  25001. if ($458) {
  25002. $$421458 = $$441460;$$421649 = $$441651;$$461037 = $$481039;$$461143 = $$481145;$$461553 = $$481555;$$47 = $457;$$471250 = $$491252;$$471356 = $456;
  25003. label = 108;
  25004. } else {
  25005. $$451461 = $$441460;$$451652 = $$441651;$$491146 = $$481145;$$491556 = $$481555;$$50 = $457;$$501253 = $$491252;$$501359 = $456;
  25006. label = 119;
  25007. }
  25008. break;
  25009. }
  25010. case 131: {
  25011. label = 0;
  25012. $$0979 = $$0979$shrunk&255;
  25013. $506 = $$0979 << $$54;
  25014. $507 = $506 | $$541363;
  25015. $508 = (($$54) + 8)|0;
  25016. $509 = ($508>>>0)<($$541257>>>0);
  25017. if ($509) {
  25018. $$471463 = $$491465;$$471654 = $$491656;$$501041 = $$521043;$$511148 = $$531150;$$511558 = $$531560;$$52 = $508;$$521255 = $$541257;$$521361 = $507;
  25019. label = 127;
  25020. } else {
  25021. $$501466 = $$491465;$$501657 = $$491656;$$531044 = $$521043;$$541151 = $$531150;$$541561 = $$531560;$$55 = $508;$$551258 = $$541257;$$551364 = $507;
  25022. label = 132;
  25023. }
  25024. break;
  25025. }
  25026. case 154: {
  25027. label = 0;
  25028. $$0971 = $$0971$shrunk&255;
  25029. $575 = $$0971 << $$62;
  25030. $576 = $575 | $$621371;
  25031. $577 = (($$62) + 8)|0;
  25032. $578 = ($577>>>0)<(15);
  25033. if ($578) {
  25034. $$551471 = $$571473;$$551662 = $$571664;$$581049 = $$601051;$$591156 = $$611158;$$591566 = $$611568;$$60 = $577;$$601263 = $$621265;$$601369 = $576;
  25035. label = 145;
  25036. } else {
  25037. $$581474 = $$571473;$$581665 = $$571664;$$611052 = $$601051;$$621569 = $$611568;$$63 = $577;$$631266 = $$621265;$$631372 = $576;
  25038. label = 156;
  25039. }
  25040. break;
  25041. }
  25042. case 183: {
  25043. label = 0;
  25044. $$0959 = $$0959$shrunk&255;
  25045. $699 = $$0959 << $$71;
  25046. $700 = $699 | $$711380;
  25047. $701 = (($$71) + 8)|0;
  25048. $702 = ($701>>>0)<($$681271>>>0);
  25049. if ($702) {
  25050. $$611477 = $$631479;$$621669 = $$641671;$$641055 = $$661057;$$651162 = $$671164;$$661269 = $$681271;$$681575 = $$701577;$$69 = $701;$$691378 = $700;
  25051. label = 179;
  25052. } else {
  25053. $$641480 = $$631479;$$651672 = $$641671;$$671058 = $$661057;$$681165 = $$671164;$$691272 = $$681271;$$711578 = $$701577;$$72 = $701;$$721381 = $700;
  25054. label = 184;
  25055. }
  25056. break;
  25057. }
  25058. case 196: {
  25059. label = 0;
  25060. $$0952 = $$0952$shrunk&255;
  25061. $740 = $$0952 << $$76;
  25062. $741 = $740 | $$761385;
  25063. $742 = (($$76) + 8)|0;
  25064. $743 = ($742>>>0)<(15);
  25065. if ($743) {
  25066. $$661482 = $$681484;$$671674 = $$691676;$$691060 = $$711062;$$701167 = $$721169;$$711274 = $$731276;$$731580 = $$751582;$$74 = $742;$$741383 = $741;
  25067. label = 187;
  25068. } else {
  25069. $$691485 = $$681484;$$701677 = $$691676;$$731170 = $$721169;$$761583 = $$751582;$$77 = $742;$$771386 = $741;
  25070. label = 198;
  25071. }
  25072. break;
  25073. }
  25074. case 207: {
  25075. label = 0;
  25076. $$0950 = $$0950$shrunk&255;
  25077. $787 = $$0950 << $$80;
  25078. $788 = $787 | $$801389;
  25079. $789 = (($$80) + 8)|0;
  25080. $790 = ($789>>>0)<($$761279>>>0);
  25081. if ($790) {
  25082. $$701486 = $$721488;$$711678 = $$731680;$$721063 = $$741065;$$741171 = $$761173;$$741277 = $$761279;$$771584 = $$791586;$$78 = $789;$$781387 = $788;
  25083. label = 203;
  25084. } else {
  25085. $$741681 = $$731680;$$751066 = $$741065;$$771174 = $$761173;$$771280 = $$761279;$$801587 = $$791586;$$81 = $789;$$811390 = $788;
  25086. label = 208;
  25087. }
  25088. break;
  25089. }
  25090. case 227: {
  25091. label = 0;
  25092. $852 = ($$871184>>>0)<(4);
  25093. if (!($852)) {
  25094. $$881504 = $$811497;$$921083 = $$851076;$$921699 = $$851692;$$941191 = $$871184;$$941297 = $$871290;$$971604 = $$901597;$$98 = $$91;$$981407 = $$911400;
  25095. label = 242;
  25096. continue L46;
  25097. }
  25098. $853 = ($$91|0)==(0);
  25099. if (!($853)) {
  25100. $854 = ($$91>>>0)<(8);
  25101. if ($854) {
  25102. $$821498 = $$811497;$$861077 = $$851076;$$861693 = $$851692;$$881185 = $$871184;$$881291 = $$871290;$$911598 = $$901597;$$92 = $$91;$$921401 = $$911400;
  25103. label = 230;
  25104. break;
  25105. } else {
  25106. $$851501 = $$811497;$$891080 = $$851076;$$891696 = $$851692;$$911188 = $$871184;$$911294 = $$871290;$$941601 = $$901597;$$95 = $$91;$$951404 = $$911400;
  25107. label = 235;
  25108. break;
  25109. }
  25110. }
  25111. $868 = ($$901597>>>0)<($10>>>0);
  25112. if (!($868)) {
  25113. $$861502 = $$811497;$$901081 = $$851076;$$901697 = $$851692;$$921189 = $$871184;$$921295 = $$871290;$$951602 = $$901597;$$96 = 0;$$961405 = $$911400;
  25114. label = 237;
  25115. continue L46;
  25116. }
  25117. $875 = ((($$901597)) + 1|0);
  25118. $876 = HEAP8[$$901597>>0]|0;
  25119. $877 = $876&255;
  25120. $$0948 = $877;$$871503 = $$811497;$$911082 = $$851076;$$911698 = $$851692;$$931190 = $$871184;$$931296 = $$871290;$$961603 = $875;$$97 = 0;$$971406 = $$911400;
  25121. label = 241;
  25122. continue L46;
  25123. break;
  25124. }
  25125. case 234: {
  25126. label = 0;
  25127. $$0947 = $$0947$shrunk&255;
  25128. $861 = $$0947 << $$94;
  25129. $862 = $861 | $$941403;
  25130. $863 = (($$94) + 8)|0;
  25131. $864 = ($$94>>>0)>(4294967287);
  25132. if ($864) {
  25133. $$821498 = $$841500;$$861077 = $$881079;$$861693 = $$881695;$$881185 = $$901187;$$881291 = $$901293;$$911598 = $$931600;$$92 = $863;$$921401 = $862;
  25134. label = 230;
  25135. } else {
  25136. $$851501 = $$841500;$$891080 = $$881079;$$891696 = $$881695;$$911188 = $$901187;$$911294 = $$901293;$$941601 = $$931600;$$95 = $863;$$951404 = $862;
  25137. label = 235;
  25138. }
  25139. break;
  25140. }
  25141. }
  25142. L119: do {
  25143. if ((label|0) == 15) {
  25144. label = 0;
  25145. $72 = ($$51512>>>0)<($10>>>0);
  25146. if ($72) {
  25147. $$31419$ph = $$11417;$$31610$ph = $$11608;$$8$ph = $$6;$$81105$ph = $$61103;$$81211$ph = $$61209;$$81317$ph = $$61315;$$8999$ph = $$6997;$$sink1710 = $$51512;
  25148. label = 18;
  25149. continue L46;
  25150. } else {
  25151. $$21418 = $$11417;$$21609 = $$11608;$$61513 = $$51512;$$7 = $$6;$$71104 = $$61103;$$71210 = $$61209;$$71316 = $$61315;$$7998 = $$6997;
  25152. label = 16;
  25153. continue L46;
  25154. }
  25155. }
  25156. else if ((label|0) == 20) {
  25157. label = 0;
  25158. $82 = $$91318 & 7;
  25159. $83 = ((($0)) + 20|0);
  25160. HEAP32[$83>>2] = $82;
  25161. $84 = $$91318 >>> 3;
  25162. $85 = (($$9) + -3)|0;
  25163. $86 = $82 >>> 1;
  25164. $87 = ((($0)) + 24|0);
  25165. HEAP32[$87>>2] = $86;
  25166. $trunc = $86&255;
  25167. $trunc$clear = $trunc & 3;
  25168. switch ($trunc$clear<<24>>24) {
  25169. case 0: {
  25170. $$121519 = $$81515;$$13 = $85;$$131004 = $$91000;$$131216 = $$91212;$$131322 = $84;$$81424 = $$41420;$$81615 = $$41611;
  25171. label = 25;
  25172. continue L46;
  25173. break;
  25174. }
  25175. case 3: {
  25176. $$281444 = $$41420;$$281635 = $$41611;$$321023 = $$91000;$$321129 = $$91106;$$321539 = $$81515;$$33 = $85;$$331236 = $$91212;$$331342 = $84;
  25177. label = 60;
  25178. continue L46;
  25179. break;
  25180. }
  25181. case 1: {
  25182. break;
  25183. }
  25184. default: {
  25185. $$291445 = $$41420;$$291636 = $$41611;$$331024 = $$91000;$$331130 = 0;$$331540 = $$81515;$$34 = $85;$$341237 = $$91212;$$341343 = $84;
  25186. label = 61;
  25187. break L119;
  25188. }
  25189. }
  25190. $240 = ((($0)) + 44|0);
  25191. HEAP32[$240>>2] = 288;
  25192. $241 = ((($0)) + 48|0);
  25193. HEAP32[$241>>2] = 32;
  25194. $242 = ((($0)) + 3552|0);
  25195. ;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;
  25196. $scevgep19611962 = ((($0)) + 64|0);
  25197. _memset(($scevgep19611962|0),8,144)|0;
  25198. $scevgep1959 = ((($0)) + 208|0);
  25199. dest=$scevgep1959; stop=dest+112|0; do { HEAP8[dest>>0]=9|0; dest=dest+1|0; } while ((dest|0) < (stop|0));
  25200. $scevgep1957 = ((($0)) + 320|0);
  25201. dest=$scevgep1957; stop=dest+24|0; do { HEAP8[dest>>0]=7|0; dest=dest+1|0; } while ((dest|0) < (stop|0));
  25202. $scevgep1955 = ((($0)) + 344|0);
  25203. $243 = $scevgep1955;
  25204. $244 = $243;
  25205. 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;
  25206. $245 = (($243) + 4)|0;
  25207. $246 = $245;
  25208. 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;
  25209. $$391455 = $$41420;$$391646 = $$41611;$$431034 = $$91000;$$431140 = $$91106;$$431550 = $$81515;$$44 = $85;$$441247 = $$91212;$$441353 = $84;
  25210. label = 80;
  25211. }
  25212. else if ((label|0) == 230) {
  25213. label = 0;
  25214. $855 = ($$911598>>>0)<($10>>>0);
  25215. if ($855) {
  25216. $$841500$ph = $$821498;$$881079$ph = $$861077;$$881695$ph = $$861693;$$901187$ph = $$881185;$$901293$ph = $$881291;$$94$ph = $$92;$$941403$ph = $$921401;$$sink1750 = $$911598;
  25217. label = 233;
  25218. continue L46;
  25219. } else {
  25220. $$831499 = $$821498;$$871078 = $$861077;$$871694 = $$861693;$$891186 = $$881185;$$891292 = $$881291;$$921599 = $$911598;$$93 = $$92;$$931402 = $$921401;
  25221. label = 231;
  25222. continue L46;
  25223. }
  25224. }
  25225. else if ((label|0) == 235) {
  25226. label = 0;
  25227. $865 = $$951404 & 255;
  25228. $866 = $$951404 >>> 8;
  25229. $867 = (($$95) + -8)|0;
  25230. $$0948 = $865;$$871503 = $$851501;$$911082 = $$891080;$$911698 = $$891696;$$931190 = $$911188;$$931296 = $$911294;$$961603 = $$941601;$$97 = $867;$$971406 = $866;
  25231. label = 241;
  25232. continue L46;
  25233. }
  25234. } while(0);
  25235. L125: while(1) {
  25236. L126: switch (label|0) {
  25237. case 26: {
  25238. label = 0;
  25239. $100 = ($$131110>>>0)<(4);
  25240. if (!($100)) {
  25241. $127 = ((($0)) + 10528|0);
  25242. $128 = HEAP8[$127>>0]|0;
  25243. $129 = $128&255;
  25244. $130 = ((($0)) + 10529|0);
  25245. $131 = HEAP8[$130>>0]|0;
  25246. $132 = $131&255;
  25247. $133 = $132 << 8;
  25248. $134 = $133 | $129;
  25249. $135 = ((($0)) + 10530|0);
  25250. $136 = HEAP8[$135>>0]|0;
  25251. $137 = $136&255;
  25252. $138 = ((($0)) + 10531|0);
  25253. $139 = HEAP8[$138>>0]|0;
  25254. $140 = $139&255;
  25255. $141 = $140 << 8;
  25256. $142 = $141 | $137;
  25257. $143 = $142 ^ 65535;
  25258. $144 = ($134|0)==($143|0);
  25259. if ($144) {
  25260. $$181434 = $$91425;$$181625 = $$91616;$$221119 = $134;$$221529 = $$131520;$$23 = $$14;$$231014 = $$141005;$$231226 = $$141217;$$231332 = $$141323;
  25261. label = 44;
  25262. continue L125;
  25263. } else {
  25264. $$171433 = $$91425;$$171624 = $$91616;$$211118 = $134;$$211528 = $$131520;$$22 = $$14;$$221013 = $$141005;$$221225 = $$141217;$$221331 = $$141323;
  25265. label = 43;
  25266. continue L46;
  25267. }
  25268. }
  25269. $101 = ($$14|0)==(0);
  25270. if (!($101)) {
  25271. $102 = ($$14>>>0)<(8);
  25272. if ($102) {
  25273. $$101426 = $$91425;$$101617 = $$91616;$$141111 = $$131110;$$141521 = $$131520;$$15 = $$14;$$151006 = $$141005;$$151218 = $$141217;$$151324 = $$141323;
  25274. label = 29;
  25275. continue L125;
  25276. } else {
  25277. $$131429 = $$91425;$$131620 = $$91616;$$171114 = $$131110;$$171524 = $$131520;$$18 = $$14;$$181009 = $$141005;$$181221 = $$141217;$$181327 = $$141323;
  25278. label = 34;
  25279. continue L125;
  25280. }
  25281. }
  25282. $117 = ($$131520>>>0)<($10>>>0);
  25283. if (!($117)) {
  25284. $$141430 = $$91425;$$141621 = $$91616;$$181115 = $$131110;$$181525 = $$131520;$$19 = 0;$$191010 = $$141005;$$191222 = $$141217;$$191328 = $$141323;
  25285. label = 36;
  25286. continue L46;
  25287. }
  25288. $123 = ((($$131520)) + 1|0);
  25289. $124 = HEAP8[$$131520>>0]|0;
  25290. $125 = (((($0)) + 10528|0) + ($$131110)|0);
  25291. HEAP8[$125>>0] = $124;
  25292. $$161432 = $$91425;$$161623 = $$91616;$$201117 = $$131110;$$201527 = $123;$$21 = 0;$$211012 = $$141005;$$211224 = $$141217;$$211330 = $$141323;
  25293. label = 41;
  25294. continue L125;
  25295. break;
  25296. }
  25297. case 29: {
  25298. label = 0;
  25299. $103 = ($$141521>>>0)<($10>>>0);
  25300. if ($103) {
  25301. $$121428$ph = $$101426;$$121619$ph = $$101617;$$161113$ph = $$141111;$$17$ph = $$15;$$171008$ph = $$151006;$$171220$ph = $$151218;$$171326$ph = $$151324;$$sink1713 = $$141521;
  25302. label = 32;
  25303. continue L46;
  25304. } else {
  25305. $$111427 = $$101426;$$111618 = $$101617;$$151112 = $$141111;$$151522 = $$141521;$$16 = $$15;$$161007 = $$151006;$$161219 = $$151218;$$161325 = $$151324;
  25306. label = 30;
  25307. continue L46;
  25308. }
  25309. break;
  25310. }
  25311. case 34: {
  25312. label = 0;
  25313. $113 = $$181327&255;
  25314. $114 = (((($0)) + 10528|0) + ($$171114)|0);
  25315. HEAP8[$114>>0] = $113;
  25316. $115 = $$181327 >>> 8;
  25317. $116 = (($$18) + -8)|0;
  25318. $$161432 = $$131429;$$161623 = $$131620;$$201117 = $$171114;$$201527 = $$171524;$$21 = $116;$$211012 = $$181009;$$211224 = $$181221;$$211330 = $115;
  25319. label = 41;
  25320. continue L125;
  25321. break;
  25322. }
  25323. case 41: {
  25324. label = 0;
  25325. $126 = (($$201117) + 1)|0;
  25326. $$131110 = $126;$$131520 = $$201527;$$14 = $$21;$$141005 = $$211012;$$141217 = $$211224;$$141323 = $$211330;$$91425 = $$161432;$$91616 = $$161623;
  25327. label = 26;
  25328. continue L125;
  25329. break;
  25330. }
  25331. case 44: {
  25332. label = 0;
  25333. $145 = ($$221119|0)!=(0);
  25334. $146 = ($$23|0)!=(0);
  25335. $147 = $145 & $146;
  25336. if (!($147)) {
  25337. $$241440 = $$181434;$$241631 = $$181625;$$281019 = $$231014;$$281125 = $$221119;$$281535 = $$221529;$$29 = $$23;$$291232 = $$231226;$$291338 = $$231332;
  25338. label = 54;
  25339. continue L125;
  25340. }
  25341. $148 = ($$23>>>0)<(8);
  25342. if ($148) {
  25343. $$191435 = $$181434;$$191626 = $$181625;$$231120 = $$221119;$$231530 = $$221529;$$24 = $$23;$$241015 = $$231014;$$241227 = $$231226;$$241333 = $$231332;
  25344. label = 46;
  25345. continue L125;
  25346. } else {
  25347. $$221438 = $$181434;$$221629 = $$181625;$$261123 = $$221119;$$261533 = $$221529;$$27 = $$23;$$271230 = $$231226;$$271336 = $$231332;
  25348. label = 51;
  25349. continue L125;
  25350. }
  25351. break;
  25352. }
  25353. case 46: {
  25354. label = 0;
  25355. $149 = ($$231530>>>0)<($10>>>0);
  25356. if ($149) {
  25357. $$211437$ph = $$191435;$$211628$ph = $$191626;$$251122$ph = $$231120;$$26$ph = $$24;$$261017$ph = $$241015;$$261229$ph = $$241227;$$261335$ph = $$241333;$$sink1716 = $$231530;
  25358. label = 49;
  25359. continue L46;
  25360. } else {
  25361. $$201436 = $$191435;$$201627 = $$191626;$$241121 = $$231120;$$241531 = $$231530;$$25 = $$24;$$251016 = $$241015;$$251228 = $$241227;$$251334 = $$241333;
  25362. label = 47;
  25363. continue L46;
  25364. }
  25365. break;
  25366. }
  25367. case 51: {
  25368. label = 0;
  25369. $159 = $$271336 & 255;
  25370. $160 = $$271336 >>> 8;
  25371. $161 = (($$27) + -8)|0;
  25372. $$231439 = $$221438;$$231630 = $$221629;$$271018 = $159;$$271124 = $$261123;$$271534 = $$261533;$$28 = $161;$$281231 = $$271230;$$281337 = $160;
  25373. label = 52;
  25374. continue L46;
  25375. break;
  25376. }
  25377. case 54: {
  25378. label = 0;
  25379. $166 = ($$281125|0)==(0);
  25380. if ($166) {
  25381. $$761492 = $$241440;$$801071 = $$281019;$$801687 = $$241631;$$821285 = $$291232;$$831180 = 0;$$851592 = $$281535;$$86 = $$29;$$861395 = $$291338;
  25382. label = 220;
  25383. break L125;
  25384. } else {
  25385. $$251441 = $$241440;$$251632 = $$241631;$$291020 = $$281019;$$291126 = $$281125;$$291536 = $$281535;$$30 = $$29;$$301233 = $$291232;$$301339 = $$291338;
  25386. label = 55;
  25387. continue L46;
  25388. }
  25389. break;
  25390. }
  25391. case 61: {
  25392. label = 0;
  25393. $185 = ($$331130>>>0)<(3);
  25394. if ($185) {
  25395. $186 = (12336 + ($$331130)|0);
  25396. $187 = HEAP8[$186>>0]|0;
  25397. $188 = $187 << 24 >> 24;
  25398. $189 = ($$34>>>0)<($188>>>0);
  25399. if ($189) {
  25400. $$301446 = $$291445;$$301637 = $$291636;$$341025 = $$331024;$$341131 = $$331130;$$341541 = $$331540;$$35 = $$34;$$351238 = $$341237;$$351344 = $$341343;
  25401. label = 63;
  25402. continue L125;
  25403. } else {
  25404. $$331449 = $$291445;$$331640 = $$291636;$$371028 = $$331024;$$371134 = $$331130;$$371544 = $$331540;$$38 = $$34;$$381241 = $$341237;$$381347 = $$341343;
  25405. label = 68;
  25406. continue L125;
  25407. }
  25408. } else {
  25409. $216 = ((($0)) + 7040|0);
  25410. _memset(($216|0),0,288)|0;
  25411. $$341450 = $$291445;$$341641 = $$291636;$$381029 = $$331024;$$381135 = 0;$$381545 = $$331540;$$39 = $$34;$$391242 = $$341237;$$391348 = $$341343;
  25412. label = 70;
  25413. break;
  25414. }
  25415. break;
  25416. }
  25417. case 63: {
  25418. label = 0;
  25419. $190 = ($$341541>>>0)<($10>>>0);
  25420. if ($190) {
  25421. $$321448$ph = $$301446;$$321639$ph = $$301637;$$361027$ph = $$341025;$$361133$ph = $$341131;$$37$ph = $$35;$$371240$ph = $$351238;$$371346$ph = $$351344;$$sink1719 = $$341541;
  25422. label = 66;
  25423. continue L46;
  25424. } else {
  25425. $$311447 = $$301446;$$311638 = $$301637;$$351026 = $$341025;$$351132 = $$341131;$$351542 = $$341541;$$36 = $$35;$$361239 = $$351238;$$361345 = $$351344;
  25426. label = 64;
  25427. continue L46;
  25428. }
  25429. break;
  25430. }
  25431. case 68: {
  25432. label = 0;
  25433. $203 = (12336 + ($$371134)|0);
  25434. $204 = HEAP8[$203>>0]|0;
  25435. $205 = $204 << 24 >> 24;
  25436. $206 = 1 << $205;
  25437. $207 = (($206) + -1)|0;
  25438. $208 = $207 & $$381347;
  25439. $209 = (((($0)) + 44|0) + ($$371134<<2)|0);
  25440. $210 = $$381347 >>> $205;
  25441. $211 = (($$38) - ($205))|0;
  25442. $212 = (3184 + ($$371134<<2)|0);
  25443. $213 = HEAP32[$212>>2]|0;
  25444. $214 = (($208) + ($213))|0;
  25445. HEAP32[$209>>2] = $214;
  25446. $215 = (($$371134) + 1)|0;
  25447. $$291445 = $$331449;$$291636 = $$331640;$$331024 = $$371028;$$331130 = $215;$$331540 = $$371544;$$34 = $211;$$341237 = $$381241;$$341343 = $210;
  25448. label = 61;
  25449. continue L125;
  25450. break;
  25451. }
  25452. case 72: {
  25453. label = 0;
  25454. $221 = ($$391546>>>0)<($10>>>0);
  25455. if ($221) {
  25456. $$371453$ph = $$351451;$$371644$ph = $$351642;$$411032$ph = $$391030;$$411138$ph = $$391136;$$42$ph = $$40;$$421245$ph = $$401243;$$421351$ph = $$401349;$$sink1722 = $$391546;
  25457. label = 75;
  25458. continue L46;
  25459. } else {
  25460. $$361452 = $$351451;$$361643 = $$351642;$$401031 = $$391030;$$401137 = $$391136;$$401547 = $$391546;$$41 = $$40;$$411244 = $$401243;$$411350 = $$401349;
  25461. label = 73;
  25462. continue L46;
  25463. }
  25464. break;
  25465. }
  25466. case 77: {
  25467. label = 0;
  25468. $231 = $$431352 & 7;
  25469. $232 = $$431352 >>> 3;
  25470. $233 = (($$43) + -3)|0;
  25471. $234 = $231&255;
  25472. $235 = (12340 + ($$421139)|0);
  25473. $236 = HEAP8[$235>>0]|0;
  25474. $237 = $236&255;
  25475. $238 = (((($0)) + 7040|0) + ($237)|0);
  25476. HEAP8[$238>>0] = $234;
  25477. $239 = (($$421139) + 1)|0;
  25478. $$341450 = $$381454;$$341641 = $$381645;$$381029 = $$421033;$$381135 = $239;$$381545 = $$421549;$$39 = $233;$$391242 = $$431246;$$391348 = $232;
  25479. label = 70;
  25480. break;
  25481. }
  25482. case 80: {
  25483. label = 0;
  25484. $247 = ((($0)) + 24|0);
  25485. $248 = HEAP32[$247>>2]|0;
  25486. $249 = ($248|0)>(-1);
  25487. if ($249) {
  25488. dest=$8; stop=dest+64|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  25489. $250 = (((((($0)) + 64|0) + (($248*3488)|0)|0)) + 288|0);
  25490. _memset(($250|0),0,3200)|0;
  25491. $251 = HEAP32[$247>>2]|0;
  25492. $252 = (((($0)) + 44|0) + ($251<<2)|0);
  25493. $253 = HEAP32[$252>>2]|0;
  25494. $254 = ($253|0)==(0);
  25495. if (!($254)) {
  25496. $255 = HEAP32[$247>>2]|0;
  25497. $256 = (((($0)) + 44|0) + ($255<<2)|0);
  25498. $257 = HEAP32[$256>>2]|0;
  25499. $$010951864 = 0;
  25500. while(1) {
  25501. $258 = ((((($0)) + 64|0) + (($248*3488)|0)|0) + ($$010951864)|0);
  25502. $259 = HEAP8[$258>>0]|0;
  25503. $260 = $259&255;
  25504. $261 = (($8) + ($260<<2)|0);
  25505. $262 = HEAP32[$261>>2]|0;
  25506. $263 = (($262) + 1)|0;
  25507. HEAP32[$261>>2] = $263;
  25508. $264 = (($$010951864) + 1)|0;
  25509. $265 = ($264>>>0)<($257>>>0);
  25510. if ($265) {
  25511. $$010951864 = $264;
  25512. } else {
  25513. break;
  25514. }
  25515. }
  25516. }
  25517. $266 = ((($7)) + 4|0);
  25518. HEAP32[$266>>2] = 0;
  25519. HEAP32[$7>>2] = 0;
  25520. $267 = ((($8)) + 4|0);
  25521. $268 = HEAP32[$267>>2]|0;
  25522. $269 = $268 << 1;
  25523. $270 = ((($7)) + 8|0);
  25524. HEAP32[$270>>2] = $269;
  25525. $271 = ((($8)) + 8|0);
  25526. $272 = HEAP32[$271>>2]|0;
  25527. $273 = (($272) + ($268))|0;
  25528. $274 = (($272) + ($269))|0;
  25529. $275 = $274 << 1;
  25530. $276 = ((($7)) + 12|0);
  25531. HEAP32[$276>>2] = $275;
  25532. $277 = ((($8)) + 12|0);
  25533. $278 = HEAP32[$277>>2]|0;
  25534. $279 = (($278) + ($273))|0;
  25535. $280 = (($278) + ($275))|0;
  25536. $281 = $280 << 1;
  25537. $282 = ((($7)) + 16|0);
  25538. HEAP32[$282>>2] = $281;
  25539. $283 = ((($8)) + 16|0);
  25540. $284 = HEAP32[$283>>2]|0;
  25541. $285 = (($284) + ($279))|0;
  25542. $286 = (($284) + ($281))|0;
  25543. $287 = $286 << 1;
  25544. $288 = ((($7)) + 20|0);
  25545. HEAP32[$288>>2] = $287;
  25546. $289 = ((($8)) + 20|0);
  25547. $290 = HEAP32[$289>>2]|0;
  25548. $291 = (($290) + ($285))|0;
  25549. $292 = (($290) + ($287))|0;
  25550. $293 = $292 << 1;
  25551. $294 = ((($7)) + 24|0);
  25552. HEAP32[$294>>2] = $293;
  25553. $295 = ((($8)) + 24|0);
  25554. $296 = HEAP32[$295>>2]|0;
  25555. $297 = (($296) + ($291))|0;
  25556. $298 = (($296) + ($293))|0;
  25557. $299 = $298 << 1;
  25558. $300 = ((($7)) + 28|0);
  25559. HEAP32[$300>>2] = $299;
  25560. $301 = ((($8)) + 28|0);
  25561. $302 = HEAP32[$301>>2]|0;
  25562. $303 = (($302) + ($297))|0;
  25563. $304 = (($302) + ($299))|0;
  25564. $305 = $304 << 1;
  25565. $306 = ((($7)) + 32|0);
  25566. HEAP32[$306>>2] = $305;
  25567. $307 = ((($8)) + 32|0);
  25568. $308 = HEAP32[$307>>2]|0;
  25569. $309 = (($308) + ($303))|0;
  25570. $310 = (($308) + ($305))|0;
  25571. $311 = $310 << 1;
  25572. $312 = ((($7)) + 36|0);
  25573. HEAP32[$312>>2] = $311;
  25574. $313 = ((($8)) + 36|0);
  25575. $314 = HEAP32[$313>>2]|0;
  25576. $315 = (($314) + ($309))|0;
  25577. $316 = (($314) + ($311))|0;
  25578. $317 = $316 << 1;
  25579. $318 = ((($7)) + 40|0);
  25580. HEAP32[$318>>2] = $317;
  25581. $319 = ((($8)) + 40|0);
  25582. $320 = HEAP32[$319>>2]|0;
  25583. $321 = (($320) + ($315))|0;
  25584. $322 = (($320) + ($317))|0;
  25585. $323 = $322 << 1;
  25586. $324 = ((($7)) + 44|0);
  25587. HEAP32[$324>>2] = $323;
  25588. $325 = ((($8)) + 44|0);
  25589. $326 = HEAP32[$325>>2]|0;
  25590. $327 = (($326) + ($321))|0;
  25591. $328 = (($326) + ($323))|0;
  25592. $329 = $328 << 1;
  25593. $330 = ((($7)) + 48|0);
  25594. HEAP32[$330>>2] = $329;
  25595. $331 = ((($8)) + 48|0);
  25596. $332 = HEAP32[$331>>2]|0;
  25597. $333 = (($332) + ($327))|0;
  25598. $334 = (($332) + ($329))|0;
  25599. $335 = $334 << 1;
  25600. $336 = ((($7)) + 52|0);
  25601. HEAP32[$336>>2] = $335;
  25602. $337 = ((($8)) + 52|0);
  25603. $338 = HEAP32[$337>>2]|0;
  25604. $339 = (($338) + ($333))|0;
  25605. $340 = (($338) + ($335))|0;
  25606. $341 = $340 << 1;
  25607. $342 = ((($7)) + 56|0);
  25608. HEAP32[$342>>2] = $341;
  25609. $343 = ((($8)) + 56|0);
  25610. $344 = HEAP32[$343>>2]|0;
  25611. $345 = (($344) + ($339))|0;
  25612. $346 = (($344) + ($341))|0;
  25613. $347 = $346 << 1;
  25614. $348 = ((($7)) + 60|0);
  25615. HEAP32[$348>>2] = $347;
  25616. $349 = ((($8)) + 60|0);
  25617. $350 = HEAP32[$349>>2]|0;
  25618. $351 = (($350) + ($345))|0;
  25619. $352 = (($350) + ($347))|0;
  25620. $353 = $352 << 1;
  25621. $354 = ((($7)) + 64|0);
  25622. HEAP32[$354>>2] = $353;
  25623. $355 = ($353|0)!=(65536);
  25624. $356 = ($351>>>0)>(1);
  25625. $or$cond = $355 & $356;
  25626. if ($or$cond) {
  25627. $$401456 = $$391455;$$401647 = $$391646;$$441035 = $$431034;$$441141 = $$431140;$$441551 = $$431550;$$45 = $$44;$$451248 = $$441247;$$451354 = $$441353;
  25628. label = 86;
  25629. continue L46;
  25630. }
  25631. $357 = HEAP32[$247>>2]|0;
  25632. $358 = (((($0)) + 44|0) + ($357<<2)|0);
  25633. $359 = HEAP32[$358>>2]|0;
  25634. $360 = ($359|0)==(0);
  25635. if ($360) {
  25636. $$lcssa1779 = $357;
  25637. } else {
  25638. $$010911856 = 0;$$011971855 = -1;
  25639. while(1) {
  25640. $361 = ((((($0)) + 64|0) + (($248*3488)|0)|0) + ($$010911856)|0);
  25641. $362 = HEAP8[$361>>0]|0;
  25642. $363 = $362&255;
  25643. $364 = ($362<<24>>24)==(0);
  25644. L142: do {
  25645. if ($364) {
  25646. $$41201 = $$011971855;
  25647. } else {
  25648. $365 = (($7) + ($363<<2)|0);
  25649. $366 = HEAP32[$365>>2]|0;
  25650. $367 = (($366) + 1)|0;
  25651. HEAP32[$365>>2] = $367;
  25652. $$010861840 = $366;$$010871839 = $363;$$010881838 = 0;
  25653. while(1) {
  25654. $368 = $$010881838 << 1;
  25655. $369 = $$010861840 & 1;
  25656. $370 = $369 | $368;
  25657. $371 = (($$010871839) + -1)|0;
  25658. $372 = $$010861840 >>> 1;
  25659. $373 = ($371|0)==(0);
  25660. if ($373) {
  25661. break;
  25662. } else {
  25663. $$010861840 = $372;$$010871839 = $371;$$010881838 = $370;
  25664. }
  25665. }
  25666. $374 = ($362&255)<(11);
  25667. if ($374) {
  25668. $375 = $363 << 9;
  25669. $376 = $375 | $$010911856;
  25670. $377 = $376&65535;
  25671. $378 = ($370>>>0)<(1024);
  25672. if (!($378)) {
  25673. $$41201 = $$011971855;
  25674. break;
  25675. }
  25676. $379 = 1 << $363;
  25677. $$110891852 = $370;
  25678. while(1) {
  25679. $380 = ((((((($0)) + 64|0) + (($248*3488)|0)|0)) + 288|0) + ($$110891852<<1)|0);
  25680. HEAP16[$380>>1] = $377;
  25681. $381 = (($$110891852) + ($379))|0;
  25682. $382 = ($381>>>0)<(1024);
  25683. if ($382) {
  25684. $$110891852 = $381;
  25685. } else {
  25686. $$41201 = $$011971855;
  25687. break L142;
  25688. }
  25689. }
  25690. }
  25691. $383 = $370 & 1023;
  25692. $384 = ((((((($0)) + 64|0) + (($248*3488)|0)|0)) + 288|0) + ($383<<1)|0);
  25693. $385 = HEAP16[$384>>1]|0;
  25694. $386 = $385 << 16 >> 16;
  25695. $387 = ($385<<16>>16)==(0);
  25696. if ($387) {
  25697. $388 = (($$011971855) + -2)|0;
  25698. $389 = $$011971855&65535;
  25699. HEAP16[$384>>1] = $389;
  25700. $$01194 = $$011971855;$$11198 = $388;
  25701. } else {
  25702. $$01194 = $386;$$11198 = $$011971855;
  25703. }
  25704. $390 = $$010881838 >>> 9;
  25705. $391 = ($362&255)>(11);
  25706. $392 = $390 & 1;
  25707. $393 = (($392) - ($$01194))|0;
  25708. $394 = (($393) + -1)|0;
  25709. if ($391) {
  25710. $395 = $390 & 4194303;
  25711. $$010941846 = $363;$$211991845 = $$11198;$397 = $394;$406 = $395;
  25712. while(1) {
  25713. $396 = ((((((($0)) + 64|0) + (($248*3488)|0)|0)) + 2336|0) + ($397<<1)|0);
  25714. $398 = HEAP16[$396>>1]|0;
  25715. $399 = ($398<<16>>16)==(0);
  25716. if ($399) {
  25717. $400 = $$211991845&65535;
  25718. HEAP16[$396>>1] = $400;
  25719. $401 = (($$211991845) + -2)|0;
  25720. $$21196 = $$211991845;$$31200 = $401;
  25721. } else {
  25722. $402 = $398 << 16 >> 16;
  25723. $$21196 = $402;$$31200 = $$211991845;
  25724. }
  25725. $403 = (($$010941846) + -1)|0;
  25726. $404 = ($403>>>0)>(11);
  25727. $405 = $406 >>> 1;
  25728. $407 = $405 & 1;
  25729. $408 = (($407) - ($$21196))|0;
  25730. $409 = (($408) + -1)|0;
  25731. if ($404) {
  25732. $$010941846 = $403;$$211991845 = $$31200;$397 = $409;$406 = $405;
  25733. } else {
  25734. $$21199$lcssa = $$31200;$$lcssa1778 = $409;
  25735. break;
  25736. }
  25737. }
  25738. } else {
  25739. $$21199$lcssa = $$11198;$$lcssa1778 = $394;
  25740. }
  25741. $410 = $$010911856&65535;
  25742. $411 = ((((((($0)) + 64|0) + (($248*3488)|0)|0)) + 2336|0) + ($$lcssa1778<<1)|0);
  25743. HEAP16[$411>>1] = $410;
  25744. $$41201 = $$21199$lcssa;
  25745. }
  25746. } while(0);
  25747. $412 = (($$010911856) + 1)|0;
  25748. $413 = HEAP32[$247>>2]|0;
  25749. $414 = (((($0)) + 44|0) + ($413<<2)|0);
  25750. $415 = HEAP32[$414>>2]|0;
  25751. $416 = ($412>>>0)<($415>>>0);
  25752. if ($416) {
  25753. $$010911856 = $412;$$011971855 = $$41201;
  25754. } else {
  25755. $$lcssa1779 = $413;
  25756. break;
  25757. }
  25758. }
  25759. }
  25760. $417 = ($$lcssa1779|0)==(2);
  25761. if ($417) {
  25762. $$411457 = $$391455;$$411648 = $$391646;$$451036 = $$431034;$$451142 = 0;$$451552 = $$431550;$$46 = $$44;$$461249 = $$441247;$$461355 = $$441353;
  25763. label = 105;
  25764. } else {
  25765. $$521468 = $$391455;$$521659 = $$391646;$$551046 = $$431034;$$561153 = $$431140;$$561563 = $$431550;$$57 = $$44;$$571260 = $$441247;$$571366 = $$441353;
  25766. label = 138;
  25767. }
  25768. } else {
  25769. $$531469 = $$391455;$$531660 = $$391646;$$561047 = $$431034;$$571154 = $$431140;$$571564 = $$431550;$$58 = $$44;$$581261 = $$441247;$$581367 = $$441353;
  25770. label = 139;
  25771. }
  25772. break;
  25773. }
  25774. case 108: {
  25775. label = 0;
  25776. $429 = $$471356 & 1023;
  25777. $430 = (((($0)) + 7328|0) + ($429<<1)|0);
  25778. $431 = HEAP16[$430>>1]|0;
  25779. $432 = $431 << 16 >> 16;
  25780. $433 = ($431<<16>>16)>(-1);
  25781. if ($433) {
  25782. $434 = $432 >> 9;
  25783. $435 = (($434) + -1)|0;
  25784. $436 = ($435>>>0)<($$47>>>0);
  25785. if ($436) {
  25786. $$451461 = $$421458;$$451652 = $$421649;$$491146 = $$461143;$$491556 = $$461553;$$50 = $$47;$$501253 = $$471250;$$501359 = $$471356;
  25787. label = 119;
  25788. continue L125;
  25789. } else {
  25790. label = 113;
  25791. break L125;
  25792. }
  25793. }
  25794. $437 = ($$47>>>0)>(10);
  25795. if ($437) {
  25796. $$0981 = 10;$$0984 = $432;
  25797. } else {
  25798. label = 113;
  25799. break L125;
  25800. }
  25801. while(1) {
  25802. $438 = $$0984 ^ -1;
  25803. $439 = $$471356 >>> $$0981;
  25804. $440 = $439 & 1;
  25805. $441 = (($440) + ($438))|0;
  25806. $442 = (((($0)) + 9376|0) + ($441<<1)|0);
  25807. $443 = HEAP16[$442>>1]|0;
  25808. $444 = ($443<<16>>16)<(0);
  25809. if (!($444)) {
  25810. $$451461 = $$421458;$$451652 = $$421649;$$491146 = $$461143;$$491556 = $$461553;$$50 = $$47;$$501253 = $$471250;$$501359 = $$471356;
  25811. label = 119;
  25812. continue L125;
  25813. }
  25814. $445 = (($$0981) + 1)|0;
  25815. $446 = $443 << 16 >> 16;
  25816. $447 = (($$0981) + 2)|0;
  25817. $448 = ($$47>>>0)<($447>>>0);
  25818. if ($448) {
  25819. label = 113;
  25820. break L125;
  25821. } else {
  25822. $$0981 = $445;$$0984 = $446;
  25823. }
  25824. }
  25825. break;
  25826. }
  25827. case 119: {
  25828. label = 0;
  25829. $471 = $$501359 & 1023;
  25830. $472 = (((($0)) + 7328|0) + ($471<<1)|0);
  25831. $473 = HEAP16[$472>>1]|0;
  25832. $474 = $473 << 16 >> 16;
  25833. $475 = ($473<<16>>16)>(-1);
  25834. if ($475) {
  25835. $476 = $474 >> 9;
  25836. $477 = $474 & 511;
  25837. $$2983 = $476;$$2986 = $477;
  25838. } else {
  25839. $$1982 = 10;$$1985 = $474;
  25840. while(1) {
  25841. $478 = $$1985 ^ -1;
  25842. $479 = (($$1982) + 1)|0;
  25843. $480 = $$501359 >>> $$1982;
  25844. $481 = $480 & 1;
  25845. $482 = (($481) + ($478))|0;
  25846. $483 = (((($0)) + 9376|0) + ($482<<1)|0);
  25847. $484 = HEAP16[$483>>1]|0;
  25848. $485 = $484 << 16 >> 16;
  25849. $486 = ($484<<16>>16)<(0);
  25850. if ($486) {
  25851. $$1982 = $479;$$1985 = $485;
  25852. } else {
  25853. $$2983 = $479;$$2986 = $485;
  25854. break;
  25855. }
  25856. }
  25857. }
  25858. $487 = $$501359 >>> $$2983;
  25859. $488 = (($$50) - ($$2983))|0;
  25860. $489 = ($$2986>>>0)<(16);
  25861. if ($489) {
  25862. $490 = $$2986&255;
  25863. $491 = (($$491146) + 1)|0;
  25864. $492 = (((($0)) + 10532|0) + ($$491146)|0);
  25865. HEAP8[$492>>0] = $490;
  25866. $$411457 = $$451461;$$411648 = $$451652;$$451036 = $$2986;$$451142 = $491;$$451552 = $$491556;$$46 = $488;$$461249 = $$501253;$$461355 = $487;
  25867. label = 105;
  25868. break;
  25869. }
  25870. $493 = ($$2986|0)!=(16);
  25871. $494 = ($$491146|0)!=(0);
  25872. $or$cond24 = $494 | $493;
  25873. if (!($or$cond24)) {
  25874. $$461462 = $$451461;$$461653 = $$451652;$$491040 = $$2986;$$501147 = $$491146;$$501557 = $$491556;$$51 = $488;$$511254 = $$501253;$$511360 = $487;
  25875. label = 125;
  25876. continue L46;
  25877. }
  25878. $495 = (($$2986) + -16)|0;
  25879. $496 = (12359 + ($495)|0);
  25880. $497 = HEAP8[$496>>0]|0;
  25881. $498 = $497 << 24 >> 24;
  25882. $499 = ($488>>>0)<($498>>>0);
  25883. if ($499) {
  25884. $$471463 = $$451461;$$471654 = $$451652;$$501041 = $$2986;$$511148 = $$491146;$$511558 = $$491556;$$52 = $488;$$521255 = $498;$$521361 = $487;
  25885. label = 127;
  25886. continue L125;
  25887. } else {
  25888. $$501466 = $$451461;$$501657 = $$451652;$$531044 = $$2986;$$541151 = $$491146;$$541561 = $$491556;$$55 = $488;$$551258 = $498;$$551364 = $487;
  25889. label = 132;
  25890. continue L125;
  25891. }
  25892. break;
  25893. }
  25894. case 127: {
  25895. label = 0;
  25896. $500 = ($$511558>>>0)<($10>>>0);
  25897. if ($500) {
  25898. $$491465$ph = $$471463;$$491656$ph = $$471654;$$521043$ph = $$501041;$$531150$ph = $$511148;$$54$ph = $$52;$$541257$ph = $$521255;$$541363$ph = $$521361;$$sink1732 = $$511558;
  25899. label = 130;
  25900. continue L46;
  25901. } else {
  25902. $$481464 = $$471463;$$481655 = $$471654;$$511042 = $$501041;$$521149 = $$511148;$$521559 = $$511558;$$53 = $$52;$$531256 = $$521255;$$531362 = $$521361;
  25903. label = 128;
  25904. continue L46;
  25905. }
  25906. break;
  25907. }
  25908. case 132: {
  25909. label = 0;
  25910. $510 = 1 << $$551258;
  25911. $511 = (($510) + -1)|0;
  25912. $512 = $511 & $$551364;
  25913. $513 = $$551364 >>> $$551258;
  25914. $514 = (($$55) - ($$551258))|0;
  25915. $515 = (($$531044) + -16)|0;
  25916. $516 = (12363 + ($515)|0);
  25917. $517 = HEAP8[$516>>0]|0;
  25918. $518 = $517 << 24 >> 24;
  25919. $519 = (($518) + ($512))|0;
  25920. $520 = (((($0)) + 10532|0) + ($$541151)|0);
  25921. $521 = ($$531044|0)==(16);
  25922. if ($521) {
  25923. $522 = (($$541151) + -1)|0;
  25924. $523 = (((($0)) + 10532|0) + ($522)|0);
  25925. $524 = HEAP8[$523>>0]|0;
  25926. $525 = $524&255;
  25927. $527 = $525;
  25928. } else {
  25929. $527 = 0;
  25930. }
  25931. $526 = $527&255;
  25932. _memset(($520|0),($526|0),($519|0))|0;
  25933. $528 = (($519) + ($$541151))|0;
  25934. $$411457 = $$501466;$$411648 = $$501657;$$451036 = $$531044;$$451142 = $528;$$451552 = $$541561;$$46 = $514;$$461249 = $$551258;$$461355 = $513;
  25935. label = 105;
  25936. break;
  25937. }
  25938. case 140: {
  25939. label = 0;
  25940. $539 = $10;
  25941. $540 = $$581565$ph;
  25942. $541 = (($539) - ($540))|0;
  25943. $542 = ($541|0)<(4);
  25944. $543 = ($$59$ph>>>0)<(15);
  25945. L241: do {
  25946. if ($542) {
  25947. $$541661$lcssa = $$541661$ph;$$581155$lcssa = $$581155$ph;$$581565$lcssa = $$581565$ph;$$59$lcssa = $$59$ph;$$591368$lcssa = $$591368$ph;$$lcssa1799 = $543;$$lcssa1802 = $541;
  25948. } else {
  25949. $544 = $12;
  25950. $$5416611868 = $$541661$ph;$$5811551871 = $$581155$ph;$$5815651869 = $$581565$ph;$$5913681870 = $$591368$ph;$$591872 = $$59$ph;$965 = $543;$966 = $541;
  25951. while(1) {
  25952. $545 = $$5416611868;
  25953. $546 = (($544) - ($545))|0;
  25954. $547 = ($546|0)<(2);
  25955. if ($547) {
  25956. $$541661$lcssa = $$5416611868;$$581155$lcssa = $$5811551871;$$581565$lcssa = $$5815651869;$$59$lcssa = $$591872;$$591368$lcssa = $$5913681870;$$lcssa1799 = $965;$$lcssa1802 = $966;
  25957. break L241;
  25958. }
  25959. if ($965) {
  25960. $613 = HEAP8[$$5815651869>>0]|0;
  25961. $614 = $613&255;
  25962. $615 = ((($$5815651869)) + 1|0);
  25963. $616 = HEAP8[$615>>0]|0;
  25964. $617 = $616&255;
  25965. $618 = $617 << 8;
  25966. $619 = $618 | $614;
  25967. $620 = $619 << $$591872;
  25968. $621 = $620 | $$5913681870;
  25969. $622 = ((($$5815651869)) + 2|0);
  25970. $623 = (($$591872) + 16)|0;
  25971. $$641571 = $622;$$65 = $623;$$651374 = $621;
  25972. } else {
  25973. $$641571 = $$5815651869;$$65 = $$591872;$$651374 = $$5913681870;
  25974. }
  25975. $624 = $$651374 & 1023;
  25976. $625 = (((($0)) + 352|0) + ($624<<1)|0);
  25977. $626 = HEAP16[$625>>1]|0;
  25978. $627 = $626 << 16 >> 16;
  25979. $628 = ($626<<16>>16)>(-1);
  25980. if ($628) {
  25981. $629 = $627 >> 9;
  25982. $$1964 = $629;$$1968 = $627;
  25983. } else {
  25984. $$0963 = 10;$$0967 = $627;
  25985. while(1) {
  25986. $630 = $$0967 ^ -1;
  25987. $631 = (($$0963) + 1)|0;
  25988. $632 = $$651374 >>> $$0963;
  25989. $633 = $632 & 1;
  25990. $634 = (($633) + ($630))|0;
  25991. $635 = (((($0)) + 2400|0) + ($634<<1)|0);
  25992. $636 = HEAP16[$635>>1]|0;
  25993. $637 = $636 << 16 >> 16;
  25994. $638 = ($636<<16>>16)<(0);
  25995. if ($638) {
  25996. $$0963 = $631;$$0967 = $637;
  25997. } else {
  25998. $$1964 = $631;$$1968 = $637;
  25999. break;
  26000. }
  26001. }
  26002. }
  26003. $639 = $$651374 >>> $$1964;
  26004. $640 = (($$65) - ($$1964))|0;
  26005. $641 = $$1968 & 256;
  26006. $642 = ($641|0)==(0);
  26007. if (!($642)) {
  26008. $$601476 = $$541470$ph;$$611668 = $$5416611868;$$631054 = $$571048$ph;$$641161 = $$1968;$$651268 = $$591262$ph;$$671574 = $$641571;$$68 = $640;$$681377 = $639;
  26009. label = 176;
  26010. break L126;
  26011. }
  26012. $643 = ($640>>>0)<(15);
  26013. if ($643) {
  26014. $644 = HEAP8[$$641571>>0]|0;
  26015. $645 = $644&255;
  26016. $646 = ((($$641571)) + 1|0);
  26017. $647 = HEAP8[$646>>0]|0;
  26018. $648 = $647&255;
  26019. $649 = $648 << 8;
  26020. $650 = $649 | $645;
  26021. $651 = $650 << $640;
  26022. $652 = $651 | $639;
  26023. $653 = ((($$641571)) + 2|0);
  26024. $654 = (($640) + 16)|0;
  26025. $$651572 = $653;$$66 = $654;$$661375 = $652;
  26026. } else {
  26027. $$651572 = $$641571;$$66 = $640;$$661375 = $639;
  26028. }
  26029. $655 = $$661375 & 1023;
  26030. $656 = (((($0)) + 352|0) + ($655<<1)|0);
  26031. $657 = HEAP16[$656>>1]|0;
  26032. $658 = $657 << 16 >> 16;
  26033. $659 = ($657<<16>>16)>(-1);
  26034. if ($659) {
  26035. $660 = $658 >> 9;
  26036. $$3966 = $660;$$3970 = $658;
  26037. } else {
  26038. $$2965 = 10;$$2969 = $658;
  26039. while(1) {
  26040. $661 = $$2969 ^ -1;
  26041. $662 = (($$2965) + 1)|0;
  26042. $663 = $$661375 >>> $$2965;
  26043. $664 = $663 & 1;
  26044. $665 = (($664) + ($661))|0;
  26045. $666 = (((($0)) + 2400|0) + ($665<<1)|0);
  26046. $667 = HEAP16[$666>>1]|0;
  26047. $668 = $667 << 16 >> 16;
  26048. $669 = ($667<<16>>16)<(0);
  26049. if ($669) {
  26050. $$2965 = $662;$$2969 = $668;
  26051. } else {
  26052. $$3966 = $662;$$3970 = $668;
  26053. break;
  26054. }
  26055. }
  26056. }
  26057. $670 = $$661375 >>> $$3966;
  26058. $671 = (($$66) - ($$3966))|0;
  26059. $672 = $$1968&255;
  26060. HEAP8[$$5416611868>>0] = $672;
  26061. $673 = $$3970 & 256;
  26062. $674 = ($673|0)==(0);
  26063. if (!($674)) {
  26064. break;
  26065. }
  26066. $676 = $$3970&255;
  26067. $677 = ((($$5416611868)) + 1|0);
  26068. HEAP8[$677>>0] = $676;
  26069. $678 = ((($$5416611868)) + 2|0);
  26070. $679 = $$651572;
  26071. $680 = (($539) - ($679))|0;
  26072. $681 = ($680|0)<(4);
  26073. $682 = ($671>>>0)<(15);
  26074. if ($681) {
  26075. $$541661$lcssa = $678;$$581155$lcssa = $$1968;$$581565$lcssa = $$651572;$$59$lcssa = $671;$$591368$lcssa = $670;$$lcssa1799 = $682;$$lcssa1802 = $680;
  26076. break L241;
  26077. } else {
  26078. $$5416611868 = $678;$$5811551871 = $$1968;$$5815651869 = $$651572;$$5913681870 = $670;$$591872 = $671;$965 = $682;$966 = $680;
  26079. }
  26080. }
  26081. $675 = ((($$5416611868)) + 1|0);
  26082. $$601476 = $$541470$ph;$$611668 = $675;$$631054 = $$571048$ph;$$641161 = $$3970;$$651268 = $$591262$ph;$$671574 = $$651572;$$68 = $671;$$681377 = $670;
  26083. label = 176;
  26084. break L126;
  26085. }
  26086. } while(0);
  26087. if (!($$lcssa1799)) {
  26088. $$581474 = $$541470$ph;$$581665 = $$541661$lcssa;$$611052 = $$571048$ph;$$621569 = $$581565$lcssa;$$63 = $$59$lcssa;$$631266 = $$591262$ph;$$631372 = $$591368$lcssa;
  26089. label = 156;
  26090. continue L125;
  26091. }
  26092. $548 = ($$lcssa1802|0)<(2);
  26093. if ($548) {
  26094. $$551471 = $$541470$ph;$$551662 = $$541661$lcssa;$$581049 = $$571048$ph;$$591156 = $$581155$lcssa;$$591566 = $$581565$lcssa;$$60 = $$59$lcssa;$$601263 = $$591262$ph;$$601369 = $$591368$lcssa;
  26095. label = 145;
  26096. continue L125;
  26097. }
  26098. $579 = HEAP8[$$581565$lcssa>>0]|0;
  26099. $580 = $579&255;
  26100. $581 = $580 << $$59$lcssa;
  26101. $582 = ((($$581565$lcssa)) + 1|0);
  26102. $583 = HEAP8[$582>>0]|0;
  26103. $584 = $583&255;
  26104. $585 = (($$59$lcssa) + 8)|0;
  26105. $586 = $584 << $585;
  26106. $587 = $581 | $$591368$lcssa;
  26107. $588 = $587 | $586;
  26108. $589 = ((($$581565$lcssa)) + 2|0);
  26109. $590 = (($$59$lcssa) + 16)|0;
  26110. $$581474 = $$541470$ph;$$581665 = $$541661$lcssa;$$611052 = $$571048$ph;$$621569 = $589;$$63 = $590;$$631266 = $$591262$ph;$$631372 = $588;
  26111. label = 156;
  26112. continue L125;
  26113. break;
  26114. }
  26115. case 145: {
  26116. label = 0;
  26117. $549 = $$601369 & 1023;
  26118. $550 = (((($0)) + 352|0) + ($549<<1)|0);
  26119. $551 = HEAP16[$550>>1]|0;
  26120. $552 = $551 << 16 >> 16;
  26121. $553 = ($551<<16>>16)>(-1);
  26122. if ($553) {
  26123. $554 = $552 >> 9;
  26124. $555 = (($554) + -1)|0;
  26125. $556 = ($555>>>0)<($$60>>>0);
  26126. if ($556) {
  26127. $$581474 = $$551471;$$581665 = $$551662;$$611052 = $$581049;$$621569 = $$591566;$$63 = $$60;$$631266 = $$601263;$$631372 = $$601369;
  26128. label = 156;
  26129. continue L125;
  26130. } else {
  26131. label = 150;
  26132. break L125;
  26133. }
  26134. }
  26135. $557 = ($$60>>>0)>(10);
  26136. if ($557) {
  26137. $$0972 = 10;$$0975 = $552;
  26138. } else {
  26139. label = 150;
  26140. break L125;
  26141. }
  26142. while(1) {
  26143. $558 = $$0975 ^ -1;
  26144. $559 = $$601369 >>> $$0972;
  26145. $560 = $559 & 1;
  26146. $561 = (($560) + ($558))|0;
  26147. $562 = (((($0)) + 2400|0) + ($561<<1)|0);
  26148. $563 = HEAP16[$562>>1]|0;
  26149. $564 = ($563<<16>>16)<(0);
  26150. if (!($564)) {
  26151. $$581474 = $$551471;$$581665 = $$551662;$$611052 = $$581049;$$621569 = $$591566;$$63 = $$60;$$631266 = $$601263;$$631372 = $$601369;
  26152. label = 156;
  26153. continue L125;
  26154. }
  26155. $565 = (($$0972) + 1)|0;
  26156. $566 = $563 << 16 >> 16;
  26157. $567 = (($$0972) + 2)|0;
  26158. $568 = ($$60>>>0)<($567>>>0);
  26159. if ($568) {
  26160. label = 150;
  26161. break L125;
  26162. } else {
  26163. $$0972 = $565;$$0975 = $566;
  26164. }
  26165. }
  26166. break;
  26167. }
  26168. case 156: {
  26169. label = 0;
  26170. $591 = $$631372 & 1023;
  26171. $592 = (((($0)) + 352|0) + ($591<<1)|0);
  26172. $593 = HEAP16[$592>>1]|0;
  26173. $594 = $593 << 16 >> 16;
  26174. $595 = ($593<<16>>16)>(-1);
  26175. if ($595) {
  26176. $596 = $594 >> 9;
  26177. $597 = $594 & 511;
  26178. $$2974 = $596;$$2977 = $597;
  26179. } else {
  26180. $$1973 = 10;$$1976 = $594;
  26181. while(1) {
  26182. $598 = $$1976 ^ -1;
  26183. $599 = (($$1973) + 1)|0;
  26184. $600 = $$631372 >>> $$1973;
  26185. $601 = $600 & 1;
  26186. $602 = (($601) + ($598))|0;
  26187. $603 = (((($0)) + 2400|0) + ($602<<1)|0);
  26188. $604 = HEAP16[$603>>1]|0;
  26189. $605 = $604 << 16 >> 16;
  26190. $606 = ($604<<16>>16)<(0);
  26191. if ($606) {
  26192. $$1973 = $599;$$1976 = $605;
  26193. } else {
  26194. $$2974 = $599;$$2977 = $605;
  26195. break;
  26196. }
  26197. }
  26198. }
  26199. $607 = $$631372 >>> $$2974;
  26200. $608 = (($$63) - ($$2974))|0;
  26201. $609 = ($$2977>>>0)>(255);
  26202. if ($609) {
  26203. $$601476 = $$581474;$$611668 = $$581665;$$631054 = $$611052;$$641161 = $$2977;$$651268 = $$631266;$$671574 = $$621569;$$68 = $608;$$681377 = $607;
  26204. label = 176;
  26205. } else {
  26206. $$591475 = $$581474;$$591666 = $$581665;$$621053 = $$611052;$$621159 = $$2977;$$631570 = $$621569;$$64 = $608;$$641267 = $$631266;$$641373 = $607;
  26207. label = 160;
  26208. continue L46;
  26209. }
  26210. break;
  26211. }
  26212. case 179: {
  26213. label = 0;
  26214. $693 = ($$681575>>>0)<($10>>>0);
  26215. if ($693) {
  26216. $$631479$ph = $$611477;$$641671$ph = $$621669;$$661057$ph = $$641055;$$671164$ph = $$651162;$$681271$ph = $$661269;$$71$ph = $$69;$$711380$ph = $$691378;$$sink1739 = $$681575;
  26217. label = 182;
  26218. continue L46;
  26219. } else {
  26220. $$621478 = $$611477;$$631670 = $$621669;$$651056 = $$641055;$$661163 = $$651162;$$671270 = $$661269;$$691576 = $$681575;$$70 = $$69;$$701379 = $$691378;
  26221. label = 180;
  26222. continue L46;
  26223. }
  26224. break;
  26225. }
  26226. case 184: {
  26227. label = 0;
  26228. $703 = 1 << $$691272;
  26229. $704 = (($703) + -1)|0;
  26230. $705 = $704 & $$721381;
  26231. $706 = $$721381 >>> $$691272;
  26232. $707 = (($$72) - ($$691272))|0;
  26233. $708 = (($705) + ($$681165))|0;
  26234. $$651481 = $$641480;$$661673 = $$651672;$$681059 = $$671058;$$691166 = $708;$$701273 = $$691272;$$721579 = $$711578;$$73 = $707;$$731382 = $706;
  26235. label = 185;
  26236. break;
  26237. }
  26238. case 187: {
  26239. label = 0;
  26240. $714 = $$741383 & 1023;
  26241. $715 = (((($0)) + 3840|0) + ($714<<1)|0);
  26242. $716 = HEAP16[$715>>1]|0;
  26243. $717 = $716 << 16 >> 16;
  26244. $718 = ($716<<16>>16)>(-1);
  26245. if ($718) {
  26246. $719 = $717 >> 9;
  26247. $720 = (($719) + -1)|0;
  26248. $721 = ($720>>>0)<($$74>>>0);
  26249. if ($721) {
  26250. $$691485 = $$661482;$$701677 = $$671674;$$731170 = $$701167;$$761583 = $$731580;$$77 = $$74;$$771386 = $$741383;
  26251. label = 198;
  26252. continue L125;
  26253. } else {
  26254. label = 192;
  26255. break L125;
  26256. }
  26257. }
  26258. $722 = ($$74>>>0)>(10);
  26259. if ($722) {
  26260. $$0953 = 10;$$0956 = $717;
  26261. } else {
  26262. label = 192;
  26263. break L125;
  26264. }
  26265. while(1) {
  26266. $723 = $$0956 ^ -1;
  26267. $724 = $$741383 >>> $$0953;
  26268. $725 = $724 & 1;
  26269. $726 = (($725) + ($723))|0;
  26270. $727 = (((($0)) + 5888|0) + ($726<<1)|0);
  26271. $728 = HEAP16[$727>>1]|0;
  26272. $729 = ($728<<16>>16)<(0);
  26273. if (!($729)) {
  26274. $$691485 = $$661482;$$701677 = $$671674;$$731170 = $$701167;$$761583 = $$731580;$$77 = $$74;$$771386 = $$741383;
  26275. label = 198;
  26276. continue L125;
  26277. }
  26278. $730 = (($$0953) + 1)|0;
  26279. $731 = $728 << 16 >> 16;
  26280. $732 = (($$0953) + 2)|0;
  26281. $733 = ($$74>>>0)<($732>>>0);
  26282. if ($733) {
  26283. label = 192;
  26284. break L125;
  26285. } else {
  26286. $$0953 = $730;$$0956 = $731;
  26287. }
  26288. }
  26289. break;
  26290. }
  26291. case 198: {
  26292. label = 0;
  26293. $756 = $$771386 & 1023;
  26294. $757 = (((($0)) + 3840|0) + ($756<<1)|0);
  26295. $758 = HEAP16[$757>>1]|0;
  26296. $759 = $758 << 16 >> 16;
  26297. $760 = ($758<<16>>16)>(-1);
  26298. if ($760) {
  26299. $761 = $759 >> 9;
  26300. $762 = $759 & 511;
  26301. $$2955 = $761;$$2958 = $762;
  26302. } else {
  26303. $$1954 = 10;$$1957 = $759;
  26304. while(1) {
  26305. $763 = $$1957 ^ -1;
  26306. $764 = (($$1954) + 1)|0;
  26307. $765 = $$771386 >>> $$1954;
  26308. $766 = $765 & 1;
  26309. $767 = (($766) + ($763))|0;
  26310. $768 = (((($0)) + 5888|0) + ($767<<1)|0);
  26311. $769 = HEAP16[$768>>1]|0;
  26312. $770 = $769 << 16 >> 16;
  26313. $771 = ($769<<16>>16)<(0);
  26314. if ($771) {
  26315. $$1954 = $764;$$1957 = $770;
  26316. } else {
  26317. $$2955 = $764;$$2958 = $770;
  26318. break;
  26319. }
  26320. }
  26321. }
  26322. $772 = $$771386 >>> $$2955;
  26323. $773 = (($$77) - ($$2955))|0;
  26324. $774 = (3444 + ($$2958<<2)|0);
  26325. $775 = HEAP32[$774>>2]|0;
  26326. $776 = (3572 + ($$2958<<2)|0);
  26327. $777 = HEAP32[$776>>2]|0;
  26328. $778 = (($$2958) + -4)|0;
  26329. $779 = ($778>>>0)<(26);
  26330. if ($779) {
  26331. $780 = ($773>>>0)<($775>>>0);
  26332. if ($780) {
  26333. $$701486 = $$691485;$$711678 = $$701677;$$721063 = $777;$$741171 = $$731170;$$741277 = $775;$$771584 = $$761583;$$78 = $773;$$781387 = $772;
  26334. label = 203;
  26335. continue L125;
  26336. } else {
  26337. $$741681 = $$701677;$$751066 = $777;$$771174 = $$731170;$$771280 = $775;$$801587 = $$761583;$$81 = $773;$$811390 = $772;
  26338. label = 208;
  26339. continue L125;
  26340. }
  26341. } else {
  26342. $$751682 = $$701677;$$761067 = $777;$$781175 = $$731170;$$781281 = $775;$$811588 = $$761583;$$82 = $773;$$821391 = $772;
  26343. label = 209;
  26344. }
  26345. break;
  26346. }
  26347. case 203: {
  26348. label = 0;
  26349. $781 = ($$771584>>>0)<($10>>>0);
  26350. if ($781) {
  26351. $$721488$ph = $$701486;$$731680$ph = $$711678;$$741065$ph = $$721063;$$761173$ph = $$741171;$$761279$ph = $$741277;$$80$ph = $$78;$$801389$ph = $$781387;$$sink1746 = $$771584;
  26352. label = 206;
  26353. continue L46;
  26354. } else {
  26355. $$711487 = $$701486;$$721679 = $$711678;$$731064 = $$721063;$$751172 = $$741171;$$751278 = $$741277;$$781585 = $$771584;$$79 = $$78;$$791388 = $$781387;
  26356. label = 204;
  26357. continue L46;
  26358. }
  26359. break;
  26360. }
  26361. case 208: {
  26362. label = 0;
  26363. $791 = 1 << $$771280;
  26364. $792 = (($791) + -1)|0;
  26365. $793 = $792 & $$811390;
  26366. $794 = $$811390 >>> $$771280;
  26367. $795 = (($$81) - ($$771280))|0;
  26368. $796 = (($793) + ($$751066))|0;
  26369. $$751682 = $$741681;$$761067 = $796;$$781175 = $$771174;$$781281 = $$771280;$$811588 = $$801587;$$82 = $795;$$821391 = $794;
  26370. label = 209;
  26371. break;
  26372. }
  26373. case 212: {
  26374. label = 0;
  26375. $807 = (($$801177) + -1)|0;
  26376. $808 = ($$801177|0)==(0);
  26377. if ($808) {
  26378. $$531469 = $$741490;$$531660 = $$771684;$$561047 = $$781069;$$571154 = $807;$$571564 = $$831590;$$58 = $$84;$$581261 = $$801283;$$581367 = $$841393;
  26379. label = 139;
  26380. } else {
  26381. $$751491 = $$741490;$$781685 = $$771684;$$791070 = $$781069;$$811178 = $807;$$811284 = $$801283;$$841591 = $$831590;$$85 = $$84;$$851394 = $$841393;
  26382. label = 213;
  26383. continue L46;
  26384. }
  26385. break;
  26386. }
  26387. }
  26388. do {
  26389. if ((label|0) == 70) {
  26390. label = 0;
  26391. $217 = ((($0)) + 52|0);
  26392. $218 = HEAP32[$217>>2]|0;
  26393. $219 = ($$381135>>>0)<($218>>>0);
  26394. if ($219) {
  26395. $220 = ($$39>>>0)<(3);
  26396. if ($220) {
  26397. $$351451 = $$341450;$$351642 = $$341641;$$391030 = $$381029;$$391136 = $$381135;$$391546 = $$381545;$$40 = $$39;$$401243 = $$391242;$$401349 = $$391348;
  26398. label = 72;
  26399. continue L125;
  26400. } else {
  26401. $$381454 = $$341450;$$381645 = $$341641;$$421033 = $$381029;$$421139 = $$381135;$$421549 = $$381545;$$43 = $$39;$$431246 = $$391242;$$431352 = $$391348;
  26402. label = 77;
  26403. continue L125;
  26404. }
  26405. } else {
  26406. HEAP32[$217>>2] = 19;
  26407. $$391455 = $$341450;$$391646 = $$341641;$$431034 = $$381029;$$431140 = $$381135;$$431550 = $$381545;$$44 = $$39;$$441247 = $$391242;$$441353 = $$391348;
  26408. label = 80;
  26409. continue L125;
  26410. }
  26411. }
  26412. else if ((label|0) == 105) {
  26413. label = 0;
  26414. $418 = ((($0)) + 44|0);
  26415. $419 = HEAP32[$418>>2]|0;
  26416. $420 = ((($0)) + 48|0);
  26417. $421 = HEAP32[$420>>2]|0;
  26418. $422 = (($421) + ($419))|0;
  26419. $423 = ($$451142>>>0)<($422>>>0);
  26420. if (!($423)) {
  26421. $529 = ($422|0)==($$451142|0);
  26422. if (!($529)) {
  26423. $$511467 = $$411457;$$511658 = $$411648;$$541045 = $$451036;$$551152 = $$451142;$$551562 = $$451552;$$56 = $$46;$$561259 = $$461249;$$561365 = $$461355;
  26424. label = 136;
  26425. continue L46;
  26426. }
  26427. $530 = ((($0)) + 64|0);
  26428. $531 = ((($0)) + 10532|0);
  26429. _memcpy(($530|0),($531|0),($419|0))|0;
  26430. $532 = ((($0)) + 3552|0);
  26431. $533 = HEAP32[$418>>2]|0;
  26432. $534 = (((($0)) + 10532|0) + ($533)|0);
  26433. $535 = HEAP32[$420>>2]|0;
  26434. _memcpy(($532|0),($534|0),($535|0))|0;
  26435. $$521468 = $$411457;$$521659 = $$411648;$$551046 = $$451036;$$561153 = $$451142;$$561563 = $$451552;$$57 = $$46;$$571260 = $$461249;$$571366 = $$461355;
  26436. label = 138;
  26437. break;
  26438. }
  26439. $424 = ($$46>>>0)<(15);
  26440. if (!($424)) {
  26441. $$451461 = $$411457;$$451652 = $$411648;$$491146 = $$451142;$$491556 = $$451552;$$50 = $$46;$$501253 = $$461249;$$501359 = $$461355;
  26442. label = 119;
  26443. continue L125;
  26444. }
  26445. $425 = $10;
  26446. $426 = $$451552;
  26447. $427 = (($425) - ($426))|0;
  26448. $428 = ($427|0)<(2);
  26449. if ($428) {
  26450. $$421458 = $$411457;$$421649 = $$411648;$$461037 = $$451036;$$461143 = $$451142;$$461553 = $$451552;$$47 = $$46;$$471250 = $$461249;$$471356 = $$461355;
  26451. label = 108;
  26452. continue L125;
  26453. }
  26454. $459 = HEAP8[$$451552>>0]|0;
  26455. $460 = $459&255;
  26456. $461 = $460 << $$46;
  26457. $462 = ((($$451552)) + 1|0);
  26458. $463 = HEAP8[$462>>0]|0;
  26459. $464 = $463&255;
  26460. $465 = (($$46) + 8)|0;
  26461. $466 = $464 << $465;
  26462. $467 = $461 | $$461355;
  26463. $468 = $467 | $466;
  26464. $469 = ((($$451552)) + 2|0);
  26465. $470 = (($$46) + 16)|0;
  26466. $$451461 = $$411457;$$451652 = $$411648;$$491146 = $$451142;$$491556 = $469;$$50 = $470;$$501253 = $$461249;$$501359 = $468;
  26467. label = 119;
  26468. continue L125;
  26469. }
  26470. else if ((label|0) == 176) {
  26471. label = 0;
  26472. $683 = $$641161 & 511;
  26473. $684 = ($683|0)==(256);
  26474. if ($684) {
  26475. $$761492 = $$601476;$$801071 = $$631054;$$801687 = $$611668;$$821285 = $$651268;$$831180 = 256;$$851592 = $$671574;$$86 = $$68;$$861395 = $$681377;
  26476. label = 220;
  26477. break L125;
  26478. }
  26479. $685 = (($683) + -257)|0;
  26480. $686 = (3196 + ($685<<2)|0);
  26481. $687 = HEAP32[$686>>2]|0;
  26482. $688 = (3320 + ($685<<2)|0);
  26483. $689 = HEAP32[$688>>2]|0;
  26484. $690 = (($683) + -265)|0;
  26485. $691 = ($690>>>0)<(20);
  26486. if ($691) {
  26487. $692 = ($$68>>>0)<($687>>>0);
  26488. if ($692) {
  26489. $$611477 = $$601476;$$621669 = $$611668;$$641055 = $$631054;$$651162 = $689;$$661269 = $687;$$681575 = $$671574;$$69 = $$68;$$691378 = $$681377;
  26490. label = 179;
  26491. continue L125;
  26492. } else {
  26493. $$641480 = $$601476;$$651672 = $$611668;$$671058 = $$631054;$$681165 = $689;$$691272 = $687;$$711578 = $$671574;$$72 = $$68;$$721381 = $$681377;
  26494. label = 184;
  26495. continue L125;
  26496. }
  26497. } else {
  26498. $$651481 = $$601476;$$661673 = $$611668;$$681059 = $$631054;$$691166 = $689;$$701273 = $687;$$721579 = $$671574;$$73 = $$68;$$731382 = $$681377;
  26499. label = 185;
  26500. }
  26501. }
  26502. else if ((label|0) == 209) {
  26503. label = 0;
  26504. $797 = $$751682;
  26505. $798 = $3;
  26506. $799 = (($797) - ($798))|0;
  26507. $$not = ($799>>>0)>=($$761067>>>0);
  26508. $$not1747 = $14 ^ 1;
  26509. $brmerge = $$not | $$not1747;
  26510. if (!($brmerge)) {
  26511. $$731489 = $799;$$761683 = $$751682;$$771068 = $$761067;$$791176 = $$781175;$$791282 = $$781281;$$821589 = $$811588;$$83 = $$82;$$831392 = $$821391;
  26512. label = 210;
  26513. continue L46;
  26514. }
  26515. $800 = (($799) - ($$761067))|0;
  26516. $801 = $800 & $$1753;
  26517. $802 = (($3) + ($801)|0);
  26518. $803 = ($$751682>>>0)>($802>>>0);
  26519. $804 = $803 ? $$751682 : $802;
  26520. $805 = (($804) + ($$781175)|0);
  26521. $806 = ($805>>>0)>($12>>>0);
  26522. if ($806) {
  26523. $$741490 = $799;$$771684 = $$751682;$$781069 = $$761067;$$801177 = $$781175;$$801283 = $$781281;$$831590 = $$811588;$$84 = $$82;$$841393 = $$821391;
  26524. label = 212;
  26525. continue L125;
  26526. } else {
  26527. $$0978 = $802;$$791686 = $$751682;$$821179 = $$781175;
  26528. }
  26529. while(1) {
  26530. $816 = HEAP8[$$0978>>0]|0;
  26531. HEAP8[$$791686>>0] = $816;
  26532. $817 = ((($$0978)) + 1|0);
  26533. $818 = HEAP8[$817>>0]|0;
  26534. $819 = ((($$791686)) + 1|0);
  26535. HEAP8[$819>>0] = $818;
  26536. $820 = ((($$0978)) + 2|0);
  26537. $821 = HEAP8[$820>>0]|0;
  26538. $822 = ((($$791686)) + 2|0);
  26539. HEAP8[$822>>0] = $821;
  26540. $823 = ((($$791686)) + 3|0);
  26541. $824 = ((($$0978)) + 3|0);
  26542. $825 = (($$821179) + -3)|0;
  26543. $826 = ($825|0)>(2);
  26544. if ($826) {
  26545. $$0978 = $824;$$791686 = $823;$$821179 = $825;
  26546. } else {
  26547. break;
  26548. }
  26549. }
  26550. $827 = ($825|0)>(0);
  26551. if ($827) {
  26552. $828 = HEAP8[$824>>0]|0;
  26553. HEAP8[$823>>0] = $828;
  26554. $829 = ($825|0)==(1);
  26555. if (!($829)) {
  26556. $830 = ((($$0978)) + 4|0);
  26557. $831 = HEAP8[$830>>0]|0;
  26558. $832 = ((($$791686)) + 4|0);
  26559. HEAP8[$832>>0] = $831;
  26560. }
  26561. $833 = (($823) + ($825)|0);
  26562. $$531469 = $799;$$531660 = $833;$$561047 = $$761067;$$571154 = $825;$$571564 = $$811588;$$58 = $$82;$$581261 = $$781281;$$581367 = $$821391;
  26563. label = 139;
  26564. } else {
  26565. $$531469 = $799;$$531660 = $823;$$561047 = $$761067;$$571154 = $825;$$571564 = $$811588;$$58 = $$82;$$581261 = $$781281;$$581367 = $$821391;
  26566. label = 139;
  26567. }
  26568. }
  26569. } while(0);
  26570. if ((label|0) == 138) {
  26571. label = 0;
  26572. $536 = ((($0)) + 24|0);
  26573. $537 = HEAP32[$536>>2]|0;
  26574. $538 = (($537) + -1)|0;
  26575. HEAP32[$536>>2] = $538;
  26576. $$391455 = $$521468;$$391646 = $$521659;$$431034 = $$551046;$$431140 = $$561153;$$431550 = $$561563;$$44 = $$57;$$441247 = $$571260;$$441353 = $$571366;
  26577. label = 80;
  26578. continue;
  26579. }
  26580. else if ((label|0) == 139) {
  26581. label = 0;
  26582. $$541470$ph = $$531469;$$541661$ph = $$531660;$$571048$ph = $$561047;$$581155$ph = $$571154;$$581565$ph = $$571564;$$59$ph = $$58;$$591262$ph = $$581261;$$591368$ph = $$581367;
  26583. label = 140;
  26584. continue;
  26585. }
  26586. else if ((label|0) == 185) {
  26587. label = 0;
  26588. $709 = ($$73>>>0)<(15);
  26589. if (!($709)) {
  26590. $$691485 = $$651481;$$701677 = $$661673;$$731170 = $$691166;$$761583 = $$721579;$$77 = $$73;$$771386 = $$731382;
  26591. label = 198;
  26592. continue;
  26593. }
  26594. $710 = $10;
  26595. $711 = $$721579;
  26596. $712 = (($710) - ($711))|0;
  26597. $713 = ($712|0)<(2);
  26598. if ($713) {
  26599. $$661482 = $$651481;$$671674 = $$661673;$$691060 = $$681059;$$701167 = $$691166;$$711274 = $$701273;$$731580 = $$721579;$$74 = $$73;$$741383 = $$731382;
  26600. label = 187;
  26601. continue;
  26602. }
  26603. $744 = HEAP8[$$721579>>0]|0;
  26604. $745 = $744&255;
  26605. $746 = $745 << $$73;
  26606. $747 = ((($$721579)) + 1|0);
  26607. $748 = HEAP8[$747>>0]|0;
  26608. $749 = $748&255;
  26609. $750 = (($$73) + 8)|0;
  26610. $751 = $749 << $750;
  26611. $752 = $746 | $$731382;
  26612. $753 = $752 | $751;
  26613. $754 = ((($$721579)) + 2|0);
  26614. $755 = (($$73) + 16)|0;
  26615. $$691485 = $$651481;$$701677 = $$661673;$$731170 = $$691166;$$761583 = $754;$$77 = $755;$$771386 = $753;
  26616. label = 198;
  26617. continue;
  26618. }
  26619. }
  26620. if ((label|0) == 113) {
  26621. label = 0;
  26622. $449 = ($$461553>>>0)<($10>>>0);
  26623. if ($449) {
  26624. $$441460$ph = $$421458;$$441651$ph = $$421649;$$481039$ph = $$461037;$$481145$ph = $$461143;$$49$ph = $$47;$$491252$ph = $$471250;$$491358$ph = $$471356;$$sink1729 = $$461553;
  26625. label = 116;
  26626. continue;
  26627. } else {
  26628. $$431459 = $$421458;$$431650 = $$421649;$$471038 = $$461037;$$471144 = $$461143;$$471554 = $$461553;$$48 = $$47;$$481251 = $$471250;$$481357 = $$471356;
  26629. label = 114;
  26630. continue;
  26631. }
  26632. }
  26633. else if ((label|0) == 150) {
  26634. label = 0;
  26635. $569 = ($$591566>>>0)<($10>>>0);
  26636. if ($569) {
  26637. $$571473$ph = $$551471;$$571664$ph = $$551662;$$601051$ph = $$581049;$$611158$ph = $$591156;$$62$ph = $$60;$$621265$ph = $$601263;$$621371$ph = $$601369;$$sink1736 = $$591566;
  26638. label = 153;
  26639. continue;
  26640. } else {
  26641. $$561472 = $$551471;$$561663 = $$551662;$$591050 = $$581049;$$601157 = $$591156;$$601567 = $$591566;$$61 = $$60;$$611264 = $$601263;$$611370 = $$601369;
  26642. label = 151;
  26643. continue;
  26644. }
  26645. }
  26646. else if ((label|0) == 192) {
  26647. label = 0;
  26648. $734 = ($$731580>>>0)<($10>>>0);
  26649. if ($734) {
  26650. $$681484$ph = $$661482;$$691676$ph = $$671674;$$711062$ph = $$691060;$$721169$ph = $$701167;$$731276$ph = $$711274;$$76$ph = $$74;$$761385$ph = $$741383;$$sink1743 = $$731580;
  26651. label = 195;
  26652. continue;
  26653. } else {
  26654. $$671483 = $$661482;$$681675 = $$671674;$$701061 = $$691060;$$711168 = $$701167;$$721275 = $$711274;$$741581 = $$731580;$$75 = $$74;$$751384 = $$741383;
  26655. label = 193;
  26656. continue;
  26657. }
  26658. }
  26659. else if ((label|0) == 220) {
  26660. label = 0;
  26661. $834 = ((($0)) + 20|0);
  26662. $835 = HEAP32[$834>>2]|0;
  26663. $836 = $835 & 1;
  26664. $837 = ($836|0)==(0);
  26665. if ($837) {
  26666. $$01416 = $$761492;$$01607 = $$801687;$$41511 = $$851592;$$5 = $$86;$$51102 = $$831180;$$51208 = $$821285;$$51314 = $$861395;$$5996 = $$801071;
  26667. label = 14;
  26668. continue;
  26669. }
  26670. $838 = $6 & 1;
  26671. $839 = ($838|0)==(0);
  26672. if ($839) {
  26673. $$881504 = $$761492;$$921083 = $$801071;$$921699 = $$801687;$$941191 = $$831180;$$941297 = $$821285;$$971604 = $$851592;$$98 = $$86;$$981407 = $$861395;
  26674. label = 242;
  26675. continue;
  26676. } else {
  26677. $$801496 = $$761492;$$841075 = $$801071;$$841691 = $$801687;$$861289 = $$821285;$$891596 = $$851592;$$90 = $$86;$$901399 = $$861395;
  26678. label = 226;
  26679. continue;
  26680. }
  26681. }
  26682. }
  26683. if ((label|0) == 258) {
  26684. STACKTOP = sp;return ($$0951|0);
  26685. }
  26686. $892 = ((($0)) + 28|0);
  26687. $893 = HEAP32[$892>>2]|0;
  26688. $894 = $893 & 65535;
  26689. $895 = $893 >>> 16;
  26690. $896 = ($888|0)==(0);
  26691. if ($896) {
  26692. $$0937$lcssa = $895;$$0938$lcssa = $894;
  26693. } else {
  26694. $897 = (($888>>>0) % 5552)&-1;
  26695. $$01834 = $897;$$09371833 = $895;$$09381832 = $894;$$09431831 = $888;$$09441830 = $4;
  26696. while(1) {
  26697. $898 = ($$01834>>>0)>(7);
  26698. if ($898) {
  26699. $899 = (($$01834) + -8)|0;
  26700. $900 = $899 & -8;
  26701. $scevgep = ((($$09441830)) + 8|0);
  26702. $$09411816 = 0;$$11818 = $$09371833;$$19391817 = $$09381832;$$19451815 = $$09441830;
  26703. while(1) {
  26704. $904 = HEAP8[$$19451815>>0]|0;
  26705. $905 = $904&255;
  26706. $906 = (($905) + ($$19391817))|0;
  26707. $907 = (($906) + ($$11818))|0;
  26708. $908 = ((($$19451815)) + 1|0);
  26709. $909 = HEAP8[$908>>0]|0;
  26710. $910 = $909&255;
  26711. $911 = (($906) + ($910))|0;
  26712. $912 = (($907) + ($911))|0;
  26713. $913 = ((($$19451815)) + 2|0);
  26714. $914 = HEAP8[$913>>0]|0;
  26715. $915 = $914&255;
  26716. $916 = (($911) + ($915))|0;
  26717. $917 = (($912) + ($916))|0;
  26718. $918 = ((($$19451815)) + 3|0);
  26719. $919 = HEAP8[$918>>0]|0;
  26720. $920 = $919&255;
  26721. $921 = (($916) + ($920))|0;
  26722. $922 = (($917) + ($921))|0;
  26723. $923 = ((($$19451815)) + 4|0);
  26724. $924 = HEAP8[$923>>0]|0;
  26725. $925 = $924&255;
  26726. $926 = (($921) + ($925))|0;
  26727. $927 = (($922) + ($926))|0;
  26728. $928 = ((($$19451815)) + 5|0);
  26729. $929 = HEAP8[$928>>0]|0;
  26730. $930 = $929&255;
  26731. $931 = (($926) + ($930))|0;
  26732. $932 = (($927) + ($931))|0;
  26733. $933 = ((($$19451815)) + 6|0);
  26734. $934 = HEAP8[$933>>0]|0;
  26735. $935 = $934&255;
  26736. $936 = (($931) + ($935))|0;
  26737. $937 = (($932) + ($936))|0;
  26738. $938 = ((($$19451815)) + 7|0);
  26739. $939 = HEAP8[$938>>0]|0;
  26740. $940 = $939&255;
  26741. $941 = (($936) + ($940))|0;
  26742. $942 = (($937) + ($941))|0;
  26743. $943 = (($$09411816) + 8)|0;
  26744. $944 = ((($$19451815)) + 8|0);
  26745. $945 = $943 | 7;
  26746. $946 = ($945>>>0)<($$01834>>>0);
  26747. if ($946) {
  26748. $$09411816 = $943;$$11818 = $942;$$19391817 = $941;$$19451815 = $944;
  26749. } else {
  26750. break;
  26751. }
  26752. }
  26753. $901 = (($900) + 8)|0;
  26754. $scevgep1947 = (($scevgep) + ($900)|0);
  26755. $$0941$lcssa = $901;$$1$lcssa = $942;$$1939$lcssa = $941;$$1945$lcssa = $scevgep1947;
  26756. } else {
  26757. $$0941$lcssa = 0;$$1$lcssa = $$09371833;$$1939$lcssa = $$09381832;$$1945$lcssa = $$09441830;
  26758. }
  26759. $902 = ($$01834>>>0)>($$0941$lcssa>>>0);
  26760. if ($902) {
  26761. $903 = (($$01834) - ($$0941$lcssa))|0;
  26762. $$19421823 = $$0941$lcssa;$$21825 = $$1$lcssa;$$29401824 = $$1939$lcssa;$$29461822 = $$1945$lcssa;
  26763. while(1) {
  26764. $947 = ((($$29461822)) + 1|0);
  26765. $948 = HEAP8[$$29461822>>0]|0;
  26766. $949 = $948&255;
  26767. $950 = (($949) + ($$29401824))|0;
  26768. $951 = (($950) + ($$21825))|0;
  26769. $952 = (($$19421823) + 1)|0;
  26770. $exitcond = ($952|0)==($$01834|0);
  26771. if ($exitcond) {
  26772. break;
  26773. } else {
  26774. $$19421823 = $952;$$21825 = $951;$$29401824 = $950;$$29461822 = $947;
  26775. }
  26776. }
  26777. $scevgep1948 = (($$1945$lcssa) + ($903)|0);
  26778. $$2$lcssa = $951;$$2940$lcssa = $950;$$2946$lcssa = $scevgep1948;
  26779. } else {
  26780. $$2$lcssa = $$1$lcssa;$$2940$lcssa = $$1939$lcssa;$$2946$lcssa = $$1945$lcssa;
  26781. }
  26782. $953 = (($$2940$lcssa>>>0) % 65521)&-1;
  26783. $954 = (($$2$lcssa>>>0) % 65521)&-1;
  26784. $955 = (($$09431831) - ($$01834))|0;
  26785. $956 = ($955|0)==(0);
  26786. if ($956) {
  26787. $$0937$lcssa = $954;$$0938$lcssa = $953;
  26788. break;
  26789. } else {
  26790. $$01834 = 5552;$$09371833 = $954;$$09381832 = $953;$$09431831 = $955;$$09441830 = $$2946$lcssa;
  26791. }
  26792. }
  26793. }
  26794. $957 = $$0937$lcssa << 16;
  26795. $958 = $957 | $$0938$lcssa;
  26796. HEAP32[$892>>2] = $958;
  26797. $959 = ($$1961|0)!=(0);
  26798. $960 = $6 & 1;
  26799. $961 = ($960|0)==(0);
  26800. $or$cond1752 = $961 | $959;
  26801. if ($or$cond1752) {
  26802. $$0951 = $$1961;
  26803. STACKTOP = sp;return ($$0951|0);
  26804. } else {
  26805. $962 = ((($0)) + 16|0);
  26806. $963 = HEAP32[$962>>2]|0;
  26807. $964 = ($958|0)==($963|0);
  26808. $$1961$ = $964 ? $$1961 : -2;
  26809. STACKTOP = sp;return ($$1961$|0);
  26810. }
  26811. return (0)|0;
  26812. }
  26813. function _LoadTexture($0,$1) {
  26814. $0 = $0|0;
  26815. $1 = $1|0;
  26816. 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;
  26817. sp = STACKTOP;
  26818. STACKTOP = STACKTOP + 80|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(80|0);
  26819. $$byval_copy1 = sp + 60|0;
  26820. $vararg_buffer = sp + 16|0;
  26821. $$sroa$5 = sp;
  26822. $2 = sp + 20|0;
  26823. $3 = sp + 40|0;
  26824. _LoadImage($2,$1);
  26825. $4 = HEAP32[$2>>2]|0;
  26826. $5 = ($4|0)==(0|0);
  26827. if ($5) {
  26828. _TraceLog(2,12367,$vararg_buffer);
  26829. $$sroa$0$0 = 0;
  26830. } else {
  26831. ;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;
  26832. _LoadTextureFromImage($3,$$byval_copy1);
  26833. $$sroa$0$0$copyload = HEAP32[$3>>2]|0;
  26834. $$sroa$5$0$$sroa_idx = ((($3)) + 4|0);
  26835. ;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;
  26836. ;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;
  26837. _UnloadImage($$byval_copy1);
  26838. $$sroa$0$0 = $$sroa$0$0$copyload;
  26839. }
  26840. HEAP32[$0>>2] = $$sroa$0$0;
  26841. $$sroa$5$0$$sroa_idx5 = ((($0)) + 4|0);
  26842. ;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;
  26843. STACKTOP = sp;return;
  26844. }
  26845. function _LoadRenderTexture($0,$1,$2) {
  26846. $0 = $0|0;
  26847. $1 = $1|0;
  26848. $2 = $2|0;
  26849. var $3 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  26850. sp = STACKTOP;
  26851. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  26852. $3 = sp;
  26853. _rlglLoadRenderTexture($3,$1,$2);
  26854. dest=$0; src=$3; stop=dest+44|0; do { HEAP32[dest>>2]=HEAP32[src>>2]|0; dest=dest+4|0; src=src+4|0; } while ((dest|0) < (stop|0));
  26855. STACKTOP = sp;return;
  26856. }
  26857. function _GetDefaultFont($0) {
  26858. $0 = $0|0;
  26859. var label = 0, sp = 0;
  26860. sp = STACKTOP;
  26861. ;HEAP32[$0>>2]=HEAP32[19304>>2]|0;HEAP32[$0+4>>2]=HEAP32[19304+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[19304+8>>2]|0;HEAP32[$0+12>>2]=HEAP32[19304+12>>2]|0;HEAP32[$0+16>>2]=HEAP32[19304+16>>2]|0;HEAP32[$0+20>>2]=HEAP32[19304+20>>2]|0;HEAP32[$0+24>>2]=HEAP32[19304+24>>2]|0;HEAP32[$0+28>>2]=HEAP32[19304+28>>2]|0;
  26862. return;
  26863. }
  26864. function _GetCharIndex($0,$1) {
  26865. $0 = $0|0;
  26866. $1 = $1|0;
  26867. 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;
  26868. sp = STACKTOP;
  26869. $2 = ((($0)) + 24|0);
  26870. $3 = HEAP32[$2>>2]|0;
  26871. $4 = ($3|0)>(0);
  26872. if (!($4)) {
  26873. $$08 = 0;
  26874. return ($$08|0);
  26875. }
  26876. $5 = ((($0)) + 28|0);
  26877. $6 = HEAP32[$5>>2]|0;
  26878. $$09 = 0;
  26879. while(1) {
  26880. $7 = (($6) + ($$09<<5)|0);
  26881. $8 = HEAP32[$7>>2]|0;
  26882. $9 = ($8|0)==($1|0);
  26883. if ($9) {
  26884. $$08 = $$09;
  26885. label = 5;
  26886. break;
  26887. }
  26888. $10 = (($$09) + 1)|0;
  26889. $11 = HEAP32[$2>>2]|0;
  26890. $12 = ($10|0)<($11|0);
  26891. if ($12) {
  26892. $$09 = $10;
  26893. } else {
  26894. $$08 = 0;
  26895. label = 5;
  26896. break;
  26897. }
  26898. }
  26899. if ((label|0) == 5) {
  26900. return ($$08|0);
  26901. }
  26902. return (0)|0;
  26903. }
  26904. function _DrawTexturePro($0,$1,$2,$3,$4,$5) {
  26905. $0 = $0|0;
  26906. $1 = $1|0;
  26907. $2 = $2|0;
  26908. $3 = $3|0;
  26909. $4 = +$4;
  26910. $5 = $5|0;
  26911. 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;
  26912. 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;
  26913. 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;
  26914. 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;
  26915. 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;
  26916. sp = STACKTOP;
  26917. $6 = HEAP32[$0>>2]|0;
  26918. $7 = ($6|0)==(0);
  26919. if ($7) {
  26920. return;
  26921. }
  26922. $8 = ((($1)) + 8|0);
  26923. $9 = HEAP32[$8>>2]|0;
  26924. $10 = ($9|0)<(0);
  26925. if ($10) {
  26926. $11 = HEAP32[$1>>2]|0;
  26927. $12 = (($11) - ($9))|0;
  26928. HEAP32[$1>>2] = $12;
  26929. }
  26930. $13 = ((($1)) + 12|0);
  26931. $14 = HEAP32[$13>>2]|0;
  26932. $15 = ($14|0)<(0);
  26933. if ($15) {
  26934. $16 = ((($1)) + 4|0);
  26935. $17 = HEAP32[$16>>2]|0;
  26936. $18 = (($17) - ($14))|0;
  26937. HEAP32[$16>>2] = $18;
  26938. }
  26939. $19 = HEAP32[$0>>2]|0;
  26940. _rlEnableTexture($19);
  26941. _rlPushMatrix();
  26942. $20 = HEAP32[$2>>2]|0;
  26943. $21 = (+($20|0));
  26944. $22 = ((($2)) + 4|0);
  26945. $23 = HEAP32[$22>>2]|0;
  26946. $24 = (+($23|0));
  26947. _rlTranslatef($21,$24,0.0);
  26948. _rlRotatef($4,0.0,0.0,1.0);
  26949. $25 = +HEAPF32[$3>>2];
  26950. $26 = -$25;
  26951. $27 = ((($3)) + 4|0);
  26952. $28 = +HEAPF32[$27>>2];
  26953. $29 = -$28;
  26954. _rlTranslatef($26,$29,0.0);
  26955. _rlBegin(7);
  26956. $30 = HEAP8[$5>>0]|0;
  26957. $31 = ((($5)) + 1|0);
  26958. $32 = HEAP8[$31>>0]|0;
  26959. $33 = ((($5)) + 2|0);
  26960. $34 = HEAP8[$33>>0]|0;
  26961. $35 = ((($5)) + 3|0);
  26962. $36 = HEAP8[$35>>0]|0;
  26963. _rlColor4ub($30,$32,$34,$36);
  26964. $37 = HEAP32[$1>>2]|0;
  26965. $38 = (+($37|0));
  26966. $39 = ((($0)) + 4|0);
  26967. $40 = HEAP32[$39>>2]|0;
  26968. $41 = (+($40|0));
  26969. $42 = $38 / $41;
  26970. $43 = ((($1)) + 4|0);
  26971. $44 = HEAP32[$43>>2]|0;
  26972. $45 = (+($44|0));
  26973. $46 = ((($0)) + 8|0);
  26974. $47 = HEAP32[$46>>2]|0;
  26975. $48 = (+($47|0));
  26976. $49 = $45 / $48;
  26977. _rlTexCoord2f($42,$49);
  26978. _rlVertex2f(0.0,0.0);
  26979. $50 = HEAP32[$1>>2]|0;
  26980. $51 = (+($50|0));
  26981. $52 = HEAP32[$39>>2]|0;
  26982. $53 = (+($52|0));
  26983. $54 = $51 / $53;
  26984. $55 = HEAP32[$43>>2]|0;
  26985. $56 = HEAP32[$13>>2]|0;
  26986. $57 = (($56) + ($55))|0;
  26987. $58 = (+($57|0));
  26988. $59 = HEAP32[$46>>2]|0;
  26989. $60 = (+($59|0));
  26990. $61 = $58 / $60;
  26991. _rlTexCoord2f($54,$61);
  26992. $62 = ((($2)) + 12|0);
  26993. $63 = HEAP32[$62>>2]|0;
  26994. $64 = (+($63|0));
  26995. _rlVertex2f(0.0,$64);
  26996. $65 = HEAP32[$1>>2]|0;
  26997. $66 = HEAP32[$8>>2]|0;
  26998. $67 = (($66) + ($65))|0;
  26999. $68 = (+($67|0));
  27000. $69 = HEAP32[$39>>2]|0;
  27001. $70 = (+($69|0));
  27002. $71 = $68 / $70;
  27003. $72 = HEAP32[$43>>2]|0;
  27004. $73 = HEAP32[$13>>2]|0;
  27005. $74 = (($73) + ($72))|0;
  27006. $75 = (+($74|0));
  27007. $76 = HEAP32[$46>>2]|0;
  27008. $77 = (+($76|0));
  27009. $78 = $75 / $77;
  27010. _rlTexCoord2f($71,$78);
  27011. $79 = ((($2)) + 8|0);
  27012. $80 = HEAP32[$79>>2]|0;
  27013. $81 = (+($80|0));
  27014. $82 = HEAP32[$62>>2]|0;
  27015. $83 = (+($82|0));
  27016. _rlVertex2f($81,$83);
  27017. $84 = HEAP32[$1>>2]|0;
  27018. $85 = HEAP32[$8>>2]|0;
  27019. $86 = (($85) + ($84))|0;
  27020. $87 = (+($86|0));
  27021. $88 = HEAP32[$39>>2]|0;
  27022. $89 = (+($88|0));
  27023. $90 = $87 / $89;
  27024. $91 = HEAP32[$43>>2]|0;
  27025. $92 = (+($91|0));
  27026. $93 = HEAP32[$46>>2]|0;
  27027. $94 = (+($93|0));
  27028. $95 = $92 / $94;
  27029. _rlTexCoord2f($90,$95);
  27030. $96 = HEAP32[$79>>2]|0;
  27031. $97 = (+($96|0));
  27032. _rlVertex2f($97,0.0);
  27033. _rlEnd();
  27034. _rlPopMatrix();
  27035. _rlDisableTexture();
  27036. return;
  27037. }
  27038. function _DrawTextureRec($0,$1,$2,$3) {
  27039. $0 = $0|0;
  27040. $1 = $1|0;
  27041. $2 = $2|0;
  27042. $3 = $3|0;
  27043. var $$byval_copy = 0, $$byval_copy1 = 0, $$byval_copy2 = 0, $$byval_copy3 = 0, $10 = 0.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, $4 = 0, $5 = 0;
  27044. var $6 = 0.0, $7 = 0, $8 = 0, $9 = 0, $ispos = 0, $ispos1 = 0, $neg = 0, $neg2 = 0, $tmpcast$byval_copy = 0, label = 0, sp = 0;
  27045. sp = STACKTOP;
  27046. STACKTOP = STACKTOP + 96|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(96|0);
  27047. $$byval_copy3 = sp + 88|0;
  27048. $tmpcast$byval_copy = sp + 80|0;
  27049. $$byval_copy2 = sp + 64|0;
  27050. $$byval_copy1 = sp + 48|0;
  27051. $$byval_copy = sp + 24|0;
  27052. $4 = sp + 8|0;
  27053. $5 = sp;
  27054. $6 = +HEAPF32[$2>>2];
  27055. $7 = (~~(($6)));
  27056. HEAP32[$4>>2] = $7;
  27057. $8 = ((($4)) + 4|0);
  27058. $9 = ((($2)) + 4|0);
  27059. $10 = +HEAPF32[$9>>2];
  27060. $11 = (~~(($10)));
  27061. HEAP32[$8>>2] = $11;
  27062. $12 = ((($4)) + 8|0);
  27063. $13 = ((($1)) + 8|0);
  27064. $14 = HEAP32[$13>>2]|0;
  27065. $ispos = ($14|0)>(-1);
  27066. $neg = (0 - ($14))|0;
  27067. $15 = $ispos ? $14 : $neg;
  27068. HEAP32[$12>>2] = $15;
  27069. $16 = ((($4)) + 12|0);
  27070. $17 = ((($1)) + 12|0);
  27071. $18 = HEAP32[$17>>2]|0;
  27072. $ispos1 = ($18|0)>(-1);
  27073. $neg2 = (0 - ($18))|0;
  27074. $19 = $ispos1 ? $18 : $neg2;
  27075. HEAP32[$16>>2] = $19;
  27076. $20 = $5;
  27077. $21 = $20;
  27078. HEAP32[$21>>2] = 0;
  27079. $22 = (($20) + 4)|0;
  27080. $23 = $22;
  27081. HEAP32[$23>>2] = 0;
  27082. ;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;
  27083. ;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;HEAP32[$$byval_copy1+12>>2]=HEAP32[$1+12>>2]|0;
  27084. ;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;HEAP32[$$byval_copy2+12>>2]=HEAP32[$4+12>>2]|0;
  27085. ;HEAP32[$tmpcast$byval_copy>>2]=HEAP32[$5>>2]|0;HEAP32[$tmpcast$byval_copy+4>>2]=HEAP32[$5+4>>2]|0;
  27086. ;HEAP8[$$byval_copy3>>0]=HEAP8[$3>>0]|0;HEAP8[$$byval_copy3+1>>0]=HEAP8[$3+1>>0]|0;HEAP8[$$byval_copy3+2>>0]=HEAP8[$3+2>>0]|0;HEAP8[$$byval_copy3+3>>0]=HEAP8[$3+3>>0]|0;
  27087. _DrawTexturePro($$byval_copy,$$byval_copy1,$$byval_copy2,$tmpcast$byval_copy,0.0,$$byval_copy3);
  27088. STACKTOP = sp;return;
  27089. }
  27090. function _DrawText($0,$1,$2,$3,$4) {
  27091. $0 = $0|0;
  27092. $1 = $1|0;
  27093. $2 = $2|0;
  27094. $3 = $3|0;
  27095. $4 = $4|0;
  27096. 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;
  27097. sp = STACKTOP;
  27098. STACKTOP = STACKTOP + 128|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(128|0);
  27099. $$byval_copy2 = sp + 112|0;
  27100. $$byval_copy1 = sp + 104|0;
  27101. $$byval_copy = sp + 72|0;
  27102. $5 = sp + 32|0;
  27103. $6 = sp + 64|0;
  27104. $7 = sp;
  27105. _GetDefaultFont($5);
  27106. $8 = HEAP32[$5>>2]|0;
  27107. $9 = ($8|0)==(0);
  27108. if ($9) {
  27109. STACKTOP = sp;return;
  27110. }
  27111. $10 = (+($1|0));
  27112. HEAPF32[$6>>2] = $10;
  27113. $11 = ((($6)) + 4|0);
  27114. $12 = (+($2|0));
  27115. HEAPF32[$11>>2] = $12;
  27116. $13 = ($3|0)>(10);
  27117. $$ = $13 ? $3 : 10;
  27118. $14 = (($$>>>0) / 10)&-1;
  27119. _GetDefaultFont($7);
  27120. $15 = (+($$|0));
  27121. ;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;
  27122. ;HEAP32[$$byval_copy1>>2]=HEAP32[$6>>2]|0;HEAP32[$$byval_copy1+4>>2]=HEAP32[$6+4>>2]|0;
  27123. ;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;
  27124. _DrawTextEx($$byval_copy,$0,$$byval_copy1,$15,$14,$$byval_copy2);
  27125. STACKTOP = sp;return;
  27126. }
  27127. function _DrawTextEx($0,$1,$2,$3,$4,$5) {
  27128. $0 = $0|0;
  27129. $1 = $1|0;
  27130. $2 = $2|0;
  27131. $3 = +$3;
  27132. $4 = $4|0;
  27133. $5 = $5|0;
  27134. 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;
  27135. 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;
  27136. 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;
  27137. 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;
  27138. 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;
  27139. sp = STACKTOP;
  27140. STACKTOP = STACKTOP + 128|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(128|0);
  27141. $$byval_copy5 = sp + 88|0;
  27142. $$byval_copy4 = sp + 80|0;
  27143. $$byval_copy3 = sp + 64|0;
  27144. $$byval_copy2 = sp + 48|0;
  27145. $$byval_copy1 = sp + 24|0;
  27146. $6 = sp + 8|0;
  27147. $7 = sp;
  27148. $8 = (_strlen($1)|0);
  27149. $9 = ((($0)) + 20|0);
  27150. $10 = HEAP32[$9>>2]|0;
  27151. $11 = (+($10|0));
  27152. $12 = $3 / $11;
  27153. $13 = ($8|0)>(0);
  27154. if (!($13)) {
  27155. STACKTOP = sp;return;
  27156. }
  27157. $14 = ((($0)) + 28|0);
  27158. $15 = +HEAPF32[$2>>2];
  27159. $16 = ((($6)) + 4|0);
  27160. $17 = ((($2)) + 4|0);
  27161. $18 = ((($6)) + 8|0);
  27162. $19 = ((($6)) + 12|0);
  27163. $20 = ((($7)) + 4|0);
  27164. $21 = (+($4|0));
  27165. $$04954 = 0;$$05153 = 0;$$055 = 0;
  27166. while(1) {
  27167. $22 = (($1) + ($$055)|0);
  27168. $23 = HEAP8[$22>>0]|0;
  27169. switch ($23<<24>>24) {
  27170. case 10: {
  27171. $24 = HEAP32[$9>>2]|0;
  27172. $25 = (($24|0) / 2)&-1;
  27173. $26 = (($25) + ($24))|0;
  27174. $27 = (+($26|0));
  27175. $28 = $12 * $27;
  27176. $29 = (~~(($28)));
  27177. $30 = (($29) + ($$05153))|0;
  27178. $$150 = 0;$$152 = $30;$$2 = $$055;
  27179. break;
  27180. }
  27181. case -62: {
  27182. $31 = (($$055) + 1)|0;
  27183. $32 = (($1) + ($31)|0);
  27184. $33 = HEAP8[$32>>0]|0;
  27185. $34 = $33&255;
  27186. $$1 = $31;$$sink = $34;
  27187. label = 9;
  27188. break;
  27189. }
  27190. case -61: {
  27191. $35 = (($$055) + 1)|0;
  27192. $36 = (($1) + ($35)|0);
  27193. $37 = HEAP8[$36>>0]|0;
  27194. $38 = $37&255;
  27195. $39 = (($38) + 64)|0;
  27196. $$1 = $35;$$sink = $39;
  27197. label = 9;
  27198. break;
  27199. }
  27200. default: {
  27201. $40 = $23 << 24 >> 24;
  27202. $$1 = $$055;$$sink = $40;
  27203. label = 9;
  27204. }
  27205. }
  27206. do {
  27207. if ((label|0) == 9) {
  27208. label = 0;
  27209. ;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;
  27210. $41 = (_GetCharIndex($$byval_copy5,$$sink)|0);
  27211. $42 = HEAP32[$14>>2]|0;
  27212. $43 = (((($42) + ($41<<5)|0)) + 4|0);
  27213. $44 = (+($$04954|0));
  27214. $45 = $44 + $15;
  27215. $46 = (((($42) + ($41<<5)|0)) + 20|0);
  27216. $47 = HEAP32[$46>>2]|0;
  27217. $48 = (+($47|0));
  27218. $49 = $12 * $48;
  27219. $50 = $45 + $49;
  27220. $51 = (~~(($50)));
  27221. HEAP32[$6>>2] = $51;
  27222. $52 = +HEAPF32[$17>>2];
  27223. $53 = (+($$05153|0));
  27224. $54 = $53 + $52;
  27225. $55 = (((($42) + ($41<<5)|0)) + 24|0);
  27226. $56 = HEAP32[$55>>2]|0;
  27227. $57 = (+($56|0));
  27228. $58 = $12 * $57;
  27229. $59 = $54 + $58;
  27230. $60 = (~~(($59)));
  27231. HEAP32[$16>>2] = $60;
  27232. $61 = (((($42) + ($41<<5)|0)) + 12|0);
  27233. $62 = HEAP32[$61>>2]|0;
  27234. $63 = (+($62|0));
  27235. $64 = $12 * $63;
  27236. $65 = (~~(($64)));
  27237. HEAP32[$18>>2] = $65;
  27238. $66 = (((($42) + ($41<<5)|0)) + 16|0);
  27239. $67 = HEAP32[$66>>2]|0;
  27240. $68 = (+($67|0));
  27241. $69 = $12 * $68;
  27242. $70 = (~~(($69)));
  27243. HEAP32[$19>>2] = $70;
  27244. HEAPF32[$7>>2] = 0.0;
  27245. HEAPF32[$20>>2] = 0.0;
  27246. ;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;
  27247. ;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;
  27248. ;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;
  27249. ;HEAP32[$$byval_copy4>>2]=HEAP32[$7>>2]|0;HEAP32[$$byval_copy4+4>>2]=HEAP32[$7+4>>2]|0;
  27250. ;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;
  27251. _DrawTexturePro($$byval_copy1,$$byval_copy2,$$byval_copy3,$$byval_copy4,0.0,$$byval_copy5);
  27252. $71 = HEAP32[$14>>2]|0;
  27253. $72 = (((($71) + ($41<<5)|0)) + 28|0);
  27254. $73 = HEAP32[$72>>2]|0;
  27255. $74 = ($73|0)==(0);
  27256. if ($74) {
  27257. $75 = (((($71) + ($41<<5)|0)) + 12|0);
  27258. $76 = HEAP32[$75>>2]|0;
  27259. $77 = (+($76|0));
  27260. $78 = $12 * $77;
  27261. $79 = $21 + $78;
  27262. $80 = (~~(($79)));
  27263. $81 = (($80) + ($$04954))|0;
  27264. $$150 = $81;$$152 = $$05153;$$2 = $$1;
  27265. break;
  27266. } else {
  27267. $82 = (+($73|0));
  27268. $83 = $12 * $82;
  27269. $84 = $21 + $83;
  27270. $85 = (~~(($84)));
  27271. $86 = (($85) + ($$04954))|0;
  27272. $$150 = $86;$$152 = $$05153;$$2 = $$1;
  27273. break;
  27274. }
  27275. }
  27276. } while(0);
  27277. $87 = (($$2) + 1)|0;
  27278. $88 = ($87|0)<($8|0);
  27279. if ($88) {
  27280. $$04954 = $$150;$$05153 = $$152;$$055 = $87;
  27281. } else {
  27282. break;
  27283. }
  27284. }
  27285. STACKTOP = sp;return;
  27286. }
  27287. function _FormatText($0,$varargs) {
  27288. $0 = $0|0;
  27289. $varargs = $varargs|0;
  27290. var $1 = 0, label = 0, sp = 0;
  27291. sp = STACKTOP;
  27292. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  27293. $1 = sp;
  27294. HEAP32[$1>>2] = $varargs;
  27295. (_vsprintf(23391,$0,$1)|0);
  27296. STACKTOP = sp;return (23391|0);
  27297. }
  27298. function _DrawFPS($0,$1) {
  27299. $0 = $0|0;
  27300. $1 = $1|0;
  27301. 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;
  27302. sp = STACKTOP;
  27303. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  27304. $$byval_copy = sp;
  27305. $2 = sp + 4|0;
  27306. $3 = HEAP32[5379]|0;
  27307. $4 = HEAP32[925]|0;
  27308. $5 = ($3|0)<($4|0);
  27309. if ($5) {
  27310. $6 = (($3) + 1)|0;
  27311. $$sink = $6;
  27312. } else {
  27313. $7 = (_GetFPS()|0);
  27314. HEAP32[5380] = $7;
  27315. HEAP32[925] = $7;
  27316. $$sink = 0;
  27317. }
  27318. HEAP32[5379] = $$sink;
  27319. $8 = HEAP32[5380]|0;
  27320. HEAP32[$$byval_copy>>2] = $8;
  27321. (_FormatText(12396,$$byval_copy)|0);
  27322. HEAP8[$2>>0] = 0;
  27323. $9 = ((($2)) + 1|0);
  27324. HEAP8[$9>>0] = -98;
  27325. $10 = ((($2)) + 2|0);
  27326. HEAP8[$10>>0] = 47;
  27327. $11 = ((($2)) + 3|0);
  27328. HEAP8[$11>>0] = -1;
  27329. ;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;
  27330. _DrawText(23391,$0,$1,20,$$byval_copy);
  27331. STACKTOP = sp;return;
  27332. }
  27333. function _DrawGrid($0,$1) {
  27334. $0 = $0|0;
  27335. $1 = +$1;
  27336. 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;
  27337. sp = STACKTOP;
  27338. $2 = (($0|0) / 2)&-1;
  27339. _rlBegin(1);
  27340. $3 = (0 - ($2))|0;
  27341. $4 = ($2|0)<($3|0);
  27342. if ($4) {
  27343. _rlEnd();
  27344. return;
  27345. }
  27346. $5 = (+($3|0));
  27347. $6 = $5 * $1;
  27348. $7 = (+($2|0));
  27349. $8 = $7 * $1;
  27350. $$024 = $3;
  27351. while(1) {
  27352. $9 = ($$024|0)==(0);
  27353. if ($9) {
  27354. _rlColor3f(0.5,0.5,0.5);
  27355. _rlColor3f(0.5,0.5,0.5);
  27356. _rlColor3f(0.5,0.5,0.5);
  27357. _rlColor3f(0.5,0.5,0.5);
  27358. } else {
  27359. _rlColor3f(0.75,0.75,0.75);
  27360. _rlColor3f(0.75,0.75,0.75);
  27361. _rlColor3f(0.75,0.75,0.75);
  27362. _rlColor3f(0.75,0.75,0.75);
  27363. }
  27364. $10 = (+($$024|0));
  27365. $11 = $10 * $1;
  27366. _rlVertex3f($11,0.0,$6);
  27367. _rlVertex3f($11,0.0,$8);
  27368. _rlVertex3f($6,0.0,$11);
  27369. _rlVertex3f($8,0.0,$11);
  27370. $12 = (($$024) + 1)|0;
  27371. $13 = ($$024|0)<($2|0);
  27372. if ($13) {
  27373. $$024 = $12;
  27374. } else {
  27375. break;
  27376. }
  27377. }
  27378. _rlEnd();
  27379. return;
  27380. }
  27381. function _LoadMesh($0,$1) {
  27382. $0 = $0|0;
  27383. $1 = $1|0;
  27384. 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;
  27385. sp = STACKTOP;
  27386. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  27387. $vararg_buffer = sp;
  27388. $2 = sp + 72|0;
  27389. $3 = sp + 4|0;
  27390. dest=$2; stop=dest+68|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  27391. $4 = (_IsFileExtension($1,12404)|0);
  27392. $5 = ($4|0)==(0);
  27393. if (!($5)) {
  27394. _LoadOBJ($3,$1);
  27395. 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));
  27396. }
  27397. $6 = HEAP32[$2>>2]|0;
  27398. $7 = ($6|0)==(0);
  27399. if ($7) {
  27400. _TraceLog(2,12409,$vararg_buffer);
  27401. } else {
  27402. _rlglLoadMesh($2,0);
  27403. }
  27404. 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));
  27405. STACKTOP = sp;return;
  27406. }
  27407. function _LoadOBJ($0,$1) {
  27408. $0 = $0|0;
  27409. $1 = $1|0;
  27410. 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;
  27411. 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;
  27412. 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;
  27413. 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;
  27414. 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;
  27415. 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;
  27416. 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;
  27417. 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;
  27418. 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;
  27419. 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;
  27420. 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;
  27421. 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;
  27422. 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;
  27423. 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;
  27424. 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;
  27425. 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;
  27426. 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;
  27427. 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;
  27428. 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;
  27429. 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;
  27430. 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;
  27431. 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;
  27432. 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;
  27433. var $vararg_ptr89 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  27434. sp = STACKTOP;
  27435. STACKTOP = STACKTOP + 672|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(672|0);
  27436. $$byval_copy103 = sp + 320|0;
  27437. $$byval_copy102 = sp + 304|0;
  27438. $vararg_buffer90 = sp + 296|0;
  27439. $vararg_buffer79 = sp + 256|0;
  27440. $vararg_buffer71 = sp + 232|0;
  27441. $vararg_buffer63 = sp + 208|0;
  27442. $vararg_buffer58 = sp + 192|0;
  27443. $vararg_buffer55 = sp + 184|0;
  27444. $vararg_buffer52 = sp + 176|0;
  27445. $vararg_buffer49 = sp + 168|0;
  27446. $vararg_buffer44 = sp + 152|0;
  27447. $vararg_buffer41 = sp + 144|0;
  27448. $vararg_buffer36 = sp + 128|0;
  27449. $vararg_buffer33 = sp + 120|0;
  27450. $vararg_buffer29 = sp + 112|0;
  27451. $vararg_buffer26 = sp + 104|0;
  27452. $vararg_buffer23 = sp + 96|0;
  27453. $vararg_buffer11 = sp + 80|0;
  27454. $vararg_buffer7 = sp + 64|0;
  27455. $vararg_buffer4 = sp + 56|0;
  27456. $vararg_buffer1 = sp + 48|0;
  27457. $vararg_buffer = sp + 40|0;
  27458. $$sroa$75 = sp;
  27459. $2 = sp + 664|0;
  27460. $3 = sp + 464|0;
  27461. $4 = sp + 428|0;
  27462. $5 = sp + 416|0;
  27463. $6 = sp + 452|0;
  27464. $7 = sp + 440|0;
  27465. $8 = sp + 404|0;
  27466. $9 = sp + 392|0;
  27467. $10 = sp + 380|0;
  27468. $11 = sp + 368|0;
  27469. $12 = sp + 356|0;
  27470. $13 = sp + 344|0;
  27471. $14 = sp + 332|0;
  27472. dest=$$sroa$75; stop=dest+36|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  27473. $15 = (_fopen($1,12434)|0);
  27474. $16 = ($15|0)==(0|0);
  27475. if ($16) {
  27476. HEAP32[$vararg_buffer>>2] = $1;
  27477. _TraceLog(2,12437,$vararg_buffer);
  27478. $$sroa$75$0$$sroa_idx = ((($0)) + 32|0);
  27479. ;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;
  27480. 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));
  27481. STACKTOP = sp;return;
  27482. }
  27483. $17 = (_feof($15)|0);
  27484. $18 = ($17|0)==(0);
  27485. L5: do {
  27486. if ($18) {
  27487. $$0$ph445 = 0;$$0344$ph444 = 0;$$0345$ph443 = 0;$$0346$ph442 = 0;
  27488. while(1) {
  27489. $$0$ph374433 = $$0$ph445;$$0344$ph373432 = $$0344$ph444;$$0345$ph372431 = $$0345$ph443;
  27490. L8: while(1) {
  27491. $$0$ph377422 = $$0$ph374433;$$0344$ph376421 = $$0344$ph373432;
  27492. L10: while(1) {
  27493. $$0$ph379412 = $$0$ph377422;
  27494. L12: while(1) {
  27495. L14: while(1) {
  27496. HEAP32[$vararg_buffer1>>2] = $2;
  27497. (_fscanf($15,12471,$vararg_buffer1)|0);
  27498. $19 = HEAP8[$2>>0]|0;
  27499. $20 = $19 << 24 >> 24;
  27500. switch ($20|0) {
  27501. case 102: {
  27502. break L8;
  27503. break;
  27504. }
  27505. case 118: {
  27506. break L14;
  27507. break;
  27508. }
  27509. case 117: case 109: case 115: case 103: case 111: case 35: {
  27510. (_fgets($3,200,$15)|0);
  27511. break;
  27512. }
  27513. default: {
  27514. }
  27515. }
  27516. $21 = (_feof($15)|0);
  27517. $22 = ($21|0)==(0);
  27518. if (!($22)) {
  27519. $$0$ph379$lcssa386 = $$0$ph379412;$$0344$ph376$lcssa388 = $$0344$ph376421;$$0345$ph372$lcssa389 = $$0345$ph372431;$$0346$ph$lcssa = $$0346$ph442;
  27520. break L5;
  27521. }
  27522. }
  27523. HEAP32[$vararg_buffer4>>2] = $2;
  27524. (_fscanf($15,12471,$vararg_buffer4)|0);
  27525. $23 = HEAP8[$2>>0]|0;
  27526. switch ($23<<24>>24) {
  27527. case 116: {
  27528. break L10;
  27529. break;
  27530. }
  27531. case 110: {
  27532. break L12;
  27533. break;
  27534. }
  27535. default: {
  27536. }
  27537. }
  27538. $30 = (($$0$ph379412) + 1)|0;
  27539. (_fgets($3,200,$15)|0);
  27540. $31 = (_feof($15)|0);
  27541. $32 = ($31|0)==(0);
  27542. if ($32) {
  27543. $$0$ph379412 = $30;
  27544. } else {
  27545. $$0$ph379$lcssa386 = $30;$$0344$ph376$lcssa388 = $$0344$ph376421;$$0345$ph372$lcssa389 = $$0345$ph372431;$$0346$ph$lcssa = $$0346$ph442;
  27546. break L5;
  27547. }
  27548. }
  27549. $27 = (($$0344$ph376421) + 1)|0;
  27550. (_fgets($3,200,$15)|0);
  27551. $28 = (_feof($15)|0);
  27552. $29 = ($28|0)==(0);
  27553. if ($29) {
  27554. $$0$ph377422 = $$0$ph379412;$$0344$ph376421 = $27;
  27555. } else {
  27556. $$0$ph379$lcssa386 = $$0$ph379412;$$0344$ph376$lcssa388 = $27;$$0345$ph372$lcssa389 = $$0345$ph372431;$$0346$ph$lcssa = $$0346$ph442;
  27557. break L5;
  27558. }
  27559. }
  27560. $24 = (($$0345$ph372431) + 1)|0;
  27561. (_fgets($3,200,$15)|0);
  27562. $25 = (_feof($15)|0);
  27563. $26 = ($25|0)==(0);
  27564. if ($26) {
  27565. $$0$ph374433 = $$0$ph379412;$$0344$ph373432 = $$0344$ph376421;$$0345$ph372431 = $24;
  27566. } else {
  27567. $$0$ph379$lcssa386 = $$0$ph379412;$$0344$ph376$lcssa388 = $$0344$ph376421;$$0345$ph372$lcssa389 = $24;$$0346$ph$lcssa = $$0346$ph442;
  27568. break L5;
  27569. }
  27570. }
  27571. $33 = (($$0346$ph442) + 1)|0;
  27572. (_fgets($3,200,$15)|0);
  27573. $34 = (_feof($15)|0);
  27574. $35 = ($34|0)==(0);
  27575. if ($35) {
  27576. $$0$ph445 = $$0$ph379412;$$0344$ph444 = $$0344$ph376421;$$0345$ph443 = $$0345$ph372431;$$0346$ph442 = $33;
  27577. } else {
  27578. $$0$ph379$lcssa386 = $$0$ph379412;$$0344$ph376$lcssa388 = $$0344$ph376421;$$0345$ph372$lcssa389 = $$0345$ph372431;$$0346$ph$lcssa = $33;
  27579. break;
  27580. }
  27581. }
  27582. } else {
  27583. $$0$ph379$lcssa386 = 0;$$0344$ph376$lcssa388 = 0;$$0345$ph372$lcssa389 = 0;$$0346$ph$lcssa = 0;
  27584. }
  27585. } while(0);
  27586. HEAP32[$vararg_buffer7>>2] = $1;
  27587. $vararg_ptr10 = ((($vararg_buffer7)) + 4|0);
  27588. HEAP32[$vararg_ptr10>>2] = $$0$ph379$lcssa386;
  27589. _TraceLog(3,12474,$vararg_buffer7);
  27590. HEAP32[$vararg_buffer11>>2] = $1;
  27591. $vararg_ptr14 = ((($vararg_buffer11)) + 4|0);
  27592. HEAP32[$vararg_ptr14>>2] = $$0345$ph372$lcssa389;
  27593. _TraceLog(3,12502,$vararg_buffer11);
  27594. HEAP32[$$byval_copy102>>2] = $1;
  27595. $vararg_ptr18 = ((($$byval_copy102)) + 4|0);
  27596. HEAP32[$vararg_ptr18>>2] = $$0344$ph376$lcssa388;
  27597. _TraceLog(3,12531,$$byval_copy102);
  27598. HEAP32[$$byval_copy103>>2] = $1;
  27599. $vararg_ptr22 = ((($$byval_copy103)) + 4|0);
  27600. HEAP32[$vararg_ptr22>>2] = $$0346$ph$lcssa;
  27601. _TraceLog(3,12558,$$byval_copy103);
  27602. $36 = ($$0$ph379$lcssa386*12)|0;
  27603. $37 = (_malloc($36)|0);
  27604. $38 = ($$0344$ph376$lcssa388|0)>(0);
  27605. if ($38) {
  27606. $39 = ($$0344$ph376$lcssa388*12)|0;
  27607. $40 = (_malloc($39)|0);
  27608. $$0357 = $40;$369 = $40;
  27609. } else {
  27610. $$0357 = 0;$369 = 0;
  27611. }
  27612. $41 = ($$0345$ph372$lcssa389|0)>(0);
  27613. if ($41) {
  27614. $42 = $$0345$ph372$lcssa389 << 3;
  27615. $43 = (_malloc($42)|0);
  27616. $$0356 = $43;$370 = $43;
  27617. } else {
  27618. $$0356 = 0;$370 = 0;
  27619. }
  27620. _rewind($15);
  27621. $44 = (_feof($15)|0);
  27622. $45 = ($44|0)==(0);
  27623. L31: do {
  27624. if ($45) {
  27625. $$0353$ph402 = 0;$$0354$ph401 = 0;$$0355$ph400 = 0;
  27626. while(1) {
  27627. $$0353$ph365399 = $$0353$ph402;$$0354$ph364398 = $$0354$ph401;
  27628. L34: while(1) {
  27629. $$0353$ph367397 = $$0353$ph365399;
  27630. L36: while(1) {
  27631. L38: while(1) {
  27632. HEAP32[$vararg_buffer23>>2] = $2;
  27633. (_fscanf($15,12471,$vararg_buffer23)|0);
  27634. $46 = HEAP8[$2>>0]|0;
  27635. $47 = $46 << 24 >> 24;
  27636. switch ($47|0) {
  27637. case 118: {
  27638. break L38;
  27639. break;
  27640. }
  27641. case 102: case 117: case 109: case 115: case 103: case 111: case 35: {
  27642. (_fgets($3,200,$15)|0);
  27643. break;
  27644. }
  27645. default: {
  27646. }
  27647. }
  27648. $48 = (_feof($15)|0);
  27649. $49 = ($48|0)==(0);
  27650. if (!($49)) {
  27651. break L31;
  27652. }
  27653. }
  27654. HEAP32[$vararg_buffer26>>2] = $2;
  27655. (_fscanf($15,12471,$vararg_buffer26)|0);
  27656. $50 = HEAP8[$2>>0]|0;
  27657. switch ($50<<24>>24) {
  27658. case 110: {
  27659. break L36;
  27660. break;
  27661. }
  27662. case 116: {
  27663. break;
  27664. }
  27665. default: {
  27666. break L34;
  27667. }
  27668. }
  27669. $51 = (($$0356) + ($$0353$ph367397<<3)|0);
  27670. $52 = (((($$0356) + ($$0353$ph367397<<3)|0)) + 4|0);
  27671. HEAP32[$vararg_buffer29>>2] = $51;
  27672. $vararg_ptr32 = ((($vararg_buffer29)) + 4|0);
  27673. HEAP32[$vararg_ptr32>>2] = $52;
  27674. (_fscanf($15,12587,$vararg_buffer29)|0);
  27675. $53 = (($$0353$ph367397) + 1)|0;
  27676. HEAP32[$vararg_buffer33>>2] = $2;
  27677. (_fscanf($15,12471,$vararg_buffer33)|0);
  27678. $54 = (_feof($15)|0);
  27679. $55 = ($54|0)==(0);
  27680. if ($55) {
  27681. $$0353$ph367397 = $53;
  27682. } else {
  27683. break L31;
  27684. }
  27685. }
  27686. $56 = (($$0357) + (($$0354$ph364398*12)|0)|0);
  27687. $57 = (((($$0357) + (($$0354$ph364398*12)|0)|0)) + 4|0);
  27688. $58 = (((($$0357) + (($$0354$ph364398*12)|0)|0)) + 8|0);
  27689. HEAP32[$vararg_buffer36>>2] = $56;
  27690. $vararg_ptr39 = ((($vararg_buffer36)) + 4|0);
  27691. HEAP32[$vararg_ptr39>>2] = $57;
  27692. $vararg_ptr40 = ((($vararg_buffer36)) + 8|0);
  27693. HEAP32[$vararg_ptr40>>2] = $58;
  27694. (_fscanf($15,12601,$vararg_buffer36)|0);
  27695. $59 = (($$0354$ph364398) + 1)|0;
  27696. HEAP32[$vararg_buffer41>>2] = $2;
  27697. (_fscanf($15,12471,$vararg_buffer41)|0);
  27698. $60 = (_feof($15)|0);
  27699. $61 = ($60|0)==(0);
  27700. if ($61) {
  27701. $$0353$ph365399 = $$0353$ph367397;$$0354$ph364398 = $59;
  27702. } else {
  27703. break L31;
  27704. }
  27705. }
  27706. $62 = (($37) + (($$0355$ph400*12)|0)|0);
  27707. $63 = (((($37) + (($$0355$ph400*12)|0)|0)) + 4|0);
  27708. $64 = (((($37) + (($$0355$ph400*12)|0)|0)) + 8|0);
  27709. HEAP32[$vararg_buffer44>>2] = $62;
  27710. $vararg_ptr47 = ((($vararg_buffer44)) + 4|0);
  27711. HEAP32[$vararg_ptr47>>2] = $63;
  27712. $vararg_ptr48 = ((($vararg_buffer44)) + 8|0);
  27713. HEAP32[$vararg_ptr48>>2] = $64;
  27714. (_fscanf($15,12601,$vararg_buffer44)|0);
  27715. $65 = (($$0355$ph400) + 1)|0;
  27716. HEAP32[$vararg_buffer49>>2] = $2;
  27717. (_fscanf($15,12471,$vararg_buffer49)|0);
  27718. $66 = (_feof($15)|0);
  27719. $67 = ($66|0)==(0);
  27720. if ($67) {
  27721. $$0353$ph402 = $$0353$ph367397;$$0354$ph401 = $$0354$ph364398;$$0355$ph400 = $65;
  27722. } else {
  27723. break;
  27724. }
  27725. }
  27726. }
  27727. } while(0);
  27728. $68 = ($$0346$ph$lcssa*3)|0;
  27729. $69 = ($$0346$ph$lcssa*9)|0;
  27730. $70 = ($$0346$ph$lcssa*36)|0;
  27731. $71 = (_malloc($70)|0);
  27732. $72 = ($$0346$ph$lcssa*6)|0;
  27733. $73 = ($$0346$ph$lcssa*24)|0;
  27734. $74 = (_malloc($73)|0);
  27735. $75 = (_malloc($70)|0);
  27736. _rewind($15);
  27737. $76 = ($$0344$ph376$lcssa388|0)==(0);
  27738. if ($76) {
  27739. HEAP32[$vararg_buffer52>>2] = $1;
  27740. _TraceLog(0,12610,$vararg_buffer52);
  27741. }
  27742. $77 = ($$0345$ph372$lcssa389|0)==(0);
  27743. $78 = $$0344$ph376$lcssa388 | $$0345$ph372$lcssa389;
  27744. $79 = ($78|0)==(0);
  27745. $80 = ((($vararg_buffer11)) + 4|0);
  27746. $81 = ((($vararg_buffer11)) + 8|0);
  27747. $82 = ((($vararg_buffer11)) + 4|0);
  27748. $83 = ((($vararg_buffer11)) + 8|0);
  27749. $84 = ((($4)) + 4|0);
  27750. $85 = ((($4)) + 8|0);
  27751. $86 = ((($5)) + 4|0);
  27752. $87 = ((($5)) + 8|0);
  27753. $88 = ((($vararg_buffer11)) + 4|0);
  27754. $89 = ((($vararg_buffer7)) + 4|0);
  27755. $90 = ((($vararg_buffer11)) + 8|0);
  27756. $91 = ((($vararg_buffer7)) + 8|0);
  27757. $92 = ((($vararg_buffer11)) + 4|0);
  27758. $93 = ((($4)) + 4|0);
  27759. $94 = ((($vararg_buffer11)) + 8|0);
  27760. $95 = ((($4)) + 8|0);
  27761. $96 = ((($vararg_buffer11)) + 4|0);
  27762. $97 = ((($vararg_buffer7)) + 4|0);
  27763. $98 = ((($4)) + 4|0);
  27764. $99 = ((($vararg_buffer11)) + 8|0);
  27765. $100 = ((($vararg_buffer7)) + 8|0);
  27766. $101 = ((($4)) + 8|0);
  27767. $102 = ((($vararg_buffer7)) + 4|0);
  27768. $103 = ((($vararg_buffer7)) + 8|0);
  27769. $$0350$ph$ph = 0;$$0351$ph$ph = 0;$$0352$ph$ph = 0;
  27770. L51: while(1) {
  27771. $$0350$ph = $$0350$ph$ph;$$0352$ph = $$0352$ph$ph;
  27772. while(1) {
  27773. $104 = (_feof($15)|0);
  27774. $105 = ($104|0)==(0);
  27775. if (!($105)) {
  27776. break L51;
  27777. }
  27778. L55: while(1) {
  27779. HEAP32[$vararg_buffer55>>2] = $2;
  27780. (_fscanf($15,12471,$vararg_buffer55)|0);
  27781. $106 = HEAP8[$2>>0]|0;
  27782. $107 = $106 << 24 >> 24;
  27783. switch ($107|0) {
  27784. case 102: {
  27785. break L55;
  27786. break;
  27787. }
  27788. case 118: case 117: case 109: case 115: case 103: case 111: case 35: {
  27789. (_fgets($3,200,$15)|0);
  27790. break;
  27791. }
  27792. default: {
  27793. }
  27794. }
  27795. $108 = (_feof($15)|0);
  27796. $109 = ($108|0)==(0);
  27797. if (!($109)) {
  27798. break L51;
  27799. }
  27800. }
  27801. do {
  27802. if ($79) {
  27803. HEAP32[$vararg_buffer58>>2] = $vararg_buffer11;
  27804. $vararg_ptr61 = ((($vararg_buffer58)) + 4|0);
  27805. HEAP32[$vararg_ptr61>>2] = $80;
  27806. $vararg_ptr62 = ((($vararg_buffer58)) + 8|0);
  27807. HEAP32[$vararg_ptr62>>2] = $81;
  27808. (_fscanf($15,12681,$vararg_buffer58)|0);
  27809. } else {
  27810. if ($76) {
  27811. HEAP32[$vararg_buffer63>>2] = $vararg_buffer11;
  27812. $vararg_ptr66 = ((($vararg_buffer63)) + 4|0);
  27813. HEAP32[$vararg_ptr66>>2] = $vararg_buffer7;
  27814. $vararg_ptr67 = ((($vararg_buffer63)) + 8|0);
  27815. HEAP32[$vararg_ptr67>>2] = $88;
  27816. $vararg_ptr68 = ((($vararg_buffer63)) + 12|0);
  27817. HEAP32[$vararg_ptr68>>2] = $89;
  27818. $vararg_ptr69 = ((($vararg_buffer63)) + 16|0);
  27819. HEAP32[$vararg_ptr69>>2] = $90;
  27820. $vararg_ptr70 = ((($vararg_buffer63)) + 20|0);
  27821. HEAP32[$vararg_ptr70>>2] = $91;
  27822. (_fscanf($15,12690,$vararg_buffer63)|0);
  27823. break;
  27824. }
  27825. if ($77) {
  27826. HEAP32[$vararg_buffer71>>2] = $vararg_buffer11;
  27827. $vararg_ptr74 = ((($vararg_buffer71)) + 4|0);
  27828. HEAP32[$vararg_ptr74>>2] = $4;
  27829. $vararg_ptr75 = ((($vararg_buffer71)) + 8|0);
  27830. HEAP32[$vararg_ptr75>>2] = $92;
  27831. $vararg_ptr76 = ((($vararg_buffer71)) + 12|0);
  27832. HEAP32[$vararg_ptr76>>2] = $93;
  27833. $vararg_ptr77 = ((($vararg_buffer71)) + 16|0);
  27834. HEAP32[$vararg_ptr77>>2] = $94;
  27835. $vararg_ptr78 = ((($vararg_buffer71)) + 20|0);
  27836. HEAP32[$vararg_ptr78>>2] = $95;
  27837. (_fscanf($15,12708,$vararg_buffer71)|0);
  27838. break;
  27839. } else {
  27840. HEAP32[$vararg_buffer79>>2] = $vararg_buffer11;
  27841. $vararg_ptr82 = ((($vararg_buffer79)) + 4|0);
  27842. HEAP32[$vararg_ptr82>>2] = $vararg_buffer7;
  27843. $vararg_ptr83 = ((($vararg_buffer79)) + 8|0);
  27844. HEAP32[$vararg_ptr83>>2] = $4;
  27845. $vararg_ptr84 = ((($vararg_buffer79)) + 12|0);
  27846. HEAP32[$vararg_ptr84>>2] = $96;
  27847. $vararg_ptr85 = ((($vararg_buffer79)) + 16|0);
  27848. HEAP32[$vararg_ptr85>>2] = $97;
  27849. $vararg_ptr86 = ((($vararg_buffer79)) + 20|0);
  27850. HEAP32[$vararg_ptr86>>2] = $98;
  27851. $vararg_ptr87 = ((($vararg_buffer79)) + 24|0);
  27852. HEAP32[$vararg_ptr87>>2] = $99;
  27853. $vararg_ptr88 = ((($vararg_buffer79)) + 28|0);
  27854. HEAP32[$vararg_ptr88>>2] = $100;
  27855. $vararg_ptr89 = ((($vararg_buffer79)) + 32|0);
  27856. HEAP32[$vararg_ptr89>>2] = $101;
  27857. (_fscanf($15,12729,$vararg_buffer79)|0);
  27858. break;
  27859. }
  27860. }
  27861. } while(0);
  27862. $110 = HEAP32[$vararg_buffer11>>2]|0;
  27863. $111 = (($110) + -1)|0;
  27864. $112 = (($37) + (($111*12)|0)|0);
  27865. $113 = HEAP32[$112>>2]|0;
  27866. $114 = (($71) + ($$0352$ph<<2)|0);
  27867. HEAP32[$114>>2] = $113;
  27868. $115 = (((($37) + (($111*12)|0)|0)) + 4|0);
  27869. $116 = HEAP32[$115>>2]|0;
  27870. $117 = (($$0352$ph) + 1)|0;
  27871. $118 = (($71) + ($117<<2)|0);
  27872. HEAP32[$118>>2] = $116;
  27873. $119 = (((($37) + (($111*12)|0)|0)) + 8|0);
  27874. $120 = HEAP32[$119>>2]|0;
  27875. $121 = (($$0352$ph) + 2)|0;
  27876. $122 = (($71) + ($121<<2)|0);
  27877. HEAP32[$122>>2] = $120;
  27878. $123 = (($$0352$ph) + 3)|0;
  27879. $124 = HEAP32[$82>>2]|0;
  27880. $125 = (($124) + -1)|0;
  27881. $126 = (($37) + (($125*12)|0)|0);
  27882. $127 = HEAP32[$126>>2]|0;
  27883. $128 = (($71) + ($123<<2)|0);
  27884. HEAP32[$128>>2] = $127;
  27885. $129 = (((($37) + (($125*12)|0)|0)) + 4|0);
  27886. $130 = HEAP32[$129>>2]|0;
  27887. $131 = (($$0352$ph) + 4)|0;
  27888. $132 = (($71) + ($131<<2)|0);
  27889. HEAP32[$132>>2] = $130;
  27890. $133 = (((($37) + (($125*12)|0)|0)) + 8|0);
  27891. $134 = HEAP32[$133>>2]|0;
  27892. $135 = (($$0352$ph) + 5)|0;
  27893. $136 = (($71) + ($135<<2)|0);
  27894. HEAP32[$136>>2] = $134;
  27895. $137 = (($$0352$ph) + 6)|0;
  27896. $138 = HEAP32[$83>>2]|0;
  27897. $139 = (($138) + -1)|0;
  27898. $140 = (($37) + (($139*12)|0)|0);
  27899. $141 = HEAP32[$140>>2]|0;
  27900. $142 = (($71) + ($137<<2)|0);
  27901. HEAP32[$142>>2] = $141;
  27902. $143 = (((($37) + (($139*12)|0)|0)) + 4|0);
  27903. $144 = HEAP32[$143>>2]|0;
  27904. $145 = (($$0352$ph) + 7)|0;
  27905. $146 = (($71) + ($145<<2)|0);
  27906. HEAP32[$146>>2] = $144;
  27907. $147 = (((($37) + (($139*12)|0)|0)) + 8|0);
  27908. $148 = HEAP32[$147>>2]|0;
  27909. $149 = (($$0352$ph) + 8)|0;
  27910. $150 = (($71) + ($149<<2)|0);
  27911. HEAP32[$150>>2] = $148;
  27912. $151 = (($$0352$ph) + 9)|0;
  27913. if ($38) {
  27914. $152 = HEAP32[$4>>2]|0;
  27915. $153 = (($152) + -1)|0;
  27916. $154 = (($$0357) + (($153*12)|0)|0);
  27917. $155 = HEAP32[$154>>2]|0;
  27918. $156 = (($75) + ($$0350$ph<<2)|0);
  27919. HEAP32[$156>>2] = $155;
  27920. $157 = (((($$0357) + (($153*12)|0)|0)) + 4|0);
  27921. $158 = HEAP32[$157>>2]|0;
  27922. $159 = (($$0350$ph) + 1)|0;
  27923. $160 = (($75) + ($159<<2)|0);
  27924. HEAP32[$160>>2] = $158;
  27925. $161 = (((($$0357) + (($153*12)|0)|0)) + 8|0);
  27926. $162 = HEAP32[$161>>2]|0;
  27927. $163 = (($$0350$ph) + 2)|0;
  27928. $164 = (($75) + ($163<<2)|0);
  27929. HEAP32[$164>>2] = $162;
  27930. $165 = (($$0350$ph) + 3)|0;
  27931. $166 = HEAP32[$84>>2]|0;
  27932. $167 = (($166) + -1)|0;
  27933. $168 = (($$0357) + (($167*12)|0)|0);
  27934. $169 = HEAP32[$168>>2]|0;
  27935. $170 = (($75) + ($165<<2)|0);
  27936. HEAP32[$170>>2] = $169;
  27937. $171 = (((($$0357) + (($167*12)|0)|0)) + 4|0);
  27938. $172 = HEAP32[$171>>2]|0;
  27939. $173 = (($$0350$ph) + 4)|0;
  27940. $174 = (($75) + ($173<<2)|0);
  27941. HEAP32[$174>>2] = $172;
  27942. $175 = (((($$0357) + (($167*12)|0)|0)) + 8|0);
  27943. $176 = HEAP32[$175>>2]|0;
  27944. $177 = (($$0350$ph) + 5)|0;
  27945. $178 = (($75) + ($177<<2)|0);
  27946. HEAP32[$178>>2] = $176;
  27947. $179 = (($$0350$ph) + 6)|0;
  27948. $180 = HEAP32[$85>>2]|0;
  27949. $181 = (($180) + -1)|0;
  27950. $182 = (($$0357) + (($181*12)|0)|0);
  27951. $183 = HEAP32[$182>>2]|0;
  27952. $184 = (($75) + ($179<<2)|0);
  27953. HEAP32[$184>>2] = $183;
  27954. $185 = (((($$0357) + (($181*12)|0)|0)) + 4|0);
  27955. $186 = HEAP32[$185>>2]|0;
  27956. $187 = (($$0350$ph) + 7)|0;
  27957. $188 = (($75) + ($187<<2)|0);
  27958. HEAP32[$188>>2] = $186;
  27959. $189 = (((($$0357) + (($181*12)|0)|0)) + 8|0);
  27960. $190 = HEAP32[$189>>2]|0;
  27961. $191 = (($$0350$ph) + 8)|0;
  27962. $192 = (($75) + ($191<<2)|0);
  27963. HEAP32[$192>>2] = $190;
  27964. } else {
  27965. $193 = HEAP32[$82>>2]|0;
  27966. $194 = (($193) + -1)|0;
  27967. $195 = (($37) + (($194*12)|0)|0);
  27968. $196 = HEAP32[$vararg_buffer11>>2]|0;
  27969. $197 = (($196) + -1)|0;
  27970. $198 = (($37) + (($197*12)|0)|0);
  27971. ;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;
  27972. ;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;
  27973. _VectorSubtract($6,$$byval_copy102,$$byval_copy103);
  27974. $199 = HEAP32[$83>>2]|0;
  27975. $200 = (($199) + -1)|0;
  27976. $201 = (($37) + (($200*12)|0)|0);
  27977. $202 = HEAP32[$vararg_buffer11>>2]|0;
  27978. $203 = (($202) + -1)|0;
  27979. $204 = (($37) + (($203*12)|0)|0);
  27980. ;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;
  27981. ;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;
  27982. _VectorSubtract($7,$$byval_copy102,$$byval_copy103);
  27983. ;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;
  27984. ;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;
  27985. _VectorCrossProduct($5,$$byval_copy102,$$byval_copy103);
  27986. _VectorNormalize($5);
  27987. $205 = HEAP32[$5>>2]|0;
  27988. $206 = (($75) + ($$0350$ph<<2)|0);
  27989. HEAP32[$206>>2] = $205;
  27990. $207 = HEAP32[$86>>2]|0;
  27991. $208 = (($$0350$ph) + 1)|0;
  27992. $209 = (($75) + ($208<<2)|0);
  27993. HEAP32[$209>>2] = $207;
  27994. $210 = HEAP32[$87>>2]|0;
  27995. $211 = (($$0350$ph) + 2)|0;
  27996. $212 = (($75) + ($211<<2)|0);
  27997. HEAP32[$212>>2] = $210;
  27998. $213 = (($$0350$ph) + 3)|0;
  27999. $214 = HEAP32[$5>>2]|0;
  28000. $215 = (($75) + ($213<<2)|0);
  28001. HEAP32[$215>>2] = $214;
  28002. $216 = HEAP32[$86>>2]|0;
  28003. $217 = (($$0350$ph) + 4)|0;
  28004. $218 = (($75) + ($217<<2)|0);
  28005. HEAP32[$218>>2] = $216;
  28006. $219 = HEAP32[$87>>2]|0;
  28007. $220 = (($$0350$ph) + 5)|0;
  28008. $221 = (($75) + ($220<<2)|0);
  28009. HEAP32[$221>>2] = $219;
  28010. $222 = (($$0350$ph) + 6)|0;
  28011. $223 = HEAP32[$5>>2]|0;
  28012. $224 = (($75) + ($222<<2)|0);
  28013. HEAP32[$224>>2] = $223;
  28014. $225 = HEAP32[$86>>2]|0;
  28015. $226 = (($$0350$ph) + 7)|0;
  28016. $227 = (($75) + ($226<<2)|0);
  28017. HEAP32[$227>>2] = $225;
  28018. $228 = HEAP32[$87>>2]|0;
  28019. $229 = (($$0350$ph) + 8)|0;
  28020. $230 = (($75) + ($229<<2)|0);
  28021. HEAP32[$230>>2] = $228;
  28022. }
  28023. $$1 = (($$0350$ph) + 9)|0;
  28024. if ($41) {
  28025. break;
  28026. } else {
  28027. $$0350$ph = $$1;$$0352$ph = $151;
  28028. }
  28029. }
  28030. $231 = HEAP32[$vararg_buffer7>>2]|0;
  28031. $232 = (($231) + -1)|0;
  28032. $233 = (($$0356) + ($232<<3)|0);
  28033. $234 = HEAP32[$233>>2]|0;
  28034. $235 = (($74) + ($$0351$ph$ph<<2)|0);
  28035. HEAP32[$235>>2] = $234;
  28036. $236 = (((($$0356) + ($232<<3)|0)) + 4|0);
  28037. $237 = +HEAPF32[$236>>2];
  28038. $238 = 1.0 - $237;
  28039. $239 = $$0351$ph$ph | 1;
  28040. $240 = (($74) + ($239<<2)|0);
  28041. HEAPF32[$240>>2] = $238;
  28042. $241 = (($$0351$ph$ph) + 2)|0;
  28043. $242 = HEAP32[$102>>2]|0;
  28044. $243 = (($242) + -1)|0;
  28045. $244 = (($$0356) + ($243<<3)|0);
  28046. $245 = HEAP32[$244>>2]|0;
  28047. $246 = (($74) + ($241<<2)|0);
  28048. HEAP32[$246>>2] = $245;
  28049. $247 = (((($$0356) + ($243<<3)|0)) + 4|0);
  28050. $248 = +HEAPF32[$247>>2];
  28051. $249 = 1.0 - $248;
  28052. $250 = (($$0351$ph$ph) + 3)|0;
  28053. $251 = (($74) + ($250<<2)|0);
  28054. HEAPF32[$251>>2] = $249;
  28055. $252 = (($$0351$ph$ph) + 4)|0;
  28056. $253 = HEAP32[$103>>2]|0;
  28057. $254 = (($253) + -1)|0;
  28058. $255 = (($$0356) + ($254<<3)|0);
  28059. $256 = HEAP32[$255>>2]|0;
  28060. $257 = (($74) + ($252<<2)|0);
  28061. HEAP32[$257>>2] = $256;
  28062. $258 = (((($$0356) + ($254<<3)|0)) + 4|0);
  28063. $259 = +HEAPF32[$258>>2];
  28064. $260 = 1.0 - $259;
  28065. $261 = (($$0351$ph$ph) + 5)|0;
  28066. $262 = (($74) + ($261<<2)|0);
  28067. HEAPF32[$262>>2] = $260;
  28068. $263 = (($$0351$ph$ph) + 6)|0;
  28069. $$0350$ph$ph = $$1;$$0351$ph$ph = $263;$$0352$ph$ph = $151;
  28070. }
  28071. (_fclose($15)|0);
  28072. $264 = ($$0345$ph372$lcssa389|0)==(0);
  28073. if ($264) {
  28074. $265 = ($72|0)>(0);
  28075. if ($265) {
  28076. $368 = ($$0346$ph$lcssa*24)|0;
  28077. _memset(($74|0),0,($368|0))|0;
  28078. $$sroa$64$0 = 0;
  28079. } else {
  28080. $$sroa$64$0 = 0;
  28081. }
  28082. } else {
  28083. $266 = (_malloc($70)|0);
  28084. $267 = ($69|0)>(0);
  28085. if ($267) {
  28086. $268 = ((($5)) + 4|0);
  28087. $269 = ((($5)) + 8|0);
  28088. $270 = ((($8)) + 4|0);
  28089. $271 = ((($8)) + 8|0);
  28090. $272 = ((($9)) + 4|0);
  28091. $273 = ((($9)) + 8|0);
  28092. $274 = ((($12)) + 4|0);
  28093. $275 = ((($10)) + 4|0);
  28094. $276 = ((($12)) + 8|0);
  28095. $277 = ((($10)) + 8|0);
  28096. $278 = ((($13)) + 4|0);
  28097. $279 = ((($11)) + 4|0);
  28098. $280 = ((($13)) + 8|0);
  28099. $281 = ((($11)) + 8|0);
  28100. $282 = ((($14)) + 4|0);
  28101. $283 = ((($14)) + 8|0);
  28102. $$0347392 = 0;$$0348391 = 0;
  28103. while(1) {
  28104. $284 = (($71) + ($$0348391<<2)|0);
  28105. $285 = HEAP32[$284>>2]|0;
  28106. HEAP32[$5>>2] = $285;
  28107. $286 = (($$0348391) + 1)|0;
  28108. $287 = (($71) + ($286<<2)|0);
  28109. $288 = HEAP32[$287>>2]|0;
  28110. HEAP32[$268>>2] = $288;
  28111. $289 = (($$0348391) + 2)|0;
  28112. $290 = (($71) + ($289<<2)|0);
  28113. $291 = HEAP32[$290>>2]|0;
  28114. HEAP32[$269>>2] = $291;
  28115. $292 = (($$0348391) + 3)|0;
  28116. $293 = (($71) + ($292<<2)|0);
  28117. $294 = HEAP32[$293>>2]|0;
  28118. HEAP32[$8>>2] = $294;
  28119. $295 = (($$0348391) + 4)|0;
  28120. $296 = (($71) + ($295<<2)|0);
  28121. $297 = HEAP32[$296>>2]|0;
  28122. HEAP32[$270>>2] = $297;
  28123. $298 = (($$0348391) + 5)|0;
  28124. $299 = (($71) + ($298<<2)|0);
  28125. $300 = HEAP32[$299>>2]|0;
  28126. HEAP32[$271>>2] = $300;
  28127. $301 = (($$0348391) + 6)|0;
  28128. $302 = (($71) + ($301<<2)|0);
  28129. $303 = HEAP32[$302>>2]|0;
  28130. HEAP32[$9>>2] = $303;
  28131. $304 = (($$0348391) + 7)|0;
  28132. $305 = (($71) + ($304<<2)|0);
  28133. $306 = HEAP32[$305>>2]|0;
  28134. HEAP32[$272>>2] = $306;
  28135. $307 = (($$0348391) + 8)|0;
  28136. $308 = (($71) + ($307<<2)|0);
  28137. $309 = HEAP32[$308>>2]|0;
  28138. HEAP32[$273>>2] = $309;
  28139. $310 = (($74) + ($$0347392<<2)|0);
  28140. $311 = +HEAPF32[$310>>2];
  28141. $312 = $$0347392 | 1;
  28142. $313 = (($74) + ($312<<2)|0);
  28143. $314 = +HEAPF32[$313>>2];
  28144. $315 = (($$0347392) + 2)|0;
  28145. $316 = (($74) + ($315<<2)|0);
  28146. $317 = +HEAPF32[$316>>2];
  28147. $318 = (($$0347392) + 3)|0;
  28148. $319 = (($74) + ($318<<2)|0);
  28149. $320 = +HEAPF32[$319>>2];
  28150. $321 = (($$0347392) + 4)|0;
  28151. $322 = (($74) + ($321<<2)|0);
  28152. $323 = +HEAPF32[$322>>2];
  28153. $324 = (($$0347392) + 5)|0;
  28154. $325 = (($74) + ($324<<2)|0);
  28155. $326 = +HEAPF32[$325>>2];
  28156. ;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;
  28157. ;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;
  28158. _VectorSubtract($10,$$byval_copy102,$$byval_copy103);
  28159. ;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;
  28160. ;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;
  28161. _VectorSubtract($11,$$byval_copy102,$$byval_copy103);
  28162. $327 = $317 - $311;
  28163. $328 = $320 - $314;
  28164. $329 = $323 - $311;
  28165. $330 = $326 - $314;
  28166. $331 = $327 * $330;
  28167. $332 = $328 * $329;
  28168. $333 = $331 - $332;
  28169. $334 = 1.0 / $333;
  28170. $335 = +HEAPF32[$10>>2];
  28171. $336 = $330 * $335;
  28172. HEAPF32[$12>>2] = $336;
  28173. $337 = +HEAPF32[$275>>2];
  28174. $338 = $330 * $337;
  28175. HEAPF32[$274>>2] = $338;
  28176. $339 = +HEAPF32[$277>>2];
  28177. $340 = $330 * $339;
  28178. HEAPF32[$276>>2] = $340;
  28179. $341 = +HEAPF32[$11>>2];
  28180. $342 = $328 * $341;
  28181. HEAPF32[$13>>2] = $342;
  28182. $343 = +HEAPF32[$279>>2];
  28183. $344 = $328 * $343;
  28184. HEAPF32[$278>>2] = $344;
  28185. $345 = +HEAPF32[$281>>2];
  28186. $346 = $328 * $345;
  28187. HEAPF32[$280>>2] = $346;
  28188. ;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;
  28189. ;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;
  28190. _VectorSubtract($14,$$byval_copy102,$$byval_copy103);
  28191. _VectorScale($14,$334);
  28192. $347 = HEAP32[$14>>2]|0;
  28193. $348 = (($266) + ($$0348391<<2)|0);
  28194. HEAP32[$348>>2] = $347;
  28195. $349 = HEAP32[$282>>2]|0;
  28196. $350 = (($266) + ($286<<2)|0);
  28197. HEAP32[$350>>2] = $349;
  28198. $351 = HEAP32[$283>>2]|0;
  28199. $352 = (($266) + ($289<<2)|0);
  28200. HEAP32[$352>>2] = $351;
  28201. $353 = HEAP32[$14>>2]|0;
  28202. $354 = (($266) + ($292<<2)|0);
  28203. HEAP32[$354>>2] = $353;
  28204. $355 = HEAP32[$282>>2]|0;
  28205. $356 = (($266) + ($295<<2)|0);
  28206. HEAP32[$356>>2] = $355;
  28207. $357 = HEAP32[$283>>2]|0;
  28208. $358 = (($266) + ($298<<2)|0);
  28209. HEAP32[$358>>2] = $357;
  28210. $359 = HEAP32[$14>>2]|0;
  28211. $360 = (($266) + ($301<<2)|0);
  28212. HEAP32[$360>>2] = $359;
  28213. $361 = HEAP32[$282>>2]|0;
  28214. $362 = (($266) + ($304<<2)|0);
  28215. HEAP32[$362>>2] = $361;
  28216. $363 = HEAP32[$283>>2]|0;
  28217. $364 = (($266) + ($307<<2)|0);
  28218. HEAP32[$364>>2] = $363;
  28219. $365 = (($$0348391) + 9)|0;
  28220. $366 = (($$0347392) + 6)|0;
  28221. $367 = ($365|0)<($69|0);
  28222. if ($367) {
  28223. $$0347392 = $366;$$0348391 = $365;
  28224. } else {
  28225. $$sroa$64$0 = $266;
  28226. break;
  28227. }
  28228. }
  28229. } else {
  28230. $$sroa$64$0 = $266;
  28231. }
  28232. }
  28233. _free($37);
  28234. _free($369);
  28235. _free($370);
  28236. HEAP32[$vararg_buffer90>>2] = $1;
  28237. _TraceLog(0,12756,$vararg_buffer90);
  28238. HEAP32[$0>>2] = $68;
  28239. $$sroa$12$0$$sroa_idx244 = ((($0)) + 4|0);
  28240. HEAP32[$$sroa$12$0$$sroa_idx244>>2] = 0;
  28241. $$sroa$12247$0$$sroa_idx249 = ((($0)) + 8|0);
  28242. HEAP32[$$sroa$12247$0$$sroa_idx249>>2] = $71;
  28243. $$sroa$31$0$$sroa_idx270 = ((($0)) + 12|0);
  28244. HEAP32[$$sroa$31$0$$sroa_idx270>>2] = $74;
  28245. $$sroa$45$0$$sroa_idx286 = ((($0)) + 16|0);
  28246. HEAP32[$$sroa$45$0$$sroa_idx286>>2] = 0;
  28247. $$sroa$45289$0$$sroa_idx291 = ((($0)) + 20|0);
  28248. HEAP32[$$sroa$45289$0$$sroa_idx291>>2] = $75;
  28249. $$sroa$64$0$$sroa_idx312 = ((($0)) + 24|0);
  28250. HEAP32[$$sroa$64$0$$sroa_idx312>>2] = $$sroa$64$0;
  28251. $$sroa$74$0$$sroa_idx324 = ((($0)) + 28|0);
  28252. HEAP32[$$sroa$74$0$$sroa_idx324>>2] = 0;
  28253. $$sroa$75$0$$sroa_idx328 = ((($0)) + 32|0);
  28254. 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));
  28255. STACKTOP = sp;return;
  28256. }
  28257. function _LoadModel($0,$1) {
  28258. $0 = $0|0;
  28259. $1 = $1|0;
  28260. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  28261. sp = STACKTOP;
  28262. STACKTOP = STACKTOP + 464|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(464|0);
  28263. $2 = sp + 200|0;
  28264. $3 = sp + 136|0;
  28265. $4 = sp;
  28266. _memset(($2|0),0,264)|0;
  28267. _LoadMesh($2,$1);
  28268. $5 = ((($2)) + 68|0);
  28269. _MatrixIdentity($3);
  28270. 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));
  28271. $6 = ((($2)) + 132|0);
  28272. _LoadDefaultMaterial($4);
  28273. _memcpy(($6|0),($4|0),132)|0;
  28274. _memcpy(($0|0),($2|0),264)|0;
  28275. STACKTOP = sp;return;
  28276. }
  28277. function _LoadDefaultMaterial($0) {
  28278. $0 = $0|0;
  28279. 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;
  28280. sp = STACKTOP;
  28281. STACKTOP = STACKTOP + 192|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(192|0);
  28282. $$sroa$09 = sp;
  28283. $1 = sp + 136|0;
  28284. $2 = sp + 116|0;
  28285. dest=$$sroa$09; stop=dest+116|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  28286. _GetDefaultShader($1);
  28287. 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));
  28288. _GetDefaultTexture($2);
  28289. $$sroa$09$56$sroa_idx = ((($$sroa$09)) + 56|0);
  28290. ;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;
  28291. 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));
  28292. $$sroa$6$0$$sroa_idx = ((($0)) + 116|0);
  28293. $$sroa$18$0$$sroa_idx15 = ((($0)) + 128|0);
  28294. ;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;
  28295. HEAPF32[$$sroa$18$0$$sroa_idx15>>2] = 100.0;
  28296. STACKTOP = sp;return;
  28297. }
  28298. function _UnloadMesh($0) {
  28299. $0 = $0|0;
  28300. var label = 0, sp = 0;
  28301. sp = STACKTOP;
  28302. _rlglUnloadMesh($0);
  28303. return;
  28304. }
  28305. function _UnloadModel($0) {
  28306. $0 = $0|0;
  28307. var $$byval_copy = 0, $1 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  28308. sp = STACKTOP;
  28309. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  28310. $$byval_copy = sp + 4|0;
  28311. $vararg_buffer = sp;
  28312. _UnloadMesh($0);
  28313. $1 = ((($0)) + 132|0);
  28314. _memcpy(($$byval_copy|0),($1|0),132)|0;
  28315. _UnloadMaterial($$byval_copy);
  28316. _TraceLog(0,12800,$vararg_buffer);
  28317. STACKTOP = sp;return;
  28318. }
  28319. function _UnloadMaterial($0) {
  28320. $0 = $0|0;
  28321. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  28322. sp = STACKTOP;
  28323. $1 = ((($0)) + 56|0);
  28324. $2 = HEAP32[$1>>2]|0;
  28325. _rlDeleteTextures($2);
  28326. $3 = ((($0)) + 76|0);
  28327. $4 = HEAP32[$3>>2]|0;
  28328. _rlDeleteTextures($4);
  28329. $5 = ((($0)) + 96|0);
  28330. $6 = HEAP32[$5>>2]|0;
  28331. _rlDeleteTextures($6);
  28332. return;
  28333. }
  28334. function _DrawModel($0,$1,$2,$3) {
  28335. $0 = $0|0;
  28336. $1 = $1|0;
  28337. $2 = +$2;
  28338. $3 = $3|0;
  28339. 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;
  28340. sp = STACKTOP;
  28341. STACKTOP = STACKTOP + 336|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(336|0);
  28342. $$byval_copy4 = sp + 324|0;
  28343. $$byval_copy3 = sp + 312|0;
  28344. $$byval_copy2 = sp + 300|0;
  28345. $$byval_copy1 = sp + 288|0;
  28346. $$byval_copy = sp + 24|0;
  28347. $4 = sp + 12|0;
  28348. $5 = sp;
  28349. HEAPF32[$4>>2] = $2;
  28350. $6 = ((($4)) + 4|0);
  28351. HEAPF32[$6>>2] = $2;
  28352. $7 = ((($4)) + 8|0);
  28353. HEAPF32[$7>>2] = $2;
  28354. ;HEAP32[$5>>2]=0|0;HEAP32[$5+4>>2]=0|0;HEAP32[$5+8>>2]=0|0;
  28355. _memcpy(($$byval_copy|0),($0|0),264)|0;
  28356. ;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;
  28357. ;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;
  28358. ;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;
  28359. ;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;
  28360. _DrawModelEx($$byval_copy,$$byval_copy1,$$byval_copy2,0.0,$$byval_copy3,$$byval_copy4);
  28361. STACKTOP = sp;return;
  28362. }
  28363. function _DrawModelEx($0,$1,$2,$3,$4,$5) {
  28364. $0 = $0|0;
  28365. $1 = $1|0;
  28366. $2 = $2|0;
  28367. $3 = +$3;
  28368. $4 = $4|0;
  28369. $5 = $5|0;
  28370. 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;
  28371. var $7 = 0, $8 = 0, $9 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  28372. sp = STACKTOP;
  28373. STACKTOP = STACKTOP + 592|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(592|0);
  28374. $$byval_copy7 = sp + 520|0;
  28375. $$byval_copy6 = sp + 388|0;
  28376. $$byval_copy5 = sp + 320|0;
  28377. $6 = sp + 128|0;
  28378. $7 = sp + 64|0;
  28379. $8 = sp;
  28380. $9 = sp + 256|0;
  28381. $10 = sp + 192|0;
  28382. $11 = $3 * 0.01745329238474369;
  28383. ;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;
  28384. _MatrixRotate($6,$$byval_copy7,$11);
  28385. $12 = +HEAPF32[$4>>2];
  28386. $13 = ((($4)) + 4|0);
  28387. $14 = +HEAPF32[$13>>2];
  28388. $15 = ((($4)) + 8|0);
  28389. $16 = +HEAPF32[$15>>2];
  28390. _MatrixScale($7,$12,$14,$16);
  28391. $17 = +HEAPF32[$1>>2];
  28392. $18 = ((($1)) + 4|0);
  28393. $19 = +HEAPF32[$18>>2];
  28394. $20 = ((($1)) + 8|0);
  28395. $21 = +HEAPF32[$20>>2];
  28396. _MatrixTranslate($8,$17,$19,$21);
  28397. $22 = ((($0)) + 68|0);
  28398. 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));
  28399. 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));
  28400. _MatrixMultiply($9,$$byval_copy6,$$byval_copy7);
  28401. 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));
  28402. 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));
  28403. _MatrixMultiply($10,$$byval_copy6,$$byval_copy7);
  28404. 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));
  28405. $23 = ((($0)) + 132|0);
  28406. $24 = ((($0)) + 248|0);
  28407. $25 = HEAPU8[$5>>0]|(HEAPU8[$5+1>>0]<<8)|(HEAPU8[$5+2>>0]<<16)|(HEAPU8[$5+3>>0]<<24);
  28408. HEAP32[$24>>2] = $25;
  28409. 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));
  28410. _memcpy(($$byval_copy6|0),($23|0),132)|0;
  28411. 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));
  28412. _rlglDrawMesh($$byval_copy5,$$byval_copy6,$$byval_copy7);
  28413. STACKTOP = sp;return;
  28414. }
  28415. function _emscripten_GetProcAddress($0) {
  28416. $0 = $0|0;
  28417. 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;
  28418. 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;
  28419. 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;
  28420. 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;
  28421. 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;
  28422. 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;
  28423. 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;
  28424. 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;
  28425. 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;
  28426. 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;
  28427. 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;
  28428. 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;
  28429. 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;
  28430. 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;
  28431. 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;
  28432. 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;
  28433. 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;
  28434. 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;
  28435. 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;
  28436. 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;
  28437. 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;
  28438. 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;
  28439. 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;
  28440. 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;
  28441. 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;
  28442. 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;
  28443. 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;
  28444. 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;
  28445. sp = STACKTOP;
  28446. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  28447. $1 = sp + 12|0;
  28448. $2 = sp + 8|0;
  28449. $3 = sp + 4|0;
  28450. $4 = sp;
  28451. HEAP32[$2>>2] = $0;
  28452. $5 = HEAP32[$2>>2]|0;
  28453. $6 = (_strlen($5)|0);
  28454. $7 = (($6) + 1)|0;
  28455. $8 = (_malloc($7)|0);
  28456. HEAP32[$3>>2] = $8;
  28457. $9 = HEAP32[$3>>2]|0;
  28458. $10 = HEAP32[$2>>2]|0;
  28459. (_strcpy($9,$10)|0);
  28460. $11 = HEAP32[$3>>2]|0;
  28461. $12 = (_strstr($11,12858)|0);
  28462. HEAP32[$4>>2] = $12;
  28463. $13 = HEAP32[$4>>2]|0;
  28464. $14 = ($13|0)!=(0|0);
  28465. if ($14) {
  28466. $15 = HEAP32[$4>>2]|0;
  28467. HEAP8[$15>>0] = 0;
  28468. }
  28469. $16 = HEAP32[$3>>2]|0;
  28470. $17 = (_strstr($16,12862)|0);
  28471. HEAP32[$4>>2] = $17;
  28472. $18 = HEAP32[$4>>2]|0;
  28473. $19 = ($18|0)!=(0|0);
  28474. if ($19) {
  28475. $20 = HEAP32[$4>>2]|0;
  28476. HEAP8[$20>>0] = 0;
  28477. }
  28478. $21 = HEAP32[$3>>2]|0;
  28479. $22 = (_strstr($21,12866)|0);
  28480. HEAP32[$4>>2] = $22;
  28481. $23 = HEAP32[$4>>2]|0;
  28482. $24 = ($23|0)!=(0|0);
  28483. if ($24) {
  28484. $25 = HEAP32[$4>>2]|0;
  28485. HEAP8[$25>>0] = 0;
  28486. }
  28487. $26 = HEAP32[$3>>2]|0;
  28488. $27 = (_strstr($26,12870)|0);
  28489. HEAP32[$4>>2] = $27;
  28490. $28 = HEAP32[$4>>2]|0;
  28491. $29 = ($28|0)!=(0|0);
  28492. if ($29) {
  28493. $30 = HEAP32[$4>>2]|0;
  28494. HEAP8[$30>>0] = 0;
  28495. }
  28496. $31 = HEAP32[$3>>2]|0;
  28497. $32 = (_strcmp($31,12876)|0);
  28498. $33 = ($32|0)!=(0);
  28499. do {
  28500. if ($33) {
  28501. $34 = HEAP32[$3>>2]|0;
  28502. $35 = (_strcmp($34,12914)|0);
  28503. $36 = ($35|0)!=(0);
  28504. if (!($36)) {
  28505. HEAP32[$3>>2] = 12933;
  28506. break;
  28507. }
  28508. $37 = HEAP32[$3>>2]|0;
  28509. $38 = (_strcmp($37,12946)|0);
  28510. $39 = ($38|0)!=(0);
  28511. if (!($39)) {
  28512. HEAP32[$3>>2] = 12967;
  28513. break;
  28514. }
  28515. $40 = HEAP32[$3>>2]|0;
  28516. $41 = (_strcmp($40,12982)|0);
  28517. $42 = ($41|0)!=(0);
  28518. if (!($42)) {
  28519. HEAP32[$3>>2] = 12997;
  28520. break;
  28521. }
  28522. $43 = HEAP32[$3>>2]|0;
  28523. $44 = (_strcmp($43,13012)|0);
  28524. $45 = ($44|0)!=(0);
  28525. if (!($45)) {
  28526. HEAP32[$3>>2] = 13027;
  28527. }
  28528. } else {
  28529. HEAP32[$3>>2] = 12898;
  28530. }
  28531. } while(0);
  28532. $46 = HEAP32[$3>>2]|0;
  28533. $47 = (_strcmp($46,13042)|0);
  28534. $48 = ($47|0)!=(0);
  28535. do {
  28536. if ($48) {
  28537. $49 = HEAP32[$3>>2]|0;
  28538. $50 = (_strcmp($49,13056)|0);
  28539. $51 = ($50|0)!=(0);
  28540. if (!($51)) {
  28541. HEAP32[$1>>2] = 3;
  28542. break;
  28543. }
  28544. $52 = HEAP32[$3>>2]|0;
  28545. $53 = (_strcmp($52,13068)|0);
  28546. $54 = ($53|0)!=(0);
  28547. if (!($54)) {
  28548. HEAP32[$1>>2] = 7;
  28549. break;
  28550. }
  28551. $55 = HEAP32[$3>>2]|0;
  28552. $56 = (_strcmp($55,13082)|0);
  28553. $57 = ($56|0)!=(0);
  28554. if (!($57)) {
  28555. HEAP32[$1>>2] = 8;
  28556. break;
  28557. }
  28558. $58 = HEAP32[$3>>2]|0;
  28559. $59 = (_strcmp($58,13094)|0);
  28560. $60 = ($59|0)!=(0);
  28561. if (!($60)) {
  28562. HEAP32[$1>>2] = 9;
  28563. break;
  28564. }
  28565. $61 = HEAP32[$3>>2]|0;
  28566. $62 = (_strcmp($61,13108)|0);
  28567. $63 = ($62|0)!=(0);
  28568. if (!($63)) {
  28569. HEAP32[$1>>2] = 10;
  28570. break;
  28571. }
  28572. $64 = HEAP32[$3>>2]|0;
  28573. $65 = (_strcmp($64,13122)|0);
  28574. $66 = ($65|0)!=(0);
  28575. if (!($66)) {
  28576. HEAP32[$1>>2] = 11;
  28577. break;
  28578. }
  28579. $67 = HEAP32[$3>>2]|0;
  28580. $68 = (_strcmp($67,13139)|0);
  28581. $69 = ($68|0)!=(0);
  28582. if (!($69)) {
  28583. HEAP32[$1>>2] = 1;
  28584. break;
  28585. }
  28586. $70 = HEAP32[$3>>2]|0;
  28587. $71 = (_strcmp($70,13162)|0);
  28588. $72 = ($71|0)!=(0);
  28589. if (!($72)) {
  28590. HEAP32[$1>>2] = 1;
  28591. break;
  28592. }
  28593. $73 = HEAP32[$3>>2]|0;
  28594. $74 = (_strcmp($73,13188)|0);
  28595. $75 = ($74|0)!=(0);
  28596. if (!($75)) {
  28597. HEAP32[$1>>2] = 2;
  28598. break;
  28599. }
  28600. $76 = HEAP32[$3>>2]|0;
  28601. $77 = (_strcmp($76,13201)|0);
  28602. $78 = ($77|0)!=(0);
  28603. if (!($78)) {
  28604. HEAP32[$1>>2] = 3;
  28605. break;
  28606. }
  28607. $79 = HEAP32[$3>>2]|0;
  28608. $80 = (_strcmp($79,13217)|0);
  28609. $81 = ($80|0)!=(0);
  28610. if (!($81)) {
  28611. HEAP32[$1>>2] = 1;
  28612. break;
  28613. }
  28614. $82 = HEAP32[$3>>2]|0;
  28615. $83 = (_strcmp($82,13230)|0);
  28616. $84 = ($83|0)!=(0);
  28617. if (!($84)) {
  28618. HEAP32[$1>>2] = 12;
  28619. break;
  28620. }
  28621. $85 = HEAP32[$3>>2]|0;
  28622. $86 = (_strcmp($85,13244)|0);
  28623. $87 = ($86|0)!=(0);
  28624. if (!($87)) {
  28625. HEAP32[$1>>2] = 2;
  28626. break;
  28627. }
  28628. $88 = HEAP32[$3>>2]|0;
  28629. $89 = (_strcmp($88,13264)|0);
  28630. $90 = ($89|0)!=(0);
  28631. if (!($90)) {
  28632. HEAP32[$1>>2] = 3;
  28633. break;
  28634. }
  28635. $91 = HEAP32[$3>>2]|0;
  28636. $92 = (_strcmp($91,13284)|0);
  28637. $93 = ($92|0)!=(0);
  28638. if (!($93)) {
  28639. HEAP32[$1>>2] = 4;
  28640. break;
  28641. }
  28642. $94 = HEAP32[$3>>2]|0;
  28643. $95 = (_strcmp($94,13301)|0);
  28644. $96 = ($95|0)!=(0);
  28645. if (!($96)) {
  28646. HEAP32[$1>>2] = 5;
  28647. break;
  28648. }
  28649. $97 = HEAP32[$3>>2]|0;
  28650. $98 = (_strcmp($97,13318)|0);
  28651. $99 = ($98|0)!=(0);
  28652. if (!($99)) {
  28653. HEAP32[$1>>2] = 4;
  28654. break;
  28655. }
  28656. $100 = HEAP32[$3>>2]|0;
  28657. $101 = (_strcmp($100,13330)|0);
  28658. $102 = ($101|0)!=(0);
  28659. if (!($102)) {
  28660. HEAP32[$1>>2] = 13;
  28661. break;
  28662. }
  28663. $103 = HEAP32[$3>>2]|0;
  28664. $104 = (_strcmp($103,13343)|0);
  28665. $105 = ($104|0)!=(0);
  28666. if (!($105)) {
  28667. HEAP32[$1>>2] = 14;
  28668. break;
  28669. }
  28670. $106 = HEAP32[$3>>2]|0;
  28671. $107 = (_strcmp($106,13359)|0);
  28672. $108 = ($107|0)!=(0);
  28673. if (!($108)) {
  28674. HEAP32[$1>>2] = 6;
  28675. break;
  28676. }
  28677. $109 = HEAP32[$3>>2]|0;
  28678. $110 = (_strcmp($109,13382)|0);
  28679. $111 = ($110|0)!=(0);
  28680. if (!($111)) {
  28681. HEAP32[$1>>2] = 2;
  28682. break;
  28683. }
  28684. $112 = HEAP32[$3>>2]|0;
  28685. $113 = (_strcmp($112,13395)|0);
  28686. $114 = ($113|0)!=(0);
  28687. if (!($114)) {
  28688. HEAP32[$1>>2] = 3;
  28689. break;
  28690. }
  28691. $115 = HEAP32[$3>>2]|0;
  28692. $116 = (_strcmp($115,13411)|0);
  28693. $117 = ($116|0)!=(0);
  28694. if (!($117)) {
  28695. HEAP32[$1>>2] = 5;
  28696. break;
  28697. }
  28698. $118 = HEAP32[$3>>2]|0;
  28699. $119 = (_strcmp($118,13422)|0);
  28700. $120 = ($119|0)!=(0);
  28701. if (!($120)) {
  28702. HEAP32[$1>>2] = 15;
  28703. break;
  28704. }
  28705. $121 = HEAP32[$3>>2]|0;
  28706. $122 = (_strcmp($121,13441)|0);
  28707. $123 = ($122|0)!=(0);
  28708. if (!($123)) {
  28709. HEAP32[$1>>2] = 16;
  28710. break;
  28711. }
  28712. $124 = HEAP32[$3>>2]|0;
  28713. $125 = (_strcmp($124,13463)|0);
  28714. $126 = ($125|0)!=(0);
  28715. if (!($126)) {
  28716. HEAP32[$1>>2] = 17;
  28717. break;
  28718. }
  28719. $127 = HEAP32[$3>>2]|0;
  28720. $128 = (_strcmp($127,13482)|0);
  28721. $129 = ($128|0)!=(0);
  28722. if (!($129)) {
  28723. HEAP32[$1>>2] = 7;
  28724. break;
  28725. }
  28726. $130 = HEAP32[$3>>2]|0;
  28727. $131 = (_strcmp($130,13511)|0);
  28728. $132 = ($131|0)!=(0);
  28729. if (!($132)) {
  28730. HEAP32[$1>>2] = 6;
  28731. break;
  28732. }
  28733. $133 = HEAP32[$3>>2]|0;
  28734. $134 = (_strcmp($133,13528)|0);
  28735. $135 = ($134|0)!=(0);
  28736. if (!($135)) {
  28737. HEAP32[$1>>2] = 8;
  28738. break;
  28739. }
  28740. $136 = HEAP32[$3>>2]|0;
  28741. $137 = (_strcmp($136,13543)|0);
  28742. $138 = ($137|0)!=(0);
  28743. if (!($138)) {
  28744. HEAP32[$1>>2] = 9;
  28745. break;
  28746. }
  28747. $139 = HEAP32[$3>>2]|0;
  28748. $140 = (_strcmp($139,13558)|0);
  28749. $141 = ($140|0)!=(0);
  28750. if (!($141)) {
  28751. HEAP32[$1>>2] = 1;
  28752. break;
  28753. }
  28754. $142 = HEAP32[$3>>2]|0;
  28755. $143 = (_strcmp($142,13579)|0);
  28756. $144 = ($143|0)!=(0);
  28757. if (!($144)) {
  28758. HEAP32[$1>>2] = 10;
  28759. break;
  28760. }
  28761. $145 = HEAP32[$3>>2]|0;
  28762. $146 = (_strcmp($145,13599)|0);
  28763. $147 = ($146|0)!=(0);
  28764. if (!($147)) {
  28765. HEAP32[$1>>2] = 11;
  28766. break;
  28767. }
  28768. $148 = HEAP32[$3>>2]|0;
  28769. $149 = (_strcmp($148,13619)|0);
  28770. $150 = ($149|0)!=(0);
  28771. if (!($150)) {
  28772. HEAP32[$1>>2] = 12;
  28773. break;
  28774. }
  28775. $151 = HEAP32[$3>>2]|0;
  28776. $152 = (_strcmp($151,13645)|0);
  28777. $153 = ($152|0)!=(0);
  28778. if (!($153)) {
  28779. HEAP32[$1>>2] = 2;
  28780. break;
  28781. }
  28782. $154 = HEAP32[$3>>2]|0;
  28783. $155 = (_strcmp($154,13664)|0);
  28784. $156 = ($155|0)!=(0);
  28785. if (!($156)) {
  28786. HEAP32[$1>>2] = 1;
  28787. break;
  28788. }
  28789. $157 = HEAP32[$3>>2]|0;
  28790. $158 = (_strcmp($157,13676)|0);
  28791. $159 = ($158|0)!=(0);
  28792. if (!($159)) {
  28793. HEAP32[$1>>2] = 3;
  28794. break;
  28795. }
  28796. $160 = HEAP32[$3>>2]|0;
  28797. $161 = (_strcmp($160,13688)|0);
  28798. $162 = ($161|0)!=(0);
  28799. if (!($162)) {
  28800. HEAP32[$1>>2] = 1;
  28801. break;
  28802. }
  28803. $163 = HEAP32[$3>>2]|0;
  28804. $164 = (_strcmp($163,13700)|0);
  28805. $165 = ($164|0)!=(0);
  28806. if (!($165)) {
  28807. HEAP32[$1>>2] = 1;
  28808. break;
  28809. }
  28810. $166 = HEAP32[$3>>2]|0;
  28811. $167 = (_strcmp($166,13712)|0);
  28812. $168 = ($167|0)!=(0);
  28813. if (!($168)) {
  28814. HEAP32[$1>>2] = 18;
  28815. break;
  28816. }
  28817. $169 = HEAP32[$3>>2]|0;
  28818. $170 = (_strcmp($169,13724)|0);
  28819. $171 = ($170|0)!=(0);
  28820. if (!($171)) {
  28821. HEAP32[$1>>2] = 13;
  28822. break;
  28823. }
  28824. $172 = HEAP32[$3>>2]|0;
  28825. $173 = (_strcmp($172,13736)|0);
  28826. $174 = ($173|0)!=(0);
  28827. if (!($174)) {
  28828. HEAP32[$1>>2] = 4;
  28829. break;
  28830. }
  28831. $175 = HEAP32[$3>>2]|0;
  28832. $176 = (_strcmp($175,13748)|0);
  28833. $177 = ($176|0)!=(0);
  28834. if (!($177)) {
  28835. HEAP32[$1>>2] = 2;
  28836. break;
  28837. }
  28838. $178 = HEAP32[$3>>2]|0;
  28839. $179 = (_strcmp($178,13760)|0);
  28840. $180 = ($179|0)!=(0);
  28841. if (!($180)) {
  28842. HEAP32[$1>>2] = 14;
  28843. break;
  28844. }
  28845. $181 = HEAP32[$3>>2]|0;
  28846. $182 = (_strcmp($181,13773)|0);
  28847. $183 = ($182|0)!=(0);
  28848. if (!($183)) {
  28849. HEAP32[$1>>2] = 15;
  28850. break;
  28851. }
  28852. $184 = HEAP32[$3>>2]|0;
  28853. $185 = (_strcmp($184,13786)|0);
  28854. $186 = ($185|0)!=(0);
  28855. if (!($186)) {
  28856. HEAP32[$1>>2] = 16;
  28857. break;
  28858. }
  28859. $187 = HEAP32[$3>>2]|0;
  28860. $188 = (_strcmp($187,13799)|0);
  28861. $189 = ($188|0)!=(0);
  28862. if (!($189)) {
  28863. HEAP32[$1>>2] = 17;
  28864. break;
  28865. }
  28866. $190 = HEAP32[$3>>2]|0;
  28867. $191 = (_strcmp($190,13812)|0);
  28868. $192 = ($191|0)!=(0);
  28869. if (!($192)) {
  28870. HEAP32[$1>>2] = 18;
  28871. break;
  28872. }
  28873. $193 = HEAP32[$3>>2]|0;
  28874. $194 = (_strcmp($193,13825)|0);
  28875. $195 = ($194|0)!=(0);
  28876. if (!($195)) {
  28877. HEAP32[$1>>2] = 19;
  28878. break;
  28879. }
  28880. $196 = HEAP32[$3>>2]|0;
  28881. $197 = (_strcmp($196,13838)|0);
  28882. $198 = ($197|0)!=(0);
  28883. if (!($198)) {
  28884. HEAP32[$1>>2] = 20;
  28885. break;
  28886. }
  28887. $199 = HEAP32[$3>>2]|0;
  28888. $200 = (_strcmp($199,13851)|0);
  28889. $201 = ($200|0)!=(0);
  28890. if (!($201)) {
  28891. HEAP32[$1>>2] = 21;
  28892. break;
  28893. }
  28894. $202 = HEAP32[$3>>2]|0;
  28895. $203 = (_strcmp($202,13864)|0);
  28896. $204 = ($203|0)!=(0);
  28897. if (!($204)) {
  28898. HEAP32[$1>>2] = 5;
  28899. break;
  28900. }
  28901. $205 = HEAP32[$3>>2]|0;
  28902. $206 = (_strcmp($205,13883)|0);
  28903. $207 = ($206|0)!=(0);
  28904. if (!($207)) {
  28905. HEAP32[$1>>2] = 6;
  28906. break;
  28907. }
  28908. $208 = HEAP32[$3>>2]|0;
  28909. $209 = (_strcmp($208,13902)|0);
  28910. $210 = ($209|0)!=(0);
  28911. if (!($210)) {
  28912. HEAP32[$1>>2] = 7;
  28913. break;
  28914. }
  28915. $211 = HEAP32[$3>>2]|0;
  28916. $212 = (_strcmp($211,13921)|0);
  28917. $213 = ($212|0)!=(0);
  28918. if (!($213)) {
  28919. HEAP32[$1>>2] = 19;
  28920. break;
  28921. }
  28922. $214 = HEAP32[$3>>2]|0;
  28923. $215 = (_strcmp($214,13934)|0);
  28924. $216 = ($215|0)!=(0);
  28925. if (!($216)) {
  28926. HEAP32[$1>>2] = 20;
  28927. break;
  28928. }
  28929. $217 = HEAP32[$3>>2]|0;
  28930. $218 = (_strcmp($217,13952)|0);
  28931. $219 = ($218|0)!=(0);
  28932. if (!($219)) {
  28933. HEAP32[$1>>2] = 21;
  28934. break;
  28935. }
  28936. $220 = HEAP32[$3>>2]|0;
  28937. $221 = (_strcmp($220,13970)|0);
  28938. $222 = ($221|0)!=(0);
  28939. if (!($222)) {
  28940. HEAP32[$1>>2] = 22;
  28941. break;
  28942. }
  28943. $223 = HEAP32[$3>>2]|0;
  28944. $224 = (_strcmp($223,13988)|0);
  28945. $225 = ($224|0)!=(0);
  28946. if (!($225)) {
  28947. HEAP32[$1>>2] = 23;
  28948. break;
  28949. }
  28950. $226 = HEAP32[$3>>2]|0;
  28951. $227 = (_strcmp($226,14006)|0);
  28952. $228 = ($227|0)!=(0);
  28953. if (!($228)) {
  28954. HEAP32[$1>>2] = 2;
  28955. break;
  28956. }
  28957. $229 = HEAP32[$3>>2]|0;
  28958. $230 = (_strcmp($229,14026)|0);
  28959. $231 = ($230|0)!=(0);
  28960. if (!($231)) {
  28961. HEAP32[$1>>2] = 3;
  28962. break;
  28963. }
  28964. $232 = HEAP32[$3>>2]|0;
  28965. $233 = (_strcmp($232,12967)|0);
  28966. $234 = ($233|0)!=(0);
  28967. if (!($234)) {
  28968. HEAP32[$1>>2] = 7;
  28969. break;
  28970. }
  28971. $235 = HEAP32[$3>>2]|0;
  28972. $236 = (_strcmp($235,14044)|0);
  28973. $237 = ($236|0)!=(0);
  28974. if (!($237)) {
  28975. HEAP32[$1>>2] = 1;
  28976. break;
  28977. }
  28978. $238 = HEAP32[$3>>2]|0;
  28979. $239 = (_strcmp($238,14059)|0);
  28980. $240 = ($239|0)!=(0);
  28981. if (!($240)) {
  28982. HEAP32[$1>>2] = 8;
  28983. break;
  28984. }
  28985. $241 = HEAP32[$3>>2]|0;
  28986. $242 = (_strcmp($241,14080)|0);
  28987. $243 = ($242|0)!=(0);
  28988. if (!($243)) {
  28989. HEAP32[$1>>2] = 9;
  28990. break;
  28991. }
  28992. $244 = HEAP32[$3>>2]|0;
  28993. $245 = (_strcmp($244,14095)|0);
  28994. $246 = ($245|0)!=(0);
  28995. if (!($246)) {
  28996. HEAP32[$1>>2] = 10;
  28997. break;
  28998. }
  28999. $247 = HEAP32[$3>>2]|0;
  29000. $248 = (_strcmp($247,14113)|0);
  29001. $249 = ($248|0)!=(0);
  29002. if (!($249)) {
  29003. HEAP32[$1>>2] = 2;
  29004. break;
  29005. }
  29006. $250 = HEAP32[$3>>2]|0;
  29007. $251 = (_strcmp($250,14129)|0);
  29008. $252 = ($251|0)!=(0);
  29009. if (!($252)) {
  29010. HEAP32[$1>>2] = 11;
  29011. break;
  29012. }
  29013. $253 = HEAP32[$3>>2]|0;
  29014. $254 = (_strcmp($253,14148)|0);
  29015. $255 = ($254|0)!=(0);
  29016. if (!($255)) {
  29017. HEAP32[$1>>2] = 22;
  29018. break;
  29019. }
  29020. $256 = HEAP32[$3>>2]|0;
  29021. $257 = (_strcmp($256,14162)|0);
  29022. $258 = ($257|0)!=(0);
  29023. if (!($258)) {
  29024. HEAP32[$1>>2] = 23;
  29025. break;
  29026. }
  29027. $259 = HEAP32[$3>>2]|0;
  29028. $260 = (_strcmp($259,14177)|0);
  29029. $261 = ($260|0)!=(0);
  29030. if (!($261)) {
  29031. HEAP32[$1>>2] = 8;
  29032. break;
  29033. }
  29034. $262 = HEAP32[$3>>2]|0;
  29035. $263 = (_strcmp($262,12898)|0);
  29036. $264 = ($263|0)!=(0);
  29037. if (!($264)) {
  29038. HEAP32[$1>>2] = 1;
  29039. break;
  29040. }
  29041. $265 = HEAP32[$3>>2]|0;
  29042. $266 = (_strcmp($265,14188)|0);
  29043. $267 = ($266|0)!=(0);
  29044. if (!($267)) {
  29045. HEAP32[$1>>2] = 3;
  29046. break;
  29047. }
  29048. $268 = HEAP32[$3>>2]|0;
  29049. $269 = (_strcmp($268,12997)|0);
  29050. $270 = ($269|0)!=(0);
  29051. if (!($270)) {
  29052. HEAP32[$1>>2] = 24;
  29053. break;
  29054. }
  29055. $271 = HEAP32[$3>>2]|0;
  29056. $272 = (_strcmp($271,13027)|0);
  29057. $273 = ($272|0)!=(0);
  29058. if (!($273)) {
  29059. HEAP32[$1>>2] = 25;
  29060. break;
  29061. }
  29062. $274 = HEAP32[$3>>2]|0;
  29063. $275 = (_strcmp($274,14204)|0);
  29064. $276 = ($275|0)!=(0);
  29065. if (!($276)) {
  29066. HEAP32[$1>>2] = 12;
  29067. break;
  29068. }
  29069. $277 = HEAP32[$3>>2]|0;
  29070. $278 = (_strcmp($277,14231)|0);
  29071. $279 = ($278|0)!=(0);
  29072. if (!($279)) {
  29073. HEAP32[$1>>2] = 4;
  29074. break;
  29075. }
  29076. $280 = HEAP32[$3>>2]|0;
  29077. $281 = (_strcmp($280,14245)|0);
  29078. $282 = ($281|0)!=(0);
  29079. if (!($282)) {
  29080. HEAP32[$1>>2] = 13;
  29081. break;
  29082. }
  29083. $283 = HEAP32[$3>>2]|0;
  29084. $284 = (_strcmp($283,12933)|0);
  29085. $285 = ($284|0)!=(0);
  29086. if (!($285)) {
  29087. HEAP32[$1>>2] = 5;
  29088. break;
  29089. }
  29090. $286 = HEAP32[$3>>2]|0;
  29091. $287 = (_strcmp($286,14265)|0);
  29092. $288 = ($287|0)!=(0);
  29093. if (!($288)) {
  29094. HEAP32[$1>>2] = 6;
  29095. break;
  29096. }
  29097. $289 = HEAP32[$3>>2]|0;
  29098. $290 = (_strcmp($289,14283)|0);
  29099. $291 = ($290|0)!=(0);
  29100. if (!($291)) {
  29101. HEAP32[$1>>2] = 9;
  29102. break;
  29103. }
  29104. $292 = HEAP32[$3>>2]|0;
  29105. $293 = (_strcmp($292,14295)|0);
  29106. $294 = ($293|0)!=(0);
  29107. if (!($294)) {
  29108. HEAP32[$1>>2] = 24;
  29109. break;
  29110. }
  29111. $295 = HEAP32[$3>>2]|0;
  29112. $296 = (_strcmp($295,14316)|0);
  29113. $297 = ($296|0)!=(0);
  29114. if (!($297)) {
  29115. HEAP32[$1>>2] = 26;
  29116. break;
  29117. }
  29118. $298 = HEAP32[$3>>2]|0;
  29119. $299 = (_strcmp($298,14334)|0);
  29120. $300 = ($299|0)!=(0);
  29121. if (!($300)) {
  29122. HEAP32[$1>>2] = 27;
  29123. break;
  29124. }
  29125. $301 = HEAP32[$3>>2]|0;
  29126. $302 = (_strcmp($301,14352)|0);
  29127. $303 = ($302|0)!=(0);
  29128. if (!($303)) {
  29129. HEAP32[$1>>2] = 28;
  29130. break;
  29131. }
  29132. $304 = HEAP32[$3>>2]|0;
  29133. $305 = (_strcmp($304,14373)|0);
  29134. $306 = ($305|0)!=(0);
  29135. if (!($306)) {
  29136. HEAP32[$1>>2] = 14;
  29137. break;
  29138. }
  29139. $307 = HEAP32[$3>>2]|0;
  29140. $308 = (_strcmp($307,14399)|0);
  29141. $309 = ($308|0)!=(0);
  29142. if (!($309)) {
  29143. HEAP32[$1>>2] = 3;
  29144. break;
  29145. }
  29146. $310 = HEAP32[$3>>2]|0;
  29147. $311 = (_strcmp($310,14422)|0);
  29148. $312 = ($311|0)!=(0);
  29149. if (!($312)) {
  29150. HEAP32[$1>>2] = 15;
  29151. break;
  29152. }
  29153. $313 = HEAP32[$3>>2]|0;
  29154. $314 = (_strcmp($313,14460)|0);
  29155. $315 = ($314|0)!=(0);
  29156. if (!($315)) {
  29157. HEAP32[$1>>2] = 10;
  29158. break;
  29159. }
  29160. $316 = HEAP32[$3>>2]|0;
  29161. $317 = (_strcmp($316,14476)|0);
  29162. $318 = ($317|0)!=(0);
  29163. if (!($318)) {
  29164. HEAP32[$1>>2] = 7;
  29165. break;
  29166. }
  29167. $319 = HEAP32[$3>>2]|0;
  29168. $320 = (_strcmp($319,14491)|0);
  29169. $321 = ($320|0)!=(0);
  29170. if (!($321)) {
  29171. HEAP32[$1>>2] = 25;
  29172. break;
  29173. }
  29174. $322 = HEAP32[$3>>2]|0;
  29175. $323 = (_strcmp($322,14514)|0);
  29176. $324 = ($323|0)!=(0);
  29177. if (!($324)) {
  29178. HEAP32[$1>>2] = 16;
  29179. break;
  29180. }
  29181. $325 = HEAP32[$3>>2]|0;
  29182. $326 = (_strcmp($325,14527)|0);
  29183. $327 = ($326|0)!=(0);
  29184. if (!($327)) {
  29185. HEAP32[$1>>2] = 29;
  29186. break;
  29187. }
  29188. $328 = HEAP32[$3>>2]|0;
  29189. $329 = (_strcmp($328,14541)|0);
  29190. $330 = ($329|0)!=(0);
  29191. if (!($330)) {
  29192. HEAP32[$1>>2] = 30;
  29193. break;
  29194. }
  29195. $331 = HEAP32[$3>>2]|0;
  29196. $332 = (_strcmp($331,14555)|0);
  29197. $333 = ($332|0)!=(0);
  29198. if (!($333)) {
  29199. HEAP32[$1>>2] = 1;
  29200. break;
  29201. }
  29202. $334 = HEAP32[$3>>2]|0;
  29203. $335 = (_strcmp($334,14575)|0);
  29204. $336 = ($335|0)!=(0);
  29205. if (!($336)) {
  29206. HEAP32[$1>>2] = 8;
  29207. break;
  29208. }
  29209. $337 = HEAP32[$3>>2]|0;
  29210. $338 = (_strcmp($337,14595)|0);
  29211. $339 = ($338|0)!=(0);
  29212. if (!($339)) {
  29213. HEAP32[$1>>2] = 17;
  29214. break;
  29215. }
  29216. $340 = HEAP32[$3>>2]|0;
  29217. $341 = (_strcmp($340,14611)|0);
  29218. $342 = ($341|0)!=(0);
  29219. if (!($342)) {
  29220. HEAP32[$1>>2] = 18;
  29221. break;
  29222. }
  29223. $343 = HEAP32[$3>>2]|0;
  29224. $344 = (_strcmp($343,14629)|0);
  29225. $345 = ($344|0)!=(0);
  29226. if (!($345)) {
  29227. HEAP32[$1>>2] = 26;
  29228. break;
  29229. }
  29230. $346 = HEAP32[$3>>2]|0;
  29231. $347 = (_strcmp($346,14645)|0);
  29232. $348 = ($347|0)!=(0);
  29233. if (!($348)) {
  29234. HEAP32[$1>>2] = 19;
  29235. break;
  29236. }
  29237. $349 = HEAP32[$3>>2]|0;
  29238. $350 = (_strcmp($349,14660)|0);
  29239. $351 = ($350|0)!=(0);
  29240. if (!($351)) {
  29241. HEAP32[$1>>2] = 9;
  29242. break;
  29243. }
  29244. $352 = HEAP32[$3>>2]|0;
  29245. $353 = (_strcmp($352,14682)|0);
  29246. $354 = ($353|0)!=(0);
  29247. if (!($354)) {
  29248. HEAP32[$1>>2] = 31;
  29249. break;
  29250. }
  29251. $355 = HEAP32[$3>>2]|0;
  29252. $356 = (_strcmp($355,14700)|0);
  29253. $357 = ($356|0)!=(0);
  29254. if (!($357)) {
  29255. HEAP32[$1>>2] = 32;
  29256. break;
  29257. }
  29258. $358 = HEAP32[$3>>2]|0;
  29259. $359 = (_strcmp($358,14721)|0);
  29260. $360 = ($359|0)!=(0);
  29261. if (!($360)) {
  29262. HEAP32[$1>>2] = 10;
  29263. break;
  29264. }
  29265. $361 = HEAP32[$3>>2]|0;
  29266. $362 = (_strcmp($361,14739)|0);
  29267. $363 = ($362|0)!=(0);
  29268. if (!($363)) {
  29269. HEAP32[$1>>2] = 11;
  29270. break;
  29271. }
  29272. $364 = HEAP32[$3>>2]|0;
  29273. $365 = (_strcmp($364,14752)|0);
  29274. $366 = ($365|0)!=(0);
  29275. if (!($366)) {
  29276. HEAP32[$1>>2] = 2;
  29277. break;
  29278. }
  29279. $367 = HEAP32[$3>>2]|0;
  29280. $368 = (_strcmp($367,14767)|0);
  29281. $369 = ($368|0)!=(0);
  29282. if (!($369)) {
  29283. HEAP32[$1>>2] = 12;
  29284. break;
  29285. }
  29286. $370 = HEAP32[$3>>2]|0;
  29287. $371 = (_strcmp($370,14781)|0);
  29288. $372 = ($371|0)!=(0);
  29289. if (!($372)) {
  29290. HEAP32[$1>>2] = 1;
  29291. break;
  29292. }
  29293. $373 = HEAP32[$3>>2]|0;
  29294. $374 = (_strcmp($373,14791)|0);
  29295. $375 = ($374|0)!=(0);
  29296. if (!($375)) {
  29297. HEAP32[$1>>2] = 1;
  29298. break;
  29299. }
  29300. $376 = HEAP32[$3>>2]|0;
  29301. $377 = (_strcmp($376,14801)|0);
  29302. $378 = ($377|0)!=(0);
  29303. if (!($378)) {
  29304. HEAP32[$1>>2] = 2;
  29305. break;
  29306. }
  29307. $379 = HEAP32[$3>>2]|0;
  29308. $380 = (_strcmp($379,14823)|0);
  29309. $381 = ($380|0)!=(0);
  29310. if (!($381)) {
  29311. HEAP32[$1>>2] = 13;
  29312. break;
  29313. }
  29314. $382 = HEAP32[$3>>2]|0;
  29315. $383 = (_strcmp($382,14849)|0);
  29316. $384 = ($383|0)!=(0);
  29317. if (!($384)) {
  29318. HEAP32[$1>>2] = 14;
  29319. break;
  29320. }
  29321. $385 = HEAP32[$3>>2]|0;
  29322. $386 = (_strcmp($385,14876)|0);
  29323. $387 = ($386|0)!=(0);
  29324. if (!($387)) {
  29325. HEAP32[$1>>2] = 27;
  29326. break;
  29327. }
  29328. $388 = HEAP32[$3>>2]|0;
  29329. $389 = (_strcmp($388,14889)|0);
  29330. $390 = ($389|0)!=(0);
  29331. if (!($390)) {
  29332. HEAP32[$1>>2] = 20;
  29333. break;
  29334. }
  29335. $391 = HEAP32[$3>>2]|0;
  29336. $392 = (_strcmp($391,14904)|0);
  29337. $393 = ($392|0)!=(0);
  29338. if (!($393)) {
  29339. HEAP32[$1>>2] = 4;
  29340. break;
  29341. }
  29342. $394 = HEAP32[$3>>2]|0;
  29343. $395 = (_strcmp($394,14919)|0);
  29344. $396 = ($395|0)!=(0);
  29345. if (!($396)) {
  29346. HEAP32[$1>>2] = 3;
  29347. break;
  29348. }
  29349. $397 = HEAP32[$3>>2]|0;
  29350. $398 = (_strcmp($397,14943)|0);
  29351. $399 = ($398|0)!=(0);
  29352. if (!($399)) {
  29353. HEAP32[$1>>2] = 2;
  29354. break;
  29355. }
  29356. $400 = HEAP32[$3>>2]|0;
  29357. $401 = (_strcmp($400,14954)|0);
  29358. $402 = ($401|0)!=(0);
  29359. if (!($402)) {
  29360. HEAP32[$1>>2] = 33;
  29361. break;
  29362. }
  29363. $403 = HEAP32[$3>>2]|0;
  29364. $404 = (_strcmp($403,14976)|0);
  29365. $405 = ($404|0)!=(0);
  29366. if (!($405)) {
  29367. HEAP32[$1>>2] = 21;
  29368. break;
  29369. }
  29370. $406 = HEAP32[$3>>2]|0;
  29371. $407 = (_strcmp($406,14998)|0);
  29372. $408 = ($407|0)!=(0);
  29373. if (!($408)) {
  29374. HEAP32[$1>>2] = 5;
  29375. break;
  29376. }
  29377. $409 = HEAP32[$3>>2]|0;
  29378. $410 = (_strcmp($409,15022)|0);
  29379. $411 = ($410|0)!=(0);
  29380. if (!($411)) {
  29381. HEAP32[$1>>2] = 4;
  29382. break;
  29383. }
  29384. $412 = HEAP32[$3>>2]|0;
  29385. $413 = (_strcmp($412,15031)|0);
  29386. $414 = ($413|0)!=(0);
  29387. if (!($414)) {
  29388. HEAP32[$1>>2] = 5;
  29389. break;
  29390. }
  29391. $415 = HEAP32[$3>>2]|0;
  29392. $416 = (_strcmp($415,15039)|0);
  29393. $417 = ($416|0)!=(0);
  29394. if (!($417)) {
  29395. HEAP32[$1>>2] = 1;
  29396. break;
  29397. }
  29398. $418 = HEAP32[$3>>2]|0;
  29399. $419 = (_strcmp($418,15052)|0);
  29400. $420 = ($419|0)!=(0);
  29401. if (!($420)) {
  29402. HEAP32[$1>>2] = 2;
  29403. break;
  29404. }
  29405. $421 = HEAP32[$3>>2]|0;
  29406. $422 = (_strcmp($421,15066)|0);
  29407. $423 = ($422|0)!=(0);
  29408. if (!($423)) {
  29409. HEAP32[$1>>2] = 15;
  29410. break;
  29411. }
  29412. $424 = HEAP32[$3>>2]|0;
  29413. $425 = (_strcmp($424,15078)|0);
  29414. $426 = ($425|0)!=(0);
  29415. if (!($426)) {
  29416. HEAP32[$1>>2] = 16;
  29417. break;
  29418. }
  29419. $427 = HEAP32[$3>>2]|0;
  29420. $428 = (_strcmp($427,15087)|0);
  29421. $429 = ($428|0)!=(0);
  29422. if (!($429)) {
  29423. HEAP32[$1>>2] = 17;
  29424. break;
  29425. }
  29426. $430 = HEAP32[$3>>2]|0;
  29427. $431 = (_strcmp($430,15097)|0);
  29428. $432 = ($431|0)!=(0);
  29429. if (!($432)) {
  29430. HEAP32[$1>>2] = 18;
  29431. break;
  29432. }
  29433. $433 = HEAP32[$3>>2]|0;
  29434. $434 = (_strcmp($433,15109)|0);
  29435. $435 = ($434|0)!=(0);
  29436. if (!($435)) {
  29437. HEAP32[$1>>2] = 19;
  29438. break;
  29439. }
  29440. $436 = HEAP32[$3>>2]|0;
  29441. $437 = (_strcmp($436,15120)|0);
  29442. $438 = ($437|0)!=(0);
  29443. if (!($438)) {
  29444. HEAP32[$1>>2] = 20;
  29445. break;
  29446. }
  29447. $439 = HEAP32[$3>>2]|0;
  29448. $440 = (_strcmp($439,15128)|0);
  29449. $441 = ($440|0)!=(0);
  29450. if (!($441)) {
  29451. HEAP32[$1>>2] = 3;
  29452. break;
  29453. }
  29454. $442 = HEAP32[$3>>2]|0;
  29455. $443 = (_strcmp($442,15140)|0);
  29456. $444 = ($443|0)!=(0);
  29457. if (!($444)) {
  29458. HEAP32[$1>>2] = 21;
  29459. break;
  29460. }
  29461. $445 = HEAP32[$3>>2]|0;
  29462. $446 = (_strcmp($445,15155)|0);
  29463. $447 = ($446|0)!=(0);
  29464. if (!($447)) {
  29465. HEAP32[$1>>2] = 22;
  29466. break;
  29467. }
  29468. $448 = HEAP32[$3>>2]|0;
  29469. $449 = (_strcmp($448,15167)|0);
  29470. $450 = ($449|0)!=(0);
  29471. if (!($450)) {
  29472. HEAP32[$1>>2] = 23;
  29473. break;
  29474. }
  29475. $451 = HEAP32[$3>>2]|0;
  29476. $452 = (_strcmp($451,15181)|0);
  29477. $453 = ($452|0)!=(0);
  29478. if (!($453)) {
  29479. HEAP32[$1>>2] = 11;
  29480. break;
  29481. }
  29482. $454 = HEAP32[$3>>2]|0;
  29483. $455 = (_strcmp($454,15206)|0);
  29484. $456 = ($455|0)!=(0);
  29485. if (!($456)) {
  29486. HEAP32[$1>>2] = 24;
  29487. break;
  29488. }
  29489. $457 = HEAP32[$3>>2]|0;
  29490. $458 = (_strcmp($457,15223)|0);
  29491. $459 = ($458|0)!=(0);
  29492. if (!($459)) {
  29493. HEAP32[$1>>2] = 25;
  29494. break;
  29495. }
  29496. $460 = HEAP32[$3>>2]|0;
  29497. $461 = (_strcmp($460,15239)|0);
  29498. $462 = ($461|0)!=(0);
  29499. if (!($462)) {
  29500. HEAP32[$1>>2] = 26;
  29501. break;
  29502. }
  29503. $463 = HEAP32[$3>>2]|0;
  29504. $464 = (_strcmp($463,15255)|0);
  29505. $465 = ($464|0)!=(0);
  29506. if (!($465)) {
  29507. HEAP32[$1>>2] = 12;
  29508. break;
  29509. }
  29510. $466 = HEAP32[$3>>2]|0;
  29511. $467 = (_strcmp($466,15267)|0);
  29512. $468 = ($467|0)!=(0);
  29513. if (!($468)) {
  29514. HEAP32[$1>>2] = 34;
  29515. break;
  29516. }
  29517. $469 = HEAP32[$3>>2]|0;
  29518. $470 = (_strcmp($469,15279)|0);
  29519. $471 = ($470|0)!=(0);
  29520. if (!($471)) {
  29521. HEAP32[$1>>2] = 35;
  29522. break;
  29523. }
  29524. $472 = HEAP32[$3>>2]|0;
  29525. $473 = (_strcmp($472,15303)|0);
  29526. $474 = ($473|0)!=(0);
  29527. if (!($474)) {
  29528. HEAP32[$1>>2] = 1;
  29529. break;
  29530. }
  29531. $475 = HEAP32[$3>>2]|0;
  29532. $476 = (_strcmp($475,15316)|0);
  29533. $477 = ($476|0)!=(0);
  29534. if (!($477)) {
  29535. HEAP32[$1>>2] = 2;
  29536. break;
  29537. }
  29538. $478 = HEAP32[$3>>2]|0;
  29539. $479 = (_strcmp($478,15330)|0);
  29540. $480 = ($479|0)!=(0);
  29541. if (!($480)) {
  29542. HEAP32[$1>>2] = 36;
  29543. break;
  29544. }
  29545. $481 = HEAP32[$3>>2]|0;
  29546. $482 = (_strcmp($481,15352)|0);
  29547. $483 = ($482|0)!=(0);
  29548. if (!($483)) {
  29549. HEAP32[$1>>2] = 37;
  29550. break;
  29551. }
  29552. $484 = HEAP32[$3>>2]|0;
  29553. $485 = (_strcmp($484,15359)|0);
  29554. $486 = ($485|0)!=(0);
  29555. if (!($486)) {
  29556. HEAP32[$1>>2] = 3;
  29557. break;
  29558. }
  29559. $487 = HEAP32[$3>>2]|0;
  29560. $488 = (_strcmp($487,15375)|0);
  29561. $489 = ($488|0)!=(0);
  29562. if (!($489)) {
  29563. HEAP32[$1>>2] = 2;
  29564. break;
  29565. }
  29566. $490 = HEAP32[$3>>2]|0;
  29567. $491 = (_strcmp($490,15392)|0);
  29568. $492 = ($491|0)!=(0);
  29569. if (!($492)) {
  29570. HEAP32[$1>>2] = 1;
  29571. break;
  29572. }
  29573. $493 = HEAP32[$3>>2]|0;
  29574. $494 = (_strcmp($493,15409)|0);
  29575. $495 = ($494|0)!=(0);
  29576. if (!($495)) {
  29577. HEAP32[$1>>2] = 28;
  29578. break;
  29579. }
  29580. $496 = HEAP32[$3>>2]|0;
  29581. $497 = (_strcmp($496,15425)|0);
  29582. $498 = ($497|0)!=(0);
  29583. if (!($498)) {
  29584. HEAP32[$1>>2] = 1;
  29585. break;
  29586. }
  29587. $499 = HEAP32[$3>>2]|0;
  29588. $500 = (_strcmp($499,15441)|0);
  29589. $501 = ($500|0)!=(0);
  29590. if (!($501)) {
  29591. HEAP32[$1>>2] = 4;
  29592. break;
  29593. }
  29594. $502 = HEAP32[$3>>2]|0;
  29595. $503 = (_strcmp($502,15458)|0);
  29596. $504 = ($503|0)!=(0);
  29597. if (!($504)) {
  29598. HEAP32[$1>>2] = 29;
  29599. break;
  29600. }
  29601. $505 = HEAP32[$3>>2]|0;
  29602. $506 = (_strcmp($505,15472)|0);
  29603. $507 = ($506|0)!=(0);
  29604. if (!($507)) {
  29605. HEAP32[$1>>2] = 30;
  29606. break;
  29607. }
  29608. $508 = HEAP32[$3>>2]|0;
  29609. $509 = (_strcmp($508,15484)|0);
  29610. $510 = ($509|0)!=(0);
  29611. if (!($510)) {
  29612. HEAP32[$1>>2] = 22;
  29613. break;
  29614. }
  29615. $511 = HEAP32[$3>>2]|0;
  29616. $512 = (_strcmp($511,15495)|0);
  29617. $513 = ($512|0)!=(0);
  29618. if (!($513)) {
  29619. HEAP32[$1>>2] = 2;
  29620. break;
  29621. }
  29622. $514 = HEAP32[$3>>2]|0;
  29623. $515 = (_strcmp($514,15508)|0);
  29624. $516 = ($515|0)!=(0);
  29625. if (!($516)) {
  29626. HEAP32[$1>>2] = 23;
  29627. break;
  29628. }
  29629. $517 = HEAP32[$3>>2]|0;
  29630. $518 = (_strcmp($517,15518)|0);
  29631. $519 = ($518|0)!=(0);
  29632. if (!($519)) {
  29633. HEAP32[$1>>2] = 2;
  29634. break;
  29635. }
  29636. $520 = HEAP32[$3>>2]|0;
  29637. $521 = (_strcmp($520,15535)|0);
  29638. $522 = ($521|0)!=(0);
  29639. if (!($522)) {
  29640. HEAP32[$1>>2] = 24;
  29641. break;
  29642. }
  29643. $523 = HEAP32[$3>>2]|0;
  29644. $524 = (_strcmp($523,15547)|0);
  29645. $525 = ($524|0)!=(0);
  29646. if (!($525)) {
  29647. HEAP32[$1>>2] = 25;
  29648. break;
  29649. }
  29650. $526 = HEAP32[$3>>2]|0;
  29651. $527 = (_strcmp($526,15569)|0);
  29652. $528 = ($527|0)!=(0);
  29653. if (!($528)) {
  29654. HEAP32[$1>>2] = 26;
  29655. break;
  29656. }
  29657. $529 = HEAP32[$3>>2]|0;
  29658. $530 = (_strcmp($529,15589)|0);
  29659. $531 = ($530|0)!=(0);
  29660. if (!($531)) {
  29661. HEAP32[$1>>2] = 3;
  29662. break;
  29663. }
  29664. $532 = HEAP32[$3>>2]|0;
  29665. $533 = (_strcmp($532,15602)|0);
  29666. $534 = ($533|0)!=(0);
  29667. if (!($534)) {
  29668. HEAP32[$1>>2] = 27;
  29669. break;
  29670. }
  29671. $535 = HEAP32[$3>>2]|0;
  29672. $536 = (_strcmp($535,15624)|0);
  29673. $537 = ($536|0)!=(0);
  29674. if (!($537)) {
  29675. HEAP32[$1>>2] = 28;
  29676. break;
  29677. }
  29678. $538 = HEAP32[$3>>2]|0;
  29679. $539 = (_strcmp($538,15644)|0);
  29680. $540 = ($539|0)!=(0);
  29681. if (!($540)) {
  29682. HEAP32[$1>>2] = 2;
  29683. break;
  29684. }
  29685. $541 = HEAP32[$3>>2]|0;
  29686. $542 = (_strcmp($541,15661)|0);
  29687. $543 = ($542|0)!=(0);
  29688. if (!($543)) {
  29689. HEAP32[$1>>2] = 2;
  29690. break;
  29691. }
  29692. $544 = HEAP32[$3>>2]|0;
  29693. $545 = (_strcmp($544,15678)|0);
  29694. $546 = ($545|0)!=(0);
  29695. if (!($546)) {
  29696. HEAP32[$1>>2] = 3;
  29697. break;
  29698. }
  29699. $547 = HEAP32[$3>>2]|0;
  29700. $548 = (_strcmp($547,15698)|0);
  29701. $549 = ($548|0)!=(0);
  29702. if ($549) {
  29703. $550 = HEAP32[$2>>2]|0;
  29704. $551 = HEAP32[$3>>2]|0;
  29705. $552 = _emscripten_asm_const_iii(0, ($550|0), ($551|0))|0;
  29706. HEAP32[$1>>2] = 0;
  29707. break;
  29708. } else {
  29709. HEAP32[$1>>2] = 38;
  29710. break;
  29711. }
  29712. } else {
  29713. HEAP32[$1>>2] = 6;
  29714. }
  29715. } while(0);
  29716. $553 = HEAP32[$1>>2]|0;
  29717. STACKTOP = sp;return ($553|0);
  29718. }
  29719. function _emscripten_get_global_libc() {
  29720. var label = 0, sp = 0;
  29721. sp = STACKTOP;
  29722. return (21524|0);
  29723. }
  29724. function ___stdio_close($0) {
  29725. $0 = $0|0;
  29726. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  29727. sp = STACKTOP;
  29728. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  29729. $vararg_buffer = sp;
  29730. $1 = ((($0)) + 60|0);
  29731. $2 = HEAP32[$1>>2]|0;
  29732. $3 = (_dummy_738($2)|0);
  29733. HEAP32[$vararg_buffer>>2] = $3;
  29734. $4 = (___syscall6(6,($vararg_buffer|0))|0);
  29735. $5 = (___syscall_ret($4)|0);
  29736. STACKTOP = sp;return ($5|0);
  29737. }
  29738. function ___stdio_write($0,$1,$2) {
  29739. $0 = $0|0;
  29740. $1 = $1|0;
  29741. $2 = $2|0;
  29742. 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;
  29743. 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;
  29744. 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;
  29745. var $vararg_ptr7 = 0, label = 0, sp = 0;
  29746. sp = STACKTOP;
  29747. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  29748. $vararg_buffer3 = sp + 16|0;
  29749. $vararg_buffer = sp;
  29750. $3 = sp + 32|0;
  29751. $4 = ((($0)) + 28|0);
  29752. $5 = HEAP32[$4>>2]|0;
  29753. HEAP32[$3>>2] = $5;
  29754. $6 = ((($3)) + 4|0);
  29755. $7 = ((($0)) + 20|0);
  29756. $8 = HEAP32[$7>>2]|0;
  29757. $9 = (($8) - ($5))|0;
  29758. HEAP32[$6>>2] = $9;
  29759. $10 = ((($3)) + 8|0);
  29760. HEAP32[$10>>2] = $1;
  29761. $11 = ((($3)) + 12|0);
  29762. HEAP32[$11>>2] = $2;
  29763. $12 = (($9) + ($2))|0;
  29764. $13 = ((($0)) + 60|0);
  29765. $14 = HEAP32[$13>>2]|0;
  29766. $15 = $3;
  29767. HEAP32[$vararg_buffer>>2] = $14;
  29768. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  29769. HEAP32[$vararg_ptr1>>2] = $15;
  29770. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  29771. HEAP32[$vararg_ptr2>>2] = 2;
  29772. $16 = (___syscall146(146,($vararg_buffer|0))|0);
  29773. $17 = (___syscall_ret($16)|0);
  29774. $18 = ($12|0)==($17|0);
  29775. L1: do {
  29776. if ($18) {
  29777. label = 3;
  29778. } else {
  29779. $$04756 = 2;$$04855 = $12;$$04954 = $3;$26 = $17;
  29780. while(1) {
  29781. $25 = ($26|0)<(0);
  29782. if ($25) {
  29783. break;
  29784. }
  29785. $34 = (($$04855) - ($26))|0;
  29786. $35 = ((($$04954)) + 4|0);
  29787. $36 = HEAP32[$35>>2]|0;
  29788. $37 = ($26>>>0)>($36>>>0);
  29789. $38 = ((($$04954)) + 8|0);
  29790. $$150 = $37 ? $38 : $$04954;
  29791. $39 = $37 << 31 >> 31;
  29792. $$1 = (($39) + ($$04756))|0;
  29793. $40 = $37 ? $36 : 0;
  29794. $$0 = (($26) - ($40))|0;
  29795. $41 = HEAP32[$$150>>2]|0;
  29796. $42 = (($41) + ($$0)|0);
  29797. HEAP32[$$150>>2] = $42;
  29798. $43 = ((($$150)) + 4|0);
  29799. $44 = HEAP32[$43>>2]|0;
  29800. $45 = (($44) - ($$0))|0;
  29801. HEAP32[$43>>2] = $45;
  29802. $46 = HEAP32[$13>>2]|0;
  29803. $47 = $$150;
  29804. HEAP32[$vararg_buffer3>>2] = $46;
  29805. $vararg_ptr6 = ((($vararg_buffer3)) + 4|0);
  29806. HEAP32[$vararg_ptr6>>2] = $47;
  29807. $vararg_ptr7 = ((($vararg_buffer3)) + 8|0);
  29808. HEAP32[$vararg_ptr7>>2] = $$1;
  29809. $48 = (___syscall146(146,($vararg_buffer3|0))|0);
  29810. $49 = (___syscall_ret($48)|0);
  29811. $50 = ($34|0)==($49|0);
  29812. if ($50) {
  29813. label = 3;
  29814. break L1;
  29815. } else {
  29816. $$04756 = $$1;$$04855 = $34;$$04954 = $$150;$26 = $49;
  29817. }
  29818. }
  29819. $27 = ((($0)) + 16|0);
  29820. HEAP32[$27>>2] = 0;
  29821. HEAP32[$4>>2] = 0;
  29822. HEAP32[$7>>2] = 0;
  29823. $28 = HEAP32[$0>>2]|0;
  29824. $29 = $28 | 32;
  29825. HEAP32[$0>>2] = $29;
  29826. $30 = ($$04756|0)==(2);
  29827. if ($30) {
  29828. $$051 = 0;
  29829. } else {
  29830. $31 = ((($$04954)) + 4|0);
  29831. $32 = HEAP32[$31>>2]|0;
  29832. $33 = (($2) - ($32))|0;
  29833. $$051 = $33;
  29834. }
  29835. }
  29836. } while(0);
  29837. if ((label|0) == 3) {
  29838. $19 = ((($0)) + 44|0);
  29839. $20 = HEAP32[$19>>2]|0;
  29840. $21 = ((($0)) + 48|0);
  29841. $22 = HEAP32[$21>>2]|0;
  29842. $23 = (($20) + ($22)|0);
  29843. $24 = ((($0)) + 16|0);
  29844. HEAP32[$24>>2] = $23;
  29845. HEAP32[$4>>2] = $20;
  29846. HEAP32[$7>>2] = $20;
  29847. $$051 = $2;
  29848. }
  29849. STACKTOP = sp;return ($$051|0);
  29850. }
  29851. function ___stdio_seek($0,$1,$2) {
  29852. $0 = $0|0;
  29853. $1 = $1|0;
  29854. $2 = $2|0;
  29855. 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;
  29856. sp = STACKTOP;
  29857. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  29858. $vararg_buffer = sp;
  29859. $3 = sp + 20|0;
  29860. $4 = ((($0)) + 60|0);
  29861. $5 = HEAP32[$4>>2]|0;
  29862. $6 = $3;
  29863. HEAP32[$vararg_buffer>>2] = $5;
  29864. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  29865. HEAP32[$vararg_ptr1>>2] = 0;
  29866. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  29867. HEAP32[$vararg_ptr2>>2] = $1;
  29868. $vararg_ptr3 = ((($vararg_buffer)) + 12|0);
  29869. HEAP32[$vararg_ptr3>>2] = $6;
  29870. $vararg_ptr4 = ((($vararg_buffer)) + 16|0);
  29871. HEAP32[$vararg_ptr4>>2] = $2;
  29872. $7 = (___syscall140(140,($vararg_buffer|0))|0);
  29873. $8 = (___syscall_ret($7)|0);
  29874. $9 = ($8|0)<(0);
  29875. if ($9) {
  29876. HEAP32[$3>>2] = -1;
  29877. $10 = -1;
  29878. } else {
  29879. $$pre = HEAP32[$3>>2]|0;
  29880. $10 = $$pre;
  29881. }
  29882. STACKTOP = sp;return ($10|0);
  29883. }
  29884. function ___syscall_ret($0) {
  29885. $0 = $0|0;
  29886. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  29887. sp = STACKTOP;
  29888. $1 = ($0>>>0)>(4294963200);
  29889. if ($1) {
  29890. $2 = (0 - ($0))|0;
  29891. $3 = (___errno_location()|0);
  29892. HEAP32[$3>>2] = $2;
  29893. $$0 = -1;
  29894. } else {
  29895. $$0 = $0;
  29896. }
  29897. return ($$0|0);
  29898. }
  29899. function ___errno_location() {
  29900. var $0 = 0, $1 = 0, label = 0, sp = 0;
  29901. sp = STACKTOP;
  29902. $0 = (___pthread_self_108()|0);
  29903. $1 = ((($0)) + 64|0);
  29904. return ($1|0);
  29905. }
  29906. function ___pthread_self_108() {
  29907. var $0 = 0, label = 0, sp = 0;
  29908. sp = STACKTOP;
  29909. $0 = (_pthread_self()|0);
  29910. return ($0|0);
  29911. }
  29912. function _pthread_self() {
  29913. var label = 0, sp = 0;
  29914. sp = STACKTOP;
  29915. return (3908|0);
  29916. }
  29917. function _dummy_738($0) {
  29918. $0 = $0|0;
  29919. var label = 0, sp = 0;
  29920. sp = STACKTOP;
  29921. return ($0|0);
  29922. }
  29923. function ___stdio_read($0,$1,$2) {
  29924. $0 = $0|0;
  29925. $1 = $1|0;
  29926. $2 = $2|0;
  29927. 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;
  29928. 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;
  29929. sp = STACKTOP;
  29930. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  29931. $vararg_buffer = sp;
  29932. $3 = sp + 16|0;
  29933. HEAP32[$3>>2] = $1;
  29934. $4 = ((($3)) + 4|0);
  29935. $5 = ((($0)) + 48|0);
  29936. $6 = HEAP32[$5>>2]|0;
  29937. $7 = ($6|0)!=(0);
  29938. $8 = $7&1;
  29939. $9 = (($2) - ($8))|0;
  29940. HEAP32[$4>>2] = $9;
  29941. $10 = ((($3)) + 8|0);
  29942. $11 = ((($0)) + 44|0);
  29943. $12 = HEAP32[$11>>2]|0;
  29944. HEAP32[$10>>2] = $12;
  29945. $13 = ((($3)) + 12|0);
  29946. HEAP32[$13>>2] = $6;
  29947. $14 = ((($0)) + 60|0);
  29948. $15 = HEAP32[$14>>2]|0;
  29949. $16 = $3;
  29950. HEAP32[$vararg_buffer>>2] = $15;
  29951. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  29952. HEAP32[$vararg_ptr1>>2] = $16;
  29953. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  29954. HEAP32[$vararg_ptr2>>2] = 2;
  29955. $17 = (___syscall145(145,($vararg_buffer|0))|0);
  29956. $18 = (___syscall_ret($17)|0);
  29957. $19 = ($18|0)<(1);
  29958. if ($19) {
  29959. $20 = $18 & 48;
  29960. $21 = $20 ^ 16;
  29961. $22 = HEAP32[$0>>2]|0;
  29962. $23 = $22 | $21;
  29963. HEAP32[$0>>2] = $23;
  29964. $$0 = $18;
  29965. } else {
  29966. $24 = HEAP32[$4>>2]|0;
  29967. $25 = ($18>>>0)>($24>>>0);
  29968. if ($25) {
  29969. $26 = (($18) - ($24))|0;
  29970. $27 = HEAP32[$11>>2]|0;
  29971. $28 = ((($0)) + 4|0);
  29972. HEAP32[$28>>2] = $27;
  29973. $29 = (($27) + ($26)|0);
  29974. $30 = ((($0)) + 8|0);
  29975. HEAP32[$30>>2] = $29;
  29976. $31 = HEAP32[$5>>2]|0;
  29977. $32 = ($31|0)==(0);
  29978. if ($32) {
  29979. $$0 = $2;
  29980. } else {
  29981. $33 = ((($27)) + 1|0);
  29982. HEAP32[$28>>2] = $33;
  29983. $34 = HEAP8[$27>>0]|0;
  29984. $35 = (($2) + -1)|0;
  29985. $36 = (($1) + ($35)|0);
  29986. HEAP8[$36>>0] = $34;
  29987. $$0 = $2;
  29988. }
  29989. } else {
  29990. $$0 = $18;
  29991. }
  29992. }
  29993. STACKTOP = sp;return ($$0|0);
  29994. }
  29995. function ___stdout_write($0,$1,$2) {
  29996. $0 = $0|0;
  29997. $1 = $1|0;
  29998. $2 = $2|0;
  29999. 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;
  30000. sp = STACKTOP;
  30001. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  30002. $vararg_buffer = sp;
  30003. $3 = sp + 16|0;
  30004. $4 = ((($0)) + 36|0);
  30005. HEAP32[$4>>2] = 10;
  30006. $5 = HEAP32[$0>>2]|0;
  30007. $6 = $5 & 64;
  30008. $7 = ($6|0)==(0);
  30009. if ($7) {
  30010. $8 = ((($0)) + 60|0);
  30011. $9 = HEAP32[$8>>2]|0;
  30012. $10 = $3;
  30013. HEAP32[$vararg_buffer>>2] = $9;
  30014. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  30015. HEAP32[$vararg_ptr1>>2] = 21523;
  30016. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  30017. HEAP32[$vararg_ptr2>>2] = $10;
  30018. $11 = (___syscall54(54,($vararg_buffer|0))|0);
  30019. $12 = ($11|0)==(0);
  30020. if (!($12)) {
  30021. $13 = ((($0)) + 75|0);
  30022. HEAP8[$13>>0] = -1;
  30023. }
  30024. }
  30025. $14 = (___stdio_write($0,$1,$2)|0);
  30026. STACKTOP = sp;return ($14|0);
  30027. }
  30028. function ___shlim($0,$1) {
  30029. $0 = $0|0;
  30030. $1 = $1|0;
  30031. 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;
  30032. sp = STACKTOP;
  30033. $2 = ((($0)) + 104|0);
  30034. HEAP32[$2>>2] = $1;
  30035. $3 = ((($0)) + 8|0);
  30036. $4 = HEAP32[$3>>2]|0;
  30037. $5 = ((($0)) + 4|0);
  30038. $6 = HEAP32[$5>>2]|0;
  30039. $7 = $4;
  30040. $8 = $6;
  30041. $9 = (($7) - ($8))|0;
  30042. $10 = ((($0)) + 108|0);
  30043. HEAP32[$10>>2] = $9;
  30044. $11 = ($1|0)!=(0);
  30045. $12 = ($9|0)>($1|0);
  30046. $or$cond = $11 & $12;
  30047. $13 = (($6) + ($1)|0);
  30048. $$sink = $or$cond ? $13 : $4;
  30049. $14 = ((($0)) + 100|0);
  30050. HEAP32[$14>>2] = $$sink;
  30051. return;
  30052. }
  30053. function ___intscan($0,$1,$2,$3,$4) {
  30054. $0 = $0|0;
  30055. $1 = $1|0;
  30056. $2 = $2|0;
  30057. $3 = $3|0;
  30058. $4 = $4|0;
  30059. 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;
  30060. 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;
  30061. 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;
  30062. 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;
  30063. 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;
  30064. 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;
  30065. 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;
  30066. 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;
  30067. 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;
  30068. 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;
  30069. 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;
  30070. 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;
  30071. 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;
  30072. 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;
  30073. 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;
  30074. 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;
  30075. var $or$cond187 = 0, $or$cond5 = 0, $or$cond7 = 0, label = 0, sp = 0;
  30076. sp = STACKTOP;
  30077. $5 = ($1>>>0)>(36);
  30078. L1: do {
  30079. if ($5) {
  30080. $8 = (___errno_location()|0);
  30081. HEAP32[$8>>2] = 22;
  30082. $289 = 0;$290 = 0;
  30083. } else {
  30084. $6 = ((($0)) + 4|0);
  30085. $7 = ((($0)) + 100|0);
  30086. while(1) {
  30087. $9 = HEAP32[$6>>2]|0;
  30088. $10 = HEAP32[$7>>2]|0;
  30089. $11 = ($9>>>0)<($10>>>0);
  30090. if ($11) {
  30091. $12 = ((($9)) + 1|0);
  30092. HEAP32[$6>>2] = $12;
  30093. $13 = HEAP8[$9>>0]|0;
  30094. $14 = $13&255;
  30095. $16 = $14;
  30096. } else {
  30097. $15 = (___shgetc($0)|0);
  30098. $16 = $15;
  30099. }
  30100. $17 = (_isspace($16)|0);
  30101. $18 = ($17|0)==(0);
  30102. if ($18) {
  30103. break;
  30104. }
  30105. }
  30106. L11: do {
  30107. switch ($16|0) {
  30108. case 43: case 45: {
  30109. $19 = ($16|0)==(45);
  30110. $20 = $19 << 31 >> 31;
  30111. $21 = HEAP32[$6>>2]|0;
  30112. $22 = HEAP32[$7>>2]|0;
  30113. $23 = ($21>>>0)<($22>>>0);
  30114. if ($23) {
  30115. $24 = ((($21)) + 1|0);
  30116. HEAP32[$6>>2] = $24;
  30117. $25 = HEAP8[$21>>0]|0;
  30118. $26 = $25&255;
  30119. $$0157 = $20;$$0159 = $26;
  30120. break L11;
  30121. } else {
  30122. $27 = (___shgetc($0)|0);
  30123. $$0157 = $20;$$0159 = $27;
  30124. break L11;
  30125. }
  30126. break;
  30127. }
  30128. default: {
  30129. $$0157 = 0;$$0159 = $16;
  30130. }
  30131. }
  30132. } while(0);
  30133. $28 = ($1|0)==(0);
  30134. $29 = $1 | 16;
  30135. $30 = ($29|0)==(16);
  30136. $31 = ($$0159|0)==(48);
  30137. $or$cond5 = $30 & $31;
  30138. do {
  30139. if ($or$cond5) {
  30140. $32 = HEAP32[$6>>2]|0;
  30141. $33 = HEAP32[$7>>2]|0;
  30142. $34 = ($32>>>0)<($33>>>0);
  30143. if ($34) {
  30144. $35 = ((($32)) + 1|0);
  30145. HEAP32[$6>>2] = $35;
  30146. $36 = HEAP8[$32>>0]|0;
  30147. $37 = $36&255;
  30148. $40 = $37;
  30149. } else {
  30150. $38 = (___shgetc($0)|0);
  30151. $40 = $38;
  30152. }
  30153. $39 = $40 | 32;
  30154. $41 = ($39|0)==(120);
  30155. if (!($41)) {
  30156. if ($28) {
  30157. $$1160169 = $40;$$1165168 = 8;
  30158. label = 46;
  30159. break;
  30160. } else {
  30161. $$1160 = $40;$$1165 = $1;
  30162. label = 32;
  30163. break;
  30164. }
  30165. }
  30166. $42 = HEAP32[$6>>2]|0;
  30167. $43 = HEAP32[$7>>2]|0;
  30168. $44 = ($42>>>0)<($43>>>0);
  30169. if ($44) {
  30170. $45 = ((($42)) + 1|0);
  30171. HEAP32[$6>>2] = $45;
  30172. $46 = HEAP8[$42>>0]|0;
  30173. $47 = $46&255;
  30174. $50 = $47;
  30175. } else {
  30176. $48 = (___shgetc($0)|0);
  30177. $50 = $48;
  30178. }
  30179. $49 = ((15815) + ($50)|0);
  30180. $51 = HEAP8[$49>>0]|0;
  30181. $52 = ($51&255)>(15);
  30182. if ($52) {
  30183. $53 = HEAP32[$7>>2]|0;
  30184. $54 = ($53|0)!=(0|0);
  30185. if ($54) {
  30186. $55 = HEAP32[$6>>2]|0;
  30187. $56 = ((($55)) + -1|0);
  30188. HEAP32[$6>>2] = $56;
  30189. }
  30190. $57 = ($2|0)==(0);
  30191. if ($57) {
  30192. ___shlim($0,0);
  30193. $289 = 0;$290 = 0;
  30194. break L1;
  30195. }
  30196. if (!($54)) {
  30197. $289 = 0;$290 = 0;
  30198. break L1;
  30199. }
  30200. $58 = HEAP32[$6>>2]|0;
  30201. $59 = ((($58)) + -1|0);
  30202. HEAP32[$6>>2] = $59;
  30203. $289 = 0;$290 = 0;
  30204. break L1;
  30205. } else {
  30206. $$1160169 = $50;$$1165168 = 16;
  30207. label = 46;
  30208. }
  30209. } else {
  30210. $$166 = $28 ? 10 : $1;
  30211. $60 = ((15815) + ($$0159)|0);
  30212. $61 = HEAP8[$60>>0]|0;
  30213. $62 = $61&255;
  30214. $63 = ($62>>>0)<($$166>>>0);
  30215. if ($63) {
  30216. $$1160 = $$0159;$$1165 = $$166;
  30217. label = 32;
  30218. } else {
  30219. $64 = HEAP32[$7>>2]|0;
  30220. $65 = ($64|0)==(0|0);
  30221. if (!($65)) {
  30222. $66 = HEAP32[$6>>2]|0;
  30223. $67 = ((($66)) + -1|0);
  30224. HEAP32[$6>>2] = $67;
  30225. }
  30226. ___shlim($0,0);
  30227. $68 = (___errno_location()|0);
  30228. HEAP32[$68>>2] = 22;
  30229. $289 = 0;$290 = 0;
  30230. break L1;
  30231. }
  30232. }
  30233. } while(0);
  30234. L43: do {
  30235. if ((label|0) == 32) {
  30236. $69 = ($$1165|0)==(10);
  30237. if ($69) {
  30238. $70 = (($$1160) + -48)|0;
  30239. $71 = ($70>>>0)<(10);
  30240. if ($71) {
  30241. $$0154222 = 0;$74 = $70;
  30242. while(1) {
  30243. $72 = ($$0154222*10)|0;
  30244. $73 = (($72) + ($74))|0;
  30245. $75 = HEAP32[$6>>2]|0;
  30246. $76 = HEAP32[$7>>2]|0;
  30247. $77 = ($75>>>0)<($76>>>0);
  30248. if ($77) {
  30249. $78 = ((($75)) + 1|0);
  30250. HEAP32[$6>>2] = $78;
  30251. $79 = HEAP8[$75>>0]|0;
  30252. $80 = $79&255;
  30253. $$2161$be = $80;
  30254. } else {
  30255. $81 = (___shgetc($0)|0);
  30256. $$2161$be = $81;
  30257. }
  30258. $82 = (($$2161$be) + -48)|0;
  30259. $83 = ($82>>>0)<(10);
  30260. $84 = ($73>>>0)<(429496729);
  30261. $85 = $83 & $84;
  30262. if ($85) {
  30263. $$0154222 = $73;$74 = $82;
  30264. } else {
  30265. break;
  30266. }
  30267. }
  30268. $$2161$lcssa = $$2161$be;$291 = $73;$292 = 0;
  30269. } else {
  30270. $$2161$lcssa = $$1160;$291 = 0;$292 = 0;
  30271. }
  30272. $86 = (($$2161$lcssa) + -48)|0;
  30273. $87 = ($86>>>0)<(10);
  30274. if ($87) {
  30275. $$3162215 = $$2161$lcssa;$88 = $291;$89 = $292;$93 = $86;
  30276. while(1) {
  30277. $90 = (___muldi3(($88|0),($89|0),10,0)|0);
  30278. $91 = tempRet0;
  30279. $92 = ($93|0)<(0);
  30280. $94 = $92 << 31 >> 31;
  30281. $95 = $93 ^ -1;
  30282. $96 = $94 ^ -1;
  30283. $97 = ($91>>>0)>($96>>>0);
  30284. $98 = ($90>>>0)>($95>>>0);
  30285. $99 = ($91|0)==($96|0);
  30286. $100 = $99 & $98;
  30287. $101 = $97 | $100;
  30288. if ($101) {
  30289. $$1165167 = 10;$$8 = $$3162215;$293 = $88;$294 = $89;
  30290. label = 72;
  30291. break L43;
  30292. }
  30293. $102 = (_i64Add(($90|0),($91|0),($93|0),($94|0))|0);
  30294. $103 = tempRet0;
  30295. $104 = HEAP32[$6>>2]|0;
  30296. $105 = HEAP32[$7>>2]|0;
  30297. $106 = ($104>>>0)<($105>>>0);
  30298. if ($106) {
  30299. $107 = ((($104)) + 1|0);
  30300. HEAP32[$6>>2] = $107;
  30301. $108 = HEAP8[$104>>0]|0;
  30302. $109 = $108&255;
  30303. $$3162$be = $109;
  30304. } else {
  30305. $110 = (___shgetc($0)|0);
  30306. $$3162$be = $110;
  30307. }
  30308. $111 = (($$3162$be) + -48)|0;
  30309. $112 = ($111>>>0)<(10);
  30310. $113 = ($103>>>0)<(429496729);
  30311. $114 = ($102>>>0)<(2576980378);
  30312. $115 = ($103|0)==(429496729);
  30313. $116 = $115 & $114;
  30314. $117 = $113 | $116;
  30315. $or$cond7 = $112 & $117;
  30316. if ($or$cond7) {
  30317. $$3162215 = $$3162$be;$88 = $102;$89 = $103;$93 = $111;
  30318. } else {
  30319. break;
  30320. }
  30321. }
  30322. $118 = ($111>>>0)>(9);
  30323. if ($118) {
  30324. $$1158 = $$0157;$263 = $103;$265 = $102;
  30325. } else {
  30326. $$1165167 = 10;$$8 = $$3162$be;$293 = $102;$294 = $103;
  30327. label = 72;
  30328. }
  30329. } else {
  30330. $$1158 = $$0157;$263 = $292;$265 = $291;
  30331. }
  30332. } else {
  30333. $$1160169 = $$1160;$$1165168 = $$1165;
  30334. label = 46;
  30335. }
  30336. }
  30337. } while(0);
  30338. L63: do {
  30339. if ((label|0) == 46) {
  30340. $119 = (($$1165168) + -1)|0;
  30341. $120 = $119 & $$1165168;
  30342. $121 = ($120|0)==(0);
  30343. if ($121) {
  30344. $126 = ($$1165168*23)|0;
  30345. $127 = $126 >>> 5;
  30346. $128 = $127 & 7;
  30347. $129 = (16071 + ($128)|0);
  30348. $130 = HEAP8[$129>>0]|0;
  30349. $131 = $130 << 24 >> 24;
  30350. $132 = ((15815) + ($$1160169)|0);
  30351. $133 = HEAP8[$132>>0]|0;
  30352. $134 = $133&255;
  30353. $135 = ($134>>>0)<($$1165168>>>0);
  30354. if ($135) {
  30355. $$1155192 = 0;$138 = $134;
  30356. while(1) {
  30357. $136 = $$1155192 << $131;
  30358. $137 = $138 | $136;
  30359. $139 = HEAP32[$6>>2]|0;
  30360. $140 = HEAP32[$7>>2]|0;
  30361. $141 = ($139>>>0)<($140>>>0);
  30362. if ($141) {
  30363. $142 = ((($139)) + 1|0);
  30364. HEAP32[$6>>2] = $142;
  30365. $143 = HEAP8[$139>>0]|0;
  30366. $144 = $143&255;
  30367. $$4163$be = $144;
  30368. } else {
  30369. $145 = (___shgetc($0)|0);
  30370. $$4163$be = $145;
  30371. }
  30372. $146 = ((15815) + ($$4163$be)|0);
  30373. $147 = HEAP8[$146>>0]|0;
  30374. $148 = $147&255;
  30375. $149 = ($148>>>0)<($$1165168>>>0);
  30376. $150 = ($137>>>0)<(134217728);
  30377. $151 = $150 & $149;
  30378. if ($151) {
  30379. $$1155192 = $137;$138 = $148;
  30380. } else {
  30381. break;
  30382. }
  30383. }
  30384. $$4163$lcssa = $$4163$be;$155 = $147;$158 = 0;$160 = $137;
  30385. } else {
  30386. $$4163$lcssa = $$1160169;$155 = $133;$158 = 0;$160 = 0;
  30387. }
  30388. $152 = (_bitshift64Lshr(-1,-1,($131|0))|0);
  30389. $153 = tempRet0;
  30390. $154 = $155&255;
  30391. $156 = ($154>>>0)>=($$1165168>>>0);
  30392. $157 = ($158>>>0)>($153>>>0);
  30393. $159 = ($160>>>0)>($152>>>0);
  30394. $161 = ($158|0)==($153|0);
  30395. $162 = $161 & $159;
  30396. $163 = $157 | $162;
  30397. $or$cond187 = $156 | $163;
  30398. if ($or$cond187) {
  30399. $$1165167 = $$1165168;$$8 = $$4163$lcssa;$293 = $160;$294 = $158;
  30400. label = 72;
  30401. break;
  30402. } else {
  30403. $164 = $160;$165 = $158;$169 = $155;
  30404. }
  30405. while(1) {
  30406. $166 = (_bitshift64Shl(($164|0),($165|0),($131|0))|0);
  30407. $167 = tempRet0;
  30408. $168 = $169&255;
  30409. $170 = $168 | $166;
  30410. $171 = HEAP32[$6>>2]|0;
  30411. $172 = HEAP32[$7>>2]|0;
  30412. $173 = ($171>>>0)<($172>>>0);
  30413. if ($173) {
  30414. $174 = ((($171)) + 1|0);
  30415. HEAP32[$6>>2] = $174;
  30416. $175 = HEAP8[$171>>0]|0;
  30417. $176 = $175&255;
  30418. $$5$be = $176;
  30419. } else {
  30420. $177 = (___shgetc($0)|0);
  30421. $$5$be = $177;
  30422. }
  30423. $178 = ((15815) + ($$5$be)|0);
  30424. $179 = HEAP8[$178>>0]|0;
  30425. $180 = $179&255;
  30426. $181 = ($180>>>0)>=($$1165168>>>0);
  30427. $182 = ($167>>>0)>($153>>>0);
  30428. $183 = ($170>>>0)>($152>>>0);
  30429. $184 = ($167|0)==($153|0);
  30430. $185 = $184 & $183;
  30431. $186 = $182 | $185;
  30432. $or$cond = $181 | $186;
  30433. if ($or$cond) {
  30434. $$1165167 = $$1165168;$$8 = $$5$be;$293 = $170;$294 = $167;
  30435. label = 72;
  30436. break L63;
  30437. } else {
  30438. $164 = $170;$165 = $167;$169 = $179;
  30439. }
  30440. }
  30441. }
  30442. $122 = ((15815) + ($$1160169)|0);
  30443. $123 = HEAP8[$122>>0]|0;
  30444. $124 = $123&255;
  30445. $125 = ($124>>>0)<($$1165168>>>0);
  30446. if ($125) {
  30447. $$2156210 = 0;$189 = $124;
  30448. while(1) {
  30449. $187 = Math_imul($$2156210, $$1165168)|0;
  30450. $188 = (($189) + ($187))|0;
  30451. $190 = HEAP32[$6>>2]|0;
  30452. $191 = HEAP32[$7>>2]|0;
  30453. $192 = ($190>>>0)<($191>>>0);
  30454. if ($192) {
  30455. $193 = ((($190)) + 1|0);
  30456. HEAP32[$6>>2] = $193;
  30457. $194 = HEAP8[$190>>0]|0;
  30458. $195 = $194&255;
  30459. $$6$be = $195;
  30460. } else {
  30461. $196 = (___shgetc($0)|0);
  30462. $$6$be = $196;
  30463. }
  30464. $197 = ((15815) + ($$6$be)|0);
  30465. $198 = HEAP8[$197>>0]|0;
  30466. $199 = $198&255;
  30467. $200 = ($199>>>0)<($$1165168>>>0);
  30468. $201 = ($188>>>0)<(119304647);
  30469. $202 = $201 & $200;
  30470. if ($202) {
  30471. $$2156210 = $188;$189 = $199;
  30472. } else {
  30473. break;
  30474. }
  30475. }
  30476. $$6$lcssa = $$6$be;$204 = $198;$295 = $188;$296 = 0;
  30477. } else {
  30478. $$6$lcssa = $$1160169;$204 = $123;$295 = 0;$296 = 0;
  30479. }
  30480. $203 = $204&255;
  30481. $205 = ($203>>>0)<($$1165168>>>0);
  30482. if ($205) {
  30483. $206 = (___udivdi3(-1,-1,($$1165168|0),0)|0);
  30484. $207 = tempRet0;
  30485. $$7198 = $$6$lcssa;$209 = $296;$211 = $295;$218 = $204;
  30486. while(1) {
  30487. $208 = ($209>>>0)>($207>>>0);
  30488. $210 = ($211>>>0)>($206>>>0);
  30489. $212 = ($209|0)==($207|0);
  30490. $213 = $212 & $210;
  30491. $214 = $208 | $213;
  30492. if ($214) {
  30493. $$1165167 = $$1165168;$$8 = $$7198;$293 = $211;$294 = $209;
  30494. label = 72;
  30495. break L63;
  30496. }
  30497. $215 = (___muldi3(($211|0),($209|0),($$1165168|0),0)|0);
  30498. $216 = tempRet0;
  30499. $217 = $218&255;
  30500. $219 = $217 ^ -1;
  30501. $220 = ($216>>>0)>(4294967295);
  30502. $221 = ($215>>>0)>($219>>>0);
  30503. $222 = ($216|0)==(-1);
  30504. $223 = $222 & $221;
  30505. $224 = $220 | $223;
  30506. if ($224) {
  30507. $$1165167 = $$1165168;$$8 = $$7198;$293 = $211;$294 = $209;
  30508. label = 72;
  30509. break L63;
  30510. }
  30511. $225 = (_i64Add(($217|0),0,($215|0),($216|0))|0);
  30512. $226 = tempRet0;
  30513. $227 = HEAP32[$6>>2]|0;
  30514. $228 = HEAP32[$7>>2]|0;
  30515. $229 = ($227>>>0)<($228>>>0);
  30516. if ($229) {
  30517. $230 = ((($227)) + 1|0);
  30518. HEAP32[$6>>2] = $230;
  30519. $231 = HEAP8[$227>>0]|0;
  30520. $232 = $231&255;
  30521. $$7$be = $232;
  30522. } else {
  30523. $233 = (___shgetc($0)|0);
  30524. $$7$be = $233;
  30525. }
  30526. $234 = ((15815) + ($$7$be)|0);
  30527. $235 = HEAP8[$234>>0]|0;
  30528. $236 = $235&255;
  30529. $237 = ($236>>>0)<($$1165168>>>0);
  30530. if ($237) {
  30531. $$7198 = $$7$be;$209 = $226;$211 = $225;$218 = $235;
  30532. } else {
  30533. $$1165167 = $$1165168;$$8 = $$7$be;$293 = $225;$294 = $226;
  30534. label = 72;
  30535. break;
  30536. }
  30537. }
  30538. } else {
  30539. $$1165167 = $$1165168;$$8 = $$6$lcssa;$293 = $295;$294 = $296;
  30540. label = 72;
  30541. }
  30542. }
  30543. } while(0);
  30544. if ((label|0) == 72) {
  30545. $238 = ((15815) + ($$8)|0);
  30546. $239 = HEAP8[$238>>0]|0;
  30547. $240 = $239&255;
  30548. $241 = ($240>>>0)<($$1165167>>>0);
  30549. if ($241) {
  30550. while(1) {
  30551. $242 = HEAP32[$6>>2]|0;
  30552. $243 = HEAP32[$7>>2]|0;
  30553. $244 = ($242>>>0)<($243>>>0);
  30554. if ($244) {
  30555. $245 = ((($242)) + 1|0);
  30556. HEAP32[$6>>2] = $245;
  30557. $246 = HEAP8[$242>>0]|0;
  30558. $247 = $246&255;
  30559. $$9$be = $247;
  30560. } else {
  30561. $248 = (___shgetc($0)|0);
  30562. $$9$be = $248;
  30563. }
  30564. $249 = ((15815) + ($$9$be)|0);
  30565. $250 = HEAP8[$249>>0]|0;
  30566. $251 = $250&255;
  30567. $252 = ($251>>>0)<($$1165167>>>0);
  30568. if (!($252)) {
  30569. break;
  30570. }
  30571. }
  30572. $253 = (___errno_location()|0);
  30573. HEAP32[$253>>2] = 34;
  30574. $254 = $3 & 1;
  30575. $255 = ($254|0)==(0);
  30576. $256 = (0)==(0);
  30577. $257 = $255 & $256;
  30578. $$0157$ = $257 ? $$0157 : 0;
  30579. $$1158 = $$0157$;$263 = $4;$265 = $3;
  30580. } else {
  30581. $$1158 = $$0157;$263 = $294;$265 = $293;
  30582. }
  30583. }
  30584. $258 = HEAP32[$7>>2]|0;
  30585. $259 = ($258|0)==(0|0);
  30586. if (!($259)) {
  30587. $260 = HEAP32[$6>>2]|0;
  30588. $261 = ((($260)) + -1|0);
  30589. HEAP32[$6>>2] = $261;
  30590. }
  30591. $262 = ($263>>>0)<($4>>>0);
  30592. $264 = ($265>>>0)<($3>>>0);
  30593. $266 = ($263|0)==($4|0);
  30594. $267 = $266 & $264;
  30595. $268 = $262 | $267;
  30596. if (!($268)) {
  30597. $269 = $3 & 1;
  30598. $270 = ($269|0)!=(0);
  30599. $271 = (0)!=(0);
  30600. $272 = $270 | $271;
  30601. $273 = ($$1158|0)!=(0);
  30602. $or$cond12 = $272 | $273;
  30603. if (!($or$cond12)) {
  30604. $274 = (___errno_location()|0);
  30605. HEAP32[$274>>2] = 34;
  30606. $275 = (_i64Add(($3|0),($4|0),-1,-1)|0);
  30607. $276 = tempRet0;
  30608. $289 = $276;$290 = $275;
  30609. break;
  30610. }
  30611. $277 = ($263>>>0)>($4>>>0);
  30612. $278 = ($265>>>0)>($3>>>0);
  30613. $279 = ($263|0)==($4|0);
  30614. $280 = $279 & $278;
  30615. $281 = $277 | $280;
  30616. if ($281) {
  30617. $282 = (___errno_location()|0);
  30618. HEAP32[$282>>2] = 34;
  30619. $289 = $4;$290 = $3;
  30620. break;
  30621. }
  30622. }
  30623. $283 = ($$1158|0)<(0);
  30624. $284 = $283 << 31 >> 31;
  30625. $285 = $265 ^ $$1158;
  30626. $286 = $263 ^ $284;
  30627. $287 = (_i64Subtract(($285|0),($286|0),($$1158|0),($284|0))|0);
  30628. $288 = tempRet0;
  30629. $289 = $288;$290 = $287;
  30630. }
  30631. } while(0);
  30632. tempRet0 = ($289);
  30633. return ($290|0);
  30634. }
  30635. function ___shgetc($0) {
  30636. $0 = $0|0;
  30637. 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;
  30638. 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;
  30639. var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  30640. sp = STACKTOP;
  30641. $1 = ((($0)) + 104|0);
  30642. $2 = HEAP32[$1>>2]|0;
  30643. $3 = ($2|0)==(0);
  30644. if ($3) {
  30645. label = 3;
  30646. } else {
  30647. $4 = ((($0)) + 108|0);
  30648. $5 = HEAP32[$4>>2]|0;
  30649. $6 = ($5|0)<($2|0);
  30650. if ($6) {
  30651. label = 3;
  30652. } else {
  30653. label = 4;
  30654. }
  30655. }
  30656. if ((label|0) == 3) {
  30657. $7 = (___uflow($0)|0);
  30658. $8 = ($7|0)<(0);
  30659. if ($8) {
  30660. label = 4;
  30661. } else {
  30662. $10 = HEAP32[$1>>2]|0;
  30663. $11 = ($10|0)==(0);
  30664. $$phi$trans$insert = ((($0)) + 8|0);
  30665. if ($11) {
  30666. $$pre = HEAP32[$$phi$trans$insert>>2]|0;
  30667. $$phi$trans$insert28$phi$trans$insert = ((($0)) + 4|0);
  30668. $$pre29$pre = HEAP32[$$phi$trans$insert28$phi$trans$insert>>2]|0;
  30669. $$pre35 = ((($0)) + 108|0);
  30670. $$pre$phi34Z2D = $$pre35;$$sink = $$pre;$26 = $$pre;$29 = $$pre29$pre;
  30671. } else {
  30672. $12 = HEAP32[$$phi$trans$insert>>2]|0;
  30673. $13 = ((($0)) + 4|0);
  30674. $14 = HEAP32[$13>>2]|0;
  30675. $15 = $14;
  30676. $16 = (($12) - ($15))|0;
  30677. $17 = ((($0)) + 108|0);
  30678. $18 = HEAP32[$17>>2]|0;
  30679. $19 = (($10) - ($18))|0;
  30680. $20 = ($16|0)<($19|0);
  30681. $21 = $12;
  30682. if ($20) {
  30683. $$pre$phi34Z2D = $17;$$sink = $21;$26 = $21;$29 = $14;
  30684. } else {
  30685. $22 = (($19) + -1)|0;
  30686. $23 = (($14) + ($22)|0);
  30687. $$pre$phi34Z2D = $17;$$sink = $23;$26 = $21;$29 = $14;
  30688. }
  30689. }
  30690. $24 = ((($0)) + 100|0);
  30691. HEAP32[$24>>2] = $$sink;
  30692. $25 = ($26|0)==(0|0);
  30693. if (!($25)) {
  30694. $27 = $26;
  30695. $28 = $29;
  30696. $30 = HEAP32[$$pre$phi34Z2D>>2]|0;
  30697. $31 = (($27) + 1)|0;
  30698. $32 = (($31) - ($28))|0;
  30699. $33 = (($32) + ($30))|0;
  30700. HEAP32[$$pre$phi34Z2D>>2] = $33;
  30701. }
  30702. $34 = ((($29)) + -1|0);
  30703. $35 = HEAP8[$34>>0]|0;
  30704. $36 = $35&255;
  30705. $37 = ($36|0)==($7|0);
  30706. if ($37) {
  30707. $$0 = $7;
  30708. } else {
  30709. $38 = $7&255;
  30710. HEAP8[$34>>0] = $38;
  30711. $$0 = $7;
  30712. }
  30713. }
  30714. }
  30715. if ((label|0) == 4) {
  30716. $9 = ((($0)) + 100|0);
  30717. HEAP32[$9>>2] = 0;
  30718. $$0 = -1;
  30719. }
  30720. return ($$0|0);
  30721. }
  30722. function _isspace($0) {
  30723. $0 = $0|0;
  30724. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  30725. sp = STACKTOP;
  30726. $1 = ($0|0)==(32);
  30727. $2 = (($0) + -9)|0;
  30728. $3 = ($2>>>0)<(5);
  30729. $4 = $1 | $3;
  30730. $5 = $4&1;
  30731. return ($5|0);
  30732. }
  30733. function ___uflow($0) {
  30734. $0 = $0|0;
  30735. 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;
  30736. sp = STACKTOP;
  30737. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  30738. $1 = sp;
  30739. $2 = (___toread($0)|0);
  30740. $3 = ($2|0)==(0);
  30741. if ($3) {
  30742. $4 = ((($0)) + 32|0);
  30743. $5 = HEAP32[$4>>2]|0;
  30744. $6 = (FUNCTION_TABLE_iiii[$5 & 15]($0,$1,1)|0);
  30745. $7 = ($6|0)==(1);
  30746. if ($7) {
  30747. $8 = HEAP8[$1>>0]|0;
  30748. $9 = $8&255;
  30749. $$0 = $9;
  30750. } else {
  30751. $$0 = -1;
  30752. }
  30753. } else {
  30754. $$0 = -1;
  30755. }
  30756. STACKTOP = sp;return ($$0|0);
  30757. }
  30758. function ___toread($0) {
  30759. $0 = $0|0;
  30760. 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;
  30761. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $sext = 0, label = 0, sp = 0;
  30762. sp = STACKTOP;
  30763. $1 = ((($0)) + 74|0);
  30764. $2 = HEAP8[$1>>0]|0;
  30765. $3 = $2 << 24 >> 24;
  30766. $4 = (($3) + 255)|0;
  30767. $5 = $4 | $3;
  30768. $6 = $5&255;
  30769. HEAP8[$1>>0] = $6;
  30770. $7 = ((($0)) + 20|0);
  30771. $8 = HEAP32[$7>>2]|0;
  30772. $9 = ((($0)) + 28|0);
  30773. $10 = HEAP32[$9>>2]|0;
  30774. $11 = ($8>>>0)>($10>>>0);
  30775. if ($11) {
  30776. $12 = ((($0)) + 36|0);
  30777. $13 = HEAP32[$12>>2]|0;
  30778. (FUNCTION_TABLE_iiii[$13 & 15]($0,0,0)|0);
  30779. }
  30780. $14 = ((($0)) + 16|0);
  30781. HEAP32[$14>>2] = 0;
  30782. HEAP32[$9>>2] = 0;
  30783. HEAP32[$7>>2] = 0;
  30784. $15 = HEAP32[$0>>2]|0;
  30785. $16 = $15 & 4;
  30786. $17 = ($16|0)==(0);
  30787. if ($17) {
  30788. $19 = ((($0)) + 44|0);
  30789. $20 = HEAP32[$19>>2]|0;
  30790. $21 = ((($0)) + 48|0);
  30791. $22 = HEAP32[$21>>2]|0;
  30792. $23 = (($20) + ($22)|0);
  30793. $24 = ((($0)) + 8|0);
  30794. HEAP32[$24>>2] = $23;
  30795. $25 = ((($0)) + 4|0);
  30796. HEAP32[$25>>2] = $23;
  30797. $26 = $15 << 27;
  30798. $sext = $26 >> 31;
  30799. $$0 = $sext;
  30800. } else {
  30801. $18 = $15 | 32;
  30802. HEAP32[$0>>2] = $18;
  30803. $$0 = -1;
  30804. }
  30805. return ($$0|0);
  30806. }
  30807. function _copysign($0,$1) {
  30808. $0 = +$0;
  30809. $1 = +$1;
  30810. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0.0, label = 0, sp = 0;
  30811. sp = STACKTOP;
  30812. HEAPF64[tempDoublePtr>>3] = $0;$2 = HEAP32[tempDoublePtr>>2]|0;
  30813. $3 = HEAP32[tempDoublePtr+4>>2]|0;
  30814. HEAPF64[tempDoublePtr>>3] = $1;$4 = HEAP32[tempDoublePtr>>2]|0;
  30815. $5 = HEAP32[tempDoublePtr+4>>2]|0;
  30816. $6 = $3 & 2147483647;
  30817. $7 = $5 & -2147483648;
  30818. $8 = $7 | $6;
  30819. HEAP32[tempDoublePtr>>2] = $2;HEAP32[tempDoublePtr+4>>2] = $8;$9 = +HEAPF64[tempDoublePtr>>3];
  30820. return (+$9);
  30821. }
  30822. function _strcmp($0,$1) {
  30823. $0 = $0|0;
  30824. $1 = $1|0;
  30825. 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;
  30826. var sp = 0;
  30827. sp = STACKTOP;
  30828. $2 = HEAP8[$0>>0]|0;
  30829. $3 = HEAP8[$1>>0]|0;
  30830. $4 = ($2<<24>>24)!=($3<<24>>24);
  30831. $5 = ($2<<24>>24)==(0);
  30832. $or$cond9 = $5 | $4;
  30833. if ($or$cond9) {
  30834. $$lcssa = $3;$$lcssa8 = $2;
  30835. } else {
  30836. $$011 = $1;$$0710 = $0;
  30837. while(1) {
  30838. $6 = ((($$0710)) + 1|0);
  30839. $7 = ((($$011)) + 1|0);
  30840. $8 = HEAP8[$6>>0]|0;
  30841. $9 = HEAP8[$7>>0]|0;
  30842. $10 = ($8<<24>>24)!=($9<<24>>24);
  30843. $11 = ($8<<24>>24)==(0);
  30844. $or$cond = $11 | $10;
  30845. if ($or$cond) {
  30846. $$lcssa = $9;$$lcssa8 = $8;
  30847. break;
  30848. } else {
  30849. $$011 = $7;$$0710 = $6;
  30850. }
  30851. }
  30852. }
  30853. $12 = $$lcssa8&255;
  30854. $13 = $$lcssa&255;
  30855. $14 = (($12) - ($13))|0;
  30856. return ($14|0);
  30857. }
  30858. function _memcmp($0,$1,$2) {
  30859. $0 = $0|0;
  30860. $1 = $1|0;
  30861. $2 = $2|0;
  30862. 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;
  30863. sp = STACKTOP;
  30864. $3 = ($2|0)==(0);
  30865. L1: do {
  30866. if ($3) {
  30867. $14 = 0;
  30868. } else {
  30869. $$01318 = $0;$$01417 = $2;$$019 = $1;
  30870. while(1) {
  30871. $4 = HEAP8[$$01318>>0]|0;
  30872. $5 = HEAP8[$$019>>0]|0;
  30873. $6 = ($4<<24>>24)==($5<<24>>24);
  30874. if (!($6)) {
  30875. break;
  30876. }
  30877. $7 = (($$01417) + -1)|0;
  30878. $8 = ((($$01318)) + 1|0);
  30879. $9 = ((($$019)) + 1|0);
  30880. $10 = ($7|0)==(0);
  30881. if ($10) {
  30882. $14 = 0;
  30883. break L1;
  30884. } else {
  30885. $$01318 = $8;$$01417 = $7;$$019 = $9;
  30886. }
  30887. }
  30888. $11 = $4&255;
  30889. $12 = $5&255;
  30890. $13 = (($11) - ($12))|0;
  30891. $14 = $13;
  30892. }
  30893. } while(0);
  30894. return ($14|0);
  30895. }
  30896. function _vsprintf($0,$1,$2) {
  30897. $0 = $0|0;
  30898. $1 = $1|0;
  30899. $2 = $2|0;
  30900. var $3 = 0, label = 0, sp = 0;
  30901. sp = STACKTOP;
  30902. $3 = (_vsnprintf($0,2147483647,$1,$2)|0);
  30903. return ($3|0);
  30904. }
  30905. function _vsnprintf($0,$1,$2,$3) {
  30906. $0 = $0|0;
  30907. $1 = $1|0;
  30908. $2 = $2|0;
  30909. $3 = $3|0;
  30910. 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;
  30911. var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  30912. sp = STACKTOP;
  30913. STACKTOP = STACKTOP + 128|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(128|0);
  30914. $4 = sp + 124|0;
  30915. $5 = sp;
  30916. dest=$5; src=4284; 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));
  30917. $6 = (($1) + -1)|0;
  30918. $7 = ($6>>>0)>(2147483646);
  30919. if ($7) {
  30920. $8 = ($1|0)==(0);
  30921. if ($8) {
  30922. $$014 = $4;$$015 = 1;
  30923. label = 4;
  30924. } else {
  30925. $9 = (___errno_location()|0);
  30926. HEAP32[$9>>2] = 75;
  30927. $$0 = -1;
  30928. }
  30929. } else {
  30930. $$014 = $0;$$015 = $1;
  30931. label = 4;
  30932. }
  30933. if ((label|0) == 4) {
  30934. $10 = $$014;
  30935. $11 = (-2 - ($10))|0;
  30936. $12 = ($$015>>>0)>($11>>>0);
  30937. $$$015 = $12 ? $11 : $$015;
  30938. $13 = ((($5)) + 48|0);
  30939. HEAP32[$13>>2] = $$$015;
  30940. $14 = ((($5)) + 20|0);
  30941. HEAP32[$14>>2] = $$014;
  30942. $15 = ((($5)) + 44|0);
  30943. HEAP32[$15>>2] = $$014;
  30944. $16 = (($$014) + ($$$015)|0);
  30945. $17 = ((($5)) + 16|0);
  30946. HEAP32[$17>>2] = $16;
  30947. $18 = ((($5)) + 28|0);
  30948. HEAP32[$18>>2] = $16;
  30949. $19 = (_vfprintf($5,$2,$3)|0);
  30950. $20 = ($$$015|0)==(0);
  30951. if ($20) {
  30952. $$0 = $19;
  30953. } else {
  30954. $21 = HEAP32[$14>>2]|0;
  30955. $22 = HEAP32[$17>>2]|0;
  30956. $23 = ($21|0)==($22|0);
  30957. $24 = $23 << 31 >> 31;
  30958. $25 = (($21) + ($24)|0);
  30959. HEAP8[$25>>0] = 0;
  30960. $$0 = $19;
  30961. }
  30962. }
  30963. STACKTOP = sp;return ($$0|0);
  30964. }
  30965. function _vfprintf($0,$1,$2) {
  30966. $0 = $0|0;
  30967. $1 = $1|0;
  30968. $2 = $2|0;
  30969. 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;
  30970. 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;
  30971. var $8 = 0, $9 = 0, $vacopy_currentptr = 0, dest = 0, label = 0, sp = 0, stop = 0;
  30972. sp = STACKTOP;
  30973. STACKTOP = STACKTOP + 224|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(224|0);
  30974. $3 = sp + 120|0;
  30975. $4 = sp + 80|0;
  30976. $5 = sp;
  30977. $6 = sp + 136|0;
  30978. dest=$4; stop=dest+40|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  30979. $vacopy_currentptr = HEAP32[$2>>2]|0;
  30980. HEAP32[$3>>2] = $vacopy_currentptr;
  30981. $7 = (_printf_core(0,$1,$3,$5,$4)|0);
  30982. $8 = ($7|0)<(0);
  30983. if ($8) {
  30984. $$0 = -1;
  30985. } else {
  30986. $9 = ((($0)) + 76|0);
  30987. $10 = HEAP32[$9>>2]|0;
  30988. $11 = ($10|0)>(-1);
  30989. if ($11) {
  30990. $12 = (___lockfile($0)|0);
  30991. $40 = $12;
  30992. } else {
  30993. $40 = 0;
  30994. }
  30995. $13 = HEAP32[$0>>2]|0;
  30996. $14 = $13 & 32;
  30997. $15 = ((($0)) + 74|0);
  30998. $16 = HEAP8[$15>>0]|0;
  30999. $17 = ($16<<24>>24)<(1);
  31000. if ($17) {
  31001. $18 = $13 & -33;
  31002. HEAP32[$0>>2] = $18;
  31003. }
  31004. $19 = ((($0)) + 48|0);
  31005. $20 = HEAP32[$19>>2]|0;
  31006. $21 = ($20|0)==(0);
  31007. if ($21) {
  31008. $23 = ((($0)) + 44|0);
  31009. $24 = HEAP32[$23>>2]|0;
  31010. HEAP32[$23>>2] = $6;
  31011. $25 = ((($0)) + 28|0);
  31012. HEAP32[$25>>2] = $6;
  31013. $26 = ((($0)) + 20|0);
  31014. HEAP32[$26>>2] = $6;
  31015. HEAP32[$19>>2] = 80;
  31016. $27 = ((($6)) + 80|0);
  31017. $28 = ((($0)) + 16|0);
  31018. HEAP32[$28>>2] = $27;
  31019. $29 = (_printf_core($0,$1,$3,$5,$4)|0);
  31020. $30 = ($24|0)==(0|0);
  31021. if ($30) {
  31022. $$1 = $29;
  31023. } else {
  31024. $31 = ((($0)) + 36|0);
  31025. $32 = HEAP32[$31>>2]|0;
  31026. (FUNCTION_TABLE_iiii[$32 & 15]($0,0,0)|0);
  31027. $33 = HEAP32[$26>>2]|0;
  31028. $34 = ($33|0)==(0|0);
  31029. $$ = $34 ? -1 : $29;
  31030. HEAP32[$23>>2] = $24;
  31031. HEAP32[$19>>2] = 0;
  31032. HEAP32[$28>>2] = 0;
  31033. HEAP32[$25>>2] = 0;
  31034. HEAP32[$26>>2] = 0;
  31035. $$1 = $$;
  31036. }
  31037. } else {
  31038. $22 = (_printf_core($0,$1,$3,$5,$4)|0);
  31039. $$1 = $22;
  31040. }
  31041. $35 = HEAP32[$0>>2]|0;
  31042. $36 = $35 & 32;
  31043. $37 = ($36|0)==(0);
  31044. $$1$ = $37 ? $$1 : -1;
  31045. $38 = $35 | $14;
  31046. HEAP32[$0>>2] = $38;
  31047. $39 = ($40|0)==(0);
  31048. if (!($39)) {
  31049. ___unlockfile($0);
  31050. }
  31051. $$0 = $$1$;
  31052. }
  31053. STACKTOP = sp;return ($$0|0);
  31054. }
  31055. function _printf_core($0,$1,$2,$3,$4) {
  31056. $0 = $0|0;
  31057. $1 = $1|0;
  31058. $2 = $2|0;
  31059. $3 = $3|0;
  31060. $4 = $4|0;
  31061. 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;
  31062. 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;
  31063. 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;
  31064. 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;
  31065. 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;
  31066. 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;
  31067. 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;
  31068. 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;
  31069. 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;
  31070. 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;
  31071. 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;
  31072. 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;
  31073. 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;
  31074. 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;
  31075. 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;
  31076. 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;
  31077. 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;
  31078. 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;
  31079. 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;
  31080. 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;
  31081. 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;
  31082. 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;
  31083. sp = STACKTOP;
  31084. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  31085. $5 = sp + 16|0;
  31086. $6 = sp;
  31087. $7 = sp + 24|0;
  31088. $8 = sp + 8|0;
  31089. $9 = sp + 20|0;
  31090. HEAP32[$5>>2] = $1;
  31091. $10 = ($0|0)!=(0|0);
  31092. $11 = ((($7)) + 40|0);
  31093. $12 = $11;
  31094. $13 = ((($7)) + 39|0);
  31095. $14 = ((($8)) + 4|0);
  31096. $$0243 = 0;$$0247 = 0;$$0269 = 0;$21 = $1;
  31097. L1: while(1) {
  31098. $15 = ($$0247|0)>(-1);
  31099. do {
  31100. if ($15) {
  31101. $16 = (2147483647 - ($$0247))|0;
  31102. $17 = ($$0243|0)>($16|0);
  31103. if ($17) {
  31104. $18 = (___errno_location()|0);
  31105. HEAP32[$18>>2] = 75;
  31106. $$1248 = -1;
  31107. break;
  31108. } else {
  31109. $19 = (($$0243) + ($$0247))|0;
  31110. $$1248 = $19;
  31111. break;
  31112. }
  31113. } else {
  31114. $$1248 = $$0247;
  31115. }
  31116. } while(0);
  31117. $20 = HEAP8[$21>>0]|0;
  31118. $22 = ($20<<24>>24)==(0);
  31119. if ($22) {
  31120. label = 87;
  31121. break;
  31122. } else {
  31123. $23 = $20;$25 = $21;
  31124. }
  31125. L9: while(1) {
  31126. switch ($23<<24>>24) {
  31127. case 37: {
  31128. $$0249306 = $25;$27 = $25;
  31129. label = 9;
  31130. break L9;
  31131. break;
  31132. }
  31133. case 0: {
  31134. $$0249$lcssa = $25;$39 = $25;
  31135. break L9;
  31136. break;
  31137. }
  31138. default: {
  31139. }
  31140. }
  31141. $24 = ((($25)) + 1|0);
  31142. HEAP32[$5>>2] = $24;
  31143. $$pre = HEAP8[$24>>0]|0;
  31144. $23 = $$pre;$25 = $24;
  31145. }
  31146. L12: do {
  31147. if ((label|0) == 9) {
  31148. while(1) {
  31149. label = 0;
  31150. $26 = ((($27)) + 1|0);
  31151. $28 = HEAP8[$26>>0]|0;
  31152. $29 = ($28<<24>>24)==(37);
  31153. if (!($29)) {
  31154. $$0249$lcssa = $$0249306;$39 = $27;
  31155. break L12;
  31156. }
  31157. $30 = ((($$0249306)) + 1|0);
  31158. $31 = ((($27)) + 2|0);
  31159. HEAP32[$5>>2] = $31;
  31160. $32 = HEAP8[$31>>0]|0;
  31161. $33 = ($32<<24>>24)==(37);
  31162. if ($33) {
  31163. $$0249306 = $30;$27 = $31;
  31164. label = 9;
  31165. } else {
  31166. $$0249$lcssa = $30;$39 = $31;
  31167. break;
  31168. }
  31169. }
  31170. }
  31171. } while(0);
  31172. $34 = $$0249$lcssa;
  31173. $35 = $21;
  31174. $36 = (($34) - ($35))|0;
  31175. if ($10) {
  31176. _out($0,$21,$36);
  31177. }
  31178. $37 = ($36|0)==(0);
  31179. if (!($37)) {
  31180. $$0269$phi = $$0269;$$0243 = $36;$$0247 = $$1248;$21 = $39;$$0269 = $$0269$phi;
  31181. continue;
  31182. }
  31183. $38 = ((($39)) + 1|0);
  31184. $40 = HEAP8[$38>>0]|0;
  31185. $41 = $40 << 24 >> 24;
  31186. $isdigittmp = (($41) + -48)|0;
  31187. $isdigit = ($isdigittmp>>>0)<(10);
  31188. if ($isdigit) {
  31189. $42 = ((($39)) + 2|0);
  31190. $43 = HEAP8[$42>>0]|0;
  31191. $44 = ($43<<24>>24)==(36);
  31192. $45 = ((($39)) + 3|0);
  31193. $$377 = $44 ? $45 : $38;
  31194. $$$0269 = $44 ? 1 : $$0269;
  31195. $isdigittmp$ = $44 ? $isdigittmp : -1;
  31196. $$0253 = $isdigittmp$;$$1270 = $$$0269;$storemerge = $$377;
  31197. } else {
  31198. $$0253 = -1;$$1270 = $$0269;$storemerge = $38;
  31199. }
  31200. HEAP32[$5>>2] = $storemerge;
  31201. $46 = HEAP8[$storemerge>>0]|0;
  31202. $47 = $46 << 24 >> 24;
  31203. $48 = (($47) + -32)|0;
  31204. $49 = ($48>>>0)<(32);
  31205. L24: do {
  31206. if ($49) {
  31207. $$0262311 = 0;$329 = $46;$51 = $48;$storemerge273310 = $storemerge;
  31208. while(1) {
  31209. $50 = 1 << $51;
  31210. $52 = $50 & 75913;
  31211. $53 = ($52|0)==(0);
  31212. if ($53) {
  31213. $$0262$lcssa = $$0262311;$$lcssa295 = $329;$62 = $storemerge273310;
  31214. break L24;
  31215. }
  31216. $54 = $50 | $$0262311;
  31217. $55 = ((($storemerge273310)) + 1|0);
  31218. HEAP32[$5>>2] = $55;
  31219. $56 = HEAP8[$55>>0]|0;
  31220. $57 = $56 << 24 >> 24;
  31221. $58 = (($57) + -32)|0;
  31222. $59 = ($58>>>0)<(32);
  31223. if ($59) {
  31224. $$0262311 = $54;$329 = $56;$51 = $58;$storemerge273310 = $55;
  31225. } else {
  31226. $$0262$lcssa = $54;$$lcssa295 = $56;$62 = $55;
  31227. break;
  31228. }
  31229. }
  31230. } else {
  31231. $$0262$lcssa = 0;$$lcssa295 = $46;$62 = $storemerge;
  31232. }
  31233. } while(0);
  31234. $60 = ($$lcssa295<<24>>24)==(42);
  31235. if ($60) {
  31236. $61 = ((($62)) + 1|0);
  31237. $63 = HEAP8[$61>>0]|0;
  31238. $64 = $63 << 24 >> 24;
  31239. $isdigittmp276 = (($64) + -48)|0;
  31240. $isdigit277 = ($isdigittmp276>>>0)<(10);
  31241. if ($isdigit277) {
  31242. $65 = ((($62)) + 2|0);
  31243. $66 = HEAP8[$65>>0]|0;
  31244. $67 = ($66<<24>>24)==(36);
  31245. if ($67) {
  31246. $68 = (($4) + ($isdigittmp276<<2)|0);
  31247. HEAP32[$68>>2] = 10;
  31248. $69 = HEAP8[$61>>0]|0;
  31249. $70 = $69 << 24 >> 24;
  31250. $71 = (($70) + -48)|0;
  31251. $72 = (($3) + ($71<<3)|0);
  31252. $73 = $72;
  31253. $74 = $73;
  31254. $75 = HEAP32[$74>>2]|0;
  31255. $76 = (($73) + 4)|0;
  31256. $77 = $76;
  31257. $78 = HEAP32[$77>>2]|0;
  31258. $79 = ((($62)) + 3|0);
  31259. $$0259 = $75;$$2271 = 1;$storemerge278 = $79;
  31260. } else {
  31261. label = 23;
  31262. }
  31263. } else {
  31264. label = 23;
  31265. }
  31266. if ((label|0) == 23) {
  31267. label = 0;
  31268. $80 = ($$1270|0)==(0);
  31269. if (!($80)) {
  31270. $$0 = -1;
  31271. break;
  31272. }
  31273. if ($10) {
  31274. $arglist_current = HEAP32[$2>>2]|0;
  31275. $81 = $arglist_current;
  31276. $82 = ((0) + 4|0);
  31277. $expanded4 = $82;
  31278. $expanded = (($expanded4) - 1)|0;
  31279. $83 = (($81) + ($expanded))|0;
  31280. $84 = ((0) + 4|0);
  31281. $expanded8 = $84;
  31282. $expanded7 = (($expanded8) - 1)|0;
  31283. $expanded6 = $expanded7 ^ -1;
  31284. $85 = $83 & $expanded6;
  31285. $86 = $85;
  31286. $87 = HEAP32[$86>>2]|0;
  31287. $arglist_next = ((($86)) + 4|0);
  31288. HEAP32[$2>>2] = $arglist_next;
  31289. $$0259 = $87;$$2271 = 0;$storemerge278 = $61;
  31290. } else {
  31291. $$0259 = 0;$$2271 = 0;$storemerge278 = $61;
  31292. }
  31293. }
  31294. HEAP32[$5>>2] = $storemerge278;
  31295. $88 = ($$0259|0)<(0);
  31296. $89 = $$0262$lcssa | 8192;
  31297. $90 = (0 - ($$0259))|0;
  31298. $$$0262 = $88 ? $89 : $$0262$lcssa;
  31299. $$$0259 = $88 ? $90 : $$0259;
  31300. $$1260 = $$$0259;$$1263 = $$$0262;$$3272 = $$2271;$94 = $storemerge278;
  31301. } else {
  31302. $91 = (_getint($5)|0);
  31303. $92 = ($91|0)<(0);
  31304. if ($92) {
  31305. $$0 = -1;
  31306. break;
  31307. }
  31308. $$pre346 = HEAP32[$5>>2]|0;
  31309. $$1260 = $91;$$1263 = $$0262$lcssa;$$3272 = $$1270;$94 = $$pre346;
  31310. }
  31311. $93 = HEAP8[$94>>0]|0;
  31312. $95 = ($93<<24>>24)==(46);
  31313. do {
  31314. if ($95) {
  31315. $96 = ((($94)) + 1|0);
  31316. $97 = HEAP8[$96>>0]|0;
  31317. $98 = ($97<<24>>24)==(42);
  31318. if (!($98)) {
  31319. $125 = ((($94)) + 1|0);
  31320. HEAP32[$5>>2] = $125;
  31321. $126 = (_getint($5)|0);
  31322. $$pre347$pre = HEAP32[$5>>2]|0;
  31323. $$0254 = $126;$$pre347 = $$pre347$pre;
  31324. break;
  31325. }
  31326. $99 = ((($94)) + 2|0);
  31327. $100 = HEAP8[$99>>0]|0;
  31328. $101 = $100 << 24 >> 24;
  31329. $isdigittmp274 = (($101) + -48)|0;
  31330. $isdigit275 = ($isdigittmp274>>>0)<(10);
  31331. if ($isdigit275) {
  31332. $102 = ((($94)) + 3|0);
  31333. $103 = HEAP8[$102>>0]|0;
  31334. $104 = ($103<<24>>24)==(36);
  31335. if ($104) {
  31336. $105 = (($4) + ($isdigittmp274<<2)|0);
  31337. HEAP32[$105>>2] = 10;
  31338. $106 = HEAP8[$99>>0]|0;
  31339. $107 = $106 << 24 >> 24;
  31340. $108 = (($107) + -48)|0;
  31341. $109 = (($3) + ($108<<3)|0);
  31342. $110 = $109;
  31343. $111 = $110;
  31344. $112 = HEAP32[$111>>2]|0;
  31345. $113 = (($110) + 4)|0;
  31346. $114 = $113;
  31347. $115 = HEAP32[$114>>2]|0;
  31348. $116 = ((($94)) + 4|0);
  31349. HEAP32[$5>>2] = $116;
  31350. $$0254 = $112;$$pre347 = $116;
  31351. break;
  31352. }
  31353. }
  31354. $117 = ($$3272|0)==(0);
  31355. if (!($117)) {
  31356. $$0 = -1;
  31357. break L1;
  31358. }
  31359. if ($10) {
  31360. $arglist_current2 = HEAP32[$2>>2]|0;
  31361. $118 = $arglist_current2;
  31362. $119 = ((0) + 4|0);
  31363. $expanded11 = $119;
  31364. $expanded10 = (($expanded11) - 1)|0;
  31365. $120 = (($118) + ($expanded10))|0;
  31366. $121 = ((0) + 4|0);
  31367. $expanded15 = $121;
  31368. $expanded14 = (($expanded15) - 1)|0;
  31369. $expanded13 = $expanded14 ^ -1;
  31370. $122 = $120 & $expanded13;
  31371. $123 = $122;
  31372. $124 = HEAP32[$123>>2]|0;
  31373. $arglist_next3 = ((($123)) + 4|0);
  31374. HEAP32[$2>>2] = $arglist_next3;
  31375. $330 = $124;
  31376. } else {
  31377. $330 = 0;
  31378. }
  31379. HEAP32[$5>>2] = $99;
  31380. $$0254 = $330;$$pre347 = $99;
  31381. } else {
  31382. $$0254 = -1;$$pre347 = $94;
  31383. }
  31384. } while(0);
  31385. $$0252 = 0;$128 = $$pre347;
  31386. while(1) {
  31387. $127 = HEAP8[$128>>0]|0;
  31388. $129 = $127 << 24 >> 24;
  31389. $130 = (($129) + -65)|0;
  31390. $131 = ($130>>>0)>(57);
  31391. if ($131) {
  31392. $$0 = -1;
  31393. break L1;
  31394. }
  31395. $132 = ((($128)) + 1|0);
  31396. HEAP32[$5>>2] = $132;
  31397. $133 = HEAP8[$128>>0]|0;
  31398. $134 = $133 << 24 >> 24;
  31399. $135 = (($134) + -65)|0;
  31400. $136 = ((16080 + (($$0252*58)|0)|0) + ($135)|0);
  31401. $137 = HEAP8[$136>>0]|0;
  31402. $138 = $137&255;
  31403. $139 = (($138) + -1)|0;
  31404. $140 = ($139>>>0)<(8);
  31405. if ($140) {
  31406. $$0252 = $138;$128 = $132;
  31407. } else {
  31408. break;
  31409. }
  31410. }
  31411. $141 = ($137<<24>>24)==(0);
  31412. if ($141) {
  31413. $$0 = -1;
  31414. break;
  31415. }
  31416. $142 = ($137<<24>>24)==(19);
  31417. $143 = ($$0253|0)>(-1);
  31418. do {
  31419. if ($142) {
  31420. if ($143) {
  31421. $$0 = -1;
  31422. break L1;
  31423. } else {
  31424. label = 49;
  31425. }
  31426. } else {
  31427. if ($143) {
  31428. $144 = (($4) + ($$0253<<2)|0);
  31429. HEAP32[$144>>2] = $138;
  31430. $145 = (($3) + ($$0253<<3)|0);
  31431. $146 = $145;
  31432. $147 = $146;
  31433. $148 = HEAP32[$147>>2]|0;
  31434. $149 = (($146) + 4)|0;
  31435. $150 = $149;
  31436. $151 = HEAP32[$150>>2]|0;
  31437. $152 = $6;
  31438. $153 = $152;
  31439. HEAP32[$153>>2] = $148;
  31440. $154 = (($152) + 4)|0;
  31441. $155 = $154;
  31442. HEAP32[$155>>2] = $151;
  31443. label = 49;
  31444. break;
  31445. }
  31446. if (!($10)) {
  31447. $$0 = 0;
  31448. break L1;
  31449. }
  31450. _pop_arg($6,$138,$2);
  31451. }
  31452. } while(0);
  31453. if ((label|0) == 49) {
  31454. label = 0;
  31455. if (!($10)) {
  31456. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  31457. continue;
  31458. }
  31459. }
  31460. $156 = HEAP8[$128>>0]|0;
  31461. $157 = $156 << 24 >> 24;
  31462. $158 = ($$0252|0)!=(0);
  31463. $159 = $157 & 15;
  31464. $160 = ($159|0)==(3);
  31465. $or$cond281 = $158 & $160;
  31466. $161 = $157 & -33;
  31467. $$0235 = $or$cond281 ? $161 : $157;
  31468. $162 = $$1263 & 8192;
  31469. $163 = ($162|0)==(0);
  31470. $164 = $$1263 & -65537;
  31471. $$1263$ = $163 ? $$1263 : $164;
  31472. L71: do {
  31473. switch ($$0235|0) {
  31474. case 110: {
  31475. $trunc = $$0252&255;
  31476. switch ($trunc<<24>>24) {
  31477. case 0: {
  31478. $171 = HEAP32[$6>>2]|0;
  31479. HEAP32[$171>>2] = $$1248;
  31480. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  31481. continue L1;
  31482. break;
  31483. }
  31484. case 1: {
  31485. $172 = HEAP32[$6>>2]|0;
  31486. HEAP32[$172>>2] = $$1248;
  31487. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  31488. continue L1;
  31489. break;
  31490. }
  31491. case 2: {
  31492. $173 = ($$1248|0)<(0);
  31493. $174 = $173 << 31 >> 31;
  31494. $175 = HEAP32[$6>>2]|0;
  31495. $176 = $175;
  31496. $177 = $176;
  31497. HEAP32[$177>>2] = $$1248;
  31498. $178 = (($176) + 4)|0;
  31499. $179 = $178;
  31500. HEAP32[$179>>2] = $174;
  31501. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  31502. continue L1;
  31503. break;
  31504. }
  31505. case 3: {
  31506. $180 = $$1248&65535;
  31507. $181 = HEAP32[$6>>2]|0;
  31508. HEAP16[$181>>1] = $180;
  31509. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  31510. continue L1;
  31511. break;
  31512. }
  31513. case 4: {
  31514. $182 = $$1248&255;
  31515. $183 = HEAP32[$6>>2]|0;
  31516. HEAP8[$183>>0] = $182;
  31517. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  31518. continue L1;
  31519. break;
  31520. }
  31521. case 6: {
  31522. $184 = HEAP32[$6>>2]|0;
  31523. HEAP32[$184>>2] = $$1248;
  31524. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  31525. continue L1;
  31526. break;
  31527. }
  31528. case 7: {
  31529. $185 = ($$1248|0)<(0);
  31530. $186 = $185 << 31 >> 31;
  31531. $187 = HEAP32[$6>>2]|0;
  31532. $188 = $187;
  31533. $189 = $188;
  31534. HEAP32[$189>>2] = $$1248;
  31535. $190 = (($188) + 4)|0;
  31536. $191 = $190;
  31537. HEAP32[$191>>2] = $186;
  31538. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  31539. continue L1;
  31540. break;
  31541. }
  31542. default: {
  31543. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  31544. continue L1;
  31545. }
  31546. }
  31547. break;
  31548. }
  31549. case 112: {
  31550. $192 = ($$0254>>>0)>(8);
  31551. $193 = $192 ? $$0254 : 8;
  31552. $194 = $$1263$ | 8;
  31553. $$1236 = 120;$$1255 = $193;$$3265 = $194;
  31554. label = 61;
  31555. break;
  31556. }
  31557. case 88: case 120: {
  31558. $$1236 = $$0235;$$1255 = $$0254;$$3265 = $$1263$;
  31559. label = 61;
  31560. break;
  31561. }
  31562. case 111: {
  31563. $210 = $6;
  31564. $211 = $210;
  31565. $212 = HEAP32[$211>>2]|0;
  31566. $213 = (($210) + 4)|0;
  31567. $214 = $213;
  31568. $215 = HEAP32[$214>>2]|0;
  31569. $216 = (_fmt_o($212,$215,$11)|0);
  31570. $217 = $$1263$ & 8;
  31571. $218 = ($217|0)==(0);
  31572. $219 = $216;
  31573. $220 = (($12) - ($219))|0;
  31574. $221 = ($$0254|0)>($220|0);
  31575. $222 = (($220) + 1)|0;
  31576. $223 = $218 | $221;
  31577. $$0254$$0254$ = $223 ? $$0254 : $222;
  31578. $$0228 = $216;$$1233 = 0;$$1238 = 16544;$$2256 = $$0254$$0254$;$$4266 = $$1263$;$248 = $212;$250 = $215;
  31579. label = 67;
  31580. break;
  31581. }
  31582. case 105: case 100: {
  31583. $224 = $6;
  31584. $225 = $224;
  31585. $226 = HEAP32[$225>>2]|0;
  31586. $227 = (($224) + 4)|0;
  31587. $228 = $227;
  31588. $229 = HEAP32[$228>>2]|0;
  31589. $230 = ($229|0)<(0);
  31590. if ($230) {
  31591. $231 = (_i64Subtract(0,0,($226|0),($229|0))|0);
  31592. $232 = tempRet0;
  31593. $233 = $6;
  31594. $234 = $233;
  31595. HEAP32[$234>>2] = $231;
  31596. $235 = (($233) + 4)|0;
  31597. $236 = $235;
  31598. HEAP32[$236>>2] = $232;
  31599. $$0232 = 1;$$0237 = 16544;$242 = $231;$243 = $232;
  31600. label = 66;
  31601. break L71;
  31602. } else {
  31603. $237 = $$1263$ & 2048;
  31604. $238 = ($237|0)==(0);
  31605. $239 = $$1263$ & 1;
  31606. $240 = ($239|0)==(0);
  31607. $$ = $240 ? 16544 : (16546);
  31608. $$$ = $238 ? $$ : (16545);
  31609. $241 = $$1263$ & 2049;
  31610. $narrow = ($241|0)!=(0);
  31611. $$284$ = $narrow&1;
  31612. $$0232 = $$284$;$$0237 = $$$;$242 = $226;$243 = $229;
  31613. label = 66;
  31614. break L71;
  31615. }
  31616. break;
  31617. }
  31618. case 117: {
  31619. $165 = $6;
  31620. $166 = $165;
  31621. $167 = HEAP32[$166>>2]|0;
  31622. $168 = (($165) + 4)|0;
  31623. $169 = $168;
  31624. $170 = HEAP32[$169>>2]|0;
  31625. $$0232 = 0;$$0237 = 16544;$242 = $167;$243 = $170;
  31626. label = 66;
  31627. break;
  31628. }
  31629. case 99: {
  31630. $259 = $6;
  31631. $260 = $259;
  31632. $261 = HEAP32[$260>>2]|0;
  31633. $262 = (($259) + 4)|0;
  31634. $263 = $262;
  31635. $264 = HEAP32[$263>>2]|0;
  31636. $265 = $261&255;
  31637. HEAP8[$13>>0] = $265;
  31638. $$2 = $13;$$2234 = 0;$$2239 = 16544;$$2251 = $11;$$5 = 1;$$6268 = $164;
  31639. break;
  31640. }
  31641. case 109: {
  31642. $266 = (___errno_location()|0);
  31643. $267 = HEAP32[$266>>2]|0;
  31644. $268 = (_strerror($267)|0);
  31645. $$1 = $268;
  31646. label = 71;
  31647. break;
  31648. }
  31649. case 115: {
  31650. $269 = HEAP32[$6>>2]|0;
  31651. $270 = ($269|0)!=(0|0);
  31652. $271 = $270 ? $269 : 16554;
  31653. $$1 = $271;
  31654. label = 71;
  31655. break;
  31656. }
  31657. case 67: {
  31658. $278 = $6;
  31659. $279 = $278;
  31660. $280 = HEAP32[$279>>2]|0;
  31661. $281 = (($278) + 4)|0;
  31662. $282 = $281;
  31663. $283 = HEAP32[$282>>2]|0;
  31664. HEAP32[$8>>2] = $280;
  31665. HEAP32[$14>>2] = 0;
  31666. HEAP32[$6>>2] = $8;
  31667. $$4258355 = -1;$331 = $8;
  31668. label = 75;
  31669. break;
  31670. }
  31671. case 83: {
  31672. $$pre349 = HEAP32[$6>>2]|0;
  31673. $284 = ($$0254|0)==(0);
  31674. if ($284) {
  31675. _pad_674($0,32,$$1260,0,$$1263$);
  31676. $$0240$lcssa357 = 0;
  31677. label = 84;
  31678. } else {
  31679. $$4258355 = $$0254;$331 = $$pre349;
  31680. label = 75;
  31681. }
  31682. break;
  31683. }
  31684. case 65: case 71: case 70: case 69: case 97: case 103: case 102: case 101: {
  31685. $306 = +HEAPF64[$6>>3];
  31686. $307 = (_fmt_fp($0,$306,$$1260,$$0254,$$1263$,$$0235)|0);
  31687. $$0243 = $307;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  31688. continue L1;
  31689. break;
  31690. }
  31691. default: {
  31692. $$2 = $21;$$2234 = 0;$$2239 = 16544;$$2251 = $11;$$5 = $$0254;$$6268 = $$1263$;
  31693. }
  31694. }
  31695. } while(0);
  31696. L95: do {
  31697. if ((label|0) == 61) {
  31698. label = 0;
  31699. $195 = $6;
  31700. $196 = $195;
  31701. $197 = HEAP32[$196>>2]|0;
  31702. $198 = (($195) + 4)|0;
  31703. $199 = $198;
  31704. $200 = HEAP32[$199>>2]|0;
  31705. $201 = $$1236 & 32;
  31706. $202 = (_fmt_x($197,$200,$11,$201)|0);
  31707. $203 = ($197|0)==(0);
  31708. $204 = ($200|0)==(0);
  31709. $205 = $203 & $204;
  31710. $206 = $$3265 & 8;
  31711. $207 = ($206|0)==(0);
  31712. $or$cond283 = $207 | $205;
  31713. $208 = $$1236 >> 4;
  31714. $209 = (16544 + ($208)|0);
  31715. $$289 = $or$cond283 ? 16544 : $209;
  31716. $$290 = $or$cond283 ? 0 : 2;
  31717. $$0228 = $202;$$1233 = $$290;$$1238 = $$289;$$2256 = $$1255;$$4266 = $$3265;$248 = $197;$250 = $200;
  31718. label = 67;
  31719. }
  31720. else if ((label|0) == 66) {
  31721. label = 0;
  31722. $244 = (_fmt_u($242,$243,$11)|0);
  31723. $$0228 = $244;$$1233 = $$0232;$$1238 = $$0237;$$2256 = $$0254;$$4266 = $$1263$;$248 = $242;$250 = $243;
  31724. label = 67;
  31725. }
  31726. else if ((label|0) == 71) {
  31727. label = 0;
  31728. $272 = (_memchr($$1,0,$$0254)|0);
  31729. $273 = ($272|0)==(0|0);
  31730. $274 = $272;
  31731. $275 = $$1;
  31732. $276 = (($274) - ($275))|0;
  31733. $277 = (($$1) + ($$0254)|0);
  31734. $$3257 = $273 ? $$0254 : $276;
  31735. $$1250 = $273 ? $277 : $272;
  31736. $$2 = $$1;$$2234 = 0;$$2239 = 16544;$$2251 = $$1250;$$5 = $$3257;$$6268 = $164;
  31737. }
  31738. else if ((label|0) == 75) {
  31739. label = 0;
  31740. $$0229322 = $331;$$0240321 = 0;$$1244320 = 0;
  31741. while(1) {
  31742. $285 = HEAP32[$$0229322>>2]|0;
  31743. $286 = ($285|0)==(0);
  31744. if ($286) {
  31745. $$0240$lcssa = $$0240321;$$2245 = $$1244320;
  31746. break;
  31747. }
  31748. $287 = (_wctomb($9,$285)|0);
  31749. $288 = ($287|0)<(0);
  31750. $289 = (($$4258355) - ($$0240321))|0;
  31751. $290 = ($287>>>0)>($289>>>0);
  31752. $or$cond286 = $288 | $290;
  31753. if ($or$cond286) {
  31754. $$0240$lcssa = $$0240321;$$2245 = $287;
  31755. break;
  31756. }
  31757. $291 = ((($$0229322)) + 4|0);
  31758. $292 = (($287) + ($$0240321))|0;
  31759. $293 = ($$4258355>>>0)>($292>>>0);
  31760. if ($293) {
  31761. $$0229322 = $291;$$0240321 = $292;$$1244320 = $287;
  31762. } else {
  31763. $$0240$lcssa = $292;$$2245 = $287;
  31764. break;
  31765. }
  31766. }
  31767. $294 = ($$2245|0)<(0);
  31768. if ($294) {
  31769. $$0 = -1;
  31770. break L1;
  31771. }
  31772. _pad_674($0,32,$$1260,$$0240$lcssa,$$1263$);
  31773. $295 = ($$0240$lcssa|0)==(0);
  31774. if ($295) {
  31775. $$0240$lcssa357 = 0;
  31776. label = 84;
  31777. } else {
  31778. $$1230333 = $331;$$1241332 = 0;
  31779. while(1) {
  31780. $296 = HEAP32[$$1230333>>2]|0;
  31781. $297 = ($296|0)==(0);
  31782. if ($297) {
  31783. $$0240$lcssa357 = $$0240$lcssa;
  31784. label = 84;
  31785. break L95;
  31786. }
  31787. $298 = (_wctomb($9,$296)|0);
  31788. $299 = (($298) + ($$1241332))|0;
  31789. $300 = ($299|0)>($$0240$lcssa|0);
  31790. if ($300) {
  31791. $$0240$lcssa357 = $$0240$lcssa;
  31792. label = 84;
  31793. break L95;
  31794. }
  31795. $301 = ((($$1230333)) + 4|0);
  31796. _out($0,$9,$298);
  31797. $302 = ($299>>>0)<($$0240$lcssa>>>0);
  31798. if ($302) {
  31799. $$1230333 = $301;$$1241332 = $299;
  31800. } else {
  31801. $$0240$lcssa357 = $$0240$lcssa;
  31802. label = 84;
  31803. break;
  31804. }
  31805. }
  31806. }
  31807. }
  31808. } while(0);
  31809. if ((label|0) == 67) {
  31810. label = 0;
  31811. $245 = ($$2256|0)>(-1);
  31812. $246 = $$4266 & -65537;
  31813. $$$4266 = $245 ? $246 : $$4266;
  31814. $247 = ($248|0)!=(0);
  31815. $249 = ($250|0)!=(0);
  31816. $251 = $247 | $249;
  31817. $252 = ($$2256|0)!=(0);
  31818. $or$cond = $252 | $251;
  31819. $253 = $$0228;
  31820. $254 = (($12) - ($253))|0;
  31821. $255 = $251 ^ 1;
  31822. $256 = $255&1;
  31823. $257 = (($256) + ($254))|0;
  31824. $258 = ($$2256|0)>($257|0);
  31825. $$2256$ = $258 ? $$2256 : $257;
  31826. $$2256$$$2256 = $or$cond ? $$2256$ : $$2256;
  31827. $$0228$ = $or$cond ? $$0228 : $11;
  31828. $$2 = $$0228$;$$2234 = $$1233;$$2239 = $$1238;$$2251 = $11;$$5 = $$2256$$$2256;$$6268 = $$$4266;
  31829. }
  31830. else if ((label|0) == 84) {
  31831. label = 0;
  31832. $303 = $$1263$ ^ 8192;
  31833. _pad_674($0,32,$$1260,$$0240$lcssa357,$303);
  31834. $304 = ($$1260|0)>($$0240$lcssa357|0);
  31835. $305 = $304 ? $$1260 : $$0240$lcssa357;
  31836. $$0243 = $305;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  31837. continue;
  31838. }
  31839. $308 = $$2251;
  31840. $309 = $$2;
  31841. $310 = (($308) - ($309))|0;
  31842. $311 = ($$5|0)<($310|0);
  31843. $$$5 = $311 ? $310 : $$5;
  31844. $312 = (($$$5) + ($$2234))|0;
  31845. $313 = ($$1260|0)<($312|0);
  31846. $$2261 = $313 ? $312 : $$1260;
  31847. _pad_674($0,32,$$2261,$312,$$6268);
  31848. _out($0,$$2239,$$2234);
  31849. $314 = $$6268 ^ 65536;
  31850. _pad_674($0,48,$$2261,$312,$314);
  31851. _pad_674($0,48,$$$5,$310,0);
  31852. _out($0,$$2,$310);
  31853. $315 = $$6268 ^ 8192;
  31854. _pad_674($0,32,$$2261,$312,$315);
  31855. $$0243 = $$2261;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  31856. }
  31857. L114: do {
  31858. if ((label|0) == 87) {
  31859. $316 = ($0|0)==(0|0);
  31860. if ($316) {
  31861. $317 = ($$0269|0)==(0);
  31862. if ($317) {
  31863. $$0 = 0;
  31864. } else {
  31865. $$2242305 = 1;
  31866. while(1) {
  31867. $318 = (($4) + ($$2242305<<2)|0);
  31868. $319 = HEAP32[$318>>2]|0;
  31869. $320 = ($319|0)==(0);
  31870. if ($320) {
  31871. $$3303 = $$2242305;
  31872. break;
  31873. }
  31874. $321 = (($3) + ($$2242305<<3)|0);
  31875. _pop_arg($321,$319,$2);
  31876. $322 = (($$2242305) + 1)|0;
  31877. $323 = ($322|0)<(10);
  31878. if ($323) {
  31879. $$2242305 = $322;
  31880. } else {
  31881. $$0 = 1;
  31882. break L114;
  31883. }
  31884. }
  31885. while(1) {
  31886. $326 = (($4) + ($$3303<<2)|0);
  31887. $327 = HEAP32[$326>>2]|0;
  31888. $328 = ($327|0)==(0);
  31889. $325 = (($$3303) + 1)|0;
  31890. if (!($328)) {
  31891. $$0 = -1;
  31892. break L114;
  31893. }
  31894. $324 = ($325|0)<(10);
  31895. if ($324) {
  31896. $$3303 = $325;
  31897. } else {
  31898. $$0 = 1;
  31899. break;
  31900. }
  31901. }
  31902. }
  31903. } else {
  31904. $$0 = $$1248;
  31905. }
  31906. }
  31907. } while(0);
  31908. STACKTOP = sp;return ($$0|0);
  31909. }
  31910. function ___lockfile($0) {
  31911. $0 = $0|0;
  31912. var label = 0, sp = 0;
  31913. sp = STACKTOP;
  31914. return 0;
  31915. }
  31916. function ___unlockfile($0) {
  31917. $0 = $0|0;
  31918. var label = 0, sp = 0;
  31919. sp = STACKTOP;
  31920. return;
  31921. }
  31922. function _out($0,$1,$2) {
  31923. $0 = $0|0;
  31924. $1 = $1|0;
  31925. $2 = $2|0;
  31926. var $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  31927. sp = STACKTOP;
  31928. $3 = HEAP32[$0>>2]|0;
  31929. $4 = $3 & 32;
  31930. $5 = ($4|0)==(0);
  31931. if ($5) {
  31932. (___fwritex($1,$2,$0)|0);
  31933. }
  31934. return;
  31935. }
  31936. function _getint($0) {
  31937. $0 = $0|0;
  31938. 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;
  31939. sp = STACKTOP;
  31940. $1 = HEAP32[$0>>2]|0;
  31941. $2 = HEAP8[$1>>0]|0;
  31942. $3 = $2 << 24 >> 24;
  31943. $isdigittmp4 = (($3) + -48)|0;
  31944. $isdigit5 = ($isdigittmp4>>>0)<(10);
  31945. if ($isdigit5) {
  31946. $$06 = 0;$7 = $1;$isdigittmp7 = $isdigittmp4;
  31947. while(1) {
  31948. $4 = ($$06*10)|0;
  31949. $5 = (($isdigittmp7) + ($4))|0;
  31950. $6 = ((($7)) + 1|0);
  31951. HEAP32[$0>>2] = $6;
  31952. $8 = HEAP8[$6>>0]|0;
  31953. $9 = $8 << 24 >> 24;
  31954. $isdigittmp = (($9) + -48)|0;
  31955. $isdigit = ($isdigittmp>>>0)<(10);
  31956. if ($isdigit) {
  31957. $$06 = $5;$7 = $6;$isdigittmp7 = $isdigittmp;
  31958. } else {
  31959. $$0$lcssa = $5;
  31960. break;
  31961. }
  31962. }
  31963. } else {
  31964. $$0$lcssa = 0;
  31965. }
  31966. return ($$0$lcssa|0);
  31967. }
  31968. function _pop_arg($0,$1,$2) {
  31969. $0 = $0|0;
  31970. $1 = $1|0;
  31971. $2 = $2|0;
  31972. 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;
  31973. 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;
  31974. 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;
  31975. 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;
  31976. 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;
  31977. 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;
  31978. 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;
  31979. 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;
  31980. 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;
  31981. var $expanded88 = 0, $expanded90 = 0, $expanded91 = 0, $expanded93 = 0, $expanded94 = 0, $expanded95 = 0, label = 0, sp = 0;
  31982. sp = STACKTOP;
  31983. $3 = ($1>>>0)>(20);
  31984. L1: do {
  31985. if (!($3)) {
  31986. do {
  31987. switch ($1|0) {
  31988. case 9: {
  31989. $arglist_current = HEAP32[$2>>2]|0;
  31990. $4 = $arglist_current;
  31991. $5 = ((0) + 4|0);
  31992. $expanded28 = $5;
  31993. $expanded = (($expanded28) - 1)|0;
  31994. $6 = (($4) + ($expanded))|0;
  31995. $7 = ((0) + 4|0);
  31996. $expanded32 = $7;
  31997. $expanded31 = (($expanded32) - 1)|0;
  31998. $expanded30 = $expanded31 ^ -1;
  31999. $8 = $6 & $expanded30;
  32000. $9 = $8;
  32001. $10 = HEAP32[$9>>2]|0;
  32002. $arglist_next = ((($9)) + 4|0);
  32003. HEAP32[$2>>2] = $arglist_next;
  32004. HEAP32[$0>>2] = $10;
  32005. break L1;
  32006. break;
  32007. }
  32008. case 10: {
  32009. $arglist_current2 = HEAP32[$2>>2]|0;
  32010. $11 = $arglist_current2;
  32011. $12 = ((0) + 4|0);
  32012. $expanded35 = $12;
  32013. $expanded34 = (($expanded35) - 1)|0;
  32014. $13 = (($11) + ($expanded34))|0;
  32015. $14 = ((0) + 4|0);
  32016. $expanded39 = $14;
  32017. $expanded38 = (($expanded39) - 1)|0;
  32018. $expanded37 = $expanded38 ^ -1;
  32019. $15 = $13 & $expanded37;
  32020. $16 = $15;
  32021. $17 = HEAP32[$16>>2]|0;
  32022. $arglist_next3 = ((($16)) + 4|0);
  32023. HEAP32[$2>>2] = $arglist_next3;
  32024. $18 = ($17|0)<(0);
  32025. $19 = $18 << 31 >> 31;
  32026. $20 = $0;
  32027. $21 = $20;
  32028. HEAP32[$21>>2] = $17;
  32029. $22 = (($20) + 4)|0;
  32030. $23 = $22;
  32031. HEAP32[$23>>2] = $19;
  32032. break L1;
  32033. break;
  32034. }
  32035. case 11: {
  32036. $arglist_current5 = HEAP32[$2>>2]|0;
  32037. $24 = $arglist_current5;
  32038. $25 = ((0) + 4|0);
  32039. $expanded42 = $25;
  32040. $expanded41 = (($expanded42) - 1)|0;
  32041. $26 = (($24) + ($expanded41))|0;
  32042. $27 = ((0) + 4|0);
  32043. $expanded46 = $27;
  32044. $expanded45 = (($expanded46) - 1)|0;
  32045. $expanded44 = $expanded45 ^ -1;
  32046. $28 = $26 & $expanded44;
  32047. $29 = $28;
  32048. $30 = HEAP32[$29>>2]|0;
  32049. $arglist_next6 = ((($29)) + 4|0);
  32050. HEAP32[$2>>2] = $arglist_next6;
  32051. $31 = $0;
  32052. $32 = $31;
  32053. HEAP32[$32>>2] = $30;
  32054. $33 = (($31) + 4)|0;
  32055. $34 = $33;
  32056. HEAP32[$34>>2] = 0;
  32057. break L1;
  32058. break;
  32059. }
  32060. case 12: {
  32061. $arglist_current8 = HEAP32[$2>>2]|0;
  32062. $35 = $arglist_current8;
  32063. $36 = ((0) + 8|0);
  32064. $expanded49 = $36;
  32065. $expanded48 = (($expanded49) - 1)|0;
  32066. $37 = (($35) + ($expanded48))|0;
  32067. $38 = ((0) + 8|0);
  32068. $expanded53 = $38;
  32069. $expanded52 = (($expanded53) - 1)|0;
  32070. $expanded51 = $expanded52 ^ -1;
  32071. $39 = $37 & $expanded51;
  32072. $40 = $39;
  32073. $41 = $40;
  32074. $42 = $41;
  32075. $43 = HEAP32[$42>>2]|0;
  32076. $44 = (($41) + 4)|0;
  32077. $45 = $44;
  32078. $46 = HEAP32[$45>>2]|0;
  32079. $arglist_next9 = ((($40)) + 8|0);
  32080. HEAP32[$2>>2] = $arglist_next9;
  32081. $47 = $0;
  32082. $48 = $47;
  32083. HEAP32[$48>>2] = $43;
  32084. $49 = (($47) + 4)|0;
  32085. $50 = $49;
  32086. HEAP32[$50>>2] = $46;
  32087. break L1;
  32088. break;
  32089. }
  32090. case 13: {
  32091. $arglist_current11 = HEAP32[$2>>2]|0;
  32092. $51 = $arglist_current11;
  32093. $52 = ((0) + 4|0);
  32094. $expanded56 = $52;
  32095. $expanded55 = (($expanded56) - 1)|0;
  32096. $53 = (($51) + ($expanded55))|0;
  32097. $54 = ((0) + 4|0);
  32098. $expanded60 = $54;
  32099. $expanded59 = (($expanded60) - 1)|0;
  32100. $expanded58 = $expanded59 ^ -1;
  32101. $55 = $53 & $expanded58;
  32102. $56 = $55;
  32103. $57 = HEAP32[$56>>2]|0;
  32104. $arglist_next12 = ((($56)) + 4|0);
  32105. HEAP32[$2>>2] = $arglist_next12;
  32106. $58 = $57&65535;
  32107. $59 = $58 << 16 >> 16;
  32108. $60 = ($59|0)<(0);
  32109. $61 = $60 << 31 >> 31;
  32110. $62 = $0;
  32111. $63 = $62;
  32112. HEAP32[$63>>2] = $59;
  32113. $64 = (($62) + 4)|0;
  32114. $65 = $64;
  32115. HEAP32[$65>>2] = $61;
  32116. break L1;
  32117. break;
  32118. }
  32119. case 14: {
  32120. $arglist_current14 = HEAP32[$2>>2]|0;
  32121. $66 = $arglist_current14;
  32122. $67 = ((0) + 4|0);
  32123. $expanded63 = $67;
  32124. $expanded62 = (($expanded63) - 1)|0;
  32125. $68 = (($66) + ($expanded62))|0;
  32126. $69 = ((0) + 4|0);
  32127. $expanded67 = $69;
  32128. $expanded66 = (($expanded67) - 1)|0;
  32129. $expanded65 = $expanded66 ^ -1;
  32130. $70 = $68 & $expanded65;
  32131. $71 = $70;
  32132. $72 = HEAP32[$71>>2]|0;
  32133. $arglist_next15 = ((($71)) + 4|0);
  32134. HEAP32[$2>>2] = $arglist_next15;
  32135. $$mask31 = $72 & 65535;
  32136. $73 = $0;
  32137. $74 = $73;
  32138. HEAP32[$74>>2] = $$mask31;
  32139. $75 = (($73) + 4)|0;
  32140. $76 = $75;
  32141. HEAP32[$76>>2] = 0;
  32142. break L1;
  32143. break;
  32144. }
  32145. case 15: {
  32146. $arglist_current17 = HEAP32[$2>>2]|0;
  32147. $77 = $arglist_current17;
  32148. $78 = ((0) + 4|0);
  32149. $expanded70 = $78;
  32150. $expanded69 = (($expanded70) - 1)|0;
  32151. $79 = (($77) + ($expanded69))|0;
  32152. $80 = ((0) + 4|0);
  32153. $expanded74 = $80;
  32154. $expanded73 = (($expanded74) - 1)|0;
  32155. $expanded72 = $expanded73 ^ -1;
  32156. $81 = $79 & $expanded72;
  32157. $82 = $81;
  32158. $83 = HEAP32[$82>>2]|0;
  32159. $arglist_next18 = ((($82)) + 4|0);
  32160. HEAP32[$2>>2] = $arglist_next18;
  32161. $84 = $83&255;
  32162. $85 = $84 << 24 >> 24;
  32163. $86 = ($85|0)<(0);
  32164. $87 = $86 << 31 >> 31;
  32165. $88 = $0;
  32166. $89 = $88;
  32167. HEAP32[$89>>2] = $85;
  32168. $90 = (($88) + 4)|0;
  32169. $91 = $90;
  32170. HEAP32[$91>>2] = $87;
  32171. break L1;
  32172. break;
  32173. }
  32174. case 16: {
  32175. $arglist_current20 = HEAP32[$2>>2]|0;
  32176. $92 = $arglist_current20;
  32177. $93 = ((0) + 4|0);
  32178. $expanded77 = $93;
  32179. $expanded76 = (($expanded77) - 1)|0;
  32180. $94 = (($92) + ($expanded76))|0;
  32181. $95 = ((0) + 4|0);
  32182. $expanded81 = $95;
  32183. $expanded80 = (($expanded81) - 1)|0;
  32184. $expanded79 = $expanded80 ^ -1;
  32185. $96 = $94 & $expanded79;
  32186. $97 = $96;
  32187. $98 = HEAP32[$97>>2]|0;
  32188. $arglist_next21 = ((($97)) + 4|0);
  32189. HEAP32[$2>>2] = $arglist_next21;
  32190. $$mask = $98 & 255;
  32191. $99 = $0;
  32192. $100 = $99;
  32193. HEAP32[$100>>2] = $$mask;
  32194. $101 = (($99) + 4)|0;
  32195. $102 = $101;
  32196. HEAP32[$102>>2] = 0;
  32197. break L1;
  32198. break;
  32199. }
  32200. case 17: {
  32201. $arglist_current23 = HEAP32[$2>>2]|0;
  32202. $103 = $arglist_current23;
  32203. $104 = ((0) + 8|0);
  32204. $expanded84 = $104;
  32205. $expanded83 = (($expanded84) - 1)|0;
  32206. $105 = (($103) + ($expanded83))|0;
  32207. $106 = ((0) + 8|0);
  32208. $expanded88 = $106;
  32209. $expanded87 = (($expanded88) - 1)|0;
  32210. $expanded86 = $expanded87 ^ -1;
  32211. $107 = $105 & $expanded86;
  32212. $108 = $107;
  32213. $109 = +HEAPF64[$108>>3];
  32214. $arglist_next24 = ((($108)) + 8|0);
  32215. HEAP32[$2>>2] = $arglist_next24;
  32216. HEAPF64[$0>>3] = $109;
  32217. break L1;
  32218. break;
  32219. }
  32220. case 18: {
  32221. $arglist_current26 = HEAP32[$2>>2]|0;
  32222. $110 = $arglist_current26;
  32223. $111 = ((0) + 8|0);
  32224. $expanded91 = $111;
  32225. $expanded90 = (($expanded91) - 1)|0;
  32226. $112 = (($110) + ($expanded90))|0;
  32227. $113 = ((0) + 8|0);
  32228. $expanded95 = $113;
  32229. $expanded94 = (($expanded95) - 1)|0;
  32230. $expanded93 = $expanded94 ^ -1;
  32231. $114 = $112 & $expanded93;
  32232. $115 = $114;
  32233. $116 = +HEAPF64[$115>>3];
  32234. $arglist_next27 = ((($115)) + 8|0);
  32235. HEAP32[$2>>2] = $arglist_next27;
  32236. HEAPF64[$0>>3] = $116;
  32237. break L1;
  32238. break;
  32239. }
  32240. default: {
  32241. break L1;
  32242. }
  32243. }
  32244. } while(0);
  32245. }
  32246. } while(0);
  32247. return;
  32248. }
  32249. function _fmt_x($0,$1,$2,$3) {
  32250. $0 = $0|0;
  32251. $1 = $1|0;
  32252. $2 = $2|0;
  32253. $3 = $3|0;
  32254. 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;
  32255. var sp = 0;
  32256. sp = STACKTOP;
  32257. $4 = ($0|0)==(0);
  32258. $5 = ($1|0)==(0);
  32259. $6 = $4 & $5;
  32260. if ($6) {
  32261. $$05$lcssa = $2;
  32262. } else {
  32263. $$056 = $2;$15 = $1;$8 = $0;
  32264. while(1) {
  32265. $7 = $8 & 15;
  32266. $9 = (16592 + ($7)|0);
  32267. $10 = HEAP8[$9>>0]|0;
  32268. $11 = $10&255;
  32269. $12 = $11 | $3;
  32270. $13 = $12&255;
  32271. $14 = ((($$056)) + -1|0);
  32272. HEAP8[$14>>0] = $13;
  32273. $16 = (_bitshift64Lshr(($8|0),($15|0),4)|0);
  32274. $17 = tempRet0;
  32275. $18 = ($16|0)==(0);
  32276. $19 = ($17|0)==(0);
  32277. $20 = $18 & $19;
  32278. if ($20) {
  32279. $$05$lcssa = $14;
  32280. break;
  32281. } else {
  32282. $$056 = $14;$15 = $17;$8 = $16;
  32283. }
  32284. }
  32285. }
  32286. return ($$05$lcssa|0);
  32287. }
  32288. function _fmt_o($0,$1,$2) {
  32289. $0 = $0|0;
  32290. $1 = $1|0;
  32291. $2 = $2|0;
  32292. 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;
  32293. sp = STACKTOP;
  32294. $3 = ($0|0)==(0);
  32295. $4 = ($1|0)==(0);
  32296. $5 = $3 & $4;
  32297. if ($5) {
  32298. $$0$lcssa = $2;
  32299. } else {
  32300. $$06 = $2;$11 = $1;$7 = $0;
  32301. while(1) {
  32302. $6 = $7&255;
  32303. $8 = $6 & 7;
  32304. $9 = $8 | 48;
  32305. $10 = ((($$06)) + -1|0);
  32306. HEAP8[$10>>0] = $9;
  32307. $12 = (_bitshift64Lshr(($7|0),($11|0),3)|0);
  32308. $13 = tempRet0;
  32309. $14 = ($12|0)==(0);
  32310. $15 = ($13|0)==(0);
  32311. $16 = $14 & $15;
  32312. if ($16) {
  32313. $$0$lcssa = $10;
  32314. break;
  32315. } else {
  32316. $$06 = $10;$11 = $13;$7 = $12;
  32317. }
  32318. }
  32319. }
  32320. return ($$0$lcssa|0);
  32321. }
  32322. function _fmt_u($0,$1,$2) {
  32323. $0 = $0|0;
  32324. $1 = $1|0;
  32325. $2 = $2|0;
  32326. 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;
  32327. 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;
  32328. sp = STACKTOP;
  32329. $3 = ($1>>>0)>(0);
  32330. $4 = ($0>>>0)>(4294967295);
  32331. $5 = ($1|0)==(0);
  32332. $6 = $5 & $4;
  32333. $7 = $3 | $6;
  32334. if ($7) {
  32335. $$0914 = $2;$8 = $0;$9 = $1;
  32336. while(1) {
  32337. $10 = (___uremdi3(($8|0),($9|0),10,0)|0);
  32338. $11 = tempRet0;
  32339. $12 = $10&255;
  32340. $13 = $12 | 48;
  32341. $14 = ((($$0914)) + -1|0);
  32342. HEAP8[$14>>0] = $13;
  32343. $15 = (___udivdi3(($8|0),($9|0),10,0)|0);
  32344. $16 = tempRet0;
  32345. $17 = ($9>>>0)>(9);
  32346. $18 = ($8>>>0)>(4294967295);
  32347. $19 = ($9|0)==(9);
  32348. $20 = $19 & $18;
  32349. $21 = $17 | $20;
  32350. if ($21) {
  32351. $$0914 = $14;$8 = $15;$9 = $16;
  32352. } else {
  32353. break;
  32354. }
  32355. }
  32356. $$010$lcssa$off0 = $15;$$09$lcssa = $14;
  32357. } else {
  32358. $$010$lcssa$off0 = $0;$$09$lcssa = $2;
  32359. }
  32360. $22 = ($$010$lcssa$off0|0)==(0);
  32361. if ($22) {
  32362. $$1$lcssa = $$09$lcssa;
  32363. } else {
  32364. $$012 = $$010$lcssa$off0;$$111 = $$09$lcssa;
  32365. while(1) {
  32366. $23 = (($$012>>>0) % 10)&-1;
  32367. $24 = $23 | 48;
  32368. $25 = $24&255;
  32369. $26 = ((($$111)) + -1|0);
  32370. HEAP8[$26>>0] = $25;
  32371. $27 = (($$012>>>0) / 10)&-1;
  32372. $28 = ($$012>>>0)<(10);
  32373. if ($28) {
  32374. $$1$lcssa = $26;
  32375. break;
  32376. } else {
  32377. $$012 = $27;$$111 = $26;
  32378. }
  32379. }
  32380. }
  32381. return ($$1$lcssa|0);
  32382. }
  32383. function _strerror($0) {
  32384. $0 = $0|0;
  32385. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, label = 0, sp = 0;
  32386. sp = STACKTOP;
  32387. $1 = (___pthread_self_105()|0);
  32388. $2 = ((($1)) + 188|0);
  32389. $3 = HEAP32[$2>>2]|0;
  32390. $4 = (___strerror_l($0,$3)|0);
  32391. return ($4|0);
  32392. }
  32393. function _memchr($0,$1,$2) {
  32394. $0 = $0|0;
  32395. $1 = $1|0;
  32396. $2 = $2|0;
  32397. 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;
  32398. 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;
  32399. 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;
  32400. sp = STACKTOP;
  32401. $3 = $1 & 255;
  32402. $4 = $0;
  32403. $5 = $4 & 3;
  32404. $6 = ($5|0)!=(0);
  32405. $7 = ($2|0)!=(0);
  32406. $or$cond53 = $7 & $6;
  32407. L1: do {
  32408. if ($or$cond53) {
  32409. $8 = $1&255;
  32410. $$03555 = $0;$$03654 = $2;
  32411. while(1) {
  32412. $9 = HEAP8[$$03555>>0]|0;
  32413. $10 = ($9<<24>>24)==($8<<24>>24);
  32414. if ($10) {
  32415. $$035$lcssa65 = $$03555;$$036$lcssa64 = $$03654;
  32416. label = 6;
  32417. break L1;
  32418. }
  32419. $11 = ((($$03555)) + 1|0);
  32420. $12 = (($$03654) + -1)|0;
  32421. $13 = $11;
  32422. $14 = $13 & 3;
  32423. $15 = ($14|0)!=(0);
  32424. $16 = ($12|0)!=(0);
  32425. $or$cond = $16 & $15;
  32426. if ($or$cond) {
  32427. $$03555 = $11;$$03654 = $12;
  32428. } else {
  32429. $$035$lcssa = $11;$$036$lcssa = $12;$$lcssa = $16;
  32430. label = 5;
  32431. break;
  32432. }
  32433. }
  32434. } else {
  32435. $$035$lcssa = $0;$$036$lcssa = $2;$$lcssa = $7;
  32436. label = 5;
  32437. }
  32438. } while(0);
  32439. if ((label|0) == 5) {
  32440. if ($$lcssa) {
  32441. $$035$lcssa65 = $$035$lcssa;$$036$lcssa64 = $$036$lcssa;
  32442. label = 6;
  32443. } else {
  32444. $$2 = $$035$lcssa;$$3 = 0;
  32445. }
  32446. }
  32447. L8: do {
  32448. if ((label|0) == 6) {
  32449. $17 = HEAP8[$$035$lcssa65>>0]|0;
  32450. $18 = $1&255;
  32451. $19 = ($17<<24>>24)==($18<<24>>24);
  32452. if ($19) {
  32453. $$2 = $$035$lcssa65;$$3 = $$036$lcssa64;
  32454. } else {
  32455. $20 = Math_imul($3, 16843009)|0;
  32456. $21 = ($$036$lcssa64>>>0)>(3);
  32457. L11: do {
  32458. if ($21) {
  32459. $$046 = $$035$lcssa65;$$13745 = $$036$lcssa64;
  32460. while(1) {
  32461. $22 = HEAP32[$$046>>2]|0;
  32462. $23 = $22 ^ $20;
  32463. $24 = (($23) + -16843009)|0;
  32464. $25 = $23 & -2139062144;
  32465. $26 = $25 ^ -2139062144;
  32466. $27 = $26 & $24;
  32467. $28 = ($27|0)==(0);
  32468. if (!($28)) {
  32469. break;
  32470. }
  32471. $29 = ((($$046)) + 4|0);
  32472. $30 = (($$13745) + -4)|0;
  32473. $31 = ($30>>>0)>(3);
  32474. if ($31) {
  32475. $$046 = $29;$$13745 = $30;
  32476. } else {
  32477. $$0$lcssa = $29;$$137$lcssa = $30;
  32478. label = 11;
  32479. break L11;
  32480. }
  32481. }
  32482. $$140 = $$046;$$23839 = $$13745;
  32483. } else {
  32484. $$0$lcssa = $$035$lcssa65;$$137$lcssa = $$036$lcssa64;
  32485. label = 11;
  32486. }
  32487. } while(0);
  32488. if ((label|0) == 11) {
  32489. $32 = ($$137$lcssa|0)==(0);
  32490. if ($32) {
  32491. $$2 = $$0$lcssa;$$3 = 0;
  32492. break;
  32493. } else {
  32494. $$140 = $$0$lcssa;$$23839 = $$137$lcssa;
  32495. }
  32496. }
  32497. while(1) {
  32498. $33 = HEAP8[$$140>>0]|0;
  32499. $34 = ($33<<24>>24)==($18<<24>>24);
  32500. if ($34) {
  32501. $$2 = $$140;$$3 = $$23839;
  32502. break L8;
  32503. }
  32504. $35 = ((($$140)) + 1|0);
  32505. $36 = (($$23839) + -1)|0;
  32506. $37 = ($36|0)==(0);
  32507. if ($37) {
  32508. $$2 = $35;$$3 = 0;
  32509. break;
  32510. } else {
  32511. $$140 = $35;$$23839 = $36;
  32512. }
  32513. }
  32514. }
  32515. }
  32516. } while(0);
  32517. $38 = ($$3|0)!=(0);
  32518. $39 = $38 ? $$2 : 0;
  32519. return ($39|0);
  32520. }
  32521. function _pad_674($0,$1,$2,$3,$4) {
  32522. $0 = $0|0;
  32523. $1 = $1|0;
  32524. $2 = $2|0;
  32525. $3 = $3|0;
  32526. $4 = $4|0;
  32527. 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;
  32528. sp = STACKTOP;
  32529. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  32530. $5 = sp;
  32531. $6 = $4 & 73728;
  32532. $7 = ($6|0)==(0);
  32533. $8 = ($2|0)>($3|0);
  32534. $or$cond = $8 & $7;
  32535. if ($or$cond) {
  32536. $9 = (($2) - ($3))|0;
  32537. $10 = ($9>>>0)<(256);
  32538. $11 = $10 ? $9 : 256;
  32539. _memset(($5|0),($1|0),($11|0))|0;
  32540. $12 = ($9>>>0)>(255);
  32541. if ($12) {
  32542. $13 = (($2) - ($3))|0;
  32543. $$011 = $9;
  32544. while(1) {
  32545. _out($0,$5,256);
  32546. $14 = (($$011) + -256)|0;
  32547. $15 = ($14>>>0)>(255);
  32548. if ($15) {
  32549. $$011 = $14;
  32550. } else {
  32551. break;
  32552. }
  32553. }
  32554. $16 = $13 & 255;
  32555. $$0$lcssa = $16;
  32556. } else {
  32557. $$0$lcssa = $9;
  32558. }
  32559. _out($0,$5,$$0$lcssa);
  32560. }
  32561. STACKTOP = sp;return;
  32562. }
  32563. function _wctomb($0,$1) {
  32564. $0 = $0|0;
  32565. $1 = $1|0;
  32566. var $$0 = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  32567. sp = STACKTOP;
  32568. $2 = ($0|0)==(0|0);
  32569. if ($2) {
  32570. $$0 = 0;
  32571. } else {
  32572. $3 = (_wcrtomb($0,$1,0)|0);
  32573. $$0 = $3;
  32574. }
  32575. return ($$0|0);
  32576. }
  32577. function _fmt_fp($0,$1,$2,$3,$4,$5) {
  32578. $0 = $0|0;
  32579. $1 = +$1;
  32580. $2 = $2|0;
  32581. $3 = $3|0;
  32582. $4 = $4|0;
  32583. $5 = $5|0;
  32584. 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;
  32585. 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;
  32586. 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;
  32587. 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;
  32588. 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;
  32589. 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;
  32590. 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;
  32591. 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;
  32592. 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;
  32593. 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;
  32594. 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;
  32595. 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;
  32596. 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;
  32597. 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;
  32598. 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;
  32599. 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;
  32600. 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;
  32601. 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;
  32602. 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;
  32603. 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;
  32604. 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;
  32605. 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;
  32606. 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;
  32607. 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;
  32608. 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;
  32609. 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;
  32610. sp = STACKTOP;
  32611. STACKTOP = STACKTOP + 560|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(560|0);
  32612. $6 = sp + 8|0;
  32613. $7 = sp;
  32614. $8 = sp + 524|0;
  32615. $9 = $8;
  32616. $10 = sp + 512|0;
  32617. HEAP32[$7>>2] = 0;
  32618. $11 = ((($10)) + 12|0);
  32619. (___DOUBLE_BITS_675($1)|0);
  32620. $12 = tempRet0;
  32621. $13 = ($12|0)<(0);
  32622. if ($13) {
  32623. $14 = -$1;
  32624. $$0471 = $14;$$0520 = 1;$$0521 = 16561;
  32625. } else {
  32626. $15 = $4 & 2048;
  32627. $16 = ($15|0)==(0);
  32628. $17 = $4 & 1;
  32629. $18 = ($17|0)==(0);
  32630. $$ = $18 ? (16562) : (16567);
  32631. $$$ = $16 ? $$ : (16564);
  32632. $19 = $4 & 2049;
  32633. $narrow = ($19|0)!=(0);
  32634. $$534$ = $narrow&1;
  32635. $$0471 = $1;$$0520 = $$534$;$$0521 = $$$;
  32636. }
  32637. (___DOUBLE_BITS_675($$0471)|0);
  32638. $20 = tempRet0;
  32639. $21 = $20 & 2146435072;
  32640. $22 = ($21>>>0)<(2146435072);
  32641. $23 = (0)<(0);
  32642. $24 = ($21|0)==(2146435072);
  32643. $25 = $24 & $23;
  32644. $26 = $22 | $25;
  32645. do {
  32646. if ($26) {
  32647. $35 = (+_frexpl($$0471,$7));
  32648. $36 = $35 * 2.0;
  32649. $37 = $36 != 0.0;
  32650. if ($37) {
  32651. $38 = HEAP32[$7>>2]|0;
  32652. $39 = (($38) + -1)|0;
  32653. HEAP32[$7>>2] = $39;
  32654. }
  32655. $40 = $5 | 32;
  32656. $41 = ($40|0)==(97);
  32657. if ($41) {
  32658. $42 = $5 & 32;
  32659. $43 = ($42|0)==(0);
  32660. $44 = ((($$0521)) + 9|0);
  32661. $$0521$ = $43 ? $$0521 : $44;
  32662. $45 = $$0520 | 2;
  32663. $46 = ($3>>>0)>(11);
  32664. $47 = (12 - ($3))|0;
  32665. $48 = ($47|0)==(0);
  32666. $49 = $46 | $48;
  32667. do {
  32668. if ($49) {
  32669. $$1472 = $36;
  32670. } else {
  32671. $$0509582 = 8.0;$$1508583 = $47;
  32672. while(1) {
  32673. $50 = (($$1508583) + -1)|0;
  32674. $51 = $$0509582 * 16.0;
  32675. $52 = ($50|0)==(0);
  32676. if ($52) {
  32677. break;
  32678. } else {
  32679. $$0509582 = $51;$$1508583 = $50;
  32680. }
  32681. }
  32682. $53 = HEAP8[$$0521$>>0]|0;
  32683. $54 = ($53<<24>>24)==(45);
  32684. if ($54) {
  32685. $55 = -$36;
  32686. $56 = $55 - $51;
  32687. $57 = $51 + $56;
  32688. $58 = -$57;
  32689. $$1472 = $58;
  32690. break;
  32691. } else {
  32692. $59 = $36 + $51;
  32693. $60 = $59 - $51;
  32694. $$1472 = $60;
  32695. break;
  32696. }
  32697. }
  32698. } while(0);
  32699. $61 = HEAP32[$7>>2]|0;
  32700. $62 = ($61|0)<(0);
  32701. $63 = (0 - ($61))|0;
  32702. $64 = $62 ? $63 : $61;
  32703. $65 = ($64|0)<(0);
  32704. $66 = $65 << 31 >> 31;
  32705. $67 = (_fmt_u($64,$66,$11)|0);
  32706. $68 = ($67|0)==($11|0);
  32707. if ($68) {
  32708. $69 = ((($10)) + 11|0);
  32709. HEAP8[$69>>0] = 48;
  32710. $$0511 = $69;
  32711. } else {
  32712. $$0511 = $67;
  32713. }
  32714. $70 = $61 >> 31;
  32715. $71 = $70 & 2;
  32716. $72 = (($71) + 43)|0;
  32717. $73 = $72&255;
  32718. $74 = ((($$0511)) + -1|0);
  32719. HEAP8[$74>>0] = $73;
  32720. $75 = (($5) + 15)|0;
  32721. $76 = $75&255;
  32722. $77 = ((($$0511)) + -2|0);
  32723. HEAP8[$77>>0] = $76;
  32724. $notrhs = ($3|0)<(1);
  32725. $78 = $4 & 8;
  32726. $79 = ($78|0)==(0);
  32727. $$0523 = $8;$$2473 = $$1472;
  32728. while(1) {
  32729. $80 = (~~(($$2473)));
  32730. $81 = (16592 + ($80)|0);
  32731. $82 = HEAP8[$81>>0]|0;
  32732. $83 = $82&255;
  32733. $84 = $83 | $42;
  32734. $85 = $84&255;
  32735. $86 = ((($$0523)) + 1|0);
  32736. HEAP8[$$0523>>0] = $85;
  32737. $87 = (+($80|0));
  32738. $88 = $$2473 - $87;
  32739. $89 = $88 * 16.0;
  32740. $90 = $86;
  32741. $91 = (($90) - ($9))|0;
  32742. $92 = ($91|0)==(1);
  32743. if ($92) {
  32744. $notlhs = $89 == 0.0;
  32745. $or$cond3$not = $notrhs & $notlhs;
  32746. $or$cond = $79 & $or$cond3$not;
  32747. if ($or$cond) {
  32748. $$1524 = $86;
  32749. } else {
  32750. $93 = ((($$0523)) + 2|0);
  32751. HEAP8[$86>>0] = 46;
  32752. $$1524 = $93;
  32753. }
  32754. } else {
  32755. $$1524 = $86;
  32756. }
  32757. $94 = $89 != 0.0;
  32758. if ($94) {
  32759. $$0523 = $$1524;$$2473 = $89;
  32760. } else {
  32761. break;
  32762. }
  32763. }
  32764. $95 = ($3|0)!=(0);
  32765. $96 = $77;
  32766. $97 = $11;
  32767. $98 = $$1524;
  32768. $99 = (($98) - ($9))|0;
  32769. $100 = (($97) - ($96))|0;
  32770. $101 = (($99) + -2)|0;
  32771. $102 = ($101|0)<($3|0);
  32772. $or$cond537 = $95 & $102;
  32773. $103 = (($3) + 2)|0;
  32774. $$pn = $or$cond537 ? $103 : $99;
  32775. $$0525 = (($100) + ($45))|0;
  32776. $104 = (($$0525) + ($$pn))|0;
  32777. _pad_674($0,32,$2,$104,$4);
  32778. _out($0,$$0521$,$45);
  32779. $105 = $4 ^ 65536;
  32780. _pad_674($0,48,$2,$104,$105);
  32781. _out($0,$8,$99);
  32782. $106 = (($$pn) - ($99))|0;
  32783. _pad_674($0,48,$106,0,0);
  32784. _out($0,$77,$100);
  32785. $107 = $4 ^ 8192;
  32786. _pad_674($0,32,$2,$104,$107);
  32787. $$sink562 = $104;
  32788. break;
  32789. }
  32790. $108 = ($3|0)<(0);
  32791. $$539 = $108 ? 6 : $3;
  32792. if ($37) {
  32793. $109 = $36 * 268435456.0;
  32794. $110 = HEAP32[$7>>2]|0;
  32795. $111 = (($110) + -28)|0;
  32796. HEAP32[$7>>2] = $111;
  32797. $$3 = $109;$$pr = $111;
  32798. } else {
  32799. $$pre = HEAP32[$7>>2]|0;
  32800. $$3 = $36;$$pr = $$pre;
  32801. }
  32802. $112 = ($$pr|0)<(0);
  32803. $113 = ((($6)) + 288|0);
  32804. $$556 = $112 ? $6 : $113;
  32805. $$0498 = $$556;$$4 = $$3;
  32806. while(1) {
  32807. $114 = (~~(($$4))>>>0);
  32808. HEAP32[$$0498>>2] = $114;
  32809. $115 = ((($$0498)) + 4|0);
  32810. $116 = (+($114>>>0));
  32811. $117 = $$4 - $116;
  32812. $118 = $117 * 1.0E+9;
  32813. $119 = $118 != 0.0;
  32814. if ($119) {
  32815. $$0498 = $115;$$4 = $118;
  32816. } else {
  32817. break;
  32818. }
  32819. }
  32820. $120 = ($$pr|0)>(0);
  32821. if ($120) {
  32822. $$1482661 = $$556;$$1499660 = $115;$122 = $$pr;
  32823. while(1) {
  32824. $121 = ($122|0)<(29);
  32825. $123 = $121 ? $122 : 29;
  32826. $$0488653 = ((($$1499660)) + -4|0);
  32827. $124 = ($$0488653>>>0)<($$1482661>>>0);
  32828. if ($124) {
  32829. $$2483$ph = $$1482661;
  32830. } else {
  32831. $$0488655 = $$0488653;$$0497654 = 0;
  32832. while(1) {
  32833. $125 = HEAP32[$$0488655>>2]|0;
  32834. $126 = (_bitshift64Shl(($125|0),0,($123|0))|0);
  32835. $127 = tempRet0;
  32836. $128 = (_i64Add(($126|0),($127|0),($$0497654|0),0)|0);
  32837. $129 = tempRet0;
  32838. $130 = (___uremdi3(($128|0),($129|0),1000000000,0)|0);
  32839. $131 = tempRet0;
  32840. HEAP32[$$0488655>>2] = $130;
  32841. $132 = (___udivdi3(($128|0),($129|0),1000000000,0)|0);
  32842. $133 = tempRet0;
  32843. $$0488 = ((($$0488655)) + -4|0);
  32844. $134 = ($$0488>>>0)<($$1482661>>>0);
  32845. if ($134) {
  32846. break;
  32847. } else {
  32848. $$0488655 = $$0488;$$0497654 = $132;
  32849. }
  32850. }
  32851. $135 = ($132|0)==(0);
  32852. if ($135) {
  32853. $$2483$ph = $$1482661;
  32854. } else {
  32855. $136 = ((($$1482661)) + -4|0);
  32856. HEAP32[$136>>2] = $132;
  32857. $$2483$ph = $136;
  32858. }
  32859. }
  32860. $$2500 = $$1499660;
  32861. while(1) {
  32862. $137 = ($$2500>>>0)>($$2483$ph>>>0);
  32863. if (!($137)) {
  32864. break;
  32865. }
  32866. $138 = ((($$2500)) + -4|0);
  32867. $139 = HEAP32[$138>>2]|0;
  32868. $140 = ($139|0)==(0);
  32869. if ($140) {
  32870. $$2500 = $138;
  32871. } else {
  32872. break;
  32873. }
  32874. }
  32875. $141 = HEAP32[$7>>2]|0;
  32876. $142 = (($141) - ($123))|0;
  32877. HEAP32[$7>>2] = $142;
  32878. $143 = ($142|0)>(0);
  32879. if ($143) {
  32880. $$1482661 = $$2483$ph;$$1499660 = $$2500;$122 = $142;
  32881. } else {
  32882. $$1482$lcssa = $$2483$ph;$$1499$lcssa = $$2500;$$pr564 = $142;
  32883. break;
  32884. }
  32885. }
  32886. } else {
  32887. $$1482$lcssa = $$556;$$1499$lcssa = $115;$$pr564 = $$pr;
  32888. }
  32889. $144 = ($$pr564|0)<(0);
  32890. if ($144) {
  32891. $145 = (($$539) + 25)|0;
  32892. $146 = (($145|0) / 9)&-1;
  32893. $147 = (($146) + 1)|0;
  32894. $148 = ($40|0)==(102);
  32895. $$3484648 = $$1482$lcssa;$$3501647 = $$1499$lcssa;$150 = $$pr564;
  32896. while(1) {
  32897. $149 = (0 - ($150))|0;
  32898. $151 = ($149|0)<(9);
  32899. $152 = $151 ? $149 : 9;
  32900. $153 = ($$3484648>>>0)<($$3501647>>>0);
  32901. if ($153) {
  32902. $157 = 1 << $152;
  32903. $158 = (($157) + -1)|0;
  32904. $159 = 1000000000 >>> $152;
  32905. $$0487642 = 0;$$1489641 = $$3484648;
  32906. while(1) {
  32907. $160 = HEAP32[$$1489641>>2]|0;
  32908. $161 = $160 & $158;
  32909. $162 = $160 >>> $152;
  32910. $163 = (($162) + ($$0487642))|0;
  32911. HEAP32[$$1489641>>2] = $163;
  32912. $164 = Math_imul($161, $159)|0;
  32913. $165 = ((($$1489641)) + 4|0);
  32914. $166 = ($165>>>0)<($$3501647>>>0);
  32915. if ($166) {
  32916. $$0487642 = $164;$$1489641 = $165;
  32917. } else {
  32918. break;
  32919. }
  32920. }
  32921. $167 = HEAP32[$$3484648>>2]|0;
  32922. $168 = ($167|0)==(0);
  32923. $169 = ((($$3484648)) + 4|0);
  32924. $$$3484 = $168 ? $169 : $$3484648;
  32925. $170 = ($164|0)==(0);
  32926. if ($170) {
  32927. $$$3484692 = $$$3484;$$4502 = $$3501647;
  32928. } else {
  32929. $171 = ((($$3501647)) + 4|0);
  32930. HEAP32[$$3501647>>2] = $164;
  32931. $$$3484692 = $$$3484;$$4502 = $171;
  32932. }
  32933. } else {
  32934. $154 = HEAP32[$$3484648>>2]|0;
  32935. $155 = ($154|0)==(0);
  32936. $156 = ((($$3484648)) + 4|0);
  32937. $$$3484691 = $155 ? $156 : $$3484648;
  32938. $$$3484692 = $$$3484691;$$4502 = $$3501647;
  32939. }
  32940. $172 = $148 ? $$556 : $$$3484692;
  32941. $173 = $$4502;
  32942. $174 = $172;
  32943. $175 = (($173) - ($174))|0;
  32944. $176 = $175 >> 2;
  32945. $177 = ($176|0)>($147|0);
  32946. $178 = (($172) + ($147<<2)|0);
  32947. $$$4502 = $177 ? $178 : $$4502;
  32948. $179 = HEAP32[$7>>2]|0;
  32949. $180 = (($179) + ($152))|0;
  32950. HEAP32[$7>>2] = $180;
  32951. $181 = ($180|0)<(0);
  32952. if ($181) {
  32953. $$3484648 = $$$3484692;$$3501647 = $$$4502;$150 = $180;
  32954. } else {
  32955. $$3484$lcssa = $$$3484692;$$3501$lcssa = $$$4502;
  32956. break;
  32957. }
  32958. }
  32959. } else {
  32960. $$3484$lcssa = $$1482$lcssa;$$3501$lcssa = $$1499$lcssa;
  32961. }
  32962. $182 = ($$3484$lcssa>>>0)<($$3501$lcssa>>>0);
  32963. $183 = $$556;
  32964. if ($182) {
  32965. $184 = $$3484$lcssa;
  32966. $185 = (($183) - ($184))|0;
  32967. $186 = $185 >> 2;
  32968. $187 = ($186*9)|0;
  32969. $188 = HEAP32[$$3484$lcssa>>2]|0;
  32970. $189 = ($188>>>0)<(10);
  32971. if ($189) {
  32972. $$1515 = $187;
  32973. } else {
  32974. $$0514637 = $187;$$0530636 = 10;
  32975. while(1) {
  32976. $190 = ($$0530636*10)|0;
  32977. $191 = (($$0514637) + 1)|0;
  32978. $192 = ($188>>>0)<($190>>>0);
  32979. if ($192) {
  32980. $$1515 = $191;
  32981. break;
  32982. } else {
  32983. $$0514637 = $191;$$0530636 = $190;
  32984. }
  32985. }
  32986. }
  32987. } else {
  32988. $$1515 = 0;
  32989. }
  32990. $193 = ($40|0)!=(102);
  32991. $194 = $193 ? $$1515 : 0;
  32992. $195 = (($$539) - ($194))|0;
  32993. $196 = ($40|0)==(103);
  32994. $197 = ($$539|0)!=(0);
  32995. $198 = $197 & $196;
  32996. $$neg = $198 << 31 >> 31;
  32997. $199 = (($195) + ($$neg))|0;
  32998. $200 = $$3501$lcssa;
  32999. $201 = (($200) - ($183))|0;
  33000. $202 = $201 >> 2;
  33001. $203 = ($202*9)|0;
  33002. $204 = (($203) + -9)|0;
  33003. $205 = ($199|0)<($204|0);
  33004. if ($205) {
  33005. $206 = ((($$556)) + 4|0);
  33006. $207 = (($199) + 9216)|0;
  33007. $208 = (($207|0) / 9)&-1;
  33008. $209 = (($208) + -1024)|0;
  33009. $210 = (($206) + ($209<<2)|0);
  33010. $211 = (($207|0) % 9)&-1;
  33011. $$0527629 = (($211) + 1)|0;
  33012. $212 = ($$0527629|0)<(9);
  33013. if ($212) {
  33014. $$0527631 = $$0527629;$$1531630 = 10;
  33015. while(1) {
  33016. $213 = ($$1531630*10)|0;
  33017. $$0527 = (($$0527631) + 1)|0;
  33018. $exitcond = ($$0527|0)==(9);
  33019. if ($exitcond) {
  33020. $$1531$lcssa = $213;
  33021. break;
  33022. } else {
  33023. $$0527631 = $$0527;$$1531630 = $213;
  33024. }
  33025. }
  33026. } else {
  33027. $$1531$lcssa = 10;
  33028. }
  33029. $214 = HEAP32[$210>>2]|0;
  33030. $215 = (($214>>>0) % ($$1531$lcssa>>>0))&-1;
  33031. $216 = ($215|0)==(0);
  33032. $217 = ((($210)) + 4|0);
  33033. $218 = ($217|0)==($$3501$lcssa|0);
  33034. $or$cond541 = $218 & $216;
  33035. if ($or$cond541) {
  33036. $$4492 = $210;$$4518 = $$1515;$$8 = $$3484$lcssa;
  33037. } else {
  33038. $219 = (($214>>>0) / ($$1531$lcssa>>>0))&-1;
  33039. $220 = $219 & 1;
  33040. $221 = ($220|0)==(0);
  33041. $$542 = $221 ? 9007199254740992.0 : 9007199254740994.0;
  33042. $222 = (($$1531$lcssa|0) / 2)&-1;
  33043. $223 = ($215>>>0)<($222>>>0);
  33044. $224 = ($215|0)==($222|0);
  33045. $or$cond544 = $218 & $224;
  33046. $$559 = $or$cond544 ? 1.0 : 1.5;
  33047. $$$559 = $223 ? 0.5 : $$559;
  33048. $225 = ($$0520|0)==(0);
  33049. if ($225) {
  33050. $$1467 = $$$559;$$1469 = $$542;
  33051. } else {
  33052. $226 = HEAP8[$$0521>>0]|0;
  33053. $227 = ($226<<24>>24)==(45);
  33054. $228 = -$$542;
  33055. $229 = -$$$559;
  33056. $$$542 = $227 ? $228 : $$542;
  33057. $$$$559 = $227 ? $229 : $$$559;
  33058. $$1467 = $$$$559;$$1469 = $$$542;
  33059. }
  33060. $230 = (($214) - ($215))|0;
  33061. HEAP32[$210>>2] = $230;
  33062. $231 = $$1469 + $$1467;
  33063. $232 = $231 != $$1469;
  33064. if ($232) {
  33065. $233 = (($230) + ($$1531$lcssa))|0;
  33066. HEAP32[$210>>2] = $233;
  33067. $234 = ($233>>>0)>(999999999);
  33068. if ($234) {
  33069. $$5486623 = $$3484$lcssa;$$sink545622 = $210;
  33070. while(1) {
  33071. $235 = ((($$sink545622)) + -4|0);
  33072. HEAP32[$$sink545622>>2] = 0;
  33073. $236 = ($235>>>0)<($$5486623>>>0);
  33074. if ($236) {
  33075. $237 = ((($$5486623)) + -4|0);
  33076. HEAP32[$237>>2] = 0;
  33077. $$6 = $237;
  33078. } else {
  33079. $$6 = $$5486623;
  33080. }
  33081. $238 = HEAP32[$235>>2]|0;
  33082. $239 = (($238) + 1)|0;
  33083. HEAP32[$235>>2] = $239;
  33084. $240 = ($239>>>0)>(999999999);
  33085. if ($240) {
  33086. $$5486623 = $$6;$$sink545622 = $235;
  33087. } else {
  33088. $$5486$lcssa = $$6;$$sink545$lcssa = $235;
  33089. break;
  33090. }
  33091. }
  33092. } else {
  33093. $$5486$lcssa = $$3484$lcssa;$$sink545$lcssa = $210;
  33094. }
  33095. $241 = $$5486$lcssa;
  33096. $242 = (($183) - ($241))|0;
  33097. $243 = $242 >> 2;
  33098. $244 = ($243*9)|0;
  33099. $245 = HEAP32[$$5486$lcssa>>2]|0;
  33100. $246 = ($245>>>0)<(10);
  33101. if ($246) {
  33102. $$4492 = $$sink545$lcssa;$$4518 = $244;$$8 = $$5486$lcssa;
  33103. } else {
  33104. $$2516618 = $244;$$2532617 = 10;
  33105. while(1) {
  33106. $247 = ($$2532617*10)|0;
  33107. $248 = (($$2516618) + 1)|0;
  33108. $249 = ($245>>>0)<($247>>>0);
  33109. if ($249) {
  33110. $$4492 = $$sink545$lcssa;$$4518 = $248;$$8 = $$5486$lcssa;
  33111. break;
  33112. } else {
  33113. $$2516618 = $248;$$2532617 = $247;
  33114. }
  33115. }
  33116. }
  33117. } else {
  33118. $$4492 = $210;$$4518 = $$1515;$$8 = $$3484$lcssa;
  33119. }
  33120. }
  33121. $250 = ((($$4492)) + 4|0);
  33122. $251 = ($$3501$lcssa>>>0)>($250>>>0);
  33123. $$$3501 = $251 ? $250 : $$3501$lcssa;
  33124. $$5519$ph = $$4518;$$7505$ph = $$$3501;$$9$ph = $$8;
  33125. } else {
  33126. $$5519$ph = $$1515;$$7505$ph = $$3501$lcssa;$$9$ph = $$3484$lcssa;
  33127. }
  33128. $$7505 = $$7505$ph;
  33129. while(1) {
  33130. $252 = ($$7505>>>0)>($$9$ph>>>0);
  33131. if (!($252)) {
  33132. $$lcssa673 = 0;
  33133. break;
  33134. }
  33135. $253 = ((($$7505)) + -4|0);
  33136. $254 = HEAP32[$253>>2]|0;
  33137. $255 = ($254|0)==(0);
  33138. if ($255) {
  33139. $$7505 = $253;
  33140. } else {
  33141. $$lcssa673 = 1;
  33142. break;
  33143. }
  33144. }
  33145. $256 = (0 - ($$5519$ph))|0;
  33146. do {
  33147. if ($196) {
  33148. $not$ = $197 ^ 1;
  33149. $257 = $not$&1;
  33150. $$539$ = (($257) + ($$539))|0;
  33151. $258 = ($$539$|0)>($$5519$ph|0);
  33152. $259 = ($$5519$ph|0)>(-5);
  33153. $or$cond6 = $258 & $259;
  33154. if ($or$cond6) {
  33155. $260 = (($5) + -1)|0;
  33156. $$neg567 = (($$539$) + -1)|0;
  33157. $261 = (($$neg567) - ($$5519$ph))|0;
  33158. $$0479 = $260;$$2476 = $261;
  33159. } else {
  33160. $262 = (($5) + -2)|0;
  33161. $263 = (($$539$) + -1)|0;
  33162. $$0479 = $262;$$2476 = $263;
  33163. }
  33164. $264 = $4 & 8;
  33165. $265 = ($264|0)==(0);
  33166. if ($265) {
  33167. if ($$lcssa673) {
  33168. $266 = ((($$7505)) + -4|0);
  33169. $267 = HEAP32[$266>>2]|0;
  33170. $268 = ($267|0)==(0);
  33171. if ($268) {
  33172. $$2529 = 9;
  33173. } else {
  33174. $269 = (($267>>>0) % 10)&-1;
  33175. $270 = ($269|0)==(0);
  33176. if ($270) {
  33177. $$1528614 = 0;$$3533613 = 10;
  33178. while(1) {
  33179. $271 = ($$3533613*10)|0;
  33180. $272 = (($$1528614) + 1)|0;
  33181. $273 = (($267>>>0) % ($271>>>0))&-1;
  33182. $274 = ($273|0)==(0);
  33183. if ($274) {
  33184. $$1528614 = $272;$$3533613 = $271;
  33185. } else {
  33186. $$2529 = $272;
  33187. break;
  33188. }
  33189. }
  33190. } else {
  33191. $$2529 = 0;
  33192. }
  33193. }
  33194. } else {
  33195. $$2529 = 9;
  33196. }
  33197. $275 = $$0479 | 32;
  33198. $276 = ($275|0)==(102);
  33199. $277 = $$7505;
  33200. $278 = (($277) - ($183))|0;
  33201. $279 = $278 >> 2;
  33202. $280 = ($279*9)|0;
  33203. $281 = (($280) + -9)|0;
  33204. if ($276) {
  33205. $282 = (($281) - ($$2529))|0;
  33206. $283 = ($282|0)>(0);
  33207. $$546 = $283 ? $282 : 0;
  33208. $284 = ($$2476|0)<($$546|0);
  33209. $$2476$$547 = $284 ? $$2476 : $$546;
  33210. $$1480 = $$0479;$$3477 = $$2476$$547;$$pre$phi690Z2D = 0;
  33211. break;
  33212. } else {
  33213. $285 = (($281) + ($$5519$ph))|0;
  33214. $286 = (($285) - ($$2529))|0;
  33215. $287 = ($286|0)>(0);
  33216. $$548 = $287 ? $286 : 0;
  33217. $288 = ($$2476|0)<($$548|0);
  33218. $$2476$$549 = $288 ? $$2476 : $$548;
  33219. $$1480 = $$0479;$$3477 = $$2476$$549;$$pre$phi690Z2D = 0;
  33220. break;
  33221. }
  33222. } else {
  33223. $$1480 = $$0479;$$3477 = $$2476;$$pre$phi690Z2D = $264;
  33224. }
  33225. } else {
  33226. $$pre689 = $4 & 8;
  33227. $$1480 = $5;$$3477 = $$539;$$pre$phi690Z2D = $$pre689;
  33228. }
  33229. } while(0);
  33230. $289 = $$3477 | $$pre$phi690Z2D;
  33231. $290 = ($289|0)!=(0);
  33232. $291 = $290&1;
  33233. $292 = $$1480 | 32;
  33234. $293 = ($292|0)==(102);
  33235. if ($293) {
  33236. $294 = ($$5519$ph|0)>(0);
  33237. $295 = $294 ? $$5519$ph : 0;
  33238. $$2513 = 0;$$pn566 = $295;
  33239. } else {
  33240. $296 = ($$5519$ph|0)<(0);
  33241. $297 = $296 ? $256 : $$5519$ph;
  33242. $298 = ($297|0)<(0);
  33243. $299 = $298 << 31 >> 31;
  33244. $300 = (_fmt_u($297,$299,$11)|0);
  33245. $301 = $11;
  33246. $302 = $300;
  33247. $303 = (($301) - ($302))|0;
  33248. $304 = ($303|0)<(2);
  33249. if ($304) {
  33250. $$1512607 = $300;
  33251. while(1) {
  33252. $305 = ((($$1512607)) + -1|0);
  33253. HEAP8[$305>>0] = 48;
  33254. $306 = $305;
  33255. $307 = (($301) - ($306))|0;
  33256. $308 = ($307|0)<(2);
  33257. if ($308) {
  33258. $$1512607 = $305;
  33259. } else {
  33260. $$1512$lcssa = $305;
  33261. break;
  33262. }
  33263. }
  33264. } else {
  33265. $$1512$lcssa = $300;
  33266. }
  33267. $309 = $$5519$ph >> 31;
  33268. $310 = $309 & 2;
  33269. $311 = (($310) + 43)|0;
  33270. $312 = $311&255;
  33271. $313 = ((($$1512$lcssa)) + -1|0);
  33272. HEAP8[$313>>0] = $312;
  33273. $314 = $$1480&255;
  33274. $315 = ((($$1512$lcssa)) + -2|0);
  33275. HEAP8[$315>>0] = $314;
  33276. $316 = $315;
  33277. $317 = (($301) - ($316))|0;
  33278. $$2513 = $315;$$pn566 = $317;
  33279. }
  33280. $318 = (($$0520) + 1)|0;
  33281. $319 = (($318) + ($$3477))|0;
  33282. $$1526 = (($319) + ($291))|0;
  33283. $320 = (($$1526) + ($$pn566))|0;
  33284. _pad_674($0,32,$2,$320,$4);
  33285. _out($0,$$0521,$$0520);
  33286. $321 = $4 ^ 65536;
  33287. _pad_674($0,48,$2,$320,$321);
  33288. if ($293) {
  33289. $322 = ($$9$ph>>>0)>($$556>>>0);
  33290. $$0496$$9 = $322 ? $$556 : $$9$ph;
  33291. $323 = ((($8)) + 9|0);
  33292. $324 = $323;
  33293. $325 = ((($8)) + 8|0);
  33294. $$5493597 = $$0496$$9;
  33295. while(1) {
  33296. $326 = HEAP32[$$5493597>>2]|0;
  33297. $327 = (_fmt_u($326,0,$323)|0);
  33298. $328 = ($$5493597|0)==($$0496$$9|0);
  33299. if ($328) {
  33300. $334 = ($327|0)==($323|0);
  33301. if ($334) {
  33302. HEAP8[$325>>0] = 48;
  33303. $$1465 = $325;
  33304. } else {
  33305. $$1465 = $327;
  33306. }
  33307. } else {
  33308. $329 = ($327>>>0)>($8>>>0);
  33309. if ($329) {
  33310. $330 = $327;
  33311. $331 = (($330) - ($9))|0;
  33312. _memset(($8|0),48,($331|0))|0;
  33313. $$0464594 = $327;
  33314. while(1) {
  33315. $332 = ((($$0464594)) + -1|0);
  33316. $333 = ($332>>>0)>($8>>>0);
  33317. if ($333) {
  33318. $$0464594 = $332;
  33319. } else {
  33320. $$1465 = $332;
  33321. break;
  33322. }
  33323. }
  33324. } else {
  33325. $$1465 = $327;
  33326. }
  33327. }
  33328. $335 = $$1465;
  33329. $336 = (($324) - ($335))|0;
  33330. _out($0,$$1465,$336);
  33331. $337 = ((($$5493597)) + 4|0);
  33332. $338 = ($337>>>0)>($$556>>>0);
  33333. if ($338) {
  33334. break;
  33335. } else {
  33336. $$5493597 = $337;
  33337. }
  33338. }
  33339. $339 = ($289|0)==(0);
  33340. if (!($339)) {
  33341. _out($0,16608,1);
  33342. }
  33343. $340 = ($337>>>0)<($$7505>>>0);
  33344. $341 = ($$3477|0)>(0);
  33345. $342 = $340 & $341;
  33346. if ($342) {
  33347. $$4478590 = $$3477;$$6494589 = $337;
  33348. while(1) {
  33349. $343 = HEAP32[$$6494589>>2]|0;
  33350. $344 = (_fmt_u($343,0,$323)|0);
  33351. $345 = ($344>>>0)>($8>>>0);
  33352. if ($345) {
  33353. $346 = $344;
  33354. $347 = (($346) - ($9))|0;
  33355. _memset(($8|0),48,($347|0))|0;
  33356. $$0463584 = $344;
  33357. while(1) {
  33358. $348 = ((($$0463584)) + -1|0);
  33359. $349 = ($348>>>0)>($8>>>0);
  33360. if ($349) {
  33361. $$0463584 = $348;
  33362. } else {
  33363. $$0463$lcssa = $348;
  33364. break;
  33365. }
  33366. }
  33367. } else {
  33368. $$0463$lcssa = $344;
  33369. }
  33370. $350 = ($$4478590|0)<(9);
  33371. $351 = $350 ? $$4478590 : 9;
  33372. _out($0,$$0463$lcssa,$351);
  33373. $352 = ((($$6494589)) + 4|0);
  33374. $353 = (($$4478590) + -9)|0;
  33375. $354 = ($352>>>0)<($$7505>>>0);
  33376. $355 = ($$4478590|0)>(9);
  33377. $356 = $354 & $355;
  33378. if ($356) {
  33379. $$4478590 = $353;$$6494589 = $352;
  33380. } else {
  33381. $$4478$lcssa = $353;
  33382. break;
  33383. }
  33384. }
  33385. } else {
  33386. $$4478$lcssa = $$3477;
  33387. }
  33388. $357 = (($$4478$lcssa) + 9)|0;
  33389. _pad_674($0,48,$357,9,0);
  33390. } else {
  33391. $358 = ((($$9$ph)) + 4|0);
  33392. $$7505$ = $$lcssa673 ? $$7505 : $358;
  33393. $359 = ($$3477|0)>(-1);
  33394. if ($359) {
  33395. $360 = ((($8)) + 9|0);
  33396. $361 = ($$pre$phi690Z2D|0)==(0);
  33397. $362 = $360;
  33398. $363 = (0 - ($9))|0;
  33399. $364 = ((($8)) + 8|0);
  33400. $$5602 = $$3477;$$7495601 = $$9$ph;
  33401. while(1) {
  33402. $365 = HEAP32[$$7495601>>2]|0;
  33403. $366 = (_fmt_u($365,0,$360)|0);
  33404. $367 = ($366|0)==($360|0);
  33405. if ($367) {
  33406. HEAP8[$364>>0] = 48;
  33407. $$0 = $364;
  33408. } else {
  33409. $$0 = $366;
  33410. }
  33411. $368 = ($$7495601|0)==($$9$ph|0);
  33412. do {
  33413. if ($368) {
  33414. $372 = ((($$0)) + 1|0);
  33415. _out($0,$$0,1);
  33416. $373 = ($$5602|0)<(1);
  33417. $or$cond554 = $361 & $373;
  33418. if ($or$cond554) {
  33419. $$2 = $372;
  33420. break;
  33421. }
  33422. _out($0,16608,1);
  33423. $$2 = $372;
  33424. } else {
  33425. $369 = ($$0>>>0)>($8>>>0);
  33426. if (!($369)) {
  33427. $$2 = $$0;
  33428. break;
  33429. }
  33430. $scevgep684 = (($$0) + ($363)|0);
  33431. $scevgep684685 = $scevgep684;
  33432. _memset(($8|0),48,($scevgep684685|0))|0;
  33433. $$1598 = $$0;
  33434. while(1) {
  33435. $370 = ((($$1598)) + -1|0);
  33436. $371 = ($370>>>0)>($8>>>0);
  33437. if ($371) {
  33438. $$1598 = $370;
  33439. } else {
  33440. $$2 = $370;
  33441. break;
  33442. }
  33443. }
  33444. }
  33445. } while(0);
  33446. $374 = $$2;
  33447. $375 = (($362) - ($374))|0;
  33448. $376 = ($$5602|0)>($375|0);
  33449. $377 = $376 ? $375 : $$5602;
  33450. _out($0,$$2,$377);
  33451. $378 = (($$5602) - ($375))|0;
  33452. $379 = ((($$7495601)) + 4|0);
  33453. $380 = ($379>>>0)<($$7505$>>>0);
  33454. $381 = ($378|0)>(-1);
  33455. $382 = $380 & $381;
  33456. if ($382) {
  33457. $$5602 = $378;$$7495601 = $379;
  33458. } else {
  33459. $$5$lcssa = $378;
  33460. break;
  33461. }
  33462. }
  33463. } else {
  33464. $$5$lcssa = $$3477;
  33465. }
  33466. $383 = (($$5$lcssa) + 18)|0;
  33467. _pad_674($0,48,$383,18,0);
  33468. $384 = $11;
  33469. $385 = $$2513;
  33470. $386 = (($384) - ($385))|0;
  33471. _out($0,$$2513,$386);
  33472. }
  33473. $387 = $4 ^ 8192;
  33474. _pad_674($0,32,$2,$320,$387);
  33475. $$sink562 = $320;
  33476. } else {
  33477. $27 = $5 & 32;
  33478. $28 = ($27|0)!=(0);
  33479. $29 = $28 ? 16580 : 16584;
  33480. $30 = ($$0471 != $$0471) | (0.0 != 0.0);
  33481. $31 = $28 ? 18511 : 16588;
  33482. $$0510 = $30 ? $31 : $29;
  33483. $32 = (($$0520) + 3)|0;
  33484. $33 = $4 & -65537;
  33485. _pad_674($0,32,$2,$32,$33);
  33486. _out($0,$$0521,$$0520);
  33487. _out($0,$$0510,3);
  33488. $34 = $4 ^ 8192;
  33489. _pad_674($0,32,$2,$32,$34);
  33490. $$sink562 = $32;
  33491. }
  33492. } while(0);
  33493. $388 = ($$sink562|0)<($2|0);
  33494. $$555 = $388 ? $2 : $$sink562;
  33495. STACKTOP = sp;return ($$555|0);
  33496. }
  33497. function ___DOUBLE_BITS_675($0) {
  33498. $0 = +$0;
  33499. var $1 = 0, $2 = 0, label = 0, sp = 0;
  33500. sp = STACKTOP;
  33501. HEAPF64[tempDoublePtr>>3] = $0;$1 = HEAP32[tempDoublePtr>>2]|0;
  33502. $2 = HEAP32[tempDoublePtr+4>>2]|0;
  33503. tempRet0 = ($2);
  33504. return ($1|0);
  33505. }
  33506. function _frexpl($0,$1) {
  33507. $0 = +$0;
  33508. $1 = $1|0;
  33509. var $2 = 0.0, label = 0, sp = 0;
  33510. sp = STACKTOP;
  33511. $2 = (+_frexp($0,$1));
  33512. return (+$2);
  33513. }
  33514. function _frexp($0,$1) {
  33515. $0 = +$0;
  33516. $1 = $1|0;
  33517. 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;
  33518. var sp = 0;
  33519. sp = STACKTOP;
  33520. HEAPF64[tempDoublePtr>>3] = $0;$2 = HEAP32[tempDoublePtr>>2]|0;
  33521. $3 = HEAP32[tempDoublePtr+4>>2]|0;
  33522. $4 = (_bitshift64Lshr(($2|0),($3|0),52)|0);
  33523. $5 = tempRet0;
  33524. $6 = $4&65535;
  33525. $trunc$clear = $6 & 2047;
  33526. switch ($trunc$clear<<16>>16) {
  33527. case 0: {
  33528. $7 = $0 != 0.0;
  33529. if ($7) {
  33530. $8 = $0 * 1.8446744073709552E+19;
  33531. $9 = (+_frexp($8,$1));
  33532. $10 = HEAP32[$1>>2]|0;
  33533. $11 = (($10) + -64)|0;
  33534. $$016 = $9;$storemerge = $11;
  33535. } else {
  33536. $$016 = $0;$storemerge = 0;
  33537. }
  33538. HEAP32[$1>>2] = $storemerge;
  33539. $$0 = $$016;
  33540. break;
  33541. }
  33542. case 2047: {
  33543. $$0 = $0;
  33544. break;
  33545. }
  33546. default: {
  33547. $12 = $4 & 2047;
  33548. $13 = (($12) + -1022)|0;
  33549. HEAP32[$1>>2] = $13;
  33550. $14 = $3 & -2146435073;
  33551. $15 = $14 | 1071644672;
  33552. HEAP32[tempDoublePtr>>2] = $2;HEAP32[tempDoublePtr+4>>2] = $15;$16 = +HEAPF64[tempDoublePtr>>3];
  33553. $$0 = $16;
  33554. }
  33555. }
  33556. return (+$$0);
  33557. }
  33558. function _wcrtomb($0,$1,$2) {
  33559. $0 = $0|0;
  33560. $1 = $1|0;
  33561. $2 = $2|0;
  33562. 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;
  33563. 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;
  33564. 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;
  33565. sp = STACKTOP;
  33566. $3 = ($0|0)==(0|0);
  33567. do {
  33568. if ($3) {
  33569. $$0 = 1;
  33570. } else {
  33571. $4 = ($1>>>0)<(128);
  33572. if ($4) {
  33573. $5 = $1&255;
  33574. HEAP8[$0>>0] = $5;
  33575. $$0 = 1;
  33576. break;
  33577. }
  33578. $6 = (___pthread_self_448()|0);
  33579. $7 = ((($6)) + 188|0);
  33580. $8 = HEAP32[$7>>2]|0;
  33581. $9 = HEAP32[$8>>2]|0;
  33582. $not$ = ($9|0)==(0|0);
  33583. if ($not$) {
  33584. $10 = $1 & -128;
  33585. $11 = ($10|0)==(57216);
  33586. if ($11) {
  33587. $13 = $1&255;
  33588. HEAP8[$0>>0] = $13;
  33589. $$0 = 1;
  33590. break;
  33591. } else {
  33592. $12 = (___errno_location()|0);
  33593. HEAP32[$12>>2] = 84;
  33594. $$0 = -1;
  33595. break;
  33596. }
  33597. }
  33598. $14 = ($1>>>0)<(2048);
  33599. if ($14) {
  33600. $15 = $1 >>> 6;
  33601. $16 = $15 | 192;
  33602. $17 = $16&255;
  33603. $18 = ((($0)) + 1|0);
  33604. HEAP8[$0>>0] = $17;
  33605. $19 = $1 & 63;
  33606. $20 = $19 | 128;
  33607. $21 = $20&255;
  33608. HEAP8[$18>>0] = $21;
  33609. $$0 = 2;
  33610. break;
  33611. }
  33612. $22 = ($1>>>0)<(55296);
  33613. $23 = $1 & -8192;
  33614. $24 = ($23|0)==(57344);
  33615. $or$cond = $22 | $24;
  33616. if ($or$cond) {
  33617. $25 = $1 >>> 12;
  33618. $26 = $25 | 224;
  33619. $27 = $26&255;
  33620. $28 = ((($0)) + 1|0);
  33621. HEAP8[$0>>0] = $27;
  33622. $29 = $1 >>> 6;
  33623. $30 = $29 & 63;
  33624. $31 = $30 | 128;
  33625. $32 = $31&255;
  33626. $33 = ((($0)) + 2|0);
  33627. HEAP8[$28>>0] = $32;
  33628. $34 = $1 & 63;
  33629. $35 = $34 | 128;
  33630. $36 = $35&255;
  33631. HEAP8[$33>>0] = $36;
  33632. $$0 = 3;
  33633. break;
  33634. }
  33635. $37 = (($1) + -65536)|0;
  33636. $38 = ($37>>>0)<(1048576);
  33637. if ($38) {
  33638. $39 = $1 >>> 18;
  33639. $40 = $39 | 240;
  33640. $41 = $40&255;
  33641. $42 = ((($0)) + 1|0);
  33642. HEAP8[$0>>0] = $41;
  33643. $43 = $1 >>> 12;
  33644. $44 = $43 & 63;
  33645. $45 = $44 | 128;
  33646. $46 = $45&255;
  33647. $47 = ((($0)) + 2|0);
  33648. HEAP8[$42>>0] = $46;
  33649. $48 = $1 >>> 6;
  33650. $49 = $48 & 63;
  33651. $50 = $49 | 128;
  33652. $51 = $50&255;
  33653. $52 = ((($0)) + 3|0);
  33654. HEAP8[$47>>0] = $51;
  33655. $53 = $1 & 63;
  33656. $54 = $53 | 128;
  33657. $55 = $54&255;
  33658. HEAP8[$52>>0] = $55;
  33659. $$0 = 4;
  33660. break;
  33661. } else {
  33662. $56 = (___errno_location()|0);
  33663. HEAP32[$56>>2] = 84;
  33664. $$0 = -1;
  33665. break;
  33666. }
  33667. }
  33668. } while(0);
  33669. return ($$0|0);
  33670. }
  33671. function ___pthread_self_448() {
  33672. var $0 = 0, label = 0, sp = 0;
  33673. sp = STACKTOP;
  33674. $0 = (_pthread_self()|0);
  33675. return ($0|0);
  33676. }
  33677. function ___pthread_self_105() {
  33678. var $0 = 0, label = 0, sp = 0;
  33679. sp = STACKTOP;
  33680. $0 = (_pthread_self()|0);
  33681. return ($0|0);
  33682. }
  33683. function ___strerror_l($0,$1) {
  33684. $0 = $0|0;
  33685. $1 = $1|0;
  33686. 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;
  33687. var label = 0, sp = 0;
  33688. sp = STACKTOP;
  33689. $$016 = 0;
  33690. while(1) {
  33691. $3 = (16610 + ($$016)|0);
  33692. $4 = HEAP8[$3>>0]|0;
  33693. $5 = $4&255;
  33694. $6 = ($5|0)==($0|0);
  33695. if ($6) {
  33696. label = 2;
  33697. break;
  33698. }
  33699. $7 = (($$016) + 1)|0;
  33700. $8 = ($7|0)==(87);
  33701. if ($8) {
  33702. $$01214 = 16698;$$115 = 87;
  33703. label = 5;
  33704. break;
  33705. } else {
  33706. $$016 = $7;
  33707. }
  33708. }
  33709. if ((label|0) == 2) {
  33710. $2 = ($$016|0)==(0);
  33711. if ($2) {
  33712. $$012$lcssa = 16698;
  33713. } else {
  33714. $$01214 = 16698;$$115 = $$016;
  33715. label = 5;
  33716. }
  33717. }
  33718. if ((label|0) == 5) {
  33719. while(1) {
  33720. label = 0;
  33721. $$113 = $$01214;
  33722. while(1) {
  33723. $9 = HEAP8[$$113>>0]|0;
  33724. $10 = ($9<<24>>24)==(0);
  33725. $11 = ((($$113)) + 1|0);
  33726. if ($10) {
  33727. break;
  33728. } else {
  33729. $$113 = $11;
  33730. }
  33731. }
  33732. $12 = (($$115) + -1)|0;
  33733. $13 = ($12|0)==(0);
  33734. if ($13) {
  33735. $$012$lcssa = $11;
  33736. break;
  33737. } else {
  33738. $$01214 = $11;$$115 = $12;
  33739. label = 5;
  33740. }
  33741. }
  33742. }
  33743. $14 = ((($1)) + 20|0);
  33744. $15 = HEAP32[$14>>2]|0;
  33745. $16 = (___lctrans($$012$lcssa,$15)|0);
  33746. return ($16|0);
  33747. }
  33748. function ___lctrans($0,$1) {
  33749. $0 = $0|0;
  33750. $1 = $1|0;
  33751. var $2 = 0, label = 0, sp = 0;
  33752. sp = STACKTOP;
  33753. $2 = (___lctrans_impl($0,$1)|0);
  33754. return ($2|0);
  33755. }
  33756. function ___lctrans_impl($0,$1) {
  33757. $0 = $0|0;
  33758. $1 = $1|0;
  33759. var $$0 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, label = 0, sp = 0;
  33760. sp = STACKTOP;
  33761. $2 = ($1|0)==(0|0);
  33762. if ($2) {
  33763. $$0 = 0;
  33764. } else {
  33765. $3 = HEAP32[$1>>2]|0;
  33766. $4 = ((($1)) + 4|0);
  33767. $5 = HEAP32[$4>>2]|0;
  33768. $6 = (___mo_lookup($3,$5,$0)|0);
  33769. $$0 = $6;
  33770. }
  33771. $7 = ($$0|0)!=(0|0);
  33772. $8 = $7 ? $$0 : $0;
  33773. return ($8|0);
  33774. }
  33775. function ___mo_lookup($0,$1,$2) {
  33776. $0 = $0|0;
  33777. $1 = $1|0;
  33778. $2 = $2|0;
  33779. 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;
  33780. 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;
  33781. 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;
  33782. 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;
  33783. sp = STACKTOP;
  33784. $3 = HEAP32[$0>>2]|0;
  33785. $4 = (($3) + 1794895138)|0;
  33786. $5 = ((($0)) + 8|0);
  33787. $6 = HEAP32[$5>>2]|0;
  33788. $7 = (_swapc($6,$4)|0);
  33789. $8 = ((($0)) + 12|0);
  33790. $9 = HEAP32[$8>>2]|0;
  33791. $10 = (_swapc($9,$4)|0);
  33792. $11 = ((($0)) + 16|0);
  33793. $12 = HEAP32[$11>>2]|0;
  33794. $13 = (_swapc($12,$4)|0);
  33795. $14 = $1 >>> 2;
  33796. $15 = ($7>>>0)<($14>>>0);
  33797. L1: do {
  33798. if ($15) {
  33799. $16 = $7 << 2;
  33800. $17 = (($1) - ($16))|0;
  33801. $18 = ($10>>>0)<($17>>>0);
  33802. $19 = ($13>>>0)<($17>>>0);
  33803. $or$cond = $18 & $19;
  33804. if ($or$cond) {
  33805. $20 = $13 | $10;
  33806. $21 = $20 & 3;
  33807. $22 = ($21|0)==(0);
  33808. if ($22) {
  33809. $23 = $10 >>> 2;
  33810. $24 = $13 >>> 2;
  33811. $$090 = 0;$$094 = $7;
  33812. while(1) {
  33813. $25 = $$094 >>> 1;
  33814. $26 = (($$090) + ($25))|0;
  33815. $27 = $26 << 1;
  33816. $28 = (($27) + ($23))|0;
  33817. $29 = (($0) + ($28<<2)|0);
  33818. $30 = HEAP32[$29>>2]|0;
  33819. $31 = (_swapc($30,$4)|0);
  33820. $32 = (($28) + 1)|0;
  33821. $33 = (($0) + ($32<<2)|0);
  33822. $34 = HEAP32[$33>>2]|0;
  33823. $35 = (_swapc($34,$4)|0);
  33824. $36 = ($35>>>0)<($1>>>0);
  33825. $37 = (($1) - ($35))|0;
  33826. $38 = ($31>>>0)<($37>>>0);
  33827. $or$cond102 = $36 & $38;
  33828. if (!($or$cond102)) {
  33829. $$4 = 0;
  33830. break L1;
  33831. }
  33832. $39 = (($35) + ($31))|0;
  33833. $40 = (($0) + ($39)|0);
  33834. $41 = HEAP8[$40>>0]|0;
  33835. $42 = ($41<<24>>24)==(0);
  33836. if (!($42)) {
  33837. $$4 = 0;
  33838. break L1;
  33839. }
  33840. $43 = (($0) + ($35)|0);
  33841. $44 = (_strcmp($2,$43)|0);
  33842. $45 = ($44|0)==(0);
  33843. if ($45) {
  33844. break;
  33845. }
  33846. $62 = ($$094|0)==(1);
  33847. $63 = ($44|0)<(0);
  33848. $64 = (($$094) - ($25))|0;
  33849. $$195 = $63 ? $25 : $64;
  33850. $$191 = $63 ? $$090 : $26;
  33851. if ($62) {
  33852. $$4 = 0;
  33853. break L1;
  33854. } else {
  33855. $$090 = $$191;$$094 = $$195;
  33856. }
  33857. }
  33858. $46 = (($27) + ($24))|0;
  33859. $47 = (($0) + ($46<<2)|0);
  33860. $48 = HEAP32[$47>>2]|0;
  33861. $49 = (_swapc($48,$4)|0);
  33862. $50 = (($46) + 1)|0;
  33863. $51 = (($0) + ($50<<2)|0);
  33864. $52 = HEAP32[$51>>2]|0;
  33865. $53 = (_swapc($52,$4)|0);
  33866. $54 = ($53>>>0)<($1>>>0);
  33867. $55 = (($1) - ($53))|0;
  33868. $56 = ($49>>>0)<($55>>>0);
  33869. $or$cond104 = $54 & $56;
  33870. if ($or$cond104) {
  33871. $57 = (($0) + ($53)|0);
  33872. $58 = (($53) + ($49))|0;
  33873. $59 = (($0) + ($58)|0);
  33874. $60 = HEAP8[$59>>0]|0;
  33875. $61 = ($60<<24>>24)==(0);
  33876. $$ = $61 ? $57 : 0;
  33877. $$4 = $$;
  33878. } else {
  33879. $$4 = 0;
  33880. }
  33881. } else {
  33882. $$4 = 0;
  33883. }
  33884. } else {
  33885. $$4 = 0;
  33886. }
  33887. } else {
  33888. $$4 = 0;
  33889. }
  33890. } while(0);
  33891. return ($$4|0);
  33892. }
  33893. function _swapc($0,$1) {
  33894. $0 = $0|0;
  33895. $1 = $1|0;
  33896. var $$ = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  33897. sp = STACKTOP;
  33898. $2 = ($1|0)==(0);
  33899. $3 = (_llvm_bswap_i32(($0|0))|0);
  33900. $$ = $2 ? $0 : $3;
  33901. return ($$|0);
  33902. }
  33903. function ___fwritex($0,$1,$2) {
  33904. $0 = $0|0;
  33905. $1 = $1|0;
  33906. $2 = $2|0;
  33907. 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;
  33908. 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;
  33909. var label = 0, sp = 0;
  33910. sp = STACKTOP;
  33911. $3 = ((($2)) + 16|0);
  33912. $4 = HEAP32[$3>>2]|0;
  33913. $5 = ($4|0)==(0|0);
  33914. if ($5) {
  33915. $7 = (___towrite($2)|0);
  33916. $8 = ($7|0)==(0);
  33917. if ($8) {
  33918. $$pre = HEAP32[$3>>2]|0;
  33919. $12 = $$pre;
  33920. label = 5;
  33921. } else {
  33922. $$1 = 0;
  33923. }
  33924. } else {
  33925. $6 = $4;
  33926. $12 = $6;
  33927. label = 5;
  33928. }
  33929. L5: do {
  33930. if ((label|0) == 5) {
  33931. $9 = ((($2)) + 20|0);
  33932. $10 = HEAP32[$9>>2]|0;
  33933. $11 = (($12) - ($10))|0;
  33934. $13 = ($11>>>0)<($1>>>0);
  33935. $14 = $10;
  33936. if ($13) {
  33937. $15 = ((($2)) + 36|0);
  33938. $16 = HEAP32[$15>>2]|0;
  33939. $17 = (FUNCTION_TABLE_iiii[$16 & 15]($2,$0,$1)|0);
  33940. $$1 = $17;
  33941. break;
  33942. }
  33943. $18 = ((($2)) + 75|0);
  33944. $19 = HEAP8[$18>>0]|0;
  33945. $20 = ($19<<24>>24)>(-1);
  33946. L10: do {
  33947. if ($20) {
  33948. $$038 = $1;
  33949. while(1) {
  33950. $21 = ($$038|0)==(0);
  33951. if ($21) {
  33952. $$139 = 0;$$141 = $0;$$143 = $1;$31 = $14;
  33953. break L10;
  33954. }
  33955. $22 = (($$038) + -1)|0;
  33956. $23 = (($0) + ($22)|0);
  33957. $24 = HEAP8[$23>>0]|0;
  33958. $25 = ($24<<24>>24)==(10);
  33959. if ($25) {
  33960. break;
  33961. } else {
  33962. $$038 = $22;
  33963. }
  33964. }
  33965. $26 = ((($2)) + 36|0);
  33966. $27 = HEAP32[$26>>2]|0;
  33967. $28 = (FUNCTION_TABLE_iiii[$27 & 15]($2,$0,$$038)|0);
  33968. $29 = ($28>>>0)<($$038>>>0);
  33969. if ($29) {
  33970. $$1 = $28;
  33971. break L5;
  33972. }
  33973. $30 = (($0) + ($$038)|0);
  33974. $$042 = (($1) - ($$038))|0;
  33975. $$pre47 = HEAP32[$9>>2]|0;
  33976. $$139 = $$038;$$141 = $30;$$143 = $$042;$31 = $$pre47;
  33977. } else {
  33978. $$139 = 0;$$141 = $0;$$143 = $1;$31 = $14;
  33979. }
  33980. } while(0);
  33981. _memcpy(($31|0),($$141|0),($$143|0))|0;
  33982. $32 = HEAP32[$9>>2]|0;
  33983. $33 = (($32) + ($$143)|0);
  33984. HEAP32[$9>>2] = $33;
  33985. $34 = (($$139) + ($$143))|0;
  33986. $$1 = $34;
  33987. }
  33988. } while(0);
  33989. return ($$1|0);
  33990. }
  33991. function ___towrite($0) {
  33992. $0 = $0|0;
  33993. 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;
  33994. var $9 = 0, label = 0, sp = 0;
  33995. sp = STACKTOP;
  33996. $1 = ((($0)) + 74|0);
  33997. $2 = HEAP8[$1>>0]|0;
  33998. $3 = $2 << 24 >> 24;
  33999. $4 = (($3) + 255)|0;
  34000. $5 = $4 | $3;
  34001. $6 = $5&255;
  34002. HEAP8[$1>>0] = $6;
  34003. $7 = HEAP32[$0>>2]|0;
  34004. $8 = $7 & 8;
  34005. $9 = ($8|0)==(0);
  34006. if ($9) {
  34007. $11 = ((($0)) + 8|0);
  34008. HEAP32[$11>>2] = 0;
  34009. $12 = ((($0)) + 4|0);
  34010. HEAP32[$12>>2] = 0;
  34011. $13 = ((($0)) + 44|0);
  34012. $14 = HEAP32[$13>>2]|0;
  34013. $15 = ((($0)) + 28|0);
  34014. HEAP32[$15>>2] = $14;
  34015. $16 = ((($0)) + 20|0);
  34016. HEAP32[$16>>2] = $14;
  34017. $17 = ((($0)) + 48|0);
  34018. $18 = HEAP32[$17>>2]|0;
  34019. $19 = (($14) + ($18)|0);
  34020. $20 = ((($0)) + 16|0);
  34021. HEAP32[$20>>2] = $19;
  34022. $$0 = 0;
  34023. } else {
  34024. $10 = $7 | 32;
  34025. HEAP32[$0>>2] = $10;
  34026. $$0 = -1;
  34027. }
  34028. return ($$0|0);
  34029. }
  34030. function _sn_write($0,$1,$2) {
  34031. $0 = $0|0;
  34032. $1 = $1|0;
  34033. $2 = $2|0;
  34034. var $$ = 0, $10 = 0, $11 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  34035. sp = STACKTOP;
  34036. $3 = ((($0)) + 16|0);
  34037. $4 = HEAP32[$3>>2]|0;
  34038. $5 = ((($0)) + 20|0);
  34039. $6 = HEAP32[$5>>2]|0;
  34040. $7 = $6;
  34041. $8 = (($4) - ($7))|0;
  34042. $9 = ($8>>>0)>($2>>>0);
  34043. $$ = $9 ? $2 : $8;
  34044. _memcpy(($6|0),($1|0),($$|0))|0;
  34045. $10 = HEAP32[$5>>2]|0;
  34046. $11 = (($10) + ($$)|0);
  34047. HEAP32[$5>>2] = $11;
  34048. return ($2|0);
  34049. }
  34050. function ___floatscan($0,$1,$2) {
  34051. $0 = $0|0;
  34052. $1 = $1|0;
  34053. $2 = $2|0;
  34054. 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;
  34055. 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;
  34056. 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;
  34057. 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;
  34058. 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;
  34059. 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;
  34060. 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;
  34061. 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;
  34062. sp = STACKTOP;
  34063. switch ($1|0) {
  34064. case 0: {
  34065. $$0105$ph = -149;$$0106$ph = 24;
  34066. label = 4;
  34067. break;
  34068. }
  34069. case 1: {
  34070. $$0105$ph = -1074;$$0106$ph = 53;
  34071. label = 4;
  34072. break;
  34073. }
  34074. case 2: {
  34075. $$0105$ph = -1074;$$0106$ph = 53;
  34076. label = 4;
  34077. break;
  34078. }
  34079. default: {
  34080. $$0114 = 0.0;
  34081. }
  34082. }
  34083. L4: do {
  34084. if ((label|0) == 4) {
  34085. $3 = ((($0)) + 4|0);
  34086. $4 = ((($0)) + 100|0);
  34087. while(1) {
  34088. $5 = HEAP32[$3>>2]|0;
  34089. $6 = HEAP32[$4>>2]|0;
  34090. $7 = ($5>>>0)<($6>>>0);
  34091. if ($7) {
  34092. $8 = ((($5)) + 1|0);
  34093. HEAP32[$3>>2] = $8;
  34094. $9 = HEAP8[$5>>0]|0;
  34095. $10 = $9&255;
  34096. $12 = $10;
  34097. } else {
  34098. $11 = (___shgetc($0)|0);
  34099. $12 = $11;
  34100. }
  34101. $13 = (_isspace($12)|0);
  34102. $14 = ($13|0)==(0);
  34103. if ($14) {
  34104. break;
  34105. }
  34106. }
  34107. L13: do {
  34108. switch ($12|0) {
  34109. case 43: case 45: {
  34110. $15 = ($12|0)==(45);
  34111. $16 = $15&1;
  34112. $17 = $16 << 1;
  34113. $18 = (1 - ($17))|0;
  34114. $19 = HEAP32[$3>>2]|0;
  34115. $20 = HEAP32[$4>>2]|0;
  34116. $21 = ($19>>>0)<($20>>>0);
  34117. if ($21) {
  34118. $22 = ((($19)) + 1|0);
  34119. HEAP32[$3>>2] = $22;
  34120. $23 = HEAP8[$19>>0]|0;
  34121. $24 = $23&255;
  34122. $$0 = $24;$$0113 = $18;
  34123. break L13;
  34124. } else {
  34125. $25 = (___shgetc($0)|0);
  34126. $$0 = $25;$$0113 = $18;
  34127. break L13;
  34128. }
  34129. break;
  34130. }
  34131. default: {
  34132. $$0 = $12;$$0113 = 1;
  34133. }
  34134. }
  34135. } while(0);
  34136. $$0107127 = 0;$$1128 = $$0;
  34137. while(1) {
  34138. $26 = $$1128 | 32;
  34139. $27 = (18502 + ($$0107127)|0);
  34140. $28 = HEAP8[$27>>0]|0;
  34141. $29 = $28 << 24 >> 24;
  34142. $30 = ($26|0)==($29|0);
  34143. if (!($30)) {
  34144. $$0107$lcssa = $$0107127;$$1$lcssa = $$1128;
  34145. break;
  34146. }
  34147. $31 = ($$0107127>>>0)<(7);
  34148. do {
  34149. if ($31) {
  34150. $32 = HEAP32[$3>>2]|0;
  34151. $33 = HEAP32[$4>>2]|0;
  34152. $34 = ($32>>>0)<($33>>>0);
  34153. if ($34) {
  34154. $35 = ((($32)) + 1|0);
  34155. HEAP32[$3>>2] = $35;
  34156. $36 = HEAP8[$32>>0]|0;
  34157. $37 = $36&255;
  34158. $$2 = $37;
  34159. break;
  34160. } else {
  34161. $38 = (___shgetc($0)|0);
  34162. $$2 = $38;
  34163. break;
  34164. }
  34165. } else {
  34166. $$2 = $$1128;
  34167. }
  34168. } while(0);
  34169. $39 = (($$0107127) + 1)|0;
  34170. $40 = ($39>>>0)<(8);
  34171. if ($40) {
  34172. $$0107127 = $39;$$1128 = $$2;
  34173. } else {
  34174. $$0107$lcssa = $39;$$1$lcssa = $$2;
  34175. break;
  34176. }
  34177. }
  34178. L29: do {
  34179. switch ($$0107$lcssa|0) {
  34180. case 8: {
  34181. break;
  34182. }
  34183. case 3: {
  34184. label = 23;
  34185. break;
  34186. }
  34187. default: {
  34188. $41 = ($$0107$lcssa>>>0)>(3);
  34189. $42 = ($2|0)!=(0);
  34190. $or$cond5 = $42 & $41;
  34191. if ($or$cond5) {
  34192. $43 = ($$0107$lcssa|0)==(8);
  34193. if ($43) {
  34194. break L29;
  34195. } else {
  34196. label = 23;
  34197. break L29;
  34198. }
  34199. }
  34200. $56 = ($$0107$lcssa|0)==(0);
  34201. L34: do {
  34202. if ($56) {
  34203. $$2109125 = 0;$$3126 = $$1$lcssa;
  34204. while(1) {
  34205. $57 = $$3126 | 32;
  34206. $58 = (18511 + ($$2109125)|0);
  34207. $59 = HEAP8[$58>>0]|0;
  34208. $60 = $59 << 24 >> 24;
  34209. $61 = ($57|0)==($60|0);
  34210. if (!($61)) {
  34211. $$3110 = $$2109125;$$5 = $$3126;
  34212. break L34;
  34213. }
  34214. $62 = ($$2109125>>>0)<(2);
  34215. do {
  34216. if ($62) {
  34217. $63 = HEAP32[$3>>2]|0;
  34218. $64 = HEAP32[$4>>2]|0;
  34219. $65 = ($63>>>0)<($64>>>0);
  34220. if ($65) {
  34221. $66 = ((($63)) + 1|0);
  34222. HEAP32[$3>>2] = $66;
  34223. $67 = HEAP8[$63>>0]|0;
  34224. $68 = $67&255;
  34225. $$4 = $68;
  34226. break;
  34227. } else {
  34228. $69 = (___shgetc($0)|0);
  34229. $$4 = $69;
  34230. break;
  34231. }
  34232. } else {
  34233. $$4 = $$3126;
  34234. }
  34235. } while(0);
  34236. $70 = (($$2109125) + 1)|0;
  34237. $71 = ($70>>>0)<(3);
  34238. if ($71) {
  34239. $$2109125 = $70;$$3126 = $$4;
  34240. } else {
  34241. $$3110 = $70;$$5 = $$4;
  34242. break;
  34243. }
  34244. }
  34245. } else {
  34246. $$3110 = $$0107$lcssa;$$5 = $$1$lcssa;
  34247. }
  34248. } while(0);
  34249. switch ($$3110|0) {
  34250. case 3: {
  34251. $72 = HEAP32[$3>>2]|0;
  34252. $73 = HEAP32[$4>>2]|0;
  34253. $74 = ($72>>>0)<($73>>>0);
  34254. if ($74) {
  34255. $75 = ((($72)) + 1|0);
  34256. HEAP32[$3>>2] = $75;
  34257. $76 = HEAP8[$72>>0]|0;
  34258. $77 = $76&255;
  34259. $80 = $77;
  34260. } else {
  34261. $78 = (___shgetc($0)|0);
  34262. $80 = $78;
  34263. }
  34264. $79 = ($80|0)==(40);
  34265. if ($79) {
  34266. $$4111 = 1;
  34267. } else {
  34268. $81 = HEAP32[$4>>2]|0;
  34269. $82 = ($81|0)==(0|0);
  34270. if ($82) {
  34271. $$0114 = nan;
  34272. break L4;
  34273. }
  34274. $83 = HEAP32[$3>>2]|0;
  34275. $84 = ((($83)) + -1|0);
  34276. HEAP32[$3>>2] = $84;
  34277. $$0114 = nan;
  34278. break L4;
  34279. }
  34280. while(1) {
  34281. $85 = HEAP32[$3>>2]|0;
  34282. $86 = HEAP32[$4>>2]|0;
  34283. $87 = ($85>>>0)<($86>>>0);
  34284. if ($87) {
  34285. $88 = ((($85)) + 1|0);
  34286. HEAP32[$3>>2] = $88;
  34287. $89 = HEAP8[$85>>0]|0;
  34288. $90 = $89&255;
  34289. $93 = $90;
  34290. } else {
  34291. $91 = (___shgetc($0)|0);
  34292. $93 = $91;
  34293. }
  34294. $92 = (($93) + -48)|0;
  34295. $94 = ($92>>>0)<(10);
  34296. $95 = (($93) + -65)|0;
  34297. $96 = ($95>>>0)<(26);
  34298. $or$cond = $94 | $96;
  34299. if (!($or$cond)) {
  34300. $97 = (($93) + -97)|0;
  34301. $98 = ($97>>>0)<(26);
  34302. $99 = ($93|0)==(95);
  34303. $or$cond7 = $99 | $98;
  34304. if (!($or$cond7)) {
  34305. break;
  34306. }
  34307. }
  34308. $111 = (($$4111) + 1)|0;
  34309. $$4111 = $111;
  34310. }
  34311. $100 = ($93|0)==(41);
  34312. if ($100) {
  34313. $$0114 = nan;
  34314. break L4;
  34315. }
  34316. $101 = HEAP32[$4>>2]|0;
  34317. $102 = ($101|0)==(0|0);
  34318. if (!($102)) {
  34319. $103 = HEAP32[$3>>2]|0;
  34320. $104 = ((($103)) + -1|0);
  34321. HEAP32[$3>>2] = $104;
  34322. }
  34323. if (!($42)) {
  34324. $106 = (___errno_location()|0);
  34325. HEAP32[$106>>2] = 22;
  34326. ___shlim($0,0);
  34327. $$0114 = 0.0;
  34328. break L4;
  34329. }
  34330. $105 = ($$4111|0)==(0);
  34331. if ($105) {
  34332. $$0114 = nan;
  34333. break L4;
  34334. } else {
  34335. $$in = $$4111;
  34336. }
  34337. while(1) {
  34338. $107 = (($$in) + -1)|0;
  34339. if (!($102)) {
  34340. $108 = HEAP32[$3>>2]|0;
  34341. $109 = ((($108)) + -1|0);
  34342. HEAP32[$3>>2] = $109;
  34343. }
  34344. $110 = ($107|0)==(0);
  34345. if ($110) {
  34346. $$0114 = nan;
  34347. break L4;
  34348. } else {
  34349. $$in = $107;
  34350. }
  34351. }
  34352. break;
  34353. }
  34354. case 0: {
  34355. $117 = ($$5|0)==(48);
  34356. if ($117) {
  34357. $118 = HEAP32[$3>>2]|0;
  34358. $119 = HEAP32[$4>>2]|0;
  34359. $120 = ($118>>>0)<($119>>>0);
  34360. if ($120) {
  34361. $121 = ((($118)) + 1|0);
  34362. HEAP32[$3>>2] = $121;
  34363. $122 = HEAP8[$118>>0]|0;
  34364. $123 = $122&255;
  34365. $126 = $123;
  34366. } else {
  34367. $124 = (___shgetc($0)|0);
  34368. $126 = $124;
  34369. }
  34370. $125 = $126 | 32;
  34371. $127 = ($125|0)==(120);
  34372. if ($127) {
  34373. $128 = (+_hexfloat($0,$$0106$ph,$$0105$ph,$$0113,$2));
  34374. $$0114 = $128;
  34375. break L4;
  34376. }
  34377. $129 = HEAP32[$4>>2]|0;
  34378. $130 = ($129|0)==(0|0);
  34379. if ($130) {
  34380. $$6 = 48;
  34381. } else {
  34382. $131 = HEAP32[$3>>2]|0;
  34383. $132 = ((($131)) + -1|0);
  34384. HEAP32[$3>>2] = $132;
  34385. $$6 = 48;
  34386. }
  34387. } else {
  34388. $$6 = $$5;
  34389. }
  34390. $133 = (+_decfloat($0,$$6,$$0106$ph,$$0105$ph,$$0113,$2));
  34391. $$0114 = $133;
  34392. break L4;
  34393. break;
  34394. }
  34395. default: {
  34396. $112 = HEAP32[$4>>2]|0;
  34397. $113 = ($112|0)==(0|0);
  34398. if (!($113)) {
  34399. $114 = HEAP32[$3>>2]|0;
  34400. $115 = ((($114)) + -1|0);
  34401. HEAP32[$3>>2] = $115;
  34402. }
  34403. $116 = (___errno_location()|0);
  34404. HEAP32[$116>>2] = 22;
  34405. ___shlim($0,0);
  34406. $$0114 = 0.0;
  34407. break L4;
  34408. }
  34409. }
  34410. }
  34411. }
  34412. } while(0);
  34413. if ((label|0) == 23) {
  34414. $44 = HEAP32[$4>>2]|0;
  34415. $45 = ($44|0)==(0|0);
  34416. if (!($45)) {
  34417. $46 = HEAP32[$3>>2]|0;
  34418. $47 = ((($46)) + -1|0);
  34419. HEAP32[$3>>2] = $47;
  34420. }
  34421. $48 = ($2|0)!=(0);
  34422. $49 = ($$0107$lcssa>>>0)>(3);
  34423. $or$cond9 = $48 & $49;
  34424. if ($or$cond9) {
  34425. $$1108 = $$0107$lcssa;
  34426. while(1) {
  34427. if (!($45)) {
  34428. $50 = HEAP32[$3>>2]|0;
  34429. $51 = ((($50)) + -1|0);
  34430. HEAP32[$3>>2] = $51;
  34431. }
  34432. $52 = (($$1108) + -1)|0;
  34433. $$old8 = ($52>>>0)>(3);
  34434. if ($$old8) {
  34435. $$1108 = $52;
  34436. } else {
  34437. break;
  34438. }
  34439. }
  34440. }
  34441. }
  34442. $53 = (+($$0113|0));
  34443. $54 = $53 * inf;
  34444. $55 = $54;
  34445. $$0114 = $55;
  34446. }
  34447. } while(0);
  34448. return (+$$0114);
  34449. }
  34450. function _hexfloat($0,$1,$2,$3,$4) {
  34451. $0 = $0|0;
  34452. $1 = $1|0;
  34453. $2 = $2|0;
  34454. $3 = $3|0;
  34455. $4 = $4|0;
  34456. 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;
  34457. 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;
  34458. 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;
  34459. 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;
  34460. 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;
  34461. 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;
  34462. 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;
  34463. 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;
  34464. 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;
  34465. 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;
  34466. 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;
  34467. 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;
  34468. 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;
  34469. var $or$cond6 = 0, label = 0, sp = 0;
  34470. sp = STACKTOP;
  34471. $5 = ((($0)) + 4|0);
  34472. $6 = HEAP32[$5>>2]|0;
  34473. $7 = ((($0)) + 100|0);
  34474. $8 = HEAP32[$7>>2]|0;
  34475. $9 = ($6>>>0)<($8>>>0);
  34476. if ($9) {
  34477. $10 = ((($6)) + 1|0);
  34478. HEAP32[$5>>2] = $10;
  34479. $11 = HEAP8[$6>>0]|0;
  34480. $12 = $11&255;
  34481. $$0 = $12;$$0142 = 0;
  34482. } else {
  34483. $13 = (___shgetc($0)|0);
  34484. $$0 = $13;$$0142 = 0;
  34485. }
  34486. L4: while(1) {
  34487. switch ($$0|0) {
  34488. case 46: {
  34489. label = 8;
  34490. break L4;
  34491. break;
  34492. }
  34493. case 48: {
  34494. break;
  34495. }
  34496. default: {
  34497. $$0146 = 0;$$0148 = 0;$$0152 = 1.0;$$0155 = 0.0;$$0159 = 0;$$2 = $$0;$$2144 = $$0142;$101 = 0;$53 = 0;$55 = 0;$99 = 0;
  34498. break L4;
  34499. }
  34500. }
  34501. $14 = HEAP32[$5>>2]|0;
  34502. $15 = HEAP32[$7>>2]|0;
  34503. $16 = ($14>>>0)<($15>>>0);
  34504. if ($16) {
  34505. $17 = ((($14)) + 1|0);
  34506. HEAP32[$5>>2] = $17;
  34507. $18 = HEAP8[$14>>0]|0;
  34508. $19 = $18&255;
  34509. $$0 = $19;$$0142 = 1;
  34510. continue;
  34511. } else {
  34512. $20 = (___shgetc($0)|0);
  34513. $$0 = $20;$$0142 = 1;
  34514. continue;
  34515. }
  34516. }
  34517. if ((label|0) == 8) {
  34518. $21 = HEAP32[$5>>2]|0;
  34519. $22 = HEAP32[$7>>2]|0;
  34520. $23 = ($21>>>0)<($22>>>0);
  34521. if ($23) {
  34522. $24 = ((($21)) + 1|0);
  34523. HEAP32[$5>>2] = $24;
  34524. $25 = HEAP8[$21>>0]|0;
  34525. $26 = $25&255;
  34526. $$1$ph = $26;
  34527. } else {
  34528. $27 = (___shgetc($0)|0);
  34529. $$1$ph = $27;
  34530. }
  34531. $28 = ($$1$ph|0)==(48);
  34532. if ($28) {
  34533. $36 = 0;$37 = 0;
  34534. while(1) {
  34535. $29 = HEAP32[$5>>2]|0;
  34536. $30 = HEAP32[$7>>2]|0;
  34537. $31 = ($29>>>0)<($30>>>0);
  34538. if ($31) {
  34539. $32 = ((($29)) + 1|0);
  34540. HEAP32[$5>>2] = $32;
  34541. $33 = HEAP8[$29>>0]|0;
  34542. $34 = $33&255;
  34543. $41 = $34;
  34544. } else {
  34545. $35 = (___shgetc($0)|0);
  34546. $41 = $35;
  34547. }
  34548. $38 = (_i64Add(($36|0),($37|0),-1,-1)|0);
  34549. $39 = tempRet0;
  34550. $40 = ($41|0)==(48);
  34551. if ($40) {
  34552. $36 = $38;$37 = $39;
  34553. } else {
  34554. $$0146 = 1;$$0148 = 0;$$0152 = 1.0;$$0155 = 0.0;$$0159 = 0;$$2 = $41;$$2144 = 1;$101 = $39;$53 = 0;$55 = 0;$99 = $38;
  34555. break;
  34556. }
  34557. }
  34558. } else {
  34559. $$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;
  34560. }
  34561. }
  34562. while(1) {
  34563. $42 = (($$2) + -48)|0;
  34564. $43 = ($42>>>0)<(10);
  34565. $44 = ($$2|0)==(46);
  34566. if (!($43)) {
  34567. $45 = $$2 | 32;
  34568. $46 = (($45) + -97)|0;
  34569. $47 = ($46>>>0)<(6);
  34570. $or$cond6 = $44 | $47;
  34571. if (!($or$cond6)) {
  34572. $$2$lcssa = $$2;
  34573. break;
  34574. }
  34575. }
  34576. if ($44) {
  34577. $48 = ($$0146|0)==(0);
  34578. if ($48) {
  34579. $$1147 = 1;$$2150 = $$0148;$$2154 = $$0152;$$2157 = $$0155;$$2161 = $$0159;$$3145 = $$2144;$214 = $55;$215 = $53;$216 = $55;$217 = $53;
  34580. } else {
  34581. $$2$lcssa = 46;
  34582. break;
  34583. }
  34584. } else {
  34585. $49 = ($$2|0)>(57);
  34586. $50 = $$2 | 32;
  34587. $51 = (($50) + -87)|0;
  34588. $$0133 = $49 ? $51 : $42;
  34589. $52 = ($53|0)<(0);
  34590. $54 = ($55>>>0)<(8);
  34591. $56 = ($53|0)==(0);
  34592. $57 = $56 & $54;
  34593. $58 = $52 | $57;
  34594. do {
  34595. if ($58) {
  34596. $59 = $$0159 << 4;
  34597. $60 = (($$0133) + ($59))|0;
  34598. $$1149 = $$0148;$$1153 = $$0152;$$1156 = $$0155;$$1160 = $60;
  34599. } else {
  34600. $61 = ($53|0)<(0);
  34601. $62 = ($55>>>0)<(14);
  34602. $63 = ($53|0)==(0);
  34603. $64 = $63 & $62;
  34604. $65 = $61 | $64;
  34605. if ($65) {
  34606. $66 = (+($$0133|0));
  34607. $67 = $$0152 * 0.0625;
  34608. $68 = $67 * $66;
  34609. $69 = $$0155 + $68;
  34610. $$1149 = $$0148;$$1153 = $67;$$1156 = $69;$$1160 = $$0159;
  34611. break;
  34612. } else {
  34613. $70 = ($$0133|0)==(0);
  34614. $71 = ($$0148|0)!=(0);
  34615. $or$cond = $71 | $70;
  34616. $72 = $$0152 * 0.5;
  34617. $73 = $$0155 + $72;
  34618. $$0155$ = $or$cond ? $$0155 : $73;
  34619. $$0148$ = $or$cond ? $$0148 : 1;
  34620. $$1149 = $$0148$;$$1153 = $$0152;$$1156 = $$0155$;$$1160 = $$0159;
  34621. break;
  34622. }
  34623. }
  34624. } while(0);
  34625. $74 = (_i64Add(($55|0),($53|0),1,0)|0);
  34626. $75 = tempRet0;
  34627. $$1147 = $$0146;$$2150 = $$1149;$$2154 = $$1153;$$2157 = $$1156;$$2161 = $$1160;$$3145 = 1;$214 = $99;$215 = $101;$216 = $74;$217 = $75;
  34628. }
  34629. $76 = HEAP32[$5>>2]|0;
  34630. $77 = HEAP32[$7>>2]|0;
  34631. $78 = ($76>>>0)<($77>>>0);
  34632. if ($78) {
  34633. $79 = ((($76)) + 1|0);
  34634. HEAP32[$5>>2] = $79;
  34635. $80 = HEAP8[$76>>0]|0;
  34636. $81 = $80&255;
  34637. $$0146 = $$1147;$$0148 = $$2150;$$0152 = $$2154;$$0155 = $$2157;$$0159 = $$2161;$$2 = $81;$$2144 = $$3145;$101 = $215;$53 = $217;$55 = $216;$99 = $214;
  34638. continue;
  34639. } else {
  34640. $82 = (___shgetc($0)|0);
  34641. $$0146 = $$1147;$$0148 = $$2150;$$0152 = $$2154;$$0155 = $$2157;$$0159 = $$2161;$$2 = $82;$$2144 = $$3145;$101 = $215;$53 = $217;$55 = $216;$99 = $214;
  34642. continue;
  34643. }
  34644. }
  34645. $83 = ($$2144|0)==(0);
  34646. do {
  34647. if ($83) {
  34648. $84 = HEAP32[$7>>2]|0;
  34649. $85 = ($84|0)!=(0|0);
  34650. if ($85) {
  34651. $86 = HEAP32[$5>>2]|0;
  34652. $87 = ((($86)) + -1|0);
  34653. HEAP32[$5>>2] = $87;
  34654. }
  34655. $88 = ($4|0)==(0);
  34656. if ($88) {
  34657. ___shlim($0,0);
  34658. } else {
  34659. if ($85) {
  34660. $89 = HEAP32[$5>>2]|0;
  34661. $90 = ((($89)) + -1|0);
  34662. HEAP32[$5>>2] = $90;
  34663. }
  34664. $91 = ($$0146|0)==(0);
  34665. $92 = ($84|0)==(0|0);
  34666. $or$cond206 = $91 | $92;
  34667. if (!($or$cond206)) {
  34668. $93 = HEAP32[$5>>2]|0;
  34669. $94 = ((($93)) + -1|0);
  34670. HEAP32[$5>>2] = $94;
  34671. }
  34672. }
  34673. $95 = (+($3|0));
  34674. $96 = $95 * 0.0;
  34675. $$0165 = $96;
  34676. } else {
  34677. $97 = ($$0146|0)==(0);
  34678. $98 = $97 ? $55 : $99;
  34679. $100 = $97 ? $53 : $101;
  34680. $102 = ($53|0)<(0);
  34681. $103 = ($55>>>0)<(8);
  34682. $104 = ($53|0)==(0);
  34683. $105 = $104 & $103;
  34684. $106 = $102 | $105;
  34685. if ($106) {
  34686. $$3162183 = $$0159;$108 = $55;$109 = $53;
  34687. while(1) {
  34688. $107 = $$3162183 << 4;
  34689. $110 = (_i64Add(($108|0),($109|0),1,0)|0);
  34690. $111 = tempRet0;
  34691. $112 = ($111|0)<(0);
  34692. $113 = ($110>>>0)<(8);
  34693. $114 = ($111|0)==(0);
  34694. $115 = $114 & $113;
  34695. $116 = $112 | $115;
  34696. if ($116) {
  34697. $$3162183 = $107;$108 = $110;$109 = $111;
  34698. } else {
  34699. $$3162$lcssa = $107;
  34700. break;
  34701. }
  34702. }
  34703. } else {
  34704. $$3162$lcssa = $$0159;
  34705. }
  34706. $117 = $$2$lcssa | 32;
  34707. $118 = ($117|0)==(112);
  34708. if ($118) {
  34709. $119 = (_scanexp($0,$4)|0);
  34710. $120 = tempRet0;
  34711. $121 = ($119|0)==(0);
  34712. $122 = ($120|0)==(-2147483648);
  34713. $123 = $121 & $122;
  34714. if ($123) {
  34715. $124 = ($4|0)==(0);
  34716. if ($124) {
  34717. ___shlim($0,0);
  34718. $$0165 = 0.0;
  34719. break;
  34720. }
  34721. $125 = HEAP32[$7>>2]|0;
  34722. $126 = ($125|0)==(0|0);
  34723. if ($126) {
  34724. $137 = 0;$138 = 0;
  34725. } else {
  34726. $127 = HEAP32[$5>>2]|0;
  34727. $128 = ((($127)) + -1|0);
  34728. HEAP32[$5>>2] = $128;
  34729. $137 = 0;$138 = 0;
  34730. }
  34731. } else {
  34732. $137 = $119;$138 = $120;
  34733. }
  34734. } else {
  34735. $129 = HEAP32[$7>>2]|0;
  34736. $130 = ($129|0)==(0|0);
  34737. if ($130) {
  34738. $137 = 0;$138 = 0;
  34739. } else {
  34740. $131 = HEAP32[$5>>2]|0;
  34741. $132 = ((($131)) + -1|0);
  34742. HEAP32[$5>>2] = $132;
  34743. $137 = 0;$138 = 0;
  34744. }
  34745. }
  34746. $133 = (_bitshift64Shl(($98|0),($100|0),2)|0);
  34747. $134 = tempRet0;
  34748. $135 = (_i64Add(($133|0),($134|0),-32,-1)|0);
  34749. $136 = tempRet0;
  34750. $139 = (_i64Add(($135|0),($136|0),($137|0),($138|0))|0);
  34751. $140 = tempRet0;
  34752. $141 = ($$3162$lcssa|0)==(0);
  34753. if ($141) {
  34754. $142 = (+($3|0));
  34755. $143 = $142 * 0.0;
  34756. $$0165 = $143;
  34757. break;
  34758. }
  34759. $144 = (0 - ($2))|0;
  34760. $145 = ($144|0)<(0);
  34761. $146 = $145 << 31 >> 31;
  34762. $147 = ($140|0)>($146|0);
  34763. $148 = ($139>>>0)>($144>>>0);
  34764. $149 = ($140|0)==($146|0);
  34765. $150 = $149 & $148;
  34766. $151 = $147 | $150;
  34767. if ($151) {
  34768. $152 = (___errno_location()|0);
  34769. HEAP32[$152>>2] = 34;
  34770. $153 = (+($3|0));
  34771. $154 = $153 * 1.7976931348623157E+308;
  34772. $155 = $154 * 1.7976931348623157E+308;
  34773. $$0165 = $155;
  34774. break;
  34775. }
  34776. $156 = (($2) + -106)|0;
  34777. $157 = ($156|0)<(0);
  34778. $158 = $157 << 31 >> 31;
  34779. $159 = ($140|0)<($158|0);
  34780. $160 = ($139>>>0)<($156>>>0);
  34781. $161 = ($140|0)==($158|0);
  34782. $162 = $161 & $160;
  34783. $163 = $159 | $162;
  34784. if ($163) {
  34785. $165 = (___errno_location()|0);
  34786. HEAP32[$165>>2] = 34;
  34787. $166 = (+($3|0));
  34788. $167 = $166 * 2.2250738585072014E-308;
  34789. $168 = $167 * 2.2250738585072014E-308;
  34790. $$0165 = $168;
  34791. break;
  34792. }
  34793. $164 = ($$3162$lcssa|0)>(-1);
  34794. if ($164) {
  34795. $$3158179 = $$0155;$$4163178 = $$3162$lcssa;$173 = $139;$174 = $140;
  34796. while(1) {
  34797. $169 = !($$3158179 >= 0.5);
  34798. $170 = $$4163178 << 1;
  34799. $171 = $$3158179 + -1.0;
  34800. $not$ = $169 ^ 1;
  34801. $172 = $not$&1;
  34802. $$5164 = $170 | $172;
  34803. $$pn = $169 ? $$3158179 : $171;
  34804. $$4 = $$3158179 + $$pn;
  34805. $175 = (_i64Add(($173|0),($174|0),-1,-1)|0);
  34806. $176 = tempRet0;
  34807. $177 = ($$5164|0)>(-1);
  34808. if ($177) {
  34809. $$3158179 = $$4;$$4163178 = $$5164;$173 = $175;$174 = $176;
  34810. } else {
  34811. $$3158$lcssa = $$4;$$4163$lcssa = $$5164;$184 = $175;$185 = $176;
  34812. break;
  34813. }
  34814. }
  34815. } else {
  34816. $$3158$lcssa = $$0155;$$4163$lcssa = $$3162$lcssa;$184 = $139;$185 = $140;
  34817. }
  34818. $178 = ($1|0)<(0);
  34819. $179 = $178 << 31 >> 31;
  34820. $180 = ($2|0)<(0);
  34821. $181 = $180 << 31 >> 31;
  34822. $182 = (_i64Subtract(32,0,($2|0),($181|0))|0);
  34823. $183 = tempRet0;
  34824. $186 = (_i64Add(($182|0),($183|0),($184|0),($185|0))|0);
  34825. $187 = tempRet0;
  34826. $188 = ($179|0)>($187|0);
  34827. $189 = ($1>>>0)>($186>>>0);
  34828. $190 = ($179|0)==($187|0);
  34829. $191 = $190 & $189;
  34830. $192 = $188 | $191;
  34831. if ($192) {
  34832. $193 = ($186|0)>(0);
  34833. if ($193) {
  34834. $$0166 = $186;
  34835. label = 59;
  34836. } else {
  34837. $$0166170 = 0;$197 = 84;
  34838. label = 61;
  34839. }
  34840. } else {
  34841. $$0166 = $1;
  34842. label = 59;
  34843. }
  34844. if ((label|0) == 59) {
  34845. $194 = ($$0166|0)<(53);
  34846. $195 = (84 - ($$0166))|0;
  34847. if ($194) {
  34848. $$0166170 = $$0166;$197 = $195;
  34849. label = 61;
  34850. } else {
  34851. $$pre = (+($3|0));
  34852. $$0151 = 0.0;$$0166169 = $$0166;$$pre$phiZ2D = $$pre;
  34853. }
  34854. }
  34855. if ((label|0) == 61) {
  34856. $196 = (+($3|0));
  34857. $198 = (+_scalbn(1.0,$197));
  34858. $199 = (+_copysignl($198,$196));
  34859. $$0151 = $199;$$0166169 = $$0166170;$$pre$phiZ2D = $196;
  34860. }
  34861. $200 = ($$0166169|0)<(32);
  34862. $201 = $$3158$lcssa != 0.0;
  34863. $or$cond4 = $201 & $200;
  34864. $202 = $$4163$lcssa & 1;
  34865. $203 = ($202|0)==(0);
  34866. $or$cond168 = $203 & $or$cond4;
  34867. $204 = $or$cond168&1;
  34868. $$6 = (($204) + ($$4163$lcssa))|0;
  34869. $$5 = $or$cond168 ? 0.0 : $$3158$lcssa;
  34870. $205 = (+($$6>>>0));
  34871. $206 = $$pre$phiZ2D * $205;
  34872. $207 = $$0151 + $206;
  34873. $208 = $$pre$phiZ2D * $$5;
  34874. $209 = $208 + $207;
  34875. $210 = $209 - $$0151;
  34876. $211 = $210 != 0.0;
  34877. if (!($211)) {
  34878. $212 = (___errno_location()|0);
  34879. HEAP32[$212>>2] = 34;
  34880. }
  34881. $213 = (+_scalbnl($210,$184));
  34882. $$0165 = $213;
  34883. }
  34884. } while(0);
  34885. return (+$$0165);
  34886. }
  34887. function _decfloat($0,$1,$2,$3,$4,$5) {
  34888. $0 = $0|0;
  34889. $1 = $1|0;
  34890. $2 = $2|0;
  34891. $3 = $3|0;
  34892. $4 = $4|0;
  34893. $5 = $5|0;
  34894. 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;
  34895. 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;
  34896. 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;
  34897. 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;
  34898. 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;
  34899. 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;
  34900. 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;
  34901. 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;
  34902. 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;
  34903. 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;
  34904. 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;
  34905. 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;
  34906. 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;
  34907. 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;
  34908. 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;
  34909. 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;
  34910. 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;
  34911. 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;
  34912. 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;
  34913. 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;
  34914. 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;
  34915. 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;
  34916. 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;
  34917. 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;
  34918. 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;
  34919. var label = 0, sp = 0;
  34920. sp = STACKTOP;
  34921. STACKTOP = STACKTOP + 512|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(512|0);
  34922. $6 = sp;
  34923. $sum = (($3) + ($2))|0;
  34924. $7 = (0 - ($sum))|0;
  34925. $8 = ((($0)) + 4|0);
  34926. $9 = ((($0)) + 100|0);
  34927. $$0329 = $1;$$0396 = 0;
  34928. L1: while(1) {
  34929. switch ($$0329|0) {
  34930. case 46: {
  34931. label = 6;
  34932. break L1;
  34933. break;
  34934. }
  34935. case 48: {
  34936. break;
  34937. }
  34938. default: {
  34939. $$0393 = 0;$$2 = $$0329;$$2398 = $$0396;$366 = 0;$367 = 0;
  34940. break L1;
  34941. }
  34942. }
  34943. $10 = HEAP32[$8>>2]|0;
  34944. $11 = HEAP32[$9>>2]|0;
  34945. $12 = ($10>>>0)<($11>>>0);
  34946. if ($12) {
  34947. $13 = ((($10)) + 1|0);
  34948. HEAP32[$8>>2] = $13;
  34949. $14 = HEAP8[$10>>0]|0;
  34950. $15 = $14&255;
  34951. $$0329 = $15;$$0396 = 1;
  34952. continue;
  34953. } else {
  34954. $16 = (___shgetc($0)|0);
  34955. $$0329 = $16;$$0396 = 1;
  34956. continue;
  34957. }
  34958. }
  34959. if ((label|0) == 6) {
  34960. $17 = HEAP32[$8>>2]|0;
  34961. $18 = HEAP32[$9>>2]|0;
  34962. $19 = ($17>>>0)<($18>>>0);
  34963. if ($19) {
  34964. $20 = ((($17)) + 1|0);
  34965. HEAP32[$8>>2] = $20;
  34966. $21 = HEAP8[$17>>0]|0;
  34967. $22 = $21&255;
  34968. $$1330$ph = $22;
  34969. } else {
  34970. $23 = (___shgetc($0)|0);
  34971. $$1330$ph = $23;
  34972. }
  34973. $24 = ($$1330$ph|0)==(48);
  34974. if ($24) {
  34975. $25 = 0;$26 = 0;
  34976. while(1) {
  34977. $27 = (_i64Add(($25|0),($26|0),-1,-1)|0);
  34978. $28 = tempRet0;
  34979. $29 = HEAP32[$8>>2]|0;
  34980. $30 = HEAP32[$9>>2]|0;
  34981. $31 = ($29>>>0)<($30>>>0);
  34982. if ($31) {
  34983. $32 = ((($29)) + 1|0);
  34984. HEAP32[$8>>2] = $32;
  34985. $33 = HEAP8[$29>>0]|0;
  34986. $34 = $33&255;
  34987. $$1330$be = $34;
  34988. } else {
  34989. $35 = (___shgetc($0)|0);
  34990. $$1330$be = $35;
  34991. }
  34992. $36 = ($$1330$be|0)==(48);
  34993. if ($36) {
  34994. $25 = $27;$26 = $28;
  34995. } else {
  34996. $$0393 = 1;$$2 = $$1330$be;$$2398 = 1;$366 = $27;$367 = $28;
  34997. break;
  34998. }
  34999. }
  35000. } else {
  35001. $$0393 = 1;$$2 = $$1330$ph;$$2398 = $$0396;$366 = 0;$367 = 0;
  35002. }
  35003. }
  35004. HEAP32[$6>>2] = 0;
  35005. $37 = (($$2) + -48)|0;
  35006. $38 = ($37>>>0)<(10);
  35007. $39 = ($$2|0)==(46);
  35008. $40 = $39 | $38;
  35009. L20: do {
  35010. if ($40) {
  35011. $41 = ((($6)) + 496|0);
  35012. $$0341513 = 0;$$0345512 = 0;$$0401509 = 0;$$1394511 = $$0393;$$3399510 = $$2398;$$3514 = $$2;$368 = $39;$369 = $37;$370 = $366;$371 = $367;$44 = 0;$45 = 0;
  35013. L22: while(1) {
  35014. do {
  35015. if ($368) {
  35016. $cond = ($$1394511|0)==(0);
  35017. if ($cond) {
  35018. $$2343 = $$0341513;$$2347 = $$0345512;$$2395 = 1;$$2403 = $$0401509;$$4400 = $$3399510;$372 = $44;$373 = $45;$374 = $44;$375 = $45;
  35019. } else {
  35020. break L22;
  35021. }
  35022. } else {
  35023. $43 = ($$0345512|0)<(125);
  35024. $46 = (_i64Add(($44|0),($45|0),1,0)|0);
  35025. $47 = tempRet0;
  35026. $48 = ($$3514|0)!=(48);
  35027. if (!($43)) {
  35028. if (!($48)) {
  35029. $$2343 = $$0341513;$$2347 = $$0345512;$$2395 = $$1394511;$$2403 = $$0401509;$$4400 = $$3399510;$372 = $370;$373 = $371;$374 = $46;$375 = $47;
  35030. break;
  35031. }
  35032. $57 = HEAP32[$41>>2]|0;
  35033. $58 = $57 | 1;
  35034. HEAP32[$41>>2] = $58;
  35035. $$2343 = $$0341513;$$2347 = $$0345512;$$2395 = $$1394511;$$2403 = $$0401509;$$4400 = $$3399510;$372 = $370;$373 = $371;$374 = $46;$375 = $47;
  35036. break;
  35037. }
  35038. $$$0401 = $48 ? $46 : $$0401509;
  35039. $49 = ($$0341513|0)==(0);
  35040. $$pre = (($6) + ($$0345512<<2)|0);
  35041. if ($49) {
  35042. $$sink = $369;
  35043. } else {
  35044. $50 = HEAP32[$$pre>>2]|0;
  35045. $51 = ($50*10)|0;
  35046. $52 = (($$3514) + -48)|0;
  35047. $53 = (($52) + ($51))|0;
  35048. $$sink = $53;
  35049. }
  35050. HEAP32[$$pre>>2] = $$sink;
  35051. $54 = (($$0341513) + 1)|0;
  35052. $55 = ($54|0)==(9);
  35053. $56 = $55&1;
  35054. $$$0345 = (($56) + ($$0345512))|0;
  35055. $$413 = $55 ? 0 : $54;
  35056. $$2343 = $$413;$$2347 = $$$0345;$$2395 = $$1394511;$$2403 = $$$0401;$$4400 = 1;$372 = $370;$373 = $371;$374 = $46;$375 = $47;
  35057. }
  35058. } while(0);
  35059. $59 = HEAP32[$8>>2]|0;
  35060. $60 = HEAP32[$9>>2]|0;
  35061. $61 = ($59>>>0)<($60>>>0);
  35062. if ($61) {
  35063. $62 = ((($59)) + 1|0);
  35064. HEAP32[$8>>2] = $62;
  35065. $63 = HEAP8[$59>>0]|0;
  35066. $64 = $63&255;
  35067. $$3$be = $64;
  35068. } else {
  35069. $65 = (___shgetc($0)|0);
  35070. $$3$be = $65;
  35071. }
  35072. $66 = (($$3$be) + -48)|0;
  35073. $67 = ($66>>>0)<(10);
  35074. $68 = ($$3$be|0)==(46);
  35075. $69 = $68 | $67;
  35076. if ($69) {
  35077. $$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;
  35078. } else {
  35079. $$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;
  35080. label = 29;
  35081. break L20;
  35082. }
  35083. }
  35084. $42 = ($$3399510|0)!=(0);
  35085. $$0341465 = $$0341513;$$0345469 = $$0345512;$$0401475 = $$0401509;$376 = $44;$377 = $45;$378 = $370;$379 = $371;$380 = $42;
  35086. label = 37;
  35087. } else {
  35088. $$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;
  35089. label = 29;
  35090. }
  35091. } while(0);
  35092. do {
  35093. if ((label|0) == 29) {
  35094. $70 = ($$1394$lcssa|0)==(0);
  35095. $71 = $70 ? $73 : $72;
  35096. $74 = $70 ? $76 : $75;
  35097. $77 = ($$3399$lcssa|0)!=(0);
  35098. $78 = $$3$lcssa | 32;
  35099. $79 = ($78|0)==(101);
  35100. $or$cond415 = $77 & $79;
  35101. if (!($or$cond415)) {
  35102. $94 = ($$3$lcssa|0)>(-1);
  35103. if ($94) {
  35104. $$0341465 = $$0341$lcssa;$$0345469 = $$0345$lcssa;$$0401475 = $$0401$lcssa;$376 = $73;$377 = $76;$378 = $71;$379 = $74;$380 = $77;
  35105. label = 37;
  35106. break;
  35107. } else {
  35108. $$0341464 = $$0341$lcssa;$$0345468 = $$0345$lcssa;$$0401474 = $$0401$lcssa;$381 = $73;$382 = $76;$383 = $77;$384 = $71;$385 = $74;
  35109. label = 39;
  35110. break;
  35111. }
  35112. }
  35113. $80 = (_scanexp($0,$5)|0);
  35114. $81 = tempRet0;
  35115. $82 = ($80|0)==(0);
  35116. $83 = ($81|0)==(-2147483648);
  35117. $84 = $82 & $83;
  35118. if ($84) {
  35119. $85 = ($5|0)==(0);
  35120. if ($85) {
  35121. ___shlim($0,0);
  35122. $$1 = 0.0;
  35123. break;
  35124. }
  35125. $86 = HEAP32[$9>>2]|0;
  35126. $87 = ($86|0)==(0|0);
  35127. if ($87) {
  35128. $90 = 0;$91 = 0;
  35129. } else {
  35130. $88 = HEAP32[$8>>2]|0;
  35131. $89 = ((($88)) + -1|0);
  35132. HEAP32[$8>>2] = $89;
  35133. $90 = 0;$91 = 0;
  35134. }
  35135. } else {
  35136. $90 = $80;$91 = $81;
  35137. }
  35138. $92 = (_i64Add(($90|0),($91|0),($71|0),($74|0))|0);
  35139. $93 = tempRet0;
  35140. $$0341463 = $$0341$lcssa;$$0345467 = $$0345$lcssa;$$0401473 = $$0401$lcssa;$105 = $92;$106 = $73;$108 = $93;$109 = $76;
  35141. label = 41;
  35142. }
  35143. } while(0);
  35144. if ((label|0) == 37) {
  35145. $95 = HEAP32[$9>>2]|0;
  35146. $96 = ($95|0)==(0|0);
  35147. if ($96) {
  35148. $$0341464 = $$0341465;$$0345468 = $$0345469;$$0401474 = $$0401475;$381 = $376;$382 = $377;$383 = $380;$384 = $378;$385 = $379;
  35149. label = 39;
  35150. } else {
  35151. $97 = HEAP32[$8>>2]|0;
  35152. $98 = ((($97)) + -1|0);
  35153. HEAP32[$8>>2] = $98;
  35154. if ($380) {
  35155. $$0341463 = $$0341465;$$0345467 = $$0345469;$$0401473 = $$0401475;$105 = $378;$106 = $376;$108 = $379;$109 = $377;
  35156. label = 41;
  35157. } else {
  35158. label = 40;
  35159. }
  35160. }
  35161. }
  35162. if ((label|0) == 39) {
  35163. if ($383) {
  35164. $$0341463 = $$0341464;$$0345467 = $$0345468;$$0401473 = $$0401474;$105 = $384;$106 = $381;$108 = $385;$109 = $382;
  35165. label = 41;
  35166. } else {
  35167. label = 40;
  35168. }
  35169. }
  35170. do {
  35171. if ((label|0) == 40) {
  35172. $99 = (___errno_location()|0);
  35173. HEAP32[$99>>2] = 22;
  35174. ___shlim($0,0);
  35175. $$1 = 0.0;
  35176. }
  35177. else if ((label|0) == 41) {
  35178. $100 = HEAP32[$6>>2]|0;
  35179. $101 = ($100|0)==(0);
  35180. if ($101) {
  35181. $102 = (+($4|0));
  35182. $103 = $102 * 0.0;
  35183. $$1 = $103;
  35184. break;
  35185. }
  35186. $104 = ($105|0)==($106|0);
  35187. $107 = ($108|0)==($109|0);
  35188. $110 = $104 & $107;
  35189. $111 = ($109|0)<(0);
  35190. $112 = ($106>>>0)<(10);
  35191. $113 = ($109|0)==(0);
  35192. $114 = $113 & $112;
  35193. $115 = $111 | $114;
  35194. $or$cond = $115 & $110;
  35195. if ($or$cond) {
  35196. $116 = ($2|0)>(30);
  35197. $117 = $100 >>> $2;
  35198. $118 = ($117|0)==(0);
  35199. $or$cond417 = $116 | $118;
  35200. if ($or$cond417) {
  35201. $119 = (+($4|0));
  35202. $120 = (+($100>>>0));
  35203. $121 = $119 * $120;
  35204. $$1 = $121;
  35205. break;
  35206. }
  35207. }
  35208. $122 = (($3|0) / -2)&-1;
  35209. $123 = ($122|0)<(0);
  35210. $124 = $123 << 31 >> 31;
  35211. $125 = ($108|0)>($124|0);
  35212. $126 = ($105>>>0)>($122>>>0);
  35213. $127 = ($108|0)==($124|0);
  35214. $128 = $127 & $126;
  35215. $129 = $125 | $128;
  35216. if ($129) {
  35217. $130 = (___errno_location()|0);
  35218. HEAP32[$130>>2] = 34;
  35219. $131 = (+($4|0));
  35220. $132 = $131 * 1.7976931348623157E+308;
  35221. $133 = $132 * 1.7976931348623157E+308;
  35222. $$1 = $133;
  35223. break;
  35224. }
  35225. $134 = (($3) + -106)|0;
  35226. $135 = ($134|0)<(0);
  35227. $136 = $135 << 31 >> 31;
  35228. $137 = ($108|0)<($136|0);
  35229. $138 = ($105>>>0)<($134>>>0);
  35230. $139 = ($108|0)==($136|0);
  35231. $140 = $139 & $138;
  35232. $141 = $137 | $140;
  35233. if ($141) {
  35234. $142 = (___errno_location()|0);
  35235. HEAP32[$142>>2] = 34;
  35236. $143 = (+($4|0));
  35237. $144 = $143 * 2.2250738585072014E-308;
  35238. $145 = $144 * 2.2250738585072014E-308;
  35239. $$1 = $145;
  35240. break;
  35241. }
  35242. $146 = ($$0341463|0)==(0);
  35243. if ($146) {
  35244. $$3348 = $$0345467;
  35245. } else {
  35246. $147 = ($$0341463|0)<(9);
  35247. if ($147) {
  35248. $148 = (($6) + ($$0345467<<2)|0);
  35249. $$promoted = HEAP32[$148>>2]|0;
  35250. $$3344503 = $$0341463;$150 = $$promoted;
  35251. while(1) {
  35252. $149 = ($150*10)|0;
  35253. $151 = (($$3344503) + 1)|0;
  35254. $exitcond551 = ($151|0)==(9);
  35255. if ($exitcond551) {
  35256. break;
  35257. } else {
  35258. $$3344503 = $151;$150 = $149;
  35259. }
  35260. }
  35261. HEAP32[$148>>2] = $149;
  35262. }
  35263. $152 = (($$0345467) + 1)|0;
  35264. $$3348 = $152;
  35265. }
  35266. $153 = ($$0401473|0)<(9);
  35267. if ($153) {
  35268. $154 = ($$0401473|0)<=($105|0);
  35269. $155 = ($105|0)<(18);
  35270. $or$cond5 = $154 & $155;
  35271. if ($or$cond5) {
  35272. $156 = ($105|0)==(9);
  35273. $157 = HEAP32[$6>>2]|0;
  35274. if ($156) {
  35275. $158 = (+($4|0));
  35276. $159 = (+($157>>>0));
  35277. $160 = $158 * $159;
  35278. $$1 = $160;
  35279. break;
  35280. }
  35281. $161 = ($105|0)<(9);
  35282. if ($161) {
  35283. $162 = (+($4|0));
  35284. $163 = (+($157>>>0));
  35285. $164 = $162 * $163;
  35286. $165 = (8 - ($105))|0;
  35287. $166 = (4408 + ($165<<2)|0);
  35288. $167 = HEAP32[$166>>2]|0;
  35289. $168 = (+($167|0));
  35290. $169 = $164 / $168;
  35291. $$1 = $169;
  35292. break;
  35293. }
  35294. $$neg442 = Math_imul($105, -3)|0;
  35295. $$neg443 = (($2) + 27)|0;
  35296. $170 = (($$neg443) + ($$neg442))|0;
  35297. $171 = ($170|0)>(30);
  35298. $172 = $157 >>> $170;
  35299. $173 = ($172|0)==(0);
  35300. $or$cond419 = $171 | $173;
  35301. if ($or$cond419) {
  35302. $174 = (($105) + -10)|0;
  35303. $175 = (4408 + ($174<<2)|0);
  35304. $176 = (+($4|0));
  35305. $177 = (+($157>>>0));
  35306. $178 = $176 * $177;
  35307. $179 = HEAP32[$175>>2]|0;
  35308. $180 = (+($179|0));
  35309. $181 = $178 * $180;
  35310. $$1 = $181;
  35311. break;
  35312. }
  35313. }
  35314. }
  35315. $182 = (($105|0) % 9)&-1;
  35316. $183 = ($182|0)==(0);
  35317. if ($183) {
  35318. $$0380$ph = 0;$$1373$ph448 = $$3348;$$2352$ph449 = 0;$$2387$ph447 = $105;
  35319. } else {
  35320. $184 = ($105|0)>(-1);
  35321. $185 = (($182) + 9)|0;
  35322. $186 = $184 ? $182 : $185;
  35323. $187 = (8 - ($186))|0;
  35324. $188 = (4408 + ($187<<2)|0);
  35325. $189 = HEAP32[$188>>2]|0;
  35326. $190 = ($$3348|0)==(0);
  35327. if ($190) {
  35328. $$0350$lcssa554 = 0;$$0372 = 0;$$0385$lcssa553 = $105;
  35329. } else {
  35330. $191 = (1000000000 / ($189|0))&-1;
  35331. $$0340496 = 0;$$0350494 = 0;$$0385493 = $105;$$4349495 = 0;
  35332. while(1) {
  35333. $192 = (($6) + ($$4349495<<2)|0);
  35334. $193 = HEAP32[$192>>2]|0;
  35335. $194 = (($193>>>0) % ($189>>>0))&-1;
  35336. $195 = (($193>>>0) / ($189>>>0))&-1;
  35337. $196 = (($195) + ($$0340496))|0;
  35338. HEAP32[$192>>2] = $196;
  35339. $197 = Math_imul($191, $194)|0;
  35340. $198 = ($$4349495|0)==($$0350494|0);
  35341. $199 = ($196|0)==(0);
  35342. $or$cond420 = $198 & $199;
  35343. $200 = (($$0350494) + 1)|0;
  35344. $201 = $200 & 127;
  35345. $202 = (($$0385493) + -9)|0;
  35346. $$$0385 = $or$cond420 ? $202 : $$0385493;
  35347. $$$0350 = $or$cond420 ? $201 : $$0350494;
  35348. $203 = (($$4349495) + 1)|0;
  35349. $204 = ($203|0)==($$3348|0);
  35350. if ($204) {
  35351. break;
  35352. } else {
  35353. $$0340496 = $197;$$0350494 = $$$0350;$$0385493 = $$$0385;$$4349495 = $203;
  35354. }
  35355. }
  35356. $205 = ($197|0)==(0);
  35357. if ($205) {
  35358. $$0350$lcssa554 = $$$0350;$$0372 = $$3348;$$0385$lcssa553 = $$$0385;
  35359. } else {
  35360. $206 = (($6) + ($$3348<<2)|0);
  35361. $207 = (($$3348) + 1)|0;
  35362. HEAP32[$206>>2] = $197;
  35363. $$0350$lcssa554 = $$$0350;$$0372 = $207;$$0385$lcssa553 = $$$0385;
  35364. }
  35365. }
  35366. $208 = (9 - ($186))|0;
  35367. $209 = (($208) + ($$0385$lcssa553))|0;
  35368. $$0380$ph = 0;$$1373$ph448 = $$0372;$$2352$ph449 = $$0350$lcssa554;$$2387$ph447 = $209;
  35369. }
  35370. L101: while(1) {
  35371. $210 = ($$2387$ph447|0)<(18);
  35372. $211 = ($$2387$ph447|0)==(18);
  35373. $212 = (($6) + ($$2352$ph449<<2)|0);
  35374. $$0380 = $$0380$ph;$$1373 = $$1373$ph448;
  35375. while(1) {
  35376. if (!($210)) {
  35377. if (!($211)) {
  35378. $$1381$ph = $$0380;$$4354$ph = $$2352$ph449;$$4389$ph445 = $$2387$ph447;$$6378$ph = $$1373;
  35379. break L101;
  35380. }
  35381. $213 = HEAP32[$212>>2]|0;
  35382. $214 = ($213>>>0)<(9007199);
  35383. if (!($214)) {
  35384. $$1381$ph = $$0380;$$4354$ph = $$2352$ph449;$$4389$ph445 = 18;$$6378$ph = $$1373;
  35385. break L101;
  35386. }
  35387. }
  35388. $215 = (($$1373) + 127)|0;
  35389. $$0334 = 0;$$2374 = $$1373;$$5$in = $215;
  35390. while(1) {
  35391. $$5 = $$5$in & 127;
  35392. $216 = (($6) + ($$5<<2)|0);
  35393. $217 = HEAP32[$216>>2]|0;
  35394. $218 = (_bitshift64Shl(($217|0),0,29)|0);
  35395. $219 = tempRet0;
  35396. $220 = (_i64Add(($218|0),($219|0),($$0334|0),0)|0);
  35397. $221 = tempRet0;
  35398. $222 = ($221>>>0)>(0);
  35399. $223 = ($220>>>0)>(1000000000);
  35400. $224 = ($221|0)==(0);
  35401. $225 = $224 & $223;
  35402. $226 = $222 | $225;
  35403. if ($226) {
  35404. $227 = (___udivdi3(($220|0),($221|0),1000000000,0)|0);
  35405. $228 = tempRet0;
  35406. $229 = (___uremdi3(($220|0),($221|0),1000000000,0)|0);
  35407. $230 = tempRet0;
  35408. $$1335 = $227;$$sink421$off0 = $229;
  35409. } else {
  35410. $$1335 = 0;$$sink421$off0 = $220;
  35411. }
  35412. HEAP32[$216>>2] = $$sink421$off0;
  35413. $231 = (($$2374) + 127)|0;
  35414. $232 = $231 & 127;
  35415. $233 = ($$5|0)!=($232|0);
  35416. $234 = ($$5|0)==($$2352$ph449|0);
  35417. $or$cond422 = $233 | $234;
  35418. $or$cond422$not = $or$cond422 ^ 1;
  35419. $235 = ($$sink421$off0|0)==(0);
  35420. $or$cond423 = $235 & $or$cond422$not;
  35421. $$3375 = $or$cond423 ? $$5 : $$2374;
  35422. $236 = (($$5) + -1)|0;
  35423. if ($234) {
  35424. break;
  35425. } else {
  35426. $$0334 = $$1335;$$2374 = $$3375;$$5$in = $236;
  35427. }
  35428. }
  35429. $237 = (($$0380) + -29)|0;
  35430. $238 = ($$1335|0)==(0);
  35431. if ($238) {
  35432. $$0380 = $237;$$1373 = $$3375;
  35433. } else {
  35434. break;
  35435. }
  35436. }
  35437. $239 = (($$2387$ph447) + 9)|0;
  35438. $240 = (($$2352$ph449) + 127)|0;
  35439. $241 = $240 & 127;
  35440. $242 = ($241|0)==($$3375|0);
  35441. $243 = (($$3375) + 127)|0;
  35442. $244 = $243 & 127;
  35443. $245 = (($$3375) + 126)|0;
  35444. $246 = $245 & 127;
  35445. $247 = (($6) + ($246<<2)|0);
  35446. if ($242) {
  35447. $248 = (($6) + ($244<<2)|0);
  35448. $249 = HEAP32[$248>>2]|0;
  35449. $250 = HEAP32[$247>>2]|0;
  35450. $251 = $250 | $249;
  35451. HEAP32[$247>>2] = $251;
  35452. $$4376 = $244;
  35453. } else {
  35454. $$4376 = $$3375;
  35455. }
  35456. $252 = (($6) + ($241<<2)|0);
  35457. HEAP32[$252>>2] = $$1335;
  35458. $$0380$ph = $237;$$1373$ph448 = $$4376;$$2352$ph449 = $241;$$2387$ph447 = $239;
  35459. }
  35460. L119: while(1) {
  35461. $289 = (($$6378$ph) + 1)|0;
  35462. $287 = $289 & 127;
  35463. $290 = (($$6378$ph) + 127)|0;
  35464. $291 = $290 & 127;
  35465. $292 = (($6) + ($291<<2)|0);
  35466. $$1381$ph558 = $$1381$ph;$$4354$ph559 = $$4354$ph;$$4389$ph = $$4389$ph445;
  35467. while(1) {
  35468. $265 = ($$4389$ph|0)==(18);
  35469. $293 = ($$4389$ph|0)>(27);
  35470. $$425 = $293 ? 9 : 1;
  35471. $$1381 = $$1381$ph558;$$4354 = $$4354$ph559;
  35472. while(1) {
  35473. $$0336486 = 0;
  35474. while(1) {
  35475. $253 = (($$0336486) + ($$4354))|0;
  35476. $254 = $253 & 127;
  35477. $255 = ($254|0)==($$6378$ph|0);
  35478. if ($255) {
  35479. $$1337 = 2;
  35480. label = 88;
  35481. break;
  35482. }
  35483. $256 = (($6) + ($254<<2)|0);
  35484. $257 = HEAP32[$256>>2]|0;
  35485. $258 = (4440 + ($$0336486<<2)|0);
  35486. $259 = HEAP32[$258>>2]|0;
  35487. $260 = ($257>>>0)<($259>>>0);
  35488. if ($260) {
  35489. $$1337 = 2;
  35490. label = 88;
  35491. break;
  35492. }
  35493. $261 = ($257>>>0)>($259>>>0);
  35494. if ($261) {
  35495. break;
  35496. }
  35497. $262 = (($$0336486) + 1)|0;
  35498. $263 = ($262|0)<(2);
  35499. if ($263) {
  35500. $$0336486 = $262;
  35501. } else {
  35502. $$1337 = $262;
  35503. label = 88;
  35504. break;
  35505. }
  35506. }
  35507. if ((label|0) == 88) {
  35508. label = 0;
  35509. $264 = ($$1337|0)==(2);
  35510. $or$cond11 = $265 & $264;
  35511. if ($or$cond11) {
  35512. $$0365484 = 0.0;$$4485 = 0;$$9483 = $$6378$ph;
  35513. break L119;
  35514. }
  35515. }
  35516. $266 = (($$425) + ($$1381))|0;
  35517. $267 = ($$4354|0)==($$6378$ph|0);
  35518. if ($267) {
  35519. $$1381 = $266;$$4354 = $$6378$ph;
  35520. } else {
  35521. break;
  35522. }
  35523. }
  35524. $268 = 1 << $$425;
  35525. $269 = (($268) + -1)|0;
  35526. $270 = 1000000000 >>> $$425;
  35527. $$0332490 = 0;$$5355488 = $$4354;$$5390487 = $$4389$ph;$$6489 = $$4354;
  35528. while(1) {
  35529. $271 = (($6) + ($$6489<<2)|0);
  35530. $272 = HEAP32[$271>>2]|0;
  35531. $273 = $272 & $269;
  35532. $274 = $272 >>> $$425;
  35533. $275 = (($274) + ($$0332490))|0;
  35534. HEAP32[$271>>2] = $275;
  35535. $276 = Math_imul($273, $270)|0;
  35536. $277 = ($$6489|0)==($$5355488|0);
  35537. $278 = ($275|0)==(0);
  35538. $or$cond426 = $277 & $278;
  35539. $279 = (($$5355488) + 1)|0;
  35540. $280 = $279 & 127;
  35541. $281 = (($$5390487) + -9)|0;
  35542. $$$5390 = $or$cond426 ? $281 : $$5390487;
  35543. $$$5355 = $or$cond426 ? $280 : $$5355488;
  35544. $282 = (($$6489) + 1)|0;
  35545. $283 = $282 & 127;
  35546. $284 = ($283|0)==($$6378$ph|0);
  35547. if ($284) {
  35548. break;
  35549. } else {
  35550. $$0332490 = $276;$$5355488 = $$$5355;$$5390487 = $$$5390;$$6489 = $283;
  35551. }
  35552. }
  35553. $285 = ($276|0)==(0);
  35554. if ($285) {
  35555. $$1381$ph558 = $266;$$4354$ph559 = $$$5355;$$4389$ph = $$$5390;
  35556. continue;
  35557. }
  35558. $286 = ($287|0)==($$$5355|0);
  35559. if (!($286)) {
  35560. break;
  35561. }
  35562. $294 = HEAP32[$292>>2]|0;
  35563. $295 = $294 | 1;
  35564. HEAP32[$292>>2] = $295;
  35565. $$1381$ph558 = $266;$$4354$ph559 = $$$5355;$$4389$ph = $$$5390;
  35566. }
  35567. $288 = (($6) + ($$6378$ph<<2)|0);
  35568. HEAP32[$288>>2] = $276;
  35569. $$1381$ph = $266;$$4354$ph = $$$5355;$$4389$ph445 = $$$5390;$$6378$ph = $287;
  35570. }
  35571. while(1) {
  35572. $296 = (($$4485) + ($$4354))|0;
  35573. $297 = $296 & 127;
  35574. $298 = ($297|0)==($$9483|0);
  35575. $299 = (($$9483) + 1)|0;
  35576. $300 = $299 & 127;
  35577. if ($298) {
  35578. $301 = (($300) + -1)|0;
  35579. $302 = (($6) + ($301<<2)|0);
  35580. HEAP32[$302>>2] = 0;
  35581. $$10 = $300;
  35582. } else {
  35583. $$10 = $$9483;
  35584. }
  35585. $303 = $$0365484 * 1.0E+9;
  35586. $304 = (($6) + ($297<<2)|0);
  35587. $305 = HEAP32[$304>>2]|0;
  35588. $306 = (+($305>>>0));
  35589. $307 = $303 + $306;
  35590. $308 = (($$4485) + 1)|0;
  35591. $exitcond = ($308|0)==(2);
  35592. if ($exitcond) {
  35593. break;
  35594. } else {
  35595. $$0365484 = $307;$$4485 = $308;$$9483 = $$10;
  35596. }
  35597. }
  35598. $309 = (+($4|0));
  35599. $310 = $309 * $307;
  35600. $311 = (($$1381) + 53)|0;
  35601. $312 = (($311) - ($3))|0;
  35602. $313 = ($312|0)<($2|0);
  35603. $314 = ($312|0)>(0);
  35604. $$ = $314 ? $312 : 0;
  35605. $$0333 = $313 ? $$ : $2;
  35606. $315 = ($$0333|0)<(53);
  35607. if ($315) {
  35608. $316 = (105 - ($$0333))|0;
  35609. $317 = (+_scalbn(1.0,$316));
  35610. $318 = (+_copysignl($317,$310));
  35611. $319 = (53 - ($$0333))|0;
  35612. $320 = (+_scalbn(1.0,$319));
  35613. $321 = (+_fmodl($310,$320));
  35614. $322 = $310 - $321;
  35615. $323 = $318 + $322;
  35616. $$0360 = $318;$$0361 = $321;$$1366 = $323;
  35617. } else {
  35618. $$0360 = 0.0;$$0361 = 0.0;$$1366 = $310;
  35619. }
  35620. $324 = (($$4354) + 2)|0;
  35621. $325 = $324 & 127;
  35622. $326 = ($325|0)==($$10|0);
  35623. if ($326) {
  35624. $$3364 = $$0361;
  35625. } else {
  35626. $327 = (($6) + ($325<<2)|0);
  35627. $328 = HEAP32[$327>>2]|0;
  35628. $329 = ($328>>>0)<(500000000);
  35629. do {
  35630. if ($329) {
  35631. $330 = ($328|0)==(0);
  35632. if ($330) {
  35633. $331 = (($$4354) + 3)|0;
  35634. $332 = $331 & 127;
  35635. $333 = ($332|0)==($$10|0);
  35636. if ($333) {
  35637. $$1362 = $$0361;
  35638. break;
  35639. }
  35640. }
  35641. $334 = $309 * 0.25;
  35642. $335 = $334 + $$0361;
  35643. $$1362 = $335;
  35644. } else {
  35645. $336 = ($328|0)==(500000000);
  35646. if (!($336)) {
  35647. $337 = $309 * 0.75;
  35648. $338 = $337 + $$0361;
  35649. $$1362 = $338;
  35650. break;
  35651. }
  35652. $339 = (($$4354) + 3)|0;
  35653. $340 = $339 & 127;
  35654. $341 = ($340|0)==($$10|0);
  35655. if ($341) {
  35656. $342 = $309 * 0.5;
  35657. $343 = $342 + $$0361;
  35658. $$1362 = $343;
  35659. break;
  35660. } else {
  35661. $344 = $309 * 0.75;
  35662. $345 = $344 + $$0361;
  35663. $$1362 = $345;
  35664. break;
  35665. }
  35666. }
  35667. } while(0);
  35668. $346 = (53 - ($$0333))|0;
  35669. $347 = ($346|0)>(1);
  35670. if ($347) {
  35671. $348 = (+_fmodl($$1362,1.0));
  35672. $349 = $348 != 0.0;
  35673. if ($349) {
  35674. $$3364 = $$1362;
  35675. } else {
  35676. $350 = $$1362 + 1.0;
  35677. $$3364 = $350;
  35678. }
  35679. } else {
  35680. $$3364 = $$1362;
  35681. }
  35682. }
  35683. $351 = $$1366 + $$3364;
  35684. $352 = $351 - $$0360;
  35685. $353 = $311 & 2147483647;
  35686. $354 = (-2 - ($sum))|0;
  35687. $355 = ($353|0)>($354|0);
  35688. do {
  35689. if ($355) {
  35690. $356 = (+Math_abs((+$352)));
  35691. $357 = !($356 >= 9007199254740992.0);
  35692. $358 = $352 * 0.5;
  35693. $not$ = $357 ^ 1;
  35694. $359 = $not$&1;
  35695. $$3383 = (($359) + ($$1381))|0;
  35696. $$2367 = $357 ? $352 : $358;
  35697. $360 = (($$3383) + 50)|0;
  35698. $361 = ($360|0)>($7|0);
  35699. if (!($361)) {
  35700. $362 = ($$0333|0)!=($312|0);
  35701. $narrow = $362 | $357;
  35702. $$2371$v = $313 & $narrow;
  35703. $363 = $$3364 != 0.0;
  35704. $or$cond14 = $363 & $$2371$v;
  35705. if (!($or$cond14)) {
  35706. $$3368 = $$2367;$$4384 = $$3383;
  35707. break;
  35708. }
  35709. }
  35710. $364 = (___errno_location()|0);
  35711. HEAP32[$364>>2] = 34;
  35712. $$3368 = $$2367;$$4384 = $$3383;
  35713. } else {
  35714. $$3368 = $352;$$4384 = $$1381;
  35715. }
  35716. } while(0);
  35717. $365 = (+_scalbnl($$3368,$$4384));
  35718. $$1 = $365;
  35719. }
  35720. } while(0);
  35721. STACKTOP = sp;return (+$$1);
  35722. }
  35723. function _scanexp($0,$1) {
  35724. $0 = $0|0;
  35725. $1 = $1|0;
  35726. 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;
  35727. 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;
  35728. 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;
  35729. 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;
  35730. 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;
  35731. 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;
  35732. sp = STACKTOP;
  35733. $2 = ((($0)) + 4|0);
  35734. $3 = HEAP32[$2>>2]|0;
  35735. $4 = ((($0)) + 100|0);
  35736. $5 = HEAP32[$4>>2]|0;
  35737. $6 = ($3>>>0)<($5>>>0);
  35738. if ($6) {
  35739. $7 = ((($3)) + 1|0);
  35740. HEAP32[$2>>2] = $7;
  35741. $8 = HEAP8[$3>>0]|0;
  35742. $9 = $8&255;
  35743. $11 = $9;
  35744. } else {
  35745. $10 = (___shgetc($0)|0);
  35746. $11 = $10;
  35747. }
  35748. switch ($11|0) {
  35749. case 43: case 45: {
  35750. $12 = ($11|0)==(45);
  35751. $13 = $12&1;
  35752. $14 = HEAP32[$2>>2]|0;
  35753. $15 = HEAP32[$4>>2]|0;
  35754. $16 = ($14>>>0)<($15>>>0);
  35755. if ($16) {
  35756. $17 = ((($14)) + 1|0);
  35757. HEAP32[$2>>2] = $17;
  35758. $18 = HEAP8[$14>>0]|0;
  35759. $19 = $18&255;
  35760. $22 = $19;
  35761. } else {
  35762. $20 = (___shgetc($0)|0);
  35763. $22 = $20;
  35764. }
  35765. $21 = (($22) + -48)|0;
  35766. $23 = ($21>>>0)>(9);
  35767. $24 = ($1|0)!=(0);
  35768. $or$cond3 = $24 & $23;
  35769. if ($or$cond3) {
  35770. $25 = HEAP32[$4>>2]|0;
  35771. $26 = ($25|0)==(0|0);
  35772. if ($26) {
  35773. $$0 = $13;$$049 = $22;
  35774. } else {
  35775. $27 = HEAP32[$2>>2]|0;
  35776. $28 = ((($27)) + -1|0);
  35777. HEAP32[$2>>2] = $28;
  35778. $$0 = $13;$$049 = $22;
  35779. }
  35780. } else {
  35781. $$0 = $13;$$049 = $22;
  35782. }
  35783. break;
  35784. }
  35785. default: {
  35786. $$0 = 0;$$049 = $11;
  35787. }
  35788. }
  35789. $29 = (($$049) + -48)|0;
  35790. $30 = ($29>>>0)>(9);
  35791. if ($30) {
  35792. $31 = HEAP32[$4>>2]|0;
  35793. $32 = ($31|0)==(0|0);
  35794. if ($32) {
  35795. $100 = -2147483648;$101 = 0;
  35796. } else {
  35797. $33 = HEAP32[$2>>2]|0;
  35798. $34 = ((($33)) + -1|0);
  35799. HEAP32[$2>>2] = $34;
  35800. $100 = -2147483648;$101 = 0;
  35801. }
  35802. } else {
  35803. $$04861 = 0;$$160 = $$049;
  35804. while(1) {
  35805. $35 = ($$04861*10)|0;
  35806. $36 = (($$160) + -48)|0;
  35807. $37 = (($36) + ($35))|0;
  35808. $38 = HEAP32[$2>>2]|0;
  35809. $39 = HEAP32[$4>>2]|0;
  35810. $40 = ($38>>>0)<($39>>>0);
  35811. if ($40) {
  35812. $41 = ((($38)) + 1|0);
  35813. HEAP32[$2>>2] = $41;
  35814. $42 = HEAP8[$38>>0]|0;
  35815. $43 = $42&255;
  35816. $$1$be = $43;
  35817. } else {
  35818. $44 = (___shgetc($0)|0);
  35819. $$1$be = $44;
  35820. }
  35821. $45 = (($$1$be) + -48)|0;
  35822. $46 = ($45>>>0)<(10);
  35823. $47 = ($37|0)<(214748364);
  35824. $48 = $46 & $47;
  35825. if ($48) {
  35826. $$04861 = $37;$$160 = $$1$be;
  35827. } else {
  35828. break;
  35829. }
  35830. }
  35831. $49 = ($37|0)<(0);
  35832. $50 = $49 << 31 >> 31;
  35833. $51 = (($$1$be) + -48)|0;
  35834. $52 = ($51>>>0)<(10);
  35835. if ($52) {
  35836. $$254 = $$1$be;$56 = $37;$57 = $50;
  35837. while(1) {
  35838. $58 = (___muldi3(($56|0),($57|0),10,0)|0);
  35839. $59 = tempRet0;
  35840. $60 = ($$254|0)<(0);
  35841. $61 = $60 << 31 >> 31;
  35842. $62 = (_i64Add(($$254|0),($61|0),-48,-1)|0);
  35843. $63 = tempRet0;
  35844. $64 = (_i64Add(($62|0),($63|0),($58|0),($59|0))|0);
  35845. $65 = tempRet0;
  35846. $66 = HEAP32[$2>>2]|0;
  35847. $67 = HEAP32[$4>>2]|0;
  35848. $68 = ($66>>>0)<($67>>>0);
  35849. if ($68) {
  35850. $69 = ((($66)) + 1|0);
  35851. HEAP32[$2>>2] = $69;
  35852. $70 = HEAP8[$66>>0]|0;
  35853. $71 = $70&255;
  35854. $$2$be = $71;
  35855. } else {
  35856. $72 = (___shgetc($0)|0);
  35857. $$2$be = $72;
  35858. }
  35859. $73 = (($$2$be) + -48)|0;
  35860. $74 = ($73>>>0)<(10);
  35861. $75 = ($65|0)<(21474836);
  35862. $76 = ($64>>>0)<(2061584302);
  35863. $77 = ($65|0)==(21474836);
  35864. $78 = $77 & $76;
  35865. $79 = $75 | $78;
  35866. $80 = $74 & $79;
  35867. if ($80) {
  35868. $$254 = $$2$be;$56 = $64;$57 = $65;
  35869. } else {
  35870. $$2$lcssa = $$2$be;$94 = $64;$95 = $65;
  35871. break;
  35872. }
  35873. }
  35874. } else {
  35875. $$2$lcssa = $$1$be;$94 = $37;$95 = $50;
  35876. }
  35877. $53 = (($$2$lcssa) + -48)|0;
  35878. $54 = ($53>>>0)<(10);
  35879. $55 = HEAP32[$4>>2]|0;
  35880. if ($54) {
  35881. $83 = $55;
  35882. while(1) {
  35883. $81 = HEAP32[$2>>2]|0;
  35884. $82 = ($81>>>0)<($83>>>0);
  35885. if ($82) {
  35886. $84 = ((($81)) + 1|0);
  35887. HEAP32[$2>>2] = $84;
  35888. $85 = HEAP8[$81>>0]|0;
  35889. $86 = $85&255;
  35890. $$3$be = $86;$102 = $83;
  35891. } else {
  35892. $87 = (___shgetc($0)|0);
  35893. $$pre = HEAP32[$4>>2]|0;
  35894. $$3$be = $87;$102 = $$pre;
  35895. }
  35896. $88 = (($$3$be) + -48)|0;
  35897. $89 = ($88>>>0)<(10);
  35898. if ($89) {
  35899. $83 = $102;
  35900. } else {
  35901. $$lcssa = $102;
  35902. break;
  35903. }
  35904. }
  35905. } else {
  35906. $$lcssa = $55;
  35907. }
  35908. $90 = ($$lcssa|0)==(0|0);
  35909. if (!($90)) {
  35910. $91 = HEAP32[$2>>2]|0;
  35911. $92 = ((($91)) + -1|0);
  35912. HEAP32[$2>>2] = $92;
  35913. }
  35914. $93 = ($$0|0)!=(0);
  35915. $96 = (_i64Subtract(0,0,($94|0),($95|0))|0);
  35916. $97 = tempRet0;
  35917. $98 = $93 ? $96 : $94;
  35918. $99 = $93 ? $97 : $95;
  35919. $100 = $99;$101 = $98;
  35920. }
  35921. tempRet0 = ($100);
  35922. return ($101|0);
  35923. }
  35924. function _scalbn($0,$1) {
  35925. $0 = +$0;
  35926. $1 = $1|0;
  35927. 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;
  35928. var $3 = 0.0, $4 = 0, $5 = 0, $6 = 0.0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  35929. sp = STACKTOP;
  35930. $2 = ($1|0)>(1023);
  35931. if ($2) {
  35932. $3 = $0 * 8.9884656743115795E+307;
  35933. $4 = (($1) + -1023)|0;
  35934. $5 = ($4|0)>(1023);
  35935. $6 = $3 * 8.9884656743115795E+307;
  35936. $7 = (($1) + -2046)|0;
  35937. $8 = ($7|0)<(1023);
  35938. $$ = $8 ? $7 : 1023;
  35939. $$$ = $5 ? $$ : $4;
  35940. $$21 = $5 ? $6 : $3;
  35941. $$0 = $$21;$$020 = $$$;
  35942. } else {
  35943. $9 = ($1|0)<(-1022);
  35944. if ($9) {
  35945. $10 = $0 * 2.2250738585072014E-308;
  35946. $11 = (($1) + 1022)|0;
  35947. $12 = ($11|0)<(-1022);
  35948. $13 = $10 * 2.2250738585072014E-308;
  35949. $14 = (($1) + 2044)|0;
  35950. $15 = ($14|0)>(-1022);
  35951. $$1 = $15 ? $14 : -1022;
  35952. $$1$ = $12 ? $$1 : $11;
  35953. $$22 = $12 ? $13 : $10;
  35954. $$0 = $$22;$$020 = $$1$;
  35955. } else {
  35956. $$0 = $0;$$020 = $1;
  35957. }
  35958. }
  35959. $16 = (($$020) + 1023)|0;
  35960. $17 = (_bitshift64Shl(($16|0),0,52)|0);
  35961. $18 = tempRet0;
  35962. HEAP32[tempDoublePtr>>2] = $17;HEAP32[tempDoublePtr+4>>2] = $18;$19 = +HEAPF64[tempDoublePtr>>3];
  35963. $20 = $$0 * $19;
  35964. return (+$20);
  35965. }
  35966. function _copysignl($0,$1) {
  35967. $0 = +$0;
  35968. $1 = +$1;
  35969. var $2 = 0.0, label = 0, sp = 0;
  35970. sp = STACKTOP;
  35971. $2 = (+_copysign($0,$1));
  35972. return (+$2);
  35973. }
  35974. function _fmodl($0,$1) {
  35975. $0 = +$0;
  35976. $1 = +$1;
  35977. var $2 = 0.0, label = 0, sp = 0;
  35978. sp = STACKTOP;
  35979. $2 = (+_fmod($0,$1));
  35980. return (+$2);
  35981. }
  35982. function _scalbnl($0,$1) {
  35983. $0 = +$0;
  35984. $1 = $1|0;
  35985. var $2 = 0.0, label = 0, sp = 0;
  35986. sp = STACKTOP;
  35987. $2 = (+_scalbn($0,$1));
  35988. return (+$2);
  35989. }
  35990. function _fmod($0,$1) {
  35991. $0 = +$0;
  35992. $1 = +$1;
  35993. 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;
  35994. 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;
  35995. 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;
  35996. 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;
  35997. 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;
  35998. 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;
  35999. 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;
  36000. 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;
  36001. 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;
  36002. sp = STACKTOP;
  36003. HEAPF64[tempDoublePtr>>3] = $0;$2 = HEAP32[tempDoublePtr>>2]|0;
  36004. $3 = HEAP32[tempDoublePtr+4>>2]|0;
  36005. HEAPF64[tempDoublePtr>>3] = $1;$4 = HEAP32[tempDoublePtr>>2]|0;
  36006. $5 = HEAP32[tempDoublePtr+4>>2]|0;
  36007. $6 = (_bitshift64Lshr(($2|0),($3|0),52)|0);
  36008. $7 = tempRet0;
  36009. $8 = $6 & 2047;
  36010. $9 = (_bitshift64Lshr(($4|0),($5|0),52)|0);
  36011. $10 = tempRet0;
  36012. $11 = $9 & 2047;
  36013. $12 = $3 & -2147483648;
  36014. $13 = (_bitshift64Shl(($4|0),($5|0),1)|0);
  36015. $14 = tempRet0;
  36016. $15 = ($13|0)==(0);
  36017. $16 = ($14|0)==(0);
  36018. $17 = $15 & $16;
  36019. L1: do {
  36020. if ($17) {
  36021. label = 3;
  36022. } else {
  36023. $18 = (___DOUBLE_BITS_272($1)|0);
  36024. $19 = tempRet0;
  36025. $20 = $19 & 2147483647;
  36026. $21 = ($20>>>0)>(2146435072);
  36027. $22 = ($18>>>0)>(0);
  36028. $23 = ($20|0)==(2146435072);
  36029. $24 = $23 & $22;
  36030. $25 = $21 | $24;
  36031. $26 = ($8|0)==(2047);
  36032. $or$cond = $26 | $25;
  36033. if ($or$cond) {
  36034. label = 3;
  36035. } else {
  36036. $29 = (_bitshift64Shl(($2|0),($3|0),1)|0);
  36037. $30 = tempRet0;
  36038. $31 = ($30>>>0)>($14>>>0);
  36039. $32 = ($29>>>0)>($13>>>0);
  36040. $33 = ($30|0)==($14|0);
  36041. $34 = $33 & $32;
  36042. $35 = $31 | $34;
  36043. if (!($35)) {
  36044. $36 = ($29|0)==($13|0);
  36045. $37 = ($30|0)==($14|0);
  36046. $38 = $36 & $37;
  36047. $39 = $0 * 0.0;
  36048. $$ = $38 ? $39 : $0;
  36049. return (+$$);
  36050. }
  36051. $40 = ($8|0)==(0);
  36052. if ($40) {
  36053. $41 = (_bitshift64Shl(($2|0),($3|0),12)|0);
  36054. $42 = tempRet0;
  36055. $43 = ($42|0)>(-1);
  36056. $44 = ($41>>>0)>(4294967295);
  36057. $45 = ($42|0)==(-1);
  36058. $46 = $45 & $44;
  36059. $47 = $43 | $46;
  36060. if ($47) {
  36061. $$073100 = 0;$49 = $41;$50 = $42;
  36062. while(1) {
  36063. $48 = (($$073100) + -1)|0;
  36064. $51 = (_bitshift64Shl(($49|0),($50|0),1)|0);
  36065. $52 = tempRet0;
  36066. $53 = ($52|0)>(-1);
  36067. $54 = ($51>>>0)>(4294967295);
  36068. $55 = ($52|0)==(-1);
  36069. $56 = $55 & $54;
  36070. $57 = $53 | $56;
  36071. if ($57) {
  36072. $$073100 = $48;$49 = $51;$50 = $52;
  36073. } else {
  36074. $$073$lcssa = $48;
  36075. break;
  36076. }
  36077. }
  36078. } else {
  36079. $$073$lcssa = 0;
  36080. }
  36081. $58 = (1 - ($$073$lcssa))|0;
  36082. $59 = (_bitshift64Shl(($2|0),($3|0),($58|0))|0);
  36083. $60 = tempRet0;
  36084. $$174 = $$073$lcssa;$87 = $59;$88 = $60;
  36085. } else {
  36086. $61 = $3 & 1048575;
  36087. $62 = $61 | 1048576;
  36088. $$174 = $8;$87 = $2;$88 = $62;
  36089. }
  36090. $63 = ($11|0)==(0);
  36091. if ($63) {
  36092. $64 = (_bitshift64Shl(($4|0),($5|0),12)|0);
  36093. $65 = tempRet0;
  36094. $66 = ($65|0)>(-1);
  36095. $67 = ($64>>>0)>(4294967295);
  36096. $68 = ($65|0)==(-1);
  36097. $69 = $68 & $67;
  36098. $70 = $66 | $69;
  36099. if ($70) {
  36100. $$07194 = 0;$72 = $64;$73 = $65;
  36101. while(1) {
  36102. $71 = (($$07194) + -1)|0;
  36103. $74 = (_bitshift64Shl(($72|0),($73|0),1)|0);
  36104. $75 = tempRet0;
  36105. $76 = ($75|0)>(-1);
  36106. $77 = ($74>>>0)>(4294967295);
  36107. $78 = ($75|0)==(-1);
  36108. $79 = $78 & $77;
  36109. $80 = $76 | $79;
  36110. if ($80) {
  36111. $$07194 = $71;$72 = $74;$73 = $75;
  36112. } else {
  36113. $$071$lcssa = $71;
  36114. break;
  36115. }
  36116. }
  36117. } else {
  36118. $$071$lcssa = 0;
  36119. }
  36120. $81 = (1 - ($$071$lcssa))|0;
  36121. $82 = (_bitshift64Shl(($4|0),($5|0),($81|0))|0);
  36122. $83 = tempRet0;
  36123. $$172$ph = $$071$lcssa;$89 = $82;$90 = $83;
  36124. } else {
  36125. $84 = $5 & 1048575;
  36126. $85 = $84 | 1048576;
  36127. $$172$ph = $11;$89 = $4;$90 = $85;
  36128. }
  36129. $86 = ($$174|0)>($$172$ph|0);
  36130. $91 = (_i64Subtract(($87|0),($88|0),($89|0),($90|0))|0);
  36131. $92 = tempRet0;
  36132. $93 = ($92|0)>(-1);
  36133. $94 = ($91>>>0)>(4294967295);
  36134. $95 = ($92|0)==(-1);
  36135. $96 = $95 & $94;
  36136. $97 = $93 | $96;
  36137. L23: do {
  36138. if ($86) {
  36139. $$27586 = $$174;$101 = $92;$156 = $97;$157 = $87;$158 = $88;$99 = $91;
  36140. while(1) {
  36141. if ($156) {
  36142. $98 = ($99|0)==(0);
  36143. $100 = ($101|0)==(0);
  36144. $102 = $98 & $100;
  36145. if ($102) {
  36146. break;
  36147. } else {
  36148. $104 = $99;$105 = $101;
  36149. }
  36150. } else {
  36151. $104 = $157;$105 = $158;
  36152. }
  36153. $106 = (_bitshift64Shl(($104|0),($105|0),1)|0);
  36154. $107 = tempRet0;
  36155. $108 = (($$27586) + -1)|0;
  36156. $109 = ($108|0)>($$172$ph|0);
  36157. $110 = (_i64Subtract(($106|0),($107|0),($89|0),($90|0))|0);
  36158. $111 = tempRet0;
  36159. $112 = ($111|0)>(-1);
  36160. $113 = ($110>>>0)>(4294967295);
  36161. $114 = ($111|0)==(-1);
  36162. $115 = $114 & $113;
  36163. $116 = $112 | $115;
  36164. if ($109) {
  36165. $$27586 = $108;$101 = $111;$156 = $116;$157 = $106;$158 = $107;$99 = $110;
  36166. } else {
  36167. $$275$lcssa = $108;$$lcssa = $116;$118 = $110;$120 = $111;$159 = $106;$160 = $107;
  36168. break L23;
  36169. }
  36170. }
  36171. $103 = $0 * 0.0;
  36172. $$070 = $103;
  36173. break L1;
  36174. } else {
  36175. $$275$lcssa = $$174;$$lcssa = $97;$118 = $91;$120 = $92;$159 = $87;$160 = $88;
  36176. }
  36177. } while(0);
  36178. if ($$lcssa) {
  36179. $117 = ($118|0)==(0);
  36180. $119 = ($120|0)==(0);
  36181. $121 = $117 & $119;
  36182. if ($121) {
  36183. $129 = $0 * 0.0;
  36184. $$070 = $129;
  36185. break;
  36186. } else {
  36187. $123 = $120;$125 = $118;
  36188. }
  36189. } else {
  36190. $123 = $160;$125 = $159;
  36191. }
  36192. $122 = ($123>>>0)<(1048576);
  36193. $124 = ($125>>>0)<(0);
  36194. $126 = ($123|0)==(1048576);
  36195. $127 = $126 & $124;
  36196. $128 = $122 | $127;
  36197. if ($128) {
  36198. $$37683 = $$275$lcssa;$130 = $125;$131 = $123;
  36199. while(1) {
  36200. $132 = (_bitshift64Shl(($130|0),($131|0),1)|0);
  36201. $133 = tempRet0;
  36202. $134 = (($$37683) + -1)|0;
  36203. $135 = ($133>>>0)<(1048576);
  36204. $136 = ($132>>>0)<(0);
  36205. $137 = ($133|0)==(1048576);
  36206. $138 = $137 & $136;
  36207. $139 = $135 | $138;
  36208. if ($139) {
  36209. $$37683 = $134;$130 = $132;$131 = $133;
  36210. } else {
  36211. $$376$lcssa = $134;$141 = $132;$142 = $133;
  36212. break;
  36213. }
  36214. }
  36215. } else {
  36216. $$376$lcssa = $$275$lcssa;$141 = $125;$142 = $123;
  36217. }
  36218. $140 = ($$376$lcssa|0)>(0);
  36219. if ($140) {
  36220. $143 = (_i64Add(($141|0),($142|0),0,-1048576)|0);
  36221. $144 = tempRet0;
  36222. $145 = (_bitshift64Shl(($$376$lcssa|0),0,52)|0);
  36223. $146 = tempRet0;
  36224. $147 = $143 | $145;
  36225. $148 = $144 | $146;
  36226. $153 = $148;$155 = $147;
  36227. } else {
  36228. $149 = (1 - ($$376$lcssa))|0;
  36229. $150 = (_bitshift64Lshr(($141|0),($142|0),($149|0))|0);
  36230. $151 = tempRet0;
  36231. $153 = $151;$155 = $150;
  36232. }
  36233. $152 = $153 | $12;
  36234. HEAP32[tempDoublePtr>>2] = $155;HEAP32[tempDoublePtr+4>>2] = $152;$154 = +HEAPF64[tempDoublePtr>>3];
  36235. $$070 = $154;
  36236. }
  36237. }
  36238. } while(0);
  36239. if ((label|0) == 3) {
  36240. $27 = $0 * $1;
  36241. $28 = $27 / $27;
  36242. $$070 = $28;
  36243. }
  36244. return (+$$070);
  36245. }
  36246. function ___DOUBLE_BITS_272($0) {
  36247. $0 = +$0;
  36248. var $1 = 0, $2 = 0, label = 0, sp = 0;
  36249. sp = STACKTOP;
  36250. HEAPF64[tempDoublePtr>>3] = $0;$1 = HEAP32[tempDoublePtr>>2]|0;
  36251. $2 = HEAP32[tempDoublePtr+4>>2]|0;
  36252. tempRet0 = ($2);
  36253. return ($1|0);
  36254. }
  36255. function _strlen($0) {
  36256. $0 = $0|0;
  36257. 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;
  36258. 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;
  36259. sp = STACKTOP;
  36260. $1 = $0;
  36261. $2 = $1 & 3;
  36262. $3 = ($2|0)==(0);
  36263. L1: do {
  36264. if ($3) {
  36265. $$015$lcssa = $0;
  36266. label = 4;
  36267. } else {
  36268. $$01519 = $0;$23 = $1;
  36269. while(1) {
  36270. $4 = HEAP8[$$01519>>0]|0;
  36271. $5 = ($4<<24>>24)==(0);
  36272. if ($5) {
  36273. $$sink = $23;
  36274. break L1;
  36275. }
  36276. $6 = ((($$01519)) + 1|0);
  36277. $7 = $6;
  36278. $8 = $7 & 3;
  36279. $9 = ($8|0)==(0);
  36280. if ($9) {
  36281. $$015$lcssa = $6;
  36282. label = 4;
  36283. break;
  36284. } else {
  36285. $$01519 = $6;$23 = $7;
  36286. }
  36287. }
  36288. }
  36289. } while(0);
  36290. if ((label|0) == 4) {
  36291. $$0 = $$015$lcssa;
  36292. while(1) {
  36293. $10 = HEAP32[$$0>>2]|0;
  36294. $11 = (($10) + -16843009)|0;
  36295. $12 = $10 & -2139062144;
  36296. $13 = $12 ^ -2139062144;
  36297. $14 = $13 & $11;
  36298. $15 = ($14|0)==(0);
  36299. $16 = ((($$0)) + 4|0);
  36300. if ($15) {
  36301. $$0 = $16;
  36302. } else {
  36303. break;
  36304. }
  36305. }
  36306. $17 = $10&255;
  36307. $18 = ($17<<24>>24)==(0);
  36308. if ($18) {
  36309. $$1$lcssa = $$0;
  36310. } else {
  36311. $$pn = $$0;
  36312. while(1) {
  36313. $19 = ((($$pn)) + 1|0);
  36314. $$pre = HEAP8[$19>>0]|0;
  36315. $20 = ($$pre<<24>>24)==(0);
  36316. if ($20) {
  36317. $$1$lcssa = $19;
  36318. break;
  36319. } else {
  36320. $$pn = $19;
  36321. }
  36322. }
  36323. }
  36324. $21 = $$1$lcssa;
  36325. $$sink = $21;
  36326. }
  36327. $22 = (($$sink) - ($1))|0;
  36328. return ($22|0);
  36329. }
  36330. function _strchr($0,$1) {
  36331. $0 = $0|0;
  36332. $1 = $1|0;
  36333. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  36334. sp = STACKTOP;
  36335. $2 = (___strchrnul($0,$1)|0);
  36336. $3 = HEAP8[$2>>0]|0;
  36337. $4 = $1&255;
  36338. $5 = ($3<<24>>24)==($4<<24>>24);
  36339. $6 = $5 ? $2 : 0;
  36340. return ($6|0);
  36341. }
  36342. function ___strchrnul($0,$1) {
  36343. $0 = $0|0;
  36344. $1 = $1|0;
  36345. 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;
  36346. 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;
  36347. 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;
  36348. sp = STACKTOP;
  36349. $2 = $1 & 255;
  36350. $3 = ($2|0)==(0);
  36351. L1: do {
  36352. if ($3) {
  36353. $8 = (_strlen($0)|0);
  36354. $9 = (($0) + ($8)|0);
  36355. $$0 = $9;
  36356. } else {
  36357. $4 = $0;
  36358. $5 = $4 & 3;
  36359. $6 = ($5|0)==(0);
  36360. if ($6) {
  36361. $$030$lcssa = $0;
  36362. } else {
  36363. $7 = $1&255;
  36364. $$03039 = $0;
  36365. while(1) {
  36366. $10 = HEAP8[$$03039>>0]|0;
  36367. $11 = ($10<<24>>24)==(0);
  36368. $12 = ($10<<24>>24)==($7<<24>>24);
  36369. $or$cond = $11 | $12;
  36370. if ($or$cond) {
  36371. $$0 = $$03039;
  36372. break L1;
  36373. }
  36374. $13 = ((($$03039)) + 1|0);
  36375. $14 = $13;
  36376. $15 = $14 & 3;
  36377. $16 = ($15|0)==(0);
  36378. if ($16) {
  36379. $$030$lcssa = $13;
  36380. break;
  36381. } else {
  36382. $$03039 = $13;
  36383. }
  36384. }
  36385. }
  36386. $17 = Math_imul($2, 16843009)|0;
  36387. $18 = HEAP32[$$030$lcssa>>2]|0;
  36388. $19 = (($18) + -16843009)|0;
  36389. $20 = $18 & -2139062144;
  36390. $21 = $20 ^ -2139062144;
  36391. $22 = $21 & $19;
  36392. $23 = ($22|0)==(0);
  36393. L10: do {
  36394. if ($23) {
  36395. $$02936 = $$030$lcssa;$25 = $18;
  36396. while(1) {
  36397. $24 = $25 ^ $17;
  36398. $26 = (($24) + -16843009)|0;
  36399. $27 = $24 & -2139062144;
  36400. $28 = $27 ^ -2139062144;
  36401. $29 = $28 & $26;
  36402. $30 = ($29|0)==(0);
  36403. if (!($30)) {
  36404. $$029$lcssa = $$02936;
  36405. break L10;
  36406. }
  36407. $31 = ((($$02936)) + 4|0);
  36408. $32 = HEAP32[$31>>2]|0;
  36409. $33 = (($32) + -16843009)|0;
  36410. $34 = $32 & -2139062144;
  36411. $35 = $34 ^ -2139062144;
  36412. $36 = $35 & $33;
  36413. $37 = ($36|0)==(0);
  36414. if ($37) {
  36415. $$02936 = $31;$25 = $32;
  36416. } else {
  36417. $$029$lcssa = $31;
  36418. break;
  36419. }
  36420. }
  36421. } else {
  36422. $$029$lcssa = $$030$lcssa;
  36423. }
  36424. } while(0);
  36425. $38 = $1&255;
  36426. $$1 = $$029$lcssa;
  36427. while(1) {
  36428. $39 = HEAP8[$$1>>0]|0;
  36429. $40 = ($39<<24>>24)==(0);
  36430. $41 = ($39<<24>>24)==($38<<24>>24);
  36431. $or$cond33 = $40 | $41;
  36432. $42 = ((($$1)) + 1|0);
  36433. if ($or$cond33) {
  36434. $$0 = $$1;
  36435. break;
  36436. } else {
  36437. $$1 = $42;
  36438. }
  36439. }
  36440. }
  36441. } while(0);
  36442. return ($$0|0);
  36443. }
  36444. function _mbrtowc($0,$1,$2,$3) {
  36445. $0 = $0|0;
  36446. $1 = $1|0;
  36447. $2 = $2|0;
  36448. $3 = $3|0;
  36449. 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;
  36450. 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;
  36451. 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;
  36452. var $not$ = 0, label = 0, sp = 0;
  36453. sp = STACKTOP;
  36454. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  36455. $4 = sp;
  36456. $5 = ($3|0)==(0|0);
  36457. $$ = $5 ? 21588 : $3;
  36458. $6 = HEAP32[$$>>2]|0;
  36459. $7 = ($1|0)==(0|0);
  36460. L1: do {
  36461. if ($7) {
  36462. $8 = ($6|0)==(0);
  36463. if ($8) {
  36464. $$0 = 0;
  36465. } else {
  36466. label = 17;
  36467. }
  36468. } else {
  36469. $9 = ($0|0)==(0|0);
  36470. $$47 = $9 ? $4 : $0;
  36471. $10 = ($2|0)==(0);
  36472. if ($10) {
  36473. $$0 = -2;
  36474. } else {
  36475. $11 = ($6|0)==(0);
  36476. if ($11) {
  36477. $12 = HEAP8[$1>>0]|0;
  36478. $13 = ($12<<24>>24)>(-1);
  36479. if ($13) {
  36480. $14 = $12&255;
  36481. HEAP32[$$47>>2] = $14;
  36482. $15 = ($12<<24>>24)!=(0);
  36483. $16 = $15&1;
  36484. $$0 = $16;
  36485. break;
  36486. }
  36487. $17 = (___pthread_self_439()|0);
  36488. $18 = ((($17)) + 188|0);
  36489. $19 = HEAP32[$18>>2]|0;
  36490. $20 = HEAP32[$19>>2]|0;
  36491. $not$ = ($20|0)==(0|0);
  36492. $21 = HEAP8[$1>>0]|0;
  36493. if ($not$) {
  36494. $22 = $21 << 24 >> 24;
  36495. $23 = $22 & 57343;
  36496. HEAP32[$$47>>2] = $23;
  36497. $$0 = 1;
  36498. break;
  36499. }
  36500. $24 = $21&255;
  36501. $25 = (($24) + -194)|0;
  36502. $26 = ($25>>>0)>(50);
  36503. if ($26) {
  36504. label = 17;
  36505. break;
  36506. }
  36507. $27 = ((($1)) + 1|0);
  36508. $28 = (3704 + ($25<<2)|0);
  36509. $29 = HEAP32[$28>>2]|0;
  36510. $30 = (($2) + -1)|0;
  36511. $31 = ($30|0)==(0);
  36512. if ($31) {
  36513. $$2 = $29;
  36514. } else {
  36515. $$03952 = $27;$$04051 = $29;$$04350 = $30;
  36516. label = 11;
  36517. }
  36518. } else {
  36519. $$03952 = $1;$$04051 = $6;$$04350 = $2;
  36520. label = 11;
  36521. }
  36522. L14: do {
  36523. if ((label|0) == 11) {
  36524. $32 = HEAP8[$$03952>>0]|0;
  36525. $33 = $32&255;
  36526. $34 = $33 >>> 3;
  36527. $35 = (($34) + -16)|0;
  36528. $36 = $$04051 >> 26;
  36529. $37 = (($34) + ($36))|0;
  36530. $38 = $35 | $37;
  36531. $39 = ($38>>>0)>(7);
  36532. if ($39) {
  36533. label = 17;
  36534. break L1;
  36535. } else {
  36536. $$1 = $$03952;$$141 = $$04051;$$144 = $$04350;$43 = $32;
  36537. }
  36538. while(1) {
  36539. $40 = $$141 << 6;
  36540. $41 = ((($$1)) + 1|0);
  36541. $42 = $43&255;
  36542. $44 = (($42) + -128)|0;
  36543. $45 = $44 | $40;
  36544. $46 = (($$144) + -1)|0;
  36545. $47 = ($45|0)<(0);
  36546. if (!($47)) {
  36547. break;
  36548. }
  36549. $49 = ($46|0)==(0);
  36550. if ($49) {
  36551. $$2 = $45;
  36552. break L14;
  36553. }
  36554. $50 = HEAP8[$41>>0]|0;
  36555. $51 = $50 & -64;
  36556. $52 = ($51<<24>>24)==(-128);
  36557. if ($52) {
  36558. $$1 = $41;$$141 = $45;$$144 = $46;$43 = $50;
  36559. } else {
  36560. label = 17;
  36561. break L1;
  36562. }
  36563. }
  36564. HEAP32[$$>>2] = 0;
  36565. HEAP32[$$47>>2] = $45;
  36566. $48 = (($2) - ($46))|0;
  36567. $$0 = $48;
  36568. break L1;
  36569. }
  36570. } while(0);
  36571. HEAP32[$$>>2] = $$2;
  36572. $$0 = -2;
  36573. }
  36574. }
  36575. } while(0);
  36576. if ((label|0) == 17) {
  36577. HEAP32[$$>>2] = 0;
  36578. $53 = (___errno_location()|0);
  36579. HEAP32[$53>>2] = 84;
  36580. $$0 = -1;
  36581. }
  36582. STACKTOP = sp;return ($$0|0);
  36583. }
  36584. function ___pthread_self_439() {
  36585. var $0 = 0, label = 0, sp = 0;
  36586. sp = STACKTOP;
  36587. $0 = (_pthread_self()|0);
  36588. return ($0|0);
  36589. }
  36590. function _strcpy($0,$1) {
  36591. $0 = $0|0;
  36592. $1 = $1|0;
  36593. var label = 0, sp = 0;
  36594. sp = STACKTOP;
  36595. (___stpcpy($0,$1)|0);
  36596. return ($0|0);
  36597. }
  36598. function ___stpcpy($0,$1) {
  36599. $0 = $0|0;
  36600. $1 = $1|0;
  36601. 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;
  36602. 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;
  36603. var $35 = 0, $36 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  36604. sp = STACKTOP;
  36605. $2 = $1;
  36606. $3 = $0;
  36607. $4 = $2 ^ $3;
  36608. $5 = $4 & 3;
  36609. $6 = ($5|0)==(0);
  36610. L1: do {
  36611. if ($6) {
  36612. $7 = $2 & 3;
  36613. $8 = ($7|0)==(0);
  36614. if ($8) {
  36615. $$026$lcssa = $1;$$027$lcssa = $0;
  36616. } else {
  36617. $$02642 = $1;$$02741 = $0;
  36618. while(1) {
  36619. $9 = HEAP8[$$02642>>0]|0;
  36620. HEAP8[$$02741>>0] = $9;
  36621. $10 = ($9<<24>>24)==(0);
  36622. if ($10) {
  36623. $$029 = $$02741;
  36624. break L1;
  36625. }
  36626. $11 = ((($$02642)) + 1|0);
  36627. $12 = ((($$02741)) + 1|0);
  36628. $13 = $11;
  36629. $14 = $13 & 3;
  36630. $15 = ($14|0)==(0);
  36631. if ($15) {
  36632. $$026$lcssa = $11;$$027$lcssa = $12;
  36633. break;
  36634. } else {
  36635. $$02642 = $11;$$02741 = $12;
  36636. }
  36637. }
  36638. }
  36639. $16 = HEAP32[$$026$lcssa>>2]|0;
  36640. $17 = (($16) + -16843009)|0;
  36641. $18 = $16 & -2139062144;
  36642. $19 = $18 ^ -2139062144;
  36643. $20 = $19 & $17;
  36644. $21 = ($20|0)==(0);
  36645. if ($21) {
  36646. $$02536 = $$027$lcssa;$$037 = $$026$lcssa;$24 = $16;
  36647. while(1) {
  36648. $22 = ((($$037)) + 4|0);
  36649. $23 = ((($$02536)) + 4|0);
  36650. HEAP32[$$02536>>2] = $24;
  36651. $25 = HEAP32[$22>>2]|0;
  36652. $26 = (($25) + -16843009)|0;
  36653. $27 = $25 & -2139062144;
  36654. $28 = $27 ^ -2139062144;
  36655. $29 = $28 & $26;
  36656. $30 = ($29|0)==(0);
  36657. if ($30) {
  36658. $$02536 = $23;$$037 = $22;$24 = $25;
  36659. } else {
  36660. $$0$lcssa = $22;$$025$lcssa = $23;
  36661. break;
  36662. }
  36663. }
  36664. } else {
  36665. $$0$lcssa = $$026$lcssa;$$025$lcssa = $$027$lcssa;
  36666. }
  36667. $$1$ph = $$0$lcssa;$$128$ph = $$025$lcssa;
  36668. label = 8;
  36669. } else {
  36670. $$1$ph = $1;$$128$ph = $0;
  36671. label = 8;
  36672. }
  36673. } while(0);
  36674. if ((label|0) == 8) {
  36675. $31 = HEAP8[$$1$ph>>0]|0;
  36676. HEAP8[$$128$ph>>0] = $31;
  36677. $32 = ($31<<24>>24)==(0);
  36678. if ($32) {
  36679. $$029 = $$128$ph;
  36680. } else {
  36681. $$12834 = $$128$ph;$$135 = $$1$ph;
  36682. while(1) {
  36683. $33 = ((($$135)) + 1|0);
  36684. $34 = ((($$12834)) + 1|0);
  36685. $35 = HEAP8[$33>>0]|0;
  36686. HEAP8[$34>>0] = $35;
  36687. $36 = ($35<<24>>24)==(0);
  36688. if ($36) {
  36689. $$029 = $34;
  36690. break;
  36691. } else {
  36692. $$12834 = $34;$$135 = $33;
  36693. }
  36694. }
  36695. }
  36696. }
  36697. return ($$029|0);
  36698. }
  36699. function ___unlist_locked_file($0) {
  36700. $0 = $0|0;
  36701. 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;
  36702. sp = STACKTOP;
  36703. $1 = ((($0)) + 68|0);
  36704. $2 = HEAP32[$1>>2]|0;
  36705. $3 = ($2|0)==(0);
  36706. if (!($3)) {
  36707. $4 = ((($0)) + 116|0);
  36708. $5 = HEAP32[$4>>2]|0;
  36709. $6 = ($5|0)==(0|0);
  36710. $$pre = ((($0)) + 112|0);
  36711. if (!($6)) {
  36712. $7 = HEAP32[$$pre>>2]|0;
  36713. $8 = ((($5)) + 112|0);
  36714. HEAP32[$8>>2] = $7;
  36715. }
  36716. $9 = HEAP32[$$pre>>2]|0;
  36717. $10 = ($9|0)==(0|0);
  36718. if ($10) {
  36719. $12 = (___pthread_self_607()|0);
  36720. $13 = ((($12)) + 232|0);
  36721. $$sink = $13;
  36722. } else {
  36723. $11 = ((($9)) + 116|0);
  36724. $$sink = $11;
  36725. }
  36726. HEAP32[$$sink>>2] = $5;
  36727. }
  36728. return;
  36729. }
  36730. function ___pthread_self_607() {
  36731. var $0 = 0, label = 0, sp = 0;
  36732. sp = STACKTOP;
  36733. $0 = (_pthread_self()|0);
  36734. return ($0|0);
  36735. }
  36736. function _fopen($0,$1) {
  36737. $0 = $0|0;
  36738. $1 = $1|0;
  36739. 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;
  36740. var $vararg_ptr2 = 0, $vararg_ptr6 = 0, $vararg_ptr7 = 0, label = 0, sp = 0;
  36741. sp = STACKTOP;
  36742. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  36743. $vararg_buffer8 = sp + 32|0;
  36744. $vararg_buffer3 = sp + 16|0;
  36745. $vararg_buffer = sp;
  36746. $2 = HEAP8[$1>>0]|0;
  36747. $3 = $2 << 24 >> 24;
  36748. $memchr = (_memchr(18515,$3,4)|0);
  36749. $4 = ($memchr|0)==(0|0);
  36750. if ($4) {
  36751. $5 = (___errno_location()|0);
  36752. HEAP32[$5>>2] = 22;
  36753. $$0 = 0;
  36754. } else {
  36755. $6 = (___fmodeflags($1)|0);
  36756. $7 = $0;
  36757. $8 = $6 | 32768;
  36758. HEAP32[$vararg_buffer>>2] = $7;
  36759. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  36760. HEAP32[$vararg_ptr1>>2] = $8;
  36761. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  36762. HEAP32[$vararg_ptr2>>2] = 438;
  36763. $9 = (___syscall5(5,($vararg_buffer|0))|0);
  36764. $10 = (___syscall_ret($9)|0);
  36765. $11 = ($10|0)<(0);
  36766. if ($11) {
  36767. $$0 = 0;
  36768. } else {
  36769. $12 = $6 & 524288;
  36770. $13 = ($12|0)==(0);
  36771. if (!($13)) {
  36772. HEAP32[$vararg_buffer3>>2] = $10;
  36773. $vararg_ptr6 = ((($vararg_buffer3)) + 4|0);
  36774. HEAP32[$vararg_ptr6>>2] = 2;
  36775. $vararg_ptr7 = ((($vararg_buffer3)) + 8|0);
  36776. HEAP32[$vararg_ptr7>>2] = 1;
  36777. (___syscall221(221,($vararg_buffer3|0))|0);
  36778. }
  36779. $14 = (___fdopen($10,$1)|0);
  36780. $15 = ($14|0)==(0|0);
  36781. if ($15) {
  36782. HEAP32[$vararg_buffer8>>2] = $10;
  36783. (___syscall6(6,($vararg_buffer8|0))|0);
  36784. $$0 = 0;
  36785. } else {
  36786. $$0 = $14;
  36787. }
  36788. }
  36789. }
  36790. STACKTOP = sp;return ($$0|0);
  36791. }
  36792. function ___fmodeflags($0) {
  36793. $0 = $0|0;
  36794. 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;
  36795. var $8 = 0, $9 = 0, $not$ = 0, label = 0, sp = 0;
  36796. sp = STACKTOP;
  36797. $1 = (_strchr($0,43)|0);
  36798. $2 = ($1|0)==(0|0);
  36799. $3 = HEAP8[$0>>0]|0;
  36800. $not$ = ($3<<24>>24)!=(114);
  36801. $$ = $not$&1;
  36802. $$0 = $2 ? $$ : 2;
  36803. $4 = (_strchr($0,120)|0);
  36804. $5 = ($4|0)==(0|0);
  36805. $6 = $$0 | 128;
  36806. $$0$ = $5 ? $$0 : $6;
  36807. $7 = (_strchr($0,101)|0);
  36808. $8 = ($7|0)==(0|0);
  36809. $9 = $$0$ | 524288;
  36810. $$2 = $8 ? $$0$ : $9;
  36811. $10 = ($3<<24>>24)==(114);
  36812. $11 = $$2 | 64;
  36813. $$2$ = $10 ? $$2 : $11;
  36814. $12 = ($3<<24>>24)==(119);
  36815. $13 = $$2$ | 512;
  36816. $$4 = $12 ? $13 : $$2$;
  36817. $14 = ($3<<24>>24)==(97);
  36818. $15 = $$4 | 1024;
  36819. $$$4 = $14 ? $15 : $$4;
  36820. return ($$$4|0);
  36821. }
  36822. function ___fdopen($0,$1) {
  36823. $0 = $0|0;
  36824. $1 = $1|0;
  36825. 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;
  36826. 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;
  36827. 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;
  36828. sp = STACKTOP;
  36829. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  36830. $vararg_buffer12 = sp + 40|0;
  36831. $vararg_buffer7 = sp + 24|0;
  36832. $vararg_buffer3 = sp + 16|0;
  36833. $vararg_buffer = sp;
  36834. $2 = sp + 56|0;
  36835. $3 = HEAP8[$1>>0]|0;
  36836. $4 = $3 << 24 >> 24;
  36837. $memchr = (_memchr(18515,$4,4)|0);
  36838. $5 = ($memchr|0)==(0|0);
  36839. if ($5) {
  36840. $6 = (___errno_location()|0);
  36841. HEAP32[$6>>2] = 22;
  36842. $$0 = 0;
  36843. } else {
  36844. $7 = (_malloc(1156)|0);
  36845. $8 = ($7|0)==(0|0);
  36846. if ($8) {
  36847. $$0 = 0;
  36848. } else {
  36849. dest=$7; stop=dest+124|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  36850. $9 = (_strchr($1,43)|0);
  36851. $10 = ($9|0)==(0|0);
  36852. if ($10) {
  36853. $11 = ($3<<24>>24)==(114);
  36854. $12 = $11 ? 8 : 4;
  36855. HEAP32[$7>>2] = $12;
  36856. }
  36857. $13 = (_strchr($1,101)|0);
  36858. $14 = ($13|0)==(0|0);
  36859. if ($14) {
  36860. $16 = $3;
  36861. } else {
  36862. HEAP32[$vararg_buffer>>2] = $0;
  36863. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  36864. HEAP32[$vararg_ptr1>>2] = 2;
  36865. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  36866. HEAP32[$vararg_ptr2>>2] = 1;
  36867. (___syscall221(221,($vararg_buffer|0))|0);
  36868. $$pre = HEAP8[$1>>0]|0;
  36869. $16 = $$pre;
  36870. }
  36871. $15 = ($16<<24>>24)==(97);
  36872. if ($15) {
  36873. HEAP32[$vararg_buffer3>>2] = $0;
  36874. $vararg_ptr6 = ((($vararg_buffer3)) + 4|0);
  36875. HEAP32[$vararg_ptr6>>2] = 3;
  36876. $17 = (___syscall221(221,($vararg_buffer3|0))|0);
  36877. $18 = $17 & 1024;
  36878. $19 = ($18|0)==(0);
  36879. if ($19) {
  36880. $20 = $17 | 1024;
  36881. HEAP32[$vararg_buffer7>>2] = $0;
  36882. $vararg_ptr10 = ((($vararg_buffer7)) + 4|0);
  36883. HEAP32[$vararg_ptr10>>2] = 4;
  36884. $vararg_ptr11 = ((($vararg_buffer7)) + 8|0);
  36885. HEAP32[$vararg_ptr11>>2] = $20;
  36886. (___syscall221(221,($vararg_buffer7|0))|0);
  36887. }
  36888. $21 = HEAP32[$7>>2]|0;
  36889. $22 = $21 | 128;
  36890. HEAP32[$7>>2] = $22;
  36891. $29 = $22;
  36892. } else {
  36893. $$pre31 = HEAP32[$7>>2]|0;
  36894. $29 = $$pre31;
  36895. }
  36896. $23 = ((($7)) + 60|0);
  36897. HEAP32[$23>>2] = $0;
  36898. $24 = ((($7)) + 132|0);
  36899. $25 = ((($7)) + 44|0);
  36900. HEAP32[$25>>2] = $24;
  36901. $26 = ((($7)) + 48|0);
  36902. HEAP32[$26>>2] = 1024;
  36903. $27 = ((($7)) + 75|0);
  36904. HEAP8[$27>>0] = -1;
  36905. $28 = $29 & 8;
  36906. $30 = ($28|0)==(0);
  36907. if ($30) {
  36908. $31 = $2;
  36909. HEAP32[$vararg_buffer12>>2] = $0;
  36910. $vararg_ptr15 = ((($vararg_buffer12)) + 4|0);
  36911. HEAP32[$vararg_ptr15>>2] = 21523;
  36912. $vararg_ptr16 = ((($vararg_buffer12)) + 8|0);
  36913. HEAP32[$vararg_ptr16>>2] = $31;
  36914. $32 = (___syscall54(54,($vararg_buffer12|0))|0);
  36915. $33 = ($32|0)==(0);
  36916. if ($33) {
  36917. HEAP8[$27>>0] = 10;
  36918. }
  36919. }
  36920. $34 = ((($7)) + 32|0);
  36921. HEAP32[$34>>2] = 11;
  36922. $35 = ((($7)) + 36|0);
  36923. HEAP32[$35>>2] = 10;
  36924. $36 = ((($7)) + 40|0);
  36925. HEAP32[$36>>2] = 3;
  36926. $37 = ((($7)) + 12|0);
  36927. HEAP32[$37>>2] = 2;
  36928. $38 = HEAP32[(21528)>>2]|0;
  36929. $39 = ($38|0)==(0);
  36930. if ($39) {
  36931. $40 = ((($7)) + 76|0);
  36932. HEAP32[$40>>2] = -1;
  36933. }
  36934. $41 = (___ofl_add($7)|0);
  36935. $$0 = $7;
  36936. }
  36937. }
  36938. STACKTOP = sp;return ($$0|0);
  36939. }
  36940. function ___ofl_add($0) {
  36941. $0 = $0|0;
  36942. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  36943. sp = STACKTOP;
  36944. $1 = (___ofl_lock()|0);
  36945. $2 = HEAP32[$1>>2]|0;
  36946. $3 = ((($0)) + 56|0);
  36947. HEAP32[$3>>2] = $2;
  36948. $4 = HEAP32[$1>>2]|0;
  36949. $5 = ($4|0)==(0|0);
  36950. if (!($5)) {
  36951. $6 = ((($4)) + 52|0);
  36952. HEAP32[$6>>2] = $0;
  36953. }
  36954. HEAP32[$1>>2] = $0;
  36955. ___ofl_unlock();
  36956. return ($0|0);
  36957. }
  36958. function ___ofl_lock() {
  36959. var label = 0, sp = 0;
  36960. sp = STACKTOP;
  36961. ___lock((21592|0));
  36962. return (21600|0);
  36963. }
  36964. function ___ofl_unlock() {
  36965. var label = 0, sp = 0;
  36966. sp = STACKTOP;
  36967. ___unlock((21592|0));
  36968. return;
  36969. }
  36970. function _fclose($0) {
  36971. $0 = $0|0;
  36972. 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;
  36973. 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;
  36974. sp = STACKTOP;
  36975. $1 = ((($0)) + 76|0);
  36976. $2 = HEAP32[$1>>2]|0;
  36977. $3 = ($2|0)>(-1);
  36978. if ($3) {
  36979. $4 = (___lockfile($0)|0);
  36980. $29 = $4;
  36981. } else {
  36982. $29 = 0;
  36983. }
  36984. ___unlist_locked_file($0);
  36985. $5 = HEAP32[$0>>2]|0;
  36986. $6 = $5 & 1;
  36987. $7 = ($6|0)!=(0);
  36988. if (!($7)) {
  36989. $8 = (___ofl_lock()|0);
  36990. $9 = ((($0)) + 52|0);
  36991. $10 = HEAP32[$9>>2]|0;
  36992. $11 = ($10|0)==(0|0);
  36993. $12 = $10;
  36994. $$pre = ((($0)) + 56|0);
  36995. if (!($11)) {
  36996. $13 = HEAP32[$$pre>>2]|0;
  36997. $14 = ((($10)) + 56|0);
  36998. HEAP32[$14>>2] = $13;
  36999. }
  37000. $15 = HEAP32[$$pre>>2]|0;
  37001. $16 = ($15|0)==(0|0);
  37002. if (!($16)) {
  37003. $17 = ((($15)) + 52|0);
  37004. HEAP32[$17>>2] = $12;
  37005. }
  37006. $18 = HEAP32[$8>>2]|0;
  37007. $19 = ($18|0)==($0|0);
  37008. if ($19) {
  37009. HEAP32[$8>>2] = $15;
  37010. }
  37011. ___ofl_unlock();
  37012. }
  37013. $20 = (_fflush($0)|0);
  37014. $21 = ((($0)) + 12|0);
  37015. $22 = HEAP32[$21>>2]|0;
  37016. $23 = (FUNCTION_TABLE_ii[$22 & 15]($0)|0);
  37017. $24 = $23 | $20;
  37018. $25 = ((($0)) + 92|0);
  37019. $26 = HEAP32[$25>>2]|0;
  37020. $27 = ($26|0)==(0|0);
  37021. if (!($27)) {
  37022. _free($26);
  37023. }
  37024. if ($7) {
  37025. $28 = ($29|0)==(0);
  37026. if (!($28)) {
  37027. ___unlockfile($0);
  37028. }
  37029. } else {
  37030. _free($0);
  37031. }
  37032. return ($24|0);
  37033. }
  37034. function _fflush($0) {
  37035. $0 = $0|0;
  37036. 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;
  37037. 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;
  37038. sp = STACKTOP;
  37039. $1 = ($0|0)==(0|0);
  37040. do {
  37041. if ($1) {
  37042. $8 = HEAP32[1070]|0;
  37043. $9 = ($8|0)==(0|0);
  37044. if ($9) {
  37045. $29 = 0;
  37046. } else {
  37047. $10 = HEAP32[1070]|0;
  37048. $11 = (_fflush($10)|0);
  37049. $29 = $11;
  37050. }
  37051. $12 = (___ofl_lock()|0);
  37052. $$02325 = HEAP32[$12>>2]|0;
  37053. $13 = ($$02325|0)==(0|0);
  37054. if ($13) {
  37055. $$024$lcssa = $29;
  37056. } else {
  37057. $$02327 = $$02325;$$02426 = $29;
  37058. while(1) {
  37059. $14 = ((($$02327)) + 76|0);
  37060. $15 = HEAP32[$14>>2]|0;
  37061. $16 = ($15|0)>(-1);
  37062. if ($16) {
  37063. $17 = (___lockfile($$02327)|0);
  37064. $26 = $17;
  37065. } else {
  37066. $26 = 0;
  37067. }
  37068. $18 = ((($$02327)) + 20|0);
  37069. $19 = HEAP32[$18>>2]|0;
  37070. $20 = ((($$02327)) + 28|0);
  37071. $21 = HEAP32[$20>>2]|0;
  37072. $22 = ($19>>>0)>($21>>>0);
  37073. if ($22) {
  37074. $23 = (___fflush_unlocked($$02327)|0);
  37075. $24 = $23 | $$02426;
  37076. $$1 = $24;
  37077. } else {
  37078. $$1 = $$02426;
  37079. }
  37080. $25 = ($26|0)==(0);
  37081. if (!($25)) {
  37082. ___unlockfile($$02327);
  37083. }
  37084. $27 = ((($$02327)) + 56|0);
  37085. $$023 = HEAP32[$27>>2]|0;
  37086. $28 = ($$023|0)==(0|0);
  37087. if ($28) {
  37088. $$024$lcssa = $$1;
  37089. break;
  37090. } else {
  37091. $$02327 = $$023;$$02426 = $$1;
  37092. }
  37093. }
  37094. }
  37095. ___ofl_unlock();
  37096. $$0 = $$024$lcssa;
  37097. } else {
  37098. $2 = ((($0)) + 76|0);
  37099. $3 = HEAP32[$2>>2]|0;
  37100. $4 = ($3|0)>(-1);
  37101. if (!($4)) {
  37102. $5 = (___fflush_unlocked($0)|0);
  37103. $$0 = $5;
  37104. break;
  37105. }
  37106. $6 = (___lockfile($0)|0);
  37107. $phitmp = ($6|0)==(0);
  37108. $7 = (___fflush_unlocked($0)|0);
  37109. if ($phitmp) {
  37110. $$0 = $7;
  37111. } else {
  37112. ___unlockfile($0);
  37113. $$0 = $7;
  37114. }
  37115. }
  37116. } while(0);
  37117. return ($$0|0);
  37118. }
  37119. function ___fflush_unlocked($0) {
  37120. $0 = $0|0;
  37121. 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;
  37122. var $9 = 0, label = 0, sp = 0;
  37123. sp = STACKTOP;
  37124. $1 = ((($0)) + 20|0);
  37125. $2 = HEAP32[$1>>2]|0;
  37126. $3 = ((($0)) + 28|0);
  37127. $4 = HEAP32[$3>>2]|0;
  37128. $5 = ($2>>>0)>($4>>>0);
  37129. if ($5) {
  37130. $6 = ((($0)) + 36|0);
  37131. $7 = HEAP32[$6>>2]|0;
  37132. (FUNCTION_TABLE_iiii[$7 & 15]($0,0,0)|0);
  37133. $8 = HEAP32[$1>>2]|0;
  37134. $9 = ($8|0)==(0|0);
  37135. if ($9) {
  37136. $$0 = -1;
  37137. } else {
  37138. label = 3;
  37139. }
  37140. } else {
  37141. label = 3;
  37142. }
  37143. if ((label|0) == 3) {
  37144. $10 = ((($0)) + 4|0);
  37145. $11 = HEAP32[$10>>2]|0;
  37146. $12 = ((($0)) + 8|0);
  37147. $13 = HEAP32[$12>>2]|0;
  37148. $14 = ($11>>>0)<($13>>>0);
  37149. if ($14) {
  37150. $15 = $11;
  37151. $16 = $13;
  37152. $17 = (($15) - ($16))|0;
  37153. $18 = ((($0)) + 40|0);
  37154. $19 = HEAP32[$18>>2]|0;
  37155. (FUNCTION_TABLE_iiii[$19 & 15]($0,$17,1)|0);
  37156. }
  37157. $20 = ((($0)) + 16|0);
  37158. HEAP32[$20>>2] = 0;
  37159. HEAP32[$3>>2] = 0;
  37160. HEAP32[$1>>2] = 0;
  37161. HEAP32[$12>>2] = 0;
  37162. HEAP32[$10>>2] = 0;
  37163. $$0 = 0;
  37164. }
  37165. return ($$0|0);
  37166. }
  37167. function _fgets($0,$1,$2) {
  37168. $0 = $0|0;
  37169. $1 = $1|0;
  37170. $2 = $2|0;
  37171. 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;
  37172. 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;
  37173. 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;
  37174. var $sext$mask = 0, label = 0, sp = 0;
  37175. sp = STACKTOP;
  37176. $3 = ((($2)) + 76|0);
  37177. $4 = HEAP32[$3>>2]|0;
  37178. $5 = ($4|0)>(-1);
  37179. if ($5) {
  37180. $6 = (___lockfile($2)|0);
  37181. $17 = $6;
  37182. } else {
  37183. $17 = 0;
  37184. }
  37185. $7 = (($1) + -1)|0;
  37186. $8 = ($1|0)<(2);
  37187. $9 = ($7|0)!=(0);
  37188. if ($8) {
  37189. $10 = ((($2)) + 74|0);
  37190. $11 = HEAP8[$10>>0]|0;
  37191. $12 = $11 << 24 >> 24;
  37192. $13 = (($12) + 255)|0;
  37193. $14 = $13 | $12;
  37194. $15 = $14&255;
  37195. HEAP8[$10>>0] = $15;
  37196. $16 = ($17|0)==(0);
  37197. if (!($16)) {
  37198. ___unlockfile($2);
  37199. }
  37200. if ($9) {
  37201. $$0 = 0;
  37202. } else {
  37203. HEAP8[$0>>0] = 0;
  37204. $$0 = $0;
  37205. }
  37206. } else {
  37207. L11: do {
  37208. if ($9) {
  37209. $18 = ((($2)) + 4|0);
  37210. $19 = ((($2)) + 8|0);
  37211. $$063 = $7;$$064 = $0;
  37212. while(1) {
  37213. $20 = HEAP32[$18>>2]|0;
  37214. $21 = HEAP32[$19>>2]|0;
  37215. $22 = $20;
  37216. $23 = (($21) - ($22))|0;
  37217. $24 = (_memchr($20,10,$23)|0);
  37218. $25 = ($24|0)==(0|0);
  37219. $26 = $24;
  37220. $27 = (1 - ($22))|0;
  37221. $28 = (($27) + ($26))|0;
  37222. $29 = $25 ? $23 : $28;
  37223. $30 = ($29>>>0)<($$063>>>0);
  37224. $31 = $30 ? $29 : $$063;
  37225. _memcpy(($$064|0),($20|0),($31|0))|0;
  37226. $32 = HEAP32[$18>>2]|0;
  37227. $33 = (($32) + ($31)|0);
  37228. HEAP32[$18>>2] = $33;
  37229. $34 = (($$064) + ($31)|0);
  37230. $35 = (($$063) - ($31))|0;
  37231. $36 = ($35|0)!=(0);
  37232. $or$cond = $25 & $36;
  37233. if (!($or$cond)) {
  37234. $$1 = $34;
  37235. label = 17;
  37236. break L11;
  37237. }
  37238. $37 = HEAP32[$19>>2]|0;
  37239. $38 = ($33>>>0)<($37>>>0);
  37240. if ($38) {
  37241. $39 = ((($33)) + 1|0);
  37242. HEAP32[$18>>2] = $39;
  37243. $40 = HEAP8[$33>>0]|0;
  37244. $41 = $40&255;
  37245. $50 = $41;
  37246. } else {
  37247. $42 = (___uflow($2)|0);
  37248. $43 = ($42|0)<(0);
  37249. if ($43) {
  37250. break;
  37251. } else {
  37252. $50 = $42;
  37253. }
  37254. }
  37255. $48 = (($35) + -1)|0;
  37256. $49 = $50&255;
  37257. $51 = ((($34)) + 1|0);
  37258. HEAP8[$34>>0] = $49;
  37259. $sext$mask = $50 & 255;
  37260. $52 = ($sext$mask|0)!=(10);
  37261. $53 = ($48|0)!=(0);
  37262. $or$cond3 = $53 & $52;
  37263. if ($or$cond3) {
  37264. $$063 = $48;$$064 = $51;
  37265. } else {
  37266. $$1 = $51;
  37267. label = 17;
  37268. break L11;
  37269. }
  37270. }
  37271. $44 = ($34|0)==($0|0);
  37272. if ($44) {
  37273. $$06266 = 0;
  37274. } else {
  37275. $45 = HEAP32[$2>>2]|0;
  37276. $46 = $45 & 16;
  37277. $47 = ($46|0)==(0);
  37278. if ($47) {
  37279. $$06266 = 0;
  37280. } else {
  37281. $$1 = $34;
  37282. label = 17;
  37283. }
  37284. }
  37285. } else {
  37286. $$1 = $0;
  37287. label = 17;
  37288. }
  37289. } while(0);
  37290. if ((label|0) == 17) {
  37291. $54 = ($0|0)==(0|0);
  37292. if ($54) {
  37293. $$06266 = 0;
  37294. } else {
  37295. HEAP8[$$1>>0] = 0;
  37296. $$06266 = $0;
  37297. }
  37298. }
  37299. $55 = ($17|0)==(0);
  37300. if ($55) {
  37301. $$0 = $$06266;
  37302. } else {
  37303. ___unlockfile($2);
  37304. $$0 = $$06266;
  37305. }
  37306. }
  37307. return ($$0|0);
  37308. }
  37309. function _feof($0) {
  37310. $0 = $0|0;
  37311. 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;
  37312. sp = STACKTOP;
  37313. $1 = ((($0)) + 76|0);
  37314. $2 = HEAP32[$1>>2]|0;
  37315. $3 = ($2|0)>(-1);
  37316. if ($3) {
  37317. $6 = (___lockfile($0)|0);
  37318. $phitmp = ($6|0)==(0);
  37319. $7 = HEAP32[$0>>2]|0;
  37320. $8 = $7 >>> 4;
  37321. $$lobit = $8 & 1;
  37322. if ($phitmp) {
  37323. $$lobit9 = $$lobit;
  37324. } else {
  37325. ___unlockfile($0);
  37326. $$lobit9 = $$lobit;
  37327. }
  37328. } else {
  37329. $4 = HEAP32[$0>>2]|0;
  37330. $5 = $4 >>> 4;
  37331. $$lobit8 = $5 & 1;
  37332. $$lobit9 = $$lobit8;
  37333. }
  37334. return ($$lobit9|0);
  37335. }
  37336. function _fscanf($0,$1,$varargs) {
  37337. $0 = $0|0;
  37338. $1 = $1|0;
  37339. $varargs = $varargs|0;
  37340. var $2 = 0, $3 = 0, label = 0, sp = 0;
  37341. sp = STACKTOP;
  37342. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  37343. $2 = sp;
  37344. HEAP32[$2>>2] = $varargs;
  37345. $3 = (_vfscanf($0,$1,$2)|0);
  37346. STACKTOP = sp;return ($3|0);
  37347. }
  37348. function _vfscanf($0,$1,$2) {
  37349. $0 = $0|0;
  37350. $1 = $1|0;
  37351. $2 = $2|0;
  37352. 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;
  37353. 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;
  37354. 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;
  37355. 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;
  37356. 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;
  37357. 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;
  37358. 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;
  37359. 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;
  37360. 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;
  37361. 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;
  37362. 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;
  37363. 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;
  37364. 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;
  37365. 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;
  37366. 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;
  37367. 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;
  37368. 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;
  37369. 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;
  37370. 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;
  37371. 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;
  37372. 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;
  37373. sp = STACKTOP;
  37374. STACKTOP = STACKTOP + 288|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(288|0);
  37375. $3 = sp + 8|0;
  37376. $4 = sp + 17|0;
  37377. $5 = sp;
  37378. $6 = sp + 16|0;
  37379. $7 = ((($0)) + 76|0);
  37380. $8 = HEAP32[$7>>2]|0;
  37381. $9 = ($8|0)>(-1);
  37382. if ($9) {
  37383. $10 = (___lockfile($0)|0);
  37384. $306 = $10;
  37385. } else {
  37386. $306 = 0;
  37387. }
  37388. $11 = HEAP8[$1>>0]|0;
  37389. $12 = ($11<<24>>24)==(0);
  37390. L4: do {
  37391. if ($12) {
  37392. $$3291 = 0;
  37393. } else {
  37394. $13 = ((($0)) + 4|0);
  37395. $14 = ((($0)) + 100|0);
  37396. $15 = ((($0)) + 108|0);
  37397. $16 = ((($0)) + 8|0);
  37398. $17 = ((($4)) + 10|0);
  37399. $18 = ((($4)) + 33|0);
  37400. $$sroa$2$0$$sroa_idx13 = ((($3)) + 4|0);
  37401. $19 = ((($4)) + 46|0);
  37402. $20 = ((($4)) + 94|0);
  37403. $21 = ((($4)) + 1|0);
  37404. $22 = ((($4)) + 1|0);
  37405. $$0273429 = $1;$$0283428 = 0;$$0288425 = 0;$$0305423 = 0;$102 = 0;$24 = $11;
  37406. L6: while(1) {
  37407. $23 = $24&255;
  37408. $25 = (_isspace($23)|0);
  37409. $26 = ($25|0)==(0);
  37410. L8: do {
  37411. if ($26) {
  37412. $53 = ($24<<24>>24)==(37);
  37413. L10: do {
  37414. if ($53) {
  37415. $54 = ((($$0273429)) + 1|0);
  37416. $55 = HEAP8[$54>>0]|0;
  37417. L12: do {
  37418. switch ($55<<24>>24) {
  37419. case 37: {
  37420. break L10;
  37421. break;
  37422. }
  37423. case 42: {
  37424. $76 = ((($$0273429)) + 2|0);
  37425. $$0293 = 0;$$2275 = $76;
  37426. break;
  37427. }
  37428. default: {
  37429. $77 = $55&255;
  37430. $isdigittmp = (($77) + -48)|0;
  37431. $isdigit = ($isdigittmp>>>0)<(10);
  37432. if ($isdigit) {
  37433. $78 = ((($$0273429)) + 2|0);
  37434. $79 = HEAP8[$78>>0]|0;
  37435. $80 = ($79<<24>>24)==(36);
  37436. if ($80) {
  37437. $81 = (_arg_n($2,$isdigittmp)|0);
  37438. $82 = ((($$0273429)) + 3|0);
  37439. $$0293 = $81;$$2275 = $82;
  37440. break L12;
  37441. }
  37442. }
  37443. $arglist_current = HEAP32[$2>>2]|0;
  37444. $83 = $arglist_current;
  37445. $84 = ((0) + 4|0);
  37446. $expanded1 = $84;
  37447. $expanded = (($expanded1) - 1)|0;
  37448. $85 = (($83) + ($expanded))|0;
  37449. $86 = ((0) + 4|0);
  37450. $expanded5 = $86;
  37451. $expanded4 = (($expanded5) - 1)|0;
  37452. $expanded3 = $expanded4 ^ -1;
  37453. $87 = $85 & $expanded3;
  37454. $88 = $87;
  37455. $89 = HEAP32[$88>>2]|0;
  37456. $arglist_next = ((($88)) + 4|0);
  37457. HEAP32[$2>>2] = $arglist_next;
  37458. $$0293 = $89;$$2275 = $54;
  37459. }
  37460. }
  37461. } while(0);
  37462. $90 = HEAP8[$$2275>>0]|0;
  37463. $91 = $90&255;
  37464. $isdigittmp315414 = (($91) + -48)|0;
  37465. $isdigit316415 = ($isdigittmp315414>>>0)<(10);
  37466. if ($isdigit316415) {
  37467. $$0266417 = 0;$$3416 = $$2275;$95 = $91;
  37468. while(1) {
  37469. $92 = ($$0266417*10)|0;
  37470. $93 = (($92) + -48)|0;
  37471. $94 = (($93) + ($95))|0;
  37472. $96 = ((($$3416)) + 1|0);
  37473. $97 = HEAP8[$96>>0]|0;
  37474. $98 = $97&255;
  37475. $isdigittmp315 = (($98) + -48)|0;
  37476. $isdigit316 = ($isdigittmp315>>>0)<(10);
  37477. if ($isdigit316) {
  37478. $$0266417 = $94;$$3416 = $96;$95 = $98;
  37479. } else {
  37480. $$0266$lcssa = $94;$$3$lcssa = $96;$$lcssa355 = $97;
  37481. break;
  37482. }
  37483. }
  37484. } else {
  37485. $$0266$lcssa = 0;$$3$lcssa = $$2275;$$lcssa355 = $90;
  37486. }
  37487. $99 = ($$lcssa355<<24>>24)==(109);
  37488. $100 = ($$0293|0)!=(0|0);
  37489. $101 = ((($$3$lcssa)) + 1|0);
  37490. $$$0305 = $99 ? 0 : $$0305423;
  37491. $$327 = $99 ? 0 : $102;
  37492. $$$3 = $99 ? $101 : $$3$lcssa;
  37493. $narrow = $100 & $99;
  37494. $103 = ((($$$3)) + 1|0);
  37495. $104 = HEAP8[$$$3>>0]|0;
  37496. switch ($104<<24>>24) {
  37497. case 104: {
  37498. $105 = HEAP8[$103>>0]|0;
  37499. $106 = ($105<<24>>24)==(104);
  37500. $107 = ((($$$3)) + 2|0);
  37501. $$319 = $106 ? $107 : $103;
  37502. $$320 = $106 ? -2 : -1;
  37503. $$0268 = $$320;$$5 = $$319;
  37504. break;
  37505. }
  37506. case 108: {
  37507. $108 = HEAP8[$103>>0]|0;
  37508. $109 = ($108<<24>>24)==(108);
  37509. $110 = ((($$$3)) + 2|0);
  37510. $$321 = $109 ? $110 : $103;
  37511. $$322 = $109 ? 3 : 1;
  37512. $$0268 = $$322;$$5 = $$321;
  37513. break;
  37514. }
  37515. case 106: {
  37516. $$0268 = 3;$$5 = $103;
  37517. break;
  37518. }
  37519. case 116: case 122: {
  37520. $$0268 = 1;$$5 = $103;
  37521. break;
  37522. }
  37523. case 76: {
  37524. $$0268 = 2;$$5 = $103;
  37525. break;
  37526. }
  37527. 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: {
  37528. $$0268 = 0;$$5 = $$$3;
  37529. break;
  37530. }
  37531. default: {
  37532. $$7312 = $$$0305;$309 = $$327;$narrow469 = $narrow;
  37533. label = 137;
  37534. break L6;
  37535. }
  37536. }
  37537. $111 = HEAP8[$$5>>0]|0;
  37538. $112 = $111&255;
  37539. $113 = $112 & 47;
  37540. $114 = ($113|0)==(3);
  37541. $115 = $112 | 32;
  37542. $$ = $114 ? $115 : $112;
  37543. $$$0268 = $114 ? 1 : $$0268;
  37544. $trunc = $$&255;
  37545. switch ($trunc<<24>>24) {
  37546. case 99: {
  37547. $116 = ($$0266$lcssa|0)>(1);
  37548. $$$0266 = $116 ? $$0266$lcssa : 1;
  37549. $$1267 = $$$0266;$$1284 = $$0283428;
  37550. break;
  37551. }
  37552. case 91: {
  37553. $$1267 = $$0266$lcssa;$$1284 = $$0283428;
  37554. break;
  37555. }
  37556. case 110: {
  37557. $117 = ($$0283428|0)<(0);
  37558. $118 = $117 << 31 >> 31;
  37559. _store_int($$0293,$$$0268,$$0283428,$118);
  37560. $$11 = $$5;$$1289 = $$0288425;$$2285 = $$0283428;$$6311 = $$$0305;$307 = $$327;
  37561. break L8;
  37562. break;
  37563. }
  37564. default: {
  37565. ___shlim($0,0);
  37566. while(1) {
  37567. $119 = HEAP32[$13>>2]|0;
  37568. $120 = HEAP32[$14>>2]|0;
  37569. $121 = ($119>>>0)<($120>>>0);
  37570. if ($121) {
  37571. $122 = ((($119)) + 1|0);
  37572. HEAP32[$13>>2] = $122;
  37573. $123 = HEAP8[$119>>0]|0;
  37574. $124 = $123&255;
  37575. $126 = $124;
  37576. } else {
  37577. $125 = (___shgetc($0)|0);
  37578. $126 = $125;
  37579. }
  37580. $127 = (_isspace($126)|0);
  37581. $128 = ($127|0)==(0);
  37582. if ($128) {
  37583. break;
  37584. }
  37585. }
  37586. $129 = HEAP32[$14>>2]|0;
  37587. $130 = ($129|0)==(0|0);
  37588. if ($130) {
  37589. $$pre507 = HEAP32[$13>>2]|0;
  37590. $138 = $$pre507;
  37591. } else {
  37592. $131 = HEAP32[$13>>2]|0;
  37593. $132 = ((($131)) + -1|0);
  37594. HEAP32[$13>>2] = $132;
  37595. $133 = $132;
  37596. $138 = $133;
  37597. }
  37598. $134 = HEAP32[$15>>2]|0;
  37599. $135 = HEAP32[$16>>2]|0;
  37600. $136 = (($134) + ($$0283428))|0;
  37601. $137 = (($136) + ($138))|0;
  37602. $139 = (($137) - ($135))|0;
  37603. $$1267 = $$0266$lcssa;$$1284 = $139;
  37604. }
  37605. }
  37606. ___shlim($0,$$1267);
  37607. $140 = HEAP32[$13>>2]|0;
  37608. $141 = HEAP32[$14>>2]|0;
  37609. $142 = ($140>>>0)<($141>>>0);
  37610. if ($142) {
  37611. $143 = ((($140)) + 1|0);
  37612. HEAP32[$13>>2] = $143;
  37613. $147 = $141;
  37614. } else {
  37615. $144 = (___shgetc($0)|0);
  37616. $145 = ($144|0)<(0);
  37617. if ($145) {
  37618. $$7312 = $$$0305;$309 = $$327;$narrow469 = $narrow;
  37619. label = 137;
  37620. break L6;
  37621. }
  37622. $$pre509 = HEAP32[$14>>2]|0;
  37623. $147 = $$pre509;
  37624. }
  37625. $146 = ($147|0)==(0|0);
  37626. if (!($146)) {
  37627. $148 = HEAP32[$13>>2]|0;
  37628. $149 = ((($148)) + -1|0);
  37629. HEAP32[$13>>2] = $149;
  37630. }
  37631. L55: do {
  37632. switch ($trunc<<24>>24) {
  37633. case 91: case 99: case 115: {
  37634. $150 = ($$|0)==(99);
  37635. $151 = $$ | 16;
  37636. $152 = ($151|0)==(115);
  37637. L57: do {
  37638. if ($152) {
  37639. $153 = ($$|0)==(115);
  37640. _memset(($21|0),-1,256)|0;
  37641. HEAP8[$4>>0] = 0;
  37642. if ($153) {
  37643. HEAP8[$18>>0] = 0;
  37644. ;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;
  37645. $$9 = $$5;
  37646. } else {
  37647. $$9 = $$5;
  37648. }
  37649. } else {
  37650. $154 = ((($$5)) + 1|0);
  37651. $155 = HEAP8[$154>>0]|0;
  37652. $156 = ($155<<24>>24)==(94);
  37653. $157 = ((($$5)) + 2|0);
  37654. $$0292 = $156&1;
  37655. $$6 = $156 ? $157 : $154;
  37656. $158 = $156&1;
  37657. _memset(($22|0),($158|0),256)|0;
  37658. HEAP8[$4>>0] = 0;
  37659. $159 = HEAP8[$$6>>0]|0;
  37660. switch ($159<<24>>24) {
  37661. case 45: {
  37662. $$sink443 = $19;
  37663. label = 64;
  37664. break;
  37665. }
  37666. case 93: {
  37667. $$sink443 = $20;
  37668. label = 64;
  37669. break;
  37670. }
  37671. default: {
  37672. $$pre514 = $$0292 ^ 1;
  37673. $$pre515 = $$pre514&255;
  37674. $$7$ph = $$6;$$pre$phi516Z2D = $$pre515;
  37675. }
  37676. }
  37677. if ((label|0) == 64) {
  37678. label = 0;
  37679. $160 = ((($$6)) + 1|0);
  37680. $161 = $$0292 ^ 1;
  37681. $162 = $161&255;
  37682. HEAP8[$$sink443>>0] = $162;
  37683. $$7$ph = $160;$$pre$phi516Z2D = $162;
  37684. }
  37685. $$7 = $$7$ph;
  37686. while(1) {
  37687. $163 = HEAP8[$$7>>0]|0;
  37688. L69: do {
  37689. switch ($163<<24>>24) {
  37690. case 0: {
  37691. $$7312 = $$$0305;$309 = $$327;$narrow469 = $narrow;
  37692. label = 137;
  37693. break L6;
  37694. break;
  37695. }
  37696. case 93: {
  37697. $$9 = $$7;
  37698. break L57;
  37699. break;
  37700. }
  37701. case 45: {
  37702. $164 = ((($$7)) + 1|0);
  37703. $165 = HEAP8[$164>>0]|0;
  37704. switch ($165<<24>>24) {
  37705. case 93: case 0: {
  37706. $$8 = $$7;$176 = 45;
  37707. break L69;
  37708. break;
  37709. }
  37710. default: {
  37711. }
  37712. }
  37713. $166 = ((($$7)) + -1|0);
  37714. $167 = HEAP8[$166>>0]|0;
  37715. $168 = ($167&255)<($165&255);
  37716. if ($168) {
  37717. $169 = $167&255;
  37718. $$0286420 = $169;
  37719. while(1) {
  37720. $170 = (($$0286420) + 1)|0;
  37721. $171 = (($4) + ($170)|0);
  37722. HEAP8[$171>>0] = $$pre$phi516Z2D;
  37723. $172 = HEAP8[$164>>0]|0;
  37724. $173 = $172&255;
  37725. $174 = ($170|0)<($173|0);
  37726. if ($174) {
  37727. $$0286420 = $170;
  37728. } else {
  37729. $$8 = $164;$176 = $172;
  37730. break;
  37731. }
  37732. }
  37733. } else {
  37734. $$8 = $164;$176 = $165;
  37735. }
  37736. break;
  37737. }
  37738. default: {
  37739. $$8 = $$7;$176 = $163;
  37740. }
  37741. }
  37742. } while(0);
  37743. $175 = $176&255;
  37744. $177 = (($175) + 1)|0;
  37745. $178 = (($4) + ($177)|0);
  37746. HEAP8[$178>>0] = $$pre$phi516Z2D;
  37747. $179 = ((($$8)) + 1|0);
  37748. $$7 = $179;
  37749. }
  37750. }
  37751. } while(0);
  37752. $180 = (($$1267) + 1)|0;
  37753. $181 = $150 ? $180 : 31;
  37754. $182 = ($$$0268|0)==(1);
  37755. L77: do {
  37756. if ($182) {
  37757. if ($narrow) {
  37758. $183 = $181 << 2;
  37759. $184 = (_malloc($183)|0);
  37760. $185 = ($184|0)==(0|0);
  37761. if ($185) {
  37762. $$7312 = 0;$309 = 0;$narrow469 = 1;
  37763. label = 137;
  37764. break L6;
  37765. } else {
  37766. $311 = $184;
  37767. }
  37768. } else {
  37769. $311 = $$0293;
  37770. }
  37771. HEAP32[$3>>2] = 0;
  37772. HEAP32[$$sroa$2$0$$sroa_idx13>>2] = 0;
  37773. $$0276$ph = $181;$$0278$ph = 0;$$ph = $311;
  37774. L82: while(1) {
  37775. $186 = ($$ph|0)==(0|0);
  37776. $$0278$ph336 = $$0278$ph;
  37777. while(1) {
  37778. L86: while(1) {
  37779. $187 = HEAP32[$13>>2]|0;
  37780. $188 = HEAP32[$14>>2]|0;
  37781. $189 = ($187>>>0)<($188>>>0);
  37782. if ($189) {
  37783. $190 = ((($187)) + 1|0);
  37784. HEAP32[$13>>2] = $190;
  37785. $191 = HEAP8[$187>>0]|0;
  37786. $192 = $191&255;
  37787. $195 = $192;
  37788. } else {
  37789. $193 = (___shgetc($0)|0);
  37790. $195 = $193;
  37791. }
  37792. $194 = (($195) + 1)|0;
  37793. $196 = (($4) + ($194)|0);
  37794. $197 = HEAP8[$196>>0]|0;
  37795. $198 = ($197<<24>>24)==(0);
  37796. if ($198) {
  37797. break L82;
  37798. }
  37799. $199 = $195&255;
  37800. HEAP8[$6>>0] = $199;
  37801. $200 = (_mbrtowc($5,$6,1,$3)|0);
  37802. switch ($200|0) {
  37803. case -1: {
  37804. $$7312 = 0;$309 = $$ph;$narrow469 = $narrow;
  37805. label = 137;
  37806. break L6;
  37807. break;
  37808. }
  37809. case -2: {
  37810. break;
  37811. }
  37812. default: {
  37813. break L86;
  37814. }
  37815. }
  37816. }
  37817. if ($186) {
  37818. $$1279 = $$0278$ph336;
  37819. } else {
  37820. $201 = (($$ph) + ($$0278$ph336<<2)|0);
  37821. $202 = (($$0278$ph336) + 1)|0;
  37822. $203 = HEAP32[$5>>2]|0;
  37823. HEAP32[$201>>2] = $203;
  37824. $$1279 = $202;
  37825. }
  37826. $204 = ($$1279|0)==($$0276$ph|0);
  37827. $or$cond = $narrow & $204;
  37828. if ($or$cond) {
  37829. break;
  37830. } else {
  37831. $$0278$ph336 = $$1279;
  37832. }
  37833. }
  37834. $factor331 = $$0276$ph << 1;
  37835. $205 = $factor331 | 1;
  37836. $206 = $205 << 2;
  37837. $207 = (_realloc($$ph,$206)|0);
  37838. $208 = ($207|0)==(0|0);
  37839. if ($208) {
  37840. $$7312 = 0;$309 = $$ph;$narrow469 = 1;
  37841. label = 137;
  37842. break L6;
  37843. } else {
  37844. $$0278$ph$phi = $$0276$ph;$$0276$ph = $205;$$ph = $207;$$0278$ph = $$0278$ph$phi;
  37845. }
  37846. }
  37847. $209 = (_mbsinit($3)|0);
  37848. $210 = ($209|0)==(0);
  37849. if ($210) {
  37850. $$7312 = 0;$309 = $$ph;$narrow469 = $narrow;
  37851. label = 137;
  37852. break L6;
  37853. } else {
  37854. $$4282 = $$0278$ph336;$$4309 = 0;$$5299 = $$ph;$312 = $$ph;
  37855. }
  37856. } else {
  37857. if ($narrow) {
  37858. $211 = (_malloc($181)|0);
  37859. $212 = ($211|0)==(0|0);
  37860. if ($212) {
  37861. $$7312 = 0;$309 = 0;$narrow469 = 1;
  37862. label = 137;
  37863. break L6;
  37864. } else {
  37865. $$1277$ph = $181;$$2280$ph = 0;$$2307$ph = $211;
  37866. }
  37867. while(1) {
  37868. $$2280 = $$2280$ph;
  37869. while(1) {
  37870. $213 = HEAP32[$13>>2]|0;
  37871. $214 = HEAP32[$14>>2]|0;
  37872. $215 = ($213>>>0)<($214>>>0);
  37873. if ($215) {
  37874. $216 = ((($213)) + 1|0);
  37875. HEAP32[$13>>2] = $216;
  37876. $217 = HEAP8[$213>>0]|0;
  37877. $218 = $217&255;
  37878. $221 = $218;
  37879. } else {
  37880. $219 = (___shgetc($0)|0);
  37881. $221 = $219;
  37882. }
  37883. $220 = (($221) + 1)|0;
  37884. $222 = (($4) + ($220)|0);
  37885. $223 = HEAP8[$222>>0]|0;
  37886. $224 = ($223<<24>>24)==(0);
  37887. if ($224) {
  37888. $$4282 = $$2280;$$4309 = $$2307$ph;$$5299 = 0;$312 = 0;
  37889. break L77;
  37890. }
  37891. $225 = $221&255;
  37892. $226 = (($$2280) + 1)|0;
  37893. $227 = (($$2307$ph) + ($$2280)|0);
  37894. HEAP8[$227>>0] = $225;
  37895. $228 = ($226|0)==($$1277$ph|0);
  37896. if ($228) {
  37897. break;
  37898. } else {
  37899. $$2280 = $226;
  37900. }
  37901. }
  37902. $factor = $$1277$ph << 1;
  37903. $229 = $factor | 1;
  37904. $230 = (_realloc($$2307$ph,$229)|0);
  37905. $231 = ($230|0)==(0|0);
  37906. if ($231) {
  37907. $$7312 = $$2307$ph;$309 = 0;$narrow469 = 1;
  37908. label = 137;
  37909. break L6;
  37910. } else {
  37911. $$2280$ph$phi = $$1277$ph;$$1277$ph = $229;$$2307$ph = $230;$$2280$ph = $$2280$ph$phi;
  37912. }
  37913. }
  37914. }
  37915. $232 = ($$0293|0)==(0|0);
  37916. if ($232) {
  37917. $250 = $147;
  37918. while(1) {
  37919. $248 = HEAP32[$13>>2]|0;
  37920. $249 = ($248>>>0)<($250>>>0);
  37921. if ($249) {
  37922. $251 = ((($248)) + 1|0);
  37923. HEAP32[$13>>2] = $251;
  37924. $252 = HEAP8[$248>>0]|0;
  37925. $253 = $252&255;
  37926. $256 = $253;
  37927. } else {
  37928. $254 = (___shgetc($0)|0);
  37929. $256 = $254;
  37930. }
  37931. $255 = (($256) + 1)|0;
  37932. $257 = (($4) + ($255)|0);
  37933. $258 = HEAP8[$257>>0]|0;
  37934. $259 = ($258<<24>>24)==(0);
  37935. if ($259) {
  37936. $$4282 = 0;$$4309 = 0;$$5299 = 0;$312 = 0;
  37937. break L77;
  37938. }
  37939. $$pre512 = HEAP32[$14>>2]|0;
  37940. $250 = $$pre512;
  37941. }
  37942. } else {
  37943. $$3281 = 0;$235 = $147;
  37944. while(1) {
  37945. $233 = HEAP32[$13>>2]|0;
  37946. $234 = ($233>>>0)<($235>>>0);
  37947. if ($234) {
  37948. $236 = ((($233)) + 1|0);
  37949. HEAP32[$13>>2] = $236;
  37950. $237 = HEAP8[$233>>0]|0;
  37951. $238 = $237&255;
  37952. $241 = $238;
  37953. } else {
  37954. $239 = (___shgetc($0)|0);
  37955. $241 = $239;
  37956. }
  37957. $240 = (($241) + 1)|0;
  37958. $242 = (($4) + ($240)|0);
  37959. $243 = HEAP8[$242>>0]|0;
  37960. $244 = ($243<<24>>24)==(0);
  37961. if ($244) {
  37962. $$4282 = $$3281;$$4309 = $$0293;$$5299 = 0;$312 = 0;
  37963. break L77;
  37964. }
  37965. $245 = $241&255;
  37966. $246 = (($$3281) + 1)|0;
  37967. $247 = (($$0293) + ($$3281)|0);
  37968. HEAP8[$247>>0] = $245;
  37969. $$pre511 = HEAP32[$14>>2]|0;
  37970. $$3281 = $246;$235 = $$pre511;
  37971. }
  37972. }
  37973. }
  37974. } while(0);
  37975. $260 = HEAP32[$14>>2]|0;
  37976. $261 = ($260|0)==(0|0);
  37977. if ($261) {
  37978. $$pre513 = HEAP32[$13>>2]|0;
  37979. $268 = $$pre513;
  37980. } else {
  37981. $262 = HEAP32[$13>>2]|0;
  37982. $263 = ((($262)) + -1|0);
  37983. HEAP32[$13>>2] = $263;
  37984. $264 = $263;
  37985. $268 = $264;
  37986. }
  37987. $265 = HEAP32[$15>>2]|0;
  37988. $266 = HEAP32[$16>>2]|0;
  37989. $267 = (($268) - ($266))|0;
  37990. $269 = (($267) + ($265))|0;
  37991. $270 = ($269|0)==(0);
  37992. if ($270) {
  37993. $$9314$ph = $$4309;$$ph353 = $312;
  37994. label = 139;
  37995. break L6;
  37996. }
  37997. $$not = $150 ^ 1;
  37998. $271 = ($269|0)==($$1267|0);
  37999. $or$cond318 = $271 | $$not;
  38000. if (!($or$cond318)) {
  38001. $$9314$ph = $$4309;$$ph353 = $312;
  38002. label = 139;
  38003. break L6;
  38004. }
  38005. do {
  38006. if ($narrow) {
  38007. if ($182) {
  38008. HEAP32[$$0293>>2] = $$5299;
  38009. break;
  38010. } else {
  38011. HEAP32[$$0293>>2] = $$4309;
  38012. break;
  38013. }
  38014. }
  38015. } while(0);
  38016. if ($150) {
  38017. $$10 = $$9;$$5310 = $$4309;$310 = $312;
  38018. } else {
  38019. $272 = ($$5299|0)==(0|0);
  38020. if (!($272)) {
  38021. $273 = (($$5299) + ($$4282<<2)|0);
  38022. HEAP32[$273>>2] = 0;
  38023. }
  38024. $274 = ($$4309|0)==(0|0);
  38025. if ($274) {
  38026. $$10 = $$9;$$5310 = 0;$310 = $312;
  38027. break L55;
  38028. }
  38029. $275 = (($$4309) + ($$4282)|0);
  38030. HEAP8[$275>>0] = 0;
  38031. $$10 = $$9;$$5310 = $$4309;$310 = $312;
  38032. }
  38033. break;
  38034. }
  38035. case 120: case 88: case 112: {
  38036. $$0272 = 16;
  38037. label = 125;
  38038. break;
  38039. }
  38040. case 111: {
  38041. $$0272 = 8;
  38042. label = 125;
  38043. break;
  38044. }
  38045. case 117: case 100: {
  38046. $$0272 = 10;
  38047. label = 125;
  38048. break;
  38049. }
  38050. case 105: {
  38051. $$0272 = 0;
  38052. label = 125;
  38053. break;
  38054. }
  38055. case 71: case 103: case 70: case 102: case 69: case 101: case 65: case 97: {
  38056. $285 = (+___floatscan($0,$$$0268,0));
  38057. $286 = HEAP32[$15>>2]|0;
  38058. $287 = HEAP32[$13>>2]|0;
  38059. $288 = HEAP32[$16>>2]|0;
  38060. $289 = (($288) - ($287))|0;
  38061. $290 = ($286|0)==($289|0);
  38062. if ($290) {
  38063. $$9314$ph = $$$0305;$$ph353 = $$327;
  38064. label = 139;
  38065. break L6;
  38066. }
  38067. $291 = ($$0293|0)==(0|0);
  38068. if ($291) {
  38069. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  38070. } else {
  38071. switch ($$$0268|0) {
  38072. case 0: {
  38073. $292 = $285;
  38074. HEAPF32[$$0293>>2] = $292;
  38075. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  38076. break L55;
  38077. break;
  38078. }
  38079. case 1: {
  38080. HEAPF64[$$0293>>3] = $285;
  38081. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  38082. break L55;
  38083. break;
  38084. }
  38085. case 2: {
  38086. HEAPF64[$$0293>>3] = $285;
  38087. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  38088. break L55;
  38089. break;
  38090. }
  38091. default: {
  38092. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  38093. break L55;
  38094. }
  38095. }
  38096. }
  38097. break;
  38098. }
  38099. default: {
  38100. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  38101. }
  38102. }
  38103. } while(0);
  38104. do {
  38105. if ((label|0) == 125) {
  38106. label = 0;
  38107. $276 = (___intscan($0,$$0272,0,-1,-1)|0);
  38108. $277 = tempRet0;
  38109. $278 = HEAP32[$15>>2]|0;
  38110. $279 = HEAP32[$13>>2]|0;
  38111. $280 = HEAP32[$16>>2]|0;
  38112. $281 = (($280) - ($279))|0;
  38113. $282 = ($278|0)==($281|0);
  38114. if ($282) {
  38115. $$9314$ph = $$$0305;$$ph353 = $$327;
  38116. label = 139;
  38117. break L6;
  38118. }
  38119. $283 = ($$|0)==(112);
  38120. $or$cond3 = $100 & $283;
  38121. if ($or$cond3) {
  38122. $284 = $276;
  38123. HEAP32[$$0293>>2] = $284;
  38124. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  38125. break;
  38126. } else {
  38127. _store_int($$0293,$$$0268,$276,$277);
  38128. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  38129. break;
  38130. }
  38131. }
  38132. } while(0);
  38133. $293 = HEAP32[$15>>2]|0;
  38134. $294 = HEAP32[$13>>2]|0;
  38135. $295 = HEAP32[$16>>2]|0;
  38136. $296 = (($293) + ($$1284))|0;
  38137. $297 = (($296) + ($294))|0;
  38138. $298 = (($297) - ($295))|0;
  38139. $299 = $100&1;
  38140. $$0288$ = (($299) + ($$0288425))|0;
  38141. $$11 = $$10;$$1289 = $$0288$;$$2285 = $298;$$6311 = $$5310;$307 = $310;
  38142. break L8;
  38143. }
  38144. } while(0);
  38145. $56 = $53&1;
  38146. $57 = (($$0273429) + ($56)|0);
  38147. ___shlim($0,0);
  38148. $58 = HEAP32[$13>>2]|0;
  38149. $59 = HEAP32[$14>>2]|0;
  38150. $60 = ($58>>>0)<($59>>>0);
  38151. if ($60) {
  38152. $61 = ((($58)) + 1|0);
  38153. HEAP32[$13>>2] = $61;
  38154. $62 = HEAP8[$58>>0]|0;
  38155. $63 = $62&255;
  38156. $68 = $63;
  38157. } else {
  38158. $64 = (___shgetc($0)|0);
  38159. $68 = $64;
  38160. }
  38161. $65 = HEAP8[$57>>0]|0;
  38162. $66 = $65&255;
  38163. $67 = ($68|0)==($66|0);
  38164. if (!($67)) {
  38165. label = 22;
  38166. break L6;
  38167. }
  38168. $75 = (($$0283428) + 1)|0;
  38169. $$11 = $57;$$1289 = $$0288425;$$2285 = $75;$$6311 = $$0305423;$307 = $102;
  38170. } else {
  38171. $$1274 = $$0273429;
  38172. while(1) {
  38173. $27 = ((($$1274)) + 1|0);
  38174. $28 = HEAP8[$27>>0]|0;
  38175. $29 = $28&255;
  38176. $30 = (_isspace($29)|0);
  38177. $31 = ($30|0)==(0);
  38178. if ($31) {
  38179. break;
  38180. } else {
  38181. $$1274 = $27;
  38182. }
  38183. }
  38184. ___shlim($0,0);
  38185. while(1) {
  38186. $32 = HEAP32[$13>>2]|0;
  38187. $33 = HEAP32[$14>>2]|0;
  38188. $34 = ($32>>>0)<($33>>>0);
  38189. if ($34) {
  38190. $35 = ((($32)) + 1|0);
  38191. HEAP32[$13>>2] = $35;
  38192. $36 = HEAP8[$32>>0]|0;
  38193. $37 = $36&255;
  38194. $39 = $37;
  38195. } else {
  38196. $38 = (___shgetc($0)|0);
  38197. $39 = $38;
  38198. }
  38199. $40 = (_isspace($39)|0);
  38200. $41 = ($40|0)==(0);
  38201. if ($41) {
  38202. break;
  38203. }
  38204. }
  38205. $42 = HEAP32[$14>>2]|0;
  38206. $43 = ($42|0)==(0|0);
  38207. if ($43) {
  38208. $$pre = HEAP32[$13>>2]|0;
  38209. $51 = $$pre;
  38210. } else {
  38211. $44 = HEAP32[$13>>2]|0;
  38212. $45 = ((($44)) + -1|0);
  38213. HEAP32[$13>>2] = $45;
  38214. $46 = $45;
  38215. $51 = $46;
  38216. }
  38217. $47 = HEAP32[$15>>2]|0;
  38218. $48 = HEAP32[$16>>2]|0;
  38219. $49 = (($47) + ($$0283428))|0;
  38220. $50 = (($49) + ($51))|0;
  38221. $52 = (($50) - ($48))|0;
  38222. $$11 = $$1274;$$1289 = $$0288425;$$2285 = $52;$$6311 = $$0305423;$307 = $102;
  38223. }
  38224. } while(0);
  38225. $300 = ((($$11)) + 1|0);
  38226. $301 = HEAP8[$300>>0]|0;
  38227. $302 = ($301<<24>>24)==(0);
  38228. if ($302) {
  38229. $$3291 = $$1289;
  38230. break L4;
  38231. } else {
  38232. $$0273429 = $300;$$0283428 = $$2285;$$0288425 = $$1289;$$0305423 = $$6311;$102 = $307;$24 = $301;
  38233. }
  38234. }
  38235. if ((label|0) == 22) {
  38236. $69 = HEAP32[$14>>2]|0;
  38237. $70 = ($69|0)==(0|0);
  38238. if (!($70)) {
  38239. $71 = HEAP32[$13>>2]|0;
  38240. $72 = ((($71)) + -1|0);
  38241. HEAP32[$13>>2] = $72;
  38242. }
  38243. $73 = ($68|0)>(-1);
  38244. $74 = ($$0288425|0)!=(0);
  38245. $or$cond5 = $74 | $73;
  38246. if ($or$cond5) {
  38247. $$3291 = $$0288425;
  38248. break;
  38249. } else {
  38250. $$1271 = 0;$$8313 = $$0305423;$308 = $102;
  38251. label = 138;
  38252. }
  38253. }
  38254. else if ((label|0) == 137) {
  38255. $$328$le441 = $narrow469&1;
  38256. $$old4 = ($$0288425|0)==(0);
  38257. if ($$old4) {
  38258. $$1271 = $$328$le441;$$8313 = $$7312;$308 = $309;
  38259. label = 138;
  38260. } else {
  38261. $$2 = $$328$le441;$$2290 = $$0288425;$$9314 = $$7312;$304 = $309;
  38262. }
  38263. }
  38264. else if ((label|0) == 139) {
  38265. $$328$le439 = $narrow&1;
  38266. $$2 = $$328$le439;$$2290 = $$0288425;$$9314 = $$9314$ph;$304 = $$ph353;
  38267. }
  38268. if ((label|0) == 138) {
  38269. $$2 = $$1271;$$2290 = -1;$$9314 = $$8313;$304 = $308;
  38270. }
  38271. $303 = ($$2|0)==(0);
  38272. if ($303) {
  38273. $$3291 = $$2290;
  38274. } else {
  38275. _free($$9314);
  38276. _free($304);
  38277. $$3291 = $$2290;
  38278. }
  38279. }
  38280. } while(0);
  38281. $305 = ($306|0)==(0);
  38282. if (!($305)) {
  38283. ___unlockfile($0);
  38284. }
  38285. STACKTOP = sp;return ($$3291|0);
  38286. }
  38287. function _arg_n($0,$1) {
  38288. $0 = $0|0;
  38289. $1 = $1|0;
  38290. 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;
  38291. var sp = 0;
  38292. sp = STACKTOP;
  38293. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  38294. $2 = sp;
  38295. $vacopy_currentptr = HEAP32[$0>>2]|0;
  38296. HEAP32[$2>>2] = $vacopy_currentptr;
  38297. $$0 = $1;
  38298. while(1) {
  38299. $3 = ($$0>>>0)>(1);
  38300. $arglist_current = HEAP32[$2>>2]|0;
  38301. $4 = $arglist_current;
  38302. $5 = ((0) + 4|0);
  38303. $expanded1 = $5;
  38304. $expanded = (($expanded1) - 1)|0;
  38305. $6 = (($4) + ($expanded))|0;
  38306. $7 = ((0) + 4|0);
  38307. $expanded5 = $7;
  38308. $expanded4 = (($expanded5) - 1)|0;
  38309. $expanded3 = $expanded4 ^ -1;
  38310. $8 = $6 & $expanded3;
  38311. $9 = $8;
  38312. $10 = HEAP32[$9>>2]|0;
  38313. $arglist_next = ((($9)) + 4|0);
  38314. HEAP32[$2>>2] = $arglist_next;
  38315. $11 = (($$0) + -1)|0;
  38316. if ($3) {
  38317. $$0 = $11;
  38318. } else {
  38319. break;
  38320. }
  38321. }
  38322. STACKTOP = sp;return ($10|0);
  38323. }
  38324. function _store_int($0,$1,$2,$3) {
  38325. $0 = $0|0;
  38326. $1 = $1|0;
  38327. $2 = $2|0;
  38328. $3 = $3|0;
  38329. var $10 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  38330. sp = STACKTOP;
  38331. $4 = ($0|0)==(0|0);
  38332. L1: do {
  38333. if (!($4)) {
  38334. switch ($1|0) {
  38335. case -2: {
  38336. $5 = $2&255;
  38337. HEAP8[$0>>0] = $5;
  38338. break L1;
  38339. break;
  38340. }
  38341. case -1: {
  38342. $6 = $2&65535;
  38343. HEAP16[$0>>1] = $6;
  38344. break L1;
  38345. break;
  38346. }
  38347. case 0: {
  38348. HEAP32[$0>>2] = $2;
  38349. break L1;
  38350. break;
  38351. }
  38352. case 1: {
  38353. HEAP32[$0>>2] = $2;
  38354. break L1;
  38355. break;
  38356. }
  38357. case 3: {
  38358. $7 = $0;
  38359. $8 = $7;
  38360. HEAP32[$8>>2] = $2;
  38361. $9 = (($7) + 4)|0;
  38362. $10 = $9;
  38363. HEAP32[$10>>2] = $3;
  38364. break L1;
  38365. break;
  38366. }
  38367. default: {
  38368. break L1;
  38369. }
  38370. }
  38371. }
  38372. } while(0);
  38373. return;
  38374. }
  38375. function _mbsinit($0) {
  38376. $0 = $0|0;
  38377. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  38378. sp = STACKTOP;
  38379. $1 = ($0|0)==(0|0);
  38380. if ($1) {
  38381. $5 = 1;
  38382. } else {
  38383. $2 = HEAP32[$0>>2]|0;
  38384. $3 = ($2|0)==(0);
  38385. $5 = $3;
  38386. }
  38387. $4 = $5&1;
  38388. return ($4|0);
  38389. }
  38390. function _fseek($0,$1,$2) {
  38391. $0 = $0|0;
  38392. $1 = $1|0;
  38393. $2 = $2|0;
  38394. var $3 = 0, label = 0, sp = 0;
  38395. sp = STACKTOP;
  38396. $3 = (___fseeko($0,$1,$2)|0);
  38397. return ($3|0);
  38398. }
  38399. function ___fseeko($0,$1,$2) {
  38400. $0 = $0|0;
  38401. $1 = $1|0;
  38402. $2 = $2|0;
  38403. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $phitmp = 0, label = 0, sp = 0;
  38404. sp = STACKTOP;
  38405. $3 = ((($0)) + 76|0);
  38406. $4 = HEAP32[$3>>2]|0;
  38407. $5 = ($4|0)>(-1);
  38408. if ($5) {
  38409. $7 = (___lockfile($0)|0);
  38410. $phitmp = ($7|0)==(0);
  38411. $8 = (___fseeko_unlocked($0,$1,$2)|0);
  38412. if ($phitmp) {
  38413. $9 = $8;
  38414. } else {
  38415. ___unlockfile($0);
  38416. $9 = $8;
  38417. }
  38418. } else {
  38419. $6 = (___fseeko_unlocked($0,$1,$2)|0);
  38420. $9 = $6;
  38421. }
  38422. return ($9|0);
  38423. }
  38424. function ___fseeko_unlocked($0,$1,$2) {
  38425. $0 = $0|0;
  38426. $1 = $1|0;
  38427. $2 = $2|0;
  38428. 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;
  38429. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  38430. sp = STACKTOP;
  38431. $3 = ($2|0)==(1);
  38432. if ($3) {
  38433. $4 = ((($0)) + 8|0);
  38434. $5 = HEAP32[$4>>2]|0;
  38435. $6 = ((($0)) + 4|0);
  38436. $7 = HEAP32[$6>>2]|0;
  38437. $8 = (($1) - ($5))|0;
  38438. $9 = (($8) + ($7))|0;
  38439. $$019 = $9;
  38440. } else {
  38441. $$019 = $1;
  38442. }
  38443. $10 = ((($0)) + 20|0);
  38444. $11 = HEAP32[$10>>2]|0;
  38445. $12 = ((($0)) + 28|0);
  38446. $13 = HEAP32[$12>>2]|0;
  38447. $14 = ($11>>>0)>($13>>>0);
  38448. if ($14) {
  38449. $15 = ((($0)) + 36|0);
  38450. $16 = HEAP32[$15>>2]|0;
  38451. (FUNCTION_TABLE_iiii[$16 & 15]($0,0,0)|0);
  38452. $17 = HEAP32[$10>>2]|0;
  38453. $18 = ($17|0)==(0|0);
  38454. if ($18) {
  38455. $$0 = -1;
  38456. } else {
  38457. label = 5;
  38458. }
  38459. } else {
  38460. label = 5;
  38461. }
  38462. if ((label|0) == 5) {
  38463. $19 = ((($0)) + 16|0);
  38464. HEAP32[$19>>2] = 0;
  38465. HEAP32[$12>>2] = 0;
  38466. HEAP32[$10>>2] = 0;
  38467. $20 = ((($0)) + 40|0);
  38468. $21 = HEAP32[$20>>2]|0;
  38469. $22 = (FUNCTION_TABLE_iiii[$21 & 15]($0,$$019,$2)|0);
  38470. $23 = ($22|0)<(0);
  38471. if ($23) {
  38472. $$0 = -1;
  38473. } else {
  38474. $24 = ((($0)) + 8|0);
  38475. HEAP32[$24>>2] = 0;
  38476. $25 = ((($0)) + 4|0);
  38477. HEAP32[$25>>2] = 0;
  38478. $26 = HEAP32[$0>>2]|0;
  38479. $27 = $26 & -17;
  38480. HEAP32[$0>>2] = $27;
  38481. $$0 = 0;
  38482. }
  38483. }
  38484. return ($$0|0);
  38485. }
  38486. function _strstr($0,$1) {
  38487. $0 = $0|0;
  38488. $1 = $1|0;
  38489. 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;
  38490. 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;
  38491. sp = STACKTOP;
  38492. $2 = HEAP8[$1>>0]|0;
  38493. $3 = ($2<<24>>24)==(0);
  38494. do {
  38495. if ($3) {
  38496. $$0 = $0;
  38497. } else {
  38498. $4 = $2 << 24 >> 24;
  38499. $5 = (_strchr($0,$4)|0);
  38500. $6 = ($5|0)==(0|0);
  38501. if ($6) {
  38502. $$0 = 0;
  38503. } else {
  38504. $7 = ((($1)) + 1|0);
  38505. $8 = HEAP8[$7>>0]|0;
  38506. $9 = ($8<<24>>24)==(0);
  38507. if ($9) {
  38508. $$0 = $5;
  38509. } else {
  38510. $10 = ((($5)) + 1|0);
  38511. $11 = HEAP8[$10>>0]|0;
  38512. $12 = ($11<<24>>24)==(0);
  38513. if ($12) {
  38514. $$0 = 0;
  38515. } else {
  38516. $13 = ((($1)) + 2|0);
  38517. $14 = HEAP8[$13>>0]|0;
  38518. $15 = ($14<<24>>24)==(0);
  38519. if ($15) {
  38520. $16 = (_twobyte_strstr($5,$1)|0);
  38521. $$0 = $16;
  38522. break;
  38523. }
  38524. $17 = ((($5)) + 2|0);
  38525. $18 = HEAP8[$17>>0]|0;
  38526. $19 = ($18<<24>>24)==(0);
  38527. if ($19) {
  38528. $$0 = 0;
  38529. } else {
  38530. $20 = ((($1)) + 3|0);
  38531. $21 = HEAP8[$20>>0]|0;
  38532. $22 = ($21<<24>>24)==(0);
  38533. if ($22) {
  38534. $23 = (_threebyte_strstr($5,$1)|0);
  38535. $$0 = $23;
  38536. break;
  38537. }
  38538. $24 = ((($5)) + 3|0);
  38539. $25 = HEAP8[$24>>0]|0;
  38540. $26 = ($25<<24>>24)==(0);
  38541. if ($26) {
  38542. $$0 = 0;
  38543. } else {
  38544. $27 = ((($1)) + 4|0);
  38545. $28 = HEAP8[$27>>0]|0;
  38546. $29 = ($28<<24>>24)==(0);
  38547. if ($29) {
  38548. $30 = (_fourbyte_strstr($5,$1)|0);
  38549. $$0 = $30;
  38550. break;
  38551. } else {
  38552. $31 = (_twoway_strstr($5,$1)|0);
  38553. $$0 = $31;
  38554. break;
  38555. }
  38556. }
  38557. }
  38558. }
  38559. }
  38560. }
  38561. }
  38562. } while(0);
  38563. return ($$0|0);
  38564. }
  38565. function _twobyte_strstr($0,$1) {
  38566. $0 = $0|0;
  38567. $1 = $1|0;
  38568. 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;
  38569. var label = 0, sp = 0;
  38570. sp = STACKTOP;
  38571. $2 = HEAP8[$1>>0]|0;
  38572. $3 = $2&255;
  38573. $4 = $3 << 8;
  38574. $5 = ((($1)) + 1|0);
  38575. $6 = HEAP8[$5>>0]|0;
  38576. $7 = $6&255;
  38577. $8 = $4 | $7;
  38578. $9 = HEAP8[$0>>0]|0;
  38579. $10 = $9&255;
  38580. $$sink$in = $10;$$sink17$sink = $0;
  38581. while(1) {
  38582. $11 = ((($$sink17$sink)) + 1|0);
  38583. $12 = HEAP8[$11>>0]|0;
  38584. $13 = ($12<<24>>24)==(0);
  38585. if ($13) {
  38586. $$lcssa = 0;
  38587. break;
  38588. }
  38589. $$sink = $$sink$in << 8;
  38590. $14 = $12&255;
  38591. $$sink$masked = $$sink & 65280;
  38592. $15 = $14 | $$sink$masked;
  38593. $16 = ($15|0)==($8|0);
  38594. if ($16) {
  38595. $$lcssa = $$sink17$sink;
  38596. break;
  38597. } else {
  38598. $$sink$in = $15;$$sink17$sink = $11;
  38599. }
  38600. }
  38601. return ($$lcssa|0);
  38602. }
  38603. function _threebyte_strstr($0,$1) {
  38604. $0 = $0|0;
  38605. $1 = $1|0;
  38606. 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;
  38607. 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;
  38608. var $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, $or$cond18 = 0, label = 0, sp = 0;
  38609. sp = STACKTOP;
  38610. $2 = HEAP8[$1>>0]|0;
  38611. $3 = $2&255;
  38612. $4 = $3 << 24;
  38613. $5 = ((($1)) + 1|0);
  38614. $6 = HEAP8[$5>>0]|0;
  38615. $7 = $6&255;
  38616. $8 = $7 << 16;
  38617. $9 = $8 | $4;
  38618. $10 = ((($1)) + 2|0);
  38619. $11 = HEAP8[$10>>0]|0;
  38620. $12 = $11&255;
  38621. $13 = $12 << 8;
  38622. $14 = $9 | $13;
  38623. $15 = HEAP8[$0>>0]|0;
  38624. $16 = $15&255;
  38625. $17 = $16 << 24;
  38626. $18 = ((($0)) + 1|0);
  38627. $19 = HEAP8[$18>>0]|0;
  38628. $20 = $19&255;
  38629. $21 = $20 << 16;
  38630. $22 = $21 | $17;
  38631. $23 = ((($0)) + 2|0);
  38632. $24 = HEAP8[$23>>0]|0;
  38633. $25 = $24&255;
  38634. $26 = $25 << 8;
  38635. $27 = $22 | $26;
  38636. $28 = ($24<<24>>24)!=(0);
  38637. $$not17 = $28 ^ 1;
  38638. $29 = ($27|0)==($14|0);
  38639. $or$cond18 = $29 | $$not17;
  38640. if ($or$cond18) {
  38641. $$016$lcssa = $23;$$lcssa = $28;
  38642. } else {
  38643. $$01619 = $23;$$020 = $27;
  38644. while(1) {
  38645. $30 = ((($$01619)) + 1|0);
  38646. $31 = HEAP8[$30>>0]|0;
  38647. $32 = $31&255;
  38648. $33 = $32 | $$020;
  38649. $34 = $33 << 8;
  38650. $35 = ($31<<24>>24)!=(0);
  38651. $$not = $35 ^ 1;
  38652. $36 = ($34|0)==($14|0);
  38653. $or$cond = $36 | $$not;
  38654. if ($or$cond) {
  38655. $$016$lcssa = $30;$$lcssa = $35;
  38656. break;
  38657. } else {
  38658. $$01619 = $30;$$020 = $34;
  38659. }
  38660. }
  38661. }
  38662. $37 = ((($$016$lcssa)) + -2|0);
  38663. $38 = $$lcssa ? $37 : 0;
  38664. return ($38|0);
  38665. }
  38666. function _fourbyte_strstr($0,$1) {
  38667. $0 = $0|0;
  38668. $1 = $1|0;
  38669. 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;
  38670. 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;
  38671. 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;
  38672. sp = STACKTOP;
  38673. $2 = HEAP8[$1>>0]|0;
  38674. $3 = $2&255;
  38675. $4 = $3 << 24;
  38676. $5 = ((($1)) + 1|0);
  38677. $6 = HEAP8[$5>>0]|0;
  38678. $7 = $6&255;
  38679. $8 = $7 << 16;
  38680. $9 = $8 | $4;
  38681. $10 = ((($1)) + 2|0);
  38682. $11 = HEAP8[$10>>0]|0;
  38683. $12 = $11&255;
  38684. $13 = $12 << 8;
  38685. $14 = $9 | $13;
  38686. $15 = ((($1)) + 3|0);
  38687. $16 = HEAP8[$15>>0]|0;
  38688. $17 = $16&255;
  38689. $18 = $14 | $17;
  38690. $19 = HEAP8[$0>>0]|0;
  38691. $20 = $19&255;
  38692. $21 = $20 << 24;
  38693. $22 = ((($0)) + 1|0);
  38694. $23 = HEAP8[$22>>0]|0;
  38695. $24 = $23&255;
  38696. $25 = $24 << 16;
  38697. $26 = $25 | $21;
  38698. $27 = ((($0)) + 2|0);
  38699. $28 = HEAP8[$27>>0]|0;
  38700. $29 = $28&255;
  38701. $30 = $29 << 8;
  38702. $31 = $26 | $30;
  38703. $32 = ((($0)) + 3|0);
  38704. $33 = HEAP8[$32>>0]|0;
  38705. $34 = $33&255;
  38706. $35 = $34 | $31;
  38707. $36 = ($33<<24>>24)!=(0);
  38708. $$not22 = $36 ^ 1;
  38709. $37 = ($35|0)==($18|0);
  38710. $or$cond23 = $37 | $$not22;
  38711. if ($or$cond23) {
  38712. $$lcssa = $36;$$sink21$lcssa = $32;
  38713. } else {
  38714. $$sink2124 = $32;$39 = $35;
  38715. while(1) {
  38716. $38 = $39 << 8;
  38717. $40 = ((($$sink2124)) + 1|0);
  38718. $41 = HEAP8[$40>>0]|0;
  38719. $42 = $41&255;
  38720. $43 = $42 | $38;
  38721. $44 = ($41<<24>>24)!=(0);
  38722. $$not = $44 ^ 1;
  38723. $45 = ($43|0)==($18|0);
  38724. $or$cond = $45 | $$not;
  38725. if ($or$cond) {
  38726. $$lcssa = $44;$$sink21$lcssa = $40;
  38727. break;
  38728. } else {
  38729. $$sink2124 = $40;$39 = $43;
  38730. }
  38731. }
  38732. }
  38733. $46 = ((($$sink21$lcssa)) + -3|0);
  38734. $47 = $$lcssa ? $46 : 0;
  38735. return ($47|0);
  38736. }
  38737. function _twoway_strstr($0,$1) {
  38738. $0 = $0|0;
  38739. $1 = $1|0;
  38740. 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;
  38741. 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;
  38742. 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;
  38743. 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;
  38744. 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;
  38745. 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;
  38746. 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;
  38747. 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;
  38748. 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;
  38749. sp = STACKTOP;
  38750. STACKTOP = STACKTOP + 1056|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(1056|0);
  38751. $2 = sp + 1024|0;
  38752. $3 = sp;
  38753. ;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;
  38754. $4 = HEAP8[$1>>0]|0;
  38755. $cond265 = ($4<<24>>24)==(0);
  38756. L1: do {
  38757. if ($cond265) {
  38758. $$0175$ph$ph$lcssa220323 = 1;$$0185$ph$lcssa322 = -1;$$0187$lcssa320321 = 0;$$1176$ph$ph$lcssa211 = 1;$$1186$ph$lcssa = -1;
  38759. label = 27;
  38760. } else {
  38761. $5 = $4&255;
  38762. $$0187266 = 0;$12 = $4;$20 = $5;
  38763. while(1) {
  38764. $8 = (($0) + ($$0187266)|0);
  38765. $9 = HEAP8[$8>>0]|0;
  38766. $10 = ($9<<24>>24)==(0);
  38767. if ($10) {
  38768. $$3 = 0;
  38769. break L1;
  38770. }
  38771. $11 = $12 & 31;
  38772. $13 = $11&255;
  38773. $14 = 1 << $13;
  38774. $div188 = ($12&255) >>> 5;
  38775. $15 = $div188&255;
  38776. $16 = (($2) + ($15<<2)|0);
  38777. $17 = HEAP32[$16>>2]|0;
  38778. $18 = $17 | $14;
  38779. HEAP32[$16>>2] = $18;
  38780. $7 = (($$0187266) + 1)|0;
  38781. $19 = (($3) + ($20<<2)|0);
  38782. HEAP32[$19>>2] = $7;
  38783. $21 = (($1) + ($7)|0);
  38784. $22 = HEAP8[$21>>0]|0;
  38785. $23 = $22&255;
  38786. $cond = ($22<<24>>24)==(0);
  38787. if ($cond) {
  38788. break;
  38789. } else {
  38790. $$0187266 = $7;$12 = $22;$20 = $23;
  38791. }
  38792. }
  38793. $6 = ($7>>>0)>(1);
  38794. if ($6) {
  38795. $$0183$ph262 = 0;$$0185$ph261 = -1;$129 = 1;
  38796. L7: while(1) {
  38797. $$0175$ph$ph256 = 1;$$0183$ph200$ph255 = $$0183$ph262;$132 = $129;
  38798. while(1) {
  38799. $$0183$ph200250 = $$0183$ph200$ph255;$131 = $132;
  38800. L11: while(1) {
  38801. $$0179244 = 1;$31 = $131;
  38802. while(1) {
  38803. $27 = (($$0179244) + ($$0185$ph261))|0;
  38804. $28 = (($1) + ($27)|0);
  38805. $29 = HEAP8[$28>>0]|0;
  38806. $30 = (($1) + ($31)|0);
  38807. $32 = HEAP8[$30>>0]|0;
  38808. $33 = ($29<<24>>24)==($32<<24>>24);
  38809. if (!($33)) {
  38810. break L11;
  38811. }
  38812. $34 = ($$0179244|0)==($$0175$ph$ph256|0);
  38813. $25 = (($$0179244) + 1)|0;
  38814. if ($34) {
  38815. break;
  38816. }
  38817. $24 = (($25) + ($$0183$ph200250))|0;
  38818. $26 = ($24>>>0)<($7>>>0);
  38819. if ($26) {
  38820. $$0179244 = $25;$31 = $24;
  38821. } else {
  38822. $$0175$ph$ph$lcssa220 = $$0175$ph$ph256;$$0185$ph$lcssa = $$0185$ph261;
  38823. break L7;
  38824. }
  38825. }
  38826. $35 = (($$0175$ph$ph256) + ($$0183$ph200250))|0;
  38827. $36 = (($35) + 1)|0;
  38828. $37 = ($36>>>0)<($7>>>0);
  38829. if ($37) {
  38830. $$0183$ph200250 = $35;$131 = $36;
  38831. } else {
  38832. $$0175$ph$ph$lcssa220 = $$0175$ph$ph256;$$0185$ph$lcssa = $$0185$ph261;
  38833. break L7;
  38834. }
  38835. }
  38836. $38 = ($29&255)>($32&255);
  38837. $39 = (($31) - ($$0185$ph261))|0;
  38838. if (!($38)) {
  38839. break;
  38840. }
  38841. $43 = (($31) + 1)|0;
  38842. $44 = ($43>>>0)<($7>>>0);
  38843. if ($44) {
  38844. $$0175$ph$ph256 = $39;$$0183$ph200$ph255 = $31;$132 = $43;
  38845. } else {
  38846. $$0175$ph$ph$lcssa220 = $39;$$0185$ph$lcssa = $$0185$ph261;
  38847. break L7;
  38848. }
  38849. }
  38850. $40 = (($$0183$ph200250) + 1)|0;
  38851. $41 = (($$0183$ph200250) + 2)|0;
  38852. $42 = ($41>>>0)<($7>>>0);
  38853. if ($42) {
  38854. $$0183$ph262 = $40;$$0185$ph261 = $$0183$ph200250;$129 = $41;
  38855. } else {
  38856. $$0175$ph$ph$lcssa220 = 1;$$0185$ph$lcssa = $$0183$ph200250;
  38857. break;
  38858. }
  38859. }
  38860. if ($6) {
  38861. $$1184$ph241 = 0;$$1186$ph240 = -1;$130 = 1;
  38862. while(1) {
  38863. $$1176$ph$ph235 = 1;$$1184$ph196$ph234 = $$1184$ph241;$134 = $130;
  38864. while(1) {
  38865. $$1184$ph196229 = $$1184$ph196$ph234;$133 = $134;
  38866. L26: while(1) {
  38867. $$1180224 = 1;$52 = $133;
  38868. while(1) {
  38869. $48 = (($$1180224) + ($$1186$ph240))|0;
  38870. $49 = (($1) + ($48)|0);
  38871. $50 = HEAP8[$49>>0]|0;
  38872. $51 = (($1) + ($52)|0);
  38873. $53 = HEAP8[$51>>0]|0;
  38874. $54 = ($50<<24>>24)==($53<<24>>24);
  38875. if (!($54)) {
  38876. break L26;
  38877. }
  38878. $55 = ($$1180224|0)==($$1176$ph$ph235|0);
  38879. $46 = (($$1180224) + 1)|0;
  38880. if ($55) {
  38881. break;
  38882. }
  38883. $45 = (($46) + ($$1184$ph196229))|0;
  38884. $47 = ($45>>>0)<($7>>>0);
  38885. if ($47) {
  38886. $$1180224 = $46;$52 = $45;
  38887. } else {
  38888. $$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;
  38889. label = 27;
  38890. break L1;
  38891. }
  38892. }
  38893. $56 = (($$1176$ph$ph235) + ($$1184$ph196229))|0;
  38894. $57 = (($56) + 1)|0;
  38895. $58 = ($57>>>0)<($7>>>0);
  38896. if ($58) {
  38897. $$1184$ph196229 = $56;$133 = $57;
  38898. } else {
  38899. $$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;
  38900. label = 27;
  38901. break L1;
  38902. }
  38903. }
  38904. $59 = ($50&255)<($53&255);
  38905. $60 = (($52) - ($$1186$ph240))|0;
  38906. if (!($59)) {
  38907. break;
  38908. }
  38909. $64 = (($52) + 1)|0;
  38910. $65 = ($64>>>0)<($7>>>0);
  38911. if ($65) {
  38912. $$1176$ph$ph235 = $60;$$1184$ph196$ph234 = $52;$134 = $64;
  38913. } else {
  38914. $$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;
  38915. label = 27;
  38916. break L1;
  38917. }
  38918. }
  38919. $61 = (($$1184$ph196229) + 1)|0;
  38920. $62 = (($$1184$ph196229) + 2)|0;
  38921. $63 = ($62>>>0)<($7>>>0);
  38922. if ($63) {
  38923. $$1184$ph241 = $61;$$1186$ph240 = $$1184$ph196229;$130 = $62;
  38924. } else {
  38925. $$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;
  38926. label = 27;
  38927. break;
  38928. }
  38929. }
  38930. } else {
  38931. $$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;
  38932. label = 27;
  38933. }
  38934. } else {
  38935. $$0175$ph$ph$lcssa220323 = 1;$$0185$ph$lcssa322 = -1;$$0187$lcssa320321 = $7;$$1176$ph$ph$lcssa211 = 1;$$1186$ph$lcssa = -1;
  38936. label = 27;
  38937. }
  38938. }
  38939. } while(0);
  38940. L36: do {
  38941. if ((label|0) == 27) {
  38942. $66 = (($$1186$ph$lcssa) + 1)|0;
  38943. $67 = (($$0185$ph$lcssa322) + 1)|0;
  38944. $68 = ($66>>>0)>($67>>>0);
  38945. $$1176$$0175 = $68 ? $$1176$ph$ph$lcssa211 : $$0175$ph$ph$lcssa220323;
  38946. $$1186$$0185 = $68 ? $$1186$ph$lcssa : $$0185$ph$lcssa322;
  38947. $69 = (($1) + ($$1176$$0175)|0);
  38948. $70 = (($$1186$$0185) + 1)|0;
  38949. $71 = (_memcmp($1,$69,$70)|0);
  38950. $72 = ($71|0)==(0);
  38951. if ($72) {
  38952. $77 = (($$0187$lcssa320321) - ($$1176$$0175))|0;
  38953. $$0168 = $77;$$3178 = $$1176$$0175;
  38954. } else {
  38955. $73 = (($$0187$lcssa320321) - ($$1186$$0185))|0;
  38956. $74 = (($73) + -1)|0;
  38957. $75 = ($$1186$$0185>>>0)>($74>>>0);
  38958. $$1186$$0185$ = $75 ? $$1186$$0185 : $74;
  38959. $76 = (($$1186$$0185$) + 1)|0;
  38960. $$0168 = 0;$$3178 = $76;
  38961. }
  38962. $78 = $$0187$lcssa320321 | 63;
  38963. $79 = (($$0187$lcssa320321) + -1)|0;
  38964. $80 = ($$0168|0)!=(0);
  38965. $81 = (($$0187$lcssa320321) - ($$3178))|0;
  38966. $$0166 = $0;$$0169 = 0;$$0170 = $0;
  38967. while(1) {
  38968. $82 = $$0170;
  38969. $83 = $$0166;
  38970. $84 = (($82) - ($83))|0;
  38971. $85 = ($84>>>0)<($$0187$lcssa320321>>>0);
  38972. do {
  38973. if ($85) {
  38974. $86 = (_memchr($$0170,0,$78)|0);
  38975. $87 = ($86|0)==(0|0);
  38976. if ($87) {
  38977. $91 = (($$0170) + ($78)|0);
  38978. $$3173 = $91;
  38979. break;
  38980. } else {
  38981. $88 = $86;
  38982. $89 = (($88) - ($83))|0;
  38983. $90 = ($89>>>0)<($$0187$lcssa320321>>>0);
  38984. if ($90) {
  38985. $$3 = 0;
  38986. break L36;
  38987. } else {
  38988. $$3173 = $86;
  38989. break;
  38990. }
  38991. }
  38992. } else {
  38993. $$3173 = $$0170;
  38994. }
  38995. } while(0);
  38996. $92 = (($$0166) + ($79)|0);
  38997. $93 = HEAP8[$92>>0]|0;
  38998. $div = ($93&255) >>> 5;
  38999. $94 = $div&255;
  39000. $95 = (($2) + ($94<<2)|0);
  39001. $96 = HEAP32[$95>>2]|0;
  39002. $97 = $93 & 31;
  39003. $98 = $97&255;
  39004. $99 = 1 << $98;
  39005. $100 = $99 & $96;
  39006. $101 = ($100|0)==(0);
  39007. L50: do {
  39008. if ($101) {
  39009. $$0169$be = 0;$$2181$sink = $$0187$lcssa320321;
  39010. } else {
  39011. $102 = $93&255;
  39012. $103 = (($3) + ($102<<2)|0);
  39013. $104 = HEAP32[$103>>2]|0;
  39014. $105 = (($$0187$lcssa320321) - ($104))|0;
  39015. $106 = ($105|0)==(0);
  39016. if (!($106)) {
  39017. $107 = ($$0169|0)!=(0);
  39018. $or$cond = $80 & $107;
  39019. $108 = ($105>>>0)<($$3178>>>0);
  39020. $or$cond190 = $or$cond & $108;
  39021. $$2181 = $or$cond190 ? $81 : $105;
  39022. $$0169$be = 0;$$2181$sink = $$2181;
  39023. break;
  39024. }
  39025. $110 = ($70>>>0)>($$0169>>>0);
  39026. $111 = $110 ? $70 : $$0169;
  39027. $112 = (($1) + ($111)|0);
  39028. $113 = HEAP8[$112>>0]|0;
  39029. $cond191222 = ($113<<24>>24)==(0);
  39030. L55: do {
  39031. if ($cond191222) {
  39032. $$4 = $70;
  39033. } else {
  39034. $$3182223 = $111;$117 = $113;
  39035. while(1) {
  39036. $114 = (($$0166) + ($$3182223)|0);
  39037. $115 = HEAP8[$114>>0]|0;
  39038. $116 = ($117<<24>>24)==($115<<24>>24);
  39039. if (!($116)) {
  39040. break;
  39041. }
  39042. $118 = (($$3182223) + 1)|0;
  39043. $119 = (($1) + ($118)|0);
  39044. $120 = HEAP8[$119>>0]|0;
  39045. $cond191 = ($120<<24>>24)==(0);
  39046. if ($cond191) {
  39047. $$4 = $70;
  39048. break L55;
  39049. } else {
  39050. $$3182223 = $118;$117 = $120;
  39051. }
  39052. }
  39053. $121 = (($$3182223) - ($$1186$$0185))|0;
  39054. $$0169$be = 0;$$2181$sink = $121;
  39055. break L50;
  39056. }
  39057. } while(0);
  39058. while(1) {
  39059. $122 = ($$4>>>0)>($$0169>>>0);
  39060. if (!($122)) {
  39061. $$3 = $$0166;
  39062. break L36;
  39063. }
  39064. $123 = (($$4) + -1)|0;
  39065. $124 = (($1) + ($123)|0);
  39066. $125 = HEAP8[$124>>0]|0;
  39067. $126 = (($$0166) + ($123)|0);
  39068. $127 = HEAP8[$126>>0]|0;
  39069. $128 = ($125<<24>>24)==($127<<24>>24);
  39070. if ($128) {
  39071. $$4 = $123;
  39072. } else {
  39073. $$0169$be = $$0168;$$2181$sink = $$3178;
  39074. break;
  39075. }
  39076. }
  39077. }
  39078. } while(0);
  39079. $109 = (($$0166) + ($$2181$sink)|0);
  39080. $$0166 = $109;$$0169 = $$0169$be;$$0170 = $$3173;
  39081. }
  39082. }
  39083. } while(0);
  39084. STACKTOP = sp;return ($$3|0);
  39085. }
  39086. function _strrchr($0,$1) {
  39087. $0 = $0|0;
  39088. $1 = $1|0;
  39089. var $2 = 0, $3 = 0, $4 = 0, label = 0, sp = 0;
  39090. sp = STACKTOP;
  39091. $2 = (_strlen($0)|0);
  39092. $3 = (($2) + 1)|0;
  39093. $4 = (___memrchr($0,$1,$3)|0);
  39094. return ($4|0);
  39095. }
  39096. function ___memrchr($0,$1,$2) {
  39097. $0 = $0|0;
  39098. $1 = $1|0;
  39099. $2 = $2|0;
  39100. var $$0 = 0, $$09 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, label = 0, sp = 0;
  39101. sp = STACKTOP;
  39102. $3 = $1&255;
  39103. $$09 = $2;
  39104. while(1) {
  39105. $4 = (($$09) + -1)|0;
  39106. $5 = ($$09|0)==(0);
  39107. if ($5) {
  39108. $$0 = 0;
  39109. break;
  39110. }
  39111. $6 = (($0) + ($4)|0);
  39112. $7 = HEAP8[$6>>0]|0;
  39113. $8 = ($7<<24>>24)==($3<<24>>24);
  39114. if ($8) {
  39115. $$0 = $6;
  39116. break;
  39117. } else {
  39118. $$09 = $4;
  39119. }
  39120. }
  39121. return ($$0|0);
  39122. }
  39123. function _strspn($0,$1) {
  39124. $0 = $0|0;
  39125. $1 = $1|0;
  39126. 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;
  39127. 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;
  39128. var $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $div = 0, $div21 = 0, label = 0, sp = 0;
  39129. sp = STACKTOP;
  39130. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  39131. $2 = sp;
  39132. ;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;
  39133. $3 = HEAP8[$1>>0]|0;
  39134. $4 = ($3<<24>>24)==(0);
  39135. do {
  39136. if ($4) {
  39137. $$0 = 0;
  39138. } else {
  39139. $5 = ((($1)) + 1|0);
  39140. $6 = HEAP8[$5>>0]|0;
  39141. $7 = ($6<<24>>24)==(0);
  39142. if ($7) {
  39143. $$020 = $0;
  39144. while(1) {
  39145. $8 = HEAP8[$$020>>0]|0;
  39146. $9 = ($8<<24>>24)==($3<<24>>24);
  39147. $10 = ((($$020)) + 1|0);
  39148. if ($9) {
  39149. $$020 = $10;
  39150. } else {
  39151. break;
  39152. }
  39153. }
  39154. $11 = $$020;
  39155. $12 = $0;
  39156. $13 = (($11) - ($12))|0;
  39157. $$0 = $13;
  39158. break;
  39159. } else {
  39160. $$01925 = $1;$17 = $3;
  39161. }
  39162. while(1) {
  39163. $16 = $17 & 31;
  39164. $18 = $16&255;
  39165. $19 = 1 << $18;
  39166. $div21 = ($17&255) >>> 5;
  39167. $20 = $div21&255;
  39168. $21 = (($2) + ($20<<2)|0);
  39169. $22 = HEAP32[$21>>2]|0;
  39170. $23 = $22 | $19;
  39171. HEAP32[$21>>2] = $23;
  39172. $24 = ((($$01925)) + 1|0);
  39173. $25 = HEAP8[$24>>0]|0;
  39174. $26 = ($25<<24>>24)==(0);
  39175. if ($26) {
  39176. break;
  39177. } else {
  39178. $$01925 = $24;$17 = $25;
  39179. }
  39180. }
  39181. $14 = HEAP8[$0>>0]|0;
  39182. $15 = ($14<<24>>24)==(0);
  39183. L10: do {
  39184. if ($15) {
  39185. $$1$lcssa = $0;
  39186. } else {
  39187. $$123 = $0;$27 = $14;
  39188. while(1) {
  39189. $div = ($27&255) >>> 5;
  39190. $28 = $div&255;
  39191. $29 = (($2) + ($28<<2)|0);
  39192. $30 = HEAP32[$29>>2]|0;
  39193. $31 = $27 & 31;
  39194. $32 = $31&255;
  39195. $33 = 1 << $32;
  39196. $34 = $30 & $33;
  39197. $35 = ($34|0)==(0);
  39198. if ($35) {
  39199. $$1$lcssa = $$123;
  39200. break L10;
  39201. }
  39202. $36 = ((($$123)) + 1|0);
  39203. $37 = HEAP8[$36>>0]|0;
  39204. $38 = ($37<<24>>24)==(0);
  39205. if ($38) {
  39206. $$1$lcssa = $36;
  39207. break;
  39208. } else {
  39209. $$123 = $36;$27 = $37;
  39210. }
  39211. }
  39212. }
  39213. } while(0);
  39214. $39 = $$1$lcssa;
  39215. $40 = $0;
  39216. $41 = (($39) - ($40))|0;
  39217. $$0 = $41;
  39218. }
  39219. } while(0);
  39220. STACKTOP = sp;return ($$0|0);
  39221. }
  39222. function _srand($0) {
  39223. $0 = $0|0;
  39224. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  39225. sp = STACKTOP;
  39226. $1 = (($0) + -1)|0;
  39227. $2 = 18792;
  39228. $3 = $2;
  39229. HEAP32[$3>>2] = $1;
  39230. $4 = (($2) + 4)|0;
  39231. $5 = $4;
  39232. HEAP32[$5>>2] = 0;
  39233. return;
  39234. }
  39235. function ___ftello($0) {
  39236. $0 = $0|0;
  39237. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $phitmp = 0, label = 0, sp = 0;
  39238. sp = STACKTOP;
  39239. $1 = ((($0)) + 76|0);
  39240. $2 = HEAP32[$1>>2]|0;
  39241. $3 = ($2|0)>(-1);
  39242. if ($3) {
  39243. $5 = (___lockfile($0)|0);
  39244. $phitmp = ($5|0)==(0);
  39245. $6 = (___ftello_unlocked($0)|0);
  39246. if ($phitmp) {
  39247. $7 = $6;
  39248. } else {
  39249. ___unlockfile($0);
  39250. $7 = $6;
  39251. }
  39252. } else {
  39253. $4 = (___ftello_unlocked($0)|0);
  39254. $7 = $4;
  39255. }
  39256. return ($7|0);
  39257. }
  39258. function ___ftello_unlocked($0) {
  39259. $0 = $0|0;
  39260. 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, $3 = 0;
  39261. var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $phitmp = 0, label = 0, sp = 0;
  39262. sp = STACKTOP;
  39263. $1 = ((($0)) + 40|0);
  39264. $2 = HEAP32[$1>>2]|0;
  39265. $3 = HEAP32[$0>>2]|0;
  39266. $4 = $3 & 128;
  39267. $5 = ($4|0)==(0);
  39268. if ($5) {
  39269. $11 = 1;
  39270. } else {
  39271. $6 = ((($0)) + 20|0);
  39272. $7 = HEAP32[$6>>2]|0;
  39273. $8 = ((($0)) + 28|0);
  39274. $9 = HEAP32[$8>>2]|0;
  39275. $10 = ($7>>>0)>($9>>>0);
  39276. $phitmp = $10 ? 2 : 1;
  39277. $11 = $phitmp;
  39278. }
  39279. $12 = (FUNCTION_TABLE_iiii[$2 & 15]($0,0,$11)|0);
  39280. $13 = ($12|0)<(0);
  39281. if ($13) {
  39282. $$0 = $12;
  39283. } else {
  39284. $14 = ((($0)) + 8|0);
  39285. $15 = HEAP32[$14>>2]|0;
  39286. $16 = ((($0)) + 4|0);
  39287. $17 = HEAP32[$16>>2]|0;
  39288. $18 = ((($0)) + 20|0);
  39289. $19 = HEAP32[$18>>2]|0;
  39290. $20 = ((($0)) + 28|0);
  39291. $21 = HEAP32[$20>>2]|0;
  39292. $22 = (($12) - ($15))|0;
  39293. $23 = (($22) + ($17))|0;
  39294. $24 = (($23) + ($19))|0;
  39295. $25 = (($24) - ($21))|0;
  39296. $$0 = $25;
  39297. }
  39298. return ($$0|0);
  39299. }
  39300. function _fread($0,$1,$2,$3) {
  39301. $0 = $0|0;
  39302. $1 = $1|0;
  39303. $2 = $2|0;
  39304. $3 = $3|0;
  39305. 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;
  39306. 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;
  39307. var $42 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  39308. sp = STACKTOP;
  39309. $4 = Math_imul($2, $1)|0;
  39310. $5 = ($1|0)==(0);
  39311. $$ = $5 ? 0 : $2;
  39312. $6 = ((($3)) + 76|0);
  39313. $7 = HEAP32[$6>>2]|0;
  39314. $8 = ($7|0)>(-1);
  39315. if ($8) {
  39316. $9 = (___lockfile($3)|0);
  39317. $36 = $9;
  39318. } else {
  39319. $36 = 0;
  39320. }
  39321. $10 = ((($3)) + 74|0);
  39322. $11 = HEAP8[$10>>0]|0;
  39323. $12 = $11 << 24 >> 24;
  39324. $13 = (($12) + 255)|0;
  39325. $14 = $13 | $12;
  39326. $15 = $14&255;
  39327. HEAP8[$10>>0] = $15;
  39328. $16 = ((($3)) + 8|0);
  39329. $17 = HEAP32[$16>>2]|0;
  39330. $18 = ((($3)) + 4|0);
  39331. $19 = HEAP32[$18>>2]|0;
  39332. $20 = $19;
  39333. $21 = (($17) - ($20))|0;
  39334. $22 = ($21|0)>(0);
  39335. $23 = ($21>>>0)<($4>>>0);
  39336. $$57 = $23 ? $21 : $4;
  39337. if ($22) {
  39338. $24 = (($4) - ($$57))|0;
  39339. $25 = (($0) + ($$57)|0);
  39340. _memcpy(($0|0),($19|0),($$57|0))|0;
  39341. $26 = (($19) + ($$57)|0);
  39342. HEAP32[$18>>2] = $26;
  39343. $$054$ph = $24;$$056$ph = $25;
  39344. } else {
  39345. $$054$ph = $4;$$056$ph = $0;
  39346. }
  39347. $27 = ($$054$ph|0)==(0);
  39348. L7: do {
  39349. if ($27) {
  39350. label = 13;
  39351. } else {
  39352. $28 = ((($3)) + 32|0);
  39353. $$05460 = $$054$ph;$$05659 = $$056$ph;
  39354. while(1) {
  39355. $29 = (___toread($3)|0);
  39356. $30 = ($29|0)==(0);
  39357. if (!($30)) {
  39358. break;
  39359. }
  39360. $31 = HEAP32[$28>>2]|0;
  39361. $32 = (FUNCTION_TABLE_iiii[$31 & 15]($3,$$05659,$$05460)|0);
  39362. $33 = (($32) + 1)|0;
  39363. $34 = ($33>>>0)<(2);
  39364. if ($34) {
  39365. break;
  39366. }
  39367. $39 = (($$05460) - ($32))|0;
  39368. $40 = (($$05659) + ($32)|0);
  39369. $41 = ($39|0)==(0);
  39370. if ($41) {
  39371. label = 13;
  39372. break L7;
  39373. } else {
  39374. $$05460 = $39;$$05659 = $40;
  39375. }
  39376. }
  39377. $35 = ($36|0)==(0);
  39378. if (!($35)) {
  39379. ___unlockfile($3);
  39380. }
  39381. $37 = (($4) - ($$05460))|0;
  39382. $38 = (($37>>>0) / ($1>>>0))&-1;
  39383. $$0 = $38;
  39384. }
  39385. } while(0);
  39386. if ((label|0) == 13) {
  39387. $42 = ($36|0)==(0);
  39388. if ($42) {
  39389. $$0 = $$;
  39390. } else {
  39391. ___unlockfile($3);
  39392. $$0 = $$;
  39393. }
  39394. }
  39395. return ($$0|0);
  39396. }
  39397. function _ftell($0) {
  39398. $0 = $0|0;
  39399. var $1 = 0, label = 0, sp = 0;
  39400. sp = STACKTOP;
  39401. $1 = (___ftello($0)|0);
  39402. return ($1|0);
  39403. }
  39404. function _rewind($0) {
  39405. $0 = $0|0;
  39406. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $phitmp = 0, label = 0, sp = 0;
  39407. sp = STACKTOP;
  39408. $1 = ((($0)) + 76|0);
  39409. $2 = HEAP32[$1>>2]|0;
  39410. $3 = ($2|0)>(-1);
  39411. if ($3) {
  39412. $4 = (___lockfile($0)|0);
  39413. $phitmp = ($4|0)==(0);
  39414. (___fseeko_unlocked($0,0,0)|0);
  39415. $5 = HEAP32[$0>>2]|0;
  39416. $6 = $5 & -33;
  39417. HEAP32[$0>>2] = $6;
  39418. if (!($phitmp)) {
  39419. ___unlockfile($0);
  39420. }
  39421. } else {
  39422. (___fseeko_unlocked($0,0,0)|0);
  39423. $7 = HEAP32[$0>>2]|0;
  39424. $8 = $7 & -33;
  39425. HEAP32[$0>>2] = $8;
  39426. }
  39427. return;
  39428. }
  39429. function _vprintf($0,$1) {
  39430. $0 = $0|0;
  39431. $1 = $1|0;
  39432. var $2 = 0, $3 = 0, label = 0, sp = 0;
  39433. sp = STACKTOP;
  39434. $2 = HEAP32[1038]|0;
  39435. $3 = (_vfprintf($2,$0,$1)|0);
  39436. return ($3|0);
  39437. }
  39438. function _strcspn($0,$1) {
  39439. $0 = $0|0;
  39440. $1 = $1|0;
  39441. 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;
  39442. 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;
  39443. var $div20 = 0, label = 0, sp = 0;
  39444. sp = STACKTOP;
  39445. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  39446. $2 = sp;
  39447. $3 = HEAP8[$1>>0]|0;
  39448. $4 = ($3<<24>>24)==(0);
  39449. L1: do {
  39450. if ($4) {
  39451. label = 3;
  39452. } else {
  39453. $5 = ((($1)) + 1|0);
  39454. $6 = HEAP8[$5>>0]|0;
  39455. $7 = ($6<<24>>24)==(0);
  39456. if ($7) {
  39457. label = 3;
  39458. } else {
  39459. ;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;
  39460. $$01824 = $1;$13 = $3;
  39461. while(1) {
  39462. $12 = $13 & 31;
  39463. $14 = $12&255;
  39464. $15 = 1 << $14;
  39465. $div20 = ($13&255) >>> 5;
  39466. $16 = $div20&255;
  39467. $17 = (($2) + ($16<<2)|0);
  39468. $18 = HEAP32[$17>>2]|0;
  39469. $19 = $18 | $15;
  39470. HEAP32[$17>>2] = $19;
  39471. $20 = ((($$01824)) + 1|0);
  39472. $21 = HEAP8[$20>>0]|0;
  39473. $22 = ($21<<24>>24)==(0);
  39474. if ($22) {
  39475. break;
  39476. } else {
  39477. $$01824 = $20;$13 = $21;
  39478. }
  39479. }
  39480. $10 = HEAP8[$0>>0]|0;
  39481. $11 = ($10<<24>>24)==(0);
  39482. if ($11) {
  39483. $$019$sink = $0;
  39484. } else {
  39485. $$01922 = $0;$23 = $10;
  39486. while(1) {
  39487. $div = ($23&255) >>> 5;
  39488. $24 = $div&255;
  39489. $25 = (($2) + ($24<<2)|0);
  39490. $26 = HEAP32[$25>>2]|0;
  39491. $27 = $23 & 31;
  39492. $28 = $27&255;
  39493. $29 = 1 << $28;
  39494. $30 = $26 & $29;
  39495. $31 = ($30|0)==(0);
  39496. if (!($31)) {
  39497. $$019$sink = $$01922;
  39498. break L1;
  39499. }
  39500. $32 = ((($$01922)) + 1|0);
  39501. $33 = HEAP8[$32>>0]|0;
  39502. $34 = ($33<<24>>24)==(0);
  39503. if ($34) {
  39504. $$019$sink = $32;
  39505. break;
  39506. } else {
  39507. $$01922 = $32;$23 = $33;
  39508. }
  39509. }
  39510. }
  39511. }
  39512. }
  39513. } while(0);
  39514. if ((label|0) == 3) {
  39515. $8 = $3 << 24 >> 24;
  39516. $9 = (___strchrnul($0,$8)|0);
  39517. $$019$sink = $9;
  39518. }
  39519. $35 = $$019$sink;
  39520. $36 = $0;
  39521. $37 = (($35) - ($36))|0;
  39522. STACKTOP = sp;return ($37|0);
  39523. }
  39524. function _strcat($0,$1) {
  39525. $0 = $0|0;
  39526. $1 = $1|0;
  39527. var $2 = 0, $3 = 0, label = 0, sp = 0;
  39528. sp = STACKTOP;
  39529. $2 = (_strlen($0)|0);
  39530. $3 = (($0) + ($2)|0);
  39531. (_strcpy($3,$1)|0);
  39532. return ($0|0);
  39533. }
  39534. function _strtok($0,$1) {
  39535. $0 = $0|0;
  39536. $1 = $1|0;
  39537. 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;
  39538. sp = STACKTOP;
  39539. $2 = ($0|0)==(0|0);
  39540. if ($2) {
  39541. $3 = HEAP32[5401]|0;
  39542. $4 = ($3|0)==(0|0);
  39543. if ($4) {
  39544. $$0 = 0;
  39545. } else {
  39546. $$010 = $3;
  39547. label = 3;
  39548. }
  39549. } else {
  39550. $$010 = $0;
  39551. label = 3;
  39552. }
  39553. do {
  39554. if ((label|0) == 3) {
  39555. $5 = (_strspn($$010,$1)|0);
  39556. $6 = (($$010) + ($5)|0);
  39557. $7 = HEAP8[$6>>0]|0;
  39558. $8 = ($7<<24>>24)==(0);
  39559. if ($8) {
  39560. HEAP32[5401] = 0;
  39561. $$0 = 0;
  39562. break;
  39563. }
  39564. $9 = (_strcspn($6,$1)|0);
  39565. $10 = (($6) + ($9)|0);
  39566. HEAP32[5401] = $10;
  39567. $11 = HEAP8[$10>>0]|0;
  39568. $12 = ($11<<24>>24)==(0);
  39569. if ($12) {
  39570. HEAP32[5401] = 0;
  39571. $$0 = $6;
  39572. break;
  39573. } else {
  39574. $13 = ((($10)) + 1|0);
  39575. HEAP32[5401] = $13;
  39576. HEAP8[$10>>0] = 0;
  39577. $$0 = $6;
  39578. break;
  39579. }
  39580. }
  39581. } while(0);
  39582. return ($$0|0);
  39583. }
  39584. function _malloc($0) {
  39585. $0 = $0|0;
  39586. 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;
  39587. 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;
  39588. 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;
  39589. 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;
  39590. 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;
  39591. 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;
  39592. 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;
  39593. 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;
  39594. 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;
  39595. 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;
  39596. 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;
  39597. 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;
  39598. 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;
  39599. 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;
  39600. 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;
  39601. 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;
  39602. 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;
  39603. 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;
  39604. 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;
  39605. 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;
  39606. 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;
  39607. 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;
  39608. 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;
  39609. 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;
  39610. 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;
  39611. 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;
  39612. 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;
  39613. 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;
  39614. 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;
  39615. 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;
  39616. 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;
  39617. 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;
  39618. 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;
  39619. 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;
  39620. 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;
  39621. 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;
  39622. 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;
  39623. 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;
  39624. 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;
  39625. 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;
  39626. 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;
  39627. 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;
  39628. 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;
  39629. 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;
  39630. 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;
  39631. 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;
  39632. 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;
  39633. 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;
  39634. 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;
  39635. 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;
  39636. 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;
  39637. 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;
  39638. 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;
  39639. 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;
  39640. 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;
  39641. 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;
  39642. 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;
  39643. 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;
  39644. 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;
  39645. sp = STACKTOP;
  39646. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  39647. $1 = sp;
  39648. $2 = ($0>>>0)<(245);
  39649. do {
  39650. if ($2) {
  39651. $3 = ($0>>>0)<(11);
  39652. $4 = (($0) + 11)|0;
  39653. $5 = $4 & -8;
  39654. $6 = $3 ? 16 : $5;
  39655. $7 = $6 >>> 3;
  39656. $8 = HEAP32[5402]|0;
  39657. $9 = $8 >>> $7;
  39658. $10 = $9 & 3;
  39659. $11 = ($10|0)==(0);
  39660. if (!($11)) {
  39661. $12 = $9 & 1;
  39662. $13 = $12 ^ 1;
  39663. $14 = (($13) + ($7))|0;
  39664. $15 = $14 << 1;
  39665. $16 = (21648 + ($15<<2)|0);
  39666. $17 = ((($16)) + 8|0);
  39667. $18 = HEAP32[$17>>2]|0;
  39668. $19 = ((($18)) + 8|0);
  39669. $20 = HEAP32[$19>>2]|0;
  39670. $21 = ($16|0)==($20|0);
  39671. do {
  39672. if ($21) {
  39673. $22 = 1 << $14;
  39674. $23 = $22 ^ -1;
  39675. $24 = $8 & $23;
  39676. HEAP32[5402] = $24;
  39677. } else {
  39678. $25 = HEAP32[(21624)>>2]|0;
  39679. $26 = ($20>>>0)<($25>>>0);
  39680. if ($26) {
  39681. _abort();
  39682. // unreachable;
  39683. }
  39684. $27 = ((($20)) + 12|0);
  39685. $28 = HEAP32[$27>>2]|0;
  39686. $29 = ($28|0)==($18|0);
  39687. if ($29) {
  39688. HEAP32[$27>>2] = $16;
  39689. HEAP32[$17>>2] = $20;
  39690. break;
  39691. } else {
  39692. _abort();
  39693. // unreachable;
  39694. }
  39695. }
  39696. } while(0);
  39697. $30 = $14 << 3;
  39698. $31 = $30 | 3;
  39699. $32 = ((($18)) + 4|0);
  39700. HEAP32[$32>>2] = $31;
  39701. $33 = (($18) + ($30)|0);
  39702. $34 = ((($33)) + 4|0);
  39703. $35 = HEAP32[$34>>2]|0;
  39704. $36 = $35 | 1;
  39705. HEAP32[$34>>2] = $36;
  39706. $$0 = $19;
  39707. STACKTOP = sp;return ($$0|0);
  39708. }
  39709. $37 = HEAP32[(21616)>>2]|0;
  39710. $38 = ($6>>>0)>($37>>>0);
  39711. if ($38) {
  39712. $39 = ($9|0)==(0);
  39713. if (!($39)) {
  39714. $40 = $9 << $7;
  39715. $41 = 2 << $7;
  39716. $42 = (0 - ($41))|0;
  39717. $43 = $41 | $42;
  39718. $44 = $40 & $43;
  39719. $45 = (0 - ($44))|0;
  39720. $46 = $44 & $45;
  39721. $47 = (($46) + -1)|0;
  39722. $48 = $47 >>> 12;
  39723. $49 = $48 & 16;
  39724. $50 = $47 >>> $49;
  39725. $51 = $50 >>> 5;
  39726. $52 = $51 & 8;
  39727. $53 = $52 | $49;
  39728. $54 = $50 >>> $52;
  39729. $55 = $54 >>> 2;
  39730. $56 = $55 & 4;
  39731. $57 = $53 | $56;
  39732. $58 = $54 >>> $56;
  39733. $59 = $58 >>> 1;
  39734. $60 = $59 & 2;
  39735. $61 = $57 | $60;
  39736. $62 = $58 >>> $60;
  39737. $63 = $62 >>> 1;
  39738. $64 = $63 & 1;
  39739. $65 = $61 | $64;
  39740. $66 = $62 >>> $64;
  39741. $67 = (($65) + ($66))|0;
  39742. $68 = $67 << 1;
  39743. $69 = (21648 + ($68<<2)|0);
  39744. $70 = ((($69)) + 8|0);
  39745. $71 = HEAP32[$70>>2]|0;
  39746. $72 = ((($71)) + 8|0);
  39747. $73 = HEAP32[$72>>2]|0;
  39748. $74 = ($69|0)==($73|0);
  39749. do {
  39750. if ($74) {
  39751. $75 = 1 << $67;
  39752. $76 = $75 ^ -1;
  39753. $77 = $8 & $76;
  39754. HEAP32[5402] = $77;
  39755. $98 = $77;
  39756. } else {
  39757. $78 = HEAP32[(21624)>>2]|0;
  39758. $79 = ($73>>>0)<($78>>>0);
  39759. if ($79) {
  39760. _abort();
  39761. // unreachable;
  39762. }
  39763. $80 = ((($73)) + 12|0);
  39764. $81 = HEAP32[$80>>2]|0;
  39765. $82 = ($81|0)==($71|0);
  39766. if ($82) {
  39767. HEAP32[$80>>2] = $69;
  39768. HEAP32[$70>>2] = $73;
  39769. $98 = $8;
  39770. break;
  39771. } else {
  39772. _abort();
  39773. // unreachable;
  39774. }
  39775. }
  39776. } while(0);
  39777. $83 = $67 << 3;
  39778. $84 = (($83) - ($6))|0;
  39779. $85 = $6 | 3;
  39780. $86 = ((($71)) + 4|0);
  39781. HEAP32[$86>>2] = $85;
  39782. $87 = (($71) + ($6)|0);
  39783. $88 = $84 | 1;
  39784. $89 = ((($87)) + 4|0);
  39785. HEAP32[$89>>2] = $88;
  39786. $90 = (($87) + ($84)|0);
  39787. HEAP32[$90>>2] = $84;
  39788. $91 = ($37|0)==(0);
  39789. if (!($91)) {
  39790. $92 = HEAP32[(21628)>>2]|0;
  39791. $93 = $37 >>> 3;
  39792. $94 = $93 << 1;
  39793. $95 = (21648 + ($94<<2)|0);
  39794. $96 = 1 << $93;
  39795. $97 = $98 & $96;
  39796. $99 = ($97|0)==(0);
  39797. if ($99) {
  39798. $100 = $98 | $96;
  39799. HEAP32[5402] = $100;
  39800. $$pre = ((($95)) + 8|0);
  39801. $$0199 = $95;$$pre$phiZ2D = $$pre;
  39802. } else {
  39803. $101 = ((($95)) + 8|0);
  39804. $102 = HEAP32[$101>>2]|0;
  39805. $103 = HEAP32[(21624)>>2]|0;
  39806. $104 = ($102>>>0)<($103>>>0);
  39807. if ($104) {
  39808. _abort();
  39809. // unreachable;
  39810. } else {
  39811. $$0199 = $102;$$pre$phiZ2D = $101;
  39812. }
  39813. }
  39814. HEAP32[$$pre$phiZ2D>>2] = $92;
  39815. $105 = ((($$0199)) + 12|0);
  39816. HEAP32[$105>>2] = $92;
  39817. $106 = ((($92)) + 8|0);
  39818. HEAP32[$106>>2] = $$0199;
  39819. $107 = ((($92)) + 12|0);
  39820. HEAP32[$107>>2] = $95;
  39821. }
  39822. HEAP32[(21616)>>2] = $84;
  39823. HEAP32[(21628)>>2] = $87;
  39824. $$0 = $72;
  39825. STACKTOP = sp;return ($$0|0);
  39826. }
  39827. $108 = HEAP32[(21612)>>2]|0;
  39828. $109 = ($108|0)==(0);
  39829. if ($109) {
  39830. $$0197 = $6;
  39831. } else {
  39832. $110 = (0 - ($108))|0;
  39833. $111 = $108 & $110;
  39834. $112 = (($111) + -1)|0;
  39835. $113 = $112 >>> 12;
  39836. $114 = $113 & 16;
  39837. $115 = $112 >>> $114;
  39838. $116 = $115 >>> 5;
  39839. $117 = $116 & 8;
  39840. $118 = $117 | $114;
  39841. $119 = $115 >>> $117;
  39842. $120 = $119 >>> 2;
  39843. $121 = $120 & 4;
  39844. $122 = $118 | $121;
  39845. $123 = $119 >>> $121;
  39846. $124 = $123 >>> 1;
  39847. $125 = $124 & 2;
  39848. $126 = $122 | $125;
  39849. $127 = $123 >>> $125;
  39850. $128 = $127 >>> 1;
  39851. $129 = $128 & 1;
  39852. $130 = $126 | $129;
  39853. $131 = $127 >>> $129;
  39854. $132 = (($130) + ($131))|0;
  39855. $133 = (21912 + ($132<<2)|0);
  39856. $134 = HEAP32[$133>>2]|0;
  39857. $135 = ((($134)) + 4|0);
  39858. $136 = HEAP32[$135>>2]|0;
  39859. $137 = $136 & -8;
  39860. $138 = (($137) - ($6))|0;
  39861. $139 = ((($134)) + 16|0);
  39862. $140 = HEAP32[$139>>2]|0;
  39863. $not$5$i = ($140|0)==(0|0);
  39864. $$sink16$i = $not$5$i&1;
  39865. $141 = (((($134)) + 16|0) + ($$sink16$i<<2)|0);
  39866. $142 = HEAP32[$141>>2]|0;
  39867. $143 = ($142|0)==(0|0);
  39868. if ($143) {
  39869. $$0192$lcssa$i = $134;$$0193$lcssa$i = $138;
  39870. } else {
  39871. $$01928$i = $134;$$01937$i = $138;$145 = $142;
  39872. while(1) {
  39873. $144 = ((($145)) + 4|0);
  39874. $146 = HEAP32[$144>>2]|0;
  39875. $147 = $146 & -8;
  39876. $148 = (($147) - ($6))|0;
  39877. $149 = ($148>>>0)<($$01937$i>>>0);
  39878. $$$0193$i = $149 ? $148 : $$01937$i;
  39879. $$$0192$i = $149 ? $145 : $$01928$i;
  39880. $150 = ((($145)) + 16|0);
  39881. $151 = HEAP32[$150>>2]|0;
  39882. $not$$i = ($151|0)==(0|0);
  39883. $$sink1$i = $not$$i&1;
  39884. $152 = (((($145)) + 16|0) + ($$sink1$i<<2)|0);
  39885. $153 = HEAP32[$152>>2]|0;
  39886. $154 = ($153|0)==(0|0);
  39887. if ($154) {
  39888. $$0192$lcssa$i = $$$0192$i;$$0193$lcssa$i = $$$0193$i;
  39889. break;
  39890. } else {
  39891. $$01928$i = $$$0192$i;$$01937$i = $$$0193$i;$145 = $153;
  39892. }
  39893. }
  39894. }
  39895. $155 = HEAP32[(21624)>>2]|0;
  39896. $156 = ($$0192$lcssa$i>>>0)<($155>>>0);
  39897. if ($156) {
  39898. _abort();
  39899. // unreachable;
  39900. }
  39901. $157 = (($$0192$lcssa$i) + ($6)|0);
  39902. $158 = ($$0192$lcssa$i>>>0)<($157>>>0);
  39903. if (!($158)) {
  39904. _abort();
  39905. // unreachable;
  39906. }
  39907. $159 = ((($$0192$lcssa$i)) + 24|0);
  39908. $160 = HEAP32[$159>>2]|0;
  39909. $161 = ((($$0192$lcssa$i)) + 12|0);
  39910. $162 = HEAP32[$161>>2]|0;
  39911. $163 = ($162|0)==($$0192$lcssa$i|0);
  39912. do {
  39913. if ($163) {
  39914. $173 = ((($$0192$lcssa$i)) + 20|0);
  39915. $174 = HEAP32[$173>>2]|0;
  39916. $175 = ($174|0)==(0|0);
  39917. if ($175) {
  39918. $176 = ((($$0192$lcssa$i)) + 16|0);
  39919. $177 = HEAP32[$176>>2]|0;
  39920. $178 = ($177|0)==(0|0);
  39921. if ($178) {
  39922. $$3$i = 0;
  39923. break;
  39924. } else {
  39925. $$1196$i = $177;$$1198$i = $176;
  39926. }
  39927. } else {
  39928. $$1196$i = $174;$$1198$i = $173;
  39929. }
  39930. while(1) {
  39931. $179 = ((($$1196$i)) + 20|0);
  39932. $180 = HEAP32[$179>>2]|0;
  39933. $181 = ($180|0)==(0|0);
  39934. if (!($181)) {
  39935. $$1196$i = $180;$$1198$i = $179;
  39936. continue;
  39937. }
  39938. $182 = ((($$1196$i)) + 16|0);
  39939. $183 = HEAP32[$182>>2]|0;
  39940. $184 = ($183|0)==(0|0);
  39941. if ($184) {
  39942. break;
  39943. } else {
  39944. $$1196$i = $183;$$1198$i = $182;
  39945. }
  39946. }
  39947. $185 = ($$1198$i>>>0)<($155>>>0);
  39948. if ($185) {
  39949. _abort();
  39950. // unreachable;
  39951. } else {
  39952. HEAP32[$$1198$i>>2] = 0;
  39953. $$3$i = $$1196$i;
  39954. break;
  39955. }
  39956. } else {
  39957. $164 = ((($$0192$lcssa$i)) + 8|0);
  39958. $165 = HEAP32[$164>>2]|0;
  39959. $166 = ($165>>>0)<($155>>>0);
  39960. if ($166) {
  39961. _abort();
  39962. // unreachable;
  39963. }
  39964. $167 = ((($165)) + 12|0);
  39965. $168 = HEAP32[$167>>2]|0;
  39966. $169 = ($168|0)==($$0192$lcssa$i|0);
  39967. if (!($169)) {
  39968. _abort();
  39969. // unreachable;
  39970. }
  39971. $170 = ((($162)) + 8|0);
  39972. $171 = HEAP32[$170>>2]|0;
  39973. $172 = ($171|0)==($$0192$lcssa$i|0);
  39974. if ($172) {
  39975. HEAP32[$167>>2] = $162;
  39976. HEAP32[$170>>2] = $165;
  39977. $$3$i = $162;
  39978. break;
  39979. } else {
  39980. _abort();
  39981. // unreachable;
  39982. }
  39983. }
  39984. } while(0);
  39985. $186 = ($160|0)==(0|0);
  39986. L73: do {
  39987. if (!($186)) {
  39988. $187 = ((($$0192$lcssa$i)) + 28|0);
  39989. $188 = HEAP32[$187>>2]|0;
  39990. $189 = (21912 + ($188<<2)|0);
  39991. $190 = HEAP32[$189>>2]|0;
  39992. $191 = ($$0192$lcssa$i|0)==($190|0);
  39993. do {
  39994. if ($191) {
  39995. HEAP32[$189>>2] = $$3$i;
  39996. $cond$i = ($$3$i|0)==(0|0);
  39997. if ($cond$i) {
  39998. $192 = 1 << $188;
  39999. $193 = $192 ^ -1;
  40000. $194 = $108 & $193;
  40001. HEAP32[(21612)>>2] = $194;
  40002. break L73;
  40003. }
  40004. } else {
  40005. $195 = HEAP32[(21624)>>2]|0;
  40006. $196 = ($160>>>0)<($195>>>0);
  40007. if ($196) {
  40008. _abort();
  40009. // unreachable;
  40010. } else {
  40011. $197 = ((($160)) + 16|0);
  40012. $198 = HEAP32[$197>>2]|0;
  40013. $not$1$i = ($198|0)!=($$0192$lcssa$i|0);
  40014. $$sink2$i = $not$1$i&1;
  40015. $199 = (((($160)) + 16|0) + ($$sink2$i<<2)|0);
  40016. HEAP32[$199>>2] = $$3$i;
  40017. $200 = ($$3$i|0)==(0|0);
  40018. if ($200) {
  40019. break L73;
  40020. } else {
  40021. break;
  40022. }
  40023. }
  40024. }
  40025. } while(0);
  40026. $201 = HEAP32[(21624)>>2]|0;
  40027. $202 = ($$3$i>>>0)<($201>>>0);
  40028. if ($202) {
  40029. _abort();
  40030. // unreachable;
  40031. }
  40032. $203 = ((($$3$i)) + 24|0);
  40033. HEAP32[$203>>2] = $160;
  40034. $204 = ((($$0192$lcssa$i)) + 16|0);
  40035. $205 = HEAP32[$204>>2]|0;
  40036. $206 = ($205|0)==(0|0);
  40037. do {
  40038. if (!($206)) {
  40039. $207 = ($205>>>0)<($201>>>0);
  40040. if ($207) {
  40041. _abort();
  40042. // unreachable;
  40043. } else {
  40044. $208 = ((($$3$i)) + 16|0);
  40045. HEAP32[$208>>2] = $205;
  40046. $209 = ((($205)) + 24|0);
  40047. HEAP32[$209>>2] = $$3$i;
  40048. break;
  40049. }
  40050. }
  40051. } while(0);
  40052. $210 = ((($$0192$lcssa$i)) + 20|0);
  40053. $211 = HEAP32[$210>>2]|0;
  40054. $212 = ($211|0)==(0|0);
  40055. if (!($212)) {
  40056. $213 = HEAP32[(21624)>>2]|0;
  40057. $214 = ($211>>>0)<($213>>>0);
  40058. if ($214) {
  40059. _abort();
  40060. // unreachable;
  40061. } else {
  40062. $215 = ((($$3$i)) + 20|0);
  40063. HEAP32[$215>>2] = $211;
  40064. $216 = ((($211)) + 24|0);
  40065. HEAP32[$216>>2] = $$3$i;
  40066. break;
  40067. }
  40068. }
  40069. }
  40070. } while(0);
  40071. $217 = ($$0193$lcssa$i>>>0)<(16);
  40072. if ($217) {
  40073. $218 = (($$0193$lcssa$i) + ($6))|0;
  40074. $219 = $218 | 3;
  40075. $220 = ((($$0192$lcssa$i)) + 4|0);
  40076. HEAP32[$220>>2] = $219;
  40077. $221 = (($$0192$lcssa$i) + ($218)|0);
  40078. $222 = ((($221)) + 4|0);
  40079. $223 = HEAP32[$222>>2]|0;
  40080. $224 = $223 | 1;
  40081. HEAP32[$222>>2] = $224;
  40082. } else {
  40083. $225 = $6 | 3;
  40084. $226 = ((($$0192$lcssa$i)) + 4|0);
  40085. HEAP32[$226>>2] = $225;
  40086. $227 = $$0193$lcssa$i | 1;
  40087. $228 = ((($157)) + 4|0);
  40088. HEAP32[$228>>2] = $227;
  40089. $229 = (($157) + ($$0193$lcssa$i)|0);
  40090. HEAP32[$229>>2] = $$0193$lcssa$i;
  40091. $230 = ($37|0)==(0);
  40092. if (!($230)) {
  40093. $231 = HEAP32[(21628)>>2]|0;
  40094. $232 = $37 >>> 3;
  40095. $233 = $232 << 1;
  40096. $234 = (21648 + ($233<<2)|0);
  40097. $235 = 1 << $232;
  40098. $236 = $8 & $235;
  40099. $237 = ($236|0)==(0);
  40100. if ($237) {
  40101. $238 = $8 | $235;
  40102. HEAP32[5402] = $238;
  40103. $$pre$i = ((($234)) + 8|0);
  40104. $$0189$i = $234;$$pre$phi$iZ2D = $$pre$i;
  40105. } else {
  40106. $239 = ((($234)) + 8|0);
  40107. $240 = HEAP32[$239>>2]|0;
  40108. $241 = HEAP32[(21624)>>2]|0;
  40109. $242 = ($240>>>0)<($241>>>0);
  40110. if ($242) {
  40111. _abort();
  40112. // unreachable;
  40113. } else {
  40114. $$0189$i = $240;$$pre$phi$iZ2D = $239;
  40115. }
  40116. }
  40117. HEAP32[$$pre$phi$iZ2D>>2] = $231;
  40118. $243 = ((($$0189$i)) + 12|0);
  40119. HEAP32[$243>>2] = $231;
  40120. $244 = ((($231)) + 8|0);
  40121. HEAP32[$244>>2] = $$0189$i;
  40122. $245 = ((($231)) + 12|0);
  40123. HEAP32[$245>>2] = $234;
  40124. }
  40125. HEAP32[(21616)>>2] = $$0193$lcssa$i;
  40126. HEAP32[(21628)>>2] = $157;
  40127. }
  40128. $246 = ((($$0192$lcssa$i)) + 8|0);
  40129. $$0 = $246;
  40130. STACKTOP = sp;return ($$0|0);
  40131. }
  40132. } else {
  40133. $$0197 = $6;
  40134. }
  40135. } else {
  40136. $247 = ($0>>>0)>(4294967231);
  40137. if ($247) {
  40138. $$0197 = -1;
  40139. } else {
  40140. $248 = (($0) + 11)|0;
  40141. $249 = $248 & -8;
  40142. $250 = HEAP32[(21612)>>2]|0;
  40143. $251 = ($250|0)==(0);
  40144. if ($251) {
  40145. $$0197 = $249;
  40146. } else {
  40147. $252 = (0 - ($249))|0;
  40148. $253 = $248 >>> 8;
  40149. $254 = ($253|0)==(0);
  40150. if ($254) {
  40151. $$0358$i = 0;
  40152. } else {
  40153. $255 = ($249>>>0)>(16777215);
  40154. if ($255) {
  40155. $$0358$i = 31;
  40156. } else {
  40157. $256 = (($253) + 1048320)|0;
  40158. $257 = $256 >>> 16;
  40159. $258 = $257 & 8;
  40160. $259 = $253 << $258;
  40161. $260 = (($259) + 520192)|0;
  40162. $261 = $260 >>> 16;
  40163. $262 = $261 & 4;
  40164. $263 = $262 | $258;
  40165. $264 = $259 << $262;
  40166. $265 = (($264) + 245760)|0;
  40167. $266 = $265 >>> 16;
  40168. $267 = $266 & 2;
  40169. $268 = $263 | $267;
  40170. $269 = (14 - ($268))|0;
  40171. $270 = $264 << $267;
  40172. $271 = $270 >>> 15;
  40173. $272 = (($269) + ($271))|0;
  40174. $273 = $272 << 1;
  40175. $274 = (($272) + 7)|0;
  40176. $275 = $249 >>> $274;
  40177. $276 = $275 & 1;
  40178. $277 = $276 | $273;
  40179. $$0358$i = $277;
  40180. }
  40181. }
  40182. $278 = (21912 + ($$0358$i<<2)|0);
  40183. $279 = HEAP32[$278>>2]|0;
  40184. $280 = ($279|0)==(0|0);
  40185. L117: do {
  40186. if ($280) {
  40187. $$2355$i = 0;$$3$i201 = 0;$$3350$i = $252;
  40188. label = 81;
  40189. } else {
  40190. $281 = ($$0358$i|0)==(31);
  40191. $282 = $$0358$i >>> 1;
  40192. $283 = (25 - ($282))|0;
  40193. $284 = $281 ? 0 : $283;
  40194. $285 = $249 << $284;
  40195. $$0342$i = 0;$$0347$i = $252;$$0353$i = $279;$$0359$i = $285;$$0362$i = 0;
  40196. while(1) {
  40197. $286 = ((($$0353$i)) + 4|0);
  40198. $287 = HEAP32[$286>>2]|0;
  40199. $288 = $287 & -8;
  40200. $289 = (($288) - ($249))|0;
  40201. $290 = ($289>>>0)<($$0347$i>>>0);
  40202. if ($290) {
  40203. $291 = ($289|0)==(0);
  40204. if ($291) {
  40205. $$415$i = $$0353$i;$$435114$i = 0;$$435713$i = $$0353$i;
  40206. label = 85;
  40207. break L117;
  40208. } else {
  40209. $$1343$i = $$0353$i;$$1348$i = $289;
  40210. }
  40211. } else {
  40212. $$1343$i = $$0342$i;$$1348$i = $$0347$i;
  40213. }
  40214. $292 = ((($$0353$i)) + 20|0);
  40215. $293 = HEAP32[$292>>2]|0;
  40216. $294 = $$0359$i >>> 31;
  40217. $295 = (((($$0353$i)) + 16|0) + ($294<<2)|0);
  40218. $296 = HEAP32[$295>>2]|0;
  40219. $297 = ($293|0)==(0|0);
  40220. $298 = ($293|0)==($296|0);
  40221. $or$cond2$i = $297 | $298;
  40222. $$1363$i = $or$cond2$i ? $$0362$i : $293;
  40223. $299 = ($296|0)==(0|0);
  40224. $not$8$i = $299 ^ 1;
  40225. $300 = $not$8$i&1;
  40226. $$0359$$i = $$0359$i << $300;
  40227. if ($299) {
  40228. $$2355$i = $$1363$i;$$3$i201 = $$1343$i;$$3350$i = $$1348$i;
  40229. label = 81;
  40230. break;
  40231. } else {
  40232. $$0342$i = $$1343$i;$$0347$i = $$1348$i;$$0353$i = $296;$$0359$i = $$0359$$i;$$0362$i = $$1363$i;
  40233. }
  40234. }
  40235. }
  40236. } while(0);
  40237. if ((label|0) == 81) {
  40238. $301 = ($$2355$i|0)==(0|0);
  40239. $302 = ($$3$i201|0)==(0|0);
  40240. $or$cond$i = $301 & $302;
  40241. if ($or$cond$i) {
  40242. $303 = 2 << $$0358$i;
  40243. $304 = (0 - ($303))|0;
  40244. $305 = $303 | $304;
  40245. $306 = $250 & $305;
  40246. $307 = ($306|0)==(0);
  40247. if ($307) {
  40248. $$0197 = $249;
  40249. break;
  40250. }
  40251. $308 = (0 - ($306))|0;
  40252. $309 = $306 & $308;
  40253. $310 = (($309) + -1)|0;
  40254. $311 = $310 >>> 12;
  40255. $312 = $311 & 16;
  40256. $313 = $310 >>> $312;
  40257. $314 = $313 >>> 5;
  40258. $315 = $314 & 8;
  40259. $316 = $315 | $312;
  40260. $317 = $313 >>> $315;
  40261. $318 = $317 >>> 2;
  40262. $319 = $318 & 4;
  40263. $320 = $316 | $319;
  40264. $321 = $317 >>> $319;
  40265. $322 = $321 >>> 1;
  40266. $323 = $322 & 2;
  40267. $324 = $320 | $323;
  40268. $325 = $321 >>> $323;
  40269. $326 = $325 >>> 1;
  40270. $327 = $326 & 1;
  40271. $328 = $324 | $327;
  40272. $329 = $325 >>> $327;
  40273. $330 = (($328) + ($329))|0;
  40274. $331 = (21912 + ($330<<2)|0);
  40275. $332 = HEAP32[$331>>2]|0;
  40276. $$4$ph$i = 0;$$4357$ph$i = $332;
  40277. } else {
  40278. $$4$ph$i = $$3$i201;$$4357$ph$i = $$2355$i;
  40279. }
  40280. $333 = ($$4357$ph$i|0)==(0|0);
  40281. if ($333) {
  40282. $$4$lcssa$i = $$4$ph$i;$$4351$lcssa$i = $$3350$i;
  40283. } else {
  40284. $$415$i = $$4$ph$i;$$435114$i = $$3350$i;$$435713$i = $$4357$ph$i;
  40285. label = 85;
  40286. }
  40287. }
  40288. if ((label|0) == 85) {
  40289. while(1) {
  40290. label = 0;
  40291. $334 = ((($$435713$i)) + 4|0);
  40292. $335 = HEAP32[$334>>2]|0;
  40293. $336 = $335 & -8;
  40294. $337 = (($336) - ($249))|0;
  40295. $338 = ($337>>>0)<($$435114$i>>>0);
  40296. $$$4351$i = $338 ? $337 : $$435114$i;
  40297. $$4357$$4$i = $338 ? $$435713$i : $$415$i;
  40298. $339 = ((($$435713$i)) + 16|0);
  40299. $340 = HEAP32[$339>>2]|0;
  40300. $not$1$i203 = ($340|0)==(0|0);
  40301. $$sink2$i204 = $not$1$i203&1;
  40302. $341 = (((($$435713$i)) + 16|0) + ($$sink2$i204<<2)|0);
  40303. $342 = HEAP32[$341>>2]|0;
  40304. $343 = ($342|0)==(0|0);
  40305. if ($343) {
  40306. $$4$lcssa$i = $$4357$$4$i;$$4351$lcssa$i = $$$4351$i;
  40307. break;
  40308. } else {
  40309. $$415$i = $$4357$$4$i;$$435114$i = $$$4351$i;$$435713$i = $342;
  40310. label = 85;
  40311. }
  40312. }
  40313. }
  40314. $344 = ($$4$lcssa$i|0)==(0|0);
  40315. if ($344) {
  40316. $$0197 = $249;
  40317. } else {
  40318. $345 = HEAP32[(21616)>>2]|0;
  40319. $346 = (($345) - ($249))|0;
  40320. $347 = ($$4351$lcssa$i>>>0)<($346>>>0);
  40321. if ($347) {
  40322. $348 = HEAP32[(21624)>>2]|0;
  40323. $349 = ($$4$lcssa$i>>>0)<($348>>>0);
  40324. if ($349) {
  40325. _abort();
  40326. // unreachable;
  40327. }
  40328. $350 = (($$4$lcssa$i) + ($249)|0);
  40329. $351 = ($$4$lcssa$i>>>0)<($350>>>0);
  40330. if (!($351)) {
  40331. _abort();
  40332. // unreachable;
  40333. }
  40334. $352 = ((($$4$lcssa$i)) + 24|0);
  40335. $353 = HEAP32[$352>>2]|0;
  40336. $354 = ((($$4$lcssa$i)) + 12|0);
  40337. $355 = HEAP32[$354>>2]|0;
  40338. $356 = ($355|0)==($$4$lcssa$i|0);
  40339. do {
  40340. if ($356) {
  40341. $366 = ((($$4$lcssa$i)) + 20|0);
  40342. $367 = HEAP32[$366>>2]|0;
  40343. $368 = ($367|0)==(0|0);
  40344. if ($368) {
  40345. $369 = ((($$4$lcssa$i)) + 16|0);
  40346. $370 = HEAP32[$369>>2]|0;
  40347. $371 = ($370|0)==(0|0);
  40348. if ($371) {
  40349. $$3372$i = 0;
  40350. break;
  40351. } else {
  40352. $$1370$i = $370;$$1374$i = $369;
  40353. }
  40354. } else {
  40355. $$1370$i = $367;$$1374$i = $366;
  40356. }
  40357. while(1) {
  40358. $372 = ((($$1370$i)) + 20|0);
  40359. $373 = HEAP32[$372>>2]|0;
  40360. $374 = ($373|0)==(0|0);
  40361. if (!($374)) {
  40362. $$1370$i = $373;$$1374$i = $372;
  40363. continue;
  40364. }
  40365. $375 = ((($$1370$i)) + 16|0);
  40366. $376 = HEAP32[$375>>2]|0;
  40367. $377 = ($376|0)==(0|0);
  40368. if ($377) {
  40369. break;
  40370. } else {
  40371. $$1370$i = $376;$$1374$i = $375;
  40372. }
  40373. }
  40374. $378 = ($$1374$i>>>0)<($348>>>0);
  40375. if ($378) {
  40376. _abort();
  40377. // unreachable;
  40378. } else {
  40379. HEAP32[$$1374$i>>2] = 0;
  40380. $$3372$i = $$1370$i;
  40381. break;
  40382. }
  40383. } else {
  40384. $357 = ((($$4$lcssa$i)) + 8|0);
  40385. $358 = HEAP32[$357>>2]|0;
  40386. $359 = ($358>>>0)<($348>>>0);
  40387. if ($359) {
  40388. _abort();
  40389. // unreachable;
  40390. }
  40391. $360 = ((($358)) + 12|0);
  40392. $361 = HEAP32[$360>>2]|0;
  40393. $362 = ($361|0)==($$4$lcssa$i|0);
  40394. if (!($362)) {
  40395. _abort();
  40396. // unreachable;
  40397. }
  40398. $363 = ((($355)) + 8|0);
  40399. $364 = HEAP32[$363>>2]|0;
  40400. $365 = ($364|0)==($$4$lcssa$i|0);
  40401. if ($365) {
  40402. HEAP32[$360>>2] = $355;
  40403. HEAP32[$363>>2] = $358;
  40404. $$3372$i = $355;
  40405. break;
  40406. } else {
  40407. _abort();
  40408. // unreachable;
  40409. }
  40410. }
  40411. } while(0);
  40412. $379 = ($353|0)==(0|0);
  40413. L164: do {
  40414. if ($379) {
  40415. $470 = $250;
  40416. } else {
  40417. $380 = ((($$4$lcssa$i)) + 28|0);
  40418. $381 = HEAP32[$380>>2]|0;
  40419. $382 = (21912 + ($381<<2)|0);
  40420. $383 = HEAP32[$382>>2]|0;
  40421. $384 = ($$4$lcssa$i|0)==($383|0);
  40422. do {
  40423. if ($384) {
  40424. HEAP32[$382>>2] = $$3372$i;
  40425. $cond$i208 = ($$3372$i|0)==(0|0);
  40426. if ($cond$i208) {
  40427. $385 = 1 << $381;
  40428. $386 = $385 ^ -1;
  40429. $387 = $250 & $386;
  40430. HEAP32[(21612)>>2] = $387;
  40431. $470 = $387;
  40432. break L164;
  40433. }
  40434. } else {
  40435. $388 = HEAP32[(21624)>>2]|0;
  40436. $389 = ($353>>>0)<($388>>>0);
  40437. if ($389) {
  40438. _abort();
  40439. // unreachable;
  40440. } else {
  40441. $390 = ((($353)) + 16|0);
  40442. $391 = HEAP32[$390>>2]|0;
  40443. $not$$i209 = ($391|0)!=($$4$lcssa$i|0);
  40444. $$sink3$i = $not$$i209&1;
  40445. $392 = (((($353)) + 16|0) + ($$sink3$i<<2)|0);
  40446. HEAP32[$392>>2] = $$3372$i;
  40447. $393 = ($$3372$i|0)==(0|0);
  40448. if ($393) {
  40449. $470 = $250;
  40450. break L164;
  40451. } else {
  40452. break;
  40453. }
  40454. }
  40455. }
  40456. } while(0);
  40457. $394 = HEAP32[(21624)>>2]|0;
  40458. $395 = ($$3372$i>>>0)<($394>>>0);
  40459. if ($395) {
  40460. _abort();
  40461. // unreachable;
  40462. }
  40463. $396 = ((($$3372$i)) + 24|0);
  40464. HEAP32[$396>>2] = $353;
  40465. $397 = ((($$4$lcssa$i)) + 16|0);
  40466. $398 = HEAP32[$397>>2]|0;
  40467. $399 = ($398|0)==(0|0);
  40468. do {
  40469. if (!($399)) {
  40470. $400 = ($398>>>0)<($394>>>0);
  40471. if ($400) {
  40472. _abort();
  40473. // unreachable;
  40474. } else {
  40475. $401 = ((($$3372$i)) + 16|0);
  40476. HEAP32[$401>>2] = $398;
  40477. $402 = ((($398)) + 24|0);
  40478. HEAP32[$402>>2] = $$3372$i;
  40479. break;
  40480. }
  40481. }
  40482. } while(0);
  40483. $403 = ((($$4$lcssa$i)) + 20|0);
  40484. $404 = HEAP32[$403>>2]|0;
  40485. $405 = ($404|0)==(0|0);
  40486. if ($405) {
  40487. $470 = $250;
  40488. } else {
  40489. $406 = HEAP32[(21624)>>2]|0;
  40490. $407 = ($404>>>0)<($406>>>0);
  40491. if ($407) {
  40492. _abort();
  40493. // unreachable;
  40494. } else {
  40495. $408 = ((($$3372$i)) + 20|0);
  40496. HEAP32[$408>>2] = $404;
  40497. $409 = ((($404)) + 24|0);
  40498. HEAP32[$409>>2] = $$3372$i;
  40499. $470 = $250;
  40500. break;
  40501. }
  40502. }
  40503. }
  40504. } while(0);
  40505. $410 = ($$4351$lcssa$i>>>0)<(16);
  40506. do {
  40507. if ($410) {
  40508. $411 = (($$4351$lcssa$i) + ($249))|0;
  40509. $412 = $411 | 3;
  40510. $413 = ((($$4$lcssa$i)) + 4|0);
  40511. HEAP32[$413>>2] = $412;
  40512. $414 = (($$4$lcssa$i) + ($411)|0);
  40513. $415 = ((($414)) + 4|0);
  40514. $416 = HEAP32[$415>>2]|0;
  40515. $417 = $416 | 1;
  40516. HEAP32[$415>>2] = $417;
  40517. } else {
  40518. $418 = $249 | 3;
  40519. $419 = ((($$4$lcssa$i)) + 4|0);
  40520. HEAP32[$419>>2] = $418;
  40521. $420 = $$4351$lcssa$i | 1;
  40522. $421 = ((($350)) + 4|0);
  40523. HEAP32[$421>>2] = $420;
  40524. $422 = (($350) + ($$4351$lcssa$i)|0);
  40525. HEAP32[$422>>2] = $$4351$lcssa$i;
  40526. $423 = $$4351$lcssa$i >>> 3;
  40527. $424 = ($$4351$lcssa$i>>>0)<(256);
  40528. if ($424) {
  40529. $425 = $423 << 1;
  40530. $426 = (21648 + ($425<<2)|0);
  40531. $427 = HEAP32[5402]|0;
  40532. $428 = 1 << $423;
  40533. $429 = $427 & $428;
  40534. $430 = ($429|0)==(0);
  40535. if ($430) {
  40536. $431 = $427 | $428;
  40537. HEAP32[5402] = $431;
  40538. $$pre$i210 = ((($426)) + 8|0);
  40539. $$0368$i = $426;$$pre$phi$i211Z2D = $$pre$i210;
  40540. } else {
  40541. $432 = ((($426)) + 8|0);
  40542. $433 = HEAP32[$432>>2]|0;
  40543. $434 = HEAP32[(21624)>>2]|0;
  40544. $435 = ($433>>>0)<($434>>>0);
  40545. if ($435) {
  40546. _abort();
  40547. // unreachable;
  40548. } else {
  40549. $$0368$i = $433;$$pre$phi$i211Z2D = $432;
  40550. }
  40551. }
  40552. HEAP32[$$pre$phi$i211Z2D>>2] = $350;
  40553. $436 = ((($$0368$i)) + 12|0);
  40554. HEAP32[$436>>2] = $350;
  40555. $437 = ((($350)) + 8|0);
  40556. HEAP32[$437>>2] = $$0368$i;
  40557. $438 = ((($350)) + 12|0);
  40558. HEAP32[$438>>2] = $426;
  40559. break;
  40560. }
  40561. $439 = $$4351$lcssa$i >>> 8;
  40562. $440 = ($439|0)==(0);
  40563. if ($440) {
  40564. $$0361$i = 0;
  40565. } else {
  40566. $441 = ($$4351$lcssa$i>>>0)>(16777215);
  40567. if ($441) {
  40568. $$0361$i = 31;
  40569. } else {
  40570. $442 = (($439) + 1048320)|0;
  40571. $443 = $442 >>> 16;
  40572. $444 = $443 & 8;
  40573. $445 = $439 << $444;
  40574. $446 = (($445) + 520192)|0;
  40575. $447 = $446 >>> 16;
  40576. $448 = $447 & 4;
  40577. $449 = $448 | $444;
  40578. $450 = $445 << $448;
  40579. $451 = (($450) + 245760)|0;
  40580. $452 = $451 >>> 16;
  40581. $453 = $452 & 2;
  40582. $454 = $449 | $453;
  40583. $455 = (14 - ($454))|0;
  40584. $456 = $450 << $453;
  40585. $457 = $456 >>> 15;
  40586. $458 = (($455) + ($457))|0;
  40587. $459 = $458 << 1;
  40588. $460 = (($458) + 7)|0;
  40589. $461 = $$4351$lcssa$i >>> $460;
  40590. $462 = $461 & 1;
  40591. $463 = $462 | $459;
  40592. $$0361$i = $463;
  40593. }
  40594. }
  40595. $464 = (21912 + ($$0361$i<<2)|0);
  40596. $465 = ((($350)) + 28|0);
  40597. HEAP32[$465>>2] = $$0361$i;
  40598. $466 = ((($350)) + 16|0);
  40599. $467 = ((($466)) + 4|0);
  40600. HEAP32[$467>>2] = 0;
  40601. HEAP32[$466>>2] = 0;
  40602. $468 = 1 << $$0361$i;
  40603. $469 = $470 & $468;
  40604. $471 = ($469|0)==(0);
  40605. if ($471) {
  40606. $472 = $470 | $468;
  40607. HEAP32[(21612)>>2] = $472;
  40608. HEAP32[$464>>2] = $350;
  40609. $473 = ((($350)) + 24|0);
  40610. HEAP32[$473>>2] = $464;
  40611. $474 = ((($350)) + 12|0);
  40612. HEAP32[$474>>2] = $350;
  40613. $475 = ((($350)) + 8|0);
  40614. HEAP32[$475>>2] = $350;
  40615. break;
  40616. }
  40617. $476 = HEAP32[$464>>2]|0;
  40618. $477 = ($$0361$i|0)==(31);
  40619. $478 = $$0361$i >>> 1;
  40620. $479 = (25 - ($478))|0;
  40621. $480 = $477 ? 0 : $479;
  40622. $481 = $$4351$lcssa$i << $480;
  40623. $$0344$i = $481;$$0345$i = $476;
  40624. while(1) {
  40625. $482 = ((($$0345$i)) + 4|0);
  40626. $483 = HEAP32[$482>>2]|0;
  40627. $484 = $483 & -8;
  40628. $485 = ($484|0)==($$4351$lcssa$i|0);
  40629. if ($485) {
  40630. label = 139;
  40631. break;
  40632. }
  40633. $486 = $$0344$i >>> 31;
  40634. $487 = (((($$0345$i)) + 16|0) + ($486<<2)|0);
  40635. $488 = $$0344$i << 1;
  40636. $489 = HEAP32[$487>>2]|0;
  40637. $490 = ($489|0)==(0|0);
  40638. if ($490) {
  40639. label = 136;
  40640. break;
  40641. } else {
  40642. $$0344$i = $488;$$0345$i = $489;
  40643. }
  40644. }
  40645. if ((label|0) == 136) {
  40646. $491 = HEAP32[(21624)>>2]|0;
  40647. $492 = ($487>>>0)<($491>>>0);
  40648. if ($492) {
  40649. _abort();
  40650. // unreachable;
  40651. } else {
  40652. HEAP32[$487>>2] = $350;
  40653. $493 = ((($350)) + 24|0);
  40654. HEAP32[$493>>2] = $$0345$i;
  40655. $494 = ((($350)) + 12|0);
  40656. HEAP32[$494>>2] = $350;
  40657. $495 = ((($350)) + 8|0);
  40658. HEAP32[$495>>2] = $350;
  40659. break;
  40660. }
  40661. }
  40662. else if ((label|0) == 139) {
  40663. $496 = ((($$0345$i)) + 8|0);
  40664. $497 = HEAP32[$496>>2]|0;
  40665. $498 = HEAP32[(21624)>>2]|0;
  40666. $499 = ($497>>>0)>=($498>>>0);
  40667. $not$9$i = ($$0345$i>>>0)>=($498>>>0);
  40668. $500 = $499 & $not$9$i;
  40669. if ($500) {
  40670. $501 = ((($497)) + 12|0);
  40671. HEAP32[$501>>2] = $350;
  40672. HEAP32[$496>>2] = $350;
  40673. $502 = ((($350)) + 8|0);
  40674. HEAP32[$502>>2] = $497;
  40675. $503 = ((($350)) + 12|0);
  40676. HEAP32[$503>>2] = $$0345$i;
  40677. $504 = ((($350)) + 24|0);
  40678. HEAP32[$504>>2] = 0;
  40679. break;
  40680. } else {
  40681. _abort();
  40682. // unreachable;
  40683. }
  40684. }
  40685. }
  40686. } while(0);
  40687. $505 = ((($$4$lcssa$i)) + 8|0);
  40688. $$0 = $505;
  40689. STACKTOP = sp;return ($$0|0);
  40690. } else {
  40691. $$0197 = $249;
  40692. }
  40693. }
  40694. }
  40695. }
  40696. }
  40697. } while(0);
  40698. $506 = HEAP32[(21616)>>2]|0;
  40699. $507 = ($506>>>0)<($$0197>>>0);
  40700. if (!($507)) {
  40701. $508 = (($506) - ($$0197))|0;
  40702. $509 = HEAP32[(21628)>>2]|0;
  40703. $510 = ($508>>>0)>(15);
  40704. if ($510) {
  40705. $511 = (($509) + ($$0197)|0);
  40706. HEAP32[(21628)>>2] = $511;
  40707. HEAP32[(21616)>>2] = $508;
  40708. $512 = $508 | 1;
  40709. $513 = ((($511)) + 4|0);
  40710. HEAP32[$513>>2] = $512;
  40711. $514 = (($511) + ($508)|0);
  40712. HEAP32[$514>>2] = $508;
  40713. $515 = $$0197 | 3;
  40714. $516 = ((($509)) + 4|0);
  40715. HEAP32[$516>>2] = $515;
  40716. } else {
  40717. HEAP32[(21616)>>2] = 0;
  40718. HEAP32[(21628)>>2] = 0;
  40719. $517 = $506 | 3;
  40720. $518 = ((($509)) + 4|0);
  40721. HEAP32[$518>>2] = $517;
  40722. $519 = (($509) + ($506)|0);
  40723. $520 = ((($519)) + 4|0);
  40724. $521 = HEAP32[$520>>2]|0;
  40725. $522 = $521 | 1;
  40726. HEAP32[$520>>2] = $522;
  40727. }
  40728. $523 = ((($509)) + 8|0);
  40729. $$0 = $523;
  40730. STACKTOP = sp;return ($$0|0);
  40731. }
  40732. $524 = HEAP32[(21620)>>2]|0;
  40733. $525 = ($524>>>0)>($$0197>>>0);
  40734. if ($525) {
  40735. $526 = (($524) - ($$0197))|0;
  40736. HEAP32[(21620)>>2] = $526;
  40737. $527 = HEAP32[(21632)>>2]|0;
  40738. $528 = (($527) + ($$0197)|0);
  40739. HEAP32[(21632)>>2] = $528;
  40740. $529 = $526 | 1;
  40741. $530 = ((($528)) + 4|0);
  40742. HEAP32[$530>>2] = $529;
  40743. $531 = $$0197 | 3;
  40744. $532 = ((($527)) + 4|0);
  40745. HEAP32[$532>>2] = $531;
  40746. $533 = ((($527)) + 8|0);
  40747. $$0 = $533;
  40748. STACKTOP = sp;return ($$0|0);
  40749. }
  40750. $534 = HEAP32[5520]|0;
  40751. $535 = ($534|0)==(0);
  40752. if ($535) {
  40753. HEAP32[(22088)>>2] = 4096;
  40754. HEAP32[(22084)>>2] = 4096;
  40755. HEAP32[(22092)>>2] = -1;
  40756. HEAP32[(22096)>>2] = -1;
  40757. HEAP32[(22100)>>2] = 0;
  40758. HEAP32[(22052)>>2] = 0;
  40759. $536 = $1;
  40760. $537 = $536 & -16;
  40761. $538 = $537 ^ 1431655768;
  40762. HEAP32[$1>>2] = $538;
  40763. HEAP32[5520] = $538;
  40764. $542 = 4096;
  40765. } else {
  40766. $$pre$i212 = HEAP32[(22088)>>2]|0;
  40767. $542 = $$pre$i212;
  40768. }
  40769. $539 = (($$0197) + 48)|0;
  40770. $540 = (($$0197) + 47)|0;
  40771. $541 = (($542) + ($540))|0;
  40772. $543 = (0 - ($542))|0;
  40773. $544 = $541 & $543;
  40774. $545 = ($544>>>0)>($$0197>>>0);
  40775. if (!($545)) {
  40776. $$0 = 0;
  40777. STACKTOP = sp;return ($$0|0);
  40778. }
  40779. $546 = HEAP32[(22048)>>2]|0;
  40780. $547 = ($546|0)==(0);
  40781. if (!($547)) {
  40782. $548 = HEAP32[(22040)>>2]|0;
  40783. $549 = (($548) + ($544))|0;
  40784. $550 = ($549>>>0)<=($548>>>0);
  40785. $551 = ($549>>>0)>($546>>>0);
  40786. $or$cond1$i = $550 | $551;
  40787. if ($or$cond1$i) {
  40788. $$0 = 0;
  40789. STACKTOP = sp;return ($$0|0);
  40790. }
  40791. }
  40792. $552 = HEAP32[(22052)>>2]|0;
  40793. $553 = $552 & 4;
  40794. $554 = ($553|0)==(0);
  40795. L244: do {
  40796. if ($554) {
  40797. $555 = HEAP32[(21632)>>2]|0;
  40798. $556 = ($555|0)==(0|0);
  40799. L246: do {
  40800. if ($556) {
  40801. label = 163;
  40802. } else {
  40803. $$0$i$i = (22056);
  40804. while(1) {
  40805. $557 = HEAP32[$$0$i$i>>2]|0;
  40806. $558 = ($557>>>0)>($555>>>0);
  40807. if (!($558)) {
  40808. $559 = ((($$0$i$i)) + 4|0);
  40809. $560 = HEAP32[$559>>2]|0;
  40810. $561 = (($557) + ($560)|0);
  40811. $562 = ($561>>>0)>($555>>>0);
  40812. if ($562) {
  40813. break;
  40814. }
  40815. }
  40816. $563 = ((($$0$i$i)) + 8|0);
  40817. $564 = HEAP32[$563>>2]|0;
  40818. $565 = ($564|0)==(0|0);
  40819. if ($565) {
  40820. label = 163;
  40821. break L246;
  40822. } else {
  40823. $$0$i$i = $564;
  40824. }
  40825. }
  40826. $588 = (($541) - ($524))|0;
  40827. $589 = $588 & $543;
  40828. $590 = ($589>>>0)<(2147483647);
  40829. if ($590) {
  40830. $591 = (_sbrk(($589|0))|0);
  40831. $592 = HEAP32[$$0$i$i>>2]|0;
  40832. $593 = HEAP32[$559>>2]|0;
  40833. $594 = (($592) + ($593)|0);
  40834. $595 = ($591|0)==($594|0);
  40835. if ($595) {
  40836. $596 = ($591|0)==((-1)|0);
  40837. if ($596) {
  40838. $$2234253237$i = $589;
  40839. } else {
  40840. $$723948$i = $589;$$749$i = $591;
  40841. label = 180;
  40842. break L244;
  40843. }
  40844. } else {
  40845. $$2247$ph$i = $591;$$2253$ph$i = $589;
  40846. label = 171;
  40847. }
  40848. } else {
  40849. $$2234253237$i = 0;
  40850. }
  40851. }
  40852. } while(0);
  40853. do {
  40854. if ((label|0) == 163) {
  40855. $566 = (_sbrk(0)|0);
  40856. $567 = ($566|0)==((-1)|0);
  40857. if ($567) {
  40858. $$2234253237$i = 0;
  40859. } else {
  40860. $568 = $566;
  40861. $569 = HEAP32[(22084)>>2]|0;
  40862. $570 = (($569) + -1)|0;
  40863. $571 = $570 & $568;
  40864. $572 = ($571|0)==(0);
  40865. $573 = (($570) + ($568))|0;
  40866. $574 = (0 - ($569))|0;
  40867. $575 = $573 & $574;
  40868. $576 = (($575) - ($568))|0;
  40869. $577 = $572 ? 0 : $576;
  40870. $$$i = (($577) + ($544))|0;
  40871. $578 = HEAP32[(22040)>>2]|0;
  40872. $579 = (($$$i) + ($578))|0;
  40873. $580 = ($$$i>>>0)>($$0197>>>0);
  40874. $581 = ($$$i>>>0)<(2147483647);
  40875. $or$cond$i214 = $580 & $581;
  40876. if ($or$cond$i214) {
  40877. $582 = HEAP32[(22048)>>2]|0;
  40878. $583 = ($582|0)==(0);
  40879. if (!($583)) {
  40880. $584 = ($579>>>0)<=($578>>>0);
  40881. $585 = ($579>>>0)>($582>>>0);
  40882. $or$cond2$i215 = $584 | $585;
  40883. if ($or$cond2$i215) {
  40884. $$2234253237$i = 0;
  40885. break;
  40886. }
  40887. }
  40888. $586 = (_sbrk(($$$i|0))|0);
  40889. $587 = ($586|0)==($566|0);
  40890. if ($587) {
  40891. $$723948$i = $$$i;$$749$i = $566;
  40892. label = 180;
  40893. break L244;
  40894. } else {
  40895. $$2247$ph$i = $586;$$2253$ph$i = $$$i;
  40896. label = 171;
  40897. }
  40898. } else {
  40899. $$2234253237$i = 0;
  40900. }
  40901. }
  40902. }
  40903. } while(0);
  40904. do {
  40905. if ((label|0) == 171) {
  40906. $597 = (0 - ($$2253$ph$i))|0;
  40907. $598 = ($$2247$ph$i|0)!=((-1)|0);
  40908. $599 = ($$2253$ph$i>>>0)<(2147483647);
  40909. $or$cond7$i = $599 & $598;
  40910. $600 = ($539>>>0)>($$2253$ph$i>>>0);
  40911. $or$cond10$i = $600 & $or$cond7$i;
  40912. if (!($or$cond10$i)) {
  40913. $610 = ($$2247$ph$i|0)==((-1)|0);
  40914. if ($610) {
  40915. $$2234253237$i = 0;
  40916. break;
  40917. } else {
  40918. $$723948$i = $$2253$ph$i;$$749$i = $$2247$ph$i;
  40919. label = 180;
  40920. break L244;
  40921. }
  40922. }
  40923. $601 = HEAP32[(22088)>>2]|0;
  40924. $602 = (($540) - ($$2253$ph$i))|0;
  40925. $603 = (($602) + ($601))|0;
  40926. $604 = (0 - ($601))|0;
  40927. $605 = $603 & $604;
  40928. $606 = ($605>>>0)<(2147483647);
  40929. if (!($606)) {
  40930. $$723948$i = $$2253$ph$i;$$749$i = $$2247$ph$i;
  40931. label = 180;
  40932. break L244;
  40933. }
  40934. $607 = (_sbrk(($605|0))|0);
  40935. $608 = ($607|0)==((-1)|0);
  40936. if ($608) {
  40937. (_sbrk(($597|0))|0);
  40938. $$2234253237$i = 0;
  40939. break;
  40940. } else {
  40941. $609 = (($605) + ($$2253$ph$i))|0;
  40942. $$723948$i = $609;$$749$i = $$2247$ph$i;
  40943. label = 180;
  40944. break L244;
  40945. }
  40946. }
  40947. } while(0);
  40948. $611 = HEAP32[(22052)>>2]|0;
  40949. $612 = $611 | 4;
  40950. HEAP32[(22052)>>2] = $612;
  40951. $$4236$i = $$2234253237$i;
  40952. label = 178;
  40953. } else {
  40954. $$4236$i = 0;
  40955. label = 178;
  40956. }
  40957. } while(0);
  40958. if ((label|0) == 178) {
  40959. $613 = ($544>>>0)<(2147483647);
  40960. if ($613) {
  40961. $614 = (_sbrk(($544|0))|0);
  40962. $615 = (_sbrk(0)|0);
  40963. $616 = ($614|0)!=((-1)|0);
  40964. $617 = ($615|0)!=((-1)|0);
  40965. $or$cond5$i = $616 & $617;
  40966. $618 = ($614>>>0)<($615>>>0);
  40967. $or$cond11$i = $618 & $or$cond5$i;
  40968. $619 = $615;
  40969. $620 = $614;
  40970. $621 = (($619) - ($620))|0;
  40971. $622 = (($$0197) + 40)|0;
  40972. $623 = ($621>>>0)>($622>>>0);
  40973. $$$4236$i = $623 ? $621 : $$4236$i;
  40974. $or$cond11$not$i = $or$cond11$i ^ 1;
  40975. $624 = ($614|0)==((-1)|0);
  40976. $not$$i216 = $623 ^ 1;
  40977. $625 = $624 | $not$$i216;
  40978. $or$cond50$i = $625 | $or$cond11$not$i;
  40979. if (!($or$cond50$i)) {
  40980. $$723948$i = $$$4236$i;$$749$i = $614;
  40981. label = 180;
  40982. }
  40983. }
  40984. }
  40985. if ((label|0) == 180) {
  40986. $626 = HEAP32[(22040)>>2]|0;
  40987. $627 = (($626) + ($$723948$i))|0;
  40988. HEAP32[(22040)>>2] = $627;
  40989. $628 = HEAP32[(22044)>>2]|0;
  40990. $629 = ($627>>>0)>($628>>>0);
  40991. if ($629) {
  40992. HEAP32[(22044)>>2] = $627;
  40993. }
  40994. $630 = HEAP32[(21632)>>2]|0;
  40995. $631 = ($630|0)==(0|0);
  40996. do {
  40997. if ($631) {
  40998. $632 = HEAP32[(21624)>>2]|0;
  40999. $633 = ($632|0)==(0|0);
  41000. $634 = ($$749$i>>>0)<($632>>>0);
  41001. $or$cond12$i = $633 | $634;
  41002. if ($or$cond12$i) {
  41003. HEAP32[(21624)>>2] = $$749$i;
  41004. }
  41005. HEAP32[(22056)>>2] = $$749$i;
  41006. HEAP32[(22060)>>2] = $$723948$i;
  41007. HEAP32[(22068)>>2] = 0;
  41008. $635 = HEAP32[5520]|0;
  41009. HEAP32[(21644)>>2] = $635;
  41010. HEAP32[(21640)>>2] = -1;
  41011. $$01$i$i = 0;
  41012. while(1) {
  41013. $636 = $$01$i$i << 1;
  41014. $637 = (21648 + ($636<<2)|0);
  41015. $638 = ((($637)) + 12|0);
  41016. HEAP32[$638>>2] = $637;
  41017. $639 = ((($637)) + 8|0);
  41018. HEAP32[$639>>2] = $637;
  41019. $640 = (($$01$i$i) + 1)|0;
  41020. $exitcond$i$i = ($640|0)==(32);
  41021. if ($exitcond$i$i) {
  41022. break;
  41023. } else {
  41024. $$01$i$i = $640;
  41025. }
  41026. }
  41027. $641 = (($$723948$i) + -40)|0;
  41028. $642 = ((($$749$i)) + 8|0);
  41029. $643 = $642;
  41030. $644 = $643 & 7;
  41031. $645 = ($644|0)==(0);
  41032. $646 = (0 - ($643))|0;
  41033. $647 = $646 & 7;
  41034. $648 = $645 ? 0 : $647;
  41035. $649 = (($$749$i) + ($648)|0);
  41036. $650 = (($641) - ($648))|0;
  41037. HEAP32[(21632)>>2] = $649;
  41038. HEAP32[(21620)>>2] = $650;
  41039. $651 = $650 | 1;
  41040. $652 = ((($649)) + 4|0);
  41041. HEAP32[$652>>2] = $651;
  41042. $653 = (($649) + ($650)|0);
  41043. $654 = ((($653)) + 4|0);
  41044. HEAP32[$654>>2] = 40;
  41045. $655 = HEAP32[(22096)>>2]|0;
  41046. HEAP32[(21636)>>2] = $655;
  41047. } else {
  41048. $$024371$i = (22056);
  41049. while(1) {
  41050. $656 = HEAP32[$$024371$i>>2]|0;
  41051. $657 = ((($$024371$i)) + 4|0);
  41052. $658 = HEAP32[$657>>2]|0;
  41053. $659 = (($656) + ($658)|0);
  41054. $660 = ($$749$i|0)==($659|0);
  41055. if ($660) {
  41056. label = 190;
  41057. break;
  41058. }
  41059. $661 = ((($$024371$i)) + 8|0);
  41060. $662 = HEAP32[$661>>2]|0;
  41061. $663 = ($662|0)==(0|0);
  41062. if ($663) {
  41063. break;
  41064. } else {
  41065. $$024371$i = $662;
  41066. }
  41067. }
  41068. if ((label|0) == 190) {
  41069. $664 = ((($$024371$i)) + 12|0);
  41070. $665 = HEAP32[$664>>2]|0;
  41071. $666 = $665 & 8;
  41072. $667 = ($666|0)==(0);
  41073. if ($667) {
  41074. $668 = ($630>>>0)>=($656>>>0);
  41075. $669 = ($630>>>0)<($$749$i>>>0);
  41076. $or$cond51$i = $669 & $668;
  41077. if ($or$cond51$i) {
  41078. $670 = (($658) + ($$723948$i))|0;
  41079. HEAP32[$657>>2] = $670;
  41080. $671 = HEAP32[(21620)>>2]|0;
  41081. $672 = ((($630)) + 8|0);
  41082. $673 = $672;
  41083. $674 = $673 & 7;
  41084. $675 = ($674|0)==(0);
  41085. $676 = (0 - ($673))|0;
  41086. $677 = $676 & 7;
  41087. $678 = $675 ? 0 : $677;
  41088. $679 = (($630) + ($678)|0);
  41089. $680 = (($$723948$i) - ($678))|0;
  41090. $681 = (($671) + ($680))|0;
  41091. HEAP32[(21632)>>2] = $679;
  41092. HEAP32[(21620)>>2] = $681;
  41093. $682 = $681 | 1;
  41094. $683 = ((($679)) + 4|0);
  41095. HEAP32[$683>>2] = $682;
  41096. $684 = (($679) + ($681)|0);
  41097. $685 = ((($684)) + 4|0);
  41098. HEAP32[$685>>2] = 40;
  41099. $686 = HEAP32[(22096)>>2]|0;
  41100. HEAP32[(21636)>>2] = $686;
  41101. break;
  41102. }
  41103. }
  41104. }
  41105. $687 = HEAP32[(21624)>>2]|0;
  41106. $688 = ($$749$i>>>0)<($687>>>0);
  41107. if ($688) {
  41108. HEAP32[(21624)>>2] = $$749$i;
  41109. $752 = $$749$i;
  41110. } else {
  41111. $752 = $687;
  41112. }
  41113. $689 = (($$749$i) + ($$723948$i)|0);
  41114. $$124470$i = (22056);
  41115. while(1) {
  41116. $690 = HEAP32[$$124470$i>>2]|0;
  41117. $691 = ($690|0)==($689|0);
  41118. if ($691) {
  41119. label = 198;
  41120. break;
  41121. }
  41122. $692 = ((($$124470$i)) + 8|0);
  41123. $693 = HEAP32[$692>>2]|0;
  41124. $694 = ($693|0)==(0|0);
  41125. if ($694) {
  41126. break;
  41127. } else {
  41128. $$124470$i = $693;
  41129. }
  41130. }
  41131. if ((label|0) == 198) {
  41132. $695 = ((($$124470$i)) + 12|0);
  41133. $696 = HEAP32[$695>>2]|0;
  41134. $697 = $696 & 8;
  41135. $698 = ($697|0)==(0);
  41136. if ($698) {
  41137. HEAP32[$$124470$i>>2] = $$749$i;
  41138. $699 = ((($$124470$i)) + 4|0);
  41139. $700 = HEAP32[$699>>2]|0;
  41140. $701 = (($700) + ($$723948$i))|0;
  41141. HEAP32[$699>>2] = $701;
  41142. $702 = ((($$749$i)) + 8|0);
  41143. $703 = $702;
  41144. $704 = $703 & 7;
  41145. $705 = ($704|0)==(0);
  41146. $706 = (0 - ($703))|0;
  41147. $707 = $706 & 7;
  41148. $708 = $705 ? 0 : $707;
  41149. $709 = (($$749$i) + ($708)|0);
  41150. $710 = ((($689)) + 8|0);
  41151. $711 = $710;
  41152. $712 = $711 & 7;
  41153. $713 = ($712|0)==(0);
  41154. $714 = (0 - ($711))|0;
  41155. $715 = $714 & 7;
  41156. $716 = $713 ? 0 : $715;
  41157. $717 = (($689) + ($716)|0);
  41158. $718 = $717;
  41159. $719 = $709;
  41160. $720 = (($718) - ($719))|0;
  41161. $721 = (($709) + ($$0197)|0);
  41162. $722 = (($720) - ($$0197))|0;
  41163. $723 = $$0197 | 3;
  41164. $724 = ((($709)) + 4|0);
  41165. HEAP32[$724>>2] = $723;
  41166. $725 = ($717|0)==($630|0);
  41167. do {
  41168. if ($725) {
  41169. $726 = HEAP32[(21620)>>2]|0;
  41170. $727 = (($726) + ($722))|0;
  41171. HEAP32[(21620)>>2] = $727;
  41172. HEAP32[(21632)>>2] = $721;
  41173. $728 = $727 | 1;
  41174. $729 = ((($721)) + 4|0);
  41175. HEAP32[$729>>2] = $728;
  41176. } else {
  41177. $730 = HEAP32[(21628)>>2]|0;
  41178. $731 = ($717|0)==($730|0);
  41179. if ($731) {
  41180. $732 = HEAP32[(21616)>>2]|0;
  41181. $733 = (($732) + ($722))|0;
  41182. HEAP32[(21616)>>2] = $733;
  41183. HEAP32[(21628)>>2] = $721;
  41184. $734 = $733 | 1;
  41185. $735 = ((($721)) + 4|0);
  41186. HEAP32[$735>>2] = $734;
  41187. $736 = (($721) + ($733)|0);
  41188. HEAP32[$736>>2] = $733;
  41189. break;
  41190. }
  41191. $737 = ((($717)) + 4|0);
  41192. $738 = HEAP32[$737>>2]|0;
  41193. $739 = $738 & 3;
  41194. $740 = ($739|0)==(1);
  41195. if ($740) {
  41196. $741 = $738 & -8;
  41197. $742 = $738 >>> 3;
  41198. $743 = ($738>>>0)<(256);
  41199. L314: do {
  41200. if ($743) {
  41201. $744 = ((($717)) + 8|0);
  41202. $745 = HEAP32[$744>>2]|0;
  41203. $746 = ((($717)) + 12|0);
  41204. $747 = HEAP32[$746>>2]|0;
  41205. $748 = $742 << 1;
  41206. $749 = (21648 + ($748<<2)|0);
  41207. $750 = ($745|0)==($749|0);
  41208. do {
  41209. if (!($750)) {
  41210. $751 = ($745>>>0)<($752>>>0);
  41211. if ($751) {
  41212. _abort();
  41213. // unreachable;
  41214. }
  41215. $753 = ((($745)) + 12|0);
  41216. $754 = HEAP32[$753>>2]|0;
  41217. $755 = ($754|0)==($717|0);
  41218. if ($755) {
  41219. break;
  41220. }
  41221. _abort();
  41222. // unreachable;
  41223. }
  41224. } while(0);
  41225. $756 = ($747|0)==($745|0);
  41226. if ($756) {
  41227. $757 = 1 << $742;
  41228. $758 = $757 ^ -1;
  41229. $759 = HEAP32[5402]|0;
  41230. $760 = $759 & $758;
  41231. HEAP32[5402] = $760;
  41232. break;
  41233. }
  41234. $761 = ($747|0)==($749|0);
  41235. do {
  41236. if ($761) {
  41237. $$pre10$i$i = ((($747)) + 8|0);
  41238. $$pre$phi11$i$iZ2D = $$pre10$i$i;
  41239. } else {
  41240. $762 = ($747>>>0)<($752>>>0);
  41241. if ($762) {
  41242. _abort();
  41243. // unreachable;
  41244. }
  41245. $763 = ((($747)) + 8|0);
  41246. $764 = HEAP32[$763>>2]|0;
  41247. $765 = ($764|0)==($717|0);
  41248. if ($765) {
  41249. $$pre$phi11$i$iZ2D = $763;
  41250. break;
  41251. }
  41252. _abort();
  41253. // unreachable;
  41254. }
  41255. } while(0);
  41256. $766 = ((($745)) + 12|0);
  41257. HEAP32[$766>>2] = $747;
  41258. HEAP32[$$pre$phi11$i$iZ2D>>2] = $745;
  41259. } else {
  41260. $767 = ((($717)) + 24|0);
  41261. $768 = HEAP32[$767>>2]|0;
  41262. $769 = ((($717)) + 12|0);
  41263. $770 = HEAP32[$769>>2]|0;
  41264. $771 = ($770|0)==($717|0);
  41265. do {
  41266. if ($771) {
  41267. $781 = ((($717)) + 16|0);
  41268. $782 = ((($781)) + 4|0);
  41269. $783 = HEAP32[$782>>2]|0;
  41270. $784 = ($783|0)==(0|0);
  41271. if ($784) {
  41272. $785 = HEAP32[$781>>2]|0;
  41273. $786 = ($785|0)==(0|0);
  41274. if ($786) {
  41275. $$3$i$i = 0;
  41276. break;
  41277. } else {
  41278. $$1291$i$i = $785;$$1293$i$i = $781;
  41279. }
  41280. } else {
  41281. $$1291$i$i = $783;$$1293$i$i = $782;
  41282. }
  41283. while(1) {
  41284. $787 = ((($$1291$i$i)) + 20|0);
  41285. $788 = HEAP32[$787>>2]|0;
  41286. $789 = ($788|0)==(0|0);
  41287. if (!($789)) {
  41288. $$1291$i$i = $788;$$1293$i$i = $787;
  41289. continue;
  41290. }
  41291. $790 = ((($$1291$i$i)) + 16|0);
  41292. $791 = HEAP32[$790>>2]|0;
  41293. $792 = ($791|0)==(0|0);
  41294. if ($792) {
  41295. break;
  41296. } else {
  41297. $$1291$i$i = $791;$$1293$i$i = $790;
  41298. }
  41299. }
  41300. $793 = ($$1293$i$i>>>0)<($752>>>0);
  41301. if ($793) {
  41302. _abort();
  41303. // unreachable;
  41304. } else {
  41305. HEAP32[$$1293$i$i>>2] = 0;
  41306. $$3$i$i = $$1291$i$i;
  41307. break;
  41308. }
  41309. } else {
  41310. $772 = ((($717)) + 8|0);
  41311. $773 = HEAP32[$772>>2]|0;
  41312. $774 = ($773>>>0)<($752>>>0);
  41313. if ($774) {
  41314. _abort();
  41315. // unreachable;
  41316. }
  41317. $775 = ((($773)) + 12|0);
  41318. $776 = HEAP32[$775>>2]|0;
  41319. $777 = ($776|0)==($717|0);
  41320. if (!($777)) {
  41321. _abort();
  41322. // unreachable;
  41323. }
  41324. $778 = ((($770)) + 8|0);
  41325. $779 = HEAP32[$778>>2]|0;
  41326. $780 = ($779|0)==($717|0);
  41327. if ($780) {
  41328. HEAP32[$775>>2] = $770;
  41329. HEAP32[$778>>2] = $773;
  41330. $$3$i$i = $770;
  41331. break;
  41332. } else {
  41333. _abort();
  41334. // unreachable;
  41335. }
  41336. }
  41337. } while(0);
  41338. $794 = ($768|0)==(0|0);
  41339. if ($794) {
  41340. break;
  41341. }
  41342. $795 = ((($717)) + 28|0);
  41343. $796 = HEAP32[$795>>2]|0;
  41344. $797 = (21912 + ($796<<2)|0);
  41345. $798 = HEAP32[$797>>2]|0;
  41346. $799 = ($717|0)==($798|0);
  41347. do {
  41348. if ($799) {
  41349. HEAP32[$797>>2] = $$3$i$i;
  41350. $cond$i$i = ($$3$i$i|0)==(0|0);
  41351. if (!($cond$i$i)) {
  41352. break;
  41353. }
  41354. $800 = 1 << $796;
  41355. $801 = $800 ^ -1;
  41356. $802 = HEAP32[(21612)>>2]|0;
  41357. $803 = $802 & $801;
  41358. HEAP32[(21612)>>2] = $803;
  41359. break L314;
  41360. } else {
  41361. $804 = HEAP32[(21624)>>2]|0;
  41362. $805 = ($768>>>0)<($804>>>0);
  41363. if ($805) {
  41364. _abort();
  41365. // unreachable;
  41366. } else {
  41367. $806 = ((($768)) + 16|0);
  41368. $807 = HEAP32[$806>>2]|0;
  41369. $not$$i17$i = ($807|0)!=($717|0);
  41370. $$sink1$i$i = $not$$i17$i&1;
  41371. $808 = (((($768)) + 16|0) + ($$sink1$i$i<<2)|0);
  41372. HEAP32[$808>>2] = $$3$i$i;
  41373. $809 = ($$3$i$i|0)==(0|0);
  41374. if ($809) {
  41375. break L314;
  41376. } else {
  41377. break;
  41378. }
  41379. }
  41380. }
  41381. } while(0);
  41382. $810 = HEAP32[(21624)>>2]|0;
  41383. $811 = ($$3$i$i>>>0)<($810>>>0);
  41384. if ($811) {
  41385. _abort();
  41386. // unreachable;
  41387. }
  41388. $812 = ((($$3$i$i)) + 24|0);
  41389. HEAP32[$812>>2] = $768;
  41390. $813 = ((($717)) + 16|0);
  41391. $814 = HEAP32[$813>>2]|0;
  41392. $815 = ($814|0)==(0|0);
  41393. do {
  41394. if (!($815)) {
  41395. $816 = ($814>>>0)<($810>>>0);
  41396. if ($816) {
  41397. _abort();
  41398. // unreachable;
  41399. } else {
  41400. $817 = ((($$3$i$i)) + 16|0);
  41401. HEAP32[$817>>2] = $814;
  41402. $818 = ((($814)) + 24|0);
  41403. HEAP32[$818>>2] = $$3$i$i;
  41404. break;
  41405. }
  41406. }
  41407. } while(0);
  41408. $819 = ((($813)) + 4|0);
  41409. $820 = HEAP32[$819>>2]|0;
  41410. $821 = ($820|0)==(0|0);
  41411. if ($821) {
  41412. break;
  41413. }
  41414. $822 = HEAP32[(21624)>>2]|0;
  41415. $823 = ($820>>>0)<($822>>>0);
  41416. if ($823) {
  41417. _abort();
  41418. // unreachable;
  41419. } else {
  41420. $824 = ((($$3$i$i)) + 20|0);
  41421. HEAP32[$824>>2] = $820;
  41422. $825 = ((($820)) + 24|0);
  41423. HEAP32[$825>>2] = $$3$i$i;
  41424. break;
  41425. }
  41426. }
  41427. } while(0);
  41428. $826 = (($717) + ($741)|0);
  41429. $827 = (($741) + ($722))|0;
  41430. $$0$i18$i = $826;$$0287$i$i = $827;
  41431. } else {
  41432. $$0$i18$i = $717;$$0287$i$i = $722;
  41433. }
  41434. $828 = ((($$0$i18$i)) + 4|0);
  41435. $829 = HEAP32[$828>>2]|0;
  41436. $830 = $829 & -2;
  41437. HEAP32[$828>>2] = $830;
  41438. $831 = $$0287$i$i | 1;
  41439. $832 = ((($721)) + 4|0);
  41440. HEAP32[$832>>2] = $831;
  41441. $833 = (($721) + ($$0287$i$i)|0);
  41442. HEAP32[$833>>2] = $$0287$i$i;
  41443. $834 = $$0287$i$i >>> 3;
  41444. $835 = ($$0287$i$i>>>0)<(256);
  41445. if ($835) {
  41446. $836 = $834 << 1;
  41447. $837 = (21648 + ($836<<2)|0);
  41448. $838 = HEAP32[5402]|0;
  41449. $839 = 1 << $834;
  41450. $840 = $838 & $839;
  41451. $841 = ($840|0)==(0);
  41452. do {
  41453. if ($841) {
  41454. $842 = $838 | $839;
  41455. HEAP32[5402] = $842;
  41456. $$pre$i19$i = ((($837)) + 8|0);
  41457. $$0295$i$i = $837;$$pre$phi$i20$iZ2D = $$pre$i19$i;
  41458. } else {
  41459. $843 = ((($837)) + 8|0);
  41460. $844 = HEAP32[$843>>2]|0;
  41461. $845 = HEAP32[(21624)>>2]|0;
  41462. $846 = ($844>>>0)<($845>>>0);
  41463. if (!($846)) {
  41464. $$0295$i$i = $844;$$pre$phi$i20$iZ2D = $843;
  41465. break;
  41466. }
  41467. _abort();
  41468. // unreachable;
  41469. }
  41470. } while(0);
  41471. HEAP32[$$pre$phi$i20$iZ2D>>2] = $721;
  41472. $847 = ((($$0295$i$i)) + 12|0);
  41473. HEAP32[$847>>2] = $721;
  41474. $848 = ((($721)) + 8|0);
  41475. HEAP32[$848>>2] = $$0295$i$i;
  41476. $849 = ((($721)) + 12|0);
  41477. HEAP32[$849>>2] = $837;
  41478. break;
  41479. }
  41480. $850 = $$0287$i$i >>> 8;
  41481. $851 = ($850|0)==(0);
  41482. do {
  41483. if ($851) {
  41484. $$0296$i$i = 0;
  41485. } else {
  41486. $852 = ($$0287$i$i>>>0)>(16777215);
  41487. if ($852) {
  41488. $$0296$i$i = 31;
  41489. break;
  41490. }
  41491. $853 = (($850) + 1048320)|0;
  41492. $854 = $853 >>> 16;
  41493. $855 = $854 & 8;
  41494. $856 = $850 << $855;
  41495. $857 = (($856) + 520192)|0;
  41496. $858 = $857 >>> 16;
  41497. $859 = $858 & 4;
  41498. $860 = $859 | $855;
  41499. $861 = $856 << $859;
  41500. $862 = (($861) + 245760)|0;
  41501. $863 = $862 >>> 16;
  41502. $864 = $863 & 2;
  41503. $865 = $860 | $864;
  41504. $866 = (14 - ($865))|0;
  41505. $867 = $861 << $864;
  41506. $868 = $867 >>> 15;
  41507. $869 = (($866) + ($868))|0;
  41508. $870 = $869 << 1;
  41509. $871 = (($869) + 7)|0;
  41510. $872 = $$0287$i$i >>> $871;
  41511. $873 = $872 & 1;
  41512. $874 = $873 | $870;
  41513. $$0296$i$i = $874;
  41514. }
  41515. } while(0);
  41516. $875 = (21912 + ($$0296$i$i<<2)|0);
  41517. $876 = ((($721)) + 28|0);
  41518. HEAP32[$876>>2] = $$0296$i$i;
  41519. $877 = ((($721)) + 16|0);
  41520. $878 = ((($877)) + 4|0);
  41521. HEAP32[$878>>2] = 0;
  41522. HEAP32[$877>>2] = 0;
  41523. $879 = HEAP32[(21612)>>2]|0;
  41524. $880 = 1 << $$0296$i$i;
  41525. $881 = $879 & $880;
  41526. $882 = ($881|0)==(0);
  41527. if ($882) {
  41528. $883 = $879 | $880;
  41529. HEAP32[(21612)>>2] = $883;
  41530. HEAP32[$875>>2] = $721;
  41531. $884 = ((($721)) + 24|0);
  41532. HEAP32[$884>>2] = $875;
  41533. $885 = ((($721)) + 12|0);
  41534. HEAP32[$885>>2] = $721;
  41535. $886 = ((($721)) + 8|0);
  41536. HEAP32[$886>>2] = $721;
  41537. break;
  41538. }
  41539. $887 = HEAP32[$875>>2]|0;
  41540. $888 = ($$0296$i$i|0)==(31);
  41541. $889 = $$0296$i$i >>> 1;
  41542. $890 = (25 - ($889))|0;
  41543. $891 = $888 ? 0 : $890;
  41544. $892 = $$0287$i$i << $891;
  41545. $$0288$i$i = $892;$$0289$i$i = $887;
  41546. while(1) {
  41547. $893 = ((($$0289$i$i)) + 4|0);
  41548. $894 = HEAP32[$893>>2]|0;
  41549. $895 = $894 & -8;
  41550. $896 = ($895|0)==($$0287$i$i|0);
  41551. if ($896) {
  41552. label = 265;
  41553. break;
  41554. }
  41555. $897 = $$0288$i$i >>> 31;
  41556. $898 = (((($$0289$i$i)) + 16|0) + ($897<<2)|0);
  41557. $899 = $$0288$i$i << 1;
  41558. $900 = HEAP32[$898>>2]|0;
  41559. $901 = ($900|0)==(0|0);
  41560. if ($901) {
  41561. label = 262;
  41562. break;
  41563. } else {
  41564. $$0288$i$i = $899;$$0289$i$i = $900;
  41565. }
  41566. }
  41567. if ((label|0) == 262) {
  41568. $902 = HEAP32[(21624)>>2]|0;
  41569. $903 = ($898>>>0)<($902>>>0);
  41570. if ($903) {
  41571. _abort();
  41572. // unreachable;
  41573. } else {
  41574. HEAP32[$898>>2] = $721;
  41575. $904 = ((($721)) + 24|0);
  41576. HEAP32[$904>>2] = $$0289$i$i;
  41577. $905 = ((($721)) + 12|0);
  41578. HEAP32[$905>>2] = $721;
  41579. $906 = ((($721)) + 8|0);
  41580. HEAP32[$906>>2] = $721;
  41581. break;
  41582. }
  41583. }
  41584. else if ((label|0) == 265) {
  41585. $907 = ((($$0289$i$i)) + 8|0);
  41586. $908 = HEAP32[$907>>2]|0;
  41587. $909 = HEAP32[(21624)>>2]|0;
  41588. $910 = ($908>>>0)>=($909>>>0);
  41589. $not$7$i$i = ($$0289$i$i>>>0)>=($909>>>0);
  41590. $911 = $910 & $not$7$i$i;
  41591. if ($911) {
  41592. $912 = ((($908)) + 12|0);
  41593. HEAP32[$912>>2] = $721;
  41594. HEAP32[$907>>2] = $721;
  41595. $913 = ((($721)) + 8|0);
  41596. HEAP32[$913>>2] = $908;
  41597. $914 = ((($721)) + 12|0);
  41598. HEAP32[$914>>2] = $$0289$i$i;
  41599. $915 = ((($721)) + 24|0);
  41600. HEAP32[$915>>2] = 0;
  41601. break;
  41602. } else {
  41603. _abort();
  41604. // unreachable;
  41605. }
  41606. }
  41607. }
  41608. } while(0);
  41609. $1047 = ((($709)) + 8|0);
  41610. $$0 = $1047;
  41611. STACKTOP = sp;return ($$0|0);
  41612. }
  41613. }
  41614. $$0$i$i$i = (22056);
  41615. while(1) {
  41616. $916 = HEAP32[$$0$i$i$i>>2]|0;
  41617. $917 = ($916>>>0)>($630>>>0);
  41618. if (!($917)) {
  41619. $918 = ((($$0$i$i$i)) + 4|0);
  41620. $919 = HEAP32[$918>>2]|0;
  41621. $920 = (($916) + ($919)|0);
  41622. $921 = ($920>>>0)>($630>>>0);
  41623. if ($921) {
  41624. break;
  41625. }
  41626. }
  41627. $922 = ((($$0$i$i$i)) + 8|0);
  41628. $923 = HEAP32[$922>>2]|0;
  41629. $$0$i$i$i = $923;
  41630. }
  41631. $924 = ((($920)) + -47|0);
  41632. $925 = ((($924)) + 8|0);
  41633. $926 = $925;
  41634. $927 = $926 & 7;
  41635. $928 = ($927|0)==(0);
  41636. $929 = (0 - ($926))|0;
  41637. $930 = $929 & 7;
  41638. $931 = $928 ? 0 : $930;
  41639. $932 = (($924) + ($931)|0);
  41640. $933 = ((($630)) + 16|0);
  41641. $934 = ($932>>>0)<($933>>>0);
  41642. $935 = $934 ? $630 : $932;
  41643. $936 = ((($935)) + 8|0);
  41644. $937 = ((($935)) + 24|0);
  41645. $938 = (($$723948$i) + -40)|0;
  41646. $939 = ((($$749$i)) + 8|0);
  41647. $940 = $939;
  41648. $941 = $940 & 7;
  41649. $942 = ($941|0)==(0);
  41650. $943 = (0 - ($940))|0;
  41651. $944 = $943 & 7;
  41652. $945 = $942 ? 0 : $944;
  41653. $946 = (($$749$i) + ($945)|0);
  41654. $947 = (($938) - ($945))|0;
  41655. HEAP32[(21632)>>2] = $946;
  41656. HEAP32[(21620)>>2] = $947;
  41657. $948 = $947 | 1;
  41658. $949 = ((($946)) + 4|0);
  41659. HEAP32[$949>>2] = $948;
  41660. $950 = (($946) + ($947)|0);
  41661. $951 = ((($950)) + 4|0);
  41662. HEAP32[$951>>2] = 40;
  41663. $952 = HEAP32[(22096)>>2]|0;
  41664. HEAP32[(21636)>>2] = $952;
  41665. $953 = ((($935)) + 4|0);
  41666. HEAP32[$953>>2] = 27;
  41667. ;HEAP32[$936>>2]=HEAP32[(22056)>>2]|0;HEAP32[$936+4>>2]=HEAP32[(22056)+4>>2]|0;HEAP32[$936+8>>2]=HEAP32[(22056)+8>>2]|0;HEAP32[$936+12>>2]=HEAP32[(22056)+12>>2]|0;
  41668. HEAP32[(22056)>>2] = $$749$i;
  41669. HEAP32[(22060)>>2] = $$723948$i;
  41670. HEAP32[(22068)>>2] = 0;
  41671. HEAP32[(22064)>>2] = $936;
  41672. $955 = $937;
  41673. while(1) {
  41674. $954 = ((($955)) + 4|0);
  41675. HEAP32[$954>>2] = 7;
  41676. $956 = ((($955)) + 8|0);
  41677. $957 = ($956>>>0)<($920>>>0);
  41678. if ($957) {
  41679. $955 = $954;
  41680. } else {
  41681. break;
  41682. }
  41683. }
  41684. $958 = ($935|0)==($630|0);
  41685. if (!($958)) {
  41686. $959 = $935;
  41687. $960 = $630;
  41688. $961 = (($959) - ($960))|0;
  41689. $962 = HEAP32[$953>>2]|0;
  41690. $963 = $962 & -2;
  41691. HEAP32[$953>>2] = $963;
  41692. $964 = $961 | 1;
  41693. $965 = ((($630)) + 4|0);
  41694. HEAP32[$965>>2] = $964;
  41695. HEAP32[$935>>2] = $961;
  41696. $966 = $961 >>> 3;
  41697. $967 = ($961>>>0)<(256);
  41698. if ($967) {
  41699. $968 = $966 << 1;
  41700. $969 = (21648 + ($968<<2)|0);
  41701. $970 = HEAP32[5402]|0;
  41702. $971 = 1 << $966;
  41703. $972 = $970 & $971;
  41704. $973 = ($972|0)==(0);
  41705. if ($973) {
  41706. $974 = $970 | $971;
  41707. HEAP32[5402] = $974;
  41708. $$pre$i$i = ((($969)) + 8|0);
  41709. $$0211$i$i = $969;$$pre$phi$i$iZ2D = $$pre$i$i;
  41710. } else {
  41711. $975 = ((($969)) + 8|0);
  41712. $976 = HEAP32[$975>>2]|0;
  41713. $977 = HEAP32[(21624)>>2]|0;
  41714. $978 = ($976>>>0)<($977>>>0);
  41715. if ($978) {
  41716. _abort();
  41717. // unreachable;
  41718. } else {
  41719. $$0211$i$i = $976;$$pre$phi$i$iZ2D = $975;
  41720. }
  41721. }
  41722. HEAP32[$$pre$phi$i$iZ2D>>2] = $630;
  41723. $979 = ((($$0211$i$i)) + 12|0);
  41724. HEAP32[$979>>2] = $630;
  41725. $980 = ((($630)) + 8|0);
  41726. HEAP32[$980>>2] = $$0211$i$i;
  41727. $981 = ((($630)) + 12|0);
  41728. HEAP32[$981>>2] = $969;
  41729. break;
  41730. }
  41731. $982 = $961 >>> 8;
  41732. $983 = ($982|0)==(0);
  41733. if ($983) {
  41734. $$0212$i$i = 0;
  41735. } else {
  41736. $984 = ($961>>>0)>(16777215);
  41737. if ($984) {
  41738. $$0212$i$i = 31;
  41739. } else {
  41740. $985 = (($982) + 1048320)|0;
  41741. $986 = $985 >>> 16;
  41742. $987 = $986 & 8;
  41743. $988 = $982 << $987;
  41744. $989 = (($988) + 520192)|0;
  41745. $990 = $989 >>> 16;
  41746. $991 = $990 & 4;
  41747. $992 = $991 | $987;
  41748. $993 = $988 << $991;
  41749. $994 = (($993) + 245760)|0;
  41750. $995 = $994 >>> 16;
  41751. $996 = $995 & 2;
  41752. $997 = $992 | $996;
  41753. $998 = (14 - ($997))|0;
  41754. $999 = $993 << $996;
  41755. $1000 = $999 >>> 15;
  41756. $1001 = (($998) + ($1000))|0;
  41757. $1002 = $1001 << 1;
  41758. $1003 = (($1001) + 7)|0;
  41759. $1004 = $961 >>> $1003;
  41760. $1005 = $1004 & 1;
  41761. $1006 = $1005 | $1002;
  41762. $$0212$i$i = $1006;
  41763. }
  41764. }
  41765. $1007 = (21912 + ($$0212$i$i<<2)|0);
  41766. $1008 = ((($630)) + 28|0);
  41767. HEAP32[$1008>>2] = $$0212$i$i;
  41768. $1009 = ((($630)) + 20|0);
  41769. HEAP32[$1009>>2] = 0;
  41770. HEAP32[$933>>2] = 0;
  41771. $1010 = HEAP32[(21612)>>2]|0;
  41772. $1011 = 1 << $$0212$i$i;
  41773. $1012 = $1010 & $1011;
  41774. $1013 = ($1012|0)==(0);
  41775. if ($1013) {
  41776. $1014 = $1010 | $1011;
  41777. HEAP32[(21612)>>2] = $1014;
  41778. HEAP32[$1007>>2] = $630;
  41779. $1015 = ((($630)) + 24|0);
  41780. HEAP32[$1015>>2] = $1007;
  41781. $1016 = ((($630)) + 12|0);
  41782. HEAP32[$1016>>2] = $630;
  41783. $1017 = ((($630)) + 8|0);
  41784. HEAP32[$1017>>2] = $630;
  41785. break;
  41786. }
  41787. $1018 = HEAP32[$1007>>2]|0;
  41788. $1019 = ($$0212$i$i|0)==(31);
  41789. $1020 = $$0212$i$i >>> 1;
  41790. $1021 = (25 - ($1020))|0;
  41791. $1022 = $1019 ? 0 : $1021;
  41792. $1023 = $961 << $1022;
  41793. $$0206$i$i = $1023;$$0207$i$i = $1018;
  41794. while(1) {
  41795. $1024 = ((($$0207$i$i)) + 4|0);
  41796. $1025 = HEAP32[$1024>>2]|0;
  41797. $1026 = $1025 & -8;
  41798. $1027 = ($1026|0)==($961|0);
  41799. if ($1027) {
  41800. label = 292;
  41801. break;
  41802. }
  41803. $1028 = $$0206$i$i >>> 31;
  41804. $1029 = (((($$0207$i$i)) + 16|0) + ($1028<<2)|0);
  41805. $1030 = $$0206$i$i << 1;
  41806. $1031 = HEAP32[$1029>>2]|0;
  41807. $1032 = ($1031|0)==(0|0);
  41808. if ($1032) {
  41809. label = 289;
  41810. break;
  41811. } else {
  41812. $$0206$i$i = $1030;$$0207$i$i = $1031;
  41813. }
  41814. }
  41815. if ((label|0) == 289) {
  41816. $1033 = HEAP32[(21624)>>2]|0;
  41817. $1034 = ($1029>>>0)<($1033>>>0);
  41818. if ($1034) {
  41819. _abort();
  41820. // unreachable;
  41821. } else {
  41822. HEAP32[$1029>>2] = $630;
  41823. $1035 = ((($630)) + 24|0);
  41824. HEAP32[$1035>>2] = $$0207$i$i;
  41825. $1036 = ((($630)) + 12|0);
  41826. HEAP32[$1036>>2] = $630;
  41827. $1037 = ((($630)) + 8|0);
  41828. HEAP32[$1037>>2] = $630;
  41829. break;
  41830. }
  41831. }
  41832. else if ((label|0) == 292) {
  41833. $1038 = ((($$0207$i$i)) + 8|0);
  41834. $1039 = HEAP32[$1038>>2]|0;
  41835. $1040 = HEAP32[(21624)>>2]|0;
  41836. $1041 = ($1039>>>0)>=($1040>>>0);
  41837. $not$$i$i = ($$0207$i$i>>>0)>=($1040>>>0);
  41838. $1042 = $1041 & $not$$i$i;
  41839. if ($1042) {
  41840. $1043 = ((($1039)) + 12|0);
  41841. HEAP32[$1043>>2] = $630;
  41842. HEAP32[$1038>>2] = $630;
  41843. $1044 = ((($630)) + 8|0);
  41844. HEAP32[$1044>>2] = $1039;
  41845. $1045 = ((($630)) + 12|0);
  41846. HEAP32[$1045>>2] = $$0207$i$i;
  41847. $1046 = ((($630)) + 24|0);
  41848. HEAP32[$1046>>2] = 0;
  41849. break;
  41850. } else {
  41851. _abort();
  41852. // unreachable;
  41853. }
  41854. }
  41855. }
  41856. }
  41857. } while(0);
  41858. $1048 = HEAP32[(21620)>>2]|0;
  41859. $1049 = ($1048>>>0)>($$0197>>>0);
  41860. if ($1049) {
  41861. $1050 = (($1048) - ($$0197))|0;
  41862. HEAP32[(21620)>>2] = $1050;
  41863. $1051 = HEAP32[(21632)>>2]|0;
  41864. $1052 = (($1051) + ($$0197)|0);
  41865. HEAP32[(21632)>>2] = $1052;
  41866. $1053 = $1050 | 1;
  41867. $1054 = ((($1052)) + 4|0);
  41868. HEAP32[$1054>>2] = $1053;
  41869. $1055 = $$0197 | 3;
  41870. $1056 = ((($1051)) + 4|0);
  41871. HEAP32[$1056>>2] = $1055;
  41872. $1057 = ((($1051)) + 8|0);
  41873. $$0 = $1057;
  41874. STACKTOP = sp;return ($$0|0);
  41875. }
  41876. }
  41877. $1058 = (___errno_location()|0);
  41878. HEAP32[$1058>>2] = 12;
  41879. $$0 = 0;
  41880. STACKTOP = sp;return ($$0|0);
  41881. }
  41882. function _free($0) {
  41883. $0 = $0|0;
  41884. 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;
  41885. 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;
  41886. 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;
  41887. 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;
  41888. 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;
  41889. 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;
  41890. 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;
  41891. 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;
  41892. 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;
  41893. 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;
  41894. 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;
  41895. 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;
  41896. 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;
  41897. 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;
  41898. 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;
  41899. 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;
  41900. 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;
  41901. var $99 = 0, $cond421 = 0, $cond422 = 0, $not$ = 0, $not$405 = 0, $not$437 = 0, label = 0, sp = 0;
  41902. sp = STACKTOP;
  41903. $1 = ($0|0)==(0|0);
  41904. if ($1) {
  41905. return;
  41906. }
  41907. $2 = ((($0)) + -8|0);
  41908. $3 = HEAP32[(21624)>>2]|0;
  41909. $4 = ($2>>>0)<($3>>>0);
  41910. if ($4) {
  41911. _abort();
  41912. // unreachable;
  41913. }
  41914. $5 = ((($0)) + -4|0);
  41915. $6 = HEAP32[$5>>2]|0;
  41916. $7 = $6 & 3;
  41917. $8 = ($7|0)==(1);
  41918. if ($8) {
  41919. _abort();
  41920. // unreachable;
  41921. }
  41922. $9 = $6 & -8;
  41923. $10 = (($2) + ($9)|0);
  41924. $11 = $6 & 1;
  41925. $12 = ($11|0)==(0);
  41926. L10: do {
  41927. if ($12) {
  41928. $13 = HEAP32[$2>>2]|0;
  41929. $14 = ($7|0)==(0);
  41930. if ($14) {
  41931. return;
  41932. }
  41933. $15 = (0 - ($13))|0;
  41934. $16 = (($2) + ($15)|0);
  41935. $17 = (($13) + ($9))|0;
  41936. $18 = ($16>>>0)<($3>>>0);
  41937. if ($18) {
  41938. _abort();
  41939. // unreachable;
  41940. }
  41941. $19 = HEAP32[(21628)>>2]|0;
  41942. $20 = ($16|0)==($19|0);
  41943. if ($20) {
  41944. $104 = ((($10)) + 4|0);
  41945. $105 = HEAP32[$104>>2]|0;
  41946. $106 = $105 & 3;
  41947. $107 = ($106|0)==(3);
  41948. if (!($107)) {
  41949. $$1 = $16;$$1382 = $17;$113 = $16;
  41950. break;
  41951. }
  41952. $108 = (($16) + ($17)|0);
  41953. $109 = ((($16)) + 4|0);
  41954. $110 = $17 | 1;
  41955. $111 = $105 & -2;
  41956. HEAP32[(21616)>>2] = $17;
  41957. HEAP32[$104>>2] = $111;
  41958. HEAP32[$109>>2] = $110;
  41959. HEAP32[$108>>2] = $17;
  41960. return;
  41961. }
  41962. $21 = $13 >>> 3;
  41963. $22 = ($13>>>0)<(256);
  41964. if ($22) {
  41965. $23 = ((($16)) + 8|0);
  41966. $24 = HEAP32[$23>>2]|0;
  41967. $25 = ((($16)) + 12|0);
  41968. $26 = HEAP32[$25>>2]|0;
  41969. $27 = $21 << 1;
  41970. $28 = (21648 + ($27<<2)|0);
  41971. $29 = ($24|0)==($28|0);
  41972. if (!($29)) {
  41973. $30 = ($24>>>0)<($3>>>0);
  41974. if ($30) {
  41975. _abort();
  41976. // unreachable;
  41977. }
  41978. $31 = ((($24)) + 12|0);
  41979. $32 = HEAP32[$31>>2]|0;
  41980. $33 = ($32|0)==($16|0);
  41981. if (!($33)) {
  41982. _abort();
  41983. // unreachable;
  41984. }
  41985. }
  41986. $34 = ($26|0)==($24|0);
  41987. if ($34) {
  41988. $35 = 1 << $21;
  41989. $36 = $35 ^ -1;
  41990. $37 = HEAP32[5402]|0;
  41991. $38 = $37 & $36;
  41992. HEAP32[5402] = $38;
  41993. $$1 = $16;$$1382 = $17;$113 = $16;
  41994. break;
  41995. }
  41996. $39 = ($26|0)==($28|0);
  41997. if ($39) {
  41998. $$pre444 = ((($26)) + 8|0);
  41999. $$pre$phi445Z2D = $$pre444;
  42000. } else {
  42001. $40 = ($26>>>0)<($3>>>0);
  42002. if ($40) {
  42003. _abort();
  42004. // unreachable;
  42005. }
  42006. $41 = ((($26)) + 8|0);
  42007. $42 = HEAP32[$41>>2]|0;
  42008. $43 = ($42|0)==($16|0);
  42009. if ($43) {
  42010. $$pre$phi445Z2D = $41;
  42011. } else {
  42012. _abort();
  42013. // unreachable;
  42014. }
  42015. }
  42016. $44 = ((($24)) + 12|0);
  42017. HEAP32[$44>>2] = $26;
  42018. HEAP32[$$pre$phi445Z2D>>2] = $24;
  42019. $$1 = $16;$$1382 = $17;$113 = $16;
  42020. break;
  42021. }
  42022. $45 = ((($16)) + 24|0);
  42023. $46 = HEAP32[$45>>2]|0;
  42024. $47 = ((($16)) + 12|0);
  42025. $48 = HEAP32[$47>>2]|0;
  42026. $49 = ($48|0)==($16|0);
  42027. do {
  42028. if ($49) {
  42029. $59 = ((($16)) + 16|0);
  42030. $60 = ((($59)) + 4|0);
  42031. $61 = HEAP32[$60>>2]|0;
  42032. $62 = ($61|0)==(0|0);
  42033. if ($62) {
  42034. $63 = HEAP32[$59>>2]|0;
  42035. $64 = ($63|0)==(0|0);
  42036. if ($64) {
  42037. $$3 = 0;
  42038. break;
  42039. } else {
  42040. $$1387 = $63;$$1390 = $59;
  42041. }
  42042. } else {
  42043. $$1387 = $61;$$1390 = $60;
  42044. }
  42045. while(1) {
  42046. $65 = ((($$1387)) + 20|0);
  42047. $66 = HEAP32[$65>>2]|0;
  42048. $67 = ($66|0)==(0|0);
  42049. if (!($67)) {
  42050. $$1387 = $66;$$1390 = $65;
  42051. continue;
  42052. }
  42053. $68 = ((($$1387)) + 16|0);
  42054. $69 = HEAP32[$68>>2]|0;
  42055. $70 = ($69|0)==(0|0);
  42056. if ($70) {
  42057. break;
  42058. } else {
  42059. $$1387 = $69;$$1390 = $68;
  42060. }
  42061. }
  42062. $71 = ($$1390>>>0)<($3>>>0);
  42063. if ($71) {
  42064. _abort();
  42065. // unreachable;
  42066. } else {
  42067. HEAP32[$$1390>>2] = 0;
  42068. $$3 = $$1387;
  42069. break;
  42070. }
  42071. } else {
  42072. $50 = ((($16)) + 8|0);
  42073. $51 = HEAP32[$50>>2]|0;
  42074. $52 = ($51>>>0)<($3>>>0);
  42075. if ($52) {
  42076. _abort();
  42077. // unreachable;
  42078. }
  42079. $53 = ((($51)) + 12|0);
  42080. $54 = HEAP32[$53>>2]|0;
  42081. $55 = ($54|0)==($16|0);
  42082. if (!($55)) {
  42083. _abort();
  42084. // unreachable;
  42085. }
  42086. $56 = ((($48)) + 8|0);
  42087. $57 = HEAP32[$56>>2]|0;
  42088. $58 = ($57|0)==($16|0);
  42089. if ($58) {
  42090. HEAP32[$53>>2] = $48;
  42091. HEAP32[$56>>2] = $51;
  42092. $$3 = $48;
  42093. break;
  42094. } else {
  42095. _abort();
  42096. // unreachable;
  42097. }
  42098. }
  42099. } while(0);
  42100. $72 = ($46|0)==(0|0);
  42101. if ($72) {
  42102. $$1 = $16;$$1382 = $17;$113 = $16;
  42103. } else {
  42104. $73 = ((($16)) + 28|0);
  42105. $74 = HEAP32[$73>>2]|0;
  42106. $75 = (21912 + ($74<<2)|0);
  42107. $76 = HEAP32[$75>>2]|0;
  42108. $77 = ($16|0)==($76|0);
  42109. do {
  42110. if ($77) {
  42111. HEAP32[$75>>2] = $$3;
  42112. $cond421 = ($$3|0)==(0|0);
  42113. if ($cond421) {
  42114. $78 = 1 << $74;
  42115. $79 = $78 ^ -1;
  42116. $80 = HEAP32[(21612)>>2]|0;
  42117. $81 = $80 & $79;
  42118. HEAP32[(21612)>>2] = $81;
  42119. $$1 = $16;$$1382 = $17;$113 = $16;
  42120. break L10;
  42121. }
  42122. } else {
  42123. $82 = HEAP32[(21624)>>2]|0;
  42124. $83 = ($46>>>0)<($82>>>0);
  42125. if ($83) {
  42126. _abort();
  42127. // unreachable;
  42128. } else {
  42129. $84 = ((($46)) + 16|0);
  42130. $85 = HEAP32[$84>>2]|0;
  42131. $not$405 = ($85|0)!=($16|0);
  42132. $$sink3 = $not$405&1;
  42133. $86 = (((($46)) + 16|0) + ($$sink3<<2)|0);
  42134. HEAP32[$86>>2] = $$3;
  42135. $87 = ($$3|0)==(0|0);
  42136. if ($87) {
  42137. $$1 = $16;$$1382 = $17;$113 = $16;
  42138. break L10;
  42139. } else {
  42140. break;
  42141. }
  42142. }
  42143. }
  42144. } while(0);
  42145. $88 = HEAP32[(21624)>>2]|0;
  42146. $89 = ($$3>>>0)<($88>>>0);
  42147. if ($89) {
  42148. _abort();
  42149. // unreachable;
  42150. }
  42151. $90 = ((($$3)) + 24|0);
  42152. HEAP32[$90>>2] = $46;
  42153. $91 = ((($16)) + 16|0);
  42154. $92 = HEAP32[$91>>2]|0;
  42155. $93 = ($92|0)==(0|0);
  42156. do {
  42157. if (!($93)) {
  42158. $94 = ($92>>>0)<($88>>>0);
  42159. if ($94) {
  42160. _abort();
  42161. // unreachable;
  42162. } else {
  42163. $95 = ((($$3)) + 16|0);
  42164. HEAP32[$95>>2] = $92;
  42165. $96 = ((($92)) + 24|0);
  42166. HEAP32[$96>>2] = $$3;
  42167. break;
  42168. }
  42169. }
  42170. } while(0);
  42171. $97 = ((($91)) + 4|0);
  42172. $98 = HEAP32[$97>>2]|0;
  42173. $99 = ($98|0)==(0|0);
  42174. if ($99) {
  42175. $$1 = $16;$$1382 = $17;$113 = $16;
  42176. } else {
  42177. $100 = HEAP32[(21624)>>2]|0;
  42178. $101 = ($98>>>0)<($100>>>0);
  42179. if ($101) {
  42180. _abort();
  42181. // unreachable;
  42182. } else {
  42183. $102 = ((($$3)) + 20|0);
  42184. HEAP32[$102>>2] = $98;
  42185. $103 = ((($98)) + 24|0);
  42186. HEAP32[$103>>2] = $$3;
  42187. $$1 = $16;$$1382 = $17;$113 = $16;
  42188. break;
  42189. }
  42190. }
  42191. }
  42192. } else {
  42193. $$1 = $2;$$1382 = $9;$113 = $2;
  42194. }
  42195. } while(0);
  42196. $112 = ($113>>>0)<($10>>>0);
  42197. if (!($112)) {
  42198. _abort();
  42199. // unreachable;
  42200. }
  42201. $114 = ((($10)) + 4|0);
  42202. $115 = HEAP32[$114>>2]|0;
  42203. $116 = $115 & 1;
  42204. $117 = ($116|0)==(0);
  42205. if ($117) {
  42206. _abort();
  42207. // unreachable;
  42208. }
  42209. $118 = $115 & 2;
  42210. $119 = ($118|0)==(0);
  42211. if ($119) {
  42212. $120 = HEAP32[(21632)>>2]|0;
  42213. $121 = ($10|0)==($120|0);
  42214. $122 = HEAP32[(21628)>>2]|0;
  42215. if ($121) {
  42216. $123 = HEAP32[(21620)>>2]|0;
  42217. $124 = (($123) + ($$1382))|0;
  42218. HEAP32[(21620)>>2] = $124;
  42219. HEAP32[(21632)>>2] = $$1;
  42220. $125 = $124 | 1;
  42221. $126 = ((($$1)) + 4|0);
  42222. HEAP32[$126>>2] = $125;
  42223. $127 = ($$1|0)==($122|0);
  42224. if (!($127)) {
  42225. return;
  42226. }
  42227. HEAP32[(21628)>>2] = 0;
  42228. HEAP32[(21616)>>2] = 0;
  42229. return;
  42230. }
  42231. $128 = ($10|0)==($122|0);
  42232. if ($128) {
  42233. $129 = HEAP32[(21616)>>2]|0;
  42234. $130 = (($129) + ($$1382))|0;
  42235. HEAP32[(21616)>>2] = $130;
  42236. HEAP32[(21628)>>2] = $113;
  42237. $131 = $130 | 1;
  42238. $132 = ((($$1)) + 4|0);
  42239. HEAP32[$132>>2] = $131;
  42240. $133 = (($113) + ($130)|0);
  42241. HEAP32[$133>>2] = $130;
  42242. return;
  42243. }
  42244. $134 = $115 & -8;
  42245. $135 = (($134) + ($$1382))|0;
  42246. $136 = $115 >>> 3;
  42247. $137 = ($115>>>0)<(256);
  42248. L108: do {
  42249. if ($137) {
  42250. $138 = ((($10)) + 8|0);
  42251. $139 = HEAP32[$138>>2]|0;
  42252. $140 = ((($10)) + 12|0);
  42253. $141 = HEAP32[$140>>2]|0;
  42254. $142 = $136 << 1;
  42255. $143 = (21648 + ($142<<2)|0);
  42256. $144 = ($139|0)==($143|0);
  42257. if (!($144)) {
  42258. $145 = HEAP32[(21624)>>2]|0;
  42259. $146 = ($139>>>0)<($145>>>0);
  42260. if ($146) {
  42261. _abort();
  42262. // unreachable;
  42263. }
  42264. $147 = ((($139)) + 12|0);
  42265. $148 = HEAP32[$147>>2]|0;
  42266. $149 = ($148|0)==($10|0);
  42267. if (!($149)) {
  42268. _abort();
  42269. // unreachable;
  42270. }
  42271. }
  42272. $150 = ($141|0)==($139|0);
  42273. if ($150) {
  42274. $151 = 1 << $136;
  42275. $152 = $151 ^ -1;
  42276. $153 = HEAP32[5402]|0;
  42277. $154 = $153 & $152;
  42278. HEAP32[5402] = $154;
  42279. break;
  42280. }
  42281. $155 = ($141|0)==($143|0);
  42282. if ($155) {
  42283. $$pre442 = ((($141)) + 8|0);
  42284. $$pre$phi443Z2D = $$pre442;
  42285. } else {
  42286. $156 = HEAP32[(21624)>>2]|0;
  42287. $157 = ($141>>>0)<($156>>>0);
  42288. if ($157) {
  42289. _abort();
  42290. // unreachable;
  42291. }
  42292. $158 = ((($141)) + 8|0);
  42293. $159 = HEAP32[$158>>2]|0;
  42294. $160 = ($159|0)==($10|0);
  42295. if ($160) {
  42296. $$pre$phi443Z2D = $158;
  42297. } else {
  42298. _abort();
  42299. // unreachable;
  42300. }
  42301. }
  42302. $161 = ((($139)) + 12|0);
  42303. HEAP32[$161>>2] = $141;
  42304. HEAP32[$$pre$phi443Z2D>>2] = $139;
  42305. } else {
  42306. $162 = ((($10)) + 24|0);
  42307. $163 = HEAP32[$162>>2]|0;
  42308. $164 = ((($10)) + 12|0);
  42309. $165 = HEAP32[$164>>2]|0;
  42310. $166 = ($165|0)==($10|0);
  42311. do {
  42312. if ($166) {
  42313. $177 = ((($10)) + 16|0);
  42314. $178 = ((($177)) + 4|0);
  42315. $179 = HEAP32[$178>>2]|0;
  42316. $180 = ($179|0)==(0|0);
  42317. if ($180) {
  42318. $181 = HEAP32[$177>>2]|0;
  42319. $182 = ($181|0)==(0|0);
  42320. if ($182) {
  42321. $$3400 = 0;
  42322. break;
  42323. } else {
  42324. $$1398 = $181;$$1402 = $177;
  42325. }
  42326. } else {
  42327. $$1398 = $179;$$1402 = $178;
  42328. }
  42329. while(1) {
  42330. $183 = ((($$1398)) + 20|0);
  42331. $184 = HEAP32[$183>>2]|0;
  42332. $185 = ($184|0)==(0|0);
  42333. if (!($185)) {
  42334. $$1398 = $184;$$1402 = $183;
  42335. continue;
  42336. }
  42337. $186 = ((($$1398)) + 16|0);
  42338. $187 = HEAP32[$186>>2]|0;
  42339. $188 = ($187|0)==(0|0);
  42340. if ($188) {
  42341. break;
  42342. } else {
  42343. $$1398 = $187;$$1402 = $186;
  42344. }
  42345. }
  42346. $189 = HEAP32[(21624)>>2]|0;
  42347. $190 = ($$1402>>>0)<($189>>>0);
  42348. if ($190) {
  42349. _abort();
  42350. // unreachable;
  42351. } else {
  42352. HEAP32[$$1402>>2] = 0;
  42353. $$3400 = $$1398;
  42354. break;
  42355. }
  42356. } else {
  42357. $167 = ((($10)) + 8|0);
  42358. $168 = HEAP32[$167>>2]|0;
  42359. $169 = HEAP32[(21624)>>2]|0;
  42360. $170 = ($168>>>0)<($169>>>0);
  42361. if ($170) {
  42362. _abort();
  42363. // unreachable;
  42364. }
  42365. $171 = ((($168)) + 12|0);
  42366. $172 = HEAP32[$171>>2]|0;
  42367. $173 = ($172|0)==($10|0);
  42368. if (!($173)) {
  42369. _abort();
  42370. // unreachable;
  42371. }
  42372. $174 = ((($165)) + 8|0);
  42373. $175 = HEAP32[$174>>2]|0;
  42374. $176 = ($175|0)==($10|0);
  42375. if ($176) {
  42376. HEAP32[$171>>2] = $165;
  42377. HEAP32[$174>>2] = $168;
  42378. $$3400 = $165;
  42379. break;
  42380. } else {
  42381. _abort();
  42382. // unreachable;
  42383. }
  42384. }
  42385. } while(0);
  42386. $191 = ($163|0)==(0|0);
  42387. if (!($191)) {
  42388. $192 = ((($10)) + 28|0);
  42389. $193 = HEAP32[$192>>2]|0;
  42390. $194 = (21912 + ($193<<2)|0);
  42391. $195 = HEAP32[$194>>2]|0;
  42392. $196 = ($10|0)==($195|0);
  42393. do {
  42394. if ($196) {
  42395. HEAP32[$194>>2] = $$3400;
  42396. $cond422 = ($$3400|0)==(0|0);
  42397. if ($cond422) {
  42398. $197 = 1 << $193;
  42399. $198 = $197 ^ -1;
  42400. $199 = HEAP32[(21612)>>2]|0;
  42401. $200 = $199 & $198;
  42402. HEAP32[(21612)>>2] = $200;
  42403. break L108;
  42404. }
  42405. } else {
  42406. $201 = HEAP32[(21624)>>2]|0;
  42407. $202 = ($163>>>0)<($201>>>0);
  42408. if ($202) {
  42409. _abort();
  42410. // unreachable;
  42411. } else {
  42412. $203 = ((($163)) + 16|0);
  42413. $204 = HEAP32[$203>>2]|0;
  42414. $not$ = ($204|0)!=($10|0);
  42415. $$sink5 = $not$&1;
  42416. $205 = (((($163)) + 16|0) + ($$sink5<<2)|0);
  42417. HEAP32[$205>>2] = $$3400;
  42418. $206 = ($$3400|0)==(0|0);
  42419. if ($206) {
  42420. break L108;
  42421. } else {
  42422. break;
  42423. }
  42424. }
  42425. }
  42426. } while(0);
  42427. $207 = HEAP32[(21624)>>2]|0;
  42428. $208 = ($$3400>>>0)<($207>>>0);
  42429. if ($208) {
  42430. _abort();
  42431. // unreachable;
  42432. }
  42433. $209 = ((($$3400)) + 24|0);
  42434. HEAP32[$209>>2] = $163;
  42435. $210 = ((($10)) + 16|0);
  42436. $211 = HEAP32[$210>>2]|0;
  42437. $212 = ($211|0)==(0|0);
  42438. do {
  42439. if (!($212)) {
  42440. $213 = ($211>>>0)<($207>>>0);
  42441. if ($213) {
  42442. _abort();
  42443. // unreachable;
  42444. } else {
  42445. $214 = ((($$3400)) + 16|0);
  42446. HEAP32[$214>>2] = $211;
  42447. $215 = ((($211)) + 24|0);
  42448. HEAP32[$215>>2] = $$3400;
  42449. break;
  42450. }
  42451. }
  42452. } while(0);
  42453. $216 = ((($210)) + 4|0);
  42454. $217 = HEAP32[$216>>2]|0;
  42455. $218 = ($217|0)==(0|0);
  42456. if (!($218)) {
  42457. $219 = HEAP32[(21624)>>2]|0;
  42458. $220 = ($217>>>0)<($219>>>0);
  42459. if ($220) {
  42460. _abort();
  42461. // unreachable;
  42462. } else {
  42463. $221 = ((($$3400)) + 20|0);
  42464. HEAP32[$221>>2] = $217;
  42465. $222 = ((($217)) + 24|0);
  42466. HEAP32[$222>>2] = $$3400;
  42467. break;
  42468. }
  42469. }
  42470. }
  42471. }
  42472. } while(0);
  42473. $223 = $135 | 1;
  42474. $224 = ((($$1)) + 4|0);
  42475. HEAP32[$224>>2] = $223;
  42476. $225 = (($113) + ($135)|0);
  42477. HEAP32[$225>>2] = $135;
  42478. $226 = HEAP32[(21628)>>2]|0;
  42479. $227 = ($$1|0)==($226|0);
  42480. if ($227) {
  42481. HEAP32[(21616)>>2] = $135;
  42482. return;
  42483. } else {
  42484. $$2 = $135;
  42485. }
  42486. } else {
  42487. $228 = $115 & -2;
  42488. HEAP32[$114>>2] = $228;
  42489. $229 = $$1382 | 1;
  42490. $230 = ((($$1)) + 4|0);
  42491. HEAP32[$230>>2] = $229;
  42492. $231 = (($113) + ($$1382)|0);
  42493. HEAP32[$231>>2] = $$1382;
  42494. $$2 = $$1382;
  42495. }
  42496. $232 = $$2 >>> 3;
  42497. $233 = ($$2>>>0)<(256);
  42498. if ($233) {
  42499. $234 = $232 << 1;
  42500. $235 = (21648 + ($234<<2)|0);
  42501. $236 = HEAP32[5402]|0;
  42502. $237 = 1 << $232;
  42503. $238 = $236 & $237;
  42504. $239 = ($238|0)==(0);
  42505. if ($239) {
  42506. $240 = $236 | $237;
  42507. HEAP32[5402] = $240;
  42508. $$pre = ((($235)) + 8|0);
  42509. $$0403 = $235;$$pre$phiZ2D = $$pre;
  42510. } else {
  42511. $241 = ((($235)) + 8|0);
  42512. $242 = HEAP32[$241>>2]|0;
  42513. $243 = HEAP32[(21624)>>2]|0;
  42514. $244 = ($242>>>0)<($243>>>0);
  42515. if ($244) {
  42516. _abort();
  42517. // unreachable;
  42518. } else {
  42519. $$0403 = $242;$$pre$phiZ2D = $241;
  42520. }
  42521. }
  42522. HEAP32[$$pre$phiZ2D>>2] = $$1;
  42523. $245 = ((($$0403)) + 12|0);
  42524. HEAP32[$245>>2] = $$1;
  42525. $246 = ((($$1)) + 8|0);
  42526. HEAP32[$246>>2] = $$0403;
  42527. $247 = ((($$1)) + 12|0);
  42528. HEAP32[$247>>2] = $235;
  42529. return;
  42530. }
  42531. $248 = $$2 >>> 8;
  42532. $249 = ($248|0)==(0);
  42533. if ($249) {
  42534. $$0396 = 0;
  42535. } else {
  42536. $250 = ($$2>>>0)>(16777215);
  42537. if ($250) {
  42538. $$0396 = 31;
  42539. } else {
  42540. $251 = (($248) + 1048320)|0;
  42541. $252 = $251 >>> 16;
  42542. $253 = $252 & 8;
  42543. $254 = $248 << $253;
  42544. $255 = (($254) + 520192)|0;
  42545. $256 = $255 >>> 16;
  42546. $257 = $256 & 4;
  42547. $258 = $257 | $253;
  42548. $259 = $254 << $257;
  42549. $260 = (($259) + 245760)|0;
  42550. $261 = $260 >>> 16;
  42551. $262 = $261 & 2;
  42552. $263 = $258 | $262;
  42553. $264 = (14 - ($263))|0;
  42554. $265 = $259 << $262;
  42555. $266 = $265 >>> 15;
  42556. $267 = (($264) + ($266))|0;
  42557. $268 = $267 << 1;
  42558. $269 = (($267) + 7)|0;
  42559. $270 = $$2 >>> $269;
  42560. $271 = $270 & 1;
  42561. $272 = $271 | $268;
  42562. $$0396 = $272;
  42563. }
  42564. }
  42565. $273 = (21912 + ($$0396<<2)|0);
  42566. $274 = ((($$1)) + 28|0);
  42567. HEAP32[$274>>2] = $$0396;
  42568. $275 = ((($$1)) + 16|0);
  42569. $276 = ((($$1)) + 20|0);
  42570. HEAP32[$276>>2] = 0;
  42571. HEAP32[$275>>2] = 0;
  42572. $277 = HEAP32[(21612)>>2]|0;
  42573. $278 = 1 << $$0396;
  42574. $279 = $277 & $278;
  42575. $280 = ($279|0)==(0);
  42576. do {
  42577. if ($280) {
  42578. $281 = $277 | $278;
  42579. HEAP32[(21612)>>2] = $281;
  42580. HEAP32[$273>>2] = $$1;
  42581. $282 = ((($$1)) + 24|0);
  42582. HEAP32[$282>>2] = $273;
  42583. $283 = ((($$1)) + 12|0);
  42584. HEAP32[$283>>2] = $$1;
  42585. $284 = ((($$1)) + 8|0);
  42586. HEAP32[$284>>2] = $$1;
  42587. } else {
  42588. $285 = HEAP32[$273>>2]|0;
  42589. $286 = ($$0396|0)==(31);
  42590. $287 = $$0396 >>> 1;
  42591. $288 = (25 - ($287))|0;
  42592. $289 = $286 ? 0 : $288;
  42593. $290 = $$2 << $289;
  42594. $$0383 = $290;$$0384 = $285;
  42595. while(1) {
  42596. $291 = ((($$0384)) + 4|0);
  42597. $292 = HEAP32[$291>>2]|0;
  42598. $293 = $292 & -8;
  42599. $294 = ($293|0)==($$2|0);
  42600. if ($294) {
  42601. label = 124;
  42602. break;
  42603. }
  42604. $295 = $$0383 >>> 31;
  42605. $296 = (((($$0384)) + 16|0) + ($295<<2)|0);
  42606. $297 = $$0383 << 1;
  42607. $298 = HEAP32[$296>>2]|0;
  42608. $299 = ($298|0)==(0|0);
  42609. if ($299) {
  42610. label = 121;
  42611. break;
  42612. } else {
  42613. $$0383 = $297;$$0384 = $298;
  42614. }
  42615. }
  42616. if ((label|0) == 121) {
  42617. $300 = HEAP32[(21624)>>2]|0;
  42618. $301 = ($296>>>0)<($300>>>0);
  42619. if ($301) {
  42620. _abort();
  42621. // unreachable;
  42622. } else {
  42623. HEAP32[$296>>2] = $$1;
  42624. $302 = ((($$1)) + 24|0);
  42625. HEAP32[$302>>2] = $$0384;
  42626. $303 = ((($$1)) + 12|0);
  42627. HEAP32[$303>>2] = $$1;
  42628. $304 = ((($$1)) + 8|0);
  42629. HEAP32[$304>>2] = $$1;
  42630. break;
  42631. }
  42632. }
  42633. else if ((label|0) == 124) {
  42634. $305 = ((($$0384)) + 8|0);
  42635. $306 = HEAP32[$305>>2]|0;
  42636. $307 = HEAP32[(21624)>>2]|0;
  42637. $308 = ($306>>>0)>=($307>>>0);
  42638. $not$437 = ($$0384>>>0)>=($307>>>0);
  42639. $309 = $308 & $not$437;
  42640. if ($309) {
  42641. $310 = ((($306)) + 12|0);
  42642. HEAP32[$310>>2] = $$1;
  42643. HEAP32[$305>>2] = $$1;
  42644. $311 = ((($$1)) + 8|0);
  42645. HEAP32[$311>>2] = $306;
  42646. $312 = ((($$1)) + 12|0);
  42647. HEAP32[$312>>2] = $$0384;
  42648. $313 = ((($$1)) + 24|0);
  42649. HEAP32[$313>>2] = 0;
  42650. break;
  42651. } else {
  42652. _abort();
  42653. // unreachable;
  42654. }
  42655. }
  42656. }
  42657. } while(0);
  42658. $314 = HEAP32[(21640)>>2]|0;
  42659. $315 = (($314) + -1)|0;
  42660. HEAP32[(21640)>>2] = $315;
  42661. $316 = ($315|0)==(0);
  42662. if ($316) {
  42663. $$0212$in$i = (22064);
  42664. } else {
  42665. return;
  42666. }
  42667. while(1) {
  42668. $$0212$i = HEAP32[$$0212$in$i>>2]|0;
  42669. $317 = ($$0212$i|0)==(0|0);
  42670. $318 = ((($$0212$i)) + 8|0);
  42671. if ($317) {
  42672. break;
  42673. } else {
  42674. $$0212$in$i = $318;
  42675. }
  42676. }
  42677. HEAP32[(21640)>>2] = -1;
  42678. return;
  42679. }
  42680. function _realloc($0,$1) {
  42681. $0 = $0|0;
  42682. $1 = $1|0;
  42683. 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;
  42684. var $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  42685. sp = STACKTOP;
  42686. $2 = ($0|0)==(0|0);
  42687. if ($2) {
  42688. $3 = (_malloc($1)|0);
  42689. $$1 = $3;
  42690. return ($$1|0);
  42691. }
  42692. $4 = ($1>>>0)>(4294967231);
  42693. if ($4) {
  42694. $5 = (___errno_location()|0);
  42695. HEAP32[$5>>2] = 12;
  42696. $$1 = 0;
  42697. return ($$1|0);
  42698. }
  42699. $6 = ($1>>>0)<(11);
  42700. $7 = (($1) + 11)|0;
  42701. $8 = $7 & -8;
  42702. $9 = $6 ? 16 : $8;
  42703. $10 = ((($0)) + -8|0);
  42704. $11 = (_try_realloc_chunk($10,$9)|0);
  42705. $12 = ($11|0)==(0|0);
  42706. if (!($12)) {
  42707. $13 = ((($11)) + 8|0);
  42708. $$1 = $13;
  42709. return ($$1|0);
  42710. }
  42711. $14 = (_malloc($1)|0);
  42712. $15 = ($14|0)==(0|0);
  42713. if ($15) {
  42714. $$1 = 0;
  42715. return ($$1|0);
  42716. }
  42717. $16 = ((($0)) + -4|0);
  42718. $17 = HEAP32[$16>>2]|0;
  42719. $18 = $17 & -8;
  42720. $19 = $17 & 3;
  42721. $20 = ($19|0)==(0);
  42722. $21 = $20 ? 8 : 4;
  42723. $22 = (($18) - ($21))|0;
  42724. $23 = ($22>>>0)<($1>>>0);
  42725. $24 = $23 ? $22 : $1;
  42726. _memcpy(($14|0),($0|0),($24|0))|0;
  42727. _free($0);
  42728. $$1 = $14;
  42729. return ($$1|0);
  42730. }
  42731. function _try_realloc_chunk($0,$1) {
  42732. $0 = $0|0;
  42733. $1 = $1|0;
  42734. 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;
  42735. 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;
  42736. 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;
  42737. 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;
  42738. 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;
  42739. 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;
  42740. 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;
  42741. 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;
  42742. 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;
  42743. var $cond = 0, $not$ = 0, $notlhs = 0, $notrhs = 0, $or$cond$not = 0, $or$cond3 = 0, $storemerge = 0, $storemerge1 = 0, label = 0, sp = 0;
  42744. sp = STACKTOP;
  42745. $2 = ((($0)) + 4|0);
  42746. $3 = HEAP32[$2>>2]|0;
  42747. $4 = $3 & -8;
  42748. $5 = (($0) + ($4)|0);
  42749. $6 = HEAP32[(21624)>>2]|0;
  42750. $7 = $3 & 3;
  42751. $notlhs = ($0>>>0)>=($6>>>0);
  42752. $notrhs = ($7|0)!=(1);
  42753. $or$cond$not = $notrhs & $notlhs;
  42754. $8 = ($0>>>0)<($5>>>0);
  42755. $or$cond3 = $or$cond$not & $8;
  42756. if (!($or$cond3)) {
  42757. _abort();
  42758. // unreachable;
  42759. }
  42760. $9 = ((($5)) + 4|0);
  42761. $10 = HEAP32[$9>>2]|0;
  42762. $11 = $10 & 1;
  42763. $12 = ($11|0)==(0);
  42764. if ($12) {
  42765. _abort();
  42766. // unreachable;
  42767. }
  42768. $13 = ($7|0)==(0);
  42769. if ($13) {
  42770. $14 = ($1>>>0)<(256);
  42771. if ($14) {
  42772. $$2 = 0;
  42773. return ($$2|0);
  42774. }
  42775. $15 = (($1) + 4)|0;
  42776. $16 = ($4>>>0)<($15>>>0);
  42777. if (!($16)) {
  42778. $17 = (($4) - ($1))|0;
  42779. $18 = HEAP32[(22088)>>2]|0;
  42780. $19 = $18 << 1;
  42781. $20 = ($17>>>0)>($19>>>0);
  42782. if (!($20)) {
  42783. $$2 = $0;
  42784. return ($$2|0);
  42785. }
  42786. }
  42787. $$2 = 0;
  42788. return ($$2|0);
  42789. }
  42790. $21 = ($4>>>0)<($1>>>0);
  42791. if (!($21)) {
  42792. $22 = (($4) - ($1))|0;
  42793. $23 = ($22>>>0)>(15);
  42794. if (!($23)) {
  42795. $$2 = $0;
  42796. return ($$2|0);
  42797. }
  42798. $24 = (($0) + ($1)|0);
  42799. $25 = $3 & 1;
  42800. $26 = $25 | $1;
  42801. $27 = $26 | 2;
  42802. HEAP32[$2>>2] = $27;
  42803. $28 = ((($24)) + 4|0);
  42804. $29 = $22 | 3;
  42805. HEAP32[$28>>2] = $29;
  42806. $30 = (($24) + ($22)|0);
  42807. $31 = ((($30)) + 4|0);
  42808. $32 = HEAP32[$31>>2]|0;
  42809. $33 = $32 | 1;
  42810. HEAP32[$31>>2] = $33;
  42811. _dispose_chunk($24,$22);
  42812. $$2 = $0;
  42813. return ($$2|0);
  42814. }
  42815. $34 = HEAP32[(21632)>>2]|0;
  42816. $35 = ($5|0)==($34|0);
  42817. if ($35) {
  42818. $36 = HEAP32[(21620)>>2]|0;
  42819. $37 = (($36) + ($4))|0;
  42820. $38 = ($37>>>0)>($1>>>0);
  42821. $39 = (($37) - ($1))|0;
  42822. $40 = (($0) + ($1)|0);
  42823. if (!($38)) {
  42824. $$2 = 0;
  42825. return ($$2|0);
  42826. }
  42827. $41 = $39 | 1;
  42828. $42 = ((($40)) + 4|0);
  42829. $43 = $3 & 1;
  42830. $44 = $43 | $1;
  42831. $45 = $44 | 2;
  42832. HEAP32[$2>>2] = $45;
  42833. HEAP32[$42>>2] = $41;
  42834. HEAP32[(21632)>>2] = $40;
  42835. HEAP32[(21620)>>2] = $39;
  42836. $$2 = $0;
  42837. return ($$2|0);
  42838. }
  42839. $46 = HEAP32[(21628)>>2]|0;
  42840. $47 = ($5|0)==($46|0);
  42841. if ($47) {
  42842. $48 = HEAP32[(21616)>>2]|0;
  42843. $49 = (($48) + ($4))|0;
  42844. $50 = ($49>>>0)<($1>>>0);
  42845. if ($50) {
  42846. $$2 = 0;
  42847. return ($$2|0);
  42848. }
  42849. $51 = (($49) - ($1))|0;
  42850. $52 = ($51>>>0)>(15);
  42851. $53 = $3 & 1;
  42852. if ($52) {
  42853. $54 = (($0) + ($1)|0);
  42854. $55 = (($54) + ($51)|0);
  42855. $56 = $53 | $1;
  42856. $57 = $56 | 2;
  42857. HEAP32[$2>>2] = $57;
  42858. $58 = ((($54)) + 4|0);
  42859. $59 = $51 | 1;
  42860. HEAP32[$58>>2] = $59;
  42861. HEAP32[$55>>2] = $51;
  42862. $60 = ((($55)) + 4|0);
  42863. $61 = HEAP32[$60>>2]|0;
  42864. $62 = $61 & -2;
  42865. HEAP32[$60>>2] = $62;
  42866. $storemerge = $54;$storemerge1 = $51;
  42867. } else {
  42868. $63 = $53 | $49;
  42869. $64 = $63 | 2;
  42870. HEAP32[$2>>2] = $64;
  42871. $65 = (($0) + ($49)|0);
  42872. $66 = ((($65)) + 4|0);
  42873. $67 = HEAP32[$66>>2]|0;
  42874. $68 = $67 | 1;
  42875. HEAP32[$66>>2] = $68;
  42876. $storemerge = 0;$storemerge1 = 0;
  42877. }
  42878. HEAP32[(21616)>>2] = $storemerge1;
  42879. HEAP32[(21628)>>2] = $storemerge;
  42880. $$2 = $0;
  42881. return ($$2|0);
  42882. }
  42883. $69 = $10 & 2;
  42884. $70 = ($69|0)==(0);
  42885. if (!($70)) {
  42886. $$2 = 0;
  42887. return ($$2|0);
  42888. }
  42889. $71 = $10 & -8;
  42890. $72 = (($71) + ($4))|0;
  42891. $73 = ($72>>>0)<($1>>>0);
  42892. if ($73) {
  42893. $$2 = 0;
  42894. return ($$2|0);
  42895. }
  42896. $74 = (($72) - ($1))|0;
  42897. $75 = $10 >>> 3;
  42898. $76 = ($10>>>0)<(256);
  42899. L49: do {
  42900. if ($76) {
  42901. $77 = ((($5)) + 8|0);
  42902. $78 = HEAP32[$77>>2]|0;
  42903. $79 = ((($5)) + 12|0);
  42904. $80 = HEAP32[$79>>2]|0;
  42905. $81 = $75 << 1;
  42906. $82 = (21648 + ($81<<2)|0);
  42907. $83 = ($78|0)==($82|0);
  42908. if (!($83)) {
  42909. $84 = ($78>>>0)<($6>>>0);
  42910. if ($84) {
  42911. _abort();
  42912. // unreachable;
  42913. }
  42914. $85 = ((($78)) + 12|0);
  42915. $86 = HEAP32[$85>>2]|0;
  42916. $87 = ($86|0)==($5|0);
  42917. if (!($87)) {
  42918. _abort();
  42919. // unreachable;
  42920. }
  42921. }
  42922. $88 = ($80|0)==($78|0);
  42923. if ($88) {
  42924. $89 = 1 << $75;
  42925. $90 = $89 ^ -1;
  42926. $91 = HEAP32[5402]|0;
  42927. $92 = $91 & $90;
  42928. HEAP32[5402] = $92;
  42929. break;
  42930. }
  42931. $93 = ($80|0)==($82|0);
  42932. if ($93) {
  42933. $$pre = ((($80)) + 8|0);
  42934. $$pre$phiZ2D = $$pre;
  42935. } else {
  42936. $94 = ($80>>>0)<($6>>>0);
  42937. if ($94) {
  42938. _abort();
  42939. // unreachable;
  42940. }
  42941. $95 = ((($80)) + 8|0);
  42942. $96 = HEAP32[$95>>2]|0;
  42943. $97 = ($96|0)==($5|0);
  42944. if ($97) {
  42945. $$pre$phiZ2D = $95;
  42946. } else {
  42947. _abort();
  42948. // unreachable;
  42949. }
  42950. }
  42951. $98 = ((($78)) + 12|0);
  42952. HEAP32[$98>>2] = $80;
  42953. HEAP32[$$pre$phiZ2D>>2] = $78;
  42954. } else {
  42955. $99 = ((($5)) + 24|0);
  42956. $100 = HEAP32[$99>>2]|0;
  42957. $101 = ((($5)) + 12|0);
  42958. $102 = HEAP32[$101>>2]|0;
  42959. $103 = ($102|0)==($5|0);
  42960. do {
  42961. if ($103) {
  42962. $113 = ((($5)) + 16|0);
  42963. $114 = ((($113)) + 4|0);
  42964. $115 = HEAP32[$114>>2]|0;
  42965. $116 = ($115|0)==(0|0);
  42966. if ($116) {
  42967. $117 = HEAP32[$113>>2]|0;
  42968. $118 = ($117|0)==(0|0);
  42969. if ($118) {
  42970. $$3 = 0;
  42971. break;
  42972. } else {
  42973. $$1272 = $117;$$1275 = $113;
  42974. }
  42975. } else {
  42976. $$1272 = $115;$$1275 = $114;
  42977. }
  42978. while(1) {
  42979. $119 = ((($$1272)) + 20|0);
  42980. $120 = HEAP32[$119>>2]|0;
  42981. $121 = ($120|0)==(0|0);
  42982. if (!($121)) {
  42983. $$1272 = $120;$$1275 = $119;
  42984. continue;
  42985. }
  42986. $122 = ((($$1272)) + 16|0);
  42987. $123 = HEAP32[$122>>2]|0;
  42988. $124 = ($123|0)==(0|0);
  42989. if ($124) {
  42990. break;
  42991. } else {
  42992. $$1272 = $123;$$1275 = $122;
  42993. }
  42994. }
  42995. $125 = ($$1275>>>0)<($6>>>0);
  42996. if ($125) {
  42997. _abort();
  42998. // unreachable;
  42999. } else {
  43000. HEAP32[$$1275>>2] = 0;
  43001. $$3 = $$1272;
  43002. break;
  43003. }
  43004. } else {
  43005. $104 = ((($5)) + 8|0);
  43006. $105 = HEAP32[$104>>2]|0;
  43007. $106 = ($105>>>0)<($6>>>0);
  43008. if ($106) {
  43009. _abort();
  43010. // unreachable;
  43011. }
  43012. $107 = ((($105)) + 12|0);
  43013. $108 = HEAP32[$107>>2]|0;
  43014. $109 = ($108|0)==($5|0);
  43015. if (!($109)) {
  43016. _abort();
  43017. // unreachable;
  43018. }
  43019. $110 = ((($102)) + 8|0);
  43020. $111 = HEAP32[$110>>2]|0;
  43021. $112 = ($111|0)==($5|0);
  43022. if ($112) {
  43023. HEAP32[$107>>2] = $102;
  43024. HEAP32[$110>>2] = $105;
  43025. $$3 = $102;
  43026. break;
  43027. } else {
  43028. _abort();
  43029. // unreachable;
  43030. }
  43031. }
  43032. } while(0);
  43033. $126 = ($100|0)==(0|0);
  43034. if (!($126)) {
  43035. $127 = ((($5)) + 28|0);
  43036. $128 = HEAP32[$127>>2]|0;
  43037. $129 = (21912 + ($128<<2)|0);
  43038. $130 = HEAP32[$129>>2]|0;
  43039. $131 = ($5|0)==($130|0);
  43040. do {
  43041. if ($131) {
  43042. HEAP32[$129>>2] = $$3;
  43043. $cond = ($$3|0)==(0|0);
  43044. if ($cond) {
  43045. $132 = 1 << $128;
  43046. $133 = $132 ^ -1;
  43047. $134 = HEAP32[(21612)>>2]|0;
  43048. $135 = $134 & $133;
  43049. HEAP32[(21612)>>2] = $135;
  43050. break L49;
  43051. }
  43052. } else {
  43053. $136 = HEAP32[(21624)>>2]|0;
  43054. $137 = ($100>>>0)<($136>>>0);
  43055. if ($137) {
  43056. _abort();
  43057. // unreachable;
  43058. } else {
  43059. $138 = ((($100)) + 16|0);
  43060. $139 = HEAP32[$138>>2]|0;
  43061. $not$ = ($139|0)!=($5|0);
  43062. $$sink1 = $not$&1;
  43063. $140 = (((($100)) + 16|0) + ($$sink1<<2)|0);
  43064. HEAP32[$140>>2] = $$3;
  43065. $141 = ($$3|0)==(0|0);
  43066. if ($141) {
  43067. break L49;
  43068. } else {
  43069. break;
  43070. }
  43071. }
  43072. }
  43073. } while(0);
  43074. $142 = HEAP32[(21624)>>2]|0;
  43075. $143 = ($$3>>>0)<($142>>>0);
  43076. if ($143) {
  43077. _abort();
  43078. // unreachable;
  43079. }
  43080. $144 = ((($$3)) + 24|0);
  43081. HEAP32[$144>>2] = $100;
  43082. $145 = ((($5)) + 16|0);
  43083. $146 = HEAP32[$145>>2]|0;
  43084. $147 = ($146|0)==(0|0);
  43085. do {
  43086. if (!($147)) {
  43087. $148 = ($146>>>0)<($142>>>0);
  43088. if ($148) {
  43089. _abort();
  43090. // unreachable;
  43091. } else {
  43092. $149 = ((($$3)) + 16|0);
  43093. HEAP32[$149>>2] = $146;
  43094. $150 = ((($146)) + 24|0);
  43095. HEAP32[$150>>2] = $$3;
  43096. break;
  43097. }
  43098. }
  43099. } while(0);
  43100. $151 = ((($145)) + 4|0);
  43101. $152 = HEAP32[$151>>2]|0;
  43102. $153 = ($152|0)==(0|0);
  43103. if (!($153)) {
  43104. $154 = HEAP32[(21624)>>2]|0;
  43105. $155 = ($152>>>0)<($154>>>0);
  43106. if ($155) {
  43107. _abort();
  43108. // unreachable;
  43109. } else {
  43110. $156 = ((($$3)) + 20|0);
  43111. HEAP32[$156>>2] = $152;
  43112. $157 = ((($152)) + 24|0);
  43113. HEAP32[$157>>2] = $$3;
  43114. break;
  43115. }
  43116. }
  43117. }
  43118. }
  43119. } while(0);
  43120. $158 = ($74>>>0)<(16);
  43121. $159 = $3 & 1;
  43122. if ($158) {
  43123. $160 = $72 | $159;
  43124. $161 = $160 | 2;
  43125. HEAP32[$2>>2] = $161;
  43126. $162 = (($0) + ($72)|0);
  43127. $163 = ((($162)) + 4|0);
  43128. $164 = HEAP32[$163>>2]|0;
  43129. $165 = $164 | 1;
  43130. HEAP32[$163>>2] = $165;
  43131. $$2 = $0;
  43132. return ($$2|0);
  43133. } else {
  43134. $166 = (($0) + ($1)|0);
  43135. $167 = $159 | $1;
  43136. $168 = $167 | 2;
  43137. HEAP32[$2>>2] = $168;
  43138. $169 = ((($166)) + 4|0);
  43139. $170 = $74 | 3;
  43140. HEAP32[$169>>2] = $170;
  43141. $171 = (($166) + ($74)|0);
  43142. $172 = ((($171)) + 4|0);
  43143. $173 = HEAP32[$172>>2]|0;
  43144. $174 = $173 | 1;
  43145. HEAP32[$172>>2] = $174;
  43146. _dispose_chunk($166,$74);
  43147. $$2 = $0;
  43148. return ($$2|0);
  43149. }
  43150. return (0)|0;
  43151. }
  43152. function _dispose_chunk($0,$1) {
  43153. $0 = $0|0;
  43154. $1 = $1|0;
  43155. 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;
  43156. 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;
  43157. 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;
  43158. 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;
  43159. 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;
  43160. 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;
  43161. 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;
  43162. 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;
  43163. 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;
  43164. 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;
  43165. 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;
  43166. 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;
  43167. 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;
  43168. 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;
  43169. 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;
  43170. 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;
  43171. var $97 = 0, $98 = 0, $99 = 0, $cond = 0, $cond17 = 0, $not$ = 0, $not$1 = 0, $not$19 = 0, label = 0, sp = 0;
  43172. sp = STACKTOP;
  43173. $2 = (($0) + ($1)|0);
  43174. $3 = ((($0)) + 4|0);
  43175. $4 = HEAP32[$3>>2]|0;
  43176. $5 = $4 & 1;
  43177. $6 = ($5|0)==(0);
  43178. L1: do {
  43179. if ($6) {
  43180. $7 = HEAP32[$0>>2]|0;
  43181. $8 = $4 & 3;
  43182. $9 = ($8|0)==(0);
  43183. if ($9) {
  43184. return;
  43185. }
  43186. $10 = (0 - ($7))|0;
  43187. $11 = (($0) + ($10)|0);
  43188. $12 = (($7) + ($1))|0;
  43189. $13 = HEAP32[(21624)>>2]|0;
  43190. $14 = ($11>>>0)<($13>>>0);
  43191. if ($14) {
  43192. _abort();
  43193. // unreachable;
  43194. }
  43195. $15 = HEAP32[(21628)>>2]|0;
  43196. $16 = ($11|0)==($15|0);
  43197. if ($16) {
  43198. $100 = ((($2)) + 4|0);
  43199. $101 = HEAP32[$100>>2]|0;
  43200. $102 = $101 & 3;
  43201. $103 = ($102|0)==(3);
  43202. if (!($103)) {
  43203. $$1 = $11;$$1418 = $12;
  43204. break;
  43205. }
  43206. $104 = (($11) + ($12)|0);
  43207. $105 = ((($11)) + 4|0);
  43208. $106 = $12 | 1;
  43209. $107 = $101 & -2;
  43210. HEAP32[(21616)>>2] = $12;
  43211. HEAP32[$100>>2] = $107;
  43212. HEAP32[$105>>2] = $106;
  43213. HEAP32[$104>>2] = $12;
  43214. return;
  43215. }
  43216. $17 = $7 >>> 3;
  43217. $18 = ($7>>>0)<(256);
  43218. if ($18) {
  43219. $19 = ((($11)) + 8|0);
  43220. $20 = HEAP32[$19>>2]|0;
  43221. $21 = ((($11)) + 12|0);
  43222. $22 = HEAP32[$21>>2]|0;
  43223. $23 = $17 << 1;
  43224. $24 = (21648 + ($23<<2)|0);
  43225. $25 = ($20|0)==($24|0);
  43226. if (!($25)) {
  43227. $26 = ($20>>>0)<($13>>>0);
  43228. if ($26) {
  43229. _abort();
  43230. // unreachable;
  43231. }
  43232. $27 = ((($20)) + 12|0);
  43233. $28 = HEAP32[$27>>2]|0;
  43234. $29 = ($28|0)==($11|0);
  43235. if (!($29)) {
  43236. _abort();
  43237. // unreachable;
  43238. }
  43239. }
  43240. $30 = ($22|0)==($20|0);
  43241. if ($30) {
  43242. $31 = 1 << $17;
  43243. $32 = $31 ^ -1;
  43244. $33 = HEAP32[5402]|0;
  43245. $34 = $33 & $32;
  43246. HEAP32[5402] = $34;
  43247. $$1 = $11;$$1418 = $12;
  43248. break;
  43249. }
  43250. $35 = ($22|0)==($24|0);
  43251. if ($35) {
  43252. $$pre25 = ((($22)) + 8|0);
  43253. $$pre$phi26Z2D = $$pre25;
  43254. } else {
  43255. $36 = ($22>>>0)<($13>>>0);
  43256. if ($36) {
  43257. _abort();
  43258. // unreachable;
  43259. }
  43260. $37 = ((($22)) + 8|0);
  43261. $38 = HEAP32[$37>>2]|0;
  43262. $39 = ($38|0)==($11|0);
  43263. if ($39) {
  43264. $$pre$phi26Z2D = $37;
  43265. } else {
  43266. _abort();
  43267. // unreachable;
  43268. }
  43269. }
  43270. $40 = ((($20)) + 12|0);
  43271. HEAP32[$40>>2] = $22;
  43272. HEAP32[$$pre$phi26Z2D>>2] = $20;
  43273. $$1 = $11;$$1418 = $12;
  43274. break;
  43275. }
  43276. $41 = ((($11)) + 24|0);
  43277. $42 = HEAP32[$41>>2]|0;
  43278. $43 = ((($11)) + 12|0);
  43279. $44 = HEAP32[$43>>2]|0;
  43280. $45 = ($44|0)==($11|0);
  43281. do {
  43282. if ($45) {
  43283. $55 = ((($11)) + 16|0);
  43284. $56 = ((($55)) + 4|0);
  43285. $57 = HEAP32[$56>>2]|0;
  43286. $58 = ($57|0)==(0|0);
  43287. if ($58) {
  43288. $59 = HEAP32[$55>>2]|0;
  43289. $60 = ($59|0)==(0|0);
  43290. if ($60) {
  43291. $$3 = 0;
  43292. break;
  43293. } else {
  43294. $$1426 = $59;$$1429 = $55;
  43295. }
  43296. } else {
  43297. $$1426 = $57;$$1429 = $56;
  43298. }
  43299. while(1) {
  43300. $61 = ((($$1426)) + 20|0);
  43301. $62 = HEAP32[$61>>2]|0;
  43302. $63 = ($62|0)==(0|0);
  43303. if (!($63)) {
  43304. $$1426 = $62;$$1429 = $61;
  43305. continue;
  43306. }
  43307. $64 = ((($$1426)) + 16|0);
  43308. $65 = HEAP32[$64>>2]|0;
  43309. $66 = ($65|0)==(0|0);
  43310. if ($66) {
  43311. break;
  43312. } else {
  43313. $$1426 = $65;$$1429 = $64;
  43314. }
  43315. }
  43316. $67 = ($$1429>>>0)<($13>>>0);
  43317. if ($67) {
  43318. _abort();
  43319. // unreachable;
  43320. } else {
  43321. HEAP32[$$1429>>2] = 0;
  43322. $$3 = $$1426;
  43323. break;
  43324. }
  43325. } else {
  43326. $46 = ((($11)) + 8|0);
  43327. $47 = HEAP32[$46>>2]|0;
  43328. $48 = ($47>>>0)<($13>>>0);
  43329. if ($48) {
  43330. _abort();
  43331. // unreachable;
  43332. }
  43333. $49 = ((($47)) + 12|0);
  43334. $50 = HEAP32[$49>>2]|0;
  43335. $51 = ($50|0)==($11|0);
  43336. if (!($51)) {
  43337. _abort();
  43338. // unreachable;
  43339. }
  43340. $52 = ((($44)) + 8|0);
  43341. $53 = HEAP32[$52>>2]|0;
  43342. $54 = ($53|0)==($11|0);
  43343. if ($54) {
  43344. HEAP32[$49>>2] = $44;
  43345. HEAP32[$52>>2] = $47;
  43346. $$3 = $44;
  43347. break;
  43348. } else {
  43349. _abort();
  43350. // unreachable;
  43351. }
  43352. }
  43353. } while(0);
  43354. $68 = ($42|0)==(0|0);
  43355. if ($68) {
  43356. $$1 = $11;$$1418 = $12;
  43357. } else {
  43358. $69 = ((($11)) + 28|0);
  43359. $70 = HEAP32[$69>>2]|0;
  43360. $71 = (21912 + ($70<<2)|0);
  43361. $72 = HEAP32[$71>>2]|0;
  43362. $73 = ($11|0)==($72|0);
  43363. do {
  43364. if ($73) {
  43365. HEAP32[$71>>2] = $$3;
  43366. $cond = ($$3|0)==(0|0);
  43367. if ($cond) {
  43368. $74 = 1 << $70;
  43369. $75 = $74 ^ -1;
  43370. $76 = HEAP32[(21612)>>2]|0;
  43371. $77 = $76 & $75;
  43372. HEAP32[(21612)>>2] = $77;
  43373. $$1 = $11;$$1418 = $12;
  43374. break L1;
  43375. }
  43376. } else {
  43377. $78 = HEAP32[(21624)>>2]|0;
  43378. $79 = ($42>>>0)<($78>>>0);
  43379. if ($79) {
  43380. _abort();
  43381. // unreachable;
  43382. } else {
  43383. $80 = ((($42)) + 16|0);
  43384. $81 = HEAP32[$80>>2]|0;
  43385. $not$1 = ($81|0)!=($11|0);
  43386. $$sink2 = $not$1&1;
  43387. $82 = (((($42)) + 16|0) + ($$sink2<<2)|0);
  43388. HEAP32[$82>>2] = $$3;
  43389. $83 = ($$3|0)==(0|0);
  43390. if ($83) {
  43391. $$1 = $11;$$1418 = $12;
  43392. break L1;
  43393. } else {
  43394. break;
  43395. }
  43396. }
  43397. }
  43398. } while(0);
  43399. $84 = HEAP32[(21624)>>2]|0;
  43400. $85 = ($$3>>>0)<($84>>>0);
  43401. if ($85) {
  43402. _abort();
  43403. // unreachable;
  43404. }
  43405. $86 = ((($$3)) + 24|0);
  43406. HEAP32[$86>>2] = $42;
  43407. $87 = ((($11)) + 16|0);
  43408. $88 = HEAP32[$87>>2]|0;
  43409. $89 = ($88|0)==(0|0);
  43410. do {
  43411. if (!($89)) {
  43412. $90 = ($88>>>0)<($84>>>0);
  43413. if ($90) {
  43414. _abort();
  43415. // unreachable;
  43416. } else {
  43417. $91 = ((($$3)) + 16|0);
  43418. HEAP32[$91>>2] = $88;
  43419. $92 = ((($88)) + 24|0);
  43420. HEAP32[$92>>2] = $$3;
  43421. break;
  43422. }
  43423. }
  43424. } while(0);
  43425. $93 = ((($87)) + 4|0);
  43426. $94 = HEAP32[$93>>2]|0;
  43427. $95 = ($94|0)==(0|0);
  43428. if ($95) {
  43429. $$1 = $11;$$1418 = $12;
  43430. } else {
  43431. $96 = HEAP32[(21624)>>2]|0;
  43432. $97 = ($94>>>0)<($96>>>0);
  43433. if ($97) {
  43434. _abort();
  43435. // unreachable;
  43436. } else {
  43437. $98 = ((($$3)) + 20|0);
  43438. HEAP32[$98>>2] = $94;
  43439. $99 = ((($94)) + 24|0);
  43440. HEAP32[$99>>2] = $$3;
  43441. $$1 = $11;$$1418 = $12;
  43442. break;
  43443. }
  43444. }
  43445. }
  43446. } else {
  43447. $$1 = $0;$$1418 = $1;
  43448. }
  43449. } while(0);
  43450. $108 = HEAP32[(21624)>>2]|0;
  43451. $109 = ($2>>>0)<($108>>>0);
  43452. if ($109) {
  43453. _abort();
  43454. // unreachable;
  43455. }
  43456. $110 = ((($2)) + 4|0);
  43457. $111 = HEAP32[$110>>2]|0;
  43458. $112 = $111 & 2;
  43459. $113 = ($112|0)==(0);
  43460. if ($113) {
  43461. $114 = HEAP32[(21632)>>2]|0;
  43462. $115 = ($2|0)==($114|0);
  43463. $116 = HEAP32[(21628)>>2]|0;
  43464. if ($115) {
  43465. $117 = HEAP32[(21620)>>2]|0;
  43466. $118 = (($117) + ($$1418))|0;
  43467. HEAP32[(21620)>>2] = $118;
  43468. HEAP32[(21632)>>2] = $$1;
  43469. $119 = $118 | 1;
  43470. $120 = ((($$1)) + 4|0);
  43471. HEAP32[$120>>2] = $119;
  43472. $121 = ($$1|0)==($116|0);
  43473. if (!($121)) {
  43474. return;
  43475. }
  43476. HEAP32[(21628)>>2] = 0;
  43477. HEAP32[(21616)>>2] = 0;
  43478. return;
  43479. }
  43480. $122 = ($2|0)==($116|0);
  43481. if ($122) {
  43482. $123 = HEAP32[(21616)>>2]|0;
  43483. $124 = (($123) + ($$1418))|0;
  43484. HEAP32[(21616)>>2] = $124;
  43485. HEAP32[(21628)>>2] = $$1;
  43486. $125 = $124 | 1;
  43487. $126 = ((($$1)) + 4|0);
  43488. HEAP32[$126>>2] = $125;
  43489. $127 = (($$1) + ($124)|0);
  43490. HEAP32[$127>>2] = $124;
  43491. return;
  43492. }
  43493. $128 = $111 & -8;
  43494. $129 = (($128) + ($$1418))|0;
  43495. $130 = $111 >>> 3;
  43496. $131 = ($111>>>0)<(256);
  43497. L96: do {
  43498. if ($131) {
  43499. $132 = ((($2)) + 8|0);
  43500. $133 = HEAP32[$132>>2]|0;
  43501. $134 = ((($2)) + 12|0);
  43502. $135 = HEAP32[$134>>2]|0;
  43503. $136 = $130 << 1;
  43504. $137 = (21648 + ($136<<2)|0);
  43505. $138 = ($133|0)==($137|0);
  43506. if (!($138)) {
  43507. $139 = ($133>>>0)<($108>>>0);
  43508. if ($139) {
  43509. _abort();
  43510. // unreachable;
  43511. }
  43512. $140 = ((($133)) + 12|0);
  43513. $141 = HEAP32[$140>>2]|0;
  43514. $142 = ($141|0)==($2|0);
  43515. if (!($142)) {
  43516. _abort();
  43517. // unreachable;
  43518. }
  43519. }
  43520. $143 = ($135|0)==($133|0);
  43521. if ($143) {
  43522. $144 = 1 << $130;
  43523. $145 = $144 ^ -1;
  43524. $146 = HEAP32[5402]|0;
  43525. $147 = $146 & $145;
  43526. HEAP32[5402] = $147;
  43527. break;
  43528. }
  43529. $148 = ($135|0)==($137|0);
  43530. if ($148) {
  43531. $$pre23 = ((($135)) + 8|0);
  43532. $$pre$phi24Z2D = $$pre23;
  43533. } else {
  43534. $149 = ($135>>>0)<($108>>>0);
  43535. if ($149) {
  43536. _abort();
  43537. // unreachable;
  43538. }
  43539. $150 = ((($135)) + 8|0);
  43540. $151 = HEAP32[$150>>2]|0;
  43541. $152 = ($151|0)==($2|0);
  43542. if ($152) {
  43543. $$pre$phi24Z2D = $150;
  43544. } else {
  43545. _abort();
  43546. // unreachable;
  43547. }
  43548. }
  43549. $153 = ((($133)) + 12|0);
  43550. HEAP32[$153>>2] = $135;
  43551. HEAP32[$$pre$phi24Z2D>>2] = $133;
  43552. } else {
  43553. $154 = ((($2)) + 24|0);
  43554. $155 = HEAP32[$154>>2]|0;
  43555. $156 = ((($2)) + 12|0);
  43556. $157 = HEAP32[$156>>2]|0;
  43557. $158 = ($157|0)==($2|0);
  43558. do {
  43559. if ($158) {
  43560. $168 = ((($2)) + 16|0);
  43561. $169 = ((($168)) + 4|0);
  43562. $170 = HEAP32[$169>>2]|0;
  43563. $171 = ($170|0)==(0|0);
  43564. if ($171) {
  43565. $172 = HEAP32[$168>>2]|0;
  43566. $173 = ($172|0)==(0|0);
  43567. if ($173) {
  43568. $$3435 = 0;
  43569. break;
  43570. } else {
  43571. $$1433 = $172;$$1437 = $168;
  43572. }
  43573. } else {
  43574. $$1433 = $170;$$1437 = $169;
  43575. }
  43576. while(1) {
  43577. $174 = ((($$1433)) + 20|0);
  43578. $175 = HEAP32[$174>>2]|0;
  43579. $176 = ($175|0)==(0|0);
  43580. if (!($176)) {
  43581. $$1433 = $175;$$1437 = $174;
  43582. continue;
  43583. }
  43584. $177 = ((($$1433)) + 16|0);
  43585. $178 = HEAP32[$177>>2]|0;
  43586. $179 = ($178|0)==(0|0);
  43587. if ($179) {
  43588. break;
  43589. } else {
  43590. $$1433 = $178;$$1437 = $177;
  43591. }
  43592. }
  43593. $180 = ($$1437>>>0)<($108>>>0);
  43594. if ($180) {
  43595. _abort();
  43596. // unreachable;
  43597. } else {
  43598. HEAP32[$$1437>>2] = 0;
  43599. $$3435 = $$1433;
  43600. break;
  43601. }
  43602. } else {
  43603. $159 = ((($2)) + 8|0);
  43604. $160 = HEAP32[$159>>2]|0;
  43605. $161 = ($160>>>0)<($108>>>0);
  43606. if ($161) {
  43607. _abort();
  43608. // unreachable;
  43609. }
  43610. $162 = ((($160)) + 12|0);
  43611. $163 = HEAP32[$162>>2]|0;
  43612. $164 = ($163|0)==($2|0);
  43613. if (!($164)) {
  43614. _abort();
  43615. // unreachable;
  43616. }
  43617. $165 = ((($157)) + 8|0);
  43618. $166 = HEAP32[$165>>2]|0;
  43619. $167 = ($166|0)==($2|0);
  43620. if ($167) {
  43621. HEAP32[$162>>2] = $157;
  43622. HEAP32[$165>>2] = $160;
  43623. $$3435 = $157;
  43624. break;
  43625. } else {
  43626. _abort();
  43627. // unreachable;
  43628. }
  43629. }
  43630. } while(0);
  43631. $181 = ($155|0)==(0|0);
  43632. if (!($181)) {
  43633. $182 = ((($2)) + 28|0);
  43634. $183 = HEAP32[$182>>2]|0;
  43635. $184 = (21912 + ($183<<2)|0);
  43636. $185 = HEAP32[$184>>2]|0;
  43637. $186 = ($2|0)==($185|0);
  43638. do {
  43639. if ($186) {
  43640. HEAP32[$184>>2] = $$3435;
  43641. $cond17 = ($$3435|0)==(0|0);
  43642. if ($cond17) {
  43643. $187 = 1 << $183;
  43644. $188 = $187 ^ -1;
  43645. $189 = HEAP32[(21612)>>2]|0;
  43646. $190 = $189 & $188;
  43647. HEAP32[(21612)>>2] = $190;
  43648. break L96;
  43649. }
  43650. } else {
  43651. $191 = HEAP32[(21624)>>2]|0;
  43652. $192 = ($155>>>0)<($191>>>0);
  43653. if ($192) {
  43654. _abort();
  43655. // unreachable;
  43656. } else {
  43657. $193 = ((($155)) + 16|0);
  43658. $194 = HEAP32[$193>>2]|0;
  43659. $not$ = ($194|0)!=($2|0);
  43660. $$sink4 = $not$&1;
  43661. $195 = (((($155)) + 16|0) + ($$sink4<<2)|0);
  43662. HEAP32[$195>>2] = $$3435;
  43663. $196 = ($$3435|0)==(0|0);
  43664. if ($196) {
  43665. break L96;
  43666. } else {
  43667. break;
  43668. }
  43669. }
  43670. }
  43671. } while(0);
  43672. $197 = HEAP32[(21624)>>2]|0;
  43673. $198 = ($$3435>>>0)<($197>>>0);
  43674. if ($198) {
  43675. _abort();
  43676. // unreachable;
  43677. }
  43678. $199 = ((($$3435)) + 24|0);
  43679. HEAP32[$199>>2] = $155;
  43680. $200 = ((($2)) + 16|0);
  43681. $201 = HEAP32[$200>>2]|0;
  43682. $202 = ($201|0)==(0|0);
  43683. do {
  43684. if (!($202)) {
  43685. $203 = ($201>>>0)<($197>>>0);
  43686. if ($203) {
  43687. _abort();
  43688. // unreachable;
  43689. } else {
  43690. $204 = ((($$3435)) + 16|0);
  43691. HEAP32[$204>>2] = $201;
  43692. $205 = ((($201)) + 24|0);
  43693. HEAP32[$205>>2] = $$3435;
  43694. break;
  43695. }
  43696. }
  43697. } while(0);
  43698. $206 = ((($200)) + 4|0);
  43699. $207 = HEAP32[$206>>2]|0;
  43700. $208 = ($207|0)==(0|0);
  43701. if (!($208)) {
  43702. $209 = HEAP32[(21624)>>2]|0;
  43703. $210 = ($207>>>0)<($209>>>0);
  43704. if ($210) {
  43705. _abort();
  43706. // unreachable;
  43707. } else {
  43708. $211 = ((($$3435)) + 20|0);
  43709. HEAP32[$211>>2] = $207;
  43710. $212 = ((($207)) + 24|0);
  43711. HEAP32[$212>>2] = $$3435;
  43712. break;
  43713. }
  43714. }
  43715. }
  43716. }
  43717. } while(0);
  43718. $213 = $129 | 1;
  43719. $214 = ((($$1)) + 4|0);
  43720. HEAP32[$214>>2] = $213;
  43721. $215 = (($$1) + ($129)|0);
  43722. HEAP32[$215>>2] = $129;
  43723. $216 = HEAP32[(21628)>>2]|0;
  43724. $217 = ($$1|0)==($216|0);
  43725. if ($217) {
  43726. HEAP32[(21616)>>2] = $129;
  43727. return;
  43728. } else {
  43729. $$2 = $129;
  43730. }
  43731. } else {
  43732. $218 = $111 & -2;
  43733. HEAP32[$110>>2] = $218;
  43734. $219 = $$1418 | 1;
  43735. $220 = ((($$1)) + 4|0);
  43736. HEAP32[$220>>2] = $219;
  43737. $221 = (($$1) + ($$1418)|0);
  43738. HEAP32[$221>>2] = $$1418;
  43739. $$2 = $$1418;
  43740. }
  43741. $222 = $$2 >>> 3;
  43742. $223 = ($$2>>>0)<(256);
  43743. if ($223) {
  43744. $224 = $222 << 1;
  43745. $225 = (21648 + ($224<<2)|0);
  43746. $226 = HEAP32[5402]|0;
  43747. $227 = 1 << $222;
  43748. $228 = $226 & $227;
  43749. $229 = ($228|0)==(0);
  43750. if ($229) {
  43751. $230 = $226 | $227;
  43752. HEAP32[5402] = $230;
  43753. $$pre = ((($225)) + 8|0);
  43754. $$0438 = $225;$$pre$phiZ2D = $$pre;
  43755. } else {
  43756. $231 = ((($225)) + 8|0);
  43757. $232 = HEAP32[$231>>2]|0;
  43758. $233 = HEAP32[(21624)>>2]|0;
  43759. $234 = ($232>>>0)<($233>>>0);
  43760. if ($234) {
  43761. _abort();
  43762. // unreachable;
  43763. } else {
  43764. $$0438 = $232;$$pre$phiZ2D = $231;
  43765. }
  43766. }
  43767. HEAP32[$$pre$phiZ2D>>2] = $$1;
  43768. $235 = ((($$0438)) + 12|0);
  43769. HEAP32[$235>>2] = $$1;
  43770. $236 = ((($$1)) + 8|0);
  43771. HEAP32[$236>>2] = $$0438;
  43772. $237 = ((($$1)) + 12|0);
  43773. HEAP32[$237>>2] = $225;
  43774. return;
  43775. }
  43776. $238 = $$2 >>> 8;
  43777. $239 = ($238|0)==(0);
  43778. if ($239) {
  43779. $$0431 = 0;
  43780. } else {
  43781. $240 = ($$2>>>0)>(16777215);
  43782. if ($240) {
  43783. $$0431 = 31;
  43784. } else {
  43785. $241 = (($238) + 1048320)|0;
  43786. $242 = $241 >>> 16;
  43787. $243 = $242 & 8;
  43788. $244 = $238 << $243;
  43789. $245 = (($244) + 520192)|0;
  43790. $246 = $245 >>> 16;
  43791. $247 = $246 & 4;
  43792. $248 = $247 | $243;
  43793. $249 = $244 << $247;
  43794. $250 = (($249) + 245760)|0;
  43795. $251 = $250 >>> 16;
  43796. $252 = $251 & 2;
  43797. $253 = $248 | $252;
  43798. $254 = (14 - ($253))|0;
  43799. $255 = $249 << $252;
  43800. $256 = $255 >>> 15;
  43801. $257 = (($254) + ($256))|0;
  43802. $258 = $257 << 1;
  43803. $259 = (($257) + 7)|0;
  43804. $260 = $$2 >>> $259;
  43805. $261 = $260 & 1;
  43806. $262 = $261 | $258;
  43807. $$0431 = $262;
  43808. }
  43809. }
  43810. $263 = (21912 + ($$0431<<2)|0);
  43811. $264 = ((($$1)) + 28|0);
  43812. HEAP32[$264>>2] = $$0431;
  43813. $265 = ((($$1)) + 16|0);
  43814. $266 = ((($$1)) + 20|0);
  43815. HEAP32[$266>>2] = 0;
  43816. HEAP32[$265>>2] = 0;
  43817. $267 = HEAP32[(21612)>>2]|0;
  43818. $268 = 1 << $$0431;
  43819. $269 = $267 & $268;
  43820. $270 = ($269|0)==(0);
  43821. if ($270) {
  43822. $271 = $267 | $268;
  43823. HEAP32[(21612)>>2] = $271;
  43824. HEAP32[$263>>2] = $$1;
  43825. $272 = ((($$1)) + 24|0);
  43826. HEAP32[$272>>2] = $263;
  43827. $273 = ((($$1)) + 12|0);
  43828. HEAP32[$273>>2] = $$1;
  43829. $274 = ((($$1)) + 8|0);
  43830. HEAP32[$274>>2] = $$1;
  43831. return;
  43832. }
  43833. $275 = HEAP32[$263>>2]|0;
  43834. $276 = ($$0431|0)==(31);
  43835. $277 = $$0431 >>> 1;
  43836. $278 = (25 - ($277))|0;
  43837. $279 = $276 ? 0 : $278;
  43838. $280 = $$2 << $279;
  43839. $$0419 = $280;$$0420 = $275;
  43840. while(1) {
  43841. $281 = ((($$0420)) + 4|0);
  43842. $282 = HEAP32[$281>>2]|0;
  43843. $283 = $282 & -8;
  43844. $284 = ($283|0)==($$2|0);
  43845. if ($284) {
  43846. label = 121;
  43847. break;
  43848. }
  43849. $285 = $$0419 >>> 31;
  43850. $286 = (((($$0420)) + 16|0) + ($285<<2)|0);
  43851. $287 = $$0419 << 1;
  43852. $288 = HEAP32[$286>>2]|0;
  43853. $289 = ($288|0)==(0|0);
  43854. if ($289) {
  43855. label = 118;
  43856. break;
  43857. } else {
  43858. $$0419 = $287;$$0420 = $288;
  43859. }
  43860. }
  43861. if ((label|0) == 118) {
  43862. $290 = HEAP32[(21624)>>2]|0;
  43863. $291 = ($286>>>0)<($290>>>0);
  43864. if ($291) {
  43865. _abort();
  43866. // unreachable;
  43867. }
  43868. HEAP32[$286>>2] = $$1;
  43869. $292 = ((($$1)) + 24|0);
  43870. HEAP32[$292>>2] = $$0420;
  43871. $293 = ((($$1)) + 12|0);
  43872. HEAP32[$293>>2] = $$1;
  43873. $294 = ((($$1)) + 8|0);
  43874. HEAP32[$294>>2] = $$1;
  43875. return;
  43876. }
  43877. else if ((label|0) == 121) {
  43878. $295 = ((($$0420)) + 8|0);
  43879. $296 = HEAP32[$295>>2]|0;
  43880. $297 = HEAP32[(21624)>>2]|0;
  43881. $298 = ($296>>>0)>=($297>>>0);
  43882. $not$19 = ($$0420>>>0)>=($297>>>0);
  43883. $299 = $298 & $not$19;
  43884. if (!($299)) {
  43885. _abort();
  43886. // unreachable;
  43887. }
  43888. $300 = ((($296)) + 12|0);
  43889. HEAP32[$300>>2] = $$1;
  43890. HEAP32[$295>>2] = $$1;
  43891. $301 = ((($$1)) + 8|0);
  43892. HEAP32[$301>>2] = $296;
  43893. $302 = ((($$1)) + 12|0);
  43894. HEAP32[$302>>2] = $$0420;
  43895. $303 = ((($$1)) + 24|0);
  43896. HEAP32[$303>>2] = 0;
  43897. return;
  43898. }
  43899. }
  43900. function runPostSets() {
  43901. }
  43902. function _memset(ptr, value, num) {
  43903. ptr = ptr|0; value = value|0; num = num|0;
  43904. var end = 0, aligned_end = 0, block_aligned_end = 0, value4 = 0;
  43905. end = (ptr + num)|0;
  43906. value = value & 0xff;
  43907. if ((num|0) >= 67 /* 64 bytes for an unrolled loop + 3 bytes for unaligned head*/) {
  43908. while ((ptr&3) != 0) {
  43909. HEAP8[((ptr)>>0)]=value;
  43910. ptr = (ptr+1)|0;
  43911. }
  43912. aligned_end = (end & -4)|0;
  43913. block_aligned_end = (aligned_end - 64)|0;
  43914. value4 = value | (value << 8) | (value << 16) | (value << 24);
  43915. while((ptr|0) <= (block_aligned_end|0)) {
  43916. HEAP32[((ptr)>>2)]=value4;
  43917. HEAP32[(((ptr)+(4))>>2)]=value4;
  43918. HEAP32[(((ptr)+(8))>>2)]=value4;
  43919. HEAP32[(((ptr)+(12))>>2)]=value4;
  43920. HEAP32[(((ptr)+(16))>>2)]=value4;
  43921. HEAP32[(((ptr)+(20))>>2)]=value4;
  43922. HEAP32[(((ptr)+(24))>>2)]=value4;
  43923. HEAP32[(((ptr)+(28))>>2)]=value4;
  43924. HEAP32[(((ptr)+(32))>>2)]=value4;
  43925. HEAP32[(((ptr)+(36))>>2)]=value4;
  43926. HEAP32[(((ptr)+(40))>>2)]=value4;
  43927. HEAP32[(((ptr)+(44))>>2)]=value4;
  43928. HEAP32[(((ptr)+(48))>>2)]=value4;
  43929. HEAP32[(((ptr)+(52))>>2)]=value4;
  43930. HEAP32[(((ptr)+(56))>>2)]=value4;
  43931. HEAP32[(((ptr)+(60))>>2)]=value4;
  43932. ptr = (ptr + 64)|0;
  43933. }
  43934. while ((ptr|0) < (aligned_end|0) ) {
  43935. HEAP32[((ptr)>>2)]=value4;
  43936. ptr = (ptr+4)|0;
  43937. }
  43938. }
  43939. // The remaining bytes.
  43940. while ((ptr|0) < (end|0)) {
  43941. HEAP8[((ptr)>>0)]=value;
  43942. ptr = (ptr+1)|0;
  43943. }
  43944. return (end-num)|0;
  43945. }
  43946. function _i64Subtract(a, b, c, d) {
  43947. a = a|0; b = b|0; c = c|0; d = d|0;
  43948. var l = 0, h = 0;
  43949. l = (a - c)>>>0;
  43950. h = (b - d)>>>0;
  43951. h = (b - d - (((c>>>0) > (a>>>0))|0))>>>0; // Borrow one from high word to low word on underflow.
  43952. return ((tempRet0 = h,l|0)|0);
  43953. }
  43954. function _i64Add(a, b, c, d) {
  43955. /*
  43956. x = a + b*2^32
  43957. y = c + d*2^32
  43958. result = l + h*2^32
  43959. */
  43960. a = a|0; b = b|0; c = c|0; d = d|0;
  43961. var l = 0, h = 0;
  43962. l = (a + c)>>>0;
  43963. h = (b + d + (((l>>>0) < (a>>>0))|0))>>>0; // Add carry from low word to high word on overflow.
  43964. return ((tempRet0 = h,l|0)|0);
  43965. }
  43966. function _llvm_cttz_i32(x) {
  43967. x = x|0;
  43968. var ret = 0;
  43969. ret = ((HEAP8[(((cttz_i8)+(x & 0xff))>>0)])|0);
  43970. if ((ret|0) < 8) return ret|0;
  43971. ret = ((HEAP8[(((cttz_i8)+((x >> 8)&0xff))>>0)])|0);
  43972. if ((ret|0) < 8) return (ret + 8)|0;
  43973. ret = ((HEAP8[(((cttz_i8)+((x >> 16)&0xff))>>0)])|0);
  43974. if ((ret|0) < 8) return (ret + 16)|0;
  43975. return (((HEAP8[(((cttz_i8)+(x >>> 24))>>0)])|0) + 24)|0;
  43976. }
  43977. function ___udivmoddi4($a$0, $a$1, $b$0, $b$1, $rem) {
  43978. $a$0 = $a$0 | 0;
  43979. $a$1 = $a$1 | 0;
  43980. $b$0 = $b$0 | 0;
  43981. $b$1 = $b$1 | 0;
  43982. $rem = $rem | 0;
  43983. 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;
  43984. $n_sroa_0_0_extract_trunc = $a$0;
  43985. $n_sroa_1_4_extract_shift$0 = $a$1;
  43986. $n_sroa_1_4_extract_trunc = $n_sroa_1_4_extract_shift$0;
  43987. $d_sroa_0_0_extract_trunc = $b$0;
  43988. $d_sroa_1_4_extract_shift$0 = $b$1;
  43989. $d_sroa_1_4_extract_trunc = $d_sroa_1_4_extract_shift$0;
  43990. if (($n_sroa_1_4_extract_trunc | 0) == 0) {
  43991. $4 = ($rem | 0) != 0;
  43992. if (($d_sroa_1_4_extract_trunc | 0) == 0) {
  43993. if ($4) {
  43994. HEAP32[$rem >> 2] = ($n_sroa_0_0_extract_trunc >>> 0) % ($d_sroa_0_0_extract_trunc >>> 0);
  43995. HEAP32[$rem + 4 >> 2] = 0;
  43996. }
  43997. $_0$1 = 0;
  43998. $_0$0 = ($n_sroa_0_0_extract_trunc >>> 0) / ($d_sroa_0_0_extract_trunc >>> 0) >>> 0;
  43999. return (tempRet0 = $_0$1, $_0$0) | 0;
  44000. } else {
  44001. if (!$4) {
  44002. $_0$1 = 0;
  44003. $_0$0 = 0;
  44004. return (tempRet0 = $_0$1, $_0$0) | 0;
  44005. }
  44006. HEAP32[$rem >> 2] = $a$0 & -1;
  44007. HEAP32[$rem + 4 >> 2] = $a$1 & 0;
  44008. $_0$1 = 0;
  44009. $_0$0 = 0;
  44010. return (tempRet0 = $_0$1, $_0$0) | 0;
  44011. }
  44012. }
  44013. $17 = ($d_sroa_1_4_extract_trunc | 0) == 0;
  44014. do {
  44015. if (($d_sroa_0_0_extract_trunc | 0) == 0) {
  44016. if ($17) {
  44017. if (($rem | 0) != 0) {
  44018. HEAP32[$rem >> 2] = ($n_sroa_1_4_extract_trunc >>> 0) % ($d_sroa_0_0_extract_trunc >>> 0);
  44019. HEAP32[$rem + 4 >> 2] = 0;
  44020. }
  44021. $_0$1 = 0;
  44022. $_0$0 = ($n_sroa_1_4_extract_trunc >>> 0) / ($d_sroa_0_0_extract_trunc >>> 0) >>> 0;
  44023. return (tempRet0 = $_0$1, $_0$0) | 0;
  44024. }
  44025. if (($n_sroa_0_0_extract_trunc | 0) == 0) {
  44026. if (($rem | 0) != 0) {
  44027. HEAP32[$rem >> 2] = 0;
  44028. HEAP32[$rem + 4 >> 2] = ($n_sroa_1_4_extract_trunc >>> 0) % ($d_sroa_1_4_extract_trunc >>> 0);
  44029. }
  44030. $_0$1 = 0;
  44031. $_0$0 = ($n_sroa_1_4_extract_trunc >>> 0) / ($d_sroa_1_4_extract_trunc >>> 0) >>> 0;
  44032. return (tempRet0 = $_0$1, $_0$0) | 0;
  44033. }
  44034. $37 = $d_sroa_1_4_extract_trunc - 1 | 0;
  44035. if (($37 & $d_sroa_1_4_extract_trunc | 0) == 0) {
  44036. if (($rem | 0) != 0) {
  44037. HEAP32[$rem >> 2] = 0 | $a$0 & -1;
  44038. HEAP32[$rem + 4 >> 2] = $37 & $n_sroa_1_4_extract_trunc | $a$1 & 0;
  44039. }
  44040. $_0$1 = 0;
  44041. $_0$0 = $n_sroa_1_4_extract_trunc >>> ((_llvm_cttz_i32($d_sroa_1_4_extract_trunc | 0) | 0) >>> 0);
  44042. return (tempRet0 = $_0$1, $_0$0) | 0;
  44043. }
  44044. $49 = Math_clz32($d_sroa_1_4_extract_trunc | 0) | 0;
  44045. $51 = $49 - (Math_clz32($n_sroa_1_4_extract_trunc | 0) | 0) | 0;
  44046. if ($51 >>> 0 <= 30) {
  44047. $57 = $51 + 1 | 0;
  44048. $58 = 31 - $51 | 0;
  44049. $sr_1_ph = $57;
  44050. $r_sroa_0_1_ph = $n_sroa_1_4_extract_trunc << $58 | $n_sroa_0_0_extract_trunc >>> ($57 >>> 0);
  44051. $r_sroa_1_1_ph = $n_sroa_1_4_extract_trunc >>> ($57 >>> 0);
  44052. $q_sroa_0_1_ph = 0;
  44053. $q_sroa_1_1_ph = $n_sroa_0_0_extract_trunc << $58;
  44054. break;
  44055. }
  44056. if (($rem | 0) == 0) {
  44057. $_0$1 = 0;
  44058. $_0$0 = 0;
  44059. return (tempRet0 = $_0$1, $_0$0) | 0;
  44060. }
  44061. HEAP32[$rem >> 2] = 0 | $a$0 & -1;
  44062. HEAP32[$rem + 4 >> 2] = $n_sroa_1_4_extract_shift$0 | $a$1 & 0;
  44063. $_0$1 = 0;
  44064. $_0$0 = 0;
  44065. return (tempRet0 = $_0$1, $_0$0) | 0;
  44066. } else {
  44067. if (!$17) {
  44068. $117 = Math_clz32($d_sroa_1_4_extract_trunc | 0) | 0;
  44069. $119 = $117 - (Math_clz32($n_sroa_1_4_extract_trunc | 0) | 0) | 0;
  44070. if ($119 >>> 0 <= 31) {
  44071. $125 = $119 + 1 | 0;
  44072. $126 = 31 - $119 | 0;
  44073. $130 = $119 - 31 >> 31;
  44074. $sr_1_ph = $125;
  44075. $r_sroa_0_1_ph = $n_sroa_0_0_extract_trunc >>> ($125 >>> 0) & $130 | $n_sroa_1_4_extract_trunc << $126;
  44076. $r_sroa_1_1_ph = $n_sroa_1_4_extract_trunc >>> ($125 >>> 0) & $130;
  44077. $q_sroa_0_1_ph = 0;
  44078. $q_sroa_1_1_ph = $n_sroa_0_0_extract_trunc << $126;
  44079. break;
  44080. }
  44081. if (($rem | 0) == 0) {
  44082. $_0$1 = 0;
  44083. $_0$0 = 0;
  44084. return (tempRet0 = $_0$1, $_0$0) | 0;
  44085. }
  44086. HEAP32[$rem >> 2] = 0 | $a$0 & -1;
  44087. HEAP32[$rem + 4 >> 2] = $n_sroa_1_4_extract_shift$0 | $a$1 & 0;
  44088. $_0$1 = 0;
  44089. $_0$0 = 0;
  44090. return (tempRet0 = $_0$1, $_0$0) | 0;
  44091. }
  44092. $66 = $d_sroa_0_0_extract_trunc - 1 | 0;
  44093. if (($66 & $d_sroa_0_0_extract_trunc | 0) != 0) {
  44094. $86 = (Math_clz32($d_sroa_0_0_extract_trunc | 0) | 0) + 33 | 0;
  44095. $88 = $86 - (Math_clz32($n_sroa_1_4_extract_trunc | 0) | 0) | 0;
  44096. $89 = 64 - $88 | 0;
  44097. $91 = 32 - $88 | 0;
  44098. $92 = $91 >> 31;
  44099. $95 = $88 - 32 | 0;
  44100. $105 = $95 >> 31;
  44101. $sr_1_ph = $88;
  44102. $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;
  44103. $r_sroa_1_1_ph = $105 & $n_sroa_1_4_extract_trunc >>> ($88 >>> 0);
  44104. $q_sroa_0_1_ph = $n_sroa_0_0_extract_trunc << $89 & $92;
  44105. $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;
  44106. break;
  44107. }
  44108. if (($rem | 0) != 0) {
  44109. HEAP32[$rem >> 2] = $66 & $n_sroa_0_0_extract_trunc;
  44110. HEAP32[$rem + 4 >> 2] = 0;
  44111. }
  44112. if (($d_sroa_0_0_extract_trunc | 0) == 1) {
  44113. $_0$1 = $n_sroa_1_4_extract_shift$0 | $a$1 & 0;
  44114. $_0$0 = 0 | $a$0 & -1;
  44115. return (tempRet0 = $_0$1, $_0$0) | 0;
  44116. } else {
  44117. $78 = _llvm_cttz_i32($d_sroa_0_0_extract_trunc | 0) | 0;
  44118. $_0$1 = 0 | $n_sroa_1_4_extract_trunc >>> ($78 >>> 0);
  44119. $_0$0 = $n_sroa_1_4_extract_trunc << 32 - $78 | $n_sroa_0_0_extract_trunc >>> ($78 >>> 0) | 0;
  44120. return (tempRet0 = $_0$1, $_0$0) | 0;
  44121. }
  44122. }
  44123. } while (0);
  44124. if (($sr_1_ph | 0) == 0) {
  44125. $q_sroa_1_1_lcssa = $q_sroa_1_1_ph;
  44126. $q_sroa_0_1_lcssa = $q_sroa_0_1_ph;
  44127. $r_sroa_1_1_lcssa = $r_sroa_1_1_ph;
  44128. $r_sroa_0_1_lcssa = $r_sroa_0_1_ph;
  44129. $carry_0_lcssa$1 = 0;
  44130. $carry_0_lcssa$0 = 0;
  44131. } else {
  44132. $d_sroa_0_0_insert_insert99$0 = 0 | $b$0 & -1;
  44133. $d_sroa_0_0_insert_insert99$1 = $d_sroa_1_4_extract_shift$0 | $b$1 & 0;
  44134. $137$0 = _i64Add($d_sroa_0_0_insert_insert99$0 | 0, $d_sroa_0_0_insert_insert99$1 | 0, -1, -1) | 0;
  44135. $137$1 = tempRet0;
  44136. $q_sroa_1_1198 = $q_sroa_1_1_ph;
  44137. $q_sroa_0_1199 = $q_sroa_0_1_ph;
  44138. $r_sroa_1_1200 = $r_sroa_1_1_ph;
  44139. $r_sroa_0_1201 = $r_sroa_0_1_ph;
  44140. $sr_1202 = $sr_1_ph;
  44141. $carry_0203 = 0;
  44142. while (1) {
  44143. $147 = $q_sroa_0_1199 >>> 31 | $q_sroa_1_1198 << 1;
  44144. $149 = $carry_0203 | $q_sroa_0_1199 << 1;
  44145. $r_sroa_0_0_insert_insert42$0 = 0 | ($r_sroa_0_1201 << 1 | $q_sroa_1_1198 >>> 31);
  44146. $r_sroa_0_0_insert_insert42$1 = $r_sroa_0_1201 >>> 31 | $r_sroa_1_1200 << 1 | 0;
  44147. _i64Subtract($137$0 | 0, $137$1 | 0, $r_sroa_0_0_insert_insert42$0 | 0, $r_sroa_0_0_insert_insert42$1 | 0) | 0;
  44148. $150$1 = tempRet0;
  44149. $151$0 = $150$1 >> 31 | (($150$1 | 0) < 0 ? -1 : 0) << 1;
  44150. $152 = $151$0 & 1;
  44151. $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;
  44152. $r_sroa_0_0_extract_trunc = $154$0;
  44153. $r_sroa_1_4_extract_trunc = tempRet0;
  44154. $155 = $sr_1202 - 1 | 0;
  44155. if (($155 | 0) == 0) {
  44156. break;
  44157. } else {
  44158. $q_sroa_1_1198 = $147;
  44159. $q_sroa_0_1199 = $149;
  44160. $r_sroa_1_1200 = $r_sroa_1_4_extract_trunc;
  44161. $r_sroa_0_1201 = $r_sroa_0_0_extract_trunc;
  44162. $sr_1202 = $155;
  44163. $carry_0203 = $152;
  44164. }
  44165. }
  44166. $q_sroa_1_1_lcssa = $147;
  44167. $q_sroa_0_1_lcssa = $149;
  44168. $r_sroa_1_1_lcssa = $r_sroa_1_4_extract_trunc;
  44169. $r_sroa_0_1_lcssa = $r_sroa_0_0_extract_trunc;
  44170. $carry_0_lcssa$1 = 0;
  44171. $carry_0_lcssa$0 = $152;
  44172. }
  44173. $q_sroa_0_0_insert_ext75$0 = $q_sroa_0_1_lcssa;
  44174. $q_sroa_0_0_insert_ext75$1 = 0;
  44175. $q_sroa_0_0_insert_insert77$1 = $q_sroa_1_1_lcssa | $q_sroa_0_0_insert_ext75$1;
  44176. if (($rem | 0) != 0) {
  44177. HEAP32[$rem >> 2] = 0 | $r_sroa_0_1_lcssa;
  44178. HEAP32[$rem + 4 >> 2] = $r_sroa_1_1_lcssa | 0;
  44179. }
  44180. $_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;
  44181. $_0$0 = ($q_sroa_0_0_insert_ext75$0 << 1 | 0 >>> 31) & -2 | $carry_0_lcssa$0;
  44182. return (tempRet0 = $_0$1, $_0$0) | 0;
  44183. }
  44184. function ___udivdi3($a$0, $a$1, $b$0, $b$1) {
  44185. $a$0 = $a$0 | 0;
  44186. $a$1 = $a$1 | 0;
  44187. $b$0 = $b$0 | 0;
  44188. $b$1 = $b$1 | 0;
  44189. var $1$0 = 0;
  44190. $1$0 = ___udivmoddi4($a$0, $a$1, $b$0, $b$1, 0) | 0;
  44191. return $1$0 | 0;
  44192. }
  44193. function ___muldsi3($a, $b) {
  44194. $a = $a | 0;
  44195. $b = $b | 0;
  44196. var $1 = 0, $2 = 0, $3 = 0, $6 = 0, $8 = 0, $11 = 0, $12 = 0;
  44197. $1 = $a & 65535;
  44198. $2 = $b & 65535;
  44199. $3 = Math_imul($2, $1) | 0;
  44200. $6 = $a >>> 16;
  44201. $8 = ($3 >>> 16) + (Math_imul($2, $6) | 0) | 0;
  44202. $11 = $b >>> 16;
  44203. $12 = Math_imul($11, $1) | 0;
  44204. return (tempRet0 = (($8 >>> 16) + (Math_imul($11, $6) | 0) | 0) + ((($8 & 65535) + $12 | 0) >>> 16) | 0, 0 | ($8 + $12 << 16 | $3 & 65535)) | 0;
  44205. }
  44206. function ___muldi3($a$0, $a$1, $b$0, $b$1) {
  44207. $a$0 = $a$0 | 0;
  44208. $a$1 = $a$1 | 0;
  44209. $b$0 = $b$0 | 0;
  44210. $b$1 = $b$1 | 0;
  44211. var $x_sroa_0_0_extract_trunc = 0, $y_sroa_0_0_extract_trunc = 0, $1$0 = 0, $1$1 = 0, $2 = 0;
  44212. $x_sroa_0_0_extract_trunc = $a$0;
  44213. $y_sroa_0_0_extract_trunc = $b$0;
  44214. $1$0 = ___muldsi3($x_sroa_0_0_extract_trunc, $y_sroa_0_0_extract_trunc) | 0;
  44215. $1$1 = tempRet0;
  44216. $2 = Math_imul($a$1, $y_sroa_0_0_extract_trunc) | 0;
  44217. 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;
  44218. }
  44219. function _memcpy(dest, src, num) {
  44220. dest = dest|0; src = src|0; num = num|0;
  44221. var ret = 0;
  44222. var aligned_dest_end = 0;
  44223. var block_aligned_dest_end = 0;
  44224. var dest_end = 0;
  44225. // Test against a benchmarked cutoff limit for when HEAPU8.set() becomes faster to use.
  44226. if ((num|0) >=
  44227. 8192
  44228. ) {
  44229. return _emscripten_memcpy_big(dest|0, src|0, num|0)|0;
  44230. }
  44231. ret = dest|0;
  44232. dest_end = (dest + num)|0;
  44233. if ((dest&3) == (src&3)) {
  44234. // The initial unaligned < 4-byte front.
  44235. while (dest & 3) {
  44236. if ((num|0) == 0) return ret|0;
  44237. HEAP8[((dest)>>0)]=((HEAP8[((src)>>0)])|0);
  44238. dest = (dest+1)|0;
  44239. src = (src+1)|0;
  44240. num = (num-1)|0;
  44241. }
  44242. aligned_dest_end = (dest_end & -4)|0;
  44243. block_aligned_dest_end = (aligned_dest_end - 64)|0;
  44244. while ((dest|0) <= (block_aligned_dest_end|0) ) {
  44245. HEAP32[((dest)>>2)]=((HEAP32[((src)>>2)])|0);
  44246. HEAP32[(((dest)+(4))>>2)]=((HEAP32[(((src)+(4))>>2)])|0);
  44247. HEAP32[(((dest)+(8))>>2)]=((HEAP32[(((src)+(8))>>2)])|0);
  44248. HEAP32[(((dest)+(12))>>2)]=((HEAP32[(((src)+(12))>>2)])|0);
  44249. HEAP32[(((dest)+(16))>>2)]=((HEAP32[(((src)+(16))>>2)])|0);
  44250. HEAP32[(((dest)+(20))>>2)]=((HEAP32[(((src)+(20))>>2)])|0);
  44251. HEAP32[(((dest)+(24))>>2)]=((HEAP32[(((src)+(24))>>2)])|0);
  44252. HEAP32[(((dest)+(28))>>2)]=((HEAP32[(((src)+(28))>>2)])|0);
  44253. HEAP32[(((dest)+(32))>>2)]=((HEAP32[(((src)+(32))>>2)])|0);
  44254. HEAP32[(((dest)+(36))>>2)]=((HEAP32[(((src)+(36))>>2)])|0);
  44255. HEAP32[(((dest)+(40))>>2)]=((HEAP32[(((src)+(40))>>2)])|0);
  44256. HEAP32[(((dest)+(44))>>2)]=((HEAP32[(((src)+(44))>>2)])|0);
  44257. HEAP32[(((dest)+(48))>>2)]=((HEAP32[(((src)+(48))>>2)])|0);
  44258. HEAP32[(((dest)+(52))>>2)]=((HEAP32[(((src)+(52))>>2)])|0);
  44259. HEAP32[(((dest)+(56))>>2)]=((HEAP32[(((src)+(56))>>2)])|0);
  44260. HEAP32[(((dest)+(60))>>2)]=((HEAP32[(((src)+(60))>>2)])|0);
  44261. dest = (dest+64)|0;
  44262. src = (src+64)|0;
  44263. }
  44264. while ((dest|0) < (aligned_dest_end|0) ) {
  44265. HEAP32[((dest)>>2)]=((HEAP32[((src)>>2)])|0);
  44266. dest = (dest+4)|0;
  44267. src = (src+4)|0;
  44268. }
  44269. } else {
  44270. // In the unaligned copy case, unroll a bit as well.
  44271. aligned_dest_end = (dest_end - 4)|0;
  44272. while ((dest|0) < (aligned_dest_end|0) ) {
  44273. HEAP8[((dest)>>0)]=((HEAP8[((src)>>0)])|0);
  44274. HEAP8[(((dest)+(1))>>0)]=((HEAP8[(((src)+(1))>>0)])|0);
  44275. HEAP8[(((dest)+(2))>>0)]=((HEAP8[(((src)+(2))>>0)])|0);
  44276. HEAP8[(((dest)+(3))>>0)]=((HEAP8[(((src)+(3))>>0)])|0);
  44277. dest = (dest+4)|0;
  44278. src = (src+4)|0;
  44279. }
  44280. }
  44281. // The remaining unaligned < 4 byte tail.
  44282. while ((dest|0) < (dest_end|0)) {
  44283. HEAP8[((dest)>>0)]=((HEAP8[((src)>>0)])|0);
  44284. dest = (dest+1)|0;
  44285. src = (src+1)|0;
  44286. }
  44287. return ret|0;
  44288. }
  44289. function _memmove(dest, src, num) {
  44290. dest = dest|0; src = src|0; num = num|0;
  44291. var ret = 0;
  44292. if (((src|0) < (dest|0)) & ((dest|0) < ((src + num)|0))) {
  44293. // Unlikely case: Copy backwards in a safe manner
  44294. ret = dest;
  44295. src = (src + num)|0;
  44296. dest = (dest + num)|0;
  44297. while ((num|0) > 0) {
  44298. dest = (dest - 1)|0;
  44299. src = (src - 1)|0;
  44300. num = (num - 1)|0;
  44301. HEAP8[((dest)>>0)]=((HEAP8[((src)>>0)])|0);
  44302. }
  44303. dest = ret;
  44304. } else {
  44305. _memcpy(dest, src, num) | 0;
  44306. }
  44307. return dest | 0;
  44308. }
  44309. function ___uremdi3($a$0, $a$1, $b$0, $b$1) {
  44310. $a$0 = $a$0 | 0;
  44311. $a$1 = $a$1 | 0;
  44312. $b$0 = $b$0 | 0;
  44313. $b$1 = $b$1 | 0;
  44314. var $rem = 0, __stackBase__ = 0;
  44315. __stackBase__ = STACKTOP;
  44316. STACKTOP = STACKTOP + 16 | 0;
  44317. $rem = __stackBase__ | 0;
  44318. ___udivmoddi4($a$0, $a$1, $b$0, $b$1, $rem) | 0;
  44319. STACKTOP = __stackBase__;
  44320. return (tempRet0 = HEAP32[$rem + 4 >> 2] | 0, HEAP32[$rem >> 2] | 0) | 0;
  44321. }
  44322. function _roundf(f) {
  44323. f = +f;
  44324. return f >= +0 ? +Math_floor(f + +0.5) : +Math_ceil(f - +0.5); // TODO: use fround?
  44325. }
  44326. function _bitshift64Lshr(low, high, bits) {
  44327. low = low|0; high = high|0; bits = bits|0;
  44328. var ander = 0;
  44329. if ((bits|0) < 32) {
  44330. ander = ((1 << bits) - 1)|0;
  44331. tempRet0 = high >>> bits;
  44332. return (low >>> bits) | ((high&ander) << (32 - bits));
  44333. }
  44334. tempRet0 = 0;
  44335. return (high >>> (bits - 32))|0;
  44336. }
  44337. function _sbrk(increment) {
  44338. increment = increment|0;
  44339. var oldDynamicTop = 0;
  44340. var oldDynamicTopOnChange = 0;
  44341. var newDynamicTop = 0;
  44342. var totalMemory = 0;
  44343. increment = ((increment + 15) & -16)|0;
  44344. oldDynamicTop = HEAP32[DYNAMICTOP_PTR>>2]|0;
  44345. newDynamicTop = oldDynamicTop + increment | 0;
  44346. if (((increment|0) > 0 & (newDynamicTop|0) < (oldDynamicTop|0)) // Detect and fail if we would wrap around signed 32-bit int.
  44347. | (newDynamicTop|0) < 0) { // Also underflow, sbrk() should be able to be used to subtract.
  44348. abortOnCannotGrowMemory()|0;
  44349. ___setErrNo(12);
  44350. return -1;
  44351. }
  44352. HEAP32[DYNAMICTOP_PTR>>2] = newDynamicTop;
  44353. totalMemory = getTotalMemory()|0;
  44354. if ((newDynamicTop|0) > (totalMemory|0)) {
  44355. if ((enlargeMemory()|0) == 0) {
  44356. ___setErrNo(12);
  44357. HEAP32[DYNAMICTOP_PTR>>2] = oldDynamicTop;
  44358. return -1;
  44359. }
  44360. }
  44361. return oldDynamicTop|0;
  44362. }
  44363. function _bitshift64Shl(low, high, bits) {
  44364. low = low|0; high = high|0; bits = bits|0;
  44365. var ander = 0;
  44366. if ((bits|0) < 32) {
  44367. ander = ((1 << bits) - 1)|0;
  44368. tempRet0 = (high << bits) | ((low&(ander << (32 - bits))) >>> (32 - bits));
  44369. return low << bits;
  44370. }
  44371. tempRet0 = low << (bits - 32);
  44372. return 0;
  44373. }
  44374. function _llvm_bswap_i32(x) {
  44375. x = x|0;
  44376. return (((x&0xff)<<24) | (((x>>8)&0xff)<<16) | (((x>>16)&0xff)<<8) | (x>>>24))|0;
  44377. }
  44378. function dynCall_viiiii(index,a1,a2,a3,a4,a5) {
  44379. index = index|0;
  44380. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0; a5=a5|0;
  44381. FUNCTION_TABLE_viiiii[index&7](a1|0,a2|0,a3|0,a4|0,a5|0);
  44382. }
  44383. function dynCall_vd(index,a1) {
  44384. index = index|0;
  44385. a1=+a1;
  44386. FUNCTION_TABLE_vd[index&3](+a1);
  44387. }
  44388. function dynCall_vid(index,a1,a2) {
  44389. index = index|0;
  44390. a1=a1|0; a2=+a2;
  44391. FUNCTION_TABLE_vid[index&3](a1|0,+a2);
  44392. }
  44393. function dynCall_vi(index,a1) {
  44394. index = index|0;
  44395. a1=a1|0;
  44396. FUNCTION_TABLE_vi[index&31](a1|0);
  44397. }
  44398. function dynCall_vii(index,a1,a2) {
  44399. index = index|0;
  44400. a1=a1|0; a2=a2|0;
  44401. FUNCTION_TABLE_vii[index&63](a1|0,a2|0);
  44402. }
  44403. function dynCall_ii(index,a1) {
  44404. index = index|0;
  44405. a1=a1|0;
  44406. return FUNCTION_TABLE_ii[index&15](a1|0)|0;
  44407. }
  44408. function dynCall_viddd(index,a1,a2,a3,a4) {
  44409. index = index|0;
  44410. a1=a1|0; a2=+a2; a3=+a3; a4=+a4;
  44411. FUNCTION_TABLE_viddd[index&3](a1|0,+a2,+a3,+a4);
  44412. }
  44413. function dynCall_vidd(index,a1,a2,a3) {
  44414. index = index|0;
  44415. a1=a1|0; a2=+a2; a3=+a3;
  44416. FUNCTION_TABLE_vidd[index&7](a1|0,+a2,+a3);
  44417. }
  44418. function dynCall_iiii(index,a1,a2,a3) {
  44419. index = index|0;
  44420. a1=a1|0; a2=a2|0; a3=a3|0;
  44421. return FUNCTION_TABLE_iiii[index&15](a1|0,a2|0,a3|0)|0;
  44422. }
  44423. function dynCall_viiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8) {
  44424. index = index|0;
  44425. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0; a5=a5|0; a6=a6|0; a7=a7|0; a8=a8|0;
  44426. FUNCTION_TABLE_viiiiiiii[index&3](a1|0,a2|0,a3|0,a4|0,a5|0,a6|0,a7|0,a8|0);
  44427. }
  44428. function dynCall_viiiiii(index,a1,a2,a3,a4,a5,a6) {
  44429. index = index|0;
  44430. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0; a5=a5|0; a6=a6|0;
  44431. FUNCTION_TABLE_viiiiii[index&3](a1|0,a2|0,a3|0,a4|0,a5|0,a6|0);
  44432. }
  44433. function dynCall_viii(index,a1,a2,a3) {
  44434. index = index|0;
  44435. a1=a1|0; a2=a2|0; a3=a3|0;
  44436. FUNCTION_TABLE_viii[index&31](a1|0,a2|0,a3|0);
  44437. }
  44438. function dynCall_vidddd(index,a1,a2,a3,a4,a5) {
  44439. index = index|0;
  44440. a1=a1|0; a2=+a2; a3=+a3; a4=+a4; a5=+a5;
  44441. FUNCTION_TABLE_vidddd[index&3](a1|0,+a2,+a3,+a4,+a5);
  44442. }
  44443. function dynCall_vdi(index,a1,a2) {
  44444. index = index|0;
  44445. a1=+a1; a2=a2|0;
  44446. FUNCTION_TABLE_vdi[index&1](+a1,a2|0);
  44447. }
  44448. function dynCall_viiiiiii(index,a1,a2,a3,a4,a5,a6,a7) {
  44449. index = index|0;
  44450. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0; a5=a5|0; a6=a6|0; a7=a7|0;
  44451. FUNCTION_TABLE_viiiiiii[index&3](a1|0,a2|0,a3|0,a4|0,a5|0,a6|0,a7|0);
  44452. }
  44453. function dynCall_viiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9) {
  44454. index = index|0;
  44455. 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;
  44456. FUNCTION_TABLE_viiiiiiiii[index&3](a1|0,a2|0,a3|0,a4|0,a5|0,a6|0,a7|0,a8|0,a9|0);
  44457. }
  44458. function dynCall_iii(index,a1,a2) {
  44459. index = index|0;
  44460. a1=a1|0; a2=a2|0;
  44461. return FUNCTION_TABLE_iii[index&3](a1|0,a2|0)|0;
  44462. }
  44463. function dynCall_i(index) {
  44464. index = index|0;
  44465. return FUNCTION_TABLE_i[index&3]()|0;
  44466. }
  44467. function dynCall_vdddddd(index,a1,a2,a3,a4,a5,a6) {
  44468. index = index|0;
  44469. a1=+a1; a2=+a2; a3=+a3; a4=+a4; a5=+a5; a6=+a6;
  44470. FUNCTION_TABLE_vdddddd[index&1](+a1,+a2,+a3,+a4,+a5,+a6);
  44471. }
  44472. function dynCall_vdddd(index,a1,a2,a3,a4) {
  44473. index = index|0;
  44474. a1=+a1; a2=+a2; a3=+a3; a4=+a4;
  44475. FUNCTION_TABLE_vdddd[index&3](+a1,+a2,+a3,+a4);
  44476. }
  44477. function dynCall_vdd(index,a1,a2) {
  44478. index = index|0;
  44479. a1=+a1; a2=+a2;
  44480. FUNCTION_TABLE_vdd[index&3](+a1,+a2);
  44481. }
  44482. function dynCall_v(index) {
  44483. index = index|0;
  44484. FUNCTION_TABLE_v[index&7]();
  44485. }
  44486. function dynCall_viid(index,a1,a2,a3) {
  44487. index = index|0;
  44488. a1=a1|0; a2=a2|0; a3=+a3;
  44489. FUNCTION_TABLE_viid[index&1](a1|0,a2|0,+a3);
  44490. }
  44491. function dynCall_viiii(index,a1,a2,a3,a4) {
  44492. index = index|0;
  44493. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0;
  44494. FUNCTION_TABLE_viiii[index&31](a1|0,a2|0,a3|0,a4|0);
  44495. }
  44496. function b0(p0,p1,p2,p3,p4) {
  44497. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0; nullFunc_viiiii(0);
  44498. }
  44499. function _emscripten_glUniform4i__wrapper(p0,p1,p2,p3,p4) {
  44500. 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);
  44501. }
  44502. function _emscripten_glFramebufferTexture2D__wrapper(p0,p1,p2,p3,p4) {
  44503. 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);
  44504. }
  44505. function _emscripten_glShaderBinary__wrapper(p0,p1,p2,p3,p4) {
  44506. 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);
  44507. }
  44508. function _emscripten_glDrawElementsInstanced__wrapper(p0,p1,p2,p3,p4) {
  44509. 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);
  44510. }
  44511. function b1(p0) {
  44512. p0 = +p0; nullFunc_vd(1);
  44513. }
  44514. function _emscripten_glClearDepth__wrapper(p0) {
  44515. p0 = +p0; _emscripten_glClearDepth(+p0);
  44516. }
  44517. function _emscripten_glClearDepthf__wrapper(p0) {
  44518. p0 = +p0; _emscripten_glClearDepthf(+p0);
  44519. }
  44520. function _emscripten_glLineWidth__wrapper(p0) {
  44521. p0 = +p0; _emscripten_glLineWidth(+p0);
  44522. }
  44523. function b2(p0,p1) {
  44524. p0 = p0|0;p1 = +p1; nullFunc_vid(2);
  44525. }
  44526. function _emscripten_glUniform1f__wrapper(p0,p1) {
  44527. p0 = p0|0;p1 = +p1; _emscripten_glUniform1f(p0|0,+p1);
  44528. }
  44529. function _emscripten_glVertexAttrib1f__wrapper(p0,p1) {
  44530. p0 = p0|0;p1 = +p1; _emscripten_glVertexAttrib1f(p0|0,+p1);
  44531. }
  44532. function b3(p0) {
  44533. p0 = p0|0; nullFunc_vi(3);
  44534. }
  44535. function _emscripten_glDeleteShader__wrapper(p0) {
  44536. p0 = p0|0; _emscripten_glDeleteShader(p0|0);
  44537. }
  44538. function _emscripten_glCompileShader__wrapper(p0) {
  44539. p0 = p0|0; _emscripten_glCompileShader(p0|0);
  44540. }
  44541. function _emscripten_glDeleteProgram__wrapper(p0) {
  44542. p0 = p0|0; _emscripten_glDeleteProgram(p0|0);
  44543. }
  44544. function _emscripten_glLinkProgram__wrapper(p0) {
  44545. p0 = p0|0; _emscripten_glLinkProgram(p0|0);
  44546. }
  44547. function _emscripten_glUseProgram__wrapper(p0) {
  44548. p0 = p0|0; _emscripten_glUseProgram(p0|0);
  44549. }
  44550. function _emscripten_glValidateProgram__wrapper(p0) {
  44551. p0 = p0|0; _emscripten_glValidateProgram(p0|0);
  44552. }
  44553. function _emscripten_glDeleteObjectARB__wrapper(p0) {
  44554. p0 = p0|0; _emscripten_glDeleteObjectARB(p0|0);
  44555. }
  44556. function _emscripten_glEnableClientState__wrapper(p0) {
  44557. p0 = p0|0; _emscripten_glEnableClientState(p0|0);
  44558. }
  44559. function _emscripten_glClientActiveTexture__wrapper(p0) {
  44560. p0 = p0|0; _emscripten_glClientActiveTexture(p0|0);
  44561. }
  44562. function _emscripten_glBindVertexArray__wrapper(p0) {
  44563. p0 = p0|0; _emscripten_glBindVertexArray(p0|0);
  44564. }
  44565. function _emscripten_glMatrixMode__wrapper(p0) {
  44566. p0 = p0|0; _emscripten_glMatrixMode(p0|0);
  44567. }
  44568. function _emscripten_glLoadMatrixf__wrapper(p0) {
  44569. p0 = p0|0; _emscripten_glLoadMatrixf(p0|0);
  44570. }
  44571. function _emscripten_glEnableVertexAttribArray__wrapper(p0) {
  44572. p0 = p0|0; _emscripten_glEnableVertexAttribArray(p0|0);
  44573. }
  44574. function _emscripten_glDisableVertexAttribArray__wrapper(p0) {
  44575. p0 = p0|0; _emscripten_glDisableVertexAttribArray(p0|0);
  44576. }
  44577. function _emscripten_glDepthFunc__wrapper(p0) {
  44578. p0 = p0|0; _emscripten_glDepthFunc(p0|0);
  44579. }
  44580. function _emscripten_glEnable__wrapper(p0) {
  44581. p0 = p0|0; _emscripten_glEnable(p0|0);
  44582. }
  44583. function _emscripten_glDisable__wrapper(p0) {
  44584. p0 = p0|0; _emscripten_glDisable(p0|0);
  44585. }
  44586. function _emscripten_glFrontFace__wrapper(p0) {
  44587. p0 = p0|0; _emscripten_glFrontFace(p0|0);
  44588. }
  44589. function _emscripten_glCullFace__wrapper(p0) {
  44590. p0 = p0|0; _emscripten_glCullFace(p0|0);
  44591. }
  44592. function _emscripten_glClear__wrapper(p0) {
  44593. p0 = p0|0; _emscripten_glClear(p0|0);
  44594. }
  44595. function _emscripten_glClearStencil__wrapper(p0) {
  44596. p0 = p0|0; _emscripten_glClearStencil(p0|0);
  44597. }
  44598. function _emscripten_glDepthMask__wrapper(p0) {
  44599. p0 = p0|0; _emscripten_glDepthMask(p0|0);
  44600. }
  44601. function _emscripten_glStencilMask__wrapper(p0) {
  44602. p0 = p0|0; _emscripten_glStencilMask(p0|0);
  44603. }
  44604. function _emscripten_glGenerateMipmap__wrapper(p0) {
  44605. p0 = p0|0; _emscripten_glGenerateMipmap(p0|0);
  44606. }
  44607. function _emscripten_glActiveTexture__wrapper(p0) {
  44608. p0 = p0|0; _emscripten_glActiveTexture(p0|0);
  44609. }
  44610. function _emscripten_glBlendEquation__wrapper(p0) {
  44611. p0 = p0|0; _emscripten_glBlendEquation(p0|0);
  44612. }
  44613. function b4(p0,p1) {
  44614. p0 = p0|0;p1 = p1|0; nullFunc_vii(4);
  44615. }
  44616. function _emscripten_glPixelStorei__wrapper(p0,p1) {
  44617. p0 = p0|0;p1 = p1|0; _emscripten_glPixelStorei(p0|0,p1|0);
  44618. }
  44619. function _emscripten_glGetIntegerv__wrapper(p0,p1) {
  44620. p0 = p0|0;p1 = p1|0; _emscripten_glGetIntegerv(p0|0,p1|0);
  44621. }
  44622. function _emscripten_glGetFloatv__wrapper(p0,p1) {
  44623. p0 = p0|0;p1 = p1|0; _emscripten_glGetFloatv(p0|0,p1|0);
  44624. }
  44625. function _emscripten_glGetBooleanv__wrapper(p0,p1) {
  44626. p0 = p0|0;p1 = p1|0; _emscripten_glGetBooleanv(p0|0,p1|0);
  44627. }
  44628. function _emscripten_glGenTextures__wrapper(p0,p1) {
  44629. p0 = p0|0;p1 = p1|0; _emscripten_glGenTextures(p0|0,p1|0);
  44630. }
  44631. function _emscripten_glDeleteTextures__wrapper(p0,p1) {
  44632. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteTextures(p0|0,p1|0);
  44633. }
  44634. function _emscripten_glBindTexture__wrapper(p0,p1) {
  44635. p0 = p0|0;p1 = p1|0; _emscripten_glBindTexture(p0|0,p1|0);
  44636. }
  44637. function _emscripten_glGenBuffers__wrapper(p0,p1) {
  44638. p0 = p0|0;p1 = p1|0; _emscripten_glGenBuffers(p0|0,p1|0);
  44639. }
  44640. function _emscripten_glDeleteBuffers__wrapper(p0,p1) {
  44641. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteBuffers(p0|0,p1|0);
  44642. }
  44643. function _emscripten_glGenRenderbuffers__wrapper(p0,p1) {
  44644. p0 = p0|0;p1 = p1|0; _emscripten_glGenRenderbuffers(p0|0,p1|0);
  44645. }
  44646. function _emscripten_glDeleteRenderbuffers__wrapper(p0,p1) {
  44647. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteRenderbuffers(p0|0,p1|0);
  44648. }
  44649. function _emscripten_glBindRenderbuffer__wrapper(p0,p1) {
  44650. p0 = p0|0;p1 = p1|0; _emscripten_glBindRenderbuffer(p0|0,p1|0);
  44651. }
  44652. function _emscripten_glUniform1i__wrapper(p0,p1) {
  44653. p0 = p0|0;p1 = p1|0; _emscripten_glUniform1i(p0|0,p1|0);
  44654. }
  44655. function _emscripten_glBindBuffer__wrapper(p0,p1) {
  44656. p0 = p0|0;p1 = p1|0; _emscripten_glBindBuffer(p0|0,p1|0);
  44657. }
  44658. function _emscripten_glVertexAttrib1fv__wrapper(p0,p1) {
  44659. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttrib1fv(p0|0,p1|0);
  44660. }
  44661. function _emscripten_glVertexAttrib2fv__wrapper(p0,p1) {
  44662. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttrib2fv(p0|0,p1|0);
  44663. }
  44664. function _emscripten_glVertexAttrib3fv__wrapper(p0,p1) {
  44665. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttrib3fv(p0|0,p1|0);
  44666. }
  44667. function _emscripten_glVertexAttrib4fv__wrapper(p0,p1) {
  44668. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttrib4fv(p0|0,p1|0);
  44669. }
  44670. function _emscripten_glAttachShader__wrapper(p0,p1) {
  44671. p0 = p0|0;p1 = p1|0; _emscripten_glAttachShader(p0|0,p1|0);
  44672. }
  44673. function _emscripten_glDetachShader__wrapper(p0,p1) {
  44674. p0 = p0|0;p1 = p1|0; _emscripten_glDetachShader(p0|0,p1|0);
  44675. }
  44676. function _emscripten_glBindFramebuffer__wrapper(p0,p1) {
  44677. p0 = p0|0;p1 = p1|0; _emscripten_glBindFramebuffer(p0|0,p1|0);
  44678. }
  44679. function _emscripten_glGenFramebuffers__wrapper(p0,p1) {
  44680. p0 = p0|0;p1 = p1|0; _emscripten_glGenFramebuffers(p0|0,p1|0);
  44681. }
  44682. function _emscripten_glDeleteFramebuffers__wrapper(p0,p1) {
  44683. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteFramebuffers(p0|0,p1|0);
  44684. }
  44685. function _emscripten_glBindProgramARB__wrapper(p0,p1) {
  44686. p0 = p0|0;p1 = p1|0; _emscripten_glBindProgramARB(p0|0,p1|0);
  44687. }
  44688. function _emscripten_glGetPointerv__wrapper(p0,p1) {
  44689. p0 = p0|0;p1 = p1|0; _emscripten_glGetPointerv(p0|0,p1|0);
  44690. }
  44691. function _emscripten_glGenVertexArrays__wrapper(p0,p1) {
  44692. p0 = p0|0;p1 = p1|0; _emscripten_glGenVertexArrays(p0|0,p1|0);
  44693. }
  44694. function _emscripten_glDeleteVertexArrays__wrapper(p0,p1) {
  44695. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteVertexArrays(p0|0,p1|0);
  44696. }
  44697. function _emscripten_glVertexAttribDivisor__wrapper(p0,p1) {
  44698. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttribDivisor(p0|0,p1|0);
  44699. }
  44700. function _emscripten_glBlendFunc__wrapper(p0,p1) {
  44701. p0 = p0|0;p1 = p1|0; _emscripten_glBlendFunc(p0|0,p1|0);
  44702. }
  44703. function _emscripten_glBlendEquationSeparate__wrapper(p0,p1) {
  44704. p0 = p0|0;p1 = p1|0; _emscripten_glBlendEquationSeparate(p0|0,p1|0);
  44705. }
  44706. function _emscripten_glStencilMaskSeparate__wrapper(p0,p1) {
  44707. p0 = p0|0;p1 = p1|0; _emscripten_glStencilMaskSeparate(p0|0,p1|0);
  44708. }
  44709. function _emscripten_glHint__wrapper(p0,p1) {
  44710. p0 = p0|0;p1 = p1|0; _emscripten_glHint(p0|0,p1|0);
  44711. }
  44712. function _emscripten_glDrawBuffers__wrapper(p0,p1) {
  44713. p0 = p0|0;p1 = p1|0; _emscripten_glDrawBuffers(p0|0,p1|0);
  44714. }
  44715. function b5(p0) {
  44716. p0 = p0|0; nullFunc_ii(5);return 0;
  44717. }
  44718. function _emscripten_glGetString__wrapper(p0) {
  44719. p0 = p0|0; return _emscripten_glGetString(p0|0)|0;
  44720. }
  44721. function _emscripten_glIsTexture__wrapper(p0) {
  44722. p0 = p0|0; return _emscripten_glIsTexture(p0|0)|0;
  44723. }
  44724. function _emscripten_glIsBuffer__wrapper(p0) {
  44725. p0 = p0|0; return _emscripten_glIsBuffer(p0|0)|0;
  44726. }
  44727. function _emscripten_glIsRenderbuffer__wrapper(p0) {
  44728. p0 = p0|0; return _emscripten_glIsRenderbuffer(p0|0)|0;
  44729. }
  44730. function _emscripten_glCreateShader__wrapper(p0) {
  44731. p0 = p0|0; return _emscripten_glCreateShader(p0|0)|0;
  44732. }
  44733. function _emscripten_glIsShader__wrapper(p0) {
  44734. p0 = p0|0; return _emscripten_glIsShader(p0|0)|0;
  44735. }
  44736. function _emscripten_glIsProgram__wrapper(p0) {
  44737. p0 = p0|0; return _emscripten_glIsProgram(p0|0)|0;
  44738. }
  44739. function _emscripten_glIsFramebuffer__wrapper(p0) {
  44740. p0 = p0|0; return _emscripten_glIsFramebuffer(p0|0)|0;
  44741. }
  44742. function _emscripten_glCheckFramebufferStatus__wrapper(p0) {
  44743. p0 = p0|0; return _emscripten_glCheckFramebufferStatus(p0|0)|0;
  44744. }
  44745. function _emscripten_glIsEnabled__wrapper(p0) {
  44746. p0 = p0|0; return _emscripten_glIsEnabled(p0|0)|0;
  44747. }
  44748. function b6(p0,p1,p2,p3) {
  44749. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3; nullFunc_viddd(6);
  44750. }
  44751. function _emscripten_glUniform3f__wrapper(p0,p1,p2,p3) {
  44752. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glUniform3f(p0|0,+p1,+p2,+p3);
  44753. }
  44754. function _emscripten_glVertexAttrib3f__wrapper(p0,p1,p2,p3) {
  44755. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glVertexAttrib3f(p0|0,+p1,+p2,+p3);
  44756. }
  44757. function b7(p0,p1,p2) {
  44758. p0 = p0|0;p1 = +p1;p2 = +p2; nullFunc_vidd(7);
  44759. }
  44760. function _emscripten_glUniform2f__wrapper(p0,p1,p2) {
  44761. p0 = p0|0;p1 = +p1;p2 = +p2; _emscripten_glUniform2f(p0|0,+p1,+p2);
  44762. }
  44763. function _emscripten_glVertexAttrib2f__wrapper(p0,p1,p2) {
  44764. p0 = p0|0;p1 = +p1;p2 = +p2; _emscripten_glVertexAttrib2f(p0|0,+p1,+p2);
  44765. }
  44766. function b8(p0,p1,p2) {
  44767. p0 = p0|0;p1 = p1|0;p2 = p2|0; nullFunc_iiii(8);return 0;
  44768. }
  44769. function b9(p0,p1,p2,p3,p4,p5,p6,p7) {
  44770. 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);
  44771. }
  44772. function _emscripten_glCompressedTexImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7) {
  44773. 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);
  44774. }
  44775. function _emscripten_glCopyTexImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7) {
  44776. 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);
  44777. }
  44778. function _emscripten_glCopyTexSubImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7) {
  44779. 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);
  44780. }
  44781. function b10(p0,p1,p2,p3,p4,p5) {
  44782. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0;p5 = p5|0; nullFunc_viiiiii(10);
  44783. }
  44784. function _emscripten_glDrawRangeElements__wrapper(p0,p1,p2,p3,p4,p5) {
  44785. 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);
  44786. }
  44787. function _emscripten_glVertexAttribPointer__wrapper(p0,p1,p2,p3,p4,p5) {
  44788. 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);
  44789. }
  44790. function b11(p0,p1,p2) {
  44791. p0 = p0|0;p1 = p1|0;p2 = p2|0; nullFunc_viii(11);
  44792. }
  44793. function _emscripten_glGetTexParameterfv__wrapper(p0,p1,p2) {
  44794. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetTexParameterfv(p0|0,p1|0,p2|0);
  44795. }
  44796. function _emscripten_glGetTexParameteriv__wrapper(p0,p1,p2) {
  44797. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetTexParameteriv(p0|0,p1|0,p2|0);
  44798. }
  44799. function _emscripten_glTexParameterfv__wrapper(p0,p1,p2) {
  44800. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glTexParameterfv(p0|0,p1|0,p2|0);
  44801. }
  44802. function _emscripten_glTexParameteriv__wrapper(p0,p1,p2) {
  44803. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glTexParameteriv(p0|0,p1|0,p2|0);
  44804. }
  44805. function _emscripten_glGetBufferParameteriv__wrapper(p0,p1,p2) {
  44806. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetBufferParameteriv(p0|0,p1|0,p2|0);
  44807. }
  44808. function _emscripten_glGetRenderbufferParameteriv__wrapper(p0,p1,p2) {
  44809. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetRenderbufferParameteriv(p0|0,p1|0,p2|0);
  44810. }
  44811. function _emscripten_glGetUniformfv__wrapper(p0,p1,p2) {
  44812. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetUniformfv(p0|0,p1|0,p2|0);
  44813. }
  44814. function _emscripten_glGetUniformiv__wrapper(p0,p1,p2) {
  44815. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetUniformiv(p0|0,p1|0,p2|0);
  44816. }
  44817. function _emscripten_glGetVertexAttribfv__wrapper(p0,p1,p2) {
  44818. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetVertexAttribfv(p0|0,p1|0,p2|0);
  44819. }
  44820. function _emscripten_glGetVertexAttribiv__wrapper(p0,p1,p2) {
  44821. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetVertexAttribiv(p0|0,p1|0,p2|0);
  44822. }
  44823. function _emscripten_glGetVertexAttribPointerv__wrapper(p0,p1,p2) {
  44824. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetVertexAttribPointerv(p0|0,p1|0,p2|0);
  44825. }
  44826. function _emscripten_glUniform2i__wrapper(p0,p1,p2) {
  44827. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform2i(p0|0,p1|0,p2|0);
  44828. }
  44829. function _emscripten_glUniform1iv__wrapper(p0,p1,p2) {
  44830. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform1iv(p0|0,p1|0,p2|0);
  44831. }
  44832. function _emscripten_glUniform2iv__wrapper(p0,p1,p2) {
  44833. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform2iv(p0|0,p1|0,p2|0);
  44834. }
  44835. function _emscripten_glUniform3iv__wrapper(p0,p1,p2) {
  44836. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform3iv(p0|0,p1|0,p2|0);
  44837. }
  44838. function _emscripten_glUniform4iv__wrapper(p0,p1,p2) {
  44839. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform4iv(p0|0,p1|0,p2|0);
  44840. }
  44841. function _emscripten_glUniform1fv__wrapper(p0,p1,p2) {
  44842. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform1fv(p0|0,p1|0,p2|0);
  44843. }
  44844. function _emscripten_glUniform2fv__wrapper(p0,p1,p2) {
  44845. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform2fv(p0|0,p1|0,p2|0);
  44846. }
  44847. function _emscripten_glUniform3fv__wrapper(p0,p1,p2) {
  44848. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform3fv(p0|0,p1|0,p2|0);
  44849. }
  44850. function _emscripten_glUniform4fv__wrapper(p0,p1,p2) {
  44851. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform4fv(p0|0,p1|0,p2|0);
  44852. }
  44853. function _emscripten_glGetShaderiv__wrapper(p0,p1,p2) {
  44854. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetShaderiv(p0|0,p1|0,p2|0);
  44855. }
  44856. function _emscripten_glGetProgramiv__wrapper(p0,p1,p2) {
  44857. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetProgramiv(p0|0,p1|0,p2|0);
  44858. }
  44859. function _emscripten_glBindAttribLocation__wrapper(p0,p1,p2) {
  44860. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glBindAttribLocation(p0|0,p1|0,p2|0);
  44861. }
  44862. function _emscripten_glGetObjectParameterivARB__wrapper(p0,p1,p2) {
  44863. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetObjectParameterivARB(p0|0,p1|0,p2|0);
  44864. }
  44865. function _emscripten_glNormalPointer__wrapper(p0,p1,p2) {
  44866. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glNormalPointer(p0|0,p1|0,p2|0);
  44867. }
  44868. function _emscripten_glDrawArrays__wrapper(p0,p1,p2) {
  44869. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glDrawArrays(p0|0,p1|0,p2|0);
  44870. }
  44871. function _emscripten_glTexParameteri__wrapper(p0,p1,p2) {
  44872. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glTexParameteri(p0|0,p1|0,p2|0);
  44873. }
  44874. function _emscripten_glStencilFunc__wrapper(p0,p1,p2) {
  44875. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glStencilFunc(p0|0,p1|0,p2|0);
  44876. }
  44877. function _emscripten_glStencilOp__wrapper(p0,p1,p2) {
  44878. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glStencilOp(p0|0,p1|0,p2|0);
  44879. }
  44880. function b12(p0,p1,p2,p3,p4) {
  44881. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4; nullFunc_vidddd(12);
  44882. }
  44883. function _emscripten_glUniform4f__wrapper(p0,p1,p2,p3,p4) {
  44884. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4; _emscripten_glUniform4f(p0|0,+p1,+p2,+p3,+p4);
  44885. }
  44886. function _emscripten_glVertexAttrib4f__wrapper(p0,p1,p2,p3,p4) {
  44887. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4; _emscripten_glVertexAttrib4f(p0|0,+p1,+p2,+p3,+p4);
  44888. }
  44889. function b13(p0,p1) {
  44890. p0 = +p0;p1 = p1|0; nullFunc_vdi(13);
  44891. }
  44892. function _emscripten_glSampleCoverage__wrapper(p0,p1) {
  44893. p0 = +p0;p1 = p1|0; _emscripten_glSampleCoverage(+p0,p1|0);
  44894. }
  44895. function b14(p0,p1,p2,p3,p4,p5,p6) {
  44896. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0;p5 = p5|0;p6 = p6|0; nullFunc_viiiiiii(14);
  44897. }
  44898. function _emscripten_glReadPixels__wrapper(p0,p1,p2,p3,p4,p5,p6) {
  44899. 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);
  44900. }
  44901. function _emscripten_glGetActiveUniform__wrapper(p0,p1,p2,p3,p4,p5,p6) {
  44902. 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);
  44903. }
  44904. function _emscripten_glGetActiveAttrib__wrapper(p0,p1,p2,p3,p4,p5,p6) {
  44905. 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);
  44906. }
  44907. function b15(p0,p1,p2,p3,p4,p5,p6,p7,p8) {
  44908. 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);
  44909. }
  44910. function _emscripten_glCompressedTexSubImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7,p8) {
  44911. 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);
  44912. }
  44913. function _emscripten_glTexImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7,p8) {
  44914. 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);
  44915. }
  44916. function _emscripten_glTexSubImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7,p8) {
  44917. 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);
  44918. }
  44919. function b16(p0,p1) {
  44920. p0 = p0|0;p1 = p1|0; nullFunc_iii(16);return 0;
  44921. }
  44922. function _emscripten_glGetUniformLocation__wrapper(p0,p1) {
  44923. p0 = p0|0;p1 = p1|0; return _emscripten_glGetUniformLocation(p0|0,p1|0)|0;
  44924. }
  44925. function _emscripten_glGetAttribLocation__wrapper(p0,p1) {
  44926. p0 = p0|0;p1 = p1|0; return _emscripten_glGetAttribLocation(p0|0,p1|0)|0;
  44927. }
  44928. function b17() {
  44929. ; nullFunc_i(17);return 0;
  44930. }
  44931. function _emscripten_glCreateProgram__wrapper() {
  44932. ; return _emscripten_glCreateProgram()|0;
  44933. }
  44934. function _emscripten_glGetError__wrapper() {
  44935. ; return _emscripten_glGetError()|0;
  44936. }
  44937. function b18(p0,p1,p2,p3,p4,p5) {
  44938. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4;p5 = +p5; nullFunc_vdddddd(18);
  44939. }
  44940. function _emscripten_glFrustum__wrapper(p0,p1,p2,p3,p4,p5) {
  44941. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4;p5 = +p5; _emscripten_glFrustum(+p0,+p1,+p2,+p3,+p4,+p5);
  44942. }
  44943. function b19(p0,p1,p2,p3) {
  44944. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3; nullFunc_vdddd(19);
  44945. }
  44946. function _emscripten_glRotatef__wrapper(p0,p1,p2,p3) {
  44947. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glRotatef(+p0,+p1,+p2,+p3);
  44948. }
  44949. function _emscripten_glClearColor__wrapper(p0,p1,p2,p3) {
  44950. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glClearColor(+p0,+p1,+p2,+p3);
  44951. }
  44952. function _emscripten_glBlendColor__wrapper(p0,p1,p2,p3) {
  44953. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glBlendColor(+p0,+p1,+p2,+p3);
  44954. }
  44955. function b20(p0,p1) {
  44956. p0 = +p0;p1 = +p1; nullFunc_vdd(20);
  44957. }
  44958. function _emscripten_glDepthRange__wrapper(p0,p1) {
  44959. p0 = +p0;p1 = +p1; _emscripten_glDepthRange(+p0,+p1);
  44960. }
  44961. function _emscripten_glDepthRangef__wrapper(p0,p1) {
  44962. p0 = +p0;p1 = +p1; _emscripten_glDepthRangef(+p0,+p1);
  44963. }
  44964. function _emscripten_glPolygonOffset__wrapper(p0,p1) {
  44965. p0 = +p0;p1 = +p1; _emscripten_glPolygonOffset(+p0,+p1);
  44966. }
  44967. function b21() {
  44968. ; nullFunc_v(21);
  44969. }
  44970. function _emscripten_glLoadIdentity__wrapper() {
  44971. ; _emscripten_glLoadIdentity();
  44972. }
  44973. function _emscripten_glReleaseShaderCompiler__wrapper() {
  44974. ; _emscripten_glReleaseShaderCompiler();
  44975. }
  44976. function _emscripten_glFinish__wrapper() {
  44977. ; _emscripten_glFinish();
  44978. }
  44979. function _emscripten_glFlush__wrapper() {
  44980. ; _emscripten_glFlush();
  44981. }
  44982. function b22(p0,p1,p2) {
  44983. p0 = p0|0;p1 = p1|0;p2 = +p2; nullFunc_viid(22);
  44984. }
  44985. function _emscripten_glTexParameterf__wrapper(p0,p1,p2) {
  44986. p0 = p0|0;p1 = p1|0;p2 = +p2; _emscripten_glTexParameterf(p0|0,p1|0,+p2);
  44987. }
  44988. function b23(p0,p1,p2,p3) {
  44989. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; nullFunc_viiii(23);
  44990. }
  44991. function _emscripten_glBufferData__wrapper(p0,p1,p2,p3) {
  44992. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glBufferData(p0|0,p1|0,p2|0,p3|0);
  44993. }
  44994. function _emscripten_glBufferSubData__wrapper(p0,p1,p2,p3) {
  44995. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glBufferSubData(p0|0,p1|0,p2|0,p3|0);
  44996. }
  44997. function _emscripten_glUniform3i__wrapper(p0,p1,p2,p3) {
  44998. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glUniform3i(p0|0,p1|0,p2|0,p3|0);
  44999. }
  45000. function _emscripten_glUniformMatrix2fv__wrapper(p0,p1,p2,p3) {
  45001. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glUniformMatrix2fv(p0|0,p1|0,p2|0,p3|0);
  45002. }
  45003. function _emscripten_glUniformMatrix3fv__wrapper(p0,p1,p2,p3) {
  45004. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glUniformMatrix3fv(p0|0,p1|0,p2|0,p3|0);
  45005. }
  45006. function _emscripten_glUniformMatrix4fv__wrapper(p0,p1,p2,p3) {
  45007. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glUniformMatrix4fv(p0|0,p1|0,p2|0,p3|0);
  45008. }
  45009. function _emscripten_glGetAttachedShaders__wrapper(p0,p1,p2,p3) {
  45010. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetAttachedShaders(p0|0,p1|0,p2|0,p3|0);
  45011. }
  45012. function _emscripten_glShaderSource__wrapper(p0,p1,p2,p3) {
  45013. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glShaderSource(p0|0,p1|0,p2|0,p3|0);
  45014. }
  45015. function _emscripten_glGetShaderSource__wrapper(p0,p1,p2,p3) {
  45016. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetShaderSource(p0|0,p1|0,p2|0,p3|0);
  45017. }
  45018. function _emscripten_glGetShaderInfoLog__wrapper(p0,p1,p2,p3) {
  45019. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetShaderInfoLog(p0|0,p1|0,p2|0,p3|0);
  45020. }
  45021. function _emscripten_glGetShaderPrecisionFormat__wrapper(p0,p1,p2,p3) {
  45022. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetShaderPrecisionFormat(p0|0,p1|0,p2|0,p3|0);
  45023. }
  45024. function _emscripten_glGetProgramInfoLog__wrapper(p0,p1,p2,p3) {
  45025. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetProgramInfoLog(p0|0,p1|0,p2|0,p3|0);
  45026. }
  45027. function _emscripten_glFramebufferRenderbuffer__wrapper(p0,p1,p2,p3) {
  45028. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glFramebufferRenderbuffer(p0|0,p1|0,p2|0,p3|0);
  45029. }
  45030. function _emscripten_glGetFramebufferAttachmentParameteriv__wrapper(p0,p1,p2,p3) {
  45031. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetFramebufferAttachmentParameteriv(p0|0,p1|0,p2|0,p3|0);
  45032. }
  45033. function _emscripten_glGetInfoLogARB__wrapper(p0,p1,p2,p3) {
  45034. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetInfoLogARB(p0|0,p1|0,p2|0,p3|0);
  45035. }
  45036. function _emscripten_glVertexPointer__wrapper(p0,p1,p2,p3) {
  45037. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glVertexPointer(p0|0,p1|0,p2|0,p3|0);
  45038. }
  45039. function _emscripten_glTexCoordPointer__wrapper(p0,p1,p2,p3) {
  45040. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glTexCoordPointer(p0|0,p1|0,p2|0,p3|0);
  45041. }
  45042. function _emscripten_glColorPointer__wrapper(p0,p1,p2,p3) {
  45043. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glColorPointer(p0|0,p1|0,p2|0,p3|0);
  45044. }
  45045. function _emscripten_glDrawElements__wrapper(p0,p1,p2,p3) {
  45046. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glDrawElements(p0|0,p1|0,p2|0,p3|0);
  45047. }
  45048. function _emscripten_glDrawArraysInstanced__wrapper(p0,p1,p2,p3) {
  45049. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glDrawArraysInstanced(p0|0,p1|0,p2|0,p3|0);
  45050. }
  45051. function _emscripten_glViewport__wrapper(p0,p1,p2,p3) {
  45052. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glViewport(p0|0,p1|0,p2|0,p3|0);
  45053. }
  45054. function _emscripten_glScissor__wrapper(p0,p1,p2,p3) {
  45055. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glScissor(p0|0,p1|0,p2|0,p3|0);
  45056. }
  45057. function _emscripten_glColorMask__wrapper(p0,p1,p2,p3) {
  45058. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glColorMask(p0|0,p1|0,p2|0,p3|0);
  45059. }
  45060. function _emscripten_glRenderbufferStorage__wrapper(p0,p1,p2,p3) {
  45061. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glRenderbufferStorage(p0|0,p1|0,p2|0,p3|0);
  45062. }
  45063. function _emscripten_glBlendFuncSeparate__wrapper(p0,p1,p2,p3) {
  45064. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glBlendFuncSeparate(p0|0,p1|0,p2|0,p3|0);
  45065. }
  45066. function _emscripten_glStencilFuncSeparate__wrapper(p0,p1,p2,p3) {
  45067. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glStencilFuncSeparate(p0|0,p1|0,p2|0,p3|0);
  45068. }
  45069. function _emscripten_glStencilOpSeparate__wrapper(p0,p1,p2,p3) {
  45070. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glStencilOpSeparate(p0|0,p1|0,p2|0,p3|0);
  45071. }
  45072. // EMSCRIPTEN_END_FUNCS
  45073. var FUNCTION_TABLE_viiiii = [b0,_KeyCallback,_emscripten_glUniform4i__wrapper,_emscripten_glFramebufferTexture2D__wrapper,_emscripten_glShaderBinary__wrapper,_emscripten_glDrawElementsInstanced__wrapper,b0,b0];
  45074. var FUNCTION_TABLE_vd = [b1,_emscripten_glClearDepth__wrapper,_emscripten_glClearDepthf__wrapper,_emscripten_glLineWidth__wrapper];
  45075. var FUNCTION_TABLE_vid = [b2,_emscripten_glUniform1f__wrapper,_emscripten_glVertexAttrib1f__wrapper,b2];
  45076. 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
  45077. ,b3,b3,b3];
  45078. 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
  45079. ,b4,b4,b4,b4,b4];
  45080. 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];
  45081. var FUNCTION_TABLE_viddd = [b6,_emscripten_glUniform3f__wrapper,_emscripten_glVertexAttrib3f__wrapper,b6];
  45082. var FUNCTION_TABLE_vidd = [b7,_MouseCursorPosCallback,_ScrollCallback,_emscripten_glUniform2f__wrapper,_emscripten_glVertexAttrib2f__wrapper,b7,b7,b7];
  45083. 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];
  45084. var FUNCTION_TABLE_viiiiiiii = [b9,_emscripten_glCompressedTexImage2D__wrapper,_emscripten_glCopyTexImage2D__wrapper,_emscripten_glCopyTexSubImage2D__wrapper];
  45085. var FUNCTION_TABLE_viiiiii = [b10,_emscripten_glDrawRangeElements__wrapper,_emscripten_glVertexAttribPointer__wrapper,b10];
  45086. 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];
  45087. var FUNCTION_TABLE_vidddd = [b12,_emscripten_glUniform4f__wrapper,_emscripten_glVertexAttrib4f__wrapper,b12];
  45088. var FUNCTION_TABLE_vdi = [b13,_emscripten_glSampleCoverage__wrapper];
  45089. var FUNCTION_TABLE_viiiiiii = [b14,_emscripten_glReadPixels__wrapper,_emscripten_glGetActiveUniform__wrapper,_emscripten_glGetActiveAttrib__wrapper];
  45090. var FUNCTION_TABLE_viiiiiiiii = [b15,_emscripten_glCompressedTexSubImage2D__wrapper,_emscripten_glTexImage2D__wrapper,_emscripten_glTexSubImage2D__wrapper];
  45091. var FUNCTION_TABLE_iii = [b16,_emscripten_glGetUniformLocation__wrapper,_emscripten_glGetAttribLocation__wrapper,b16];
  45092. var FUNCTION_TABLE_i = [b17,_emscripten_glCreateProgram__wrapper,_emscripten_glGetError__wrapper,b17];
  45093. var FUNCTION_TABLE_vdddddd = [b18,_emscripten_glFrustum__wrapper];
  45094. var FUNCTION_TABLE_vdddd = [b19,_emscripten_glRotatef__wrapper,_emscripten_glClearColor__wrapper,_emscripten_glBlendColor__wrapper];
  45095. var FUNCTION_TABLE_vdd = [b20,_emscripten_glDepthRange__wrapper,_emscripten_glDepthRangef__wrapper,_emscripten_glPolygonOffset__wrapper];
  45096. var FUNCTION_TABLE_v = [b21,_UpdateDrawFrame,_emscripten_glLoadIdentity__wrapper,_emscripten_glReleaseShaderCompiler__wrapper,_emscripten_glFinish__wrapper,_emscripten_glFlush__wrapper,b21,b21];
  45097. var FUNCTION_TABLE_viid = [b22,_emscripten_glTexParameterf__wrapper];
  45098. 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];
  45099. 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 };
  45100. })
  45101. // EMSCRIPTEN_END_ASM
  45102. (Module.asmGlobalArg, Module.asmLibraryArg, buffer);
  45103. var real__roundf = asm["_roundf"]; asm["_roundf"] = function() {
  45104. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  45105. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  45106. return real__roundf.apply(null, arguments);
  45107. };
  45108. var real__main = asm["_main"]; asm["_main"] = function() {
  45109. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  45110. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  45111. return real__main.apply(null, arguments);
  45112. };
  45113. var real_stackSave = asm["stackSave"]; asm["stackSave"] = function() {
  45114. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  45115. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  45116. return real_stackSave.apply(null, arguments);
  45117. };
  45118. var real_getTempRet0 = asm["getTempRet0"]; asm["getTempRet0"] = function() {
  45119. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  45120. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  45121. return real_getTempRet0.apply(null, arguments);
  45122. };
  45123. var real__llvm_cttz_i32 = asm["_llvm_cttz_i32"]; asm["_llvm_cttz_i32"] = function() {
  45124. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  45125. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  45126. return real__llvm_cttz_i32.apply(null, arguments);
  45127. };
  45128. var real_setThrew = asm["setThrew"]; asm["setThrew"] = function() {
  45129. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  45130. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  45131. return real_setThrew.apply(null, arguments);
  45132. };
  45133. var real__bitshift64Lshr = asm["_bitshift64Lshr"]; asm["_bitshift64Lshr"] = function() {
  45134. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  45135. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  45136. return real__bitshift64Lshr.apply(null, arguments);
  45137. };
  45138. var real__bitshift64Shl = asm["_bitshift64Shl"]; asm["_bitshift64Shl"] = function() {
  45139. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  45140. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  45141. return real__bitshift64Shl.apply(null, arguments);
  45142. };
  45143. var real__fflush = asm["_fflush"]; asm["_fflush"] = function() {
  45144. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  45145. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  45146. return real__fflush.apply(null, arguments);
  45147. };
  45148. var real__sbrk = asm["_sbrk"]; asm["_sbrk"] = function() {
  45149. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  45150. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  45151. return real__sbrk.apply(null, arguments);
  45152. };
  45153. var real__llvm_bswap_i32 = asm["_llvm_bswap_i32"]; asm["_llvm_bswap_i32"] = function() {
  45154. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  45155. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  45156. return real__llvm_bswap_i32.apply(null, arguments);
  45157. };
  45158. var real____muldi3 = asm["___muldi3"]; asm["___muldi3"] = function() {
  45159. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  45160. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  45161. return real____muldi3.apply(null, arguments);
  45162. };
  45163. var real____uremdi3 = asm["___uremdi3"]; asm["___uremdi3"] = function() {
  45164. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  45165. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  45166. return real____uremdi3.apply(null, arguments);
  45167. };
  45168. var real_stackAlloc = asm["stackAlloc"]; asm["stackAlloc"] = function() {
  45169. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  45170. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  45171. return real_stackAlloc.apply(null, arguments);
  45172. };
  45173. var real__i64Subtract = asm["_i64Subtract"]; asm["_i64Subtract"] = function() {
  45174. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  45175. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  45176. return real__i64Subtract.apply(null, arguments);
  45177. };
  45178. var real____udivmoddi4 = asm["___udivmoddi4"]; asm["___udivmoddi4"] = function() {
  45179. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  45180. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  45181. return real____udivmoddi4.apply(null, arguments);
  45182. };
  45183. var real_setTempRet0 = asm["setTempRet0"]; asm["setTempRet0"] = function() {
  45184. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  45185. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  45186. return real_setTempRet0.apply(null, arguments);
  45187. };
  45188. var real__i64Add = asm["_i64Add"]; asm["_i64Add"] = function() {
  45189. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  45190. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  45191. return real__i64Add.apply(null, arguments);
  45192. };
  45193. var real__emscripten_get_global_libc = asm["_emscripten_get_global_libc"]; asm["_emscripten_get_global_libc"] = function() {
  45194. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  45195. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  45196. return real__emscripten_get_global_libc.apply(null, arguments);
  45197. };
  45198. var real__emscripten_GetProcAddress = asm["_emscripten_GetProcAddress"]; asm["_emscripten_GetProcAddress"] = function() {
  45199. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  45200. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  45201. return real__emscripten_GetProcAddress.apply(null, arguments);
  45202. };
  45203. var real____udivdi3 = asm["___udivdi3"]; asm["___udivdi3"] = function() {
  45204. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  45205. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  45206. return real____udivdi3.apply(null, arguments);
  45207. };
  45208. var real____errno_location = asm["___errno_location"]; asm["___errno_location"] = function() {
  45209. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  45210. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  45211. return real____errno_location.apply(null, arguments);
  45212. };
  45213. var real____muldsi3 = asm["___muldsi3"]; asm["___muldsi3"] = function() {
  45214. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  45215. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  45216. return real____muldsi3.apply(null, arguments);
  45217. };
  45218. var real__free = asm["_free"]; asm["_free"] = function() {
  45219. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  45220. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  45221. return real__free.apply(null, arguments);
  45222. };
  45223. var real_establishStackSpace = asm["establishStackSpace"]; asm["establishStackSpace"] = function() {
  45224. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  45225. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  45226. return real_establishStackSpace.apply(null, arguments);
  45227. };
  45228. var real__memmove = asm["_memmove"]; asm["_memmove"] = function() {
  45229. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  45230. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  45231. return real__memmove.apply(null, arguments);
  45232. };
  45233. var real__strstr = asm["_strstr"]; asm["_strstr"] = function() {
  45234. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  45235. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  45236. return real__strstr.apply(null, arguments);
  45237. };
  45238. var real_stackRestore = asm["stackRestore"]; asm["stackRestore"] = function() {
  45239. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  45240. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  45241. return real_stackRestore.apply(null, arguments);
  45242. };
  45243. var real__malloc = asm["_malloc"]; asm["_malloc"] = function() {
  45244. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  45245. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  45246. return real__malloc.apply(null, arguments);
  45247. };
  45248. var _roundf = Module["_roundf"] = asm["_roundf"];
  45249. var _main = Module["_main"] = asm["_main"];
  45250. var stackSave = Module["stackSave"] = asm["stackSave"];
  45251. var getTempRet0 = Module["getTempRet0"] = asm["getTempRet0"];
  45252. var _llvm_cttz_i32 = Module["_llvm_cttz_i32"] = asm["_llvm_cttz_i32"];
  45253. var setThrew = Module["setThrew"] = asm["setThrew"];
  45254. var _bitshift64Lshr = Module["_bitshift64Lshr"] = asm["_bitshift64Lshr"];
  45255. var _bitshift64Shl = Module["_bitshift64Shl"] = asm["_bitshift64Shl"];
  45256. var _fflush = Module["_fflush"] = asm["_fflush"];
  45257. var _memset = Module["_memset"] = asm["_memset"];
  45258. var _sbrk = Module["_sbrk"] = asm["_sbrk"];
  45259. var _memcpy = Module["_memcpy"] = asm["_memcpy"];
  45260. var _llvm_bswap_i32 = Module["_llvm_bswap_i32"] = asm["_llvm_bswap_i32"];
  45261. var ___muldi3 = Module["___muldi3"] = asm["___muldi3"];
  45262. var ___uremdi3 = Module["___uremdi3"] = asm["___uremdi3"];
  45263. var stackAlloc = Module["stackAlloc"] = asm["stackAlloc"];
  45264. var _i64Subtract = Module["_i64Subtract"] = asm["_i64Subtract"];
  45265. var ___udivmoddi4 = Module["___udivmoddi4"] = asm["___udivmoddi4"];
  45266. var setTempRet0 = Module["setTempRet0"] = asm["setTempRet0"];
  45267. var _i64Add = Module["_i64Add"] = asm["_i64Add"];
  45268. var _emscripten_get_global_libc = Module["_emscripten_get_global_libc"] = asm["_emscripten_get_global_libc"];
  45269. var _emscripten_GetProcAddress = Module["_emscripten_GetProcAddress"] = asm["_emscripten_GetProcAddress"];
  45270. var ___udivdi3 = Module["___udivdi3"] = asm["___udivdi3"];
  45271. var ___errno_location = Module["___errno_location"] = asm["___errno_location"];
  45272. var ___muldsi3 = Module["___muldsi3"] = asm["___muldsi3"];
  45273. var _free = Module["_free"] = asm["_free"];
  45274. var runPostSets = Module["runPostSets"] = asm["runPostSets"];
  45275. var establishStackSpace = Module["establishStackSpace"] = asm["establishStackSpace"];
  45276. var _memmove = Module["_memmove"] = asm["_memmove"];
  45277. var _strstr = Module["_strstr"] = asm["_strstr"];
  45278. var stackRestore = Module["stackRestore"] = asm["stackRestore"];
  45279. var _malloc = Module["_malloc"] = asm["_malloc"];
  45280. var dynCall_viiiii = Module["dynCall_viiiii"] = asm["dynCall_viiiii"];
  45281. var dynCall_vd = Module["dynCall_vd"] = asm["dynCall_vd"];
  45282. var dynCall_vid = Module["dynCall_vid"] = asm["dynCall_vid"];
  45283. var dynCall_vi = Module["dynCall_vi"] = asm["dynCall_vi"];
  45284. var dynCall_vii = Module["dynCall_vii"] = asm["dynCall_vii"];
  45285. var dynCall_ii = Module["dynCall_ii"] = asm["dynCall_ii"];
  45286. var dynCall_viddd = Module["dynCall_viddd"] = asm["dynCall_viddd"];
  45287. var dynCall_vidd = Module["dynCall_vidd"] = asm["dynCall_vidd"];
  45288. var dynCall_iiii = Module["dynCall_iiii"] = asm["dynCall_iiii"];
  45289. var dynCall_viiiiiiii = Module["dynCall_viiiiiiii"] = asm["dynCall_viiiiiiii"];
  45290. var dynCall_viiiiii = Module["dynCall_viiiiii"] = asm["dynCall_viiiiii"];
  45291. var dynCall_viii = Module["dynCall_viii"] = asm["dynCall_viii"];
  45292. var dynCall_vidddd = Module["dynCall_vidddd"] = asm["dynCall_vidddd"];
  45293. var dynCall_vdi = Module["dynCall_vdi"] = asm["dynCall_vdi"];
  45294. var dynCall_viiiiiii = Module["dynCall_viiiiiii"] = asm["dynCall_viiiiiii"];
  45295. var dynCall_viiiiiiiii = Module["dynCall_viiiiiiiii"] = asm["dynCall_viiiiiiiii"];
  45296. var dynCall_iii = Module["dynCall_iii"] = asm["dynCall_iii"];
  45297. var dynCall_i = Module["dynCall_i"] = asm["dynCall_i"];
  45298. var dynCall_vdddddd = Module["dynCall_vdddddd"] = asm["dynCall_vdddddd"];
  45299. var dynCall_vdddd = Module["dynCall_vdddd"] = asm["dynCall_vdddd"];
  45300. var dynCall_vdd = Module["dynCall_vdd"] = asm["dynCall_vdd"];
  45301. var dynCall_v = Module["dynCall_v"] = asm["dynCall_v"];
  45302. var dynCall_viid = Module["dynCall_viid"] = asm["dynCall_viid"];
  45303. var dynCall_viiii = Module["dynCall_viiii"] = asm["dynCall_viiii"];
  45304. ;
  45305. Runtime.stackAlloc = Module['stackAlloc'];
  45306. Runtime.stackSave = Module['stackSave'];
  45307. Runtime.stackRestore = Module['stackRestore'];
  45308. Runtime.establishStackSpace = Module['establishStackSpace'];
  45309. Runtime.setTempRet0 = Module['setTempRet0'];
  45310. Runtime.getTempRet0 = Module['getTempRet0'];
  45311. // === Auto-generated postamble setup entry stuff ===
  45312. Module['asm'] = asm;
  45313. function ExitStatus(status) {
  45314. this.name = "ExitStatus";
  45315. this.message = "Program terminated with exit(" + status + ")";
  45316. this.status = status;
  45317. };
  45318. ExitStatus.prototype = new Error();
  45319. ExitStatus.prototype.constructor = ExitStatus;
  45320. var initialStackTop;
  45321. var preloadStartTime = null;
  45322. var calledMain = false;
  45323. dependenciesFulfilled = function runCaller() {
  45324. // If run has never been called, and we should call run (INVOKE_RUN is true, and Module.noInitialRun is not false)
  45325. if (!Module['calledRun']) run();
  45326. if (!Module['calledRun']) dependenciesFulfilled = runCaller; // try this again later, after new deps are fulfilled
  45327. }
  45328. Module['callMain'] = Module.callMain = function callMain(args) {
  45329. assert(runDependencies == 0, 'cannot call main when async dependencies remain! (listen on __ATMAIN__)');
  45330. assert(__ATPRERUN__.length == 0, 'cannot call main when preRun functions remain to be called');
  45331. args = args || [];
  45332. ensureInitRuntime();
  45333. var argc = args.length+1;
  45334. function pad() {
  45335. for (var i = 0; i < 4-1; i++) {
  45336. argv.push(0);
  45337. }
  45338. }
  45339. var argv = [allocate(intArrayFromString(Module['thisProgram']), 'i8', ALLOC_NORMAL) ];
  45340. pad();
  45341. for (var i = 0; i < argc-1; i = i + 1) {
  45342. argv.push(allocate(intArrayFromString(args[i]), 'i8', ALLOC_NORMAL));
  45343. pad();
  45344. }
  45345. argv.push(0);
  45346. argv = allocate(argv, 'i32', ALLOC_NORMAL);
  45347. try {
  45348. var ret = Module['_main'](argc, argv, 0);
  45349. // if we're not running an evented main loop, it's time to exit
  45350. exit(ret, /* implicit = */ true);
  45351. }
  45352. catch(e) {
  45353. if (e instanceof ExitStatus) {
  45354. // exit() throws this once it's done to make sure execution
  45355. // has been stopped completely
  45356. return;
  45357. } else if (e == 'SimulateInfiniteLoop') {
  45358. // running an evented main loop, don't immediately exit
  45359. Module['noExitRuntime'] = true;
  45360. return;
  45361. } else {
  45362. var toLog = e;
  45363. if (e && typeof e === 'object' && e.stack) {
  45364. toLog = [e, e.stack];
  45365. }
  45366. Module.printErr('exception thrown: ' + toLog);
  45367. Module['quit'](1, e);
  45368. }
  45369. } finally {
  45370. calledMain = true;
  45371. }
  45372. }
  45373. function run(args) {
  45374. args = args || Module['arguments'];
  45375. if (preloadStartTime === null) preloadStartTime = Date.now();
  45376. if (runDependencies > 0) {
  45377. Module.printErr('run() called, but dependencies remain, so not running');
  45378. return;
  45379. }
  45380. writeStackCookie();
  45381. preRun();
  45382. if (runDependencies > 0) return; // a preRun added a dependency, run will be called later
  45383. if (Module['calledRun']) return; // run may have just been called through dependencies being fulfilled just in this very frame
  45384. function doRun() {
  45385. if (Module['calledRun']) return; // run may have just been called while the async setStatus time below was happening
  45386. Module['calledRun'] = true;
  45387. if (ABORT) return;
  45388. ensureInitRuntime();
  45389. preMain();
  45390. if (ENVIRONMENT_IS_WEB && preloadStartTime !== null) {
  45391. Module.printErr('pre-main prep time: ' + (Date.now() - preloadStartTime) + ' ms');
  45392. }
  45393. if (Module['onRuntimeInitialized']) Module['onRuntimeInitialized']();
  45394. if (Module['_main'] && shouldRunNow) Module['callMain'](args);
  45395. postRun();
  45396. }
  45397. if (Module['setStatus']) {
  45398. Module['setStatus']('Running...');
  45399. setTimeout(function() {
  45400. setTimeout(function() {
  45401. Module['setStatus']('');
  45402. }, 1);
  45403. doRun();
  45404. }, 1);
  45405. } else {
  45406. doRun();
  45407. }
  45408. checkStackCookie();
  45409. }
  45410. Module['run'] = Module.run = run;
  45411. function exit(status, implicit) {
  45412. if (implicit && Module['noExitRuntime']) {
  45413. 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)');
  45414. return;
  45415. }
  45416. if (Module['noExitRuntime']) {
  45417. 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)');
  45418. } else {
  45419. ABORT = true;
  45420. EXITSTATUS = status;
  45421. STACKTOP = initialStackTop;
  45422. exitRuntime();
  45423. if (Module['onExit']) Module['onExit'](status);
  45424. }
  45425. if (ENVIRONMENT_IS_NODE) {
  45426. process['exit'](status);
  45427. }
  45428. Module['quit'](status, new ExitStatus(status));
  45429. }
  45430. Module['exit'] = Module.exit = exit;
  45431. var abortDecorators = [];
  45432. function abort(what) {
  45433. if (what !== undefined) {
  45434. Module.print(what);
  45435. Module.printErr(what);
  45436. what = JSON.stringify(what)
  45437. } else {
  45438. what = '';
  45439. }
  45440. ABORT = true;
  45441. EXITSTATUS = 1;
  45442. var extra = '';
  45443. var output = 'abort(' + what + ') at ' + stackTrace() + extra;
  45444. if (abortDecorators) {
  45445. abortDecorators.forEach(function(decorator) {
  45446. output = decorator(output, what);
  45447. });
  45448. }
  45449. throw output;
  45450. }
  45451. Module['abort'] = Module.abort = abort;
  45452. // {{PRE_RUN_ADDITIONS}}
  45453. if (Module['preInit']) {
  45454. if (typeof Module['preInit'] == 'function') Module['preInit'] = [Module['preInit']];
  45455. while (Module['preInit'].length > 0) {
  45456. Module['preInit'].pop()();
  45457. }
  45458. }
  45459. // shouldRunNow refers to calling main(), not run().
  45460. var shouldRunNow = true;
  45461. if (Module['noInitialRun']) {
  45462. shouldRunNow = false;
  45463. }
  45464. run();
  45465. // {{POST_RUN_ADDITIONS}}
  45466. // {{MODULE_ADDITIONS}}