shaders_postprocessing.js 1.6 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997
  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_postprocessing.data';
  20. var REMOTE_PACKAGE_BASE = 'shaders_postprocessing.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_postprocessing.data');
  144. };
  145. Module['addRunDependency']('datafile_shaders/shaders_postprocessing.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": 4023423, "filename": "/resources/shaders/glsl100/base.fs"}, {"audio": 0, "start": 4023423, "crunched": 0, "end": 4024028, "filename": "/resources/shaders/glsl100/base.vs"}, {"audio": 0, "start": 4024028, "crunched": 0, "end": 4025108, "filename": "/resources/shaders/glsl100/bloom.fs"}, {"audio": 0, "start": 4025108, "crunched": 0, "end": 4026178, "filename": "/resources/shaders/glsl100/blur.fs"}, {"audio": 0, "start": 4026178, "crunched": 0, "end": 4027346, "filename": "/resources/shaders/glsl100/cross_hatching.fs"}, {"audio": 0, "start": 4027346, "crunched": 0, "end": 4028771, "filename": "/resources/shaders/glsl100/cross_stitching.fs"}, {"audio": 0, "start": 4028771, "crunched": 0, "end": 4030960, "filename": "/resources/shaders/glsl100/distortion.fs"}, {"audio": 0, "start": 4030960, "crunched": 0, "end": 4032107, "filename": "/resources/shaders/glsl100/dream_vision.fs"}, {"audio": 0, "start": 4032107, "crunched": 0, "end": 4033036, "filename": "/resources/shaders/glsl100/fisheye.fs"}, {"audio": 0, "start": 4033036, "crunched": 0, "end": 4033701, "filename": "/resources/shaders/glsl100/grayscale.fs"}, {"audio": 0, "start": 4033701, "crunched": 0, "end": 4034456, "filename": "/resources/shaders/glsl100/pixelizer.fs"}, {"audio": 0, "start": 4034456, "crunched": 0, "end": 4035085, "filename": "/resources/shaders/glsl100/posterization.fs"}, {"audio": 0, "start": 4035085, "crunched": 0, "end": 4035827, "filename": "/resources/shaders/glsl100/predator.fs"}, {"audio": 0, "start": 4035827, "crunched": 0, "end": 4036947, "filename": "/resources/shaders/glsl100/scanlines.fs"}, {"audio": 0, "start": 4036947, "crunched": 0, "end": 4038590, "filename": "/resources/shaders/glsl100/sobel.fs"}, {"audio": 0, "start": 4038590, "crunched": 0, "end": 4039631, "filename": "/resources/shaders/glsl100/swirl.fs"}], "remote_package_size": 4039631, "package_uuid": "09621c9e-8caf-4662-85f4-3a180518546b"});
  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 + 25904;
  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,56,20,0,0,66,20,0,0,80,20,0,0,93,20,0,0,103,20,0,0,118,20,0,0,134,20,0,0,148,20,0,0,158,20,0,0,166,20,0,0,172,20,0,0,178,20,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,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,205,204,12,64,0,0,128,63,0,0,128,63,46,186,232,62,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,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,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,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,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,1,0,0,0,1,0,0,0,0,0,128,191,20,0,0,0,255,255,255,255,205,204,236,63,2,0,0,0,86,1,0,0,85,1,0,0,87,0,0,0,83,0,0,0,68,0,0,0,65,0,0,0,69,0,0,0,81,0,0,0,255,255,255,255,0,1,0,0,255,255,255,255,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,188,89,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,124,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,39,97,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,124,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,112,111,115,116,112,114,111,99,101,115,115,105,110,103,32,115,104,97,100,101,114,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,37,105,47,103,114,97,121,115,99,97,108,101,46,102,115,0,114,101,115,111,117,114,99,101,115,47,115,104,97,100,101,114,115,47,103,108,115,108,37,105,47,112,111,115,116,101,114,105,122,97,116,105,111,110,46,102,115,0,114,101,115,111,117,114,99,101,115,47,115,104,97,100,101,114,115,47,103,108,115,108,37,105,47,100,114,101,97,109,95,118,105,115,105,111,110,46,102,115,0,114,101,115,111,117,114,99,101,115,47,115,104,97,100,101,114,115,47,103,108,115,108,37,105,47,112,105,120,101,108,105,122,101,114,46,102,115,0,114,101,115,111,117,114,99,101,115,47,115,104,97,100,101,114,115,47,103,108,115,108,37,105,47,99,114,111,115,115,95,104,97,116,99,104,105,110,103,46,102,115,0,114,101,115,111,117,114,99,101,115,47,115,104,97,100,101,114,115,47,103,108,115,108,37,105,47,99,114,111,115,115,95,115,116,105,116,99,104,105,110,103,46,102,115,0,114,101,115,111,117,114,99,101,115,47,115,104,97,100,101,114,115,47,103,108,115,108,37,105,47,112,114,101,100,97,116,111,114,46,102,115,0,114,101,115,111,117,114,99,101,115,47,115,104,97,100,101,114,115,47,103,108,115,108,37,105,47,115,99,97,110,108,105,110,101,115,46,102,115,0,114,101,115,111,117,114,99,101,115,47,115,104,97,100,101,114,115,47,103,108,115,108,37,105,47,102,105,115,104,101,121,101,46,102,115,0,114,101,115,111,117,114,99,101,115,47,115,104,97,100,101,114,115,47,103,108,115,108,37,105,47,115,111,98,101,108,46,102,115,0,114,101,115,111,117,114,99,101,115,47,115,104,97,100,101,114,115,47,103,108,115,108,37,105,47,98,108,111,111,109,46,102,115,0,114,101,115,111,117,114,99,101,115,47,115,104,97,100,101,114,115,47,103,108,115,108,37,105,47,98,108,117,114,46,102,115,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,67,85,82,82,69,78,84,32,80,79,83,84,80,82,79,32,83,72,65,68,69,82,58,0,60,32,62,0,71,82,65,89,83,67,65,76,69,0,80,79,83,84,69,82,73,90,65,84,73,79,78,0,68,82,69,65,77,95,86,73,83,73,79,78,0,80,73,88,69,76,73,90,69,82,0,67,82,79,83,83,95,72,65,84,67,72,73,78,71,0,67,82,79,83,83,95,83,84,73,84,67,72,73,78,71,0,80,82,69,68,65,84,79,82,95,86,73,69,87,0,83,67,65,78,76,73,78,69,83,0,70,73,83,72,69,89,69,0,83,79,66,69,76,0,66,76,79,79,77,0,66,76,85,82,0,5,5,4,0,2,3,7,0,3,3,11,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,73,78,70,79,58,32,0,87,65,82,78,73,78,71,58,32,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,91,84,69,88,32,73,68,32,37,105,93,32,80,97,114,97,109,101,116,101,114,115,58,32,37,105,120,37,105,44,32,37,105,32,109,105,112,115,44,32,102,111,114,109,97,116,32,37,105,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,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,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,114,98,0,46,104,100,114,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,32,40,111,110,108,121,32,51,32,99,104,97,110,110,101,108,32,51,50,32,98,105,116,32,102,108,111,97,116,115,41,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,117,110,107,110,111,119,110,32,105,109,97,103,101,32,116,121,112,101,0,111,117,116,111,102,109,101,109,0,114,105,46,98,105,116,115,95,112,101,114,95,99,104,97,110,110,101,108,32,61,61,32,49,54,0,46,47,101,120,116,101,114,110,97,108,47,115,116,98,95,105,109,97,103,101,46,104,0,115,116,98,105,95,95,108,111,97,100,95,97,110,100,95,112,111,115,116,112,114,111,99,101,115,115,95,56,98,105,116,0,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,16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15,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,35,63,82,65,68,73,65,78,67,69,0,35,63,82,71,66,69,0,110,111,116,32,72,68,82,0,70,79,82,77,65,84,61,51,50,45,98,105,116,95,114,108,101,95,114,103,98,101,0,117,110,115,117,112,112,111,114,116,101,100,32,102,111,114,109,97,116,0,45,89,32,0,117,110,115,117,112,112,111,114,116,101,100,32,100,97,116,97,32,108,97,121,111,117,116,0,43,88,32,0,105,110,118,97,108,105,100,32,100,101,99,111,100,101,100,32,115,99,97,110,108,105,110,101,32,108,101,110,103,116,104,0,99,111,114,114,117,112,116,0,35,63,82,65,68,73,65,78,67,69,10,0,35,63,82,71,66,69,10,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,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,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,37,50,105,32,70,80,83,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,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,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,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,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,118,101,114,116,105,99,101,115,58,32,37,105,0,91,37,115,93,32,77,111,100,101,108,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,111,114,109,97,108,115,58,32,37,105,0,91,37,115,93,32,77,111,100,101,108,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,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,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,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,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,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,79,69,83,95,116,101,120,116,117,114,101,95,102,108,111,97,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], "i8", ALLOC_NONE, Runtime.GLOBAL_BASE);
  1566. /* memory initializer */ allocate([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,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,114,116,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,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. var _llvm_pow_f64=Math_pow;
  6988. function _emscripten_glCopyTexImage2D(x0, x1, x2, x3, x4, x5, x6, x7) { GLctx['copyTexImage2D'](x0, x1, x2, x3, x4, x5, x6, x7) }
  6989. function _emscripten_glTexParameterfv(target, pname, params) {
  6990. var param = HEAPF32[((params)>>2)];
  6991. GLctx.texParameterf(target, pname, param);
  6992. }
  6993. function _emscripten_glLinkProgram(program) {
  6994. GLctx.linkProgram(GL.programs[program]);
  6995. GL.programInfos[program] = null; // uniforms no longer keep the same names after linking
  6996. GL.populateUniformTable(program);
  6997. }
  6998. function _glUniform1f(location, v0) {
  6999. GLctx.uniform1f(GL.uniforms[location], v0);
  7000. }
  7001. function _emscripten_glUniform3f(location, v0, v1, v2) {
  7002. GLctx.uniform3f(GL.uniforms[location], v0, v1, v2);
  7003. }
  7004. function _emscripten_glGetObjectParameterivARB() {
  7005. Module['printErr']('missing function: emscripten_glGetObjectParameterivARB'); abort(-1);
  7006. }
  7007. function _emscripten_glBlendFunc(x0, x1) { GLctx['blendFunc'](x0, x1) }
  7008. function _emscripten_glUniform3i(location, v0, v1, v2) {
  7009. GLctx.uniform3i(GL.uniforms[location], v0, v1, v2);
  7010. }
  7011. function _emscripten_glStencilOp(x0, x1, x2) { GLctx['stencilOp'](x0, x1, x2) }
  7012. function _glCreateShader(shaderType) {
  7013. var id = GL.getNewId(GL.shaders);
  7014. GL.shaders[id] = GLctx.createShader(shaderType);
  7015. return id;
  7016. }
  7017. function _glUniform1i(location, v0) {
  7018. GLctx.uniform1i(GL.uniforms[location], v0);
  7019. }
  7020. function _emscripten_glBindAttribLocation(program, index, name) {
  7021. name = Pointer_stringify(name);
  7022. GLctx.bindAttribLocation(GL.programs[program], index, name);
  7023. }
  7024. function _glGenRenderbuffers(n, renderbuffers) {
  7025. for (var i = 0; i < n; i++) {
  7026. var renderbuffer = GLctx.createRenderbuffer();
  7027. if (!renderbuffer) {
  7028. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  7029. while(i < n) HEAP32[(((renderbuffers)+(i++*4))>>2)]=0;
  7030. return;
  7031. }
  7032. var id = GL.getNewId(GL.renderbuffers);
  7033. renderbuffer.name = id;
  7034. GL.renderbuffers[id] = renderbuffer;
  7035. HEAP32[(((renderbuffers)+(i*4))>>2)]=id;
  7036. }
  7037. }
  7038. function _glCompressedTexImage2D(target, level, internalFormat, width, height, border, imageSize, data) {
  7039. GLctx['compressedTexImage2D'](target, level, internalFormat, width, height, border, data ? HEAPU8.subarray((data),(data+imageSize)) : null);
  7040. }
  7041. function _glDisable(x0) { GLctx['disable'](x0) }
  7042. function _glfwGetMouseButton(winid, button) {
  7043. return GLFW.getMouseButton(winid, button);
  7044. }
  7045. function _emscripten_glEnableVertexAttribArray(index) {
  7046. GLctx.enableVertexAttribArray(index);
  7047. }
  7048. Module["_memset"] = _memset;
  7049. function _glfwMakeContextCurrent(winid) {}
  7050. function _emscripten_set_touchcancel_callback(target, userData, useCapture, callbackfunc) {
  7051. JSEvents.registerTouchEventCallback(target, userData, useCapture, callbackfunc, 25, "touchcancel");
  7052. return 0;
  7053. }
  7054. function _glBindFramebuffer(target, framebuffer) {
  7055. GLctx.bindFramebuffer(target, framebuffer ? GL.framebuffers[framebuffer] : null);
  7056. }
  7057. function ___lock() {}
  7058. function _emscripten_glBlendFuncSeparate(x0, x1, x2, x3) { GLctx['blendFuncSeparate'](x0, x1, x2, x3) }
  7059. function _glCullFace(x0) { GLctx['cullFace'](x0) }
  7060. function _emscripten_glGetVertexAttribPointerv(index, pname, pointer) {
  7061. if (!pointer) {
  7062. // GLES2 specification does not specify how to behave if pointer is a null pointer. Since calling this function does not make sense
  7063. // if pointer == null, issue a GL error to notify user about it.
  7064. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7065. return;
  7066. }
  7067. HEAP32[((pointer)>>2)]=GLctx.getVertexAttribOffset(index, pname);
  7068. }
  7069. function _emscripten_glVertexAttrib3f(x0, x1, x2, x3) { GLctx['vertexAttrib3f'](x0, x1, x2, x3) }
  7070. function _emscripten_glEnable(x0) { GLctx['enable'](x0) }
  7071. function _emscripten_glNormalPointer() {
  7072. Module['printErr']('missing function: emscripten_glNormalPointer'); abort(-1);
  7073. }
  7074. var _emscripten_GetProcAddress=undefined;
  7075. Module["_emscripten_GetProcAddress"] = _emscripten_GetProcAddress;
  7076. var EGL={errorCode:12288,defaultDisplayInitialized:false,currentContext:0,currentReadSurface:0,currentDrawSurface:0,stringCache:{},setErrorCode:function (code) {
  7077. EGL.errorCode = code;
  7078. },chooseConfig:function (display, attribList, config, config_size, numConfigs) {
  7079. if (display != 62000 /* Magic ID for Emscripten 'default display' */) {
  7080. EGL.setErrorCode(0x3008 /* EGL_BAD_DISPLAY */);
  7081. return 0;
  7082. }
  7083. // TODO: read attribList.
  7084. if ((!config || !config_size) && !numConfigs) {
  7085. EGL.setErrorCode(0x300C /* EGL_BAD_PARAMETER */);
  7086. return 0;
  7087. }
  7088. if (numConfigs) {
  7089. HEAP32[((numConfigs)>>2)]=1; // Total number of supported configs: 1.
  7090. }
  7091. if (config && config_size > 0) {
  7092. HEAP32[((config)>>2)]=62002;
  7093. }
  7094. EGL.setErrorCode(0x3000 /* EGL_SUCCESS */);
  7095. return 1;
  7096. }};function _eglGetProcAddress(name_) {
  7097. return _emscripten_GetProcAddress(name_);
  7098. }
  7099. function _glDeleteProgram(id) {
  7100. if (!id) return;
  7101. var program = GL.programs[id];
  7102. if (!program) { // glDeleteProgram actually signals an error when deleting a nonexisting object, unlike some other GL delete functions.
  7103. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7104. return;
  7105. }
  7106. GLctx.deleteProgram(program);
  7107. program.name = 0;
  7108. GL.programs[id] = null;
  7109. GL.programInfos[id] = null;
  7110. }
  7111. function _glRenderbufferStorage(x0, x1, x2, x3) { GLctx['renderbufferStorage'](x0, x1, x2, x3) }
  7112. function _emscripten_get_pointerlock_status(pointerlockStatus) {
  7113. if (pointerlockStatus) JSEvents.fillPointerlockChangeEventData(pointerlockStatus);
  7114. if (!document.body || (!document.body.requestPointerLock && !document.body.mozRequestPointerLock && !document.body.webkitRequestPointerLock && !document.body.msRequestPointerLock)) {
  7115. return -1;
  7116. }
  7117. return 0;
  7118. }
  7119. function _glAttachShader(program, shader) {
  7120. GLctx.attachShader(GL.programs[program],
  7121. GL.shaders[shader]);
  7122. }
  7123. function _glfwGetPrimaryMonitor() {
  7124. return 1;
  7125. }
  7126. function emscriptenWebGLGetVertexAttrib(index, pname, params, type) {
  7127. if (!params) {
  7128. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  7129. // if params == null, issue a GL error to notify user about it.
  7130. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7131. return;
  7132. }
  7133. var data = GLctx.getVertexAttrib(index, pname);
  7134. if (pname == 0x889F/*VERTEX_ATTRIB_ARRAY_BUFFER_BINDING*/) {
  7135. HEAP32[((params)>>2)]=data["name"];
  7136. } else if (typeof data == 'number' || typeof data == 'boolean') {
  7137. switch (type) {
  7138. case 'Integer': HEAP32[((params)>>2)]=data; break;
  7139. case 'Float': HEAPF32[((params)>>2)]=data; break;
  7140. case 'FloatToInteger': HEAP32[((params)>>2)]=Math.fround(data); break;
  7141. default: throw 'internal emscriptenWebGLGetVertexAttrib() error, bad type: ' + type;
  7142. }
  7143. } else {
  7144. for (var i = 0; i < data.length; i++) {
  7145. switch (type) {
  7146. case 'Integer': HEAP32[(((params)+(i))>>2)]=data[i]; break;
  7147. case 'Float': HEAPF32[(((params)+(i))>>2)]=data[i]; break;
  7148. case 'FloatToInteger': HEAP32[(((params)+(i))>>2)]=Math.fround(data[i]); break;
  7149. default: throw 'internal emscriptenWebGLGetVertexAttrib() error, bad type: ' + type;
  7150. }
  7151. }
  7152. }
  7153. }function _emscripten_glGetVertexAttribfv(index, pname, params) {
  7154. // N.B. This function may only be called if the vertex attribute was specified using the function glVertexAttrib*f(),
  7155. // otherwise the results are undefined. (GLES3 spec 6.1.12)
  7156. emscriptenWebGLGetVertexAttrib(index, pname, params, 'Float');
  7157. }
  7158. function _emscripten_set_touchstart_callback(target, userData, useCapture, callbackfunc) {
  7159. JSEvents.registerTouchEventCallback(target, userData, useCapture, callbackfunc, 22, "touchstart");
  7160. return 0;
  7161. }
  7162. function _glUniform3f(location, v0, v1, v2) {
  7163. GLctx.uniform3f(GL.uniforms[location], v0, v1, v2);
  7164. }
  7165. 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.'; }
  7166. function _emscripten_glDeleteBuffers(n, buffers) {
  7167. for (var i = 0; i < n; i++) {
  7168. var id = HEAP32[(((buffers)+(i*4))>>2)];
  7169. var buffer = GL.buffers[id];
  7170. // From spec: "glDeleteBuffers silently ignores 0's and names that do not
  7171. // correspond to existing buffer objects."
  7172. if (!buffer) continue;
  7173. GLctx.deleteBuffer(buffer);
  7174. buffer.name = 0;
  7175. GL.buffers[id] = null;
  7176. if (id == GL.currArrayBuffer) GL.currArrayBuffer = 0;
  7177. if (id == GL.currElementArrayBuffer) GL.currElementArrayBuffer = 0;
  7178. }
  7179. }
  7180. function _emscripten_glTexParameteriv(target, pname, params) {
  7181. var param = HEAP32[((params)>>2)];
  7182. GLctx.texParameteri(target, pname, param);
  7183. }
  7184. function _glDrawElements(mode, count, type, indices) {
  7185. GLctx.drawElements(mode, count, type, indices);
  7186. }
  7187. function _glfwTerminate() {
  7188. window.removeEventListener("keydown", GLFW.onKeydown, true);
  7189. window.removeEventListener("keypress", GLFW.onKeyPress, true);
  7190. window.removeEventListener("keyup", GLFW.onKeyup, true);
  7191. Module["canvas"].removeEventListener("mousemove", GLFW.onMousemove, true);
  7192. Module["canvas"].removeEventListener("mousedown", GLFW.onMouseButtonDown, true);
  7193. Module["canvas"].removeEventListener("mouseup", GLFW.onMouseButtonUp, true);
  7194. Module["canvas"].removeEventListener('wheel', GLFW.onMouseWheel, true);
  7195. Module["canvas"].removeEventListener('mousewheel', GLFW.onMouseWheel, true);
  7196. Module["canvas"].removeEventListener('mouseenter', GLFW.onMouseenter, true);
  7197. Module["canvas"].removeEventListener('mouseleave', GLFW.onMouseleave, true);
  7198. Module["canvas"].width = Module["canvas"].height = 1;
  7199. GLFW.windows = null;
  7200. GLFW.active = null;
  7201. }
  7202. function _emscripten_glUniformMatrix2fv(location, count, transpose, value) {
  7203. var view;
  7204. if (4*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7205. // avoid allocation when uploading few enough uniforms
  7206. view = GL.miniTempBufferViews[4*count-1];
  7207. for (var i = 0; i < 4*count; i += 4) {
  7208. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7209. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  7210. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  7211. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  7212. }
  7213. } else {
  7214. view = HEAPF32.subarray((value)>>2,(value+count*16)>>2);
  7215. }
  7216. GLctx.uniformMatrix2fv(GL.uniforms[location], !!transpose, view);
  7217. }
  7218. function _emscripten_glDeleteShader(id) {
  7219. if (!id) return;
  7220. var shader = GL.shaders[id];
  7221. if (!shader) { // glDeleteShader actually signals an error when deleting a nonexisting object, unlike some other GL delete functions.
  7222. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7223. return;
  7224. }
  7225. GLctx.deleteShader(shader);
  7226. GL.shaders[id] = null;
  7227. }
  7228. function ___syscall5(which, varargs) {SYSCALLS.varargs = varargs;
  7229. try {
  7230. // open
  7231. var pathname = SYSCALLS.getStr(), flags = SYSCALLS.get(), mode = SYSCALLS.get() // optional TODO
  7232. var stream = FS.open(pathname, flags, mode);
  7233. return stream.fd;
  7234. } catch (e) {
  7235. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7236. return -e.errno;
  7237. }
  7238. }
  7239. function ___syscall6(which, varargs) {SYSCALLS.varargs = varargs;
  7240. try {
  7241. // close
  7242. var stream = SYSCALLS.getStreamFromFD();
  7243. FS.close(stream);
  7244. return 0;
  7245. } catch (e) {
  7246. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7247. return -e.errno;
  7248. }
  7249. }
  7250. function _llvm_stacksave() {
  7251. var self = _llvm_stacksave;
  7252. if (!self.LLVM_SAVEDSTACKS) {
  7253. self.LLVM_SAVEDSTACKS = [];
  7254. }
  7255. self.LLVM_SAVEDSTACKS.push(Runtime.stackSave());
  7256. return self.LLVM_SAVEDSTACKS.length-1;
  7257. }
  7258. function _emscripten_glGetVertexAttribiv(index, pname, params) {
  7259. // N.B. This function may only be called if the vertex attribute was specified using the function glVertexAttrib*f(),
  7260. // otherwise the results are undefined. (GLES3 spec 6.1.12)
  7261. emscriptenWebGLGetVertexAttrib(index, pname, params, 'FloatToInteger');
  7262. }
  7263. function _emscripten_glUniformMatrix4fv(location, count, transpose, value) {
  7264. var view;
  7265. if (16*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7266. // avoid allocation when uploading few enough uniforms
  7267. view = GL.miniTempBufferViews[16*count-1];
  7268. for (var i = 0; i < 16*count; i += 16) {
  7269. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7270. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  7271. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  7272. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  7273. view[i+4] = HEAPF32[(((value)+(4*i+16))>>2)];
  7274. view[i+5] = HEAPF32[(((value)+(4*i+20))>>2)];
  7275. view[i+6] = HEAPF32[(((value)+(4*i+24))>>2)];
  7276. view[i+7] = HEAPF32[(((value)+(4*i+28))>>2)];
  7277. view[i+8] = HEAPF32[(((value)+(4*i+32))>>2)];
  7278. view[i+9] = HEAPF32[(((value)+(4*i+36))>>2)];
  7279. view[i+10] = HEAPF32[(((value)+(4*i+40))>>2)];
  7280. view[i+11] = HEAPF32[(((value)+(4*i+44))>>2)];
  7281. view[i+12] = HEAPF32[(((value)+(4*i+48))>>2)];
  7282. view[i+13] = HEAPF32[(((value)+(4*i+52))>>2)];
  7283. view[i+14] = HEAPF32[(((value)+(4*i+56))>>2)];
  7284. view[i+15] = HEAPF32[(((value)+(4*i+60))>>2)];
  7285. }
  7286. } else {
  7287. view = HEAPF32.subarray((value)>>2,(value+count*64)>>2);
  7288. }
  7289. GLctx.uniformMatrix4fv(GL.uniforms[location], !!transpose, view);
  7290. }
  7291. function _glVertexAttrib3f(x0, x1, x2, x3) { GLctx['vertexAttrib3f'](x0, x1, x2, x3) }
  7292. function _emscripten_glDrawArraysInstanced(mode, first, count, primcount) {
  7293. GLctx['drawArraysInstanced'](mode, first, count, primcount);
  7294. }
  7295. function _emscripten_glEnableClientState() {
  7296. Module['printErr']('missing function: emscripten_glEnableClientState'); abort(-1);
  7297. }
  7298. function _emscripten_glGetPointerv() {
  7299. Module['printErr']('missing function: emscripten_glGetPointerv'); abort(-1);
  7300. }
  7301. function ___syscall140(which, varargs) {SYSCALLS.varargs = varargs;
  7302. try {
  7303. // llseek
  7304. var stream = SYSCALLS.getStreamFromFD(), offset_high = SYSCALLS.get(), offset_low = SYSCALLS.get(), result = SYSCALLS.get(), whence = SYSCALLS.get();
  7305. var offset = offset_low;
  7306. assert(offset_high === 0);
  7307. FS.llseek(stream, offset, whence);
  7308. HEAP32[((result)>>2)]=stream.position;
  7309. if (stream.getdents && offset === 0 && whence === 0) stream.getdents = null; // reset readdir state
  7310. return 0;
  7311. } catch (e) {
  7312. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7313. return -e.errno;
  7314. }
  7315. }
  7316. function ___syscall146(which, varargs) {SYSCALLS.varargs = varargs;
  7317. try {
  7318. // writev
  7319. var stream = SYSCALLS.getStreamFromFD(), iov = SYSCALLS.get(), iovcnt = SYSCALLS.get();
  7320. return SYSCALLS.doWritev(stream, iov, iovcnt);
  7321. } catch (e) {
  7322. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7323. return -e.errno;
  7324. }
  7325. }
  7326. function ___syscall145(which, varargs) {SYSCALLS.varargs = varargs;
  7327. try {
  7328. // readv
  7329. var stream = SYSCALLS.getStreamFromFD(), iov = SYSCALLS.get(), iovcnt = SYSCALLS.get();
  7330. return SYSCALLS.doReadv(stream, iov, iovcnt);
  7331. } catch (e) {
  7332. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  7333. return -e.errno;
  7334. }
  7335. }
  7336. function _emscripten_glStencilMask(x0) { GLctx['stencilMask'](x0) }
  7337. function _emscripten_glStencilFuncSeparate(x0, x1, x2, x3) { GLctx['stencilFuncSeparate'](x0, x1, x2, x3) }
  7338. Module["_i64Subtract"] = _i64Subtract;
  7339. Module["_i64Add"] = _i64Add;
  7340. function _emscripten_set_touchend_callback(target, userData, useCapture, callbackfunc) {
  7341. JSEvents.registerTouchEventCallback(target, userData, useCapture, callbackfunc, 23, "touchend");
  7342. return 0;
  7343. }
  7344. function _glUseProgram(program) {
  7345. GLctx.useProgram(program ? GL.programs[program] : null);
  7346. }
  7347. function _emscripten_glDisableVertexAttribArray(index) {
  7348. GLctx.disableVertexAttribArray(index);
  7349. }
  7350. function _emscripten_glVertexAttrib1f(x0, x1) { GLctx['vertexAttrib1f'](x0, x1) }
  7351. function _emscripten_glFinish() { GLctx['finish']() }
  7352. function _glDeleteFramebuffers(n, framebuffers) {
  7353. for (var i = 0; i < n; ++i) {
  7354. var id = HEAP32[(((framebuffers)+(i*4))>>2)];
  7355. var framebuffer = GL.framebuffers[id];
  7356. if (!framebuffer) continue; // GL spec: "glDeleteFramebuffers silently ignores 0s and names that do not correspond to existing framebuffer objects".
  7357. GLctx.deleteFramebuffer(framebuffer);
  7358. framebuffer.name = 0;
  7359. GL.framebuffers[id] = null;
  7360. }
  7361. }
  7362. function _glDrawArrays(mode, first, count) {
  7363. GLctx.drawArrays(mode, first, count);
  7364. }
  7365. function _emscripten_glDepthFunc(x0) { GLctx['depthFunc'](x0) }
  7366. function _emscripten_get_num_gamepads() {
  7367. // Polling gamepads generates garbage, so don't do it when we know there are no gamepads connected.
  7368. if (!JSEvents.numGamepadsConnected) return 0;
  7369. __emscripten_sample_gamepad_data();
  7370. if (!JSEvents.lastGamepadState) return -1;
  7371. return JSEvents.lastGamepadState.length;
  7372. }
  7373. function ___assert_fail(condition, filename, line, func) {
  7374. ABORT = true;
  7375. throw 'Assertion failed: ' + Pointer_stringify(condition) + ', at: ' + [filename ? Pointer_stringify(filename) : 'unknown filename', line, func ? Pointer_stringify(func) : 'unknown function'] + ' at ' + stackTrace();
  7376. }
  7377. function _emscripten_glUniform4iv(location, count, value) {
  7378. GLctx.uniform4iv(GL.uniforms[location], HEAP32.subarray((value)>>2,(value+count*16)>>2));
  7379. }
  7380. function _glClear(x0) { GLctx['clear'](x0) }
  7381. 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.'; }
  7382. function _emscripten_glUniform3fv(location, count, value) {
  7383. var view;
  7384. if (3*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7385. // avoid allocation when uploading few enough uniforms
  7386. view = GL.miniTempBufferViews[3*count-1];
  7387. for (var i = 0; i < 3*count; i += 3) {
  7388. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7389. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  7390. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  7391. }
  7392. } else {
  7393. view = HEAPF32.subarray((value)>>2,(value+count*12)>>2);
  7394. }
  7395. GLctx.uniform3fv(GL.uniforms[location], view);
  7396. }
  7397. function _emscripten_glIsTexture(texture) {
  7398. var texture = GL.textures[texture];
  7399. if (!texture) return 0;
  7400. return GLctx.isTexture(texture);
  7401. }
  7402. function _glEnableVertexAttribArray(index) {
  7403. GLctx.enableVertexAttribArray(index);
  7404. }
  7405. function _emscripten_glAttachShader(program, shader) {
  7406. GLctx.attachShader(GL.programs[program],
  7407. GL.shaders[shader]);
  7408. }
  7409. function _glUniform4f(location, v0, v1, v2, v3) {
  7410. GLctx.uniform4f(GL.uniforms[location], v0, v1, v2, v3);
  7411. }
  7412. function _glFramebufferTexture2D(target, attachment, textarget, texture, level) {
  7413. GLctx.framebufferTexture2D(target, attachment, textarget,
  7414. GL.textures[texture], level);
  7415. }
  7416. function _emscripten_request_pointerlock(target, deferUntilInEventHandler) {
  7417. if (!target) target = '#canvas';
  7418. target = JSEvents.findEventTarget(target);
  7419. if (!target) return -4;
  7420. if (!target.requestPointerLock && !target.mozRequestPointerLock && !target.webkitRequestPointerLock && !target.msRequestPointerLock) {
  7421. return -1;
  7422. }
  7423. var canPerformRequests = JSEvents.canPerformEventHandlerRequests();
  7424. // Queue this function call if we're not currently in an event handler and the user saw it appropriate to do so.
  7425. if (!canPerformRequests) {
  7426. if (deferUntilInEventHandler) {
  7427. JSEvents.deferCall(JSEvents.requestPointerLock, 2 /* priority below fullscreen */, [target]);
  7428. return 1;
  7429. } else {
  7430. return -2;
  7431. }
  7432. }
  7433. return JSEvents.requestPointerLock(target);
  7434. }
  7435. 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);
  7436. Module["_llvm_cttz_i32"] = _llvm_cttz_i32;
  7437. Module["___udivmoddi4"] = ___udivmoddi4;
  7438. Module["___udivdi3"] = ___udivdi3;
  7439. function _glfwCreateWindow(width, height, title, monitor, share) {
  7440. return GLFW.createWindow(width, height, title, monitor, share);
  7441. }
  7442. function _emscripten_glColorPointer() {
  7443. Module['printErr']('missing function: emscripten_glColorPointer'); abort(-1);
  7444. }
  7445. function _glfwDefaultWindowHints() {
  7446. GLFW.hints = GLFW.defaultHints;
  7447. }
  7448. function _emscripten_glClearStencil(x0) { GLctx['clearStencil'](x0) }
  7449. function _emscripten_glDetachShader(program, shader) {
  7450. GLctx.detachShader(GL.programs[program],
  7451. GL.shaders[shader]);
  7452. }
  7453. function _emscripten_glDeleteVertexArrays(n, vaos) {
  7454. for (var i = 0; i < n; i++) {
  7455. var id = HEAP32[(((vaos)+(i*4))>>2)];
  7456. GLctx['deleteVertexArray'](GL.vaos[id]);
  7457. GL.vaos[id] = null;
  7458. }
  7459. }
  7460. function _glGenFramebuffers(n, ids) {
  7461. for (var i = 0; i < n; ++i) {
  7462. var framebuffer = GLctx.createFramebuffer();
  7463. if (!framebuffer) {
  7464. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  7465. while(i < n) HEAP32[(((ids)+(i++*4))>>2)]=0;
  7466. return;
  7467. }
  7468. var id = GL.getNewId(GL.framebuffers);
  7469. framebuffer.name = id;
  7470. GL.framebuffers[id] = framebuffer;
  7471. HEAP32[(((ids)+(i*4))>>2)]=id;
  7472. }
  7473. }
  7474. function _glfwInit() {
  7475. if (GLFW.windows) return 1; // GL_TRUE
  7476. GLFW.initialTime = GLFW.getTime();
  7477. GLFW.hints = GLFW.defaultHints;
  7478. GLFW.windows = new Array()
  7479. GLFW.active = null;
  7480. window.addEventListener("keydown", GLFW.onKeydown, true);
  7481. window.addEventListener("keypress", GLFW.onKeyPress, true);
  7482. window.addEventListener("keyup", GLFW.onKeyup, true);
  7483. Module["canvas"].addEventListener("mousemove", GLFW.onMousemove, true);
  7484. Module["canvas"].addEventListener("mousedown", GLFW.onMouseButtonDown, true);
  7485. Module["canvas"].addEventListener("mouseup", GLFW.onMouseButtonUp, true);
  7486. Module["canvas"].addEventListener('wheel', GLFW.onMouseWheel, true);
  7487. Module["canvas"].addEventListener('mousewheel', GLFW.onMouseWheel, true);
  7488. Module["canvas"].addEventListener('mouseenter', GLFW.onMouseenter, true);
  7489. Module["canvas"].addEventListener('mouseleave', GLFW.onMouseleave, true);
  7490. Browser.resizeListeners.push(function(width, height) {
  7491. GLFW.onCanvasResize(width, height);
  7492. });
  7493. return 1; // GL_TRUE
  7494. }
  7495. function _emscripten_glGetTexParameteriv(target, pname, params) {
  7496. if (!params) {
  7497. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  7498. // if p == null, issue a GL error to notify user about it.
  7499. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7500. return;
  7501. }
  7502. HEAP32[((params)>>2)]=GLctx.getTexParameter(target, pname);
  7503. }
  7504. function _glfwSwapBuffers(winid) {
  7505. GLFW.swapBuffers(winid);
  7506. }
  7507. function _emscripten_glGenerateMipmap(x0) { GLctx['generateMipmap'](x0) }
  7508. function _emscripten_glCullFace(x0) { GLctx['cullFace'](x0) }
  7509. function _emscripten_glUniform4f(location, v0, v1, v2, v3) {
  7510. GLctx.uniform4f(GL.uniforms[location], v0, v1, v2, v3);
  7511. }
  7512. function _glDisableVertexAttribArray(index) {
  7513. GLctx.disableVertexAttribArray(index);
  7514. }
  7515. function _emscripten_glUseProgram(program) {
  7516. GLctx.useProgram(program ? GL.programs[program] : null);
  7517. }
  7518. function _emscripten_glHint(x0, x1) { GLctx['hint'](x0, x1) }
  7519. function _emscripten_glUniform2fv(location, count, value) {
  7520. var view;
  7521. if (2*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7522. // avoid allocation when uploading few enough uniforms
  7523. view = GL.miniTempBufferViews[2*count-1];
  7524. for (var i = 0; i < 2*count; i += 2) {
  7525. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7526. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  7527. }
  7528. } else {
  7529. view = HEAPF32.subarray((value)>>2,(value+count*8)>>2);
  7530. }
  7531. GLctx.uniform2fv(GL.uniforms[location], view);
  7532. }
  7533. function _glfwSwapInterval(interval) {
  7534. 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.
  7535. if (interval == 0) _emscripten_set_main_loop_timing(0/*EM_TIMING_SETTIMEOUT*/, 0);
  7536. else _emscripten_set_main_loop_timing(1/*EM_TIMING_RAF*/, interval);
  7537. }
  7538. function _glGetShaderInfoLog(shader, maxLength, length, infoLog) {
  7539. var log = GLctx.getShaderInfoLog(GL.shaders[shader]);
  7540. if (log === null) log = '(unknown error)';
  7541. if (maxLength > 0 && infoLog) {
  7542. var numBytesWrittenExclNull = stringToUTF8(log, infoLog, maxLength);
  7543. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  7544. } else {
  7545. if (length) HEAP32[((length)>>2)]=0;
  7546. }
  7547. }
  7548. 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.'; }
  7549. function _abort() {
  7550. Module['abort']();
  7551. }
  7552. function _emscripten_glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer) {
  7553. GLctx.framebufferRenderbuffer(target, attachment, renderbuffertarget,
  7554. GL.renderbuffers[renderbuffer]);
  7555. }
  7556. function _emscripten_glDeleteFramebuffers(n, framebuffers) {
  7557. for (var i = 0; i < n; ++i) {
  7558. var id = HEAP32[(((framebuffers)+(i*4))>>2)];
  7559. var framebuffer = GL.framebuffers[id];
  7560. if (!framebuffer) continue; // GL spec: "glDeleteFramebuffers silently ignores 0s and names that do not correspond to existing framebuffer objects".
  7561. GLctx.deleteFramebuffer(framebuffer);
  7562. framebuffer.name = 0;
  7563. GL.framebuffers[id] = null;
  7564. }
  7565. }
  7566. function _emscripten_glIsBuffer(buffer) {
  7567. var b = GL.buffers[buffer];
  7568. if (!b) return 0;
  7569. return GLctx.isBuffer(b);
  7570. }
  7571. function _emscripten_glUniform2iv(location, count, value) {
  7572. GLctx.uniform2iv(GL.uniforms[location], HEAP32.subarray((value)>>2,(value+count*8)>>2));
  7573. }
  7574. function _emscripten_glVertexAttrib1fv(index, v) {
  7575. GLctx.vertexAttrib1f(index, HEAPF32[v>>2]);
  7576. }
  7577. function _glEnable(x0) { GLctx['enable'](x0) }
  7578. function emscriptenWebGLComputeImageSize(width, height, sizePerPixel, alignment) {
  7579. function roundedToNextMultipleOf(x, y) {
  7580. return Math.floor((x + y - 1) / y) * y
  7581. }
  7582. var plainRowSize = width * sizePerPixel;
  7583. var alignedRowSize = roundedToNextMultipleOf(plainRowSize, alignment);
  7584. return (height <= 0) ? 0 :
  7585. ((height - 1) * alignedRowSize + plainRowSize);
  7586. }function emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, internalFormat) {
  7587. var sizePerPixel;
  7588. var numChannels;
  7589. switch(format) {
  7590. case 0x1906 /* GL_ALPHA */:
  7591. case 0x1909 /* GL_LUMINANCE */:
  7592. case 0x1902 /* GL_DEPTH_COMPONENT */:
  7593. numChannels = 1;
  7594. break;
  7595. case 0x190A /* GL_LUMINANCE_ALPHA */:
  7596. numChannels = 2;
  7597. break;
  7598. case 0x1907 /* GL_RGB */:
  7599. case 0x8C40 /* GL_SRGB_EXT */:
  7600. numChannels = 3;
  7601. break;
  7602. case 0x1908 /* GL_RGBA */:
  7603. case 0x8C42 /* GL_SRGB_ALPHA_EXT */:
  7604. numChannels = 4;
  7605. break;
  7606. default:
  7607. GL.recordError(0x0500); // GL_INVALID_ENUM
  7608. return null;
  7609. }
  7610. switch (type) {
  7611. case 0x1401 /* GL_UNSIGNED_BYTE */:
  7612. sizePerPixel = numChannels*1;
  7613. break;
  7614. case 0x1403 /* GL_UNSIGNED_SHORT */:
  7615. case 0x8D61 /* GL_HALF_FLOAT_OES */:
  7616. sizePerPixel = numChannels*2;
  7617. break;
  7618. case 0x1405 /* GL_UNSIGNED_INT */:
  7619. case 0x1406 /* GL_FLOAT */:
  7620. sizePerPixel = numChannels*4;
  7621. break;
  7622. case 0x84FA /* GL_UNSIGNED_INT_24_8_WEBGL/GL_UNSIGNED_INT_24_8 */:
  7623. sizePerPixel = 4;
  7624. break;
  7625. case 0x8363 /* GL_UNSIGNED_SHORT_5_6_5 */:
  7626. case 0x8033 /* GL_UNSIGNED_SHORT_4_4_4_4 */:
  7627. case 0x8034 /* GL_UNSIGNED_SHORT_5_5_5_1 */:
  7628. sizePerPixel = 2;
  7629. break;
  7630. default:
  7631. GL.recordError(0x0500); // GL_INVALID_ENUM
  7632. return null;
  7633. }
  7634. var bytes = emscriptenWebGLComputeImageSize(width, height, sizePerPixel, GL.unpackAlignment);
  7635. switch(type) {
  7636. case 0x1401 /* GL_UNSIGNED_BYTE */:
  7637. return HEAPU8.subarray((pixels),(pixels+bytes));
  7638. case 0x1406 /* GL_FLOAT */:
  7639. return HEAPF32.subarray((pixels)>>2,(pixels+bytes)>>2);
  7640. case 0x1405 /* GL_UNSIGNED_INT */:
  7641. case 0x84FA /* GL_UNSIGNED_INT_24_8_WEBGL/GL_UNSIGNED_INT_24_8 */:
  7642. return HEAPU32.subarray((pixels)>>2,(pixels+bytes)>>2);
  7643. case 0x1403 /* GL_UNSIGNED_SHORT */:
  7644. case 0x8363 /* GL_UNSIGNED_SHORT_5_6_5 */:
  7645. case 0x8033 /* GL_UNSIGNED_SHORT_4_4_4_4 */:
  7646. case 0x8034 /* GL_UNSIGNED_SHORT_5_5_5_1 */:
  7647. case 0x8D61 /* GL_HALF_FLOAT_OES */:
  7648. return HEAPU16.subarray((pixels)>>1,(pixels+bytes)>>1);
  7649. default:
  7650. GL.recordError(0x0500); // GL_INVALID_ENUM
  7651. return null;
  7652. }
  7653. }function _emscripten_glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels) {
  7654. var pixelData = null;
  7655. if (pixels) pixelData = emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, 0);
  7656. GLctx.texSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixelData);
  7657. }
  7658. function _emscripten_glPolygonOffset(x0, x1) { GLctx['polygonOffset'](x0, x1) }
  7659. var _emscripten_asm_const_int=true;
  7660. function _emscripten_glUniform2f(location, v0, v1) {
  7661. GLctx.uniform2f(GL.uniforms[location], v0, v1);
  7662. }
  7663. function _glGetAttribLocation(program, name) {
  7664. program = GL.programs[program];
  7665. name = Pointer_stringify(name);
  7666. return GLctx.getAttribLocation(program, name);
  7667. }
  7668. function _glfwWindowHint(target, hint) {
  7669. GLFW.hints[target] = hint;
  7670. }
  7671. function _emscripten_glUniform2i(location, v0, v1) {
  7672. GLctx.uniform2i(GL.uniforms[location], v0, v1);
  7673. }
  7674. function _glBlendFunc(x0, x1) { GLctx['blendFunc'](x0, x1) }
  7675. function _glCreateProgram() {
  7676. var id = GL.getNewId(GL.programs);
  7677. var program = GLctx.createProgram();
  7678. program.name = id;
  7679. GL.programs[id] = program;
  7680. return id;
  7681. }
  7682. function _emscripten_glDeleteRenderbuffers(n, renderbuffers) {
  7683. for (var i = 0; i < n; i++) {
  7684. var id = HEAP32[(((renderbuffers)+(i*4))>>2)];
  7685. var renderbuffer = GL.renderbuffers[id];
  7686. if (!renderbuffer) continue; // GL spec: "glDeleteRenderbuffers silently ignores 0s and names that do not correspond to existing renderbuffer objects".
  7687. GLctx.deleteRenderbuffer(renderbuffer);
  7688. renderbuffer.name = 0;
  7689. GL.renderbuffers[id] = null;
  7690. }
  7691. }
  7692. function _emscripten_glGetBufferParameteriv(target, value, data) {
  7693. if (!data) {
  7694. // GLES2 specification does not specify how to behave if data is a null pointer. Since calling this function does not make sense
  7695. // if data == null, issue a GL error to notify user about it.
  7696. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7697. return;
  7698. }
  7699. HEAP32[((data)>>2)]=GLctx.getBufferParameter(target, value);
  7700. }
  7701. function emscriptenWebGLGetUniform(program, location, params, type) {
  7702. if (!params) {
  7703. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  7704. // if params == null, issue a GL error to notify user about it.
  7705. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7706. return;
  7707. }
  7708. var data = GLctx.getUniform(GL.programs[program], GL.uniforms[location]);
  7709. if (typeof data == 'number' || typeof data == 'boolean') {
  7710. switch (type) {
  7711. case 'Integer': HEAP32[((params)>>2)]=data; break;
  7712. case 'Float': HEAPF32[((params)>>2)]=data; break;
  7713. default: throw 'internal emscriptenWebGLGetUniform() error, bad type: ' + type;
  7714. }
  7715. } else {
  7716. for (var i = 0; i < data.length; i++) {
  7717. switch (type) {
  7718. case 'Integer': HEAP32[(((params)+(i))>>2)]=data[i]; break;
  7719. case 'Float': HEAPF32[(((params)+(i))>>2)]=data[i]; break;
  7720. default: throw 'internal emscriptenWebGLGetUniform() error, bad type: ' + type;
  7721. }
  7722. }
  7723. }
  7724. }function _emscripten_glGetUniformiv(program, location, params) {
  7725. emscriptenWebGLGetUniform(program, location, params, 'Integer');
  7726. }
  7727. function _emscripten_glDepthMask(flag) {
  7728. GLctx.depthMask(!!flag);
  7729. }
  7730. function _emscripten_glDepthRange(x0, x1) { GLctx['depthRange'](x0, x1) }
  7731. function _emscripten_set_fullscreenchange_callback(target, userData, useCapture, callbackfunc) {
  7732. if (typeof JSEvents.fullscreenEnabled() === 'undefined') return -1;
  7733. if (!target) target = document;
  7734. else {
  7735. target = JSEvents.findEventTarget(target);
  7736. if (!target) return -4;
  7737. }
  7738. JSEvents.registerFullscreenChangeEventCallback(target, userData, useCapture, callbackfunc, 19, "fullscreenchange");
  7739. JSEvents.registerFullscreenChangeEventCallback(target, userData, useCapture, callbackfunc, 19, "mozfullscreenchange");
  7740. JSEvents.registerFullscreenChangeEventCallback(target, userData, useCapture, callbackfunc, 19, "webkitfullscreenchange");
  7741. JSEvents.registerFullscreenChangeEventCallback(target, userData, useCapture, callbackfunc, 19, "msfullscreenchange");
  7742. return 0;
  7743. }
  7744. Module["___muldsi3"] = ___muldsi3;
  7745. Module["___muldi3"] = ___muldi3;
  7746. function _emscripten_glGetShaderPrecisionFormat(shaderType, precisionType, range, precision) {
  7747. var result = GLctx.getShaderPrecisionFormat(shaderType, precisionType);
  7748. HEAP32[((range)>>2)]=result.rangeMin;
  7749. HEAP32[(((range)+(4))>>2)]=result.rangeMax;
  7750. HEAP32[((precision)>>2)]=result.precision;
  7751. }
  7752. function _emscripten_glUniform1fv(location, count, value) {
  7753. var view;
  7754. if (count <= GL.MINI_TEMP_BUFFER_SIZE) {
  7755. // avoid allocation when uploading few enough uniforms
  7756. view = GL.miniTempBufferViews[count-1];
  7757. for (var i = 0; i < count; ++i) {
  7758. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  7759. }
  7760. } else {
  7761. view = HEAPF32.subarray((value)>>2,(value+count*4)>>2);
  7762. }
  7763. GLctx.uniform1fv(GL.uniforms[location], view);
  7764. }
  7765. function _glfwSetMouseButtonCallback(winid, cbfun) {
  7766. GLFW.setMouseButtonCallback(winid, cbfun);
  7767. }
  7768. function _emscripten_set_gamepaddisconnected_callback(userData, useCapture, callbackfunc) {
  7769. if (!navigator.getGamepads && !navigator.webkitGetGamepads) return -1;
  7770. JSEvents.registerGamepadEventCallback(window, userData, useCapture, callbackfunc, 27, "gamepaddisconnected");
  7771. return 0;
  7772. }
  7773. function _emscripten_glBindProgramARB() {
  7774. Module['printErr']('missing function: emscripten_glBindProgramARB'); abort(-1);
  7775. }
  7776. function _emscripten_glBindTexture(target, texture) {
  7777. GLctx.bindTexture(target, texture ? GL.textures[texture] : null);
  7778. }
  7779. function _emscripten_glCheckFramebufferStatus(x0) { return GLctx['checkFramebufferStatus'](x0) }
  7780. function _emscripten_glDeleteProgram(id) {
  7781. if (!id) return;
  7782. var program = GL.programs[id];
  7783. if (!program) { // glDeleteProgram actually signals an error when deleting a nonexisting object, unlike some other GL delete functions.
  7784. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7785. return;
  7786. }
  7787. GLctx.deleteProgram(program);
  7788. program.name = 0;
  7789. GL.programs[id] = null;
  7790. GL.programInfos[id] = null;
  7791. }
  7792. function _emscripten_glDisable(x0) { GLctx['disable'](x0) }
  7793. function _emscripten_glVertexAttrib3fv(index, v) {
  7794. GLctx.vertexAttrib3f(index, HEAPF32[v>>2], HEAPF32[v+4>>2], HEAPF32[v+8>>2]);
  7795. }
  7796. function _glClearColor(x0, x1, x2, x3) { GLctx['clearColor'](x0, x1, x2, x3) }
  7797. function _emscripten_glGetActiveAttrib(program, index, bufSize, length, size, type, name) {
  7798. program = GL.programs[program];
  7799. var info = GLctx.getActiveAttrib(program, index);
  7800. if (!info) return; // If an error occurs, nothing will be written to length, size and type and name.
  7801. if (bufSize > 0 && name) {
  7802. var numBytesWrittenExclNull = stringToUTF8(info.name, name, bufSize);
  7803. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  7804. } else {
  7805. if (length) HEAP32[((length)>>2)]=0;
  7806. }
  7807. if (size) HEAP32[((size)>>2)]=info.size;
  7808. if (type) HEAP32[((type)>>2)]=info.type;
  7809. }
  7810. function _emscripten_glIsFramebuffer(framebuffer) {
  7811. var fb = GL.framebuffers[framebuffer];
  7812. if (!fb) return 0;
  7813. return GLctx.isFramebuffer(fb);
  7814. }
  7815. function _emscripten_glLineWidth(x0) { GLctx['lineWidth'](x0) }
  7816. function _glfwGetCursorPos(winid, x, y) {
  7817. GLFW.getCursorPos(winid, x, y);
  7818. }
  7819. function _emscripten_glGetString(name_) {
  7820. if (GL.stringCache[name_]) return GL.stringCache[name_];
  7821. var ret;
  7822. switch(name_) {
  7823. case 0x1F00 /* GL_VENDOR */:
  7824. case 0x1F01 /* GL_RENDERER */:
  7825. case 0x9245 /* UNMASKED_VENDOR_WEBGL */:
  7826. case 0x9246 /* UNMASKED_RENDERER_WEBGL */:
  7827. ret = allocate(intArrayFromString(GLctx.getParameter(name_)), 'i8', ALLOC_NORMAL);
  7828. break;
  7829. case 0x1F02 /* GL_VERSION */:
  7830. var glVersion = GLctx.getParameter(GLctx.VERSION);
  7831. // return GLES version string corresponding to the version of the WebGL context
  7832. {
  7833. glVersion = 'OpenGL ES 2.0 (' + glVersion + ')';
  7834. }
  7835. ret = allocate(intArrayFromString(glVersion), 'i8', ALLOC_NORMAL);
  7836. break;
  7837. case 0x1F03 /* GL_EXTENSIONS */:
  7838. var exts = GLctx.getSupportedExtensions();
  7839. var gl_exts = [];
  7840. for (var i = 0; i < exts.length; ++i) {
  7841. gl_exts.push(exts[i]);
  7842. gl_exts.push("GL_" + exts[i]);
  7843. }
  7844. ret = allocate(intArrayFromString(gl_exts.join(' ')), 'i8', ALLOC_NORMAL);
  7845. break;
  7846. case 0x8B8C /* GL_SHADING_LANGUAGE_VERSION */:
  7847. var glslVersion = GLctx.getParameter(GLctx.SHADING_LANGUAGE_VERSION);
  7848. // extract the version number 'N.M' from the string 'WebGL GLSL ES N.M ...'
  7849. var ver_re = /^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/;
  7850. var ver_num = glslVersion.match(ver_re);
  7851. if (ver_num !== null) {
  7852. if (ver_num[1].length == 3) ver_num[1] = ver_num[1] + '0'; // ensure minor version has 2 digits
  7853. glslVersion = 'OpenGL ES GLSL ES ' + ver_num[1] + ' (' + glslVersion + ')';
  7854. }
  7855. ret = allocate(intArrayFromString(glslVersion), 'i8', ALLOC_NORMAL);
  7856. break;
  7857. default:
  7858. GL.recordError(0x0500/*GL_INVALID_ENUM*/);
  7859. return 0;
  7860. }
  7861. GL.stringCache[name_] = ret;
  7862. return ret;
  7863. }
  7864. function _emscripten_glGetAttribLocation(program, name) {
  7865. program = GL.programs[program];
  7866. name = Pointer_stringify(name);
  7867. return GLctx.getAttribLocation(program, name);
  7868. }
  7869. function _emscripten_glRotatef() {
  7870. Module['printErr']('missing function: emscripten_glRotatef'); abort(-1);
  7871. }
  7872. function emscriptenWebGLGet(name_, p, type) {
  7873. // Guard against user passing a null pointer.
  7874. // Note that GLES2 spec does not say anything about how passing a null pointer should be treated.
  7875. // Testing on desktop core GL 3, the application crashes on glGetIntegerv to a null pointer, but
  7876. // better to report an error instead of doing anything random.
  7877. if (!p) {
  7878. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  7879. return;
  7880. }
  7881. var ret = undefined;
  7882. switch(name_) { // Handle a few trivial GLES values
  7883. case 0x8DFA: // GL_SHADER_COMPILER
  7884. ret = 1;
  7885. break;
  7886. case 0x8DF8: // GL_SHADER_BINARY_FORMATS
  7887. if (type !== 'Integer' && type !== 'Integer64') {
  7888. GL.recordError(0x0500); // GL_INVALID_ENUM
  7889. }
  7890. return; // Do not write anything to the out pointer, since no binary formats are supported.
  7891. case 0x8DF9: // GL_NUM_SHADER_BINARY_FORMATS
  7892. ret = 0;
  7893. break;
  7894. case 0x86A2: // GL_NUM_COMPRESSED_TEXTURE_FORMATS
  7895. // 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),
  7896. // so implement it ourselves to allow C++ GLES2 code get the length.
  7897. var formats = GLctx.getParameter(0x86A3 /*GL_COMPRESSED_TEXTURE_FORMATS*/);
  7898. ret = formats.length;
  7899. break;
  7900. }
  7901. if (ret === undefined) {
  7902. var result = GLctx.getParameter(name_);
  7903. switch (typeof(result)) {
  7904. case "number":
  7905. ret = result;
  7906. break;
  7907. case "boolean":
  7908. ret = result ? 1 : 0;
  7909. break;
  7910. case "string":
  7911. GL.recordError(0x0500); // GL_INVALID_ENUM
  7912. return;
  7913. case "object":
  7914. if (result === null) {
  7915. // null is a valid result for some (e.g., which buffer is bound - perhaps nothing is bound), but otherwise
  7916. // can mean an invalid name_, which we need to report as an error
  7917. switch(name_) {
  7918. case 0x8894: // ARRAY_BUFFER_BINDING
  7919. case 0x8B8D: // CURRENT_PROGRAM
  7920. case 0x8895: // ELEMENT_ARRAY_BUFFER_BINDING
  7921. case 0x8CA6: // FRAMEBUFFER_BINDING
  7922. case 0x8CA7: // RENDERBUFFER_BINDING
  7923. case 0x8069: // TEXTURE_BINDING_2D
  7924. case 0x8514: { // TEXTURE_BINDING_CUBE_MAP
  7925. ret = 0;
  7926. break;
  7927. }
  7928. default: {
  7929. GL.recordError(0x0500); // GL_INVALID_ENUM
  7930. return;
  7931. }
  7932. }
  7933. } else if (result instanceof Float32Array ||
  7934. result instanceof Uint32Array ||
  7935. result instanceof Int32Array ||
  7936. result instanceof Array) {
  7937. for (var i = 0; i < result.length; ++i) {
  7938. switch (type) {
  7939. case 'Integer': HEAP32[(((p)+(i*4))>>2)]=result[i]; break;
  7940. case 'Float': HEAPF32[(((p)+(i*4))>>2)]=result[i]; break;
  7941. case 'Boolean': HEAP8[(((p)+(i))>>0)]=result[i] ? 1 : 0; break;
  7942. default: throw 'internal glGet error, bad type: ' + type;
  7943. }
  7944. }
  7945. return;
  7946. } else if (result instanceof WebGLBuffer ||
  7947. result instanceof WebGLProgram ||
  7948. result instanceof WebGLFramebuffer ||
  7949. result instanceof WebGLRenderbuffer ||
  7950. result instanceof WebGLTexture) {
  7951. ret = result.name | 0;
  7952. } else {
  7953. GL.recordError(0x0500); // GL_INVALID_ENUM
  7954. return;
  7955. }
  7956. break;
  7957. default:
  7958. GL.recordError(0x0500); // GL_INVALID_ENUM
  7959. return;
  7960. }
  7961. }
  7962. switch (type) {
  7963. 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;
  7964. case 'Integer': HEAP32[((p)>>2)]=ret; break;
  7965. case 'Float': HEAPF32[((p)>>2)]=ret; break;
  7966. case 'Boolean': HEAP8[((p)>>0)]=ret ? 1 : 0; break;
  7967. default: throw 'internal glGet error, bad type: ' + type;
  7968. }
  7969. }function _emscripten_glGetIntegerv(name_, p) {
  7970. emscriptenWebGLGet(name_, p, 'Integer');
  7971. }
  7972. function _emscripten_glGetFramebufferAttachmentParameteriv(target, attachment, pname, params) {
  7973. var result = GLctx.getFramebufferAttachmentParameter(target, attachment, pname);
  7974. HEAP32[((params)>>2)]=result;
  7975. }
  7976. function _llvm_stackrestore(p) {
  7977. var self = _llvm_stacksave;
  7978. var ret = self.LLVM_SAVEDSTACKS[p];
  7979. self.LLVM_SAVEDSTACKS.splice(p, 1);
  7980. Runtime.stackRestore(ret);
  7981. }
  7982. function _glfwSetWindowShouldClose(winid, value) {
  7983. var win = GLFW.WindowFromId(winid);
  7984. if (!win) return;
  7985. win.shouldClose = value;
  7986. }
  7987. function _emscripten_glClientActiveTexture() {
  7988. Module['printErr']('missing function: emscripten_glClientActiveTexture'); abort(-1);
  7989. }
  7990. function _glGenBuffers(n, buffers) {
  7991. for (var i = 0; i < n; i++) {
  7992. var buffer = GLctx.createBuffer();
  7993. if (!buffer) {
  7994. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  7995. while(i < n) HEAP32[(((buffers)+(i++*4))>>2)]=0;
  7996. return;
  7997. }
  7998. var id = GL.getNewId(GL.buffers);
  7999. buffer.name = id;
  8000. GL.buffers[id] = buffer;
  8001. HEAP32[(((buffers)+(i*4))>>2)]=id;
  8002. }
  8003. }
  8004. function _emscripten_memcpy_big(dest, src, num) {
  8005. HEAPU8.set(HEAPU8.subarray(src, src+num), dest);
  8006. return dest;
  8007. }
  8008. Module["_memcpy"] = _memcpy;
  8009. function _emscripten_glGetShaderInfoLog(shader, maxLength, length, infoLog) {
  8010. var log = GLctx.getShaderInfoLog(GL.shaders[shader]);
  8011. if (log === null) log = '(unknown error)';
  8012. if (maxLength > 0 && infoLog) {
  8013. var numBytesWrittenExclNull = stringToUTF8(log, infoLog, maxLength);
  8014. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  8015. } else {
  8016. if (length) HEAP32[((length)>>2)]=0;
  8017. }
  8018. }
  8019. function _glfwGetTime() {
  8020. return GLFW.getTime() - GLFW.initialTime;
  8021. }
  8022. function _emscripten_glGetRenderbufferParameteriv(target, pname, params) {
  8023. if (!params) {
  8024. // GLES2 specification does not specify how to behave if params is a null pointer. Since calling this function does not make sense
  8025. // if params == null, issue a GL error to notify user about it.
  8026. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8027. return;
  8028. }
  8029. HEAP32[((params)>>2)]=GLctx.getRenderbufferParameter(target, pname);
  8030. }
  8031. function _emscripten_glStencilOpSeparate(x0, x1, x2, x3) { GLctx['stencilOpSeparate'](x0, x1, x2, x3) }
  8032. function _emscripten_glReadPixels(x, y, width, height, format, type, pixels) {
  8033. var pixelData = emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, format);
  8034. if (!pixelData) {
  8035. GL.recordError(0x0500/*GL_INVALID_ENUM*/);
  8036. return;
  8037. }
  8038. GLctx.readPixels(x, y, width, height, format, type, pixelData);
  8039. }
  8040. function _emscripten_glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data) {
  8041. GLctx['compressedTexSubImage2D'](target, level, xoffset, yoffset, width, height, format, data ? HEAPU8.subarray((data),(data+imageSize)) : null);
  8042. }
  8043. function _emscripten_glGetError() {
  8044. // First return any GL error generated by the emscripten library_gl.js interop layer.
  8045. if (GL.lastError) {
  8046. var error = GL.lastError;
  8047. GL.lastError = 0/*GL_NO_ERROR*/;
  8048. return error;
  8049. } else { // If there were none, return the GL error from the browser GL context.
  8050. return GLctx.getError();
  8051. }
  8052. }
  8053. function _emscripten_glFramebufferTexture2D(target, attachment, textarget, texture, level) {
  8054. GLctx.framebufferTexture2D(target, attachment, textarget,
  8055. GL.textures[texture], level);
  8056. }
  8057. function _emscripten_glIsEnabled(x0) { return GLctx['isEnabled'](x0) }
  8058. function _glClearDepthf(x0) { GLctx['clearDepth'](x0) }
  8059. Module["_memmove"] = _memmove;
  8060. function _glGenTextures(n, textures) {
  8061. for (var i = 0; i < n; i++) {
  8062. var texture = GLctx.createTexture();
  8063. if (!texture) {
  8064. 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.
  8065. while(i < n) HEAP32[(((textures)+(i++*4))>>2)]=0;
  8066. return;
  8067. }
  8068. var id = GL.getNewId(GL.textures);
  8069. texture.name = id;
  8070. GL.textures[id] = texture;
  8071. HEAP32[(((textures)+(i*4))>>2)]=id;
  8072. }
  8073. }
  8074. function _emscripten_glVertexAttrib4f(x0, x1, x2, x3, x4) { GLctx['vertexAttrib4f'](x0, x1, x2, x3, x4) }
  8075. function _glDepthFunc(x0) { GLctx['depthFunc'](x0) }
  8076. Module["___uremdi3"] = ___uremdi3;
  8077. function _emscripten_glClearDepthf(x0) { GLctx['clearDepth'](x0) }
  8078. function _emscripten_glClear(x0) { GLctx['clear'](x0) }
  8079. function _emscripten_glBindBuffer(target, buffer) {
  8080. var bufferObj = buffer ? GL.buffers[buffer] : null;
  8081. GLctx.bindBuffer(target, bufferObj);
  8082. }
  8083. function _emscripten_glGetUniformfv(program, location, params) {
  8084. emscriptenWebGLGetUniform(program, location, params, 'Float');
  8085. }
  8086. function _glGetProgramiv(program, pname, p) {
  8087. if (!p) {
  8088. // GLES2 specification does not specify how to behave if p is a null pointer. Since calling this function does not make sense
  8089. // if p == null, issue a GL error to notify user about it.
  8090. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8091. return;
  8092. }
  8093. if (program >= GL.counter) {
  8094. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8095. return;
  8096. }
  8097. var ptable = GL.programInfos[program];
  8098. if (!ptable) {
  8099. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8100. return;
  8101. }
  8102. if (pname == 0x8B84) { // GL_INFO_LOG_LENGTH
  8103. var log = GLctx.getProgramInfoLog(GL.programs[program]);
  8104. if (log === null) log = '(unknown error)';
  8105. HEAP32[((p)>>2)]=log.length + 1;
  8106. } else if (pname == 0x8B87 /* GL_ACTIVE_UNIFORM_MAX_LENGTH */) {
  8107. HEAP32[((p)>>2)]=ptable.maxUniformLength;
  8108. } else if (pname == 0x8B8A /* GL_ACTIVE_ATTRIBUTE_MAX_LENGTH */) {
  8109. if (ptable.maxAttributeLength == -1) {
  8110. var program = GL.programs[program];
  8111. var numAttribs = GLctx.getProgramParameter(program, GLctx.ACTIVE_ATTRIBUTES);
  8112. ptable.maxAttributeLength = 0; // Spec says if there are no active attribs, 0 must be returned.
  8113. for (var i = 0; i < numAttribs; ++i) {
  8114. var activeAttrib = GLctx.getActiveAttrib(program, i);
  8115. ptable.maxAttributeLength = Math.max(ptable.maxAttributeLength, activeAttrib.name.length+1);
  8116. }
  8117. }
  8118. HEAP32[((p)>>2)]=ptable.maxAttributeLength;
  8119. } else if (pname == 0x8A35 /* GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH */) {
  8120. if (ptable.maxUniformBlockNameLength == -1) {
  8121. var program = GL.programs[program];
  8122. var numBlocks = GLctx.getProgramParameter(program, GLctx.ACTIVE_UNIFORM_BLOCKS);
  8123. ptable.maxUniformBlockNameLength = 0;
  8124. for (var i = 0; i < numBlocks; ++i) {
  8125. var activeBlockName = GLctx.getActiveUniformBlockName(program, i);
  8126. ptable.maxUniformBlockNameLength = Math.max(ptable.maxUniformBlockNameLength, activeBlockName.length+1);
  8127. }
  8128. }
  8129. HEAP32[((p)>>2)]=ptable.maxUniformBlockNameLength;
  8130. } else {
  8131. HEAP32[((p)>>2)]=GLctx.getProgramParameter(GL.programs[program], pname);
  8132. }
  8133. }
  8134. function _glVertexAttribPointer(index, size, type, normalized, stride, ptr) {
  8135. GLctx.vertexAttribPointer(index, size, type, !!normalized, stride, ptr);
  8136. }
  8137. function _emscripten_exit_pointerlock() {
  8138. // Make sure no queued up calls will fire after this.
  8139. JSEvents.removeDeferredCalls(JSEvents.requestPointerLock);
  8140. if (document.exitPointerLock) {
  8141. document.exitPointerLock();
  8142. } else if (document.msExitPointerLock) {
  8143. document.msExitPointerLock();
  8144. } else if (document.mozExitPointerLock) {
  8145. document.mozExitPointerLock();
  8146. } else if (document.webkitExitPointerLock) {
  8147. document.webkitExitPointerLock();
  8148. } else {
  8149. return -1;
  8150. }
  8151. return 0;
  8152. }
  8153. function _emscripten_glDrawRangeElements() {
  8154. Module['printErr']('missing function: emscripten_glDrawRangeElements'); abort(-1);
  8155. }
  8156. function _glGetUniformLocation(program, name) {
  8157. name = Pointer_stringify(name);
  8158. var arrayOffset = 0;
  8159. // If user passed an array accessor "[index]", parse the array index off the accessor.
  8160. if (name.indexOf(']', name.length-1) !== -1) {
  8161. var ls = name.lastIndexOf('[');
  8162. var arrayIndex = name.slice(ls+1, -1);
  8163. if (arrayIndex.length > 0) {
  8164. arrayOffset = parseInt(arrayIndex);
  8165. if (arrayOffset < 0) {
  8166. return -1;
  8167. }
  8168. }
  8169. name = name.slice(0, ls);
  8170. }
  8171. var ptable = GL.programInfos[program];
  8172. if (!ptable) {
  8173. return -1;
  8174. }
  8175. var utable = ptable.uniforms;
  8176. var uniformInfo = utable[name]; // returns pair [ dimension_of_uniform_array, uniform_location ]
  8177. 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.
  8178. return uniformInfo[1]+arrayOffset;
  8179. } else {
  8180. return -1;
  8181. }
  8182. }
  8183. function _emscripten_glGetAttachedShaders(program, maxCount, count, shaders) {
  8184. var result = GLctx.getAttachedShaders(GL.programs[program]);
  8185. var len = result.length;
  8186. if (len > maxCount) {
  8187. len = maxCount;
  8188. }
  8189. HEAP32[((count)>>2)]=len;
  8190. for (var i = 0; i < len; ++i) {
  8191. var id = GL.shaders.indexOf(result[i]);
  8192. assert(id !== -1, 'shader not bound to local id');
  8193. HEAP32[(((shaders)+(i*4))>>2)]=id;
  8194. }
  8195. }
  8196. function _emscripten_glGenRenderbuffers(n, renderbuffers) {
  8197. for (var i = 0; i < n; i++) {
  8198. var renderbuffer = GLctx.createRenderbuffer();
  8199. if (!renderbuffer) {
  8200. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8201. while(i < n) HEAP32[(((renderbuffers)+(i++*4))>>2)]=0;
  8202. return;
  8203. }
  8204. var id = GL.getNewId(GL.renderbuffers);
  8205. renderbuffer.name = id;
  8206. GL.renderbuffers[id] = renderbuffer;
  8207. HEAP32[(((renderbuffers)+(i*4))>>2)]=id;
  8208. }
  8209. }
  8210. function _emscripten_glFrontFace(x0) { GLctx['frontFace'](x0) }
  8211. function _emscripten_glDepthRangef(x0, x1) { GLctx['depthRange'](x0, x1) }
  8212. function _emscripten_glUniform1iv(location, count, value) {
  8213. GLctx.uniform1iv(GL.uniforms[location], HEAP32.subarray((value)>>2,(value+count*4)>>2));
  8214. }
  8215. function _emscripten_glTexCoordPointer() {
  8216. Module['printErr']('missing function: emscripten_glTexCoordPointer'); abort(-1);
  8217. }
  8218. function _emscripten_glGetInfoLogARB() {
  8219. Module['printErr']('missing function: emscripten_glGetInfoLogARB'); abort(-1);
  8220. }
  8221. function __exit(status) {
  8222. // void _exit(int status);
  8223. // http://pubs.opengroup.org/onlinepubs/000095399/functions/exit.html
  8224. Module['exit'](status);
  8225. }function _exit(status) {
  8226. __exit(status);
  8227. }
  8228. function _emscripten_glRenderbufferStorage(x0, x1, x2, x3) { GLctx['renderbufferStorage'](x0, x1, x2, x3) }
  8229. function _glCheckFramebufferStatus(x0) { return GLctx['checkFramebufferStatus'](x0) }
  8230. function _emscripten_glCopyTexSubImage2D(x0, x1, x2, x3, x4, x5, x6, x7) { GLctx['copyTexSubImage2D'](x0, x1, x2, x3, x4, x5, x6, x7) }
  8231. function _glfwSetCursorPosCallback(winid, cbfun) {
  8232. GLFW.setCursorPosCallback(winid, cbfun);
  8233. }
  8234. function _glBindAttribLocation(program, index, name) {
  8235. name = Pointer_stringify(name);
  8236. GLctx.bindAttribLocation(GL.programs[program], index, name);
  8237. }
  8238. function _emscripten_glShaderBinary() {
  8239. GL.recordError(0x0500/*GL_INVALID_ENUM*/);
  8240. }
  8241. function _emscripten_glIsProgram(program) {
  8242. var program = GL.programs[program];
  8243. if (!program) return 0;
  8244. return GLctx.isProgram(program);
  8245. }
  8246. function _emscripten_glBlendColor(x0, x1, x2, x3) { GLctx['blendColor'](x0, x1, x2, x3) }
  8247. function _emscripten_glGetShaderiv(shader, pname, p) {
  8248. if (!p) {
  8249. // GLES2 specification does not specify how to behave if p is a null pointer. Since calling this function does not make sense
  8250. // if p == null, issue a GL error to notify user about it.
  8251. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8252. return;
  8253. }
  8254. if (pname == 0x8B84) { // GL_INFO_LOG_LENGTH
  8255. var log = GLctx.getShaderInfoLog(GL.shaders[shader]);
  8256. if (log === null) log = '(unknown error)';
  8257. HEAP32[((p)>>2)]=log.length + 1;
  8258. } else {
  8259. HEAP32[((p)>>2)]=GLctx.getShaderParameter(GL.shaders[shader], pname);
  8260. }
  8261. }
  8262. function _emscripten_glUniformMatrix3fv(location, count, transpose, value) {
  8263. var view;
  8264. if (9*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  8265. // avoid allocation when uploading few enough uniforms
  8266. view = GL.miniTempBufferViews[9*count-1];
  8267. for (var i = 0; i < 9*count; i += 9) {
  8268. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  8269. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  8270. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  8271. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  8272. view[i+4] = HEAPF32[(((value)+(4*i+16))>>2)];
  8273. view[i+5] = HEAPF32[(((value)+(4*i+20))>>2)];
  8274. view[i+6] = HEAPF32[(((value)+(4*i+24))>>2)];
  8275. view[i+7] = HEAPF32[(((value)+(4*i+28))>>2)];
  8276. view[i+8] = HEAPF32[(((value)+(4*i+32))>>2)];
  8277. }
  8278. } else {
  8279. view = HEAPF32.subarray((value)>>2,(value+count*36)>>2);
  8280. }
  8281. GLctx.uniformMatrix3fv(GL.uniforms[location], !!transpose, view);
  8282. }
  8283. function _emscripten_glVertexAttrib2f(x0, x1, x2) { GLctx['vertexAttrib2f'](x0, x1, x2) }
  8284. function _emscripten_glUniform4fv(location, count, value) {
  8285. var view;
  8286. if (4*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  8287. // avoid allocation when uploading few enough uniforms
  8288. view = GL.miniTempBufferViews[4*count-1];
  8289. for (var i = 0; i < 4*count; i += 4) {
  8290. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  8291. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  8292. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  8293. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  8294. }
  8295. } else {
  8296. view = HEAPF32.subarray((value)>>2,(value+count*16)>>2);
  8297. }
  8298. GLctx.uniform4fv(GL.uniforms[location], view);
  8299. }
  8300. function _glBufferSubData(target, offset, size, data) {
  8301. GLctx.bufferSubData(target, offset, HEAPU8.subarray(data, data+size));
  8302. }
  8303. function _emscripten_glGenFramebuffers(n, ids) {
  8304. for (var i = 0; i < n; ++i) {
  8305. var framebuffer = GLctx.createFramebuffer();
  8306. if (!framebuffer) {
  8307. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8308. while(i < n) HEAP32[(((ids)+(i++*4))>>2)]=0;
  8309. return;
  8310. }
  8311. var id = GL.getNewId(GL.framebuffers);
  8312. framebuffer.name = id;
  8313. GL.framebuffers[id] = framebuffer;
  8314. HEAP32[(((ids)+(i*4))>>2)]=id;
  8315. }
  8316. }
  8317. function _glGetShaderiv(shader, pname, p) {
  8318. if (!p) {
  8319. // GLES2 specification does not specify how to behave if p is a null pointer. Since calling this function does not make sense
  8320. // if p == null, issue a GL error to notify user about it.
  8321. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8322. return;
  8323. }
  8324. if (pname == 0x8B84) { // GL_INFO_LOG_LENGTH
  8325. var log = GLctx.getShaderInfoLog(GL.shaders[shader]);
  8326. if (log === null) log = '(unknown error)';
  8327. HEAP32[((p)>>2)]=log.length + 1;
  8328. } else {
  8329. HEAP32[((p)>>2)]=GLctx.getShaderParameter(GL.shaders[shader], pname);
  8330. }
  8331. }
  8332. function _emscripten_glBlendEquationSeparate(x0, x1) { GLctx['blendEquationSeparate'](x0, x1) }
  8333. function _glfwSetWindowIconifyCallback(winid, cbfun) {
  8334. var win = GLFW.WindowFromId(winid);
  8335. if (!win) return;
  8336. win.windowIconifyFunc = cbfun;
  8337. }
  8338. function _emscripten_glUniform1i(location, v0) {
  8339. GLctx.uniform1i(GL.uniforms[location], v0);
  8340. }
  8341. function _emscripten_glGenTextures(n, textures) {
  8342. for (var i = 0; i < n; i++) {
  8343. var texture = GLctx.createTexture();
  8344. if (!texture) {
  8345. 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.
  8346. while(i < n) HEAP32[(((textures)+(i++*4))>>2)]=0;
  8347. return;
  8348. }
  8349. var id = GL.getNewId(GL.textures);
  8350. texture.name = id;
  8351. GL.textures[id] = texture;
  8352. HEAP32[(((textures)+(i*4))>>2)]=id;
  8353. }
  8354. }
  8355. function _emscripten_glVertexAttrib2fv(index, v) {
  8356. GLctx.vertexAttrib2f(index, HEAPF32[v>>2], HEAPF32[v+4>>2]);
  8357. }
  8358. function _emscripten_glGetActiveUniform(program, index, bufSize, length, size, type, name) {
  8359. program = GL.programs[program];
  8360. var info = GLctx.getActiveUniform(program, index);
  8361. if (!info) return; // If an error occurs, nothing will be written to length, size, type and name.
  8362. if (bufSize > 0 && name) {
  8363. var numBytesWrittenExclNull = stringToUTF8(info.name, name, bufSize);
  8364. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  8365. } else {
  8366. if (length) HEAP32[((length)>>2)]=0;
  8367. }
  8368. if (size) HEAP32[((size)>>2)]=info.size;
  8369. if (type) HEAP32[((type)>>2)]=info.type;
  8370. }
  8371. Module["_roundf"] = _roundf;
  8372. function _emscripten_glDeleteObjectARB() {
  8373. Module['printErr']('missing function: emscripten_glDeleteObjectARB'); abort(-1);
  8374. }
  8375. function _emscripten_set_touchmove_callback(target, userData, useCapture, callbackfunc) {
  8376. JSEvents.registerTouchEventCallback(target, userData, useCapture, callbackfunc, 24, "touchmove");
  8377. return 0;
  8378. }
  8379. function _emscripten_glUniform1f(location, v0) {
  8380. GLctx.uniform1f(GL.uniforms[location], v0);
  8381. }
  8382. function _emscripten_glVertexAttribPointer(index, size, type, normalized, stride, ptr) {
  8383. GLctx.vertexAttribPointer(index, size, type, !!normalized, stride, ptr);
  8384. }
  8385. function _glShaderSource(shader, count, string, length) {
  8386. var source = GL.getSource(shader, count, string, length);
  8387. GLctx.shaderSource(GL.shaders[shader], source);
  8388. }
  8389. function _emscripten_glDrawArrays(mode, first, count) {
  8390. GLctx.drawArrays(mode, first, count);
  8391. }
  8392. function _emscripten_glGenBuffers(n, buffers) {
  8393. for (var i = 0; i < n; i++) {
  8394. var buffer = GLctx.createBuffer();
  8395. if (!buffer) {
  8396. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8397. while(i < n) HEAP32[(((buffers)+(i++*4))>>2)]=0;
  8398. return;
  8399. }
  8400. var id = GL.getNewId(GL.buffers);
  8401. buffer.name = id;
  8402. GL.buffers[id] = buffer;
  8403. HEAP32[(((buffers)+(i*4))>>2)]=id;
  8404. }
  8405. }
  8406. function _emscripten_glClearDepth(x0) { GLctx['clearDepth'](x0) }
  8407. function _emscripten_set_keypress_callback(target, userData, useCapture, callbackfunc) {
  8408. JSEvents.registerKeyEventCallback(target, userData, useCapture, callbackfunc, 1, "keypress");
  8409. return 0;
  8410. }
  8411. function _glfwSetCharCallback(winid, cbfun) {
  8412. GLFW.setCharCallback(winid, cbfun);
  8413. }
  8414. function _emscripten_glGetUniformLocation(program, name) {
  8415. name = Pointer_stringify(name);
  8416. var arrayOffset = 0;
  8417. // If user passed an array accessor "[index]", parse the array index off the accessor.
  8418. if (name.indexOf(']', name.length-1) !== -1) {
  8419. var ls = name.lastIndexOf('[');
  8420. var arrayIndex = name.slice(ls+1, -1);
  8421. if (arrayIndex.length > 0) {
  8422. arrayOffset = parseInt(arrayIndex);
  8423. if (arrayOffset < 0) {
  8424. return -1;
  8425. }
  8426. }
  8427. name = name.slice(0, ls);
  8428. }
  8429. var ptable = GL.programInfos[program];
  8430. if (!ptable) {
  8431. return -1;
  8432. }
  8433. var utable = ptable.uniforms;
  8434. var uniformInfo = utable[name]; // returns pair [ dimension_of_uniform_array, uniform_location ]
  8435. 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.
  8436. return uniformInfo[1]+arrayOffset;
  8437. } else {
  8438. return -1;
  8439. }
  8440. }
  8441. function _glActiveTexture(x0) { GLctx['activeTexture'](x0) }
  8442. function _glBindBuffer(target, buffer) {
  8443. var bufferObj = buffer ? GL.buffers[buffer] : null;
  8444. GLctx.bindBuffer(target, bufferObj);
  8445. }
  8446. function _emscripten_glVertexAttrib4fv(index, v) {
  8447. GLctx.vertexAttrib4f(index, HEAPF32[v>>2], HEAPF32[v+4>>2], HEAPF32[v+8>>2], HEAPF32[v+12>>2]);
  8448. }
  8449. function _emscripten_glScissor(x0, x1, x2, x3) { GLctx['scissor'](x0, x1, x2, x3) }
  8450. function _glfwSetCursorEnterCallback(winid, cbfun) {
  8451. var win = GLFW.WindowFromId(winid);
  8452. if (!win) return;
  8453. win.cursorEnterFunc = cbfun;
  8454. }
  8455. Module["_bitshift64Lshr"] = _bitshift64Lshr;
  8456. function _glBufferData(target, size, data, usage) {
  8457. if (!data) {
  8458. GLctx.bufferData(target, size, usage);
  8459. } else {
  8460. GLctx.bufferData(target, HEAPU8.subarray(data, data+size), usage);
  8461. }
  8462. }
  8463. function _emscripten_glIsShader(shader) {
  8464. var s = GL.shaders[shader];
  8465. if (!s) return 0;
  8466. return GLctx.isShader(s);
  8467. }
  8468. function _emscripten_glDrawBuffers(n, bufs) {
  8469. var bufArray = GL.tempFixedLengthArray[n];
  8470. for (var i = 0; i < n; i++) {
  8471. bufArray[i] = HEAP32[(((bufs)+(i*4))>>2)];
  8472. }
  8473. GLctx['drawBuffers'](bufArray);
  8474. }
  8475. function _glGetFloatv(name_, p) {
  8476. emscriptenWebGLGet(name_, p, 'Float');
  8477. }
  8478. function _emscripten_glBindFramebuffer(target, framebuffer) {
  8479. GLctx.bindFramebuffer(target, framebuffer ? GL.framebuffers[framebuffer] : null);
  8480. }
  8481. function _emscripten_glBlendEquation(x0) { GLctx['blendEquation'](x0) }
  8482. function _emscripten_glBufferSubData(target, offset, size, data) {
  8483. GLctx.bufferSubData(target, offset, HEAPU8.subarray(data, data+size));
  8484. }
  8485. function _emscripten_glBufferData(target, size, data, usage) {
  8486. if (!data) {
  8487. GLctx.bufferData(target, size, usage);
  8488. } else {
  8489. GLctx.bufferData(target, HEAPU8.subarray(data, data+size), usage);
  8490. }
  8491. }
  8492. Module["_sbrk"] = _sbrk;
  8493. Module["_bitshift64Shl"] = _bitshift64Shl;
  8494. function _emscripten_glGetShaderSource(shader, bufSize, length, source) {
  8495. var result = GLctx.getShaderSource(GL.shaders[shader]);
  8496. if (!result) return; // If an error occurs, nothing will be written to length or source.
  8497. if (bufSize > 0 && source) {
  8498. var numBytesWrittenExclNull = stringToUTF8(result, source, bufSize);
  8499. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  8500. } else {
  8501. if (length) HEAP32[((length)>>2)]=0;
  8502. }
  8503. }
  8504. Module["_llvm_bswap_i32"] = _llvm_bswap_i32;
  8505. function _glTexParameteri(x0, x1, x2) { GLctx['texParameteri'](x0, x1, x2) }
  8506. function _glBindRenderbuffer(target, renderbuffer) {
  8507. GLctx.bindRenderbuffer(target, renderbuffer ? GL.renderbuffers[renderbuffer] : null);
  8508. }
  8509. function _glfwSetKeyCallback(winid, cbfun) {
  8510. GLFW.setKeyCallback(winid, cbfun);
  8511. }
  8512. function _emscripten_set_gamepadconnected_callback(userData, useCapture, callbackfunc) {
  8513. if (!navigator.getGamepads && !navigator.webkitGetGamepads) return -1;
  8514. JSEvents.registerGamepadEventCallback(window, userData, useCapture, callbackfunc, 26, "gamepadconnected");
  8515. return 0;
  8516. }
  8517. function _emscripten_glGetFloatv(name_, p) {
  8518. emscriptenWebGLGet(name_, p, 'Float');
  8519. }
  8520. function _glTexImage2D(target, level, internalFormat, width, height, border, format, type, pixels) {
  8521. var pixelData = null;
  8522. if (pixels) pixelData = emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, internalFormat);
  8523. GLctx.texImage2D(target, level, internalFormat, width, height, border, format, type, pixelData);
  8524. }
  8525. function _glGetProgramInfoLog(program, maxLength, length, infoLog) {
  8526. var log = GLctx.getProgramInfoLog(GL.programs[program]);
  8527. if (log === null) log = '(unknown error)';
  8528. if (maxLength > 0 && infoLog) {
  8529. var numBytesWrittenExclNull = stringToUTF8(log, infoLog, maxLength);
  8530. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  8531. } else {
  8532. if (length) HEAP32[((length)>>2)]=0;
  8533. }
  8534. }
  8535. function _emscripten_glVertexAttribDivisor(index, divisor) {
  8536. GLctx['vertexAttribDivisor'](index, divisor);
  8537. }
  8538. function _emscripten_glDrawElementsInstanced(mode, count, type, indices, primcount) {
  8539. GLctx['drawElementsInstanced'](mode, count, type, indices, primcount);
  8540. }
  8541. function _emscripten_glDrawElements(mode, count, type, indices) {
  8542. GLctx.drawElements(mode, count, type, indices);
  8543. }
  8544. function _glDeleteBuffers(n, buffers) {
  8545. for (var i = 0; i < n; i++) {
  8546. var id = HEAP32[(((buffers)+(i*4))>>2)];
  8547. var buffer = GL.buffers[id];
  8548. // From spec: "glDeleteBuffers silently ignores 0's and names that do not
  8549. // correspond to existing buffer objects."
  8550. if (!buffer) continue;
  8551. GLctx.deleteBuffer(buffer);
  8552. buffer.name = 0;
  8553. GL.buffers[id] = null;
  8554. if (id == GL.currArrayBuffer) GL.currArrayBuffer = 0;
  8555. if (id == GL.currElementArrayBuffer) GL.currElementArrayBuffer = 0;
  8556. }
  8557. }
  8558. function _emscripten_glCreateProgram() {
  8559. var id = GL.getNewId(GL.programs);
  8560. var program = GLctx.createProgram();
  8561. program.name = id;
  8562. GL.programs[id] = program;
  8563. return id;
  8564. }
  8565. function _emscripten_glCompressedTexImage2D(target, level, internalFormat, width, height, border, imageSize, data) {
  8566. GLctx['compressedTexImage2D'](target, level, internalFormat, width, height, border, data ? HEAPU8.subarray((data),(data+imageSize)) : null);
  8567. }
  8568. function _emscripten_glClearColor(x0, x1, x2, x3) { GLctx['clearColor'](x0, x1, x2, x3) }
  8569. function _emscripten_glBindVertexArray(vao) {
  8570. GLctx['bindVertexArray'](GL.vaos[vao]);
  8571. }
  8572. function _emscripten_glLoadMatrixf() {
  8573. Module['printErr']('missing function: emscripten_glLoadMatrixf'); abort(-1);
  8574. }
  8575. function _glDeleteShader(id) {
  8576. if (!id) return;
  8577. var shader = GL.shaders[id];
  8578. if (!shader) { // glDeleteShader actually signals an error when deleting a nonexisting object, unlike some other GL delete functions.
  8579. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8580. return;
  8581. }
  8582. GLctx.deleteShader(shader);
  8583. GL.shaders[id] = null;
  8584. }
  8585. function _emscripten_glGetProgramiv(program, pname, p) {
  8586. if (!p) {
  8587. // GLES2 specification does not specify how to behave if p is a null pointer. Since calling this function does not make sense
  8588. // if p == null, issue a GL error to notify user about it.
  8589. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8590. return;
  8591. }
  8592. if (program >= GL.counter) {
  8593. GL.recordError(0x0501 /* GL_INVALID_VALUE */);
  8594. return;
  8595. }
  8596. var ptable = GL.programInfos[program];
  8597. if (!ptable) {
  8598. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8599. return;
  8600. }
  8601. if (pname == 0x8B84) { // GL_INFO_LOG_LENGTH
  8602. var log = GLctx.getProgramInfoLog(GL.programs[program]);
  8603. if (log === null) log = '(unknown error)';
  8604. HEAP32[((p)>>2)]=log.length + 1;
  8605. } else if (pname == 0x8B87 /* GL_ACTIVE_UNIFORM_MAX_LENGTH */) {
  8606. HEAP32[((p)>>2)]=ptable.maxUniformLength;
  8607. } else if (pname == 0x8B8A /* GL_ACTIVE_ATTRIBUTE_MAX_LENGTH */) {
  8608. if (ptable.maxAttributeLength == -1) {
  8609. var program = GL.programs[program];
  8610. var numAttribs = GLctx.getProgramParameter(program, GLctx.ACTIVE_ATTRIBUTES);
  8611. ptable.maxAttributeLength = 0; // Spec says if there are no active attribs, 0 must be returned.
  8612. for (var i = 0; i < numAttribs; ++i) {
  8613. var activeAttrib = GLctx.getActiveAttrib(program, i);
  8614. ptable.maxAttributeLength = Math.max(ptable.maxAttributeLength, activeAttrib.name.length+1);
  8615. }
  8616. }
  8617. HEAP32[((p)>>2)]=ptable.maxAttributeLength;
  8618. } else if (pname == 0x8A35 /* GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH */) {
  8619. if (ptable.maxUniformBlockNameLength == -1) {
  8620. var program = GL.programs[program];
  8621. var numBlocks = GLctx.getProgramParameter(program, GLctx.ACTIVE_UNIFORM_BLOCKS);
  8622. ptable.maxUniformBlockNameLength = 0;
  8623. for (var i = 0; i < numBlocks; ++i) {
  8624. var activeBlockName = GLctx.getActiveUniformBlockName(program, i);
  8625. ptable.maxUniformBlockNameLength = Math.max(ptable.maxUniformBlockNameLength, activeBlockName.length+1);
  8626. }
  8627. }
  8628. HEAP32[((p)>>2)]=ptable.maxUniformBlockNameLength;
  8629. } else {
  8630. HEAP32[((p)>>2)]=GLctx.getProgramParameter(GL.programs[program], pname);
  8631. }
  8632. }
  8633. function _emscripten_glGetProgramInfoLog(program, maxLength, length, infoLog) {
  8634. var log = GLctx.getProgramInfoLog(GL.programs[program]);
  8635. if (log === null) log = '(unknown error)';
  8636. if (maxLength > 0 && infoLog) {
  8637. var numBytesWrittenExclNull = stringToUTF8(log, infoLog, maxLength);
  8638. if (length) HEAP32[((length)>>2)]=numBytesWrittenExclNull;
  8639. } else {
  8640. if (length) HEAP32[((length)>>2)]=0;
  8641. }
  8642. }
  8643. function _emscripten_glTexImage2D(target, level, internalFormat, width, height, border, format, type, pixels) {
  8644. var pixelData = null;
  8645. if (pixels) pixelData = emscriptenWebGLGetTexPixelData(type, format, width, height, pixels, internalFormat);
  8646. GLctx.texImage2D(target, level, internalFormat, width, height, border, format, type, pixelData);
  8647. }
  8648. function _glPixelStorei(pname, param) {
  8649. if (pname == 0x0D05 /* GL_PACK_ALIGNMENT */) {
  8650. GL.packAlignment = param;
  8651. } else if (pname == 0x0cf5 /* GL_UNPACK_ALIGNMENT */) {
  8652. GL.unpackAlignment = param;
  8653. }
  8654. GLctx.pixelStorei(pname, param);
  8655. }
  8656. function ___unlock() {}
  8657. function _emscripten_glActiveTexture(x0) { GLctx['activeTexture'](x0) }
  8658. function _glViewport(x0, x1, x2, x3) { GLctx['viewport'](x0, x1, x2, x3) }
  8659. function _glVertexAttrib2f(x0, x1, x2) { GLctx['vertexAttrib2f'](x0, x1, x2) }
  8660. function _glfwDestroyWindow(winid) {
  8661. return GLFW.destroyWindow(winid);
  8662. }
  8663. function _emscripten_glFlush() { GLctx['flush']() }
  8664. function _glfwSetErrorCallback(cbfun) {
  8665. GLFW.errorFunc = cbfun;
  8666. }
  8667. function _emscripten_glCreateShader(shaderType) {
  8668. var id = GL.getNewId(GL.shaders);
  8669. GL.shaders[id] = GLctx.createShader(shaderType);
  8670. return id;
  8671. }
  8672. function _glUniformMatrix4fv(location, count, transpose, value) {
  8673. var view;
  8674. if (16*count <= GL.MINI_TEMP_BUFFER_SIZE) {
  8675. // avoid allocation when uploading few enough uniforms
  8676. view = GL.miniTempBufferViews[16*count-1];
  8677. for (var i = 0; i < 16*count; i += 16) {
  8678. view[i] = HEAPF32[(((value)+(4*i))>>2)];
  8679. view[i+1] = HEAPF32[(((value)+(4*i+4))>>2)];
  8680. view[i+2] = HEAPF32[(((value)+(4*i+8))>>2)];
  8681. view[i+3] = HEAPF32[(((value)+(4*i+12))>>2)];
  8682. view[i+4] = HEAPF32[(((value)+(4*i+16))>>2)];
  8683. view[i+5] = HEAPF32[(((value)+(4*i+20))>>2)];
  8684. view[i+6] = HEAPF32[(((value)+(4*i+24))>>2)];
  8685. view[i+7] = HEAPF32[(((value)+(4*i+28))>>2)];
  8686. view[i+8] = HEAPF32[(((value)+(4*i+32))>>2)];
  8687. view[i+9] = HEAPF32[(((value)+(4*i+36))>>2)];
  8688. view[i+10] = HEAPF32[(((value)+(4*i+40))>>2)];
  8689. view[i+11] = HEAPF32[(((value)+(4*i+44))>>2)];
  8690. view[i+12] = HEAPF32[(((value)+(4*i+48))>>2)];
  8691. view[i+13] = HEAPF32[(((value)+(4*i+52))>>2)];
  8692. view[i+14] = HEAPF32[(((value)+(4*i+56))>>2)];
  8693. view[i+15] = HEAPF32[(((value)+(4*i+60))>>2)];
  8694. }
  8695. } else {
  8696. view = HEAPF32.subarray((value)>>2,(value+count*64)>>2);
  8697. }
  8698. GLctx.uniformMatrix4fv(GL.uniforms[location], !!transpose, view);
  8699. }
  8700. function _emscripten_glValidateProgram(program) {
  8701. GLctx.validateProgram(GL.programs[program]);
  8702. }
  8703. function _emscripten_set_click_callback(target, userData, useCapture, callbackfunc) {
  8704. JSEvents.registerMouseEventCallback(target, userData, useCapture, callbackfunc, 4, "click");
  8705. return 0;
  8706. }
  8707. function _glFrontFace(x0) { GLctx['frontFace'](x0) }
  8708. function _emscripten_glColorMask(red, green, blue, alpha) {
  8709. GLctx.colorMask(!!red, !!green, !!blue, !!alpha);
  8710. }
  8711. function _emscripten_glPixelStorei(pname, param) {
  8712. if (pname == 0x0D05 /* GL_PACK_ALIGNMENT */) {
  8713. GL.packAlignment = param;
  8714. } else if (pname == 0x0cf5 /* GL_UNPACK_ALIGNMENT */) {
  8715. GL.unpackAlignment = param;
  8716. }
  8717. GLctx.pixelStorei(pname, param);
  8718. }
  8719. function _emscripten_glDeleteTextures(n, textures) {
  8720. for (var i = 0; i < n; i++) {
  8721. var id = HEAP32[(((textures)+(i*4))>>2)];
  8722. var texture = GL.textures[id];
  8723. if (!texture) continue; // GL spec: "glDeleteTextures silently ignores 0s and names that do not correspond to existing textures".
  8724. GLctx.deleteTexture(texture);
  8725. texture.name = 0;
  8726. GL.textures[id] = null;
  8727. }
  8728. }
  8729. function _glfwGetKey(winid, key) {
  8730. return GLFW.getKey(winid, key);
  8731. }
  8732. function _emscripten_glCompileShader(shader) {
  8733. GLctx.compileShader(GL.shaders[shader]);
  8734. }
  8735. function _emscripten_glGenVertexArrays(n, arrays) {
  8736. for (var i = 0; i < n; i++) {
  8737. var vao = GLctx['createVertexArray']();
  8738. if (!vao) {
  8739. GL.recordError(0x0502 /* GL_INVALID_OPERATION */);
  8740. while(i < n) HEAP32[(((arrays)+(i++*4))>>2)]=0;
  8741. return;
  8742. }
  8743. var id = GL.getNewId(GL.vaos);
  8744. vao.name = id;
  8745. GL.vaos[id] = vao;
  8746. HEAP32[(((arrays)+(i*4))>>2)]=id;
  8747. }
  8748. }
  8749. function _time(ptr) {
  8750. var ret = (Date.now()/1000)|0;
  8751. if (ptr) {
  8752. HEAP32[((ptr)>>2)]=ret;
  8753. }
  8754. return ret;
  8755. }
  8756. function _emscripten_glGetBooleanv(name_, p) {
  8757. emscriptenWebGLGet(name_, p, 'Boolean');
  8758. }
  8759. function ___syscall221(which, varargs) {SYSCALLS.varargs = varargs;
  8760. try {
  8761. // fcntl64
  8762. var stream = SYSCALLS.getStreamFromFD(), cmd = SYSCALLS.get();
  8763. switch (cmd) {
  8764. case 0: {
  8765. var arg = SYSCALLS.get();
  8766. if (arg < 0) {
  8767. return -ERRNO_CODES.EINVAL;
  8768. }
  8769. var newStream;
  8770. newStream = FS.open(stream.path, stream.flags, 0, arg);
  8771. return newStream.fd;
  8772. }
  8773. case 1:
  8774. case 2:
  8775. return 0; // FD_CLOEXEC makes no sense for a single process.
  8776. case 3:
  8777. return stream.flags;
  8778. case 4: {
  8779. var arg = SYSCALLS.get();
  8780. stream.flags |= arg;
  8781. return 0;
  8782. }
  8783. case 12:
  8784. case 12: {
  8785. var arg = SYSCALLS.get();
  8786. var offset = 0;
  8787. // We're always unlocked.
  8788. HEAP16[(((arg)+(offset))>>1)]=2;
  8789. return 0;
  8790. }
  8791. case 13:
  8792. case 14:
  8793. case 13:
  8794. case 14:
  8795. return 0; // Pretend that the locking is successful.
  8796. case 16:
  8797. case 8:
  8798. return -ERRNO_CODES.EINVAL; // These are for sockets. We don't have them fully implemented yet.
  8799. case 9:
  8800. // 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.
  8801. ___setErrNo(ERRNO_CODES.EINVAL);
  8802. return -1;
  8803. default: {
  8804. return -ERRNO_CODES.EINVAL;
  8805. }
  8806. }
  8807. } catch (e) {
  8808. if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
  8809. return -e.errno;
  8810. }
  8811. }
  8812. var GLctx; GL.init();
  8813. if (ENVIRONMENT_IS_NODE) {
  8814. _emscripten_get_now = function _emscripten_get_now_actual() {
  8815. var t = process['hrtime']();
  8816. return t[0] * 1e3 + t[1] / 1e6;
  8817. };
  8818. } else if (typeof dateNow !== 'undefined') {
  8819. _emscripten_get_now = dateNow;
  8820. } else if (typeof self === 'object' && self['performance'] && typeof self['performance']['now'] === 'function') {
  8821. _emscripten_get_now = function() { return self['performance']['now'](); };
  8822. } else if (typeof performance === 'object' && typeof performance['now'] === 'function') {
  8823. _emscripten_get_now = function() { return performance['now'](); };
  8824. } else {
  8825. _emscripten_get_now = Date.now;
  8826. };
  8827. 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) };
  8828. Module["requestFullscreen"] = function Module_requestFullscreen(lockPointer, resizeCanvas, vrDevice) { Browser.requestFullscreen(lockPointer, resizeCanvas, vrDevice) };
  8829. Module["requestAnimationFrame"] = function Module_requestAnimationFrame(func) { Browser.requestAnimationFrame(func) };
  8830. Module["setCanvasSize"] = function Module_setCanvasSize(width, height, noUpdates) { Browser.setCanvasSize(width, height, noUpdates) };
  8831. Module["pauseMainLoop"] = function Module_pauseMainLoop() { Browser.mainLoop.pause() };
  8832. Module["resumeMainLoop"] = function Module_resumeMainLoop() { Browser.mainLoop.resume() };
  8833. Module["getUserMedia"] = function Module_getUserMedia() { Browser.getUserMedia() }
  8834. Module["createContext"] = function Module_createContext(canvas, useWebGL, setInModule, webGLContextAttributes) { return Browser.createContext(canvas, useWebGL, setInModule, webGLContextAttributes) };
  8835. 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;;
  8836. __ATINIT__.unshift(function() { TTY.init() });__ATEXIT__.push(function() { TTY.shutdown() });;
  8837. if (ENVIRONMENT_IS_NODE) { var fs = require("fs"); var NODEJS_PATH = require("path"); NODEFS.staticInit(); };
  8838. JSEvents.staticInit();;
  8839. DYNAMICTOP_PTR = allocate(1, "i32", ALLOC_STATIC);
  8840. STACK_BASE = STACKTOP = Runtime.alignMemory(STATICTOP);
  8841. STACK_MAX = STACK_BASE + TOTAL_STACK;
  8842. DYNAMIC_BASE = Runtime.alignMemory(STACK_MAX);
  8843. HEAP32[DYNAMICTOP_PTR>>2] = DYNAMIC_BASE;
  8844. staticSealed = true; // seal the static portion of memory
  8845. assert(DYNAMIC_BASE < TOTAL_MEMORY, "TOTAL_MEMORY not big enough for stack");
  8846. 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) }
  8847. 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) }
  8848. 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) }
  8849. 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) }
  8850. 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) }
  8851. 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) }
  8852. 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) }
  8853. 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) }
  8854. 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) }
  8855. 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) }
  8856. 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) }
  8857. 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) }
  8858. 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) }
  8859. 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) }
  8860. 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) }
  8861. 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) }
  8862. 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) }
  8863. 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) }
  8864. 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) }
  8865. 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) }
  8866. 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) }
  8867. 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) }
  8868. 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) }
  8869. 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) }
  8870. function invoke_viiiii(index,a1,a2,a3,a4,a5) {
  8871. try {
  8872. Module["dynCall_viiiii"](index,a1,a2,a3,a4,a5);
  8873. } catch(e) {
  8874. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8875. Module["setThrew"](1, 0);
  8876. }
  8877. }
  8878. function invoke_vd(index,a1) {
  8879. try {
  8880. Module["dynCall_vd"](index,a1);
  8881. } catch(e) {
  8882. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8883. Module["setThrew"](1, 0);
  8884. }
  8885. }
  8886. function invoke_vid(index,a1,a2) {
  8887. try {
  8888. Module["dynCall_vid"](index,a1,a2);
  8889. } catch(e) {
  8890. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8891. Module["setThrew"](1, 0);
  8892. }
  8893. }
  8894. function invoke_vi(index,a1) {
  8895. try {
  8896. Module["dynCall_vi"](index,a1);
  8897. } catch(e) {
  8898. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8899. Module["setThrew"](1, 0);
  8900. }
  8901. }
  8902. function invoke_vii(index,a1,a2) {
  8903. try {
  8904. Module["dynCall_vii"](index,a1,a2);
  8905. } catch(e) {
  8906. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8907. Module["setThrew"](1, 0);
  8908. }
  8909. }
  8910. function invoke_ii(index,a1) {
  8911. try {
  8912. return Module["dynCall_ii"](index,a1);
  8913. } catch(e) {
  8914. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8915. Module["setThrew"](1, 0);
  8916. }
  8917. }
  8918. function invoke_viddd(index,a1,a2,a3,a4) {
  8919. try {
  8920. Module["dynCall_viddd"](index,a1,a2,a3,a4);
  8921. } catch(e) {
  8922. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8923. Module["setThrew"](1, 0);
  8924. }
  8925. }
  8926. function invoke_vidd(index,a1,a2,a3) {
  8927. try {
  8928. Module["dynCall_vidd"](index,a1,a2,a3);
  8929. } catch(e) {
  8930. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8931. Module["setThrew"](1, 0);
  8932. }
  8933. }
  8934. function invoke_iiii(index,a1,a2,a3) {
  8935. try {
  8936. return Module["dynCall_iiii"](index,a1,a2,a3);
  8937. } catch(e) {
  8938. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8939. Module["setThrew"](1, 0);
  8940. }
  8941. }
  8942. function invoke_viiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8) {
  8943. try {
  8944. Module["dynCall_viiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7,a8);
  8945. } catch(e) {
  8946. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8947. Module["setThrew"](1, 0);
  8948. }
  8949. }
  8950. function invoke_viiiiii(index,a1,a2,a3,a4,a5,a6) {
  8951. try {
  8952. Module["dynCall_viiiiii"](index,a1,a2,a3,a4,a5,a6);
  8953. } catch(e) {
  8954. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8955. Module["setThrew"](1, 0);
  8956. }
  8957. }
  8958. function invoke_viii(index,a1,a2,a3) {
  8959. try {
  8960. Module["dynCall_viii"](index,a1,a2,a3);
  8961. } catch(e) {
  8962. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8963. Module["setThrew"](1, 0);
  8964. }
  8965. }
  8966. function invoke_vidddd(index,a1,a2,a3,a4,a5) {
  8967. try {
  8968. Module["dynCall_vidddd"](index,a1,a2,a3,a4,a5);
  8969. } catch(e) {
  8970. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8971. Module["setThrew"](1, 0);
  8972. }
  8973. }
  8974. function invoke_vdi(index,a1,a2) {
  8975. try {
  8976. Module["dynCall_vdi"](index,a1,a2);
  8977. } catch(e) {
  8978. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8979. Module["setThrew"](1, 0);
  8980. }
  8981. }
  8982. function invoke_viiiiiii(index,a1,a2,a3,a4,a5,a6,a7) {
  8983. try {
  8984. Module["dynCall_viiiiiii"](index,a1,a2,a3,a4,a5,a6,a7);
  8985. } catch(e) {
  8986. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8987. Module["setThrew"](1, 0);
  8988. }
  8989. }
  8990. function invoke_viiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9) {
  8991. try {
  8992. Module["dynCall_viiiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7,a8,a9);
  8993. } catch(e) {
  8994. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  8995. Module["setThrew"](1, 0);
  8996. }
  8997. }
  8998. function invoke_iii(index,a1,a2) {
  8999. try {
  9000. return Module["dynCall_iii"](index,a1,a2);
  9001. } catch(e) {
  9002. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  9003. Module["setThrew"](1, 0);
  9004. }
  9005. }
  9006. function invoke_i(index) {
  9007. try {
  9008. return Module["dynCall_i"](index);
  9009. } catch(e) {
  9010. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  9011. Module["setThrew"](1, 0);
  9012. }
  9013. }
  9014. function invoke_vdddddd(index,a1,a2,a3,a4,a5,a6) {
  9015. try {
  9016. Module["dynCall_vdddddd"](index,a1,a2,a3,a4,a5,a6);
  9017. } catch(e) {
  9018. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  9019. Module["setThrew"](1, 0);
  9020. }
  9021. }
  9022. function invoke_vdddd(index,a1,a2,a3,a4) {
  9023. try {
  9024. Module["dynCall_vdddd"](index,a1,a2,a3,a4);
  9025. } catch(e) {
  9026. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  9027. Module["setThrew"](1, 0);
  9028. }
  9029. }
  9030. function invoke_vdd(index,a1,a2) {
  9031. try {
  9032. Module["dynCall_vdd"](index,a1,a2);
  9033. } catch(e) {
  9034. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  9035. Module["setThrew"](1, 0);
  9036. }
  9037. }
  9038. function invoke_v(index) {
  9039. try {
  9040. Module["dynCall_v"](index);
  9041. } catch(e) {
  9042. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  9043. Module["setThrew"](1, 0);
  9044. }
  9045. }
  9046. function invoke_viid(index,a1,a2,a3) {
  9047. try {
  9048. Module["dynCall_viid"](index,a1,a2,a3);
  9049. } catch(e) {
  9050. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  9051. Module["setThrew"](1, 0);
  9052. }
  9053. }
  9054. function invoke_viiii(index,a1,a2,a3,a4) {
  9055. try {
  9056. Module["dynCall_viiii"](index,a1,a2,a3,a4);
  9057. } catch(e) {
  9058. if (typeof e !== 'number' && e !== 'longjmp') throw e;
  9059. Module["setThrew"](1, 0);
  9060. }
  9061. }
  9062. Module.asmGlobalArg = { "Math": Math, "Int8Array": Int8Array, "Int16Array": Int16Array, "Int32Array": Int32Array, "Uint8Array": Uint8Array, "Uint16Array": Uint16Array, "Uint32Array": Uint32Array, "Float32Array": Float32Array, "Float64Array": Float64Array, "NaN": NaN, "Infinity": Infinity };
  9063. Module.asmLibraryArg = { "abort": abort, "assert": assert, "enlargeMemory": enlargeMemory, "getTotalMemory": getTotalMemory, "abortOnCannotGrowMemory": abortOnCannotGrowMemory, "abortStackOverflow": abortStackOverflow, "nullFunc_viiiii": nullFunc_viiiii, "nullFunc_vd": nullFunc_vd, "nullFunc_vid": nullFunc_vid, "nullFunc_vi": nullFunc_vi, "nullFunc_vii": nullFunc_vii, "nullFunc_ii": nullFunc_ii, "nullFunc_viddd": nullFunc_viddd, "nullFunc_vidd": nullFunc_vidd, "nullFunc_iiii": nullFunc_iiii, "nullFunc_viiiiiiii": nullFunc_viiiiiiii, "nullFunc_viiiiii": nullFunc_viiiiii, "nullFunc_viii": nullFunc_viii, "nullFunc_vidddd": nullFunc_vidddd, "nullFunc_vdi": nullFunc_vdi, "nullFunc_viiiiiii": nullFunc_viiiiiii, "nullFunc_viiiiiiiii": nullFunc_viiiiiiiii, "nullFunc_iii": nullFunc_iii, "nullFunc_i": nullFunc_i, "nullFunc_vdddddd": nullFunc_vdddddd, "nullFunc_vdddd": nullFunc_vdddd, "nullFunc_vdd": nullFunc_vdd, "nullFunc_v": nullFunc_v, "nullFunc_viid": nullFunc_viid, "nullFunc_viiii": nullFunc_viiii, "invoke_viiiii": invoke_viiiii, "invoke_vd": invoke_vd, "invoke_vid": invoke_vid, "invoke_vi": invoke_vi, "invoke_vii": invoke_vii, "invoke_ii": invoke_ii, "invoke_viddd": invoke_viddd, "invoke_vidd": invoke_vidd, "invoke_iiii": invoke_iiii, "invoke_viiiiiiii": invoke_viiiiiiii, "invoke_viiiiii": invoke_viiiiii, "invoke_viii": invoke_viii, "invoke_vidddd": invoke_vidddd, "invoke_vdi": invoke_vdi, "invoke_viiiiiii": invoke_viiiiiii, "invoke_viiiiiiiii": invoke_viiiiiiiii, "invoke_iii": invoke_iii, "invoke_i": invoke_i, "invoke_vdddddd": invoke_vdddddd, "invoke_vdddd": invoke_vdddd, "invoke_vdd": invoke_vdd, "invoke_v": invoke_v, "invoke_viid": invoke_viid, "invoke_viiii": invoke_viiii, "_emscripten_glGetTexParameterfv": _emscripten_glGetTexParameterfv, "_glUseProgram": _glUseProgram, "_emscripten_glShaderSource": _emscripten_glShaderSource, "_glfwCreateWindow": _glfwCreateWindow, "_emscripten_glReleaseShaderCompiler": _emscripten_glReleaseShaderCompiler, "_emscripten_glBlendFuncSeparate": _emscripten_glBlendFuncSeparate, "_emscripten_glVertexAttribPointer": _emscripten_glVertexAttribPointer, "_emscripten_glGetIntegerv": _emscripten_glGetIntegerv, "_emscripten_glCullFace": _emscripten_glCullFace, "_emscripten_glIsProgram": _emscripten_glIsProgram, "_emscripten_glStencilMaskSeparate": _emscripten_glStencilMaskSeparate, "_emscripten_glViewport": _emscripten_glViewport, "_emscripten_glFrontFace": _emscripten_glFrontFace, "___assert_fail": ___assert_fail, "_glDeleteProgram": _glDeleteProgram, "_emscripten_glUniform3fv": _emscripten_glUniform3fv, "_emscripten_glPolygonOffset": _emscripten_glPolygonOffset, "_emscripten_glUseProgram": _emscripten_glUseProgram, "_glVertexAttrib4f": _glVertexAttrib4f, "_glBindBuffer": _glBindBuffer, "_emscripten_glDepthFunc": _emscripten_glDepthFunc, "_glGetShaderInfoLog": _glGetShaderInfoLog, "_emscripten_set_fullscreenchange_callback": _emscripten_set_fullscreenchange_callback, "_emscripten_set_touchmove_callback": _emscripten_set_touchmove_callback, "_emscripten_set_main_loop_timing": _emscripten_set_main_loop_timing, "_glDisable": _glDisable, "_glBlendFunc": _glBlendFunc, "_emscripten_glDisableVertexAttribArray": _emscripten_glDisableVertexAttribArray, "_glGetAttribLocation": _glGetAttribLocation, "_glDisableVertexAttribArray": _glDisableVertexAttribArray, "_glCreateShader": _glCreateShader, "_emscripten_glReadPixels": _emscripten_glReadPixels, "_emscripten_glSampleCoverage": _emscripten_glSampleCoverage, "_emscripten_glVertexPointer": _emscripten_glVertexPointer, "_emscripten_set_touchstart_callback": _emscripten_set_touchstart_callback, "emscriptenWebGLComputeImageSize": emscriptenWebGLComputeImageSize, "_emscripten_glGetBooleanv": _emscripten_glGetBooleanv, "_emscripten_glGetShaderSource": _emscripten_glGetShaderSource, "_glUniform4f": _glUniform4f, "_llvm_stacksave": _llvm_stacksave, "_emscripten_glUniform1i": _emscripten_glUniform1i, "_emscripten_glLoadMatrixf": _emscripten_glLoadMatrixf, "_emscripten_glGenBuffers": _emscripten_glGenBuffers, "_emscripten_glDeleteObjectARB": _emscripten_glDeleteObjectARB, "_glfwSetWindowSizeCallback": _glfwSetWindowSizeCallback, "_emscripten_glGetShaderPrecisionFormat": _emscripten_glGetShaderPrecisionFormat, "_glfwInit": _glfwInit, "_emscripten_glGetPointerv": _emscripten_glGetPointerv, "_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_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, "_glfwSetMouseButtonCallback": _glfwSetMouseButtonCallback, "_emscripten_glBlendEquationSeparate": _emscripten_glBlendEquationSeparate, "_exit": _exit, "_emscripten_glEnableClientState": _emscripten_glEnableClientState, "_emscripten_glUniform4i": _emscripten_glUniform4i, "_emscripten_glDrawRangeElements": _emscripten_glDrawRangeElements, "_glCullFace": _glCullFace, "_llvm_pow_f64": _llvm_pow_f64, "_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, "_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, "_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, "_emscripten_memcpy_big": _emscripten_memcpy_big, "_emscripten_glPixelStorei": _emscripten_glPixelStorei, "_glCompileShader": _glCompileShader, "_emscripten_get_pointerlock_status": _emscripten_get_pointerlock_status, "_glfwGetMouseButton": _glfwGetMouseButton, "_emscripten_glHint": _emscripten_glHint, "_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, "_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, "_emscripten_glGetFramebufferAttachmentParameteriv": _emscripten_glGetFramebufferAttachmentParameteriv, "_glfwGetCursorPos": _glfwGetCursorPos, "_emscripten_glActiveTexture": _emscripten_glActiveTexture, "_emscripten_glDeleteBuffers": _emscripten_glDeleteBuffers, "___syscall54": ___syscall54, "___unlock": ___unlock, "_glLinkProgram": _glLinkProgram, "_glfwSwapBuffers": _glfwSwapBuffers, "_emscripten_glColorPointer": _emscripten_glColorPointer, "_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 };
  9064. // EMSCRIPTEN_START_ASM
  9065. var asm = (function(global, env, buffer) {
  9066. 'use asm';
  9067. var HEAP8 = new global.Int8Array(buffer);
  9068. var HEAP16 = new global.Int16Array(buffer);
  9069. var HEAP32 = new global.Int32Array(buffer);
  9070. var HEAPU8 = new global.Uint8Array(buffer);
  9071. var HEAPU16 = new global.Uint16Array(buffer);
  9072. var HEAPU32 = new global.Uint32Array(buffer);
  9073. var HEAPF32 = new global.Float32Array(buffer);
  9074. var HEAPF64 = new global.Float64Array(buffer);
  9075. var DYNAMICTOP_PTR=env.DYNAMICTOP_PTR|0;
  9076. var tempDoublePtr=env.tempDoublePtr|0;
  9077. var ABORT=env.ABORT|0;
  9078. var STACKTOP=env.STACKTOP|0;
  9079. var STACK_MAX=env.STACK_MAX|0;
  9080. var cttz_i8=env.cttz_i8|0;
  9081. var __THREW__ = 0;
  9082. var threwValue = 0;
  9083. var setjmpId = 0;
  9084. var undef = 0;
  9085. var nan = global.NaN, inf = global.Infinity;
  9086. var tempInt = 0, tempBigInt = 0, tempBigIntP = 0, tempBigIntS = 0, tempBigIntR = 0.0, tempBigIntI = 0, tempBigIntD = 0, tempValue = 0, tempDouble = 0.0;
  9087. var tempRet0 = 0;
  9088. var Math_floor=global.Math.floor;
  9089. var Math_abs=global.Math.abs;
  9090. var Math_sqrt=global.Math.sqrt;
  9091. var Math_pow=global.Math.pow;
  9092. var Math_cos=global.Math.cos;
  9093. var Math_sin=global.Math.sin;
  9094. var Math_tan=global.Math.tan;
  9095. var Math_acos=global.Math.acos;
  9096. var Math_asin=global.Math.asin;
  9097. var Math_atan=global.Math.atan;
  9098. var Math_atan2=global.Math.atan2;
  9099. var Math_exp=global.Math.exp;
  9100. var Math_log=global.Math.log;
  9101. var Math_ceil=global.Math.ceil;
  9102. var Math_imul=global.Math.imul;
  9103. var Math_min=global.Math.min;
  9104. var Math_max=global.Math.max;
  9105. var Math_clz32=global.Math.clz32;
  9106. var abort=env.abort;
  9107. var assert=env.assert;
  9108. var enlargeMemory=env.enlargeMemory;
  9109. var getTotalMemory=env.getTotalMemory;
  9110. var abortOnCannotGrowMemory=env.abortOnCannotGrowMemory;
  9111. var abortStackOverflow=env.abortStackOverflow;
  9112. var nullFunc_viiiii=env.nullFunc_viiiii;
  9113. var nullFunc_vd=env.nullFunc_vd;
  9114. var nullFunc_vid=env.nullFunc_vid;
  9115. var nullFunc_vi=env.nullFunc_vi;
  9116. var nullFunc_vii=env.nullFunc_vii;
  9117. var nullFunc_ii=env.nullFunc_ii;
  9118. var nullFunc_viddd=env.nullFunc_viddd;
  9119. var nullFunc_vidd=env.nullFunc_vidd;
  9120. var nullFunc_iiii=env.nullFunc_iiii;
  9121. var nullFunc_viiiiiiii=env.nullFunc_viiiiiiii;
  9122. var nullFunc_viiiiii=env.nullFunc_viiiiii;
  9123. var nullFunc_viii=env.nullFunc_viii;
  9124. var nullFunc_vidddd=env.nullFunc_vidddd;
  9125. var nullFunc_vdi=env.nullFunc_vdi;
  9126. var nullFunc_viiiiiii=env.nullFunc_viiiiiii;
  9127. var nullFunc_viiiiiiiii=env.nullFunc_viiiiiiiii;
  9128. var nullFunc_iii=env.nullFunc_iii;
  9129. var nullFunc_i=env.nullFunc_i;
  9130. var nullFunc_vdddddd=env.nullFunc_vdddddd;
  9131. var nullFunc_vdddd=env.nullFunc_vdddd;
  9132. var nullFunc_vdd=env.nullFunc_vdd;
  9133. var nullFunc_v=env.nullFunc_v;
  9134. var nullFunc_viid=env.nullFunc_viid;
  9135. var nullFunc_viiii=env.nullFunc_viiii;
  9136. var invoke_viiiii=env.invoke_viiiii;
  9137. var invoke_vd=env.invoke_vd;
  9138. var invoke_vid=env.invoke_vid;
  9139. var invoke_vi=env.invoke_vi;
  9140. var invoke_vii=env.invoke_vii;
  9141. var invoke_ii=env.invoke_ii;
  9142. var invoke_viddd=env.invoke_viddd;
  9143. var invoke_vidd=env.invoke_vidd;
  9144. var invoke_iiii=env.invoke_iiii;
  9145. var invoke_viiiiiiii=env.invoke_viiiiiiii;
  9146. var invoke_viiiiii=env.invoke_viiiiii;
  9147. var invoke_viii=env.invoke_viii;
  9148. var invoke_vidddd=env.invoke_vidddd;
  9149. var invoke_vdi=env.invoke_vdi;
  9150. var invoke_viiiiiii=env.invoke_viiiiiii;
  9151. var invoke_viiiiiiiii=env.invoke_viiiiiiiii;
  9152. var invoke_iii=env.invoke_iii;
  9153. var invoke_i=env.invoke_i;
  9154. var invoke_vdddddd=env.invoke_vdddddd;
  9155. var invoke_vdddd=env.invoke_vdddd;
  9156. var invoke_vdd=env.invoke_vdd;
  9157. var invoke_v=env.invoke_v;
  9158. var invoke_viid=env.invoke_viid;
  9159. var invoke_viiii=env.invoke_viiii;
  9160. var _emscripten_glGetTexParameterfv=env._emscripten_glGetTexParameterfv;
  9161. var _glUseProgram=env._glUseProgram;
  9162. var _emscripten_glShaderSource=env._emscripten_glShaderSource;
  9163. var _glfwCreateWindow=env._glfwCreateWindow;
  9164. var _emscripten_glReleaseShaderCompiler=env._emscripten_glReleaseShaderCompiler;
  9165. var _emscripten_glBlendFuncSeparate=env._emscripten_glBlendFuncSeparate;
  9166. var _emscripten_glVertexAttribPointer=env._emscripten_glVertexAttribPointer;
  9167. var _emscripten_glGetIntegerv=env._emscripten_glGetIntegerv;
  9168. var _emscripten_glCullFace=env._emscripten_glCullFace;
  9169. var _emscripten_glIsProgram=env._emscripten_glIsProgram;
  9170. var _emscripten_glStencilMaskSeparate=env._emscripten_glStencilMaskSeparate;
  9171. var _emscripten_glViewport=env._emscripten_glViewport;
  9172. var _emscripten_glFrontFace=env._emscripten_glFrontFace;
  9173. var ___assert_fail=env.___assert_fail;
  9174. var _glDeleteProgram=env._glDeleteProgram;
  9175. var _emscripten_glUniform3fv=env._emscripten_glUniform3fv;
  9176. var _emscripten_glPolygonOffset=env._emscripten_glPolygonOffset;
  9177. var _emscripten_glUseProgram=env._emscripten_glUseProgram;
  9178. var _glVertexAttrib4f=env._glVertexAttrib4f;
  9179. var _glBindBuffer=env._glBindBuffer;
  9180. var _emscripten_glDepthFunc=env._emscripten_glDepthFunc;
  9181. var _glGetShaderInfoLog=env._glGetShaderInfoLog;
  9182. var _emscripten_set_fullscreenchange_callback=env._emscripten_set_fullscreenchange_callback;
  9183. var _emscripten_set_touchmove_callback=env._emscripten_set_touchmove_callback;
  9184. var _emscripten_set_main_loop_timing=env._emscripten_set_main_loop_timing;
  9185. var _glDisable=env._glDisable;
  9186. var _glBlendFunc=env._glBlendFunc;
  9187. var _emscripten_glDisableVertexAttribArray=env._emscripten_glDisableVertexAttribArray;
  9188. var _glGetAttribLocation=env._glGetAttribLocation;
  9189. var _glDisableVertexAttribArray=env._glDisableVertexAttribArray;
  9190. var _glCreateShader=env._glCreateShader;
  9191. var _emscripten_glReadPixels=env._emscripten_glReadPixels;
  9192. var _emscripten_glSampleCoverage=env._emscripten_glSampleCoverage;
  9193. var _emscripten_glVertexPointer=env._emscripten_glVertexPointer;
  9194. var _emscripten_set_touchstart_callback=env._emscripten_set_touchstart_callback;
  9195. var emscriptenWebGLComputeImageSize=env.emscriptenWebGLComputeImageSize;
  9196. var _emscripten_glGetBooleanv=env._emscripten_glGetBooleanv;
  9197. var _emscripten_glGetShaderSource=env._emscripten_glGetShaderSource;
  9198. var _glUniform4f=env._glUniform4f;
  9199. var _llvm_stacksave=env._llvm_stacksave;
  9200. var _emscripten_glUniform1i=env._emscripten_glUniform1i;
  9201. var _emscripten_glLoadMatrixf=env._emscripten_glLoadMatrixf;
  9202. var _emscripten_glGenBuffers=env._emscripten_glGenBuffers;
  9203. var _emscripten_glDeleteObjectARB=env._emscripten_glDeleteObjectARB;
  9204. var _glfwSetWindowSizeCallback=env._glfwSetWindowSizeCallback;
  9205. var _emscripten_glGetShaderPrecisionFormat=env._emscripten_glGetShaderPrecisionFormat;
  9206. var _glfwInit=env._glfwInit;
  9207. var _emscripten_glGetPointerv=env._emscripten_glGetPointerv;
  9208. var _glGenBuffers=env._glGenBuffers;
  9209. var _glShaderSource=env._glShaderSource;
  9210. var _emscripten_glGetString=env._emscripten_glGetString;
  9211. var _emscripten_glIsFramebuffer=env._emscripten_glIsFramebuffer;
  9212. var _glVertexAttrib3f=env._glVertexAttrib3f;
  9213. var _emscripten_glIsEnabled=env._emscripten_glIsEnabled;
  9214. var _emscripten_glScissor=env._emscripten_glScissor;
  9215. var _emscripten_glVertexAttrib4fv=env._emscripten_glVertexAttrib4fv;
  9216. var _emscripten_glFramebufferTexture2D=env._emscripten_glFramebufferTexture2D;
  9217. var _emscripten_glTexParameteriv=env._emscripten_glTexParameteriv;
  9218. var ___syscall145=env.___syscall145;
  9219. var _emscripten_glBindProgramARB=env._emscripten_glBindProgramARB;
  9220. var _emscripten_glStencilOpSeparate=env._emscripten_glStencilOpSeparate;
  9221. var _emscripten_glFramebufferRenderbuffer=env._emscripten_glFramebufferRenderbuffer;
  9222. var ___syscall140=env.___syscall140;
  9223. var _glfwSetErrorCallback=env._glfwSetErrorCallback;
  9224. var _glfwDefaultWindowHints=env._glfwDefaultWindowHints;
  9225. var _glfwDestroyWindow=env._glfwDestroyWindow;
  9226. var ___syscall146=env.___syscall146;
  9227. var _emscripten_glGetActiveAttrib=env._emscripten_glGetActiveAttrib;
  9228. var _emscripten_glAttachShader=env._emscripten_glAttachShader;
  9229. var _glVertexAttribPointer=env._glVertexAttribPointer;
  9230. var _emscripten_glUniform2i=env._emscripten_glUniform2i;
  9231. var _emscripten_glUniform2f=env._emscripten_glUniform2f;
  9232. var _emscripten_glTexParameterfv=env._emscripten_glTexParameterfv;
  9233. var _emscripten_glUniformMatrix2fv=env._emscripten_glUniformMatrix2fv;
  9234. var _glRenderbufferStorage=env._glRenderbufferStorage;
  9235. var _glGetProgramInfoLog=env._glGetProgramInfoLog;
  9236. var _glfwSetScrollCallback=env._glfwSetScrollCallback;
  9237. var _emscripten_glTexParameterf=env._emscripten_glTexParameterf;
  9238. var _emscripten_glGetAttachedShaders=env._emscripten_glGetAttachedShaders;
  9239. var _emscripten_glGenTextures=env._emscripten_glGenTextures;
  9240. var _emscripten_glTexParameteri=env._emscripten_glTexParameteri;
  9241. var _llvm_stackrestore=env._llvm_stackrestore;
  9242. var _glBindRenderbuffer=env._glBindRenderbuffer;
  9243. var _emscripten_glClear=env._emscripten_glClear;
  9244. var _glDrawElements=env._glDrawElements;
  9245. var _glBufferSubData=env._glBufferSubData;
  9246. var _emscripten_glValidateProgram=env._emscripten_glValidateProgram;
  9247. var _emscripten_glVertexAttrib2fv=env._emscripten_glVertexAttrib2fv;
  9248. var _glViewport=env._glViewport;
  9249. var _emscripten_glUniform4iv=env._emscripten_glUniform4iv;
  9250. var _emscripten_glGetTexParameteriv=env._emscripten_glGetTexParameteriv;
  9251. var ___setErrNo=env.___setErrNo;
  9252. var _eglGetProcAddress=env._eglGetProcAddress;
  9253. var _emscripten_glBindAttribLocation=env._emscripten_glBindAttribLocation;
  9254. var _glDeleteTextures=env._glDeleteTextures;
  9255. var _glDepthFunc=env._glDepthFunc;
  9256. var _emscripten_glClientActiveTexture=env._emscripten_glClientActiveTexture;
  9257. var _emscripten_glVertexAttrib2f=env._emscripten_glVertexAttrib2f;
  9258. var _glUniform3f=env._glUniform3f;
  9259. var _emscripten_glFlush=env._emscripten_glFlush;
  9260. var _emscripten_glCheckFramebufferStatus=env._emscripten_glCheckFramebufferStatus;
  9261. var _emscripten_glGenerateMipmap=env._emscripten_glGenerateMipmap;
  9262. var _emscripten_glGetError=env._emscripten_glGetError;
  9263. var _emscripten_glClearDepthf=env._emscripten_glClearDepthf;
  9264. var _emscripten_glUniform3f=env._emscripten_glUniform3f;
  9265. var _emscripten_glUniform3i=env._emscripten_glUniform3i;
  9266. var _emscripten_glRotatef=env._emscripten_glRotatef;
  9267. var _emscripten_glDeleteShader=env._emscripten_glDeleteShader;
  9268. var _glEnable=env._glEnable;
  9269. var _emscripten_glVertexAttrib1fv=env._emscripten_glVertexAttrib1fv;
  9270. var _glGenTextures=env._glGenTextures;
  9271. var _emscripten_glMatrixMode=env._emscripten_glMatrixMode;
  9272. var _glGetString=env._glGetString;
  9273. var _emscripten_glClearStencil=env._emscripten_glClearStencil;
  9274. var _emscripten_glGetUniformLocation=env._emscripten_glGetUniformLocation;
  9275. var emscriptenWebGLGet=env.emscriptenWebGLGet;
  9276. var _emscripten_glEnableVertexAttribArray=env._emscripten_glEnableVertexAttribArray;
  9277. var _emscripten_glGetAttribLocation=env._emscripten_glGetAttribLocation;
  9278. var _emscripten_get_now=env._emscripten_get_now;
  9279. var _emscripten_glNormalPointer=env._emscripten_glNormalPointer;
  9280. var _glAttachShader=env._glAttachShader;
  9281. var _glFramebufferRenderbuffer=env._glFramebufferRenderbuffer;
  9282. var _emscripten_glEnable=env._emscripten_glEnable;
  9283. var _glCreateProgram=env._glCreateProgram;
  9284. var _glUniformMatrix4fv=env._glUniformMatrix4fv;
  9285. var _emscripten_glClearDepth=env._emscripten_glClearDepth;
  9286. var ___lock=env.___lock;
  9287. var emscriptenWebGLGetTexPixelData=env.emscriptenWebGLGetTexPixelData;
  9288. var ___syscall6=env.___syscall6;
  9289. var ___syscall5=env.___syscall5;
  9290. var _emscripten_glIsBuffer=env._emscripten_glIsBuffer;
  9291. var _emscripten_glVertexAttrib3f=env._emscripten_glVertexAttrib3f;
  9292. var _time=env._time;
  9293. var _glBindFramebuffer=env._glBindFramebuffer;
  9294. var _emscripten_glVertexAttrib1f=env._emscripten_glVertexAttrib1f;
  9295. var _glGenFramebuffers=env._glGenFramebuffers;
  9296. var _glfwSetMouseButtonCallback=env._glfwSetMouseButtonCallback;
  9297. var _emscripten_glBlendEquationSeparate=env._emscripten_glBlendEquationSeparate;
  9298. var _exit=env._exit;
  9299. var _emscripten_glEnableClientState=env._emscripten_glEnableClientState;
  9300. var _emscripten_glUniform4i=env._emscripten_glUniform4i;
  9301. var _emscripten_glDrawRangeElements=env._emscripten_glDrawRangeElements;
  9302. var _glCullFace=env._glCullFace;
  9303. var _llvm_pow_f64=env._llvm_pow_f64;
  9304. var _emscripten_set_keypress_callback=env._emscripten_set_keypress_callback;
  9305. var __emscripten_sample_gamepad_data=env.__emscripten_sample_gamepad_data;
  9306. var _glDeleteFramebuffers=env._glDeleteFramebuffers;
  9307. var _emscripten_get_gamepad_status=env._emscripten_get_gamepad_status;
  9308. var _emscripten_glUniform4f=env._emscripten_glUniform4f;
  9309. var _emscripten_glUniform2fv=env._emscripten_glUniform2fv;
  9310. var _glfwGetVideoModes=env._glfwGetVideoModes;
  9311. var _emscripten_set_click_callback=env._emscripten_set_click_callback;
  9312. var _glCheckFramebufferStatus=env._glCheckFramebufferStatus;
  9313. var _emscripten_glFinish=env._emscripten_glFinish;
  9314. var _glFramebufferTexture2D=env._glFramebufferTexture2D;
  9315. var _emscripten_glShaderBinary=env._emscripten_glShaderBinary;
  9316. var _emscripten_glDrawElements=env._emscripten_glDrawElements;
  9317. var _emscripten_glBlendFunc=env._emscripten_glBlendFunc;
  9318. var _emscripten_get_num_gamepads=env._emscripten_get_num_gamepads;
  9319. var ___syscall221=env.___syscall221;
  9320. var _emscripten_glStencilMask=env._emscripten_glStencilMask;
  9321. var _emscripten_glUniform1iv=env._emscripten_glUniform1iv;
  9322. var _emscripten_glGetVertexAttribPointerv=env._emscripten_glGetVertexAttribPointerv;
  9323. var _glClearDepthf=env._glClearDepthf;
  9324. var _emscripten_glCompressedTexSubImage2D=env._emscripten_glCompressedTexSubImage2D;
  9325. var emscriptenWebGLGetUniform=env.emscriptenWebGLGetUniform;
  9326. var _emscripten_glGenRenderbuffers=env._emscripten_glGenRenderbuffers;
  9327. var _emscripten_glDeleteVertexArrays=env._emscripten_glDeleteVertexArrays;
  9328. var _glfwSetWindowShouldClose=env._glfwSetWindowShouldClose;
  9329. var _emscripten_glUniform1fv=env._emscripten_glUniform1fv;
  9330. var _emscripten_glGetActiveUniform=env._emscripten_glGetActiveUniform;
  9331. var _glBindTexture=env._glBindTexture;
  9332. var _emscripten_glUniform3iv=env._emscripten_glUniform3iv;
  9333. var _emscripten_glUniform2iv=env._emscripten_glUniform2iv;
  9334. var _emscripten_glDisable=env._emscripten_glDisable;
  9335. var _glfwSetCharCallback=env._glfwSetCharCallback;
  9336. var emscriptenWebGLGetVertexAttrib=env.emscriptenWebGLGetVertexAttrib;
  9337. var _glGetFloatv=env._glGetFloatv;
  9338. var _emscripten_glDeleteProgram=env._emscripten_glDeleteProgram;
  9339. var _emscripten_glDeleteRenderbuffers=env._emscripten_glDeleteRenderbuffers;
  9340. var _emscripten_glDrawElementsInstanced=env._emscripten_glDrawElementsInstanced;
  9341. var _emscripten_glVertexAttrib4f=env._emscripten_glVertexAttrib4f;
  9342. var _glDrawArrays=env._glDrawArrays;
  9343. var _emscripten_glTexSubImage2D=env._emscripten_glTexSubImage2D;
  9344. var _emscripten_memcpy_big=env._emscripten_memcpy_big;
  9345. var _emscripten_glPixelStorei=env._emscripten_glPixelStorei;
  9346. var _glCompileShader=env._glCompileShader;
  9347. var _emscripten_get_pointerlock_status=env._emscripten_get_pointerlock_status;
  9348. var _glfwGetMouseButton=env._glfwGetMouseButton;
  9349. var _emscripten_glHint=env._emscripten_glHint;
  9350. var _emscripten_glDepthRange=env._emscripten_glDepthRange;
  9351. var _emscripten_glTexCoordPointer=env._emscripten_glTexCoordPointer;
  9352. var _emscripten_glGetBufferParameteriv=env._emscripten_glGetBufferParameteriv;
  9353. var _glActiveTexture=env._glActiveTexture;
  9354. var _emscripten_request_pointerlock=env._emscripten_request_pointerlock;
  9355. var _emscripten_set_gamepaddisconnected_callback=env._emscripten_set_gamepaddisconnected_callback;
  9356. var _emscripten_asm_const_iii=env._emscripten_asm_const_iii;
  9357. var _emscripten_glDepthMask=env._emscripten_glDepthMask;
  9358. var _glfwSetWindowIconifyCallback=env._glfwSetWindowIconifyCallback;
  9359. var _emscripten_glDrawBuffers=env._emscripten_glDrawBuffers;
  9360. var _glfwTerminate=env._glfwTerminate;
  9361. var _glFrontFace=env._glFrontFace;
  9362. var _emscripten_glGetObjectParameterivARB=env._emscripten_glGetObjectParameterivARB;
  9363. var _emscripten_exit_pointerlock=env._emscripten_exit_pointerlock;
  9364. var _glfwSwapInterval=env._glfwSwapInterval;
  9365. var _glUniform1i=env._glUniform1i;
  9366. var _glEnableVertexAttribArray=env._glEnableVertexAttribArray;
  9367. var _emscripten_glStencilFunc=env._emscripten_glStencilFunc;
  9368. var _abort=env._abort;
  9369. var _emscripten_glGetUniformiv=env._emscripten_glGetUniformiv;
  9370. var _glDeleteBuffers=env._glDeleteBuffers;
  9371. var _glBufferData=env._glBufferData;
  9372. var _glTexImage2D=env._glTexImage2D;
  9373. var _emscripten_glGetShaderiv=env._emscripten_glGetShaderiv;
  9374. var _glfwSetKeyCallback=env._glfwSetKeyCallback;
  9375. var _emscripten_glGenFramebuffers=env._emscripten_glGenFramebuffers;
  9376. var _glUniform1f=env._glUniform1f;
  9377. var _emscripten_glUniformMatrix4fv=env._emscripten_glUniformMatrix4fv;
  9378. var _emscripten_glLoadIdentity=env._emscripten_glLoadIdentity;
  9379. var _glDeleteShader=env._glDeleteShader;
  9380. var _emscripten_glUniform1f=env._emscripten_glUniform1f;
  9381. var _glGetProgramiv=env._glGetProgramiv;
  9382. var _emscripten_glBindFramebuffer=env._emscripten_glBindFramebuffer;
  9383. var _emscripten_glIsRenderbuffer=env._emscripten_glIsRenderbuffer;
  9384. var _glfwGetTime=env._glfwGetTime;
  9385. var _emscripten_glRenderbufferStorage=env._emscripten_glRenderbufferStorage;
  9386. var _emscripten_set_gamepadconnected_callback=env._emscripten_set_gamepadconnected_callback;
  9387. var _emscripten_glBlendColor=env._emscripten_glBlendColor;
  9388. var _emscripten_glGetVertexAttribiv=env._emscripten_glGetVertexAttribiv;
  9389. var _emscripten_glBindVertexArray=env._emscripten_glBindVertexArray;
  9390. var _emscripten_glDrawArraysInstanced=env._emscripten_glDrawArraysInstanced;
  9391. var _emscripten_set_touchcancel_callback=env._emscripten_set_touchcancel_callback;
  9392. var _emscripten_glCreateShader=env._emscripten_glCreateShader;
  9393. var _emscripten_glStencilFuncSeparate=env._emscripten_glStencilFuncSeparate;
  9394. var _emscripten_glDeleteTextures=env._emscripten_glDeleteTextures;
  9395. var _glfwGetKey=env._glfwGetKey;
  9396. var _glfwGetPrimaryMonitor=env._glfwGetPrimaryMonitor;
  9397. var _emscripten_glBufferSubData=env._emscripten_glBufferSubData;
  9398. var _emscripten_glVertexAttribDivisor=env._emscripten_glVertexAttribDivisor;
  9399. var _emscripten_set_touchend_callback=env._emscripten_set_touchend_callback;
  9400. var _emscripten_glGetUniformfv=env._emscripten_glGetUniformfv;
  9401. var _emscripten_glGetVertexAttribfv=env._emscripten_glGetVertexAttribfv;
  9402. var _emscripten_glGetRenderbufferParameteriv=env._emscripten_glGetRenderbufferParameteriv;
  9403. var _emscripten_glDeleteFramebuffers=env._emscripten_glDeleteFramebuffers;
  9404. var _glGetShaderiv=env._glGetShaderiv;
  9405. var _emscripten_glVertexAttrib3fv=env._emscripten_glVertexAttrib3fv;
  9406. var _glGetUniformLocation=env._glGetUniformLocation;
  9407. var _emscripten_glGetInfoLogARB=env._emscripten_glGetInfoLogARB;
  9408. var _emscripten_glCompileShader=env._emscripten_glCompileShader;
  9409. var _glClear=env._glClear;
  9410. var _emscripten_glFrustum=env._emscripten_glFrustum;
  9411. var _glVertexAttrib2f=env._glVertexAttrib2f;
  9412. var _emscripten_glDepthRangef=env._emscripten_glDepthRangef;
  9413. var __exit=env.__exit;
  9414. var _emscripten_glLineWidth=env._emscripten_glLineWidth;
  9415. var _emscripten_glGetShaderInfoLog=env._emscripten_glGetShaderInfoLog;
  9416. var _emscripten_glStencilOp=env._emscripten_glStencilOp;
  9417. var _glBindAttribLocation=env._glBindAttribLocation;
  9418. var _glPixelStorei=env._glPixelStorei;
  9419. var _emscripten_glColorMask=env._emscripten_glColorMask;
  9420. var _emscripten_glLinkProgram=env._emscripten_glLinkProgram;
  9421. var _emscripten_glBlendEquation=env._emscripten_glBlendEquation;
  9422. var _emscripten_glIsTexture=env._emscripten_glIsTexture;
  9423. var _emscripten_glGetProgramiv=env._emscripten_glGetProgramiv;
  9424. var _glfwMakeContextCurrent=env._glfwMakeContextCurrent;
  9425. var _emscripten_glUniformMatrix3fv=env._emscripten_glUniformMatrix3fv;
  9426. var _emscripten_glBindTexture=env._emscripten_glBindTexture;
  9427. var _emscripten_glGetFramebufferAttachmentParameteriv=env._emscripten_glGetFramebufferAttachmentParameteriv;
  9428. var _glfwGetCursorPos=env._glfwGetCursorPos;
  9429. var _emscripten_glActiveTexture=env._emscripten_glActiveTexture;
  9430. var _emscripten_glDeleteBuffers=env._emscripten_glDeleteBuffers;
  9431. var ___syscall54=env.___syscall54;
  9432. var ___unlock=env.___unlock;
  9433. var _glLinkProgram=env._glLinkProgram;
  9434. var _glfwSwapBuffers=env._glfwSwapBuffers;
  9435. var _emscripten_glColorPointer=env._emscripten_glColorPointer;
  9436. var _emscripten_set_main_loop=env._emscripten_set_main_loop;
  9437. var _emscripten_glBindRenderbuffer=env._emscripten_glBindRenderbuffer;
  9438. var _emscripten_glGetProgramInfoLog=env._emscripten_glGetProgramInfoLog;
  9439. var _glfwWindowHint=env._glfwWindowHint;
  9440. var _emscripten_glIsShader=env._emscripten_glIsShader;
  9441. var _emscripten_glUniform4fv=env._emscripten_glUniform4fv;
  9442. var _emscripten_glGenVertexArrays=env._emscripten_glGenVertexArrays;
  9443. var _glCompressedTexImage2D=env._glCompressedTexImage2D;
  9444. var _emscripten_glDrawArrays=env._emscripten_glDrawArrays;
  9445. var _glGenRenderbuffers=env._glGenRenderbuffers;
  9446. var _emscripten_glCompressedTexImage2D=env._emscripten_glCompressedTexImage2D;
  9447. var _emscripten_glClearColor=env._emscripten_glClearColor;
  9448. var _emscripten_glBufferData=env._emscripten_glBufferData;
  9449. var _emscripten_glCreateProgram=env._emscripten_glCreateProgram;
  9450. var _emscripten_glCopyTexSubImage2D=env._emscripten_glCopyTexSubImage2D;
  9451. var _glTexParameteri=env._glTexParameteri;
  9452. var _emscripten_glBindBuffer=env._emscripten_glBindBuffer;
  9453. var _emscripten_glGetFloatv=env._emscripten_glGetFloatv;
  9454. var _emscripten_glDetachShader=env._emscripten_glDetachShader;
  9455. var _glClearColor=env._glClearColor;
  9456. var _glfwSetCursorPosCallback=env._glfwSetCursorPosCallback;
  9457. var _glfwSetCursorEnterCallback=env._glfwSetCursorEnterCallback;
  9458. var _emscripten_glCopyTexImage2D=env._emscripten_glCopyTexImage2D;
  9459. var _emscripten_glTexImage2D=env._emscripten_glTexImage2D;
  9460. var tempFloat = 0.0;
  9461. // EMSCRIPTEN_START_FUNCS
  9462. function stackAlloc(size) {
  9463. size = size|0;
  9464. var ret = 0;
  9465. ret = STACKTOP;
  9466. STACKTOP = (STACKTOP + size)|0;
  9467. STACKTOP = (STACKTOP + 15)&-16;
  9468. if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(size|0);
  9469. return ret|0;
  9470. }
  9471. function stackSave() {
  9472. return STACKTOP|0;
  9473. }
  9474. function stackRestore(top) {
  9475. top = top|0;
  9476. STACKTOP = top;
  9477. }
  9478. function establishStackSpace(stackBase, stackMax) {
  9479. stackBase = stackBase|0;
  9480. stackMax = stackMax|0;
  9481. STACKTOP = stackBase;
  9482. STACK_MAX = stackMax;
  9483. }
  9484. function setThrew(threw, value) {
  9485. threw = threw|0;
  9486. value = value|0;
  9487. if ((__THREW__|0) == 0) {
  9488. __THREW__ = threw;
  9489. threwValue = value;
  9490. }
  9491. }
  9492. function setTempRet0(value) {
  9493. value = value|0;
  9494. tempRet0 = value;
  9495. }
  9496. function getTempRet0() {
  9497. return tempRet0|0;
  9498. }
  9499. function _main() {
  9500. 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;
  9501. var $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $dwarf$byval_copy = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, $vararg_buffer10 = 0, $vararg_buffer13 = 0, $vararg_buffer16 = 0, $vararg_buffer19 = 0, $vararg_buffer22 = 0, $vararg_buffer25 = 0;
  9502. var $vararg_buffer28 = 0, $vararg_buffer4 = 0, $vararg_buffer7 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  9503. sp = STACKTOP;
  9504. STACKTOP = STACKTOP + 1360|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(1360|0);
  9505. $dwarf$byval_copy = sp + 88|0;
  9506. $vararg_buffer28 = sp + 80|0;
  9507. $vararg_buffer25 = sp + 72|0;
  9508. $vararg_buffer22 = sp + 64|0;
  9509. $vararg_buffer19 = sp + 56|0;
  9510. $vararg_buffer16 = sp + 48|0;
  9511. $vararg_buffer13 = sp + 40|0;
  9512. $vararg_buffer10 = sp + 32|0;
  9513. $vararg_buffer7 = sp + 24|0;
  9514. $vararg_buffer4 = sp + 16|0;
  9515. $vararg_buffer1 = sp + 8|0;
  9516. $vararg_buffer = sp;
  9517. $0 = sp + 1096|0;
  9518. $1 = sp + 1072|0;
  9519. $2 = sp + 1016|0;
  9520. $3 = sp + 960|0;
  9521. $4 = sp + 904|0;
  9522. $5 = sp + 848|0;
  9523. $6 = sp + 792|0;
  9524. $7 = sp + 736|0;
  9525. $8 = sp + 680|0;
  9526. $9 = sp + 624|0;
  9527. $10 = sp + 568|0;
  9528. $11 = sp + 512|0;
  9529. $12 = sp + 456|0;
  9530. $13 = sp + 400|0;
  9531. $14 = sp + 352|0;
  9532. _SetConfigFlags(32);
  9533. $15 = HEAP32[2]|0;
  9534. $16 = HEAP32[3]|0;
  9535. _InitWindow($15,$16,4512);
  9536. _LoadModel($0,4561);
  9537. _memcpy((19608|0),($0|0),264)|0;
  9538. _LoadTexture($1,4587);
  9539. ;HEAP32[19872>>2]=HEAP32[$1>>2]|0;HEAP32[19872+4>>2]=HEAP32[$1+4>>2]|0;HEAP32[19872+8>>2]=HEAP32[$1+8>>2]|0;HEAP32[19872+12>>2]=HEAP32[$1+12>>2]|0;HEAP32[19872+16>>2]=HEAP32[$1+16>>2]|0;
  9540. ;HEAP32[(19796)>>2]=HEAP32[$1>>2]|0;HEAP32[(19796)+4>>2]=HEAP32[$1+4>>2]|0;HEAP32[(19796)+8>>2]=HEAP32[$1+8>>2]|0;HEAP32[(19796)+12>>2]=HEAP32[$1+12>>2]|0;HEAP32[(19796)+16>>2]=HEAP32[$1+16>>2]|0;
  9541. HEAP32[$vararg_buffer>>2] = 100;
  9542. $17 = (_FormatText(4655,$vararg_buffer)|0);
  9543. _LoadShader($2,4621,$17);
  9544. dest=19892; 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));
  9545. HEAP32[$vararg_buffer1>>2] = 100;
  9546. $18 = (_FormatText(4693,$vararg_buffer1)|0);
  9547. _LoadShader($3,4621,$18);
  9548. dest=(19948); 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));
  9549. HEAP32[$vararg_buffer4>>2] = 100;
  9550. $19 = (_FormatText(4735,$vararg_buffer4)|0);
  9551. _LoadShader($4,4621,$19);
  9552. dest=(20004); 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));
  9553. HEAP32[$vararg_buffer7>>2] = 100;
  9554. $20 = (_FormatText(4776,$vararg_buffer7)|0);
  9555. _LoadShader($5,4621,$20);
  9556. dest=(20060); src=$5; 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));
  9557. HEAP32[$vararg_buffer10>>2] = 100;
  9558. $21 = (_FormatText(4814,$vararg_buffer10)|0);
  9559. _LoadShader($6,4621,$21);
  9560. dest=(20116); src=$6; 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));
  9561. HEAP32[$vararg_buffer13>>2] = 100;
  9562. $22 = (_FormatText(4857,$vararg_buffer13)|0);
  9563. _LoadShader($7,4621,$22);
  9564. dest=(20172); src=$7; 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));
  9565. HEAP32[$vararg_buffer16>>2] = 100;
  9566. $23 = (_FormatText(4901,$vararg_buffer16)|0);
  9567. _LoadShader($8,4621,$23);
  9568. dest=(20228); src=$8; 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));
  9569. HEAP32[$vararg_buffer19>>2] = 100;
  9570. $24 = (_FormatText(4938,$vararg_buffer19)|0);
  9571. _LoadShader($9,4621,$24);
  9572. dest=(20284); src=$9; 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));
  9573. HEAP32[$vararg_buffer22>>2] = 100;
  9574. $25 = (_FormatText(4976,$vararg_buffer22)|0);
  9575. _LoadShader($10,4621,$25);
  9576. dest=(20340); src=$10; 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));
  9577. HEAP32[$vararg_buffer25>>2] = 100;
  9578. $26 = (_FormatText(5012,$vararg_buffer25)|0);
  9579. _LoadShader($11,4621,$26);
  9580. dest=(20396); src=$11; 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));
  9581. HEAP32[$vararg_buffer28>>2] = 100;
  9582. $27 = (_FormatText(5046,$vararg_buffer28)|0);
  9583. _LoadShader($12,4621,$27);
  9584. dest=(20452); src=$12; 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));
  9585. HEAP32[$dwarf$byval_copy>>2] = 100;
  9586. $28 = (_FormatText(5080,$dwarf$byval_copy)|0);
  9587. _LoadShader($13,4621,$28);
  9588. dest=(20508); src=$13; 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));
  9589. $29 = HEAP32[2]|0;
  9590. $30 = HEAP32[3]|0;
  9591. _LoadRenderTexture($14,$29,$30);
  9592. dest=20564; src=$14; 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));
  9593. 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));
  9594. _SetCameraMode($dwarf$byval_copy,2);
  9595. _emscripten_set_main_loop((1|0),0,1);
  9596. dest=$dwarf$byval_copy; src=19892; 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));
  9597. _UnloadShader($dwarf$byval_copy);
  9598. dest=$dwarf$byval_copy; src=(19948); 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));
  9599. _UnloadShader($dwarf$byval_copy);
  9600. dest=$dwarf$byval_copy; src=(20004); 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. dest=$dwarf$byval_copy; src=(20060); 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));
  9603. _UnloadShader($dwarf$byval_copy);
  9604. dest=$dwarf$byval_copy; src=(20116); 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));
  9605. _UnloadShader($dwarf$byval_copy);
  9606. dest=$dwarf$byval_copy; src=(20172); 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));
  9607. _UnloadShader($dwarf$byval_copy);
  9608. dest=$dwarf$byval_copy; src=(20228); 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));
  9609. _UnloadShader($dwarf$byval_copy);
  9610. dest=$dwarf$byval_copy; src=(20284); 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));
  9611. _UnloadShader($dwarf$byval_copy);
  9612. dest=$dwarf$byval_copy; src=(20340); 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));
  9613. _UnloadShader($dwarf$byval_copy);
  9614. dest=$dwarf$byval_copy; src=(20396); 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));
  9615. _UnloadShader($dwarf$byval_copy);
  9616. dest=$dwarf$byval_copy; src=(20452); 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));
  9617. _UnloadShader($dwarf$byval_copy);
  9618. dest=$dwarf$byval_copy; src=(20508); 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));
  9619. _UnloadShader($dwarf$byval_copy);
  9620. ;HEAP32[$dwarf$byval_copy>>2]=HEAP32[19872>>2]|0;HEAP32[$dwarf$byval_copy+4>>2]=HEAP32[19872+4>>2]|0;HEAP32[$dwarf$byval_copy+8>>2]=HEAP32[19872+8>>2]|0;HEAP32[$dwarf$byval_copy+12>>2]=HEAP32[19872+12>>2]|0;HEAP32[$dwarf$byval_copy+16>>2]=HEAP32[19872+16>>2]|0;
  9621. _UnloadTexture($dwarf$byval_copy);
  9622. _memcpy(($dwarf$byval_copy|0),(19608|0),264)|0;
  9623. _UnloadModel($dwarf$byval_copy);
  9624. _CloseWindow();
  9625. STACKTOP = sp;return 0;
  9626. }
  9627. function _UpdateDrawFrame() {
  9628. var $$byval_copy10 = 0, $$byval_copy2 = 0, $$byval_copy3 = 0, $$byval_copy4 = 0, $$pr = 0, $$sink = 0, $$sink2 = 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;
  9629. 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;
  9630. 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, $6 = 0, $7 = 0, $8 = 0;
  9631. var $9 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  9632. sp = STACKTOP;
  9633. STACKTOP = STACKTOP + 432|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(432|0);
  9634. $$byval_copy10 = sp + 336|0;
  9635. $$byval_copy4 = sp + 292|0;
  9636. $$byval_copy3 = sp + 24|0;
  9637. $$byval_copy2 = sp;
  9638. $0 = sp + 416|0;
  9639. $1 = sp + 328|0;
  9640. $2 = sp + 312|0;
  9641. $3 = sp + 304|0;
  9642. $4 = sp + 288|0;
  9643. $5 = sp + 412|0;
  9644. $6 = sp + 408|0;
  9645. $7 = sp + 404|0;
  9646. $8 = sp + 400|0;
  9647. $9 = sp + 396|0;
  9648. $10 = sp + 392|0;
  9649. _UpdateCamera(16);
  9650. $11 = (_IsKeyPressed(262)|0);
  9651. $12 = ($11|0)==(0);
  9652. if ($12) {
  9653. $13 = (_IsKeyPressed(263)|0);
  9654. $14 = ($13|0)==(0);
  9655. if ($14) {
  9656. $$pr = HEAP32[4898]|0;
  9657. $18 = $$pr;
  9658. } else {
  9659. $$sink2 = -1;
  9660. label = 3;
  9661. }
  9662. } else {
  9663. $$sink2 = 1;
  9664. label = 3;
  9665. }
  9666. if ((label|0) == 3) {
  9667. $15 = HEAP32[4898]|0;
  9668. $16 = (($15) + ($$sink2))|0;
  9669. HEAP32[4898] = $16;
  9670. $18 = $16;
  9671. }
  9672. $17 = ($18|0)>(11);
  9673. if ($17) {
  9674. $$sink = 0;
  9675. label = 7;
  9676. } else {
  9677. $19 = ($18|0)<(0);
  9678. if ($19) {
  9679. $$sink = 11;
  9680. label = 7;
  9681. }
  9682. }
  9683. if ((label|0) == 7) {
  9684. HEAP32[4898] = $$sink;
  9685. }
  9686. _BeginDrawing();
  9687. HEAP8[$0>>0] = -11;
  9688. $20 = ((($0)) + 1|0);
  9689. HEAP8[$20>>0] = -11;
  9690. $21 = ((($0)) + 2|0);
  9691. HEAP8[$21>>0] = -11;
  9692. $22 = ((($0)) + 3|0);
  9693. HEAP8[$22>>0] = -1;
  9694. ;HEAP8[$$byval_copy10>>0]=HEAP8[$0>>0]|0;HEAP8[$$byval_copy10+1>>0]=HEAP8[$0+1>>0]|0;HEAP8[$$byval_copy10+2>>0]=HEAP8[$0+2>>0]|0;HEAP8[$$byval_copy10+3>>0]=HEAP8[$0+3>>0]|0;
  9695. _ClearBackground($$byval_copy10);
  9696. dest=$$byval_copy10; src=20564; 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));
  9697. _BeginTextureMode($$byval_copy10);
  9698. dest=$$byval_copy10; 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));
  9699. _Begin3dMode($$byval_copy10);
  9700. HEAP32[$1>>2] = -1;
  9701. _memcpy(($$byval_copy3|0),(19608|0),264)|0;
  9702. ;HEAP32[$$byval_copy4>>2]=HEAP32[19596>>2]|0;HEAP32[$$byval_copy4+4>>2]=HEAP32[19596+4>>2]|0;HEAP32[$$byval_copy4+8>>2]=HEAP32[19596+8>>2]|0;
  9703. ;HEAP8[$$byval_copy10>>0]=HEAP8[$1>>0]|0;HEAP8[$$byval_copy10+1>>0]=HEAP8[$1+1>>0]|0;HEAP8[$$byval_copy10+2>>0]=HEAP8[$1+2>>0]|0;HEAP8[$$byval_copy10+3>>0]=HEAP8[$1+3>>0]|0;
  9704. _DrawModel($$byval_copy3,$$byval_copy4,2.0,$$byval_copy10);
  9705. _DrawGrid(10,1.0);
  9706. _End3dMode();
  9707. _EndTextureMode();
  9708. $23 = HEAP32[4898]|0;
  9709. $24 = (19892 + (($23*56)|0)|0);
  9710. dest=$$byval_copy10; src=$24; 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));
  9711. _BeginShaderMode($$byval_copy10);
  9712. HEAP32[$2>>2] = 0;
  9713. $25 = ((($2)) + 4|0);
  9714. HEAP32[$25>>2] = 0;
  9715. $26 = ((($2)) + 8|0);
  9716. $27 = HEAP32[(20572)>>2]|0;
  9717. HEAP32[$26>>2] = $27;
  9718. $28 = ((($2)) + 12|0);
  9719. $29 = HEAP32[(20576)>>2]|0;
  9720. $30 = (0 - ($29))|0;
  9721. HEAP32[$28>>2] = $30;
  9722. HEAPF32[$3>>2] = 0.0;
  9723. $31 = ((($3)) + 4|0);
  9724. HEAPF32[$31>>2] = 0.0;
  9725. HEAP32[$4>>2] = -1;
  9726. ;HEAP32[$$byval_copy2>>2]=HEAP32[(20568)>>2]|0;HEAP32[$$byval_copy2+4>>2]=HEAP32[(20568)+4>>2]|0;HEAP32[$$byval_copy2+8>>2]=HEAP32[(20568)+8>>2]|0;HEAP32[$$byval_copy2+12>>2]=HEAP32[(20568)+12>>2]|0;HEAP32[$$byval_copy2+16>>2]=HEAP32[(20568)+16>>2]|0;
  9727. ;HEAP32[$$byval_copy3>>2]=HEAP32[$2>>2]|0;HEAP32[$$byval_copy3+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$$byval_copy3+8>>2]=HEAP32[$2+8>>2]|0;HEAP32[$$byval_copy3+12>>2]=HEAP32[$2+12>>2]|0;
  9728. ;HEAP32[$$byval_copy4>>2]=HEAP32[$3>>2]|0;HEAP32[$$byval_copy4+4>>2]=HEAP32[$3+4>>2]|0;
  9729. ;HEAP8[$$byval_copy10>>0]=HEAP8[$4>>0]|0;HEAP8[$$byval_copy10+1>>0]=HEAP8[$4+1>>0]|0;HEAP8[$$byval_copy10+2>>0]=HEAP8[$4+2>>0]|0;HEAP8[$$byval_copy10+3>>0]=HEAP8[$4+3>>0]|0;
  9730. _DrawTextureRec($$byval_copy2,$$byval_copy3,$$byval_copy4,$$byval_copy10);
  9731. _EndShaderMode();
  9732. HEAP8[$6>>0] = -56;
  9733. $32 = ((($6)) + 1|0);
  9734. HEAP8[$32>>0] = -56;
  9735. $33 = ((($6)) + 2|0);
  9736. HEAP8[$33>>0] = -56;
  9737. $34 = ((($6)) + 3|0);
  9738. HEAP8[$34>>0] = -1;
  9739. ;HEAP8[$$byval_copy10>>0]=HEAP8[$6>>0]|0;HEAP8[$$byval_copy10+1>>0]=HEAP8[$6+1>>0]|0;HEAP8[$$byval_copy10+2>>0]=HEAP8[$6+2>>0]|0;HEAP8[$$byval_copy10+3>>0]=HEAP8[$6+3>>0]|0;
  9740. _Fade($5,$$byval_copy10,0.69999998807907104);
  9741. ;HEAP8[$$byval_copy10>>0]=HEAP8[$5>>0]|0;HEAP8[$$byval_copy10+1>>0]=HEAP8[$5+1>>0]|0;HEAP8[$$byval_copy10+2>>0]=HEAP8[$5+2>>0]|0;HEAP8[$$byval_copy10+3>>0]=HEAP8[$5+3>>0]|0;
  9742. _DrawRectangle(0,9,580,30,$$byval_copy10);
  9743. $35 = HEAP32[2]|0;
  9744. $36 = (($35) + -200)|0;
  9745. $37 = HEAP32[3]|0;
  9746. $38 = (($37) + -20)|0;
  9747. HEAP8[$7>>0] = 80;
  9748. $39 = ((($7)) + 1|0);
  9749. HEAP8[$39>>0] = 80;
  9750. $40 = ((($7)) + 2|0);
  9751. HEAP8[$40>>0] = 80;
  9752. $41 = ((($7)) + 3|0);
  9753. HEAP8[$41>>0] = -1;
  9754. ;HEAP8[$$byval_copy10>>0]=HEAP8[$7>>0]|0;HEAP8[$$byval_copy10+1>>0]=HEAP8[$7+1>>0]|0;HEAP8[$$byval_copy10+2>>0]=HEAP8[$7+2>>0]|0;HEAP8[$$byval_copy10+3>>0]=HEAP8[$7+3>>0]|0;
  9755. _DrawText(5113,$36,$38,10,$$byval_copy10);
  9756. HEAP8[$8>>0] = 0;
  9757. $42 = ((($8)) + 1|0);
  9758. HEAP8[$42>>0] = 0;
  9759. $43 = ((($8)) + 2|0);
  9760. HEAP8[$43>>0] = 0;
  9761. $44 = ((($8)) + 3|0);
  9762. HEAP8[$44>>0] = -1;
  9763. ;HEAP8[$$byval_copy10>>0]=HEAP8[$8>>0]|0;HEAP8[$$byval_copy10+1>>0]=HEAP8[$8+1>>0]|0;HEAP8[$$byval_copy10+2>>0]=HEAP8[$8+2>>0]|0;HEAP8[$$byval_copy10+3>>0]=HEAP8[$8+3>>0]|0;
  9764. _DrawText(5148,10,15,20,$$byval_copy10);
  9765. $45 = HEAP32[4898]|0;
  9766. $46 = (56 + ($45<<2)|0);
  9767. $47 = HEAP32[$46>>2]|0;
  9768. HEAP8[$9>>0] = -26;
  9769. $48 = ((($9)) + 1|0);
  9770. HEAP8[$48>>0] = 41;
  9771. $49 = ((($9)) + 2|0);
  9772. HEAP8[$49>>0] = 55;
  9773. $50 = ((($9)) + 3|0);
  9774. HEAP8[$50>>0] = -1;
  9775. ;HEAP8[$$byval_copy10>>0]=HEAP8[$9>>0]|0;HEAP8[$$byval_copy10+1>>0]=HEAP8[$9+1>>0]|0;HEAP8[$$byval_copy10+2>>0]=HEAP8[$9+2>>0]|0;HEAP8[$$byval_copy10+3>>0]=HEAP8[$9+3>>0]|0;
  9776. _DrawText($47,330,15,20,$$byval_copy10);
  9777. HEAP8[$10>>0] = 0;
  9778. $51 = ((($10)) + 1|0);
  9779. HEAP8[$51>>0] = 82;
  9780. $52 = ((($10)) + 2|0);
  9781. HEAP8[$52>>0] = -84;
  9782. $53 = ((($10)) + 3|0);
  9783. HEAP8[$53>>0] = -1;
  9784. ;HEAP8[$$byval_copy10>>0]=HEAP8[$10>>0]|0;HEAP8[$$byval_copy10+1>>0]=HEAP8[$10+1>>0]|0;HEAP8[$$byval_copy10+2>>0]=HEAP8[$10+2>>0]|0;HEAP8[$$byval_copy10+3>>0]=HEAP8[$10+3>>0]|0;
  9785. _DrawText(5172,540,10,30,$$byval_copy10);
  9786. _DrawFPS(700,15);
  9787. _EndDrawing();
  9788. STACKTOP = sp;return;
  9789. }
  9790. function _tinfl_decompress($0,$1,$2,$3,$4,$5,$6) {
  9791. $0 = $0|0;
  9792. $1 = $1|0;
  9793. $2 = $2|0;
  9794. $3 = $3|0;
  9795. $4 = $4|0;
  9796. $5 = $5|0;
  9797. $6 = $6|0;
  9798. 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;
  9799. 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;
  9800. 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;
  9801. 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;
  9802. 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;
  9803. 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;
  9804. 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;
  9805. 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;
  9806. 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;
  9807. 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;
  9808. 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;
  9809. 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;
  9810. 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;
  9811. 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;
  9812. 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;
  9813. 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;
  9814. 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;
  9815. 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;
  9816. 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;
  9817. 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;
  9818. 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;
  9819. 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;
  9820. 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;
  9821. 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;
  9822. 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;
  9823. 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;
  9824. 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;
  9825. 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;
  9826. 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;
  9827. 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;
  9828. 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;
  9829. 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;
  9830. 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;
  9831. 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;
  9832. 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;
  9833. 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;
  9834. 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;
  9835. 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;
  9836. 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;
  9837. 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;
  9838. 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;
  9839. 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;
  9840. 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;
  9841. 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;
  9842. 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;
  9843. 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;
  9844. 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;
  9845. 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;
  9846. 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;
  9847. 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;
  9848. 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;
  9849. 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;
  9850. 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;
  9851. 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;
  9852. 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;
  9853. 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;
  9854. 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;
  9855. 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;
  9856. 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;
  9857. 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;
  9858. 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;
  9859. 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;
  9860. 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;
  9861. 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;
  9862. 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;
  9863. 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;
  9864. 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;
  9865. 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;
  9866. 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;
  9867. 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;
  9868. 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;
  9869. 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;
  9870. 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;
  9871. 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;
  9872. 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;
  9873. 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;
  9874. 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;
  9875. 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;
  9876. 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;
  9877. 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;
  9878. 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;
  9879. 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;
  9880. 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;
  9881. 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;
  9882. 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;
  9883. 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;
  9884. 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;
  9885. 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;
  9886. 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;
  9887. 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;
  9888. 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;
  9889. 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;
  9890. 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;
  9891. 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;
  9892. 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;
  9893. 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;
  9894. 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;
  9895. sp = STACKTOP;
  9896. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  9897. $7 = sp + 64|0;
  9898. $8 = sp;
  9899. $9 = HEAP32[$2>>2]|0;
  9900. $10 = (($1) + ($9)|0);
  9901. $11 = HEAP32[$5>>2]|0;
  9902. $12 = (($4) + ($11)|0);
  9903. $13 = $6 & 4;
  9904. $14 = ($13|0)!=(0);
  9905. $15 = $4;
  9906. $16 = $3;
  9907. $17 = $16 ^ -1;
  9908. $18 = (($15) + ($17))|0;
  9909. $19 = (($18) + ($11))|0;
  9910. $$1753 = $14 ? -1 : $19;
  9911. $20 = (($$1753) + 1)|0;
  9912. $21 = $20 & $$1753;
  9913. $22 = ($21|0)!=(0);
  9914. $23 = ($4>>>0)<($3>>>0);
  9915. $or$cond1702 = $23 | $22;
  9916. if ($or$cond1702) {
  9917. HEAP32[$5>>2] = 0;
  9918. HEAP32[$2>>2] = 0;
  9919. $$0951 = -3;
  9920. STACKTOP = sp;return ($$0951|0);
  9921. }
  9922. $24 = ((($0)) + 4|0);
  9923. $25 = HEAP32[$24>>2]|0;
  9924. $26 = ((($0)) + 56|0);
  9925. $27 = HEAP32[$26>>2]|0;
  9926. $28 = ((($0)) + 32|0);
  9927. $29 = HEAP32[$28>>2]|0;
  9928. $30 = ((($0)) + 36|0);
  9929. $31 = HEAP32[$30>>2]|0;
  9930. $32 = ((($0)) + 40|0);
  9931. $33 = HEAP32[$32>>2]|0;
  9932. $34 = ((($0)) + 60|0);
  9933. $35 = HEAP32[$34>>2]|0;
  9934. $36 = HEAP32[$0>>2]|0;
  9935. L5: do {
  9936. switch ($36|0) {
  9937. case 0: {
  9938. $37 = ((($0)) + 12|0);
  9939. HEAP32[$37>>2] = 0;
  9940. $38 = ((($0)) + 8|0);
  9941. HEAP32[$38>>2] = 0;
  9942. $39 = ((($0)) + 28|0);
  9943. HEAP32[$39>>2] = 1;
  9944. $40 = ((($0)) + 16|0);
  9945. HEAP32[$40>>2] = 1;
  9946. $41 = $6 & 1;
  9947. $42 = ($41|0)==(0);
  9948. if ($42) {
  9949. $$01416 = $35;$$01607 = $4;$$41511 = $1;$$5 = 0;$$51102 = 0;$$51208 = 0;$$51314 = 0;$$5996 = 0;
  9950. label = 14;
  9951. } else {
  9952. $43 = ($9|0)<(1);
  9953. if ($43) {
  9954. $$01097 = 0;$$01203 = 0;$$01309 = 0;$$0987 = 0;$$0991 = 0;
  9955. label = 6;
  9956. } else {
  9957. $$11098$ph = 0;$$11204$ph = 0;$$11310$ph = 0;$$1988$ph = 0;$$1992$ph = 0;
  9958. label = 8;
  9959. }
  9960. }
  9961. break;
  9962. }
  9963. case 1: {
  9964. $46 = ($9|0)>(0);
  9965. if ($46) {
  9966. $$11098$ph = $31;$$11204$ph = $33;$$11310$ph = $27;$$1988$ph = $25;$$1992$ph = $29;
  9967. label = 8;
  9968. } else {
  9969. $$01097 = $31;$$01203 = $33;$$01309 = $27;$$0987 = $25;$$0991 = $29;
  9970. label = 6;
  9971. }
  9972. break;
  9973. }
  9974. case 2: {
  9975. $53 = ($9|0)>(0);
  9976. if ($53) {
  9977. $$31206$ph = $33;$$31312$ph = $27;$$3990$ph = $25;$$3994$ph = $29;$$sink1705 = $1;
  9978. label = 12;
  9979. } else {
  9980. $$11508 = $1;$$21099 = $31;$$21205 = $33;$$21311 = $27;$$2989 = $25;$$2993 = $29;
  9981. label = 10;
  9982. }
  9983. break;
  9984. }
  9985. case 36: {
  9986. $$0960 = -1;$$891505 = $35;$$931084 = $29;$$931700 = $4;$$951192 = $31;$$951298 = $33;$$981605 = $1;$$99 = $25;$$991408 = $27;$$sink30 = 36;
  9987. label = 243;
  9988. break;
  9989. }
  9990. case 3: {
  9991. $75 = ($9|0)>(0);
  9992. if ($75) {
  9993. $$31419$ph = $35;$$31610$ph = $4;$$8$ph = $25;$$81105$ph = $31;$$81211$ph = $33;$$81317$ph = $27;$$8999$ph = $29;$$sink1710 = $1;
  9994. label = 18;
  9995. } else {
  9996. $$21418 = $35;$$21609 = $4;$$61513 = $1;$$7 = $25;$$71104 = $31;$$71210 = $33;$$71316 = $27;$$7998 = $29;
  9997. label = 16;
  9998. }
  9999. break;
  10000. }
  10001. case 5: {
  10002. $90 = ($9|0)>(0);
  10003. if ($90) {
  10004. $91 = ((($1)) + 1|0);
  10005. $92 = HEAP8[$1>>0]|0;
  10006. $93 = $92&255;
  10007. $$01412 = $93;$$111518 = $91;
  10008. } else {
  10009. $88 = $6 & 2;
  10010. $89 = ($88|0)==(0);
  10011. if ($89) {
  10012. $$01412 = 0;$$111518 = $1;
  10013. } else {
  10014. $$0960 = 1;$$891505 = $35;$$931084 = $29;$$931700 = $4;$$951192 = $31;$$951298 = $33;$$981605 = $1;$$99 = $25;$$991408 = $27;$$sink30 = 5;
  10015. label = 243;
  10016. break L5;
  10017. }
  10018. }
  10019. $94 = $$01412 << $25;
  10020. $95 = $94 | $27;
  10021. $96 = (($25) + 8)|0;
  10022. $$121519 = $$111518;$$13 = $96;$$131004 = $29;$$131216 = $33;$$131322 = $95;$$81424 = $35;$$81615 = $4;
  10023. label = 25;
  10024. break;
  10025. }
  10026. case 6: {
  10027. $106 = ($9|0)>(0);
  10028. if ($106) {
  10029. $$121428$ph = $35;$$121619$ph = $4;$$161113$ph = $31;$$17$ph = $25;$$171008$ph = $29;$$171220$ph = $33;$$171326$ph = $27;$$sink1713 = $1;
  10030. label = 32;
  10031. } else {
  10032. $$111427 = $35;$$111618 = $4;$$151112 = $31;$$151522 = $1;$$16 = $25;$$161007 = $29;$$161219 = $33;$$161325 = $27;
  10033. label = 30;
  10034. }
  10035. break;
  10036. }
  10037. case 7: {
  10038. $120 = ($9|0)>(0);
  10039. if ($120) {
  10040. $121 = ((($1)) + 1|0);
  10041. $122 = HEAP8[$1>>0]|0;
  10042. $$151431 = $35;$$151622 = $4;$$191116 = $31;$$191526 = $121;$$20 = $25;$$201011 = $29;$$201223 = $33;$$201329 = $27;$$sink12 = $122;
  10043. label = 39;
  10044. } else {
  10045. $$141430 = $35;$$141621 = $4;$$181115 = $31;$$181525 = $1;$$19 = $25;$$191010 = $29;$$191222 = $33;$$191328 = $27;
  10046. label = 36;
  10047. }
  10048. break;
  10049. }
  10050. case 39: {
  10051. $$171433 = $35;$$171624 = $4;$$211118 = $31;$$211528 = $1;$$22 = $25;$$221013 = $29;$$221225 = $33;$$221331 = $27;
  10052. label = 43;
  10053. break;
  10054. }
  10055. case 51: {
  10056. $152 = ($9|0)>(0);
  10057. if ($152) {
  10058. $$211437$ph = $35;$$211628$ph = $4;$$251122$ph = $31;$$26$ph = $25;$$261017$ph = $29;$$261229$ph = $33;$$261335$ph = $27;$$sink1716 = $1;
  10059. label = 49;
  10060. } else {
  10061. $$201436 = $35;$$201627 = $4;$$241121 = $31;$$241531 = $1;$$25 = $25;$$251016 = $29;$$251228 = $33;$$251334 = $27;
  10062. label = 47;
  10063. }
  10064. break;
  10065. }
  10066. case 52: {
  10067. $$231439 = $35;$$231630 = $4;$$271018 = $29;$$271124 = $31;$$271534 = $1;$$28 = $25;$$281231 = $33;$$281337 = $27;
  10068. label = 52;
  10069. break;
  10070. }
  10071. case 9: {
  10072. $$251441 = $35;$$251632 = $4;$$291020 = $29;$$291126 = $31;$$291536 = $1;$$30 = $25;$$301233 = $33;$$301339 = $27;
  10073. label = 55;
  10074. break;
  10075. }
  10076. case 38: {
  10077. $$261442 = $35;$$261633 = $4;$$301021 = $29;$$301127 = $31;$$301537 = $1;$$31 = $25;$$311234 = $33;$$311340 = $27;
  10078. label = 56;
  10079. break;
  10080. }
  10081. case 40: {
  10082. $$271443 = $35;$$271634 = $4;$$311022 = $29;$$311128 = $31;$$311538 = $1;$$32 = $25;$$321235 = $33;$$321341 = $27;
  10083. label = 58;
  10084. break;
  10085. }
  10086. case 10: {
  10087. $$281444 = $35;$$281635 = $4;$$321023 = $29;$$321129 = $31;$$321539 = $1;$$33 = $25;$$331236 = $33;$$331342 = $27;
  10088. label = 60;
  10089. break;
  10090. }
  10091. case 11: {
  10092. $193 = ($9|0)>(0);
  10093. if ($193) {
  10094. $$321448$ph = $35;$$321639$ph = $4;$$361027$ph = $29;$$361133$ph = $31;$$37$ph = $25;$$371240$ph = $33;$$371346$ph = $27;$$sink1719 = $1;
  10095. label = 66;
  10096. } else {
  10097. $$311447 = $35;$$311638 = $4;$$351026 = $29;$$351132 = $31;$$351542 = $1;$$36 = $25;$$361239 = $33;$$361345 = $27;
  10098. label = 64;
  10099. }
  10100. break;
  10101. }
  10102. case 14: {
  10103. $224 = ($9|0)>(0);
  10104. if ($224) {
  10105. $$371453$ph = $35;$$371644$ph = $4;$$411032$ph = $29;$$411138$ph = $31;$$42$ph = $25;$$421245$ph = $33;$$421351$ph = $27;$$sink1722 = $1;
  10106. label = 75;
  10107. } else {
  10108. $$361452 = $35;$$361643 = $4;$$401031 = $29;$$401137 = $31;$$401547 = $1;$$41 = $25;$$411244 = $33;$$411350 = $27;
  10109. label = 73;
  10110. }
  10111. break;
  10112. }
  10113. case 35: {
  10114. $$401456 = $35;$$401647 = $4;$$441035 = $29;$$441141 = $31;$$441551 = $1;$$45 = $25;$$451248 = $33;$$451354 = $27;
  10115. label = 86;
  10116. break;
  10117. }
  10118. case 16: {
  10119. $452 = ($9|0)>(0);
  10120. if ($452) {
  10121. $$441460$ph = $35;$$441651$ph = $4;$$481039$ph = $29;$$481145$ph = $31;$$49$ph = $25;$$491252$ph = $33;$$491358$ph = $27;$$sink1729 = $1;
  10122. label = 116;
  10123. } else {
  10124. $$431459 = $35;$$431650 = $4;$$471038 = $29;$$471144 = $31;$$471554 = $1;$$48 = $25;$$481251 = $33;$$481357 = $27;
  10125. label = 114;
  10126. }
  10127. break;
  10128. }
  10129. case 17: {
  10130. $$461462 = $35;$$461653 = $4;$$491040 = $29;$$501147 = $31;$$501557 = $1;$$51 = $25;$$511254 = $33;$$511360 = $27;
  10131. label = 125;
  10132. break;
  10133. }
  10134. case 18: {
  10135. $503 = ($9|0)>(0);
  10136. if ($503) {
  10137. $$491465$ph = $35;$$491656$ph = $4;$$521043$ph = $29;$$531150$ph = $31;$$54$ph = $25;$$541257$ph = $33;$$541363$ph = $27;$$sink1732 = $1;
  10138. label = 130;
  10139. } else {
  10140. $$481464 = $35;$$481655 = $4;$$511042 = $29;$$521149 = $31;$$521559 = $1;$$53 = $25;$$531256 = $33;$$531362 = $27;
  10141. label = 128;
  10142. }
  10143. break;
  10144. }
  10145. case 21: {
  10146. $$511467 = $35;$$511658 = $4;$$541045 = $29;$$551152 = $31;$$551562 = $1;$$56 = $25;$$561259 = $33;$$561365 = $27;
  10147. label = 136;
  10148. break;
  10149. }
  10150. case 23: {
  10151. $572 = ($9|0)>(0);
  10152. if ($572) {
  10153. $$571473$ph = $35;$$571664$ph = $4;$$601051$ph = $29;$$611158$ph = $31;$$62$ph = $25;$$621265$ph = $33;$$621371$ph = $27;$$sink1736 = $1;
  10154. label = 153;
  10155. } else {
  10156. $$561472 = $35;$$561663 = $4;$$591050 = $29;$$601157 = $31;$$601567 = $1;$$61 = $25;$$611264 = $33;$$611370 = $27;
  10157. label = 151;
  10158. }
  10159. break;
  10160. }
  10161. case 24: {
  10162. $$591475 = $35;$$591666 = $4;$$621053 = $29;$$621159 = $31;$$631570 = $1;$$64 = $25;$$641267 = $33;$$641373 = $27;
  10163. label = 160;
  10164. break;
  10165. }
  10166. case 25: {
  10167. $696 = ($9|0)>(0);
  10168. if ($696) {
  10169. $$631479$ph = $35;$$641671$ph = $4;$$661057$ph = $29;$$671164$ph = $31;$$681271$ph = $33;$$71$ph = $25;$$711380$ph = $27;$$sink1739 = $1;
  10170. label = 182;
  10171. } else {
  10172. $$621478 = $35;$$631670 = $4;$$651056 = $29;$$661163 = $31;$$671270 = $33;$$691576 = $1;$$70 = $25;$$701379 = $27;
  10173. label = 180;
  10174. }
  10175. break;
  10176. }
  10177. case 26: {
  10178. $737 = ($9|0)>(0);
  10179. if ($737) {
  10180. $$681484$ph = $35;$$691676$ph = $4;$$711062$ph = $29;$$721169$ph = $31;$$731276$ph = $33;$$76$ph = $25;$$761385$ph = $27;$$sink1743 = $1;
  10181. label = 195;
  10182. } else {
  10183. $$671483 = $35;$$681675 = $4;$$701061 = $29;$$711168 = $31;$$721275 = $33;$$741581 = $1;$$75 = $25;$$751384 = $27;
  10184. label = 193;
  10185. }
  10186. break;
  10187. }
  10188. case 27: {
  10189. $784 = ($9|0)>(0);
  10190. if ($784) {
  10191. $$721488$ph = $35;$$731680$ph = $4;$$741065$ph = $29;$$761173$ph = $31;$$761279$ph = $33;$$80$ph = $25;$$801389$ph = $27;$$sink1746 = $1;
  10192. label = 206;
  10193. } else {
  10194. $$711487 = $35;$$721679 = $4;$$731064 = $29;$$751172 = $31;$$751278 = $33;$$781585 = $1;$$79 = $25;$$791388 = $27;
  10195. label = 204;
  10196. }
  10197. break;
  10198. }
  10199. case 37: {
  10200. $$731489 = $35;$$761683 = $4;$$771068 = $29;$$791176 = $31;$$791282 = $33;$$821589 = $1;$$83 = $25;$$831392 = $27;
  10201. label = 210;
  10202. break;
  10203. }
  10204. case 53: {
  10205. $$751491 = $35;$$781685 = $4;$$791070 = $29;$$811178 = $31;$$811284 = $33;$$841591 = $1;$$85 = $25;$$851394 = $27;
  10206. label = 213;
  10207. break;
  10208. }
  10209. case 32: {
  10210. $842 = ($9|0)>(0);
  10211. if ($842) {
  10212. $843 = ((($1)) + 1|0);
  10213. $844 = HEAP8[$1>>0]|0;
  10214. $845 = $844&255;
  10215. $$0949 = $845;$$881595 = $843;
  10216. } else {
  10217. $840 = $6 & 2;
  10218. $841 = ($840|0)==(0);
  10219. if ($841) {
  10220. $$0949 = 0;$$881595 = $1;
  10221. } else {
  10222. $$0960 = 1;$$891505 = $35;$$931084 = $29;$$931700 = $4;$$951192 = $31;$$951298 = $33;$$981605 = $1;$$99 = $25;$$991408 = $27;$$sink30 = 32;
  10223. label = 243;
  10224. break L5;
  10225. }
  10226. }
  10227. $846 = $$0949 << $25;
  10228. $847 = $846 | $27;
  10229. $848 = (($25) + 8)|0;
  10230. $$801496 = $35;$$841075 = $29;$$841691 = $4;$$861289 = $33;$$891596 = $$881595;$$90 = $848;$$901399 = $847;
  10231. label = 226;
  10232. break;
  10233. }
  10234. case 41: {
  10235. $858 = ($9|0)>(0);
  10236. if ($858) {
  10237. $$841500$ph = $35;$$881079$ph = $29;$$881695$ph = $4;$$901187$ph = $31;$$901293$ph = $33;$$94$ph = $25;$$941403$ph = $27;$$sink1750 = $1;
  10238. label = 233;
  10239. } else {
  10240. $$831499 = $35;$$871078 = $29;$$871694 = $4;$$891186 = $31;$$891292 = $33;$$921599 = $1;$$93 = $25;$$931402 = $27;
  10241. label = 231;
  10242. }
  10243. break;
  10244. }
  10245. case 42: {
  10246. $871 = ($9|0)>(0);
  10247. if ($871) {
  10248. $872 = ((($1)) + 1|0);
  10249. $873 = HEAP8[$1>>0]|0;
  10250. $874 = $873&255;
  10251. $$0948 = $874;$$871503 = $35;$$911082 = $29;$$911698 = $4;$$931190 = $31;$$931296 = $33;$$961603 = $872;$$97 = $25;$$971406 = $27;
  10252. label = 241;
  10253. } else {
  10254. $$861502 = $35;$$901081 = $29;$$901697 = $4;$$921189 = $31;$$921295 = $33;$$951602 = $1;$$96 = $25;$$961405 = $27;
  10255. label = 237;
  10256. }
  10257. break;
  10258. }
  10259. case 34: {
  10260. $$881504 = $35;$$921083 = $29;$$921699 = $4;$$941191 = $31;$$941297 = $33;$$971604 = $1;$$98 = $25;$$981407 = $27;
  10261. label = 242;
  10262. break;
  10263. }
  10264. default: {
  10265. $$100 = $25;$$1001409 = $27;$$1961 = -1;$$901506 = $35;$$941085 = $29;$$941701 = $4;$$961193 = $31;$$961299 = $33;$$991606 = $1;
  10266. label = 244;
  10267. }
  10268. }
  10269. } while(0);
  10270. if ((label|0) == 6) {
  10271. $44 = $6 & 2;
  10272. $45 = ($44|0)==(0);
  10273. if ($45) {
  10274. $$01507 = $1;$$11098 = $$01097;$$11204 = $$01203;$$11310 = $$01309;$$1988 = $$0987;$$1992 = $$0991;$$sink3$shrunk = 0;
  10275. label = 9;
  10276. } else {
  10277. $$0960 = 1;$$891505 = $35;$$931084 = $$0991;$$931700 = $4;$$951192 = $$01097;$$951298 = $$01203;$$981605 = $1;$$99 = $$0987;$$991408 = $$01309;$$sink30 = 1;
  10278. label = 243;
  10279. }
  10280. }
  10281. else if ((label|0) == 8) {
  10282. $47 = ((($1)) + 1|0);
  10283. $48 = HEAP8[$1>>0]|0;
  10284. $$01507 = $47;$$11098 = $$11098$ph;$$11204 = $$11204$ph;$$11310 = $$11310$ph;$$1988 = $$1988$ph;$$1992 = $$1992$ph;$$sink3$shrunk = $48;
  10285. label = 9;
  10286. }
  10287. if ((label|0) == 9) {
  10288. $$sink3 = $$sink3$shrunk&255;
  10289. $49 = ((($0)) + 8|0);
  10290. HEAP32[$49>>2] = $$sink3;
  10291. $50 = ($$01507>>>0)<($10>>>0);
  10292. if ($50) {
  10293. $$31206$ph = $$11204;$$31312$ph = $$11310;$$3990$ph = $$1988;$$3994$ph = $$1992;$$sink1705 = $$01507;
  10294. label = 12;
  10295. } else {
  10296. $$11508 = $$01507;$$21099 = $$11098;$$21205 = $$11204;$$21311 = $$11310;$$2989 = $$1988;$$2993 = $$1992;
  10297. label = 10;
  10298. }
  10299. }
  10300. if ((label|0) == 10) {
  10301. $51 = $6 & 2;
  10302. $52 = ($51|0)==(0);
  10303. if ($52) {
  10304. $$21509 = $$11508;$$31206 = $$21205;$$31312 = $$21311;$$3990 = $$2989;$$3994 = $$2993;$$sink9$shrunk = 0;
  10305. label = 13;
  10306. } else {
  10307. $$0960 = 1;$$891505 = $35;$$931084 = $$2993;$$931700 = $4;$$951192 = $$21099;$$951298 = $$21205;$$981605 = $$11508;$$99 = $$2989;$$991408 = $$21311;$$sink30 = 2;
  10308. label = 243;
  10309. }
  10310. }
  10311. else if ((label|0) == 12) {
  10312. $54 = ((($$sink1705)) + 1|0);
  10313. $55 = HEAP8[$$sink1705>>0]|0;
  10314. $$21509 = $54;$$31206 = $$31206$ph;$$31312 = $$31312$ph;$$3990 = $$3990$ph;$$3994 = $$3994$ph;$$sink9$shrunk = $55;
  10315. label = 13;
  10316. }
  10317. if ((label|0) == 13) {
  10318. $$sink9 = $$sink9$shrunk&255;
  10319. $56 = ((($0)) + 12|0);
  10320. HEAP32[$56>>2] = $$sink9;
  10321. $57 = ((($0)) + 8|0);
  10322. $58 = HEAP32[$57>>2]|0;
  10323. $59 = $58 << 8;
  10324. $60 = $59 | $$sink9;
  10325. $61 = (($60>>>0) % 31)&-1;
  10326. $62 = $$sink9 & 32;
  10327. $63 = $61 | $62;
  10328. $64 = $58 & 15;
  10329. $65 = ($64|0)!=(8);
  10330. $not$ = ($63|0)!=(0);
  10331. $$1754 = $65 | $not$;
  10332. $66 = $58 >>> 4;
  10333. $67 = 256 << $66;
  10334. $68 = ($67>>>0)>(32768);
  10335. $69 = ($20>>>0)<($67>>>0);
  10336. $$ = $68 | $69;
  10337. $not$1755 = $14 ^ 1;
  10338. $70 = $$ & $not$1755;
  10339. $$31100$v = $70 | $$1754;
  10340. if ($$31100$v) {
  10341. $$0960 = -1;$$891505 = $35;$$931084 = $$3994;$$931700 = $4;$$951192 = 1;$$951298 = $$31206;$$981605 = $$21509;$$99 = $$3990;$$991408 = $$31312;$$sink30 = 36;
  10342. label = 243;
  10343. } else {
  10344. $$01416 = $35;$$01607 = $4;$$41511 = $$21509;$$5 = $$3990;$$51102 = 0;$$51208 = $$31206;$$51314 = $$31312;$$5996 = $$3994;
  10345. label = 14;
  10346. }
  10347. }
  10348. L46: while(1) {
  10349. switch (label|0) {
  10350. case 14: {
  10351. label = 0;
  10352. $71 = ($$5>>>0)<(3);
  10353. if ($71) {
  10354. $$11417 = $$01416;$$11608 = $$01607;$$51512 = $$41511;$$6 = $$5;$$61103 = $$51102;$$61209 = $$51208;$$61315 = $$51314;$$6997 = $$5996;
  10355. label = 15;
  10356. } else {
  10357. $$41420 = $$01416;$$41611 = $$01607;$$81515 = $$41511;$$9 = $$5;$$91000 = $$5996;$$91106 = $$51102;$$91212 = $$51208;$$91318 = $$51314;
  10358. label = 20;
  10359. }
  10360. break;
  10361. }
  10362. case 16: {
  10363. label = 0;
  10364. $73 = $6 & 2;
  10365. $74 = ($73|0)==(0);
  10366. if ($74) {
  10367. $$01413$shrunk = 0;$$31419 = $$21418;$$31610 = $$21609;$$71514 = $$61513;$$8 = $$7;$$81105 = $$71104;$$81211 = $$71210;$$81317 = $$71316;$$8999 = $$7998;
  10368. label = 19;
  10369. } else {
  10370. $$0960 = 1;$$891505 = $$21418;$$931084 = $$7998;$$931700 = $$21609;$$951192 = $$71104;$$951298 = $$71210;$$981605 = $$61513;$$99 = $$7;$$991408 = $$71316;$$sink30 = 3;
  10371. label = 243;
  10372. continue L46;
  10373. }
  10374. break;
  10375. }
  10376. case 18: {
  10377. label = 0;
  10378. $76 = ((($$sink1710)) + 1|0);
  10379. $77 = HEAP8[$$sink1710>>0]|0;
  10380. $$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;
  10381. label = 19;
  10382. break;
  10383. }
  10384. case 25: {
  10385. label = 0;
  10386. $97 = $$13 & 7;
  10387. $98 = $$131322 >>> $97;
  10388. $99 = (($$13) - ($97))|0;
  10389. $$131110 = 0;$$131520 = $$121519;$$14 = $99;$$141005 = $$131004;$$141217 = $$131216;$$141323 = $98;$$91425 = $$81424;$$91616 = $$81615;
  10390. label = 26;
  10391. break;
  10392. }
  10393. case 30: {
  10394. label = 0;
  10395. $104 = $6 & 2;
  10396. $105 = ($104|0)==(0);
  10397. if ($105) {
  10398. $$01411$shrunk = 0;$$121428 = $$111427;$$121619 = $$111618;$$161113 = $$151112;$$161523 = $$151522;$$17 = $$16;$$171008 = $$161007;$$171220 = $$161219;$$171326 = $$161325;
  10399. label = 33;
  10400. } else {
  10401. $$0960 = 1;$$891505 = $$111427;$$931084 = $$161007;$$931700 = $$111618;$$951192 = $$151112;$$951298 = $$161219;$$981605 = $$151522;$$99 = $$16;$$991408 = $$161325;$$sink30 = 6;
  10402. label = 243;
  10403. continue L46;
  10404. }
  10405. break;
  10406. }
  10407. case 32: {
  10408. label = 0;
  10409. $107 = ((($$sink1713)) + 1|0);
  10410. $108 = HEAP8[$$sink1713>>0]|0;
  10411. $$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;
  10412. label = 33;
  10413. break;
  10414. }
  10415. case 36: {
  10416. label = 0;
  10417. $118 = $6 & 2;
  10418. $119 = ($118|0)==(0);
  10419. if ($119) {
  10420. $$151431 = $$141430;$$151622 = $$141621;$$191116 = $$181115;$$191526 = $$181525;$$20 = $$19;$$201011 = $$191010;$$201223 = $$191222;$$201329 = $$191328;$$sink12 = 0;
  10421. label = 39;
  10422. continue L46;
  10423. } else {
  10424. $$0960 = 1;$$891505 = $$141430;$$931084 = $$191010;$$931700 = $$141621;$$951192 = $$181115;$$951298 = $$191222;$$981605 = $$181525;$$99 = $$19;$$991408 = $$191328;$$sink30 = 7;
  10425. label = 243;
  10426. continue L46;
  10427. }
  10428. break;
  10429. }
  10430. case 39: {
  10431. label = 0;
  10432. $$sink13 = (((($0)) + 10528|0) + ($$191116)|0);
  10433. HEAP8[$$sink13>>0] = $$sink12;
  10434. $$161432 = $$151431;$$161623 = $$151622;$$201117 = $$191116;$$201527 = $$191526;$$21 = $$20;$$211012 = $$201011;$$211224 = $$201223;$$211330 = $$201329;
  10435. label = 41;
  10436. break;
  10437. }
  10438. case 43: {
  10439. label = 0;
  10440. $$0960 = -1;$$891505 = $$171433;$$931084 = $$221013;$$931700 = $$171624;$$951192 = $$211118;$$951298 = $$221225;$$981605 = $$211528;$$99 = $$22;$$991408 = $$221331;$$sink30 = 39;
  10441. label = 243;
  10442. continue L46;
  10443. break;
  10444. }
  10445. case 47: {
  10446. label = 0;
  10447. $150 = $6 & 2;
  10448. $151 = ($150|0)==(0);
  10449. if ($151) {
  10450. $$01410$shrunk = 0;$$211437 = $$201436;$$211628 = $$201627;$$251122 = $$241121;$$251532 = $$241531;$$26 = $$25;$$261017 = $$251016;$$261229 = $$251228;$$261335 = $$251334;
  10451. label = 50;
  10452. } else {
  10453. $$0960 = 1;$$891505 = $$201436;$$931084 = $$251016;$$931700 = $$201627;$$951192 = $$241121;$$951298 = $$251228;$$981605 = $$241531;$$99 = $$25;$$991408 = $$251334;$$sink30 = 51;
  10454. label = 243;
  10455. continue L46;
  10456. }
  10457. break;
  10458. }
  10459. case 49: {
  10460. label = 0;
  10461. $153 = ((($$sink1716)) + 1|0);
  10462. $154 = HEAP8[$$sink1716>>0]|0;
  10463. $$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;
  10464. label = 50;
  10465. break;
  10466. }
  10467. case 52: {
  10468. label = 0;
  10469. $162 = ($$231630>>>0)<($12>>>0);
  10470. if (!($162)) {
  10471. $$0960 = 2;$$891505 = $$231439;$$931084 = $$271018;$$931700 = $$231630;$$951192 = $$271124;$$951298 = $$281231;$$981605 = $$271534;$$99 = $$28;$$991408 = $$281337;$$sink30 = 52;
  10472. label = 243;
  10473. continue L46;
  10474. }
  10475. $163 = $$271018&255;
  10476. $164 = ((($$231630)) + 1|0);
  10477. HEAP8[$$231630>>0] = $163;
  10478. $165 = (($$271124) + -1)|0;
  10479. $$181434 = $$231439;$$181625 = $164;$$221119 = $165;$$221529 = $$271534;$$23 = $$28;$$231014 = $$271018;$$231226 = $$281231;$$231332 = $$281337;
  10480. label = 44;
  10481. break;
  10482. }
  10483. case 55: {
  10484. label = 0;
  10485. $167 = ($$251632>>>0)<($12>>>0);
  10486. if ($167) {
  10487. $$261442 = $$251441;$$261633 = $$251632;$$301021 = $$291020;$$301127 = $$291126;$$301537 = $$291536;$$31 = $$30;$$311234 = $$301233;$$311340 = $$301339;
  10488. label = 56;
  10489. continue L46;
  10490. } else {
  10491. $$0960 = 2;$$891505 = $$251441;$$931084 = $$291020;$$931700 = $$251632;$$951192 = $$291126;$$951298 = $$301233;$$981605 = $$291536;$$99 = $$30;$$991408 = $$301339;$$sink30 = 9;
  10492. label = 243;
  10493. continue L46;
  10494. }
  10495. break;
  10496. }
  10497. case 56: {
  10498. label = 0;
  10499. $168 = ($$301537>>>0)<($10>>>0);
  10500. if ($168) {
  10501. $171 = $12;
  10502. $172 = $$261633;
  10503. $173 = (($171) - ($172))|0;
  10504. $174 = $10;
  10505. $175 = $$301537;
  10506. $176 = (($174) - ($175))|0;
  10507. $177 = ($173>>>0)<($176>>>0);
  10508. $$sink17 = $177 ? $12 : $10;
  10509. $$sink16 = $177 ? $$261633 : $$301537;
  10510. $178 = $$sink17;
  10511. $179 = $$sink16;
  10512. $180 = (($178) - ($179))|0;
  10513. $181 = ($180>>>0)<($$301127>>>0);
  10514. $$$301127 = $181 ? $180 : $$301127;
  10515. _memcpy(($$261633|0),($$301537|0),($$$301127|0))|0;
  10516. $182 = (($$301537) + ($$$301127)|0);
  10517. $183 = (($$261633) + ($$$301127)|0);
  10518. $184 = (($$301127) - ($$$301127))|0;
  10519. $$241440 = $$261442;$$241631 = $183;$$281019 = $$301021;$$281125 = $184;$$281535 = $182;$$29 = $$31;$$291232 = $$311234;$$291338 = $$311340;
  10520. label = 54;
  10521. break;
  10522. } else {
  10523. $169 = $6 & 2;
  10524. $170 = ($169|0)==(0);
  10525. if ($170) {
  10526. $$271443 = $$261442;$$271634 = $$261633;$$311022 = $$301021;$$311128 = $$301127;$$311538 = $$301537;$$32 = $$31;$$321235 = $$311234;$$321341 = $$311340;
  10527. label = 58;
  10528. continue L46;
  10529. } else {
  10530. $$0960 = 1;$$891505 = $$261442;$$931084 = $$301021;$$931700 = $$261633;$$951192 = $$301127;$$951298 = $$311234;$$981605 = $$301537;$$99 = $$31;$$991408 = $$311340;$$sink30 = 38;
  10531. label = 243;
  10532. continue L46;
  10533. }
  10534. }
  10535. break;
  10536. }
  10537. case 58: {
  10538. label = 0;
  10539. $$0960 = -1;$$891505 = $$271443;$$931084 = $$311022;$$931700 = $$271634;$$951192 = $$311128;$$951298 = $$321235;$$981605 = $$311538;$$99 = $$32;$$991408 = $$321341;$$sink30 = 40;
  10540. label = 243;
  10541. continue L46;
  10542. break;
  10543. }
  10544. case 60: {
  10545. label = 0;
  10546. $$0960 = -1;$$891505 = $$281444;$$931084 = $$321023;$$931700 = $$281635;$$951192 = $$321129;$$951298 = $$331236;$$981605 = $$321539;$$99 = $$33;$$991408 = $$331342;$$sink30 = 10;
  10547. label = 243;
  10548. continue L46;
  10549. break;
  10550. }
  10551. case 64: {
  10552. label = 0;
  10553. $191 = $6 & 2;
  10554. $192 = ($191|0)==(0);
  10555. if ($192) {
  10556. $$01300$shrunk = 0;$$321448 = $$311447;$$321639 = $$311638;$$361027 = $$351026;$$361133 = $$351132;$$361543 = $$351542;$$37 = $$36;$$371240 = $$361239;$$371346 = $$361345;
  10557. label = 67;
  10558. } else {
  10559. $$0960 = 1;$$891505 = $$311447;$$931084 = $$351026;$$931700 = $$311638;$$951192 = $$351132;$$951298 = $$361239;$$981605 = $$351542;$$99 = $$36;$$991408 = $$361345;$$sink30 = 11;
  10560. label = 243;
  10561. continue L46;
  10562. }
  10563. break;
  10564. }
  10565. case 66: {
  10566. label = 0;
  10567. $194 = ((($$sink1719)) + 1|0);
  10568. $195 = HEAP8[$$sink1719>>0]|0;
  10569. $$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;
  10570. label = 67;
  10571. break;
  10572. }
  10573. case 73: {
  10574. label = 0;
  10575. $222 = $6 & 2;
  10576. $223 = ($222|0)==(0);
  10577. if ($223) {
  10578. $$01202$shrunk = 0;$$371453 = $$361452;$$371644 = $$361643;$$411032 = $$401031;$$411138 = $$401137;$$411548 = $$401547;$$42 = $$41;$$421245 = $$411244;$$421351 = $$411350;
  10579. label = 76;
  10580. } else {
  10581. $$0960 = 1;$$891505 = $$361452;$$931084 = $$401031;$$931700 = $$361643;$$951192 = $$401137;$$951298 = $$411244;$$981605 = $$401547;$$99 = $$41;$$991408 = $$411350;$$sink30 = 14;
  10582. label = 243;
  10583. continue L46;
  10584. }
  10585. break;
  10586. }
  10587. case 75: {
  10588. label = 0;
  10589. $225 = ((($$sink1722)) + 1|0);
  10590. $226 = HEAP8[$$sink1722>>0]|0;
  10591. $$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;
  10592. label = 76;
  10593. break;
  10594. }
  10595. case 86: {
  10596. label = 0;
  10597. $$0960 = -1;$$891505 = $$401456;$$931084 = $$441035;$$931700 = $$401647;$$951192 = $$441141;$$951298 = $$451248;$$981605 = $$441551;$$99 = $$45;$$991408 = $$451354;$$sink30 = 35;
  10598. label = 243;
  10599. continue L46;
  10600. break;
  10601. }
  10602. case 114: {
  10603. label = 0;
  10604. $450 = $6 & 2;
  10605. $451 = ($450|0)==(0);
  10606. if ($451) {
  10607. $$0980$shrunk = 0;$$441460 = $$431459;$$441651 = $$431650;$$481039 = $$471038;$$481145 = $$471144;$$481555 = $$471554;$$49 = $$48;$$491252 = $$481251;$$491358 = $$481357;
  10608. label = 117;
  10609. } else {
  10610. $$0960 = 1;$$891505 = $$431459;$$931084 = $$471038;$$931700 = $$431650;$$951192 = $$471144;$$951298 = $$481251;$$981605 = $$471554;$$99 = $$48;$$991408 = $$481357;$$sink30 = 16;
  10611. label = 243;
  10612. continue L46;
  10613. }
  10614. break;
  10615. }
  10616. case 116: {
  10617. label = 0;
  10618. $453 = ((($$sink1729)) + 1|0);
  10619. $454 = HEAP8[$$sink1729>>0]|0;
  10620. $$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;
  10621. label = 117;
  10622. break;
  10623. }
  10624. case 125: {
  10625. label = 0;
  10626. $$0960 = -1;$$891505 = $$461462;$$931084 = $$491040;$$931700 = $$461653;$$951192 = $$501147;$$951298 = $$511254;$$981605 = $$501557;$$99 = $$51;$$991408 = $$511360;$$sink30 = 17;
  10627. label = 243;
  10628. continue L46;
  10629. break;
  10630. }
  10631. case 128: {
  10632. label = 0;
  10633. $501 = $6 & 2;
  10634. $502 = ($501|0)==(0);
  10635. if ($502) {
  10636. $$0979$shrunk = 0;$$491465 = $$481464;$$491656 = $$481655;$$521043 = $$511042;$$531150 = $$521149;$$531560 = $$521559;$$54 = $$53;$$541257 = $$531256;$$541363 = $$531362;
  10637. label = 131;
  10638. } else {
  10639. $$0960 = 1;$$891505 = $$481464;$$931084 = $$511042;$$931700 = $$481655;$$951192 = $$521149;$$951298 = $$531256;$$981605 = $$521559;$$99 = $$53;$$991408 = $$531362;$$sink30 = 18;
  10640. label = 243;
  10641. continue L46;
  10642. }
  10643. break;
  10644. }
  10645. case 130: {
  10646. label = 0;
  10647. $504 = ((($$sink1732)) + 1|0);
  10648. $505 = HEAP8[$$sink1732>>0]|0;
  10649. $$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;
  10650. label = 131;
  10651. break;
  10652. }
  10653. case 136: {
  10654. label = 0;
  10655. $$0960 = -1;$$891505 = $$511467;$$931084 = $$541045;$$931700 = $$511658;$$951192 = $$551152;$$951298 = $$561259;$$981605 = $$551562;$$99 = $$56;$$991408 = $$561365;$$sink30 = 21;
  10656. label = 243;
  10657. continue L46;
  10658. break;
  10659. }
  10660. case 151: {
  10661. label = 0;
  10662. $570 = $6 & 2;
  10663. $571 = ($570|0)==(0);
  10664. if ($571) {
  10665. $$0971$shrunk = 0;$$571473 = $$561472;$$571664 = $$561663;$$601051 = $$591050;$$611158 = $$601157;$$611568 = $$601567;$$62 = $$61;$$621265 = $$611264;$$621371 = $$611370;
  10666. label = 154;
  10667. } else {
  10668. $$0960 = 1;$$891505 = $$561472;$$931084 = $$591050;$$931700 = $$561663;$$951192 = $$601157;$$951298 = $$611264;$$981605 = $$601567;$$99 = $$61;$$991408 = $$611370;$$sink30 = 23;
  10669. label = 243;
  10670. continue L46;
  10671. }
  10672. break;
  10673. }
  10674. case 153: {
  10675. label = 0;
  10676. $573 = ((($$sink1736)) + 1|0);
  10677. $574 = HEAP8[$$sink1736>>0]|0;
  10678. $$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;
  10679. label = 154;
  10680. break;
  10681. }
  10682. case 160: {
  10683. label = 0;
  10684. $610 = ($$591666>>>0)<($12>>>0);
  10685. if (!($610)) {
  10686. $$0960 = 2;$$891505 = $$591475;$$931084 = $$621053;$$931700 = $$591666;$$951192 = $$621159;$$951298 = $$641267;$$981605 = $$631570;$$99 = $$64;$$991408 = $$641373;$$sink30 = 24;
  10687. label = 243;
  10688. continue L46;
  10689. }
  10690. $611 = $$621159&255;
  10691. $612 = ((($$591666)) + 1|0);
  10692. HEAP8[$$591666>>0] = $611;
  10693. $$541470$ph = $$591475;$$541661$ph = $612;$$571048$ph = $$621053;$$581155$ph = $$621159;$$581565$ph = $$631570;$$59$ph = $$64;$$591262$ph = $$641267;$$591368$ph = $$641373;
  10694. label = 140;
  10695. break;
  10696. }
  10697. case 180: {
  10698. label = 0;
  10699. $694 = $6 & 2;
  10700. $695 = ($694|0)==(0);
  10701. if ($695) {
  10702. $$0959$shrunk = 0;$$631479 = $$621478;$$641671 = $$631670;$$661057 = $$651056;$$671164 = $$661163;$$681271 = $$671270;$$701577 = $$691576;$$71 = $$70;$$711380 = $$701379;
  10703. label = 183;
  10704. } else {
  10705. $$0960 = 1;$$891505 = $$621478;$$931084 = $$651056;$$931700 = $$631670;$$951192 = $$661163;$$951298 = $$671270;$$981605 = $$691576;$$99 = $$70;$$991408 = $$701379;$$sink30 = 25;
  10706. label = 243;
  10707. continue L46;
  10708. }
  10709. break;
  10710. }
  10711. case 182: {
  10712. label = 0;
  10713. $697 = ((($$sink1739)) + 1|0);
  10714. $698 = HEAP8[$$sink1739>>0]|0;
  10715. $$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;
  10716. label = 183;
  10717. break;
  10718. }
  10719. case 193: {
  10720. label = 0;
  10721. $735 = $6 & 2;
  10722. $736 = ($735|0)==(0);
  10723. if ($736) {
  10724. $$0952$shrunk = 0;$$681484 = $$671483;$$691676 = $$681675;$$711062 = $$701061;$$721169 = $$711168;$$731276 = $$721275;$$751582 = $$741581;$$76 = $$75;$$761385 = $$751384;
  10725. label = 196;
  10726. } else {
  10727. $$0960 = 1;$$891505 = $$671483;$$931084 = $$701061;$$931700 = $$681675;$$951192 = $$711168;$$951298 = $$721275;$$981605 = $$741581;$$99 = $$75;$$991408 = $$751384;$$sink30 = 26;
  10728. label = 243;
  10729. continue L46;
  10730. }
  10731. break;
  10732. }
  10733. case 195: {
  10734. label = 0;
  10735. $738 = ((($$sink1743)) + 1|0);
  10736. $739 = HEAP8[$$sink1743>>0]|0;
  10737. $$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;
  10738. label = 196;
  10739. break;
  10740. }
  10741. case 204: {
  10742. label = 0;
  10743. $782 = $6 & 2;
  10744. $783 = ($782|0)==(0);
  10745. if ($783) {
  10746. $$0950$shrunk = 0;$$721488 = $$711487;$$731680 = $$721679;$$741065 = $$731064;$$761173 = $$751172;$$761279 = $$751278;$$791586 = $$781585;$$80 = $$79;$$801389 = $$791388;
  10747. label = 207;
  10748. } else {
  10749. $$0960 = 1;$$891505 = $$711487;$$931084 = $$731064;$$931700 = $$721679;$$951192 = $$751172;$$951298 = $$751278;$$981605 = $$781585;$$99 = $$79;$$991408 = $$791388;$$sink30 = 27;
  10750. label = 243;
  10751. continue L46;
  10752. }
  10753. break;
  10754. }
  10755. case 206: {
  10756. label = 0;
  10757. $785 = ((($$sink1746)) + 1|0);
  10758. $786 = HEAP8[$$sink1746>>0]|0;
  10759. $$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;
  10760. label = 207;
  10761. break;
  10762. }
  10763. case 210: {
  10764. label = 0;
  10765. $$0960 = -1;$$891505 = $$731489;$$931084 = $$771068;$$931700 = $$761683;$$951192 = $$791176;$$951298 = $$791282;$$981605 = $$821589;$$99 = $$83;$$991408 = $$831392;$$sink30 = 37;
  10766. label = 243;
  10767. continue L46;
  10768. break;
  10769. }
  10770. case 213: {
  10771. label = 0;
  10772. $809 = ($$781685>>>0)<($12>>>0);
  10773. if (!($809)) {
  10774. $$0960 = 2;$$891505 = $$751491;$$931084 = $$791070;$$931700 = $$781685;$$951192 = $$811178;$$951298 = $$811284;$$981605 = $$841591;$$99 = $$85;$$991408 = $$851394;$$sink30 = 53;
  10775. label = 243;
  10776. continue L46;
  10777. }
  10778. $810 = (($$751491) + 1)|0;
  10779. $811 = (($$751491) - ($$791070))|0;
  10780. $812 = $811 & $$1753;
  10781. $813 = (($3) + ($812)|0);
  10782. $814 = HEAP8[$813>>0]|0;
  10783. $815 = ((($$781685)) + 1|0);
  10784. HEAP8[$$781685>>0] = $814;
  10785. $$741490 = $810;$$771684 = $815;$$781069 = $$791070;$$801177 = $$811178;$$801283 = $$811284;$$831590 = $$841591;$$84 = $$85;$$841393 = $$851394;
  10786. label = 212;
  10787. break;
  10788. }
  10789. case 226: {
  10790. label = 0;
  10791. $849 = $$90 & 7;
  10792. $850 = $$901399 >>> $849;
  10793. $851 = (($$90) - ($849))|0;
  10794. $$811497 = $$801496;$$851076 = $$841075;$$851692 = $$841691;$$871184 = 0;$$871290 = $$861289;$$901597 = $$891596;$$91 = $851;$$911400 = $850;
  10795. label = 227;
  10796. break;
  10797. }
  10798. case 231: {
  10799. label = 0;
  10800. $856 = $6 & 2;
  10801. $857 = ($856|0)==(0);
  10802. if ($857) {
  10803. $$0947$shrunk = 0;$$841500 = $$831499;$$881079 = $$871078;$$881695 = $$871694;$$901187 = $$891186;$$901293 = $$891292;$$931600 = $$921599;$$94 = $$93;$$941403 = $$931402;
  10804. label = 234;
  10805. } else {
  10806. $$0960 = 1;$$891505 = $$831499;$$931084 = $$871078;$$931700 = $$871694;$$951192 = $$891186;$$951298 = $$891292;$$981605 = $$921599;$$99 = $$93;$$991408 = $$931402;$$sink30 = 41;
  10807. label = 243;
  10808. continue L46;
  10809. }
  10810. break;
  10811. }
  10812. case 233: {
  10813. label = 0;
  10814. $859 = ((($$sink1750)) + 1|0);
  10815. $860 = HEAP8[$$sink1750>>0]|0;
  10816. $$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;
  10817. label = 234;
  10818. break;
  10819. }
  10820. case 237: {
  10821. label = 0;
  10822. $869 = $6 & 2;
  10823. $870 = ($869|0)==(0);
  10824. if ($870) {
  10825. $$0948 = 0;$$871503 = $$861502;$$911082 = $$901081;$$911698 = $$901697;$$931190 = $$921189;$$931296 = $$921295;$$961603 = $$951602;$$97 = $$96;$$971406 = $$961405;
  10826. label = 241;
  10827. continue L46;
  10828. } else {
  10829. $$0960 = 1;$$891505 = $$861502;$$931084 = $$901081;$$931700 = $$901697;$$951192 = $$921189;$$951298 = $$921295;$$981605 = $$951602;$$99 = $$96;$$991408 = $$961405;$$sink30 = 42;
  10830. label = 243;
  10831. continue L46;
  10832. }
  10833. break;
  10834. }
  10835. case 241: {
  10836. label = 0;
  10837. $878 = ((($0)) + 16|0);
  10838. $879 = HEAP32[$878>>2]|0;
  10839. $880 = $879 << 8;
  10840. $881 = $880 | $$0948;
  10841. HEAP32[$878>>2] = $881;
  10842. $882 = (($$931190) + 1)|0;
  10843. $$811497 = $$871503;$$851076 = $$911082;$$851692 = $$911698;$$871184 = $882;$$871290 = $$931296;$$901597 = $$961603;$$91 = $$97;$$911400 = $$971406;
  10844. label = 227;
  10845. break;
  10846. }
  10847. case 242: {
  10848. label = 0;
  10849. $$0960 = 0;$$891505 = $$881504;$$931084 = $$921083;$$931700 = $$921699;$$951192 = $$941191;$$951298 = $$941297;$$981605 = $$971604;$$99 = $$98;$$991408 = $$981407;$$sink30 = 34;
  10850. label = 243;
  10851. continue L46;
  10852. break;
  10853. }
  10854. case 243: {
  10855. label = 0;
  10856. HEAP32[$0>>2] = $$sink30;
  10857. $$100 = $$99;$$1001409 = $$991408;$$1961 = $$0960;$$901506 = $$891505;$$941085 = $$931084;$$941701 = $$931700;$$961193 = $$951192;$$961299 = $$951298;$$991606 = $$981605;
  10858. label = 244;
  10859. continue L46;
  10860. break;
  10861. }
  10862. case 244: {
  10863. label = 0;
  10864. HEAP32[$24>>2] = $$100;
  10865. HEAP32[$26>>2] = $$1001409;
  10866. HEAP32[$28>>2] = $$941085;
  10867. HEAP32[$30>>2] = $$961193;
  10868. HEAP32[$32>>2] = $$961299;
  10869. HEAP32[$34>>2] = $$901506;
  10870. $883 = $$991606;
  10871. $884 = $1;
  10872. $885 = (($883) - ($884))|0;
  10873. HEAP32[$2>>2] = $885;
  10874. $886 = $$941701;
  10875. $887 = $4;
  10876. $888 = (($886) - ($887))|0;
  10877. HEAP32[$5>>2] = $888;
  10878. $889 = $6 & 9;
  10879. $890 = ($889|0)!=(0);
  10880. $891 = ($$1961|0)>(-1);
  10881. $or$cond29 = $890 & $891;
  10882. if ($or$cond29) {
  10883. break L46;
  10884. } else {
  10885. $$0951 = $$1961;
  10886. label = 258;
  10887. break L46;
  10888. }
  10889. break;
  10890. }
  10891. }
  10892. switch (label|0) {
  10893. case 19: {
  10894. label = 0;
  10895. $$01413 = $$01413$shrunk&255;
  10896. $78 = $$01413 << $$8;
  10897. $79 = $78 | $$81317;
  10898. $80 = (($$8) + 8)|0;
  10899. $81 = ($80>>>0)<(3);
  10900. if ($81) {
  10901. $$11417 = $$31419;$$11608 = $$31610;$$51512 = $$71514;$$6 = $80;$$61103 = $$81105;$$61209 = $$81211;$$61315 = $79;$$6997 = $$8999;
  10902. label = 15;
  10903. } else {
  10904. $$41420 = $$31419;$$41611 = $$31610;$$81515 = $$71514;$$9 = $80;$$91000 = $$8999;$$91106 = $$81105;$$91212 = $$81211;$$91318 = $79;
  10905. label = 20;
  10906. }
  10907. break;
  10908. }
  10909. case 33: {
  10910. label = 0;
  10911. $$01411 = $$01411$shrunk&255;
  10912. $109 = $$01411 << $$17;
  10913. $110 = $109 | $$171326;
  10914. $111 = (($$17) + 8)|0;
  10915. $112 = ($$17>>>0)>(4294967287);
  10916. if ($112) {
  10917. $$101426 = $$121428;$$101617 = $$121619;$$141111 = $$161113;$$141521 = $$161523;$$15 = $111;$$151006 = $$171008;$$151218 = $$171220;$$151324 = $110;
  10918. label = 29;
  10919. } else {
  10920. $$131429 = $$121428;$$131620 = $$121619;$$171114 = $$161113;$$171524 = $$161523;$$18 = $111;$$181009 = $$171008;$$181221 = $$171220;$$181327 = $110;
  10921. label = 34;
  10922. }
  10923. break;
  10924. }
  10925. case 50: {
  10926. label = 0;
  10927. $$01410 = $$01410$shrunk&255;
  10928. $155 = $$01410 << $$26;
  10929. $156 = $155 | $$261335;
  10930. $157 = (($$26) + 8)|0;
  10931. $158 = ($$26>>>0)>(4294967287);
  10932. if ($158) {
  10933. $$191435 = $$211437;$$191626 = $$211628;$$231120 = $$251122;$$231530 = $$251532;$$24 = $157;$$241015 = $$261017;$$241227 = $$261229;$$241333 = $156;
  10934. label = 46;
  10935. } else {
  10936. $$221438 = $$211437;$$221629 = $$211628;$$261123 = $$251122;$$261533 = $$251532;$$27 = $157;$$271230 = $$261229;$$271336 = $156;
  10937. label = 51;
  10938. }
  10939. break;
  10940. }
  10941. case 67: {
  10942. label = 0;
  10943. $$01300 = $$01300$shrunk&255;
  10944. $196 = $$01300 << $$37;
  10945. $197 = $196 | $$371346;
  10946. $198 = (($$37) + 8)|0;
  10947. $199 = (5303 + ($$361133)|0);
  10948. $200 = HEAP8[$199>>0]|0;
  10949. $201 = $200 << 24 >> 24;
  10950. $202 = ($198>>>0)<($201>>>0);
  10951. if ($202) {
  10952. $$301446 = $$321448;$$301637 = $$321639;$$341025 = $$361027;$$341131 = $$361133;$$341541 = $$361543;$$35 = $198;$$351238 = $$371240;$$351344 = $197;
  10953. label = 63;
  10954. } else {
  10955. $$331449 = $$321448;$$331640 = $$321639;$$371028 = $$361027;$$371134 = $$361133;$$371544 = $$361543;$$38 = $198;$$381241 = $$371240;$$381347 = $197;
  10956. label = 68;
  10957. }
  10958. break;
  10959. }
  10960. case 76: {
  10961. label = 0;
  10962. $$01202 = $$01202$shrunk&255;
  10963. $227 = $$01202 << $$42;
  10964. $228 = $227 | $$421351;
  10965. $229 = (($$42) + 8)|0;
  10966. $230 = ($229>>>0)<(3);
  10967. if ($230) {
  10968. $$351451 = $$371453;$$351642 = $$371644;$$391030 = $$411032;$$391136 = $$411138;$$391546 = $$411548;$$40 = $229;$$401243 = $$421245;$$401349 = $228;
  10969. label = 72;
  10970. } else {
  10971. $$381454 = $$371453;$$381645 = $$371644;$$421033 = $$411032;$$421139 = $$411138;$$421549 = $$411548;$$43 = $229;$$431246 = $$421245;$$431352 = $228;
  10972. label = 77;
  10973. }
  10974. break;
  10975. }
  10976. case 117: {
  10977. label = 0;
  10978. $$0980 = $$0980$shrunk&255;
  10979. $455 = $$0980 << $$49;
  10980. $456 = $455 | $$491358;
  10981. $457 = (($$49) + 8)|0;
  10982. $458 = ($457>>>0)<(15);
  10983. if ($458) {
  10984. $$421458 = $$441460;$$421649 = $$441651;$$461037 = $$481039;$$461143 = $$481145;$$461553 = $$481555;$$47 = $457;$$471250 = $$491252;$$471356 = $456;
  10985. label = 108;
  10986. } else {
  10987. $$451461 = $$441460;$$451652 = $$441651;$$491146 = $$481145;$$491556 = $$481555;$$50 = $457;$$501253 = $$491252;$$501359 = $456;
  10988. label = 119;
  10989. }
  10990. break;
  10991. }
  10992. case 131: {
  10993. label = 0;
  10994. $$0979 = $$0979$shrunk&255;
  10995. $506 = $$0979 << $$54;
  10996. $507 = $506 | $$541363;
  10997. $508 = (($$54) + 8)|0;
  10998. $509 = ($508>>>0)<($$541257>>>0);
  10999. if ($509) {
  11000. $$471463 = $$491465;$$471654 = $$491656;$$501041 = $$521043;$$511148 = $$531150;$$511558 = $$531560;$$52 = $508;$$521255 = $$541257;$$521361 = $507;
  11001. label = 127;
  11002. } else {
  11003. $$501466 = $$491465;$$501657 = $$491656;$$531044 = $$521043;$$541151 = $$531150;$$541561 = $$531560;$$55 = $508;$$551258 = $$541257;$$551364 = $507;
  11004. label = 132;
  11005. }
  11006. break;
  11007. }
  11008. case 154: {
  11009. label = 0;
  11010. $$0971 = $$0971$shrunk&255;
  11011. $575 = $$0971 << $$62;
  11012. $576 = $575 | $$621371;
  11013. $577 = (($$62) + 8)|0;
  11014. $578 = ($577>>>0)<(15);
  11015. if ($578) {
  11016. $$551471 = $$571473;$$551662 = $$571664;$$581049 = $$601051;$$591156 = $$611158;$$591566 = $$611568;$$60 = $577;$$601263 = $$621265;$$601369 = $576;
  11017. label = 145;
  11018. } else {
  11019. $$581474 = $$571473;$$581665 = $$571664;$$611052 = $$601051;$$621569 = $$611568;$$63 = $577;$$631266 = $$621265;$$631372 = $576;
  11020. label = 156;
  11021. }
  11022. break;
  11023. }
  11024. case 183: {
  11025. label = 0;
  11026. $$0959 = $$0959$shrunk&255;
  11027. $699 = $$0959 << $$71;
  11028. $700 = $699 | $$711380;
  11029. $701 = (($$71) + 8)|0;
  11030. $702 = ($701>>>0)<($$681271>>>0);
  11031. if ($702) {
  11032. $$611477 = $$631479;$$621669 = $$641671;$$641055 = $$661057;$$651162 = $$671164;$$661269 = $$681271;$$681575 = $$701577;$$69 = $701;$$691378 = $700;
  11033. label = 179;
  11034. } else {
  11035. $$641480 = $$631479;$$651672 = $$641671;$$671058 = $$661057;$$681165 = $$671164;$$691272 = $$681271;$$711578 = $$701577;$$72 = $701;$$721381 = $700;
  11036. label = 184;
  11037. }
  11038. break;
  11039. }
  11040. case 196: {
  11041. label = 0;
  11042. $$0952 = $$0952$shrunk&255;
  11043. $740 = $$0952 << $$76;
  11044. $741 = $740 | $$761385;
  11045. $742 = (($$76) + 8)|0;
  11046. $743 = ($742>>>0)<(15);
  11047. if ($743) {
  11048. $$661482 = $$681484;$$671674 = $$691676;$$691060 = $$711062;$$701167 = $$721169;$$711274 = $$731276;$$731580 = $$751582;$$74 = $742;$$741383 = $741;
  11049. label = 187;
  11050. } else {
  11051. $$691485 = $$681484;$$701677 = $$691676;$$731170 = $$721169;$$761583 = $$751582;$$77 = $742;$$771386 = $741;
  11052. label = 198;
  11053. }
  11054. break;
  11055. }
  11056. case 207: {
  11057. label = 0;
  11058. $$0950 = $$0950$shrunk&255;
  11059. $787 = $$0950 << $$80;
  11060. $788 = $787 | $$801389;
  11061. $789 = (($$80) + 8)|0;
  11062. $790 = ($789>>>0)<($$761279>>>0);
  11063. if ($790) {
  11064. $$701486 = $$721488;$$711678 = $$731680;$$721063 = $$741065;$$741171 = $$761173;$$741277 = $$761279;$$771584 = $$791586;$$78 = $789;$$781387 = $788;
  11065. label = 203;
  11066. } else {
  11067. $$741681 = $$731680;$$751066 = $$741065;$$771174 = $$761173;$$771280 = $$761279;$$801587 = $$791586;$$81 = $789;$$811390 = $788;
  11068. label = 208;
  11069. }
  11070. break;
  11071. }
  11072. case 227: {
  11073. label = 0;
  11074. $852 = ($$871184>>>0)<(4);
  11075. if (!($852)) {
  11076. $$881504 = $$811497;$$921083 = $$851076;$$921699 = $$851692;$$941191 = $$871184;$$941297 = $$871290;$$971604 = $$901597;$$98 = $$91;$$981407 = $$911400;
  11077. label = 242;
  11078. continue L46;
  11079. }
  11080. $853 = ($$91|0)==(0);
  11081. if (!($853)) {
  11082. $854 = ($$91>>>0)<(8);
  11083. if ($854) {
  11084. $$821498 = $$811497;$$861077 = $$851076;$$861693 = $$851692;$$881185 = $$871184;$$881291 = $$871290;$$911598 = $$901597;$$92 = $$91;$$921401 = $$911400;
  11085. label = 230;
  11086. break;
  11087. } else {
  11088. $$851501 = $$811497;$$891080 = $$851076;$$891696 = $$851692;$$911188 = $$871184;$$911294 = $$871290;$$941601 = $$901597;$$95 = $$91;$$951404 = $$911400;
  11089. label = 235;
  11090. break;
  11091. }
  11092. }
  11093. $868 = ($$901597>>>0)<($10>>>0);
  11094. if (!($868)) {
  11095. $$861502 = $$811497;$$901081 = $$851076;$$901697 = $$851692;$$921189 = $$871184;$$921295 = $$871290;$$951602 = $$901597;$$96 = 0;$$961405 = $$911400;
  11096. label = 237;
  11097. continue L46;
  11098. }
  11099. $875 = ((($$901597)) + 1|0);
  11100. $876 = HEAP8[$$901597>>0]|0;
  11101. $877 = $876&255;
  11102. $$0948 = $877;$$871503 = $$811497;$$911082 = $$851076;$$911698 = $$851692;$$931190 = $$871184;$$931296 = $$871290;$$961603 = $875;$$97 = 0;$$971406 = $$911400;
  11103. label = 241;
  11104. continue L46;
  11105. break;
  11106. }
  11107. case 234: {
  11108. label = 0;
  11109. $$0947 = $$0947$shrunk&255;
  11110. $861 = $$0947 << $$94;
  11111. $862 = $861 | $$941403;
  11112. $863 = (($$94) + 8)|0;
  11113. $864 = ($$94>>>0)>(4294967287);
  11114. if ($864) {
  11115. $$821498 = $$841500;$$861077 = $$881079;$$861693 = $$881695;$$881185 = $$901187;$$881291 = $$901293;$$911598 = $$931600;$$92 = $863;$$921401 = $862;
  11116. label = 230;
  11117. } else {
  11118. $$851501 = $$841500;$$891080 = $$881079;$$891696 = $$881695;$$911188 = $$901187;$$911294 = $$901293;$$941601 = $$931600;$$95 = $863;$$951404 = $862;
  11119. label = 235;
  11120. }
  11121. break;
  11122. }
  11123. }
  11124. L119: do {
  11125. if ((label|0) == 15) {
  11126. label = 0;
  11127. $72 = ($$51512>>>0)<($10>>>0);
  11128. if ($72) {
  11129. $$31419$ph = $$11417;$$31610$ph = $$11608;$$8$ph = $$6;$$81105$ph = $$61103;$$81211$ph = $$61209;$$81317$ph = $$61315;$$8999$ph = $$6997;$$sink1710 = $$51512;
  11130. label = 18;
  11131. continue L46;
  11132. } else {
  11133. $$21418 = $$11417;$$21609 = $$11608;$$61513 = $$51512;$$7 = $$6;$$71104 = $$61103;$$71210 = $$61209;$$71316 = $$61315;$$7998 = $$6997;
  11134. label = 16;
  11135. continue L46;
  11136. }
  11137. }
  11138. else if ((label|0) == 20) {
  11139. label = 0;
  11140. $82 = $$91318 & 7;
  11141. $83 = ((($0)) + 20|0);
  11142. HEAP32[$83>>2] = $82;
  11143. $84 = $$91318 >>> 3;
  11144. $85 = (($$9) + -3)|0;
  11145. $86 = $82 >>> 1;
  11146. $87 = ((($0)) + 24|0);
  11147. HEAP32[$87>>2] = $86;
  11148. $trunc = $86&255;
  11149. $trunc$clear = $trunc & 3;
  11150. switch ($trunc$clear<<24>>24) {
  11151. case 0: {
  11152. $$121519 = $$81515;$$13 = $85;$$131004 = $$91000;$$131216 = $$91212;$$131322 = $84;$$81424 = $$41420;$$81615 = $$41611;
  11153. label = 25;
  11154. continue L46;
  11155. break;
  11156. }
  11157. case 3: {
  11158. $$281444 = $$41420;$$281635 = $$41611;$$321023 = $$91000;$$321129 = $$91106;$$321539 = $$81515;$$33 = $85;$$331236 = $$91212;$$331342 = $84;
  11159. label = 60;
  11160. continue L46;
  11161. break;
  11162. }
  11163. case 1: {
  11164. break;
  11165. }
  11166. default: {
  11167. $$291445 = $$41420;$$291636 = $$41611;$$331024 = $$91000;$$331130 = 0;$$331540 = $$81515;$$34 = $85;$$341237 = $$91212;$$341343 = $84;
  11168. label = 61;
  11169. break L119;
  11170. }
  11171. }
  11172. $240 = ((($0)) + 44|0);
  11173. HEAP32[$240>>2] = 288;
  11174. $241 = ((($0)) + 48|0);
  11175. HEAP32[$241>>2] = 32;
  11176. $242 = ((($0)) + 3552|0);
  11177. ;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;
  11178. $scevgep19611962 = ((($0)) + 64|0);
  11179. _memset(($scevgep19611962|0),8,144)|0;
  11180. $scevgep1959 = ((($0)) + 208|0);
  11181. dest=$scevgep1959; stop=dest+112|0; do { HEAP8[dest>>0]=9|0; dest=dest+1|0; } while ((dest|0) < (stop|0));
  11182. $scevgep1957 = ((($0)) + 320|0);
  11183. dest=$scevgep1957; stop=dest+24|0; do { HEAP8[dest>>0]=7|0; dest=dest+1|0; } while ((dest|0) < (stop|0));
  11184. $scevgep1955 = ((($0)) + 344|0);
  11185. $243 = $scevgep1955;
  11186. $244 = $243;
  11187. 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;
  11188. $245 = (($243) + 4)|0;
  11189. $246 = $245;
  11190. 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;
  11191. $$391455 = $$41420;$$391646 = $$41611;$$431034 = $$91000;$$431140 = $$91106;$$431550 = $$81515;$$44 = $85;$$441247 = $$91212;$$441353 = $84;
  11192. label = 80;
  11193. }
  11194. else if ((label|0) == 230) {
  11195. label = 0;
  11196. $855 = ($$911598>>>0)<($10>>>0);
  11197. if ($855) {
  11198. $$841500$ph = $$821498;$$881079$ph = $$861077;$$881695$ph = $$861693;$$901187$ph = $$881185;$$901293$ph = $$881291;$$94$ph = $$92;$$941403$ph = $$921401;$$sink1750 = $$911598;
  11199. label = 233;
  11200. continue L46;
  11201. } else {
  11202. $$831499 = $$821498;$$871078 = $$861077;$$871694 = $$861693;$$891186 = $$881185;$$891292 = $$881291;$$921599 = $$911598;$$93 = $$92;$$931402 = $$921401;
  11203. label = 231;
  11204. continue L46;
  11205. }
  11206. }
  11207. else if ((label|0) == 235) {
  11208. label = 0;
  11209. $865 = $$951404 & 255;
  11210. $866 = $$951404 >>> 8;
  11211. $867 = (($$95) + -8)|0;
  11212. $$0948 = $865;$$871503 = $$851501;$$911082 = $$891080;$$911698 = $$891696;$$931190 = $$911188;$$931296 = $$911294;$$961603 = $$941601;$$97 = $867;$$971406 = $866;
  11213. label = 241;
  11214. continue L46;
  11215. }
  11216. } while(0);
  11217. L125: while(1) {
  11218. L126: switch (label|0) {
  11219. case 26: {
  11220. label = 0;
  11221. $100 = ($$131110>>>0)<(4);
  11222. if (!($100)) {
  11223. $127 = ((($0)) + 10528|0);
  11224. $128 = HEAP8[$127>>0]|0;
  11225. $129 = $128&255;
  11226. $130 = ((($0)) + 10529|0);
  11227. $131 = HEAP8[$130>>0]|0;
  11228. $132 = $131&255;
  11229. $133 = $132 << 8;
  11230. $134 = $133 | $129;
  11231. $135 = ((($0)) + 10530|0);
  11232. $136 = HEAP8[$135>>0]|0;
  11233. $137 = $136&255;
  11234. $138 = ((($0)) + 10531|0);
  11235. $139 = HEAP8[$138>>0]|0;
  11236. $140 = $139&255;
  11237. $141 = $140 << 8;
  11238. $142 = $141 | $137;
  11239. $143 = $142 ^ 65535;
  11240. $144 = ($134|0)==($143|0);
  11241. if ($144) {
  11242. $$181434 = $$91425;$$181625 = $$91616;$$221119 = $134;$$221529 = $$131520;$$23 = $$14;$$231014 = $$141005;$$231226 = $$141217;$$231332 = $$141323;
  11243. label = 44;
  11244. continue L125;
  11245. } else {
  11246. $$171433 = $$91425;$$171624 = $$91616;$$211118 = $134;$$211528 = $$131520;$$22 = $$14;$$221013 = $$141005;$$221225 = $$141217;$$221331 = $$141323;
  11247. label = 43;
  11248. continue L46;
  11249. }
  11250. }
  11251. $101 = ($$14|0)==(0);
  11252. if (!($101)) {
  11253. $102 = ($$14>>>0)<(8);
  11254. if ($102) {
  11255. $$101426 = $$91425;$$101617 = $$91616;$$141111 = $$131110;$$141521 = $$131520;$$15 = $$14;$$151006 = $$141005;$$151218 = $$141217;$$151324 = $$141323;
  11256. label = 29;
  11257. continue L125;
  11258. } else {
  11259. $$131429 = $$91425;$$131620 = $$91616;$$171114 = $$131110;$$171524 = $$131520;$$18 = $$14;$$181009 = $$141005;$$181221 = $$141217;$$181327 = $$141323;
  11260. label = 34;
  11261. continue L125;
  11262. }
  11263. }
  11264. $117 = ($$131520>>>0)<($10>>>0);
  11265. if (!($117)) {
  11266. $$141430 = $$91425;$$141621 = $$91616;$$181115 = $$131110;$$181525 = $$131520;$$19 = 0;$$191010 = $$141005;$$191222 = $$141217;$$191328 = $$141323;
  11267. label = 36;
  11268. continue L46;
  11269. }
  11270. $123 = ((($$131520)) + 1|0);
  11271. $124 = HEAP8[$$131520>>0]|0;
  11272. $125 = (((($0)) + 10528|0) + ($$131110)|0);
  11273. HEAP8[$125>>0] = $124;
  11274. $$161432 = $$91425;$$161623 = $$91616;$$201117 = $$131110;$$201527 = $123;$$21 = 0;$$211012 = $$141005;$$211224 = $$141217;$$211330 = $$141323;
  11275. label = 41;
  11276. continue L125;
  11277. break;
  11278. }
  11279. case 29: {
  11280. label = 0;
  11281. $103 = ($$141521>>>0)<($10>>>0);
  11282. if ($103) {
  11283. $$121428$ph = $$101426;$$121619$ph = $$101617;$$161113$ph = $$141111;$$17$ph = $$15;$$171008$ph = $$151006;$$171220$ph = $$151218;$$171326$ph = $$151324;$$sink1713 = $$141521;
  11284. label = 32;
  11285. continue L46;
  11286. } else {
  11287. $$111427 = $$101426;$$111618 = $$101617;$$151112 = $$141111;$$151522 = $$141521;$$16 = $$15;$$161007 = $$151006;$$161219 = $$151218;$$161325 = $$151324;
  11288. label = 30;
  11289. continue L46;
  11290. }
  11291. break;
  11292. }
  11293. case 34: {
  11294. label = 0;
  11295. $113 = $$181327&255;
  11296. $114 = (((($0)) + 10528|0) + ($$171114)|0);
  11297. HEAP8[$114>>0] = $113;
  11298. $115 = $$181327 >>> 8;
  11299. $116 = (($$18) + -8)|0;
  11300. $$161432 = $$131429;$$161623 = $$131620;$$201117 = $$171114;$$201527 = $$171524;$$21 = $116;$$211012 = $$181009;$$211224 = $$181221;$$211330 = $115;
  11301. label = 41;
  11302. continue L125;
  11303. break;
  11304. }
  11305. case 41: {
  11306. label = 0;
  11307. $126 = (($$201117) + 1)|0;
  11308. $$131110 = $126;$$131520 = $$201527;$$14 = $$21;$$141005 = $$211012;$$141217 = $$211224;$$141323 = $$211330;$$91425 = $$161432;$$91616 = $$161623;
  11309. label = 26;
  11310. continue L125;
  11311. break;
  11312. }
  11313. case 44: {
  11314. label = 0;
  11315. $145 = ($$221119|0)!=(0);
  11316. $146 = ($$23|0)!=(0);
  11317. $147 = $145 & $146;
  11318. if (!($147)) {
  11319. $$241440 = $$181434;$$241631 = $$181625;$$281019 = $$231014;$$281125 = $$221119;$$281535 = $$221529;$$29 = $$23;$$291232 = $$231226;$$291338 = $$231332;
  11320. label = 54;
  11321. continue L125;
  11322. }
  11323. $148 = ($$23>>>0)<(8);
  11324. if ($148) {
  11325. $$191435 = $$181434;$$191626 = $$181625;$$231120 = $$221119;$$231530 = $$221529;$$24 = $$23;$$241015 = $$231014;$$241227 = $$231226;$$241333 = $$231332;
  11326. label = 46;
  11327. continue L125;
  11328. } else {
  11329. $$221438 = $$181434;$$221629 = $$181625;$$261123 = $$221119;$$261533 = $$221529;$$27 = $$23;$$271230 = $$231226;$$271336 = $$231332;
  11330. label = 51;
  11331. continue L125;
  11332. }
  11333. break;
  11334. }
  11335. case 46: {
  11336. label = 0;
  11337. $149 = ($$231530>>>0)<($10>>>0);
  11338. if ($149) {
  11339. $$211437$ph = $$191435;$$211628$ph = $$191626;$$251122$ph = $$231120;$$26$ph = $$24;$$261017$ph = $$241015;$$261229$ph = $$241227;$$261335$ph = $$241333;$$sink1716 = $$231530;
  11340. label = 49;
  11341. continue L46;
  11342. } else {
  11343. $$201436 = $$191435;$$201627 = $$191626;$$241121 = $$231120;$$241531 = $$231530;$$25 = $$24;$$251016 = $$241015;$$251228 = $$241227;$$251334 = $$241333;
  11344. label = 47;
  11345. continue L46;
  11346. }
  11347. break;
  11348. }
  11349. case 51: {
  11350. label = 0;
  11351. $159 = $$271336 & 255;
  11352. $160 = $$271336 >>> 8;
  11353. $161 = (($$27) + -8)|0;
  11354. $$231439 = $$221438;$$231630 = $$221629;$$271018 = $159;$$271124 = $$261123;$$271534 = $$261533;$$28 = $161;$$281231 = $$271230;$$281337 = $160;
  11355. label = 52;
  11356. continue L46;
  11357. break;
  11358. }
  11359. case 54: {
  11360. label = 0;
  11361. $166 = ($$281125|0)==(0);
  11362. if ($166) {
  11363. $$761492 = $$241440;$$801071 = $$281019;$$801687 = $$241631;$$821285 = $$291232;$$831180 = 0;$$851592 = $$281535;$$86 = $$29;$$861395 = $$291338;
  11364. label = 220;
  11365. break L125;
  11366. } else {
  11367. $$251441 = $$241440;$$251632 = $$241631;$$291020 = $$281019;$$291126 = $$281125;$$291536 = $$281535;$$30 = $$29;$$301233 = $$291232;$$301339 = $$291338;
  11368. label = 55;
  11369. continue L46;
  11370. }
  11371. break;
  11372. }
  11373. case 61: {
  11374. label = 0;
  11375. $185 = ($$331130>>>0)<(3);
  11376. if ($185) {
  11377. $186 = (5303 + ($$331130)|0);
  11378. $187 = HEAP8[$186>>0]|0;
  11379. $188 = $187 << 24 >> 24;
  11380. $189 = ($$34>>>0)<($188>>>0);
  11381. if ($189) {
  11382. $$301446 = $$291445;$$301637 = $$291636;$$341025 = $$331024;$$341131 = $$331130;$$341541 = $$331540;$$35 = $$34;$$351238 = $$341237;$$351344 = $$341343;
  11383. label = 63;
  11384. continue L125;
  11385. } else {
  11386. $$331449 = $$291445;$$331640 = $$291636;$$371028 = $$331024;$$371134 = $$331130;$$371544 = $$331540;$$38 = $$34;$$381241 = $$341237;$$381347 = $$341343;
  11387. label = 68;
  11388. continue L125;
  11389. }
  11390. } else {
  11391. $216 = ((($0)) + 7040|0);
  11392. _memset(($216|0),0,288)|0;
  11393. $$341450 = $$291445;$$341641 = $$291636;$$381029 = $$331024;$$381135 = 0;$$381545 = $$331540;$$39 = $$34;$$391242 = $$341237;$$391348 = $$341343;
  11394. label = 70;
  11395. break;
  11396. }
  11397. break;
  11398. }
  11399. case 63: {
  11400. label = 0;
  11401. $190 = ($$341541>>>0)<($10>>>0);
  11402. if ($190) {
  11403. $$321448$ph = $$301446;$$321639$ph = $$301637;$$361027$ph = $$341025;$$361133$ph = $$341131;$$37$ph = $$35;$$371240$ph = $$351238;$$371346$ph = $$351344;$$sink1719 = $$341541;
  11404. label = 66;
  11405. continue L46;
  11406. } else {
  11407. $$311447 = $$301446;$$311638 = $$301637;$$351026 = $$341025;$$351132 = $$341131;$$351542 = $$341541;$$36 = $$35;$$361239 = $$351238;$$361345 = $$351344;
  11408. label = 64;
  11409. continue L46;
  11410. }
  11411. break;
  11412. }
  11413. case 68: {
  11414. label = 0;
  11415. $203 = (5303 + ($$371134)|0);
  11416. $204 = HEAP8[$203>>0]|0;
  11417. $205 = $204 << 24 >> 24;
  11418. $206 = 1 << $205;
  11419. $207 = (($206) + -1)|0;
  11420. $208 = $207 & $$381347;
  11421. $209 = (((($0)) + 44|0) + ($$371134<<2)|0);
  11422. $210 = $$381347 >>> $205;
  11423. $211 = (($$38) - ($205))|0;
  11424. $212 = (104 + ($$371134<<2)|0);
  11425. $213 = HEAP32[$212>>2]|0;
  11426. $214 = (($208) + ($213))|0;
  11427. HEAP32[$209>>2] = $214;
  11428. $215 = (($$371134) + 1)|0;
  11429. $$291445 = $$331449;$$291636 = $$331640;$$331024 = $$371028;$$331130 = $215;$$331540 = $$371544;$$34 = $211;$$341237 = $$381241;$$341343 = $210;
  11430. label = 61;
  11431. continue L125;
  11432. break;
  11433. }
  11434. case 72: {
  11435. label = 0;
  11436. $221 = ($$391546>>>0)<($10>>>0);
  11437. if ($221) {
  11438. $$371453$ph = $$351451;$$371644$ph = $$351642;$$411032$ph = $$391030;$$411138$ph = $$391136;$$42$ph = $$40;$$421245$ph = $$401243;$$421351$ph = $$401349;$$sink1722 = $$391546;
  11439. label = 75;
  11440. continue L46;
  11441. } else {
  11442. $$361452 = $$351451;$$361643 = $$351642;$$401031 = $$391030;$$401137 = $$391136;$$401547 = $$391546;$$41 = $$40;$$411244 = $$401243;$$411350 = $$401349;
  11443. label = 73;
  11444. continue L46;
  11445. }
  11446. break;
  11447. }
  11448. case 77: {
  11449. label = 0;
  11450. $231 = $$431352 & 7;
  11451. $232 = $$431352 >>> 3;
  11452. $233 = (($$43) + -3)|0;
  11453. $234 = $231&255;
  11454. $235 = (7816 + ($$421139)|0);
  11455. $236 = HEAP8[$235>>0]|0;
  11456. $237 = $236&255;
  11457. $238 = (((($0)) + 7040|0) + ($237)|0);
  11458. HEAP8[$238>>0] = $234;
  11459. $239 = (($$421139) + 1)|0;
  11460. $$341450 = $$381454;$$341641 = $$381645;$$381029 = $$421033;$$381135 = $239;$$381545 = $$421549;$$39 = $233;$$391242 = $$431246;$$391348 = $232;
  11461. label = 70;
  11462. break;
  11463. }
  11464. case 80: {
  11465. label = 0;
  11466. $247 = ((($0)) + 24|0);
  11467. $248 = HEAP32[$247>>2]|0;
  11468. $249 = ($248|0)>(-1);
  11469. if ($249) {
  11470. dest=$8; stop=dest+64|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  11471. $250 = (((((($0)) + 64|0) + (($248*3488)|0)|0)) + 288|0);
  11472. _memset(($250|0),0,3200)|0;
  11473. $251 = HEAP32[$247>>2]|0;
  11474. $252 = (((($0)) + 44|0) + ($251<<2)|0);
  11475. $253 = HEAP32[$252>>2]|0;
  11476. $254 = ($253|0)==(0);
  11477. if (!($254)) {
  11478. $255 = HEAP32[$247>>2]|0;
  11479. $256 = (((($0)) + 44|0) + ($255<<2)|0);
  11480. $257 = HEAP32[$256>>2]|0;
  11481. $$010951864 = 0;
  11482. while(1) {
  11483. $258 = ((((($0)) + 64|0) + (($248*3488)|0)|0) + ($$010951864)|0);
  11484. $259 = HEAP8[$258>>0]|0;
  11485. $260 = $259&255;
  11486. $261 = (($8) + ($260<<2)|0);
  11487. $262 = HEAP32[$261>>2]|0;
  11488. $263 = (($262) + 1)|0;
  11489. HEAP32[$261>>2] = $263;
  11490. $264 = (($$010951864) + 1)|0;
  11491. $265 = ($264>>>0)<($257>>>0);
  11492. if ($265) {
  11493. $$010951864 = $264;
  11494. } else {
  11495. break;
  11496. }
  11497. }
  11498. }
  11499. $266 = ((($7)) + 4|0);
  11500. HEAP32[$266>>2] = 0;
  11501. HEAP32[$7>>2] = 0;
  11502. $267 = ((($8)) + 4|0);
  11503. $268 = HEAP32[$267>>2]|0;
  11504. $269 = $268 << 1;
  11505. $270 = ((($7)) + 8|0);
  11506. HEAP32[$270>>2] = $269;
  11507. $271 = ((($8)) + 8|0);
  11508. $272 = HEAP32[$271>>2]|0;
  11509. $273 = (($272) + ($268))|0;
  11510. $274 = (($272) + ($269))|0;
  11511. $275 = $274 << 1;
  11512. $276 = ((($7)) + 12|0);
  11513. HEAP32[$276>>2] = $275;
  11514. $277 = ((($8)) + 12|0);
  11515. $278 = HEAP32[$277>>2]|0;
  11516. $279 = (($278) + ($273))|0;
  11517. $280 = (($278) + ($275))|0;
  11518. $281 = $280 << 1;
  11519. $282 = ((($7)) + 16|0);
  11520. HEAP32[$282>>2] = $281;
  11521. $283 = ((($8)) + 16|0);
  11522. $284 = HEAP32[$283>>2]|0;
  11523. $285 = (($284) + ($279))|0;
  11524. $286 = (($284) + ($281))|0;
  11525. $287 = $286 << 1;
  11526. $288 = ((($7)) + 20|0);
  11527. HEAP32[$288>>2] = $287;
  11528. $289 = ((($8)) + 20|0);
  11529. $290 = HEAP32[$289>>2]|0;
  11530. $291 = (($290) + ($285))|0;
  11531. $292 = (($290) + ($287))|0;
  11532. $293 = $292 << 1;
  11533. $294 = ((($7)) + 24|0);
  11534. HEAP32[$294>>2] = $293;
  11535. $295 = ((($8)) + 24|0);
  11536. $296 = HEAP32[$295>>2]|0;
  11537. $297 = (($296) + ($291))|0;
  11538. $298 = (($296) + ($293))|0;
  11539. $299 = $298 << 1;
  11540. $300 = ((($7)) + 28|0);
  11541. HEAP32[$300>>2] = $299;
  11542. $301 = ((($8)) + 28|0);
  11543. $302 = HEAP32[$301>>2]|0;
  11544. $303 = (($302) + ($297))|0;
  11545. $304 = (($302) + ($299))|0;
  11546. $305 = $304 << 1;
  11547. $306 = ((($7)) + 32|0);
  11548. HEAP32[$306>>2] = $305;
  11549. $307 = ((($8)) + 32|0);
  11550. $308 = HEAP32[$307>>2]|0;
  11551. $309 = (($308) + ($303))|0;
  11552. $310 = (($308) + ($305))|0;
  11553. $311 = $310 << 1;
  11554. $312 = ((($7)) + 36|0);
  11555. HEAP32[$312>>2] = $311;
  11556. $313 = ((($8)) + 36|0);
  11557. $314 = HEAP32[$313>>2]|0;
  11558. $315 = (($314) + ($309))|0;
  11559. $316 = (($314) + ($311))|0;
  11560. $317 = $316 << 1;
  11561. $318 = ((($7)) + 40|0);
  11562. HEAP32[$318>>2] = $317;
  11563. $319 = ((($8)) + 40|0);
  11564. $320 = HEAP32[$319>>2]|0;
  11565. $321 = (($320) + ($315))|0;
  11566. $322 = (($320) + ($317))|0;
  11567. $323 = $322 << 1;
  11568. $324 = ((($7)) + 44|0);
  11569. HEAP32[$324>>2] = $323;
  11570. $325 = ((($8)) + 44|0);
  11571. $326 = HEAP32[$325>>2]|0;
  11572. $327 = (($326) + ($321))|0;
  11573. $328 = (($326) + ($323))|0;
  11574. $329 = $328 << 1;
  11575. $330 = ((($7)) + 48|0);
  11576. HEAP32[$330>>2] = $329;
  11577. $331 = ((($8)) + 48|0);
  11578. $332 = HEAP32[$331>>2]|0;
  11579. $333 = (($332) + ($327))|0;
  11580. $334 = (($332) + ($329))|0;
  11581. $335 = $334 << 1;
  11582. $336 = ((($7)) + 52|0);
  11583. HEAP32[$336>>2] = $335;
  11584. $337 = ((($8)) + 52|0);
  11585. $338 = HEAP32[$337>>2]|0;
  11586. $339 = (($338) + ($333))|0;
  11587. $340 = (($338) + ($335))|0;
  11588. $341 = $340 << 1;
  11589. $342 = ((($7)) + 56|0);
  11590. HEAP32[$342>>2] = $341;
  11591. $343 = ((($8)) + 56|0);
  11592. $344 = HEAP32[$343>>2]|0;
  11593. $345 = (($344) + ($339))|0;
  11594. $346 = (($344) + ($341))|0;
  11595. $347 = $346 << 1;
  11596. $348 = ((($7)) + 60|0);
  11597. HEAP32[$348>>2] = $347;
  11598. $349 = ((($8)) + 60|0);
  11599. $350 = HEAP32[$349>>2]|0;
  11600. $351 = (($350) + ($345))|0;
  11601. $352 = (($350) + ($347))|0;
  11602. $353 = $352 << 1;
  11603. $354 = ((($7)) + 64|0);
  11604. HEAP32[$354>>2] = $353;
  11605. $355 = ($353|0)!=(65536);
  11606. $356 = ($351>>>0)>(1);
  11607. $or$cond = $355 & $356;
  11608. if ($or$cond) {
  11609. $$401456 = $$391455;$$401647 = $$391646;$$441035 = $$431034;$$441141 = $$431140;$$441551 = $$431550;$$45 = $$44;$$451248 = $$441247;$$451354 = $$441353;
  11610. label = 86;
  11611. continue L46;
  11612. }
  11613. $357 = HEAP32[$247>>2]|0;
  11614. $358 = (((($0)) + 44|0) + ($357<<2)|0);
  11615. $359 = HEAP32[$358>>2]|0;
  11616. $360 = ($359|0)==(0);
  11617. if ($360) {
  11618. $$lcssa1779 = $357;
  11619. } else {
  11620. $$010911856 = 0;$$011971855 = -1;
  11621. while(1) {
  11622. $361 = ((((($0)) + 64|0) + (($248*3488)|0)|0) + ($$010911856)|0);
  11623. $362 = HEAP8[$361>>0]|0;
  11624. $363 = $362&255;
  11625. $364 = ($362<<24>>24)==(0);
  11626. L142: do {
  11627. if ($364) {
  11628. $$41201 = $$011971855;
  11629. } else {
  11630. $365 = (($7) + ($363<<2)|0);
  11631. $366 = HEAP32[$365>>2]|0;
  11632. $367 = (($366) + 1)|0;
  11633. HEAP32[$365>>2] = $367;
  11634. $$010861840 = $366;$$010871839 = $363;$$010881838 = 0;
  11635. while(1) {
  11636. $368 = $$010881838 << 1;
  11637. $369 = $$010861840 & 1;
  11638. $370 = $369 | $368;
  11639. $371 = (($$010871839) + -1)|0;
  11640. $372 = $$010861840 >>> 1;
  11641. $373 = ($371|0)==(0);
  11642. if ($373) {
  11643. break;
  11644. } else {
  11645. $$010861840 = $372;$$010871839 = $371;$$010881838 = $370;
  11646. }
  11647. }
  11648. $374 = ($362&255)<(11);
  11649. if ($374) {
  11650. $375 = $363 << 9;
  11651. $376 = $375 | $$010911856;
  11652. $377 = $376&65535;
  11653. $378 = ($370>>>0)<(1024);
  11654. if (!($378)) {
  11655. $$41201 = $$011971855;
  11656. break;
  11657. }
  11658. $379 = 1 << $363;
  11659. $$110891852 = $370;
  11660. while(1) {
  11661. $380 = ((((((($0)) + 64|0) + (($248*3488)|0)|0)) + 288|0) + ($$110891852<<1)|0);
  11662. HEAP16[$380>>1] = $377;
  11663. $381 = (($$110891852) + ($379))|0;
  11664. $382 = ($381>>>0)<(1024);
  11665. if ($382) {
  11666. $$110891852 = $381;
  11667. } else {
  11668. $$41201 = $$011971855;
  11669. break L142;
  11670. }
  11671. }
  11672. }
  11673. $383 = $370 & 1023;
  11674. $384 = ((((((($0)) + 64|0) + (($248*3488)|0)|0)) + 288|0) + ($383<<1)|0);
  11675. $385 = HEAP16[$384>>1]|0;
  11676. $386 = $385 << 16 >> 16;
  11677. $387 = ($385<<16>>16)==(0);
  11678. if ($387) {
  11679. $388 = (($$011971855) + -2)|0;
  11680. $389 = $$011971855&65535;
  11681. HEAP16[$384>>1] = $389;
  11682. $$01194 = $$011971855;$$11198 = $388;
  11683. } else {
  11684. $$01194 = $386;$$11198 = $$011971855;
  11685. }
  11686. $390 = $$010881838 >>> 9;
  11687. $391 = ($362&255)>(11);
  11688. $392 = $390 & 1;
  11689. $393 = (($392) - ($$01194))|0;
  11690. $394 = (($393) + -1)|0;
  11691. if ($391) {
  11692. $395 = $390 & 4194303;
  11693. $$010941846 = $363;$$211991845 = $$11198;$397 = $394;$406 = $395;
  11694. while(1) {
  11695. $396 = ((((((($0)) + 64|0) + (($248*3488)|0)|0)) + 2336|0) + ($397<<1)|0);
  11696. $398 = HEAP16[$396>>1]|0;
  11697. $399 = ($398<<16>>16)==(0);
  11698. if ($399) {
  11699. $400 = $$211991845&65535;
  11700. HEAP16[$396>>1] = $400;
  11701. $401 = (($$211991845) + -2)|0;
  11702. $$21196 = $$211991845;$$31200 = $401;
  11703. } else {
  11704. $402 = $398 << 16 >> 16;
  11705. $$21196 = $402;$$31200 = $$211991845;
  11706. }
  11707. $403 = (($$010941846) + -1)|0;
  11708. $404 = ($403>>>0)>(11);
  11709. $405 = $406 >>> 1;
  11710. $407 = $405 & 1;
  11711. $408 = (($407) - ($$21196))|0;
  11712. $409 = (($408) + -1)|0;
  11713. if ($404) {
  11714. $$010941846 = $403;$$211991845 = $$31200;$397 = $409;$406 = $405;
  11715. } else {
  11716. $$21199$lcssa = $$31200;$$lcssa1778 = $409;
  11717. break;
  11718. }
  11719. }
  11720. } else {
  11721. $$21199$lcssa = $$11198;$$lcssa1778 = $394;
  11722. }
  11723. $410 = $$010911856&65535;
  11724. $411 = ((((((($0)) + 64|0) + (($248*3488)|0)|0)) + 2336|0) + ($$lcssa1778<<1)|0);
  11725. HEAP16[$411>>1] = $410;
  11726. $$41201 = $$21199$lcssa;
  11727. }
  11728. } while(0);
  11729. $412 = (($$010911856) + 1)|0;
  11730. $413 = HEAP32[$247>>2]|0;
  11731. $414 = (((($0)) + 44|0) + ($413<<2)|0);
  11732. $415 = HEAP32[$414>>2]|0;
  11733. $416 = ($412>>>0)<($415>>>0);
  11734. if ($416) {
  11735. $$010911856 = $412;$$011971855 = $$41201;
  11736. } else {
  11737. $$lcssa1779 = $413;
  11738. break;
  11739. }
  11740. }
  11741. }
  11742. $417 = ($$lcssa1779|0)==(2);
  11743. if ($417) {
  11744. $$411457 = $$391455;$$411648 = $$391646;$$451036 = $$431034;$$451142 = 0;$$451552 = $$431550;$$46 = $$44;$$461249 = $$441247;$$461355 = $$441353;
  11745. label = 105;
  11746. } else {
  11747. $$521468 = $$391455;$$521659 = $$391646;$$551046 = $$431034;$$561153 = $$431140;$$561563 = $$431550;$$57 = $$44;$$571260 = $$441247;$$571366 = $$441353;
  11748. label = 138;
  11749. }
  11750. } else {
  11751. $$531469 = $$391455;$$531660 = $$391646;$$561047 = $$431034;$$571154 = $$431140;$$571564 = $$431550;$$58 = $$44;$$581261 = $$441247;$$581367 = $$441353;
  11752. label = 139;
  11753. }
  11754. break;
  11755. }
  11756. case 108: {
  11757. label = 0;
  11758. $429 = $$471356 & 1023;
  11759. $430 = (((($0)) + 7328|0) + ($429<<1)|0);
  11760. $431 = HEAP16[$430>>1]|0;
  11761. $432 = $431 << 16 >> 16;
  11762. $433 = ($431<<16>>16)>(-1);
  11763. if ($433) {
  11764. $434 = $432 >> 9;
  11765. $435 = (($434) + -1)|0;
  11766. $436 = ($435>>>0)<($$47>>>0);
  11767. if ($436) {
  11768. $$451461 = $$421458;$$451652 = $$421649;$$491146 = $$461143;$$491556 = $$461553;$$50 = $$47;$$501253 = $$471250;$$501359 = $$471356;
  11769. label = 119;
  11770. continue L125;
  11771. } else {
  11772. label = 113;
  11773. break L125;
  11774. }
  11775. }
  11776. $437 = ($$47>>>0)>(10);
  11777. if ($437) {
  11778. $$0981 = 10;$$0984 = $432;
  11779. } else {
  11780. label = 113;
  11781. break L125;
  11782. }
  11783. while(1) {
  11784. $438 = $$0984 ^ -1;
  11785. $439 = $$471356 >>> $$0981;
  11786. $440 = $439 & 1;
  11787. $441 = (($440) + ($438))|0;
  11788. $442 = (((($0)) + 9376|0) + ($441<<1)|0);
  11789. $443 = HEAP16[$442>>1]|0;
  11790. $444 = ($443<<16>>16)<(0);
  11791. if (!($444)) {
  11792. $$451461 = $$421458;$$451652 = $$421649;$$491146 = $$461143;$$491556 = $$461553;$$50 = $$47;$$501253 = $$471250;$$501359 = $$471356;
  11793. label = 119;
  11794. continue L125;
  11795. }
  11796. $445 = (($$0981) + 1)|0;
  11797. $446 = $443 << 16 >> 16;
  11798. $447 = (($$0981) + 2)|0;
  11799. $448 = ($$47>>>0)<($447>>>0);
  11800. if ($448) {
  11801. label = 113;
  11802. break L125;
  11803. } else {
  11804. $$0981 = $445;$$0984 = $446;
  11805. }
  11806. }
  11807. break;
  11808. }
  11809. case 119: {
  11810. label = 0;
  11811. $471 = $$501359 & 1023;
  11812. $472 = (((($0)) + 7328|0) + ($471<<1)|0);
  11813. $473 = HEAP16[$472>>1]|0;
  11814. $474 = $473 << 16 >> 16;
  11815. $475 = ($473<<16>>16)>(-1);
  11816. if ($475) {
  11817. $476 = $474 >> 9;
  11818. $477 = $474 & 511;
  11819. $$2983 = $476;$$2986 = $477;
  11820. } else {
  11821. $$1982 = 10;$$1985 = $474;
  11822. while(1) {
  11823. $478 = $$1985 ^ -1;
  11824. $479 = (($$1982) + 1)|0;
  11825. $480 = $$501359 >>> $$1982;
  11826. $481 = $480 & 1;
  11827. $482 = (($481) + ($478))|0;
  11828. $483 = (((($0)) + 9376|0) + ($482<<1)|0);
  11829. $484 = HEAP16[$483>>1]|0;
  11830. $485 = $484 << 16 >> 16;
  11831. $486 = ($484<<16>>16)<(0);
  11832. if ($486) {
  11833. $$1982 = $479;$$1985 = $485;
  11834. } else {
  11835. $$2983 = $479;$$2986 = $485;
  11836. break;
  11837. }
  11838. }
  11839. }
  11840. $487 = $$501359 >>> $$2983;
  11841. $488 = (($$50) - ($$2983))|0;
  11842. $489 = ($$2986>>>0)<(16);
  11843. if ($489) {
  11844. $490 = $$2986&255;
  11845. $491 = (($$491146) + 1)|0;
  11846. $492 = (((($0)) + 10532|0) + ($$491146)|0);
  11847. HEAP8[$492>>0] = $490;
  11848. $$411457 = $$451461;$$411648 = $$451652;$$451036 = $$2986;$$451142 = $491;$$451552 = $$491556;$$46 = $488;$$461249 = $$501253;$$461355 = $487;
  11849. label = 105;
  11850. break;
  11851. }
  11852. $493 = ($$2986|0)!=(16);
  11853. $494 = ($$491146|0)!=(0);
  11854. $or$cond24 = $494 | $493;
  11855. if (!($or$cond24)) {
  11856. $$461462 = $$451461;$$461653 = $$451652;$$491040 = $$2986;$$501147 = $$491146;$$501557 = $$491556;$$51 = $488;$$511254 = $$501253;$$511360 = $487;
  11857. label = 125;
  11858. continue L46;
  11859. }
  11860. $495 = (($$2986) + -16)|0;
  11861. $496 = (5307 + ($495)|0);
  11862. $497 = HEAP8[$496>>0]|0;
  11863. $498 = $497 << 24 >> 24;
  11864. $499 = ($488>>>0)<($498>>>0);
  11865. if ($499) {
  11866. $$471463 = $$451461;$$471654 = $$451652;$$501041 = $$2986;$$511148 = $$491146;$$511558 = $$491556;$$52 = $488;$$521255 = $498;$$521361 = $487;
  11867. label = 127;
  11868. continue L125;
  11869. } else {
  11870. $$501466 = $$451461;$$501657 = $$451652;$$531044 = $$2986;$$541151 = $$491146;$$541561 = $$491556;$$55 = $488;$$551258 = $498;$$551364 = $487;
  11871. label = 132;
  11872. continue L125;
  11873. }
  11874. break;
  11875. }
  11876. case 127: {
  11877. label = 0;
  11878. $500 = ($$511558>>>0)<($10>>>0);
  11879. if ($500) {
  11880. $$491465$ph = $$471463;$$491656$ph = $$471654;$$521043$ph = $$501041;$$531150$ph = $$511148;$$54$ph = $$52;$$541257$ph = $$521255;$$541363$ph = $$521361;$$sink1732 = $$511558;
  11881. label = 130;
  11882. continue L46;
  11883. } else {
  11884. $$481464 = $$471463;$$481655 = $$471654;$$511042 = $$501041;$$521149 = $$511148;$$521559 = $$511558;$$53 = $$52;$$531256 = $$521255;$$531362 = $$521361;
  11885. label = 128;
  11886. continue L46;
  11887. }
  11888. break;
  11889. }
  11890. case 132: {
  11891. label = 0;
  11892. $510 = 1 << $$551258;
  11893. $511 = (($510) + -1)|0;
  11894. $512 = $511 & $$551364;
  11895. $513 = $$551364 >>> $$551258;
  11896. $514 = (($$55) - ($$551258))|0;
  11897. $515 = (($$531044) + -16)|0;
  11898. $516 = (5311 + ($515)|0);
  11899. $517 = HEAP8[$516>>0]|0;
  11900. $518 = $517 << 24 >> 24;
  11901. $519 = (($518) + ($512))|0;
  11902. $520 = (((($0)) + 10532|0) + ($$541151)|0);
  11903. $521 = ($$531044|0)==(16);
  11904. if ($521) {
  11905. $522 = (($$541151) + -1)|0;
  11906. $523 = (((($0)) + 10532|0) + ($522)|0);
  11907. $524 = HEAP8[$523>>0]|0;
  11908. $525 = $524&255;
  11909. $527 = $525;
  11910. } else {
  11911. $527 = 0;
  11912. }
  11913. $526 = $527&255;
  11914. _memset(($520|0),($526|0),($519|0))|0;
  11915. $528 = (($519) + ($$541151))|0;
  11916. $$411457 = $$501466;$$411648 = $$501657;$$451036 = $$531044;$$451142 = $528;$$451552 = $$541561;$$46 = $514;$$461249 = $$551258;$$461355 = $513;
  11917. label = 105;
  11918. break;
  11919. }
  11920. case 140: {
  11921. label = 0;
  11922. $539 = $10;
  11923. $540 = $$581565$ph;
  11924. $541 = (($539) - ($540))|0;
  11925. $542 = ($541|0)<(4);
  11926. $543 = ($$59$ph>>>0)<(15);
  11927. L241: do {
  11928. if ($542) {
  11929. $$541661$lcssa = $$541661$ph;$$581155$lcssa = $$581155$ph;$$581565$lcssa = $$581565$ph;$$59$lcssa = $$59$ph;$$591368$lcssa = $$591368$ph;$$lcssa1799 = $543;$$lcssa1802 = $541;
  11930. } else {
  11931. $544 = $12;
  11932. $$5416611868 = $$541661$ph;$$5811551871 = $$581155$ph;$$5815651869 = $$581565$ph;$$5913681870 = $$591368$ph;$$591872 = $$59$ph;$965 = $543;$966 = $541;
  11933. while(1) {
  11934. $545 = $$5416611868;
  11935. $546 = (($544) - ($545))|0;
  11936. $547 = ($546|0)<(2);
  11937. if ($547) {
  11938. $$541661$lcssa = $$5416611868;$$581155$lcssa = $$5811551871;$$581565$lcssa = $$5815651869;$$59$lcssa = $$591872;$$591368$lcssa = $$5913681870;$$lcssa1799 = $965;$$lcssa1802 = $966;
  11939. break L241;
  11940. }
  11941. if ($965) {
  11942. $613 = HEAP8[$$5815651869>>0]|0;
  11943. $614 = $613&255;
  11944. $615 = ((($$5815651869)) + 1|0);
  11945. $616 = HEAP8[$615>>0]|0;
  11946. $617 = $616&255;
  11947. $618 = $617 << 8;
  11948. $619 = $618 | $614;
  11949. $620 = $619 << $$591872;
  11950. $621 = $620 | $$5913681870;
  11951. $622 = ((($$5815651869)) + 2|0);
  11952. $623 = (($$591872) + 16)|0;
  11953. $$641571 = $622;$$65 = $623;$$651374 = $621;
  11954. } else {
  11955. $$641571 = $$5815651869;$$65 = $$591872;$$651374 = $$5913681870;
  11956. }
  11957. $624 = $$651374 & 1023;
  11958. $625 = (((($0)) + 352|0) + ($624<<1)|0);
  11959. $626 = HEAP16[$625>>1]|0;
  11960. $627 = $626 << 16 >> 16;
  11961. $628 = ($626<<16>>16)>(-1);
  11962. if ($628) {
  11963. $629 = $627 >> 9;
  11964. $$1964 = $629;$$1968 = $627;
  11965. } else {
  11966. $$0963 = 10;$$0967 = $627;
  11967. while(1) {
  11968. $630 = $$0967 ^ -1;
  11969. $631 = (($$0963) + 1)|0;
  11970. $632 = $$651374 >>> $$0963;
  11971. $633 = $632 & 1;
  11972. $634 = (($633) + ($630))|0;
  11973. $635 = (((($0)) + 2400|0) + ($634<<1)|0);
  11974. $636 = HEAP16[$635>>1]|0;
  11975. $637 = $636 << 16 >> 16;
  11976. $638 = ($636<<16>>16)<(0);
  11977. if ($638) {
  11978. $$0963 = $631;$$0967 = $637;
  11979. } else {
  11980. $$1964 = $631;$$1968 = $637;
  11981. break;
  11982. }
  11983. }
  11984. }
  11985. $639 = $$651374 >>> $$1964;
  11986. $640 = (($$65) - ($$1964))|0;
  11987. $641 = $$1968 & 256;
  11988. $642 = ($641|0)==(0);
  11989. if (!($642)) {
  11990. $$601476 = $$541470$ph;$$611668 = $$5416611868;$$631054 = $$571048$ph;$$641161 = $$1968;$$651268 = $$591262$ph;$$671574 = $$641571;$$68 = $640;$$681377 = $639;
  11991. label = 176;
  11992. break L126;
  11993. }
  11994. $643 = ($640>>>0)<(15);
  11995. if ($643) {
  11996. $644 = HEAP8[$$641571>>0]|0;
  11997. $645 = $644&255;
  11998. $646 = ((($$641571)) + 1|0);
  11999. $647 = HEAP8[$646>>0]|0;
  12000. $648 = $647&255;
  12001. $649 = $648 << 8;
  12002. $650 = $649 | $645;
  12003. $651 = $650 << $640;
  12004. $652 = $651 | $639;
  12005. $653 = ((($$641571)) + 2|0);
  12006. $654 = (($640) + 16)|0;
  12007. $$651572 = $653;$$66 = $654;$$661375 = $652;
  12008. } else {
  12009. $$651572 = $$641571;$$66 = $640;$$661375 = $639;
  12010. }
  12011. $655 = $$661375 & 1023;
  12012. $656 = (((($0)) + 352|0) + ($655<<1)|0);
  12013. $657 = HEAP16[$656>>1]|0;
  12014. $658 = $657 << 16 >> 16;
  12015. $659 = ($657<<16>>16)>(-1);
  12016. if ($659) {
  12017. $660 = $658 >> 9;
  12018. $$3966 = $660;$$3970 = $658;
  12019. } else {
  12020. $$2965 = 10;$$2969 = $658;
  12021. while(1) {
  12022. $661 = $$2969 ^ -1;
  12023. $662 = (($$2965) + 1)|0;
  12024. $663 = $$661375 >>> $$2965;
  12025. $664 = $663 & 1;
  12026. $665 = (($664) + ($661))|0;
  12027. $666 = (((($0)) + 2400|0) + ($665<<1)|0);
  12028. $667 = HEAP16[$666>>1]|0;
  12029. $668 = $667 << 16 >> 16;
  12030. $669 = ($667<<16>>16)<(0);
  12031. if ($669) {
  12032. $$2965 = $662;$$2969 = $668;
  12033. } else {
  12034. $$3966 = $662;$$3970 = $668;
  12035. break;
  12036. }
  12037. }
  12038. }
  12039. $670 = $$661375 >>> $$3966;
  12040. $671 = (($$66) - ($$3966))|0;
  12041. $672 = $$1968&255;
  12042. HEAP8[$$5416611868>>0] = $672;
  12043. $673 = $$3970 & 256;
  12044. $674 = ($673|0)==(0);
  12045. if (!($674)) {
  12046. break;
  12047. }
  12048. $676 = $$3970&255;
  12049. $677 = ((($$5416611868)) + 1|0);
  12050. HEAP8[$677>>0] = $676;
  12051. $678 = ((($$5416611868)) + 2|0);
  12052. $679 = $$651572;
  12053. $680 = (($539) - ($679))|0;
  12054. $681 = ($680|0)<(4);
  12055. $682 = ($671>>>0)<(15);
  12056. if ($681) {
  12057. $$541661$lcssa = $678;$$581155$lcssa = $$1968;$$581565$lcssa = $$651572;$$59$lcssa = $671;$$591368$lcssa = $670;$$lcssa1799 = $682;$$lcssa1802 = $680;
  12058. break L241;
  12059. } else {
  12060. $$5416611868 = $678;$$5811551871 = $$1968;$$5815651869 = $$651572;$$5913681870 = $670;$$591872 = $671;$965 = $682;$966 = $680;
  12061. }
  12062. }
  12063. $675 = ((($$5416611868)) + 1|0);
  12064. $$601476 = $$541470$ph;$$611668 = $675;$$631054 = $$571048$ph;$$641161 = $$3970;$$651268 = $$591262$ph;$$671574 = $$651572;$$68 = $671;$$681377 = $670;
  12065. label = 176;
  12066. break L126;
  12067. }
  12068. } while(0);
  12069. if (!($$lcssa1799)) {
  12070. $$581474 = $$541470$ph;$$581665 = $$541661$lcssa;$$611052 = $$571048$ph;$$621569 = $$581565$lcssa;$$63 = $$59$lcssa;$$631266 = $$591262$ph;$$631372 = $$591368$lcssa;
  12071. label = 156;
  12072. continue L125;
  12073. }
  12074. $548 = ($$lcssa1802|0)<(2);
  12075. if ($548) {
  12076. $$551471 = $$541470$ph;$$551662 = $$541661$lcssa;$$581049 = $$571048$ph;$$591156 = $$581155$lcssa;$$591566 = $$581565$lcssa;$$60 = $$59$lcssa;$$601263 = $$591262$ph;$$601369 = $$591368$lcssa;
  12077. label = 145;
  12078. continue L125;
  12079. }
  12080. $579 = HEAP8[$$581565$lcssa>>0]|0;
  12081. $580 = $579&255;
  12082. $581 = $580 << $$59$lcssa;
  12083. $582 = ((($$581565$lcssa)) + 1|0);
  12084. $583 = HEAP8[$582>>0]|0;
  12085. $584 = $583&255;
  12086. $585 = (($$59$lcssa) + 8)|0;
  12087. $586 = $584 << $585;
  12088. $587 = $581 | $$591368$lcssa;
  12089. $588 = $587 | $586;
  12090. $589 = ((($$581565$lcssa)) + 2|0);
  12091. $590 = (($$59$lcssa) + 16)|0;
  12092. $$581474 = $$541470$ph;$$581665 = $$541661$lcssa;$$611052 = $$571048$ph;$$621569 = $589;$$63 = $590;$$631266 = $$591262$ph;$$631372 = $588;
  12093. label = 156;
  12094. continue L125;
  12095. break;
  12096. }
  12097. case 145: {
  12098. label = 0;
  12099. $549 = $$601369 & 1023;
  12100. $550 = (((($0)) + 352|0) + ($549<<1)|0);
  12101. $551 = HEAP16[$550>>1]|0;
  12102. $552 = $551 << 16 >> 16;
  12103. $553 = ($551<<16>>16)>(-1);
  12104. if ($553) {
  12105. $554 = $552 >> 9;
  12106. $555 = (($554) + -1)|0;
  12107. $556 = ($555>>>0)<($$60>>>0);
  12108. if ($556) {
  12109. $$581474 = $$551471;$$581665 = $$551662;$$611052 = $$581049;$$621569 = $$591566;$$63 = $$60;$$631266 = $$601263;$$631372 = $$601369;
  12110. label = 156;
  12111. continue L125;
  12112. } else {
  12113. label = 150;
  12114. break L125;
  12115. }
  12116. }
  12117. $557 = ($$60>>>0)>(10);
  12118. if ($557) {
  12119. $$0972 = 10;$$0975 = $552;
  12120. } else {
  12121. label = 150;
  12122. break L125;
  12123. }
  12124. while(1) {
  12125. $558 = $$0975 ^ -1;
  12126. $559 = $$601369 >>> $$0972;
  12127. $560 = $559 & 1;
  12128. $561 = (($560) + ($558))|0;
  12129. $562 = (((($0)) + 2400|0) + ($561<<1)|0);
  12130. $563 = HEAP16[$562>>1]|0;
  12131. $564 = ($563<<16>>16)<(0);
  12132. if (!($564)) {
  12133. $$581474 = $$551471;$$581665 = $$551662;$$611052 = $$581049;$$621569 = $$591566;$$63 = $$60;$$631266 = $$601263;$$631372 = $$601369;
  12134. label = 156;
  12135. continue L125;
  12136. }
  12137. $565 = (($$0972) + 1)|0;
  12138. $566 = $563 << 16 >> 16;
  12139. $567 = (($$0972) + 2)|0;
  12140. $568 = ($$60>>>0)<($567>>>0);
  12141. if ($568) {
  12142. label = 150;
  12143. break L125;
  12144. } else {
  12145. $$0972 = $565;$$0975 = $566;
  12146. }
  12147. }
  12148. break;
  12149. }
  12150. case 156: {
  12151. label = 0;
  12152. $591 = $$631372 & 1023;
  12153. $592 = (((($0)) + 352|0) + ($591<<1)|0);
  12154. $593 = HEAP16[$592>>1]|0;
  12155. $594 = $593 << 16 >> 16;
  12156. $595 = ($593<<16>>16)>(-1);
  12157. if ($595) {
  12158. $596 = $594 >> 9;
  12159. $597 = $594 & 511;
  12160. $$2974 = $596;$$2977 = $597;
  12161. } else {
  12162. $$1973 = 10;$$1976 = $594;
  12163. while(1) {
  12164. $598 = $$1976 ^ -1;
  12165. $599 = (($$1973) + 1)|0;
  12166. $600 = $$631372 >>> $$1973;
  12167. $601 = $600 & 1;
  12168. $602 = (($601) + ($598))|0;
  12169. $603 = (((($0)) + 2400|0) + ($602<<1)|0);
  12170. $604 = HEAP16[$603>>1]|0;
  12171. $605 = $604 << 16 >> 16;
  12172. $606 = ($604<<16>>16)<(0);
  12173. if ($606) {
  12174. $$1973 = $599;$$1976 = $605;
  12175. } else {
  12176. $$2974 = $599;$$2977 = $605;
  12177. break;
  12178. }
  12179. }
  12180. }
  12181. $607 = $$631372 >>> $$2974;
  12182. $608 = (($$63) - ($$2974))|0;
  12183. $609 = ($$2977>>>0)>(255);
  12184. if ($609) {
  12185. $$601476 = $$581474;$$611668 = $$581665;$$631054 = $$611052;$$641161 = $$2977;$$651268 = $$631266;$$671574 = $$621569;$$68 = $608;$$681377 = $607;
  12186. label = 176;
  12187. } else {
  12188. $$591475 = $$581474;$$591666 = $$581665;$$621053 = $$611052;$$621159 = $$2977;$$631570 = $$621569;$$64 = $608;$$641267 = $$631266;$$641373 = $607;
  12189. label = 160;
  12190. continue L46;
  12191. }
  12192. break;
  12193. }
  12194. case 179: {
  12195. label = 0;
  12196. $693 = ($$681575>>>0)<($10>>>0);
  12197. if ($693) {
  12198. $$631479$ph = $$611477;$$641671$ph = $$621669;$$661057$ph = $$641055;$$671164$ph = $$651162;$$681271$ph = $$661269;$$71$ph = $$69;$$711380$ph = $$691378;$$sink1739 = $$681575;
  12199. label = 182;
  12200. continue L46;
  12201. } else {
  12202. $$621478 = $$611477;$$631670 = $$621669;$$651056 = $$641055;$$661163 = $$651162;$$671270 = $$661269;$$691576 = $$681575;$$70 = $$69;$$701379 = $$691378;
  12203. label = 180;
  12204. continue L46;
  12205. }
  12206. break;
  12207. }
  12208. case 184: {
  12209. label = 0;
  12210. $703 = 1 << $$691272;
  12211. $704 = (($703) + -1)|0;
  12212. $705 = $704 & $$721381;
  12213. $706 = $$721381 >>> $$691272;
  12214. $707 = (($$72) - ($$691272))|0;
  12215. $708 = (($705) + ($$681165))|0;
  12216. $$651481 = $$641480;$$661673 = $$651672;$$681059 = $$671058;$$691166 = $708;$$701273 = $$691272;$$721579 = $$711578;$$73 = $707;$$731382 = $706;
  12217. label = 185;
  12218. break;
  12219. }
  12220. case 187: {
  12221. label = 0;
  12222. $714 = $$741383 & 1023;
  12223. $715 = (((($0)) + 3840|0) + ($714<<1)|0);
  12224. $716 = HEAP16[$715>>1]|0;
  12225. $717 = $716 << 16 >> 16;
  12226. $718 = ($716<<16>>16)>(-1);
  12227. if ($718) {
  12228. $719 = $717 >> 9;
  12229. $720 = (($719) + -1)|0;
  12230. $721 = ($720>>>0)<($$74>>>0);
  12231. if ($721) {
  12232. $$691485 = $$661482;$$701677 = $$671674;$$731170 = $$701167;$$761583 = $$731580;$$77 = $$74;$$771386 = $$741383;
  12233. label = 198;
  12234. continue L125;
  12235. } else {
  12236. label = 192;
  12237. break L125;
  12238. }
  12239. }
  12240. $722 = ($$74>>>0)>(10);
  12241. if ($722) {
  12242. $$0953 = 10;$$0956 = $717;
  12243. } else {
  12244. label = 192;
  12245. break L125;
  12246. }
  12247. while(1) {
  12248. $723 = $$0956 ^ -1;
  12249. $724 = $$741383 >>> $$0953;
  12250. $725 = $724 & 1;
  12251. $726 = (($725) + ($723))|0;
  12252. $727 = (((($0)) + 5888|0) + ($726<<1)|0);
  12253. $728 = HEAP16[$727>>1]|0;
  12254. $729 = ($728<<16>>16)<(0);
  12255. if (!($729)) {
  12256. $$691485 = $$661482;$$701677 = $$671674;$$731170 = $$701167;$$761583 = $$731580;$$77 = $$74;$$771386 = $$741383;
  12257. label = 198;
  12258. continue L125;
  12259. }
  12260. $730 = (($$0953) + 1)|0;
  12261. $731 = $728 << 16 >> 16;
  12262. $732 = (($$0953) + 2)|0;
  12263. $733 = ($$74>>>0)<($732>>>0);
  12264. if ($733) {
  12265. label = 192;
  12266. break L125;
  12267. } else {
  12268. $$0953 = $730;$$0956 = $731;
  12269. }
  12270. }
  12271. break;
  12272. }
  12273. case 198: {
  12274. label = 0;
  12275. $756 = $$771386 & 1023;
  12276. $757 = (((($0)) + 3840|0) + ($756<<1)|0);
  12277. $758 = HEAP16[$757>>1]|0;
  12278. $759 = $758 << 16 >> 16;
  12279. $760 = ($758<<16>>16)>(-1);
  12280. if ($760) {
  12281. $761 = $759 >> 9;
  12282. $762 = $759 & 511;
  12283. $$2955 = $761;$$2958 = $762;
  12284. } else {
  12285. $$1954 = 10;$$1957 = $759;
  12286. while(1) {
  12287. $763 = $$1957 ^ -1;
  12288. $764 = (($$1954) + 1)|0;
  12289. $765 = $$771386 >>> $$1954;
  12290. $766 = $765 & 1;
  12291. $767 = (($766) + ($763))|0;
  12292. $768 = (((($0)) + 5888|0) + ($767<<1)|0);
  12293. $769 = HEAP16[$768>>1]|0;
  12294. $770 = $769 << 16 >> 16;
  12295. $771 = ($769<<16>>16)<(0);
  12296. if ($771) {
  12297. $$1954 = $764;$$1957 = $770;
  12298. } else {
  12299. $$2955 = $764;$$2958 = $770;
  12300. break;
  12301. }
  12302. }
  12303. }
  12304. $772 = $$771386 >>> $$2955;
  12305. $773 = (($$77) - ($$2955))|0;
  12306. $774 = (3564 + ($$2958<<2)|0);
  12307. $775 = HEAP32[$774>>2]|0;
  12308. $776 = (3436 + ($$2958<<2)|0);
  12309. $777 = HEAP32[$776>>2]|0;
  12310. $778 = (($$2958) + -4)|0;
  12311. $779 = ($778>>>0)<(26);
  12312. if ($779) {
  12313. $780 = ($773>>>0)<($775>>>0);
  12314. if ($780) {
  12315. $$701486 = $$691485;$$711678 = $$701677;$$721063 = $777;$$741171 = $$731170;$$741277 = $775;$$771584 = $$761583;$$78 = $773;$$781387 = $772;
  12316. label = 203;
  12317. continue L125;
  12318. } else {
  12319. $$741681 = $$701677;$$751066 = $777;$$771174 = $$731170;$$771280 = $775;$$801587 = $$761583;$$81 = $773;$$811390 = $772;
  12320. label = 208;
  12321. continue L125;
  12322. }
  12323. } else {
  12324. $$751682 = $$701677;$$761067 = $777;$$781175 = $$731170;$$781281 = $775;$$811588 = $$761583;$$82 = $773;$$821391 = $772;
  12325. label = 209;
  12326. }
  12327. break;
  12328. }
  12329. case 203: {
  12330. label = 0;
  12331. $781 = ($$771584>>>0)<($10>>>0);
  12332. if ($781) {
  12333. $$721488$ph = $$701486;$$731680$ph = $$711678;$$741065$ph = $$721063;$$761173$ph = $$741171;$$761279$ph = $$741277;$$80$ph = $$78;$$801389$ph = $$781387;$$sink1746 = $$771584;
  12334. label = 206;
  12335. continue L46;
  12336. } else {
  12337. $$711487 = $$701486;$$721679 = $$711678;$$731064 = $$721063;$$751172 = $$741171;$$751278 = $$741277;$$781585 = $$771584;$$79 = $$78;$$791388 = $$781387;
  12338. label = 204;
  12339. continue L46;
  12340. }
  12341. break;
  12342. }
  12343. case 208: {
  12344. label = 0;
  12345. $791 = 1 << $$771280;
  12346. $792 = (($791) + -1)|0;
  12347. $793 = $792 & $$811390;
  12348. $794 = $$811390 >>> $$771280;
  12349. $795 = (($$81) - ($$771280))|0;
  12350. $796 = (($793) + ($$751066))|0;
  12351. $$751682 = $$741681;$$761067 = $796;$$781175 = $$771174;$$781281 = $$771280;$$811588 = $$801587;$$82 = $795;$$821391 = $794;
  12352. label = 209;
  12353. break;
  12354. }
  12355. case 212: {
  12356. label = 0;
  12357. $807 = (($$801177) + -1)|0;
  12358. $808 = ($$801177|0)==(0);
  12359. if ($808) {
  12360. $$531469 = $$741490;$$531660 = $$771684;$$561047 = $$781069;$$571154 = $807;$$571564 = $$831590;$$58 = $$84;$$581261 = $$801283;$$581367 = $$841393;
  12361. label = 139;
  12362. } else {
  12363. $$751491 = $$741490;$$781685 = $$771684;$$791070 = $$781069;$$811178 = $807;$$811284 = $$801283;$$841591 = $$831590;$$85 = $$84;$$851394 = $$841393;
  12364. label = 213;
  12365. continue L46;
  12366. }
  12367. break;
  12368. }
  12369. }
  12370. do {
  12371. if ((label|0) == 70) {
  12372. label = 0;
  12373. $217 = ((($0)) + 52|0);
  12374. $218 = HEAP32[$217>>2]|0;
  12375. $219 = ($$381135>>>0)<($218>>>0);
  12376. if ($219) {
  12377. $220 = ($$39>>>0)<(3);
  12378. if ($220) {
  12379. $$351451 = $$341450;$$351642 = $$341641;$$391030 = $$381029;$$391136 = $$381135;$$391546 = $$381545;$$40 = $$39;$$401243 = $$391242;$$401349 = $$391348;
  12380. label = 72;
  12381. continue L125;
  12382. } else {
  12383. $$381454 = $$341450;$$381645 = $$341641;$$421033 = $$381029;$$421139 = $$381135;$$421549 = $$381545;$$43 = $$39;$$431246 = $$391242;$$431352 = $$391348;
  12384. label = 77;
  12385. continue L125;
  12386. }
  12387. } else {
  12388. HEAP32[$217>>2] = 19;
  12389. $$391455 = $$341450;$$391646 = $$341641;$$431034 = $$381029;$$431140 = $$381135;$$431550 = $$381545;$$44 = $$39;$$441247 = $$391242;$$441353 = $$391348;
  12390. label = 80;
  12391. continue L125;
  12392. }
  12393. }
  12394. else if ((label|0) == 105) {
  12395. label = 0;
  12396. $418 = ((($0)) + 44|0);
  12397. $419 = HEAP32[$418>>2]|0;
  12398. $420 = ((($0)) + 48|0);
  12399. $421 = HEAP32[$420>>2]|0;
  12400. $422 = (($421) + ($419))|0;
  12401. $423 = ($$451142>>>0)<($422>>>0);
  12402. if (!($423)) {
  12403. $529 = ($422|0)==($$451142|0);
  12404. if (!($529)) {
  12405. $$511467 = $$411457;$$511658 = $$411648;$$541045 = $$451036;$$551152 = $$451142;$$551562 = $$451552;$$56 = $$46;$$561259 = $$461249;$$561365 = $$461355;
  12406. label = 136;
  12407. continue L46;
  12408. }
  12409. $530 = ((($0)) + 64|0);
  12410. $531 = ((($0)) + 10532|0);
  12411. _memcpy(($530|0),($531|0),($419|0))|0;
  12412. $532 = ((($0)) + 3552|0);
  12413. $533 = HEAP32[$418>>2]|0;
  12414. $534 = (((($0)) + 10532|0) + ($533)|0);
  12415. $535 = HEAP32[$420>>2]|0;
  12416. _memcpy(($532|0),($534|0),($535|0))|0;
  12417. $$521468 = $$411457;$$521659 = $$411648;$$551046 = $$451036;$$561153 = $$451142;$$561563 = $$451552;$$57 = $$46;$$571260 = $$461249;$$571366 = $$461355;
  12418. label = 138;
  12419. break;
  12420. }
  12421. $424 = ($$46>>>0)<(15);
  12422. if (!($424)) {
  12423. $$451461 = $$411457;$$451652 = $$411648;$$491146 = $$451142;$$491556 = $$451552;$$50 = $$46;$$501253 = $$461249;$$501359 = $$461355;
  12424. label = 119;
  12425. continue L125;
  12426. }
  12427. $425 = $10;
  12428. $426 = $$451552;
  12429. $427 = (($425) - ($426))|0;
  12430. $428 = ($427|0)<(2);
  12431. if ($428) {
  12432. $$421458 = $$411457;$$421649 = $$411648;$$461037 = $$451036;$$461143 = $$451142;$$461553 = $$451552;$$47 = $$46;$$471250 = $$461249;$$471356 = $$461355;
  12433. label = 108;
  12434. continue L125;
  12435. }
  12436. $459 = HEAP8[$$451552>>0]|0;
  12437. $460 = $459&255;
  12438. $461 = $460 << $$46;
  12439. $462 = ((($$451552)) + 1|0);
  12440. $463 = HEAP8[$462>>0]|0;
  12441. $464 = $463&255;
  12442. $465 = (($$46) + 8)|0;
  12443. $466 = $464 << $465;
  12444. $467 = $461 | $$461355;
  12445. $468 = $467 | $466;
  12446. $469 = ((($$451552)) + 2|0);
  12447. $470 = (($$46) + 16)|0;
  12448. $$451461 = $$411457;$$451652 = $$411648;$$491146 = $$451142;$$491556 = $469;$$50 = $470;$$501253 = $$461249;$$501359 = $468;
  12449. label = 119;
  12450. continue L125;
  12451. }
  12452. else if ((label|0) == 176) {
  12453. label = 0;
  12454. $683 = $$641161 & 511;
  12455. $684 = ($683|0)==(256);
  12456. if ($684) {
  12457. $$761492 = $$601476;$$801071 = $$631054;$$801687 = $$611668;$$821285 = $$651268;$$831180 = 256;$$851592 = $$671574;$$86 = $$68;$$861395 = $$681377;
  12458. label = 220;
  12459. break L125;
  12460. }
  12461. $685 = (($683) + -257)|0;
  12462. $686 = (3312 + ($685<<2)|0);
  12463. $687 = HEAP32[$686>>2]|0;
  12464. $688 = (3188 + ($685<<2)|0);
  12465. $689 = HEAP32[$688>>2]|0;
  12466. $690 = (($683) + -265)|0;
  12467. $691 = ($690>>>0)<(20);
  12468. if ($691) {
  12469. $692 = ($$68>>>0)<($687>>>0);
  12470. if ($692) {
  12471. $$611477 = $$601476;$$621669 = $$611668;$$641055 = $$631054;$$651162 = $689;$$661269 = $687;$$681575 = $$671574;$$69 = $$68;$$691378 = $$681377;
  12472. label = 179;
  12473. continue L125;
  12474. } else {
  12475. $$641480 = $$601476;$$651672 = $$611668;$$671058 = $$631054;$$681165 = $689;$$691272 = $687;$$711578 = $$671574;$$72 = $$68;$$721381 = $$681377;
  12476. label = 184;
  12477. continue L125;
  12478. }
  12479. } else {
  12480. $$651481 = $$601476;$$661673 = $$611668;$$681059 = $$631054;$$691166 = $689;$$701273 = $687;$$721579 = $$671574;$$73 = $$68;$$731382 = $$681377;
  12481. label = 185;
  12482. }
  12483. }
  12484. else if ((label|0) == 209) {
  12485. label = 0;
  12486. $797 = $$751682;
  12487. $798 = $3;
  12488. $799 = (($797) - ($798))|0;
  12489. $$not = ($799>>>0)>=($$761067>>>0);
  12490. $$not1747 = $14 ^ 1;
  12491. $brmerge = $$not | $$not1747;
  12492. if (!($brmerge)) {
  12493. $$731489 = $799;$$761683 = $$751682;$$771068 = $$761067;$$791176 = $$781175;$$791282 = $$781281;$$821589 = $$811588;$$83 = $$82;$$831392 = $$821391;
  12494. label = 210;
  12495. continue L46;
  12496. }
  12497. $800 = (($799) - ($$761067))|0;
  12498. $801 = $800 & $$1753;
  12499. $802 = (($3) + ($801)|0);
  12500. $803 = ($$751682>>>0)>($802>>>0);
  12501. $804 = $803 ? $$751682 : $802;
  12502. $805 = (($804) + ($$781175)|0);
  12503. $806 = ($805>>>0)>($12>>>0);
  12504. if ($806) {
  12505. $$741490 = $799;$$771684 = $$751682;$$781069 = $$761067;$$801177 = $$781175;$$801283 = $$781281;$$831590 = $$811588;$$84 = $$82;$$841393 = $$821391;
  12506. label = 212;
  12507. continue L125;
  12508. } else {
  12509. $$0978 = $802;$$791686 = $$751682;$$821179 = $$781175;
  12510. }
  12511. while(1) {
  12512. $816 = HEAP8[$$0978>>0]|0;
  12513. HEAP8[$$791686>>0] = $816;
  12514. $817 = ((($$0978)) + 1|0);
  12515. $818 = HEAP8[$817>>0]|0;
  12516. $819 = ((($$791686)) + 1|0);
  12517. HEAP8[$819>>0] = $818;
  12518. $820 = ((($$0978)) + 2|0);
  12519. $821 = HEAP8[$820>>0]|0;
  12520. $822 = ((($$791686)) + 2|0);
  12521. HEAP8[$822>>0] = $821;
  12522. $823 = ((($$791686)) + 3|0);
  12523. $824 = ((($$0978)) + 3|0);
  12524. $825 = (($$821179) + -3)|0;
  12525. $826 = ($825|0)>(2);
  12526. if ($826) {
  12527. $$0978 = $824;$$791686 = $823;$$821179 = $825;
  12528. } else {
  12529. break;
  12530. }
  12531. }
  12532. $827 = ($825|0)>(0);
  12533. if ($827) {
  12534. $828 = HEAP8[$824>>0]|0;
  12535. HEAP8[$823>>0] = $828;
  12536. $829 = ($825|0)==(1);
  12537. if (!($829)) {
  12538. $830 = ((($$0978)) + 4|0);
  12539. $831 = HEAP8[$830>>0]|0;
  12540. $832 = ((($$791686)) + 4|0);
  12541. HEAP8[$832>>0] = $831;
  12542. }
  12543. $833 = (($823) + ($825)|0);
  12544. $$531469 = $799;$$531660 = $833;$$561047 = $$761067;$$571154 = $825;$$571564 = $$811588;$$58 = $$82;$$581261 = $$781281;$$581367 = $$821391;
  12545. label = 139;
  12546. } else {
  12547. $$531469 = $799;$$531660 = $823;$$561047 = $$761067;$$571154 = $825;$$571564 = $$811588;$$58 = $$82;$$581261 = $$781281;$$581367 = $$821391;
  12548. label = 139;
  12549. }
  12550. }
  12551. } while(0);
  12552. if ((label|0) == 138) {
  12553. label = 0;
  12554. $536 = ((($0)) + 24|0);
  12555. $537 = HEAP32[$536>>2]|0;
  12556. $538 = (($537) + -1)|0;
  12557. HEAP32[$536>>2] = $538;
  12558. $$391455 = $$521468;$$391646 = $$521659;$$431034 = $$551046;$$431140 = $$561153;$$431550 = $$561563;$$44 = $$57;$$441247 = $$571260;$$441353 = $$571366;
  12559. label = 80;
  12560. continue;
  12561. }
  12562. else if ((label|0) == 139) {
  12563. label = 0;
  12564. $$541470$ph = $$531469;$$541661$ph = $$531660;$$571048$ph = $$561047;$$581155$ph = $$571154;$$581565$ph = $$571564;$$59$ph = $$58;$$591262$ph = $$581261;$$591368$ph = $$581367;
  12565. label = 140;
  12566. continue;
  12567. }
  12568. else if ((label|0) == 185) {
  12569. label = 0;
  12570. $709 = ($$73>>>0)<(15);
  12571. if (!($709)) {
  12572. $$691485 = $$651481;$$701677 = $$661673;$$731170 = $$691166;$$761583 = $$721579;$$77 = $$73;$$771386 = $$731382;
  12573. label = 198;
  12574. continue;
  12575. }
  12576. $710 = $10;
  12577. $711 = $$721579;
  12578. $712 = (($710) - ($711))|0;
  12579. $713 = ($712|0)<(2);
  12580. if ($713) {
  12581. $$661482 = $$651481;$$671674 = $$661673;$$691060 = $$681059;$$701167 = $$691166;$$711274 = $$701273;$$731580 = $$721579;$$74 = $$73;$$741383 = $$731382;
  12582. label = 187;
  12583. continue;
  12584. }
  12585. $744 = HEAP8[$$721579>>0]|0;
  12586. $745 = $744&255;
  12587. $746 = $745 << $$73;
  12588. $747 = ((($$721579)) + 1|0);
  12589. $748 = HEAP8[$747>>0]|0;
  12590. $749 = $748&255;
  12591. $750 = (($$73) + 8)|0;
  12592. $751 = $749 << $750;
  12593. $752 = $746 | $$731382;
  12594. $753 = $752 | $751;
  12595. $754 = ((($$721579)) + 2|0);
  12596. $755 = (($$73) + 16)|0;
  12597. $$691485 = $$651481;$$701677 = $$661673;$$731170 = $$691166;$$761583 = $754;$$77 = $755;$$771386 = $753;
  12598. label = 198;
  12599. continue;
  12600. }
  12601. }
  12602. if ((label|0) == 113) {
  12603. label = 0;
  12604. $449 = ($$461553>>>0)<($10>>>0);
  12605. if ($449) {
  12606. $$441460$ph = $$421458;$$441651$ph = $$421649;$$481039$ph = $$461037;$$481145$ph = $$461143;$$49$ph = $$47;$$491252$ph = $$471250;$$491358$ph = $$471356;$$sink1729 = $$461553;
  12607. label = 116;
  12608. continue;
  12609. } else {
  12610. $$431459 = $$421458;$$431650 = $$421649;$$471038 = $$461037;$$471144 = $$461143;$$471554 = $$461553;$$48 = $$47;$$481251 = $$471250;$$481357 = $$471356;
  12611. label = 114;
  12612. continue;
  12613. }
  12614. }
  12615. else if ((label|0) == 150) {
  12616. label = 0;
  12617. $569 = ($$591566>>>0)<($10>>>0);
  12618. if ($569) {
  12619. $$571473$ph = $$551471;$$571664$ph = $$551662;$$601051$ph = $$581049;$$611158$ph = $$591156;$$62$ph = $$60;$$621265$ph = $$601263;$$621371$ph = $$601369;$$sink1736 = $$591566;
  12620. label = 153;
  12621. continue;
  12622. } else {
  12623. $$561472 = $$551471;$$561663 = $$551662;$$591050 = $$581049;$$601157 = $$591156;$$601567 = $$591566;$$61 = $$60;$$611264 = $$601263;$$611370 = $$601369;
  12624. label = 151;
  12625. continue;
  12626. }
  12627. }
  12628. else if ((label|0) == 192) {
  12629. label = 0;
  12630. $734 = ($$731580>>>0)<($10>>>0);
  12631. if ($734) {
  12632. $$681484$ph = $$661482;$$691676$ph = $$671674;$$711062$ph = $$691060;$$721169$ph = $$701167;$$731276$ph = $$711274;$$76$ph = $$74;$$761385$ph = $$741383;$$sink1743 = $$731580;
  12633. label = 195;
  12634. continue;
  12635. } else {
  12636. $$671483 = $$661482;$$681675 = $$671674;$$701061 = $$691060;$$711168 = $$701167;$$721275 = $$711274;$$741581 = $$731580;$$75 = $$74;$$751384 = $$741383;
  12637. label = 193;
  12638. continue;
  12639. }
  12640. }
  12641. else if ((label|0) == 220) {
  12642. label = 0;
  12643. $834 = ((($0)) + 20|0);
  12644. $835 = HEAP32[$834>>2]|0;
  12645. $836 = $835 & 1;
  12646. $837 = ($836|0)==(0);
  12647. if ($837) {
  12648. $$01416 = $$761492;$$01607 = $$801687;$$41511 = $$851592;$$5 = $$86;$$51102 = $$831180;$$51208 = $$821285;$$51314 = $$861395;$$5996 = $$801071;
  12649. label = 14;
  12650. continue;
  12651. }
  12652. $838 = $6 & 1;
  12653. $839 = ($838|0)==(0);
  12654. if ($839) {
  12655. $$881504 = $$761492;$$921083 = $$801071;$$921699 = $$801687;$$941191 = $$831180;$$941297 = $$821285;$$971604 = $$851592;$$98 = $$86;$$981407 = $$861395;
  12656. label = 242;
  12657. continue;
  12658. } else {
  12659. $$801496 = $$761492;$$841075 = $$801071;$$841691 = $$801687;$$861289 = $$821285;$$891596 = $$851592;$$90 = $$86;$$901399 = $$861395;
  12660. label = 226;
  12661. continue;
  12662. }
  12663. }
  12664. }
  12665. if ((label|0) == 258) {
  12666. STACKTOP = sp;return ($$0951|0);
  12667. }
  12668. $892 = ((($0)) + 28|0);
  12669. $893 = HEAP32[$892>>2]|0;
  12670. $894 = $893 & 65535;
  12671. $895 = $893 >>> 16;
  12672. $896 = ($888|0)==(0);
  12673. if ($896) {
  12674. $$0937$lcssa = $895;$$0938$lcssa = $894;
  12675. } else {
  12676. $897 = (($888>>>0) % 5552)&-1;
  12677. $$01834 = $897;$$09371833 = $895;$$09381832 = $894;$$09431831 = $888;$$09441830 = $4;
  12678. while(1) {
  12679. $898 = ($$01834>>>0)>(7);
  12680. if ($898) {
  12681. $899 = (($$01834) + -8)|0;
  12682. $900 = $899 & -8;
  12683. $scevgep = ((($$09441830)) + 8|0);
  12684. $$09411816 = 0;$$11818 = $$09371833;$$19391817 = $$09381832;$$19451815 = $$09441830;
  12685. while(1) {
  12686. $904 = HEAP8[$$19451815>>0]|0;
  12687. $905 = $904&255;
  12688. $906 = (($905) + ($$19391817))|0;
  12689. $907 = (($906) + ($$11818))|0;
  12690. $908 = ((($$19451815)) + 1|0);
  12691. $909 = HEAP8[$908>>0]|0;
  12692. $910 = $909&255;
  12693. $911 = (($906) + ($910))|0;
  12694. $912 = (($907) + ($911))|0;
  12695. $913 = ((($$19451815)) + 2|0);
  12696. $914 = HEAP8[$913>>0]|0;
  12697. $915 = $914&255;
  12698. $916 = (($911) + ($915))|0;
  12699. $917 = (($912) + ($916))|0;
  12700. $918 = ((($$19451815)) + 3|0);
  12701. $919 = HEAP8[$918>>0]|0;
  12702. $920 = $919&255;
  12703. $921 = (($916) + ($920))|0;
  12704. $922 = (($917) + ($921))|0;
  12705. $923 = ((($$19451815)) + 4|0);
  12706. $924 = HEAP8[$923>>0]|0;
  12707. $925 = $924&255;
  12708. $926 = (($921) + ($925))|0;
  12709. $927 = (($922) + ($926))|0;
  12710. $928 = ((($$19451815)) + 5|0);
  12711. $929 = HEAP8[$928>>0]|0;
  12712. $930 = $929&255;
  12713. $931 = (($926) + ($930))|0;
  12714. $932 = (($927) + ($931))|0;
  12715. $933 = ((($$19451815)) + 6|0);
  12716. $934 = HEAP8[$933>>0]|0;
  12717. $935 = $934&255;
  12718. $936 = (($931) + ($935))|0;
  12719. $937 = (($932) + ($936))|0;
  12720. $938 = ((($$19451815)) + 7|0);
  12721. $939 = HEAP8[$938>>0]|0;
  12722. $940 = $939&255;
  12723. $941 = (($936) + ($940))|0;
  12724. $942 = (($937) + ($941))|0;
  12725. $943 = (($$09411816) + 8)|0;
  12726. $944 = ((($$19451815)) + 8|0);
  12727. $945 = $943 | 7;
  12728. $946 = ($945>>>0)<($$01834>>>0);
  12729. if ($946) {
  12730. $$09411816 = $943;$$11818 = $942;$$19391817 = $941;$$19451815 = $944;
  12731. } else {
  12732. break;
  12733. }
  12734. }
  12735. $901 = (($900) + 8)|0;
  12736. $scevgep1947 = (($scevgep) + ($900)|0);
  12737. $$0941$lcssa = $901;$$1$lcssa = $942;$$1939$lcssa = $941;$$1945$lcssa = $scevgep1947;
  12738. } else {
  12739. $$0941$lcssa = 0;$$1$lcssa = $$09371833;$$1939$lcssa = $$09381832;$$1945$lcssa = $$09441830;
  12740. }
  12741. $902 = ($$01834>>>0)>($$0941$lcssa>>>0);
  12742. if ($902) {
  12743. $903 = (($$01834) - ($$0941$lcssa))|0;
  12744. $$19421823 = $$0941$lcssa;$$21825 = $$1$lcssa;$$29401824 = $$1939$lcssa;$$29461822 = $$1945$lcssa;
  12745. while(1) {
  12746. $947 = ((($$29461822)) + 1|0);
  12747. $948 = HEAP8[$$29461822>>0]|0;
  12748. $949 = $948&255;
  12749. $950 = (($949) + ($$29401824))|0;
  12750. $951 = (($950) + ($$21825))|0;
  12751. $952 = (($$19421823) + 1)|0;
  12752. $exitcond = ($952|0)==($$01834|0);
  12753. if ($exitcond) {
  12754. break;
  12755. } else {
  12756. $$19421823 = $952;$$21825 = $951;$$29401824 = $950;$$29461822 = $947;
  12757. }
  12758. }
  12759. $scevgep1948 = (($$1945$lcssa) + ($903)|0);
  12760. $$2$lcssa = $951;$$2940$lcssa = $950;$$2946$lcssa = $scevgep1948;
  12761. } else {
  12762. $$2$lcssa = $$1$lcssa;$$2940$lcssa = $$1939$lcssa;$$2946$lcssa = $$1945$lcssa;
  12763. }
  12764. $953 = (($$2940$lcssa>>>0) % 65521)&-1;
  12765. $954 = (($$2$lcssa>>>0) % 65521)&-1;
  12766. $955 = (($$09431831) - ($$01834))|0;
  12767. $956 = ($955|0)==(0);
  12768. if ($956) {
  12769. $$0937$lcssa = $954;$$0938$lcssa = $953;
  12770. break;
  12771. } else {
  12772. $$01834 = 5552;$$09371833 = $954;$$09381832 = $953;$$09431831 = $955;$$09441830 = $$2946$lcssa;
  12773. }
  12774. }
  12775. }
  12776. $957 = $$0937$lcssa << 16;
  12777. $958 = $957 | $$0938$lcssa;
  12778. HEAP32[$892>>2] = $958;
  12779. $959 = ($$1961|0)!=(0);
  12780. $960 = $6 & 1;
  12781. $961 = ($960|0)==(0);
  12782. $or$cond1752 = $961 | $959;
  12783. if ($or$cond1752) {
  12784. $$0951 = $$1961;
  12785. STACKTOP = sp;return ($$0951|0);
  12786. } else {
  12787. $962 = ((($0)) + 16|0);
  12788. $963 = HEAP32[$962>>2]|0;
  12789. $964 = ($958|0)==($963|0);
  12790. $$1961$ = $964 ? $$1961 : -2;
  12791. STACKTOP = sp;return ($$1961$|0);
  12792. }
  12793. return (0)|0;
  12794. }
  12795. function _tinfl_decompress_mem_to_mem($0,$1,$2,$3,$4) {
  12796. $0 = $0|0;
  12797. $1 = $1|0;
  12798. $2 = $2|0;
  12799. $3 = $3|0;
  12800. $4 = $4|0;
  12801. var $10 = 0, $11 = 0, $12 = 0, $13 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  12802. sp = STACKTOP;
  12803. STACKTOP = STACKTOP + 11008|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(11008|0);
  12804. $5 = sp + 11000|0;
  12805. $6 = sp;
  12806. $7 = sp + 8|0;
  12807. HEAP32[$5>>2] = $1;
  12808. HEAP32[$6>>2] = $3;
  12809. HEAP32[$7>>2] = 0;
  12810. $8 = $4 & -7;
  12811. $9 = $8 | 4;
  12812. $10 = (_tinfl_decompress($7,$2,$6,$0,$0,$5,$9)|0);
  12813. $11 = ($10|0)!=(0);
  12814. $12 = HEAP32[$5>>2]|0;
  12815. $13 = $11 ? -1 : $12;
  12816. STACKTOP = sp;return ($13|0);
  12817. }
  12818. function _LoadResource($0,$1) {
  12819. $0 = $0|0;
  12820. $1 = $1|0;
  12821. 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;
  12822. 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;
  12823. 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;
  12824. 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;
  12825. 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;
  12826. sp = STACKTOP;
  12827. STACKTOP = STACKTOP + 80|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(80|0);
  12828. $vararg_buffer8 = sp + 24|0;
  12829. $vararg_buffer4 = sp + 16|0;
  12830. $vararg_buffer1 = sp + 8|0;
  12831. $vararg_buffer = sp;
  12832. $2 = sp + 64|0;
  12833. $3 = sp + 32|0;
  12834. $4 = (_fopen($0,6385)|0);
  12835. $5 = ($4|0)==(0|0);
  12836. if ($5) {
  12837. HEAP32[$vararg_buffer>>2] = $0;
  12838. _TraceLog(1,5315,$vararg_buffer);
  12839. $$2 = 0;
  12840. STACKTOP = sp;return ($$2|0);
  12841. }
  12842. (_fread($2,1,1,$4)|0);
  12843. $6 = ((($2)) + 1|0);
  12844. (_fread($6,1,1,$4)|0);
  12845. $7 = ((($2)) + 2|0);
  12846. (_fread($7,1,1,$4)|0);
  12847. $8 = ((($2)) + 3|0);
  12848. (_fread($8,1,1,$4)|0);
  12849. $9 = ((($2)) + 4|0);
  12850. (_fread($9,2,1,$4)|0);
  12851. $10 = ((($2)) + 6|0);
  12852. (_fread($10,2,1,$4)|0);
  12853. $11 = HEAP8[$2>>0]|0;
  12854. $12 = ($11<<24>>24)==(114);
  12855. $13 = HEAP8[$6>>0]|0;
  12856. $14 = ($13<<24>>24)==(82);
  12857. $or$cond = $12 | $14;
  12858. $15 = HEAP8[$7>>0]|0;
  12859. $16 = ($15<<24>>24)==(69);
  12860. $or$cond60 = $or$cond | $16;
  12861. $17 = HEAP8[$8>>0]|0;
  12862. $18 = ($17<<24>>24)==(83);
  12863. $or$cond62 = $or$cond60 | $18;
  12864. if ($or$cond62) {
  12865. $19 = HEAP16[$10>>1]|0;
  12866. $20 = ($19<<16>>16)==(0);
  12867. if ($20) {
  12868. $$0$lcssa = 0;
  12869. } else {
  12870. $21 = ((($3)) + 7|0);
  12871. $22 = HEAP16[$10>>1]|0;
  12872. $23 = $22&65535;
  12873. $24 = ((($3)) + 8|0);
  12874. $25 = ((($3)) + 4|0);
  12875. $26 = ((($3)) + 16|0);
  12876. $27 = ((($3)) + 20|0);
  12877. $28 = ((($3)) + 24|0);
  12878. $29 = ((($3)) + 28|0);
  12879. $30 = ((($3)) + 8|0);
  12880. $31 = ((($3)) + 5|0);
  12881. $32 = ((($3)) + 12|0);
  12882. $$05665 = 0;
  12883. while(1) {
  12884. (_fread($3,32,1,$4)|0);
  12885. $36 = HEAP8[$21>>0]|0;
  12886. $37 = $36&255;
  12887. $38 = ($37*24)|0;
  12888. $39 = (_malloc($38)|0);
  12889. $40 = HEAP32[$3>>2]|0;
  12890. $41 = ($40|0)==($1|0);
  12891. if ($41) {
  12892. $42 = HEAP8[$21>>0]|0;
  12893. $43 = ($42<<24>>24)==(0);
  12894. if (!($43)) {
  12895. $$05764 = 0;
  12896. while(1) {
  12897. $44 = HEAP8[$25>>0]|0;
  12898. $45 = $44&255;
  12899. $46 = (($39) + (($$05764*24)|0)|0);
  12900. HEAP32[$46>>2] = $45;
  12901. $47 = HEAP32[$26>>2]|0;
  12902. $48 = (((($39) + (($$05764*24)|0)|0)) + 4|0);
  12903. HEAP32[$48>>2] = $47;
  12904. $49 = HEAP32[$27>>2]|0;
  12905. $50 = (((($39) + (($$05764*24)|0)|0)) + 8|0);
  12906. HEAP32[$50>>2] = $49;
  12907. $51 = HEAP32[$28>>2]|0;
  12908. $52 = (((($39) + (($$05764*24)|0)|0)) + 12|0);
  12909. HEAP32[$52>>2] = $51;
  12910. $53 = HEAP32[$29>>2]|0;
  12911. $54 = (((($39) + (($$05764*24)|0)|0)) + 16|0);
  12912. HEAP32[$54>>2] = $53;
  12913. $55 = HEAP32[$30>>2]|0;
  12914. $56 = (_malloc($55)|0);
  12915. (_fread($56,$55,1,$4)|0);
  12916. $57 = HEAP8[$31>>0]|0;
  12917. $58 = ($57<<24>>24)==(1);
  12918. if ($58) {
  12919. $59 = HEAP32[$30>>2]|0;
  12920. $60 = HEAP32[$32>>2]|0;
  12921. $61 = (_DecompressData($56,$59,$60)|0);
  12922. $62 = (((($39) + (($$05764*24)|0)|0)) + 20|0);
  12923. HEAP32[$62>>2] = $61;
  12924. _free($56);
  12925. } else {
  12926. $63 = (((($39) + (($$05764*24)|0)|0)) + 20|0);
  12927. HEAP32[$63>>2] = $56;
  12928. }
  12929. $64 = (((($39) + (($$05764*24)|0)|0)) + 20|0);
  12930. $65 = HEAP32[$64>>2]|0;
  12931. $66 = ($65|0)==(0|0);
  12932. if (!($66)) {
  12933. $67 = HEAP32[$3>>2]|0;
  12934. HEAP32[$vararg_buffer4>>2] = $0;
  12935. $vararg_ptr7 = ((($vararg_buffer4)) + 4|0);
  12936. HEAP32[$vararg_ptr7>>2] = $67;
  12937. _TraceLog(0,5412,$vararg_buffer4);
  12938. }
  12939. (_fread($3,32,1,$4)|0);
  12940. $68 = (($$05764) + 1)|0;
  12941. $69 = HEAP8[$21>>0]|0;
  12942. $70 = $69&255;
  12943. $71 = ($68|0)<($70|0);
  12944. if ($71) {
  12945. $$05764 = $68;
  12946. } else {
  12947. break;
  12948. }
  12949. }
  12950. }
  12951. } else {
  12952. $72 = HEAP32[$24>>2]|0;
  12953. (_fseek($4,$72,1)|0);
  12954. }
  12955. $73 = (($$05665) + 1)|0;
  12956. $74 = ($73|0)<($23|0);
  12957. if ($74) {
  12958. $$05665 = $73;
  12959. } else {
  12960. $$0$lcssa = $39;
  12961. break;
  12962. }
  12963. }
  12964. }
  12965. $33 = ((($$0$lcssa)) + 20|0);
  12966. $34 = HEAP32[$33>>2]|0;
  12967. $35 = ($34|0)==(0|0);
  12968. if ($35) {
  12969. HEAP32[$vararg_buffer8>>2] = $0;
  12970. $vararg_ptr11 = ((($vararg_buffer8)) + 4|0);
  12971. HEAP32[$vararg_ptr11>>2] = $1;
  12972. _TraceLog(1,5458,$vararg_buffer8);
  12973. $$1 = $$0$lcssa;
  12974. } else {
  12975. $$1 = $$0$lcssa;
  12976. }
  12977. } else {
  12978. HEAP32[$vararg_buffer1>>2] = $0;
  12979. _TraceLog(1,5366,$vararg_buffer1);
  12980. $$1 = 0;
  12981. }
  12982. (_fclose($4)|0);
  12983. $$2 = $$1;
  12984. STACKTOP = sp;return ($$2|0);
  12985. }
  12986. function _TraceLog($0,$1,$varargs) {
  12987. $0 = $0|0;
  12988. $1 = $1|0;
  12989. $varargs = $varargs|0;
  12990. 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;
  12991. sp = STACKTOP;
  12992. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  12993. $2 = sp;
  12994. switch ($0|0) {
  12995. case 0: {
  12996. ;HEAP8[19312>>0]=HEAP8[5763>>0]|0;HEAP8[19312+1>>0]=HEAP8[5763+1>>0]|0;HEAP8[19312+2>>0]=HEAP8[5763+2>>0]|0;HEAP8[19312+3>>0]=HEAP8[5763+3>>0]|0;HEAP8[19312+4>>0]=HEAP8[5763+4>>0]|0;HEAP8[19312+5>>0]=HEAP8[5763+5>>0]|0;HEAP8[19312+6>>0]=HEAP8[5763+6>>0]|0;
  12997. break;
  12998. }
  12999. case 2: {
  13000. $3 = 19312;
  13001. $4 = $3;
  13002. HEAP32[$4>>2] = 1330795077;
  13003. $5 = (($3) + 4)|0;
  13004. $6 = $5;
  13005. HEAP32[$6>>2] = 2112082;
  13006. break;
  13007. }
  13008. case 1: {
  13009. dest=19312; src=5770; 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));
  13010. break;
  13011. }
  13012. case 3: {
  13013. $7 = 19312;
  13014. $8 = $7;
  13015. HEAP32[$8>>2] = 1430406468;
  13016. $9 = (($7) + 4)|0;
  13017. $10 = $9;
  13018. HEAP32[$10>>2] = 2112071;
  13019. break;
  13020. }
  13021. default: {
  13022. }
  13023. }
  13024. (_strcat(19312,$1)|0);
  13025. $strlen = (_strlen(19312)|0);
  13026. $endptr = (19312 + ($strlen)|0);
  13027. HEAP8[$endptr>>0]=10&255;HEAP8[$endptr+1>>0]=10>>8;
  13028. HEAP32[$2>>2] = $varargs;
  13029. $11 = ($0|0)==(3);
  13030. if ($11) {
  13031. STACKTOP = sp;return;
  13032. }
  13033. (_vprintf(19312,$2)|0);
  13034. $12 = ($0|0)==(2);
  13035. if ($12) {
  13036. _exit(1);
  13037. // unreachable;
  13038. } else {
  13039. STACKTOP = sp;return;
  13040. }
  13041. }
  13042. function _DecompressData($0,$1,$2) {
  13043. $0 = $0|0;
  13044. $1 = $1|0;
  13045. $2 = $2|0;
  13046. 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;
  13047. sp = STACKTOP;
  13048. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  13049. $vararg_buffer10 = sp + 40|0;
  13050. $vararg_buffer7 = sp + 32|0;
  13051. $vararg_buffer5 = sp + 24|0;
  13052. $vararg_buffer3 = sp + 16|0;
  13053. $vararg_buffer1 = sp + 8|0;
  13054. $vararg_buffer = sp;
  13055. $3 = (_malloc($2)|0);
  13056. $4 = ($3|0)==(0|0);
  13057. if ($4) {
  13058. _TraceLog(1,5508,$vararg_buffer);
  13059. STACKTOP = sp;return ($3|0);
  13060. }
  13061. $5 = (_tinfl_decompress_mem_to_mem($3,$2,$0,$1,1)|0);
  13062. $6 = ($5|0)==(-1);
  13063. if ($6) {
  13064. _TraceLog(1,5547,$vararg_buffer1);
  13065. _free($3);
  13066. }
  13067. $7 = ($5|0)==($2|0);
  13068. if (!($7)) {
  13069. _TraceLog(1,5573,$vararg_buffer3);
  13070. HEAP32[$vararg_buffer5>>2] = $2;
  13071. _TraceLog(1,5636,$vararg_buffer5);
  13072. HEAP32[$vararg_buffer7>>2] = $5;
  13073. _TraceLog(1,5671,$vararg_buffer7);
  13074. }
  13075. HEAP32[$vararg_buffer10>>2] = $1;
  13076. $vararg_ptr13 = ((($vararg_buffer10)) + 4|0);
  13077. HEAP32[$vararg_ptr13>>2] = $5;
  13078. _TraceLog(0,5706,$vararg_buffer10);
  13079. STACKTOP = sp;return ($3|0);
  13080. }
  13081. function _UnloadResource($0) {
  13082. $0 = $0|0;
  13083. var $1 = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  13084. sp = STACKTOP;
  13085. $1 = ((($0)) + 20|0);
  13086. $2 = HEAP32[$1>>2]|0;
  13087. $3 = ($2|0)==(0|0);
  13088. if ($3) {
  13089. return;
  13090. }
  13091. _free($2);
  13092. return;
  13093. }
  13094. function _LoadDefaultFont() {
  13095. 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;
  13096. 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;
  13097. 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;
  13098. var $vararg_buffer = 0, label = 0, sp = 0;
  13099. sp = STACKTOP;
  13100. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  13101. $$byval_copy1 = sp + 44|0;
  13102. $vararg_buffer = sp;
  13103. $0 = sp + 4|0;
  13104. $1 = sp + 24|0;
  13105. HEAP32[(20632)>>2] = 224;
  13106. $2 = (_malloc(65536)|0);
  13107. _memset(($2|0),0,65536)|0;
  13108. $$095104 = 0;$$096103 = 0;
  13109. while(1) {
  13110. $3 = (116 + ($$095104<<2)|0);
  13111. $4 = HEAP32[$3>>2]|0;
  13112. $$097102 = 31;
  13113. while(1) {
  13114. $16 = 1 << $$097102;
  13115. $17 = $4 & $16;
  13116. $18 = ($17|0)==(0);
  13117. if (!($18)) {
  13118. $19 = (($$097102) + ($$096103))|0;
  13119. $$sroa$0$0$$sroa_idx = (($2) + ($19<<2)|0);
  13120. 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;
  13121. }
  13122. $20 = (($$097102) + -1)|0;
  13123. $21 = ($$097102|0)>(0);
  13124. if ($21) {
  13125. $$097102 = $20;
  13126. } else {
  13127. break;
  13128. }
  13129. }
  13130. $12 = (($$095104) + 1)|0;
  13131. $13 = ($$095104|0)>(511);
  13132. $$ = $13 ? 0 : $12;
  13133. $14 = (($$096103) + 32)|0;
  13134. $15 = ($14|0)<(16384);
  13135. if ($15) {
  13136. $$095104 = $$;$$096103 = $14;
  13137. } else {
  13138. break;
  13139. }
  13140. }
  13141. _LoadImageEx($0,$2,128,128);
  13142. _ImageFormat($0,2);
  13143. _free($2);
  13144. ;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;
  13145. _LoadTextureFromImage($1,$$byval_copy1);
  13146. ;HEAP32[20608>>2]=HEAP32[$1>>2]|0;HEAP32[20608+4>>2]=HEAP32[$1+4>>2]|0;HEAP32[20608+8>>2]=HEAP32[$1+8>>2]|0;HEAP32[20608+12>>2]=HEAP32[$1+12>>2]|0;HEAP32[20608+16>>2]=HEAP32[$1+16>>2]|0;
  13147. ;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;
  13148. _UnloadImage($$byval_copy1);
  13149. $5 = HEAP32[(20632)>>2]|0;
  13150. $6 = $5 << 5;
  13151. $7 = (_malloc($6)|0);
  13152. HEAP32[(20636)>>2] = $7;
  13153. $8 = ($5|0)>(0);
  13154. if (!($8)) {
  13155. $$lcssa = $7;
  13156. $22 = ((($$lcssa)) + 16|0);
  13157. $23 = HEAP32[$22>>2]|0;
  13158. HEAP32[(20628)>>2] = $23;
  13159. $24 = HEAP32[5152]|0;
  13160. HEAP32[$vararg_buffer>>2] = $24;
  13161. _TraceLog(0,5780,$vararg_buffer);
  13162. STACKTOP = sp;return;
  13163. }
  13164. $9 = HEAP32[(20612)>>2]|0;
  13165. $10 = HEAP32[(20632)>>2]|0;
  13166. $11 = HEAP32[(20636)>>2]|0;
  13167. $$0101 = 0;$$090100 = 1;$$09299 = 0;$27 = $7;
  13168. while(1) {
  13169. $25 = (($$0101) + 32)|0;
  13170. $26 = (($27) + ($$0101<<5)|0);
  13171. HEAP32[$26>>2] = $25;
  13172. $28 = (((($27) + ($$0101<<5)|0)) + 4|0);
  13173. HEAP32[$28>>2] = $$090100;
  13174. $29 = ($$09299*11)|0;
  13175. $30 = (($29) + 1)|0;
  13176. $31 = (((($27) + ($$0101<<5)|0)) + 8|0);
  13177. HEAP32[$31>>2] = $30;
  13178. $32 = (2164 + ($$0101<<2)|0);
  13179. $33 = HEAP32[$32>>2]|0;
  13180. $34 = (((($27) + ($$0101<<5)|0)) + 12|0);
  13181. HEAP32[$34>>2] = $33;
  13182. $35 = (((($27) + ($$0101<<5)|0)) + 16|0);
  13183. HEAP32[$35>>2] = 10;
  13184. $36 = (($$090100) + 1)|0;
  13185. $37 = (($36) + ($33))|0;
  13186. $38 = ($37|0)<($9|0);
  13187. $39 = (($$09299) + 1)|0;
  13188. if ($38) {
  13189. $$191 = $37;$$193 = $$09299;
  13190. } else {
  13191. $40 = ($39*11)|0;
  13192. $41 = (($40) + 1)|0;
  13193. $42 = (($33) + 2)|0;
  13194. HEAP32[$28>>2] = 1;
  13195. HEAP32[$31>>2] = $41;
  13196. $$191 = $42;$$193 = $39;
  13197. }
  13198. $43 = (((($27) + ($$0101<<5)|0)) + 20|0);
  13199. HEAP32[$43>>2] = 0;
  13200. $44 = (((($27) + ($$0101<<5)|0)) + 24|0);
  13201. HEAP32[$44>>2] = 0;
  13202. $45 = (((($27) + ($$0101<<5)|0)) + 28|0);
  13203. HEAP32[$45>>2] = 0;
  13204. $46 = (($$0101) + 1)|0;
  13205. $47 = ($46|0)<($10|0);
  13206. if ($47) {
  13207. $$0101 = $46;$$090100 = $$191;$$09299 = $$193;$27 = $11;
  13208. } else {
  13209. $$lcssa = $11;
  13210. break;
  13211. }
  13212. }
  13213. $22 = ((($$lcssa)) + 16|0);
  13214. $23 = HEAP32[$22>>2]|0;
  13215. HEAP32[(20628)>>2] = $23;
  13216. $24 = HEAP32[5152]|0;
  13217. HEAP32[$vararg_buffer>>2] = $24;
  13218. _TraceLog(0,5780,$vararg_buffer);
  13219. STACKTOP = sp;return;
  13220. }
  13221. function _LoadImageEx($0,$1,$2,$3) {
  13222. $0 = $0|0;
  13223. $1 = $1|0;
  13224. $2 = $2|0;
  13225. $3 = $3|0;
  13226. 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;
  13227. 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;
  13228. sp = STACKTOP;
  13229. $4 = $2 << 2;
  13230. $5 = Math_imul($4, $3)|0;
  13231. $6 = (_malloc($5)|0);
  13232. $7 = ($5|0)>(0);
  13233. if ($7) {
  13234. $8 = (($5) + -1)|0;
  13235. $9 = $8 >>> 2;
  13236. $$03334 = 0;$$035 = 0;
  13237. while(1) {
  13238. $10 = (($1) + ($$03334<<2)|0);
  13239. $11 = HEAP8[$10>>0]|0;
  13240. $12 = (($6) + ($$035)|0);
  13241. HEAP8[$12>>0] = $11;
  13242. $13 = (((($1) + ($$03334<<2)|0)) + 1|0);
  13243. $14 = HEAP8[$13>>0]|0;
  13244. $15 = $$035 | 1;
  13245. $16 = (($6) + ($15)|0);
  13246. HEAP8[$16>>0] = $14;
  13247. $17 = (((($1) + ($$03334<<2)|0)) + 2|0);
  13248. $18 = HEAP8[$17>>0]|0;
  13249. $19 = $$035 | 2;
  13250. $20 = (($6) + ($19)|0);
  13251. HEAP8[$20>>0] = $18;
  13252. $21 = (((($1) + ($$03334<<2)|0)) + 3|0);
  13253. $22 = HEAP8[$21>>0]|0;
  13254. $23 = $$035 | 3;
  13255. $24 = (($6) + ($23)|0);
  13256. HEAP8[$24>>0] = $22;
  13257. $25 = (($$03334) + 1)|0;
  13258. $26 = (($$035) + 4)|0;
  13259. $exitcond = ($$03334|0)==($9|0);
  13260. if ($exitcond) {
  13261. break;
  13262. } else {
  13263. $$03334 = $25;$$035 = $26;
  13264. }
  13265. }
  13266. }
  13267. HEAP32[$0>>2] = $6;
  13268. $$sroa$9$0$$sroa_idx18 = ((($0)) + 4|0);
  13269. HEAP32[$$sroa$9$0$$sroa_idx18>>2] = $2;
  13270. $$sroa$12$0$$sroa_idx21 = ((($0)) + 8|0);
  13271. HEAP32[$$sroa$12$0$$sroa_idx21>>2] = $3;
  13272. $$sroa$15$0$$sroa_idx24 = ((($0)) + 12|0);
  13273. HEAP32[$$sroa$15$0$$sroa_idx24>>2] = 1;
  13274. $$sroa$16$0$$sroa_idx26 = ((($0)) + 16|0);
  13275. HEAP32[$$sroa$16$0$$sroa_idx26>>2] = 7;
  13276. return;
  13277. }
  13278. function _ImageFormat($0,$1) {
  13279. $0 = $0|0;
  13280. $1 = $1|0;
  13281. 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;
  13282. 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;
  13283. 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;
  13284. 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;
  13285. 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;
  13286. 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;
  13287. 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;
  13288. 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;
  13289. 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;
  13290. 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;
  13291. 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;
  13292. 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;
  13293. 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;
  13294. 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;
  13295. 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;
  13296. 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;
  13297. sp = STACKTOP;
  13298. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  13299. $$byval_copy = sp + 4|0;
  13300. $vararg_buffer = sp;
  13301. $2 = ((($0)) + 16|0);
  13302. $3 = HEAP32[$2>>2]|0;
  13303. $4 = ($3|0)==($1|0);
  13304. if ($4) {
  13305. STACKTOP = sp;return;
  13306. }
  13307. $5 = ($3|0)<(9);
  13308. $6 = ($1|0)<(9);
  13309. $or$cond = $6 & $5;
  13310. if (!($or$cond)) {
  13311. _TraceLog(1,6177,$vararg_buffer);
  13312. STACKTOP = sp;return;
  13313. }
  13314. ;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;
  13315. $7 = (_GetImageData($$byval_copy)|0);
  13316. $8 = HEAP32[$0>>2]|0;
  13317. _free($8);
  13318. HEAP32[$2>>2] = $1;
  13319. switch ($1|0) {
  13320. case 1: {
  13321. $9 = ((($0)) + 4|0);
  13322. $10 = HEAP32[$9>>2]|0;
  13323. $11 = ((($0)) + 8|0);
  13324. $12 = HEAP32[$11>>2]|0;
  13325. $13 = Math_imul($12, $10)|0;
  13326. $14 = (_malloc($13)|0);
  13327. HEAP32[$0>>2] = $14;
  13328. $15 = Math_imul($12, $10)|0;
  13329. $16 = ($15|0)>(0);
  13330. if ($16) {
  13331. $$0171188 = 0;
  13332. while(1) {
  13333. $17 = (($7) + ($$0171188<<2)|0);
  13334. $18 = HEAP8[$17>>0]|0;
  13335. $19 = (+($18&255));
  13336. $20 = $19 * 0.29899999499320984;
  13337. $21 = (((($7) + ($$0171188<<2)|0)) + 1|0);
  13338. $22 = HEAP8[$21>>0]|0;
  13339. $23 = (+($22&255));
  13340. $24 = $23 * 0.58700001239776611;
  13341. $25 = $20 + $24;
  13342. $26 = (((($7) + ($$0171188<<2)|0)) + 2|0);
  13343. $27 = HEAP8[$26>>0]|0;
  13344. $28 = (+($27&255));
  13345. $29 = $28 * 0.11400000005960464;
  13346. $30 = $25 + $29;
  13347. $31 = (~~(($30))&255);
  13348. $32 = HEAP32[$0>>2]|0;
  13349. $33 = (($32) + ($$0171188)|0);
  13350. HEAP8[$33>>0] = $31;
  13351. $34 = (($$0171188) + 1)|0;
  13352. $35 = HEAP32[$9>>2]|0;
  13353. $36 = HEAP32[$11>>2]|0;
  13354. $37 = Math_imul($36, $35)|0;
  13355. $38 = ($34|0)<($37|0);
  13356. if ($38) {
  13357. $$0171188 = $34;
  13358. } else {
  13359. break;
  13360. }
  13361. }
  13362. }
  13363. break;
  13364. }
  13365. case 2: {
  13366. $39 = ((($0)) + 4|0);
  13367. $40 = HEAP32[$39>>2]|0;
  13368. $41 = ((($0)) + 8|0);
  13369. $42 = HEAP32[$41>>2]|0;
  13370. $43 = $40 << 1;
  13371. $44 = Math_imul($43, $42)|0;
  13372. $45 = (_malloc($44)|0);
  13373. HEAP32[$0>>2] = $45;
  13374. $46 = HEAP32[$39>>2]|0;
  13375. $47 = $46 << 1;
  13376. $48 = Math_imul($47, $42)|0;
  13377. $49 = ($48|0)>(0);
  13378. if ($49) {
  13379. $$0170190 = 0;$$0172189 = 0;
  13380. while(1) {
  13381. $50 = (($7) + ($$0172189<<2)|0);
  13382. $51 = HEAP8[$50>>0]|0;
  13383. $52 = (+($51&255));
  13384. $53 = $52 * 0.29899999499320984;
  13385. $54 = (((($7) + ($$0172189<<2)|0)) + 1|0);
  13386. $55 = HEAP8[$54>>0]|0;
  13387. $56 = (+($55&255));
  13388. $57 = $56 * 0.58700001239776611;
  13389. $58 = $53 + $57;
  13390. $59 = (((($7) + ($$0172189<<2)|0)) + 2|0);
  13391. $60 = HEAP8[$59>>0]|0;
  13392. $61 = (+($60&255));
  13393. $62 = $61 * 0.11400000005960464;
  13394. $63 = $58 + $62;
  13395. $64 = (~~(($63))&255);
  13396. $65 = HEAP32[$0>>2]|0;
  13397. $66 = (($65) + ($$0170190)|0);
  13398. HEAP8[$66>>0] = $64;
  13399. $67 = (((($7) + ($$0172189<<2)|0)) + 3|0);
  13400. $68 = HEAP8[$67>>0]|0;
  13401. $69 = HEAP32[$0>>2]|0;
  13402. $70 = $$0170190 | 1;
  13403. $71 = (($69) + ($70)|0);
  13404. HEAP8[$71>>0] = $68;
  13405. $72 = (($$0172189) + 1)|0;
  13406. $73 = (($$0170190) + 2)|0;
  13407. $74 = HEAP32[$39>>2]|0;
  13408. $75 = HEAP32[$41>>2]|0;
  13409. $76 = $74 << 1;
  13410. $77 = Math_imul($76, $75)|0;
  13411. $78 = ($73|0)<($77|0);
  13412. if ($78) {
  13413. $$0170190 = $73;$$0172189 = $72;
  13414. } else {
  13415. break;
  13416. }
  13417. }
  13418. }
  13419. break;
  13420. }
  13421. case 3: {
  13422. $79 = ((($0)) + 4|0);
  13423. $80 = HEAP32[$79>>2]|0;
  13424. $81 = ((($0)) + 8|0);
  13425. $82 = HEAP32[$81>>2]|0;
  13426. $83 = $80 << 1;
  13427. $84 = Math_imul($83, $82)|0;
  13428. $85 = (_malloc($84)|0);
  13429. HEAP32[$0>>2] = $85;
  13430. $86 = HEAP32[$79>>2]|0;
  13431. $87 = Math_imul($82, $86)|0;
  13432. $88 = ($87|0)>(0);
  13433. if ($88) {
  13434. $89 = HEAP8[$7>>0]|0;
  13435. $90 = (+($89&255));
  13436. $91 = $90 * 31.0;
  13437. $92 = $91 / 255.0;
  13438. $roundf179 = (+_roundf((+$92)));
  13439. $93 = (~~(($roundf179))&255);
  13440. $94 = ((($7)) + 1|0);
  13441. $95 = HEAP8[$94>>0]|0;
  13442. $96 = (+($95&255));
  13443. $97 = $96 * 63.0;
  13444. $98 = $97 / 255.0;
  13445. $roundf180 = (+_roundf((+$98)));
  13446. $99 = (~~(($roundf180))&255);
  13447. $100 = ((($7)) + 2|0);
  13448. $101 = HEAP8[$100>>0]|0;
  13449. $102 = (+($101&255));
  13450. $103 = $102 * 31.0;
  13451. $104 = $103 / 255.0;
  13452. $roundf181 = (+_roundf((+$104)));
  13453. $105 = (~~(($roundf181))&255);
  13454. $106 = $93&255;
  13455. $107 = $106 << 11;
  13456. $108 = $99&255;
  13457. $109 = $108 << 5;
  13458. $110 = $109 | $107;
  13459. $111 = $105&255;
  13460. $112 = $110 | $111;
  13461. $113 = $112&65535;
  13462. $114 = HEAP32[$0>>2]|0;
  13463. $115 = HEAP32[$79>>2]|0;
  13464. $116 = HEAP32[$81>>2]|0;
  13465. $117 = Math_imul($116, $115)|0;
  13466. $$0169192 = 0;
  13467. while(1) {
  13468. $118 = (($114) + ($$0169192<<1)|0);
  13469. HEAP16[$118>>1] = $113;
  13470. $119 = (($$0169192) + 1)|0;
  13471. $120 = ($119|0)<($117|0);
  13472. if ($120) {
  13473. $$0169192 = $119;
  13474. } else {
  13475. break;
  13476. }
  13477. }
  13478. }
  13479. break;
  13480. }
  13481. case 4: {
  13482. $121 = ((($0)) + 4|0);
  13483. $122 = HEAP32[$121>>2]|0;
  13484. $123 = ((($0)) + 8|0);
  13485. $124 = HEAP32[$123>>2]|0;
  13486. $125 = ($122*3)|0;
  13487. $126 = Math_imul($125, $124)|0;
  13488. $127 = (_malloc($126)|0);
  13489. HEAP32[$0>>2] = $127;
  13490. $128 = HEAP32[$121>>2]|0;
  13491. $129 = ($128*3)|0;
  13492. $130 = Math_imul($129, $124)|0;
  13493. $131 = ($130|0)>(0);
  13494. if ($131) {
  13495. $$0168195 = 0;$$1194 = 0;
  13496. while(1) {
  13497. $132 = (($7) + ($$1194<<2)|0);
  13498. $133 = HEAP8[$132>>0]|0;
  13499. $134 = HEAP32[$0>>2]|0;
  13500. $135 = (($134) + ($$0168195)|0);
  13501. HEAP8[$135>>0] = $133;
  13502. $136 = (((($7) + ($$1194<<2)|0)) + 1|0);
  13503. $137 = HEAP8[$136>>0]|0;
  13504. $138 = HEAP32[$0>>2]|0;
  13505. $139 = (($$0168195) + 1)|0;
  13506. $140 = (($138) + ($139)|0);
  13507. HEAP8[$140>>0] = $137;
  13508. $141 = (((($7) + ($$1194<<2)|0)) + 2|0);
  13509. $142 = HEAP8[$141>>0]|0;
  13510. $143 = HEAP32[$0>>2]|0;
  13511. $144 = (($$0168195) + 2)|0;
  13512. $145 = (($143) + ($144)|0);
  13513. HEAP8[$145>>0] = $142;
  13514. $146 = (($$1194) + 1)|0;
  13515. $147 = (($$0168195) + 3)|0;
  13516. $148 = HEAP32[$121>>2]|0;
  13517. $149 = HEAP32[$123>>2]|0;
  13518. $150 = ($148*3)|0;
  13519. $151 = Math_imul($150, $149)|0;
  13520. $152 = ($147|0)<($151|0);
  13521. if ($152) {
  13522. $$0168195 = $147;$$1194 = $146;
  13523. } else {
  13524. break;
  13525. }
  13526. }
  13527. }
  13528. break;
  13529. }
  13530. case 5: {
  13531. $153 = ((($0)) + 4|0);
  13532. $154 = HEAP32[$153>>2]|0;
  13533. $155 = ((($0)) + 8|0);
  13534. $156 = HEAP32[$155>>2]|0;
  13535. $157 = $154 << 1;
  13536. $158 = Math_imul($157, $156)|0;
  13537. $159 = (_malloc($158)|0);
  13538. HEAP32[$0>>2] = $159;
  13539. $160 = HEAP32[$153>>2]|0;
  13540. $161 = Math_imul($156, $160)|0;
  13541. $162 = ($161|0)>(0);
  13542. if ($162) {
  13543. $163 = HEAP32[$0>>2]|0;
  13544. $164 = HEAP32[$153>>2]|0;
  13545. $165 = HEAP32[$155>>2]|0;
  13546. $166 = Math_imul($165, $164)|0;
  13547. $$0167197 = 0;
  13548. while(1) {
  13549. $167 = (($7) + ($$0167197<<2)|0);
  13550. $168 = HEAP8[$167>>0]|0;
  13551. $169 = (+($168&255));
  13552. $170 = $169 * 31.0;
  13553. $171 = $170 / 255.0;
  13554. $roundf176 = (+_roundf((+$171)));
  13555. $172 = (~~(($roundf176))&255);
  13556. $173 = (((($7) + ($$0167197<<2)|0)) + 1|0);
  13557. $174 = HEAP8[$173>>0]|0;
  13558. $175 = (+($174&255));
  13559. $176 = $175 * 31.0;
  13560. $177 = $176 / 255.0;
  13561. $roundf177 = (+_roundf((+$177)));
  13562. $178 = (~~(($roundf177))&255);
  13563. $179 = (((($7) + ($$0167197<<2)|0)) + 2|0);
  13564. $180 = HEAP8[$179>>0]|0;
  13565. $181 = (+($180&255));
  13566. $182 = $181 * 31.0;
  13567. $183 = $182 / 255.0;
  13568. $roundf178 = (+_roundf((+$183)));
  13569. $184 = (~~(($roundf178))&255);
  13570. $185 = (((($7) + ($$0167197<<2)|0)) + 3|0);
  13571. $186 = HEAP8[$185>>0]|0;
  13572. $187 = ($186&255)>(50);
  13573. $188 = $172&255;
  13574. $189 = $188 << 11;
  13575. $190 = $178&255;
  13576. $191 = $190 << 6;
  13577. $192 = $191 | $189;
  13578. $193 = $184&255;
  13579. $194 = $193 << 1;
  13580. $195 = $192 | $194;
  13581. $196 = $187&1;
  13582. $197 = $195 | $196;
  13583. $198 = $197&65535;
  13584. $199 = (($163) + ($$0167197<<1)|0);
  13585. HEAP16[$199>>1] = $198;
  13586. $200 = (($$0167197) + 1)|0;
  13587. $201 = ($200|0)<($166|0);
  13588. if ($201) {
  13589. $$0167197 = $200;
  13590. } else {
  13591. break;
  13592. }
  13593. }
  13594. }
  13595. break;
  13596. }
  13597. case 6: {
  13598. $202 = ((($0)) + 4|0);
  13599. $203 = HEAP32[$202>>2]|0;
  13600. $204 = ((($0)) + 8|0);
  13601. $205 = HEAP32[$204>>2]|0;
  13602. $206 = $203 << 1;
  13603. $207 = Math_imul($206, $205)|0;
  13604. $208 = (_malloc($207)|0);
  13605. HEAP32[$0>>2] = $208;
  13606. $209 = HEAP32[$202>>2]|0;
  13607. $210 = Math_imul($205, $209)|0;
  13608. $211 = ($210|0)>(0);
  13609. if ($211) {
  13610. $212 = HEAP32[$0>>2]|0;
  13611. $213 = HEAP32[$202>>2]|0;
  13612. $214 = HEAP32[$204>>2]|0;
  13613. $215 = Math_imul($214, $213)|0;
  13614. $$0166199 = 0;
  13615. while(1) {
  13616. $216 = (($7) + ($$0166199<<2)|0);
  13617. $217 = HEAP8[$216>>0]|0;
  13618. $218 = (+($217&255));
  13619. $219 = $218 * 15.0;
  13620. $220 = $219 / 255.0;
  13621. $roundf = (+_roundf((+$220)));
  13622. $221 = (~~(($roundf))&255);
  13623. $222 = (((($7) + ($$0166199<<2)|0)) + 1|0);
  13624. $223 = HEAP8[$222>>0]|0;
  13625. $224 = (+($223&255));
  13626. $225 = $224 * 15.0;
  13627. $226 = $225 / 255.0;
  13628. $roundf173 = (+_roundf((+$226)));
  13629. $227 = (~~(($roundf173))&255);
  13630. $228 = (((($7) + ($$0166199<<2)|0)) + 2|0);
  13631. $229 = HEAP8[$228>>0]|0;
  13632. $230 = (+($229&255));
  13633. $231 = $230 * 15.0;
  13634. $232 = $231 / 255.0;
  13635. $roundf174 = (+_roundf((+$232)));
  13636. $233 = (~~(($roundf174))&255);
  13637. $234 = (((($7) + ($$0166199<<2)|0)) + 3|0);
  13638. $235 = HEAP8[$234>>0]|0;
  13639. $236 = (+($235&255));
  13640. $237 = $236 * 15.0;
  13641. $238 = $237 / 255.0;
  13642. $roundf175 = (+_roundf((+$238)));
  13643. $239 = (~~(($roundf175))&255);
  13644. $240 = $221&255;
  13645. $241 = $240 << 12;
  13646. $242 = $227&255;
  13647. $243 = $242 << 8;
  13648. $244 = $243 | $241;
  13649. $245 = $233&255;
  13650. $246 = $245 << 4;
  13651. $247 = $244 | $246;
  13652. $248 = $239&255;
  13653. $249 = $247 | $248;
  13654. $250 = $249&65535;
  13655. $251 = (($212) + ($$0166199<<1)|0);
  13656. HEAP16[$251>>1] = $250;
  13657. $252 = (($$0166199) + 1)|0;
  13658. $253 = ($252|0)<($215|0);
  13659. if ($253) {
  13660. $$0166199 = $252;
  13661. } else {
  13662. break;
  13663. }
  13664. }
  13665. }
  13666. break;
  13667. }
  13668. case 7: {
  13669. $254 = ((($0)) + 4|0);
  13670. $255 = HEAP32[$254>>2]|0;
  13671. $256 = ((($0)) + 8|0);
  13672. $257 = HEAP32[$256>>2]|0;
  13673. $258 = $255 << 2;
  13674. $259 = Math_imul($258, $257)|0;
  13675. $260 = (_malloc($259)|0);
  13676. HEAP32[$0>>2] = $260;
  13677. $261 = HEAP32[$254>>2]|0;
  13678. $262 = $261 << 2;
  13679. $263 = Math_imul($262, $257)|0;
  13680. $264 = ($263|0)>(0);
  13681. if ($264) {
  13682. $$0202 = 0;$$2201 = 0;
  13683. while(1) {
  13684. $265 = (($7) + ($$2201<<2)|0);
  13685. $266 = HEAP8[$265>>0]|0;
  13686. $267 = HEAP32[$0>>2]|0;
  13687. $268 = (($267) + ($$0202)|0);
  13688. HEAP8[$268>>0] = $266;
  13689. $269 = (((($7) + ($$2201<<2)|0)) + 1|0);
  13690. $270 = HEAP8[$269>>0]|0;
  13691. $271 = HEAP32[$0>>2]|0;
  13692. $272 = $$0202 | 1;
  13693. $273 = (($271) + ($272)|0);
  13694. HEAP8[$273>>0] = $270;
  13695. $274 = (((($7) + ($$2201<<2)|0)) + 2|0);
  13696. $275 = HEAP8[$274>>0]|0;
  13697. $276 = HEAP32[$0>>2]|0;
  13698. $277 = $$0202 | 2;
  13699. $278 = (($276) + ($277)|0);
  13700. HEAP8[$278>>0] = $275;
  13701. $279 = (((($7) + ($$2201<<2)|0)) + 3|0);
  13702. $280 = HEAP8[$279>>0]|0;
  13703. $281 = HEAP32[$0>>2]|0;
  13704. $282 = $$0202 | 3;
  13705. $283 = (($281) + ($282)|0);
  13706. HEAP8[$283>>0] = $280;
  13707. $284 = (($$2201) + 1)|0;
  13708. $285 = (($$0202) + 4)|0;
  13709. $286 = HEAP32[$254>>2]|0;
  13710. $287 = HEAP32[$256>>2]|0;
  13711. $288 = $286 << 2;
  13712. $289 = Math_imul($288, $287)|0;
  13713. $290 = ($285|0)<($289|0);
  13714. if ($290) {
  13715. $$0202 = $285;$$2201 = $284;
  13716. } else {
  13717. break;
  13718. }
  13719. }
  13720. }
  13721. break;
  13722. }
  13723. default: {
  13724. }
  13725. }
  13726. _free($7);
  13727. STACKTOP = sp;return;
  13728. }
  13729. function _LoadTextureFromImage($0,$1) {
  13730. $0 = $0|0;
  13731. $1 = $1|0;
  13732. var $$sroa$10$0$$sroa_idx6 = 0, $$sroa$12$0$$sroa_idx8 = 0, $$sroa$6$0$$sroa_idx2 = 0, $$sroa$8$0$$sroa_idx4 = 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, $vararg_buffer = 0, $vararg_ptr1 = 0, $vararg_ptr2 = 0, $vararg_ptr3 = 0;
  13733. var $vararg_ptr4 = 0, label = 0, sp = 0;
  13734. sp = STACKTOP;
  13735. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  13736. $vararg_buffer = sp;
  13737. $2 = HEAP32[$1>>2]|0;
  13738. $3 = ((($1)) + 4|0);
  13739. $4 = HEAP32[$3>>2]|0;
  13740. $5 = ((($1)) + 8|0);
  13741. $6 = HEAP32[$5>>2]|0;
  13742. $7 = ((($1)) + 16|0);
  13743. $8 = HEAP32[$7>>2]|0;
  13744. $9 = ((($1)) + 12|0);
  13745. $10 = HEAP32[$9>>2]|0;
  13746. $11 = (_rlglLoadTexture($2,$4,$6,$8,$10)|0);
  13747. $12 = HEAP32[$3>>2]|0;
  13748. $13 = HEAP32[$5>>2]|0;
  13749. HEAP32[$vararg_buffer>>2] = $11;
  13750. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  13751. HEAP32[$vararg_ptr1>>2] = $12;
  13752. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  13753. HEAP32[$vararg_ptr2>>2] = $13;
  13754. $vararg_ptr3 = ((($vararg_buffer)) + 12|0);
  13755. HEAP32[$vararg_ptr3>>2] = $10;
  13756. $vararg_ptr4 = ((($vararg_buffer)) + 16|0);
  13757. HEAP32[$vararg_ptr4>>2] = $8;
  13758. _TraceLog(3,5825,$vararg_buffer);
  13759. HEAP32[$0>>2] = $11;
  13760. $$sroa$6$0$$sroa_idx2 = ((($0)) + 4|0);
  13761. HEAP32[$$sroa$6$0$$sroa_idx2>>2] = $12;
  13762. $$sroa$8$0$$sroa_idx4 = ((($0)) + 8|0);
  13763. HEAP32[$$sroa$8$0$$sroa_idx4>>2] = $13;
  13764. $$sroa$10$0$$sroa_idx6 = ((($0)) + 12|0);
  13765. HEAP32[$$sroa$10$0$$sroa_idx6>>2] = $10;
  13766. $$sroa$12$0$$sroa_idx8 = ((($0)) + 16|0);
  13767. HEAP32[$$sroa$12$0$$sroa_idx8>>2] = $8;
  13768. STACKTOP = sp;return;
  13769. }
  13770. function _UnloadImage($0) {
  13771. $0 = $0|0;
  13772. var $1 = 0, label = 0, sp = 0;
  13773. sp = STACKTOP;
  13774. $1 = HEAP32[$0>>2]|0;
  13775. _free($1);
  13776. return;
  13777. }
  13778. function _rlglLoadTexture($0,$1,$2,$3,$4) {
  13779. $0 = $0|0;
  13780. $1 = $1|0;
  13781. $2 = $2|0;
  13782. $3 = $3|0;
  13783. $4 = $4|0;
  13784. var $$0 = 0, $$off = 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;
  13785. var $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, $46 = 0, $47 = 0;
  13786. var $48 = 0, $49 = 0, $5 = 0, $50 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, $or$cond101 = 0, $or$cond7 = 0, $or$cond97 = 0, $or$cond99 = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, $vararg_buffer11 = 0, $vararg_buffer15 = 0, $vararg_buffer3 = 0, $vararg_buffer5 = 0, $vararg_buffer7 = 0;
  13787. var $vararg_buffer9 = 0, $vararg_ptr13 = 0, $vararg_ptr14 = 0, label = 0, sp = 0;
  13788. sp = STACKTOP;
  13789. STACKTOP = STACKTOP + 80|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(80|0);
  13790. $vararg_buffer15 = sp + 64|0;
  13791. $vararg_buffer11 = sp + 48|0;
  13792. $vararg_buffer9 = sp + 40|0;
  13793. $vararg_buffer7 = sp + 32|0;
  13794. $vararg_buffer5 = sp + 24|0;
  13795. $vararg_buffer3 = sp + 16|0;
  13796. $vararg_buffer1 = sp + 8|0;
  13797. $vararg_buffer = sp;
  13798. $5 = sp + 68|0;
  13799. _glBindTexture(3553,0);
  13800. HEAP32[$5>>2] = 0;
  13801. $6 = HEAP32[5160]|0;
  13802. $7 = ($6|0)==(0);
  13803. $$off = (($3) + -9)|0;
  13804. $8 = ($$off>>>0)<(4);
  13805. $or$cond = $8 & $7;
  13806. if ($or$cond) {
  13807. _TraceLog(1,5875,$vararg_buffer);
  13808. $$0 = HEAP32[$5>>2]|0;
  13809. STACKTOP = sp;return ($$0|0);
  13810. }
  13811. $9 = HEAP32[5161]|0;
  13812. $10 = ($9|0)==(0);
  13813. $11 = ($3|0)==(13);
  13814. $or$cond7 = $11 & $10;
  13815. if ($or$cond7) {
  13816. _TraceLog(1,5919,$vararg_buffer1);
  13817. $$0 = HEAP32[$5>>2]|0;
  13818. STACKTOP = sp;return ($$0|0);
  13819. }
  13820. $12 = HEAP32[5162]|0;
  13821. $13 = ($12|0)==(0);
  13822. $14 = $3 | 1;
  13823. $15 = ($14|0)==(15);
  13824. $or$cond97 = $15 & $13;
  13825. if ($or$cond97) {
  13826. _TraceLog(1,5964,$vararg_buffer3);
  13827. $$0 = HEAP32[$5>>2]|0;
  13828. STACKTOP = sp;return ($$0|0);
  13829. }
  13830. $16 = HEAP32[5163]|0;
  13831. $17 = ($16|0)==(0);
  13832. $18 = ($14|0)==(17);
  13833. $or$cond99 = $18 & $17;
  13834. if ($or$cond99) {
  13835. _TraceLog(1,6009,$vararg_buffer5);
  13836. $$0 = HEAP32[$5>>2]|0;
  13837. STACKTOP = sp;return ($$0|0);
  13838. }
  13839. $19 = HEAP32[5164]|0;
  13840. $20 = ($19|0)==(0);
  13841. $21 = ($14|0)==(19);
  13842. $or$cond101 = $21 & $20;
  13843. if ($or$cond101) {
  13844. _TraceLog(1,6054,$vararg_buffer7);
  13845. $$0 = HEAP32[$5>>2]|0;
  13846. STACKTOP = sp;return ($$0|0);
  13847. }
  13848. _glGenTextures(1,($5|0));
  13849. $22 = HEAP32[$5>>2]|0;
  13850. _glBindTexture(3553,($22|0));
  13851. do {
  13852. switch ($3|0) {
  13853. case 1: {
  13854. _glTexImage2D(3553,0,6409,($1|0),($2|0),0,6409,5121,($0|0));
  13855. break;
  13856. }
  13857. case 2: {
  13858. _glTexImage2D(3553,0,6410,($1|0),($2|0),0,6410,5121,($0|0));
  13859. break;
  13860. }
  13861. case 3: {
  13862. _glTexImage2D(3553,0,6407,($1|0),($2|0),0,6407,33635,($0|0));
  13863. break;
  13864. }
  13865. case 4: {
  13866. _glTexImage2D(3553,0,6407,($1|0),($2|0),0,6407,5121,($0|0));
  13867. break;
  13868. }
  13869. case 5: {
  13870. _glTexImage2D(3553,0,6408,($1|0),($2|0),0,6408,32820,($0|0));
  13871. break;
  13872. }
  13873. case 6: {
  13874. _glTexImage2D(3553,0,6408,($1|0),($2|0),0,6408,32819,($0|0));
  13875. break;
  13876. }
  13877. case 7: {
  13878. _glTexImage2D(3553,0,6408,($1|0),($2|0),0,6408,5121,($0|0));
  13879. break;
  13880. }
  13881. case 8: {
  13882. $23 = HEAP32[5165]|0;
  13883. $24 = ($23|0)==(0);
  13884. if (!($24)) {
  13885. _glTexImage2D(3553,0,6407,($1|0),($2|0),0,6407,5126,($0|0));
  13886. }
  13887. break;
  13888. }
  13889. case 9: {
  13890. $25 = HEAP32[5160]|0;
  13891. $26 = ($25|0)==(0);
  13892. if (!($26)) {
  13893. _LoadCompressedTexture($0,$1,$2,$4,33776);
  13894. }
  13895. break;
  13896. }
  13897. case 10: {
  13898. $27 = HEAP32[5160]|0;
  13899. $28 = ($27|0)==(0);
  13900. if (!($28)) {
  13901. _LoadCompressedTexture($0,$1,$2,$4,33777);
  13902. }
  13903. break;
  13904. }
  13905. case 11: {
  13906. $29 = HEAP32[5160]|0;
  13907. $30 = ($29|0)==(0);
  13908. if (!($30)) {
  13909. _LoadCompressedTexture($0,$1,$2,$4,33778);
  13910. }
  13911. break;
  13912. }
  13913. case 12: {
  13914. $31 = HEAP32[5160]|0;
  13915. $32 = ($31|0)==(0);
  13916. if (!($32)) {
  13917. _LoadCompressedTexture($0,$1,$2,$4,33779);
  13918. }
  13919. break;
  13920. }
  13921. case 13: {
  13922. $33 = HEAP32[5161]|0;
  13923. $34 = ($33|0)==(0);
  13924. if (!($34)) {
  13925. _LoadCompressedTexture($0,$1,$2,$4,36196);
  13926. }
  13927. break;
  13928. }
  13929. case 14: {
  13930. $35 = HEAP32[5162]|0;
  13931. $36 = ($35|0)==(0);
  13932. if (!($36)) {
  13933. _LoadCompressedTexture($0,$1,$2,$4,37492);
  13934. }
  13935. break;
  13936. }
  13937. case 15: {
  13938. $37 = HEAP32[5162]|0;
  13939. $38 = ($37|0)==(0);
  13940. if (!($38)) {
  13941. _LoadCompressedTexture($0,$1,$2,$4,37496);
  13942. }
  13943. break;
  13944. }
  13945. case 16: {
  13946. $39 = HEAP32[5163]|0;
  13947. $40 = ($39|0)==(0);
  13948. if (!($40)) {
  13949. _LoadCompressedTexture($0,$1,$2,$4,35840);
  13950. }
  13951. break;
  13952. }
  13953. case 17: {
  13954. $41 = HEAP32[5163]|0;
  13955. $42 = ($41|0)==(0);
  13956. if (!($42)) {
  13957. _LoadCompressedTexture($0,$1,$2,$4,35842);
  13958. }
  13959. break;
  13960. }
  13961. case 18: {
  13962. $43 = HEAP32[5164]|0;
  13963. $44 = ($43|0)==(0);
  13964. if (!($44)) {
  13965. _LoadCompressedTexture($0,$1,$2,$4,37808);
  13966. }
  13967. break;
  13968. }
  13969. case 19: {
  13970. $45 = HEAP32[5164]|0;
  13971. $46 = ($45|0)==(0);
  13972. if (!($46)) {
  13973. _LoadCompressedTexture($0,$1,$2,$4,37815);
  13974. }
  13975. break;
  13976. }
  13977. default: {
  13978. _TraceLog(1,6099,$vararg_buffer9);
  13979. }
  13980. }
  13981. } while(0);
  13982. $47 = HEAP32[5166]|0;
  13983. $48 = ($47|0)==(0);
  13984. if ($48) {
  13985. _glTexParameteri(3553,10242,33071);
  13986. _glTexParameteri(3553,10243,33071);
  13987. } else {
  13988. _glTexParameteri(3553,10242,10497);
  13989. _glTexParameteri(3553,10243,10497);
  13990. }
  13991. _glTexParameteri(3553,10240,9728);
  13992. _glTexParameteri(3553,10241,9728);
  13993. _glBindTexture(3553,0);
  13994. $49 = HEAP32[$5>>2]|0;
  13995. $50 = ($49|0)==(0);
  13996. if ($50) {
  13997. _TraceLog(1,8347,$vararg_buffer15);
  13998. $$0 = HEAP32[$5>>2]|0;
  13999. STACKTOP = sp;return ($$0|0);
  14000. } else {
  14001. HEAP32[$vararg_buffer11>>2] = $49;
  14002. $vararg_ptr13 = ((($vararg_buffer11)) + 4|0);
  14003. HEAP32[$vararg_ptr13>>2] = $1;
  14004. $vararg_ptr14 = ((($vararg_buffer11)) + 8|0);
  14005. HEAP32[$vararg_ptr14>>2] = $2;
  14006. _TraceLog(0,6128,$vararg_buffer11);
  14007. $$0 = HEAP32[$5>>2]|0;
  14008. STACKTOP = sp;return ($$0|0);
  14009. }
  14010. return (0)|0;
  14011. }
  14012. function _LoadCompressedTexture($0,$1,$2,$3,$4) {
  14013. $0 = $0|0;
  14014. $1 = $1|0;
  14015. $2 = $2|0;
  14016. $3 = $3|0;
  14017. $4 = $4|0;
  14018. 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;
  14019. var $23 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, $or$cond42 = 0, label = 0, sp = 0;
  14020. sp = STACKTOP;
  14021. _glPixelStorei(3317,1);
  14022. switch ($4|0) {
  14023. case 33776: case 33777: case 36196: case 37492: {
  14024. $$038 = 8;
  14025. break;
  14026. }
  14027. default: {
  14028. $$038 = 16;
  14029. }
  14030. }
  14031. $5 = ($3|0)<(1);
  14032. $6 = $1 | $2;
  14033. $7 = ($6|0)==(0);
  14034. $or$cond42 = $5 | $7;
  14035. if ($or$cond42) {
  14036. return;
  14037. } else {
  14038. $$03645 = 0;$$03744 = 0;$$03943 = $2;$$046 = $1;
  14039. }
  14040. while(1) {
  14041. $8 = (($$046) + 3)|0;
  14042. $9 = (($8|0) / 4)&-1;
  14043. $10 = (($$03943) + 3)|0;
  14044. $11 = (($10|0) / 4)&-1;
  14045. $12 = Math_imul($11, $$038)|0;
  14046. $13 = Math_imul($12, $9)|0;
  14047. $14 = (($0) + ($$03744)|0);
  14048. _glCompressedTexImage2D(3553,($$03645|0),($4|0),($$046|0),($$03943|0),0,($13|0),($14|0));
  14049. $15 = (($13) + ($$03744))|0;
  14050. $16 = (($$046|0) / 2)&-1;
  14051. $17 = (($$03943|0) / 2)&-1;
  14052. $18 = ($$046|0)<(2);
  14053. $$ = $18 ? 1 : $16;
  14054. $19 = ($$03943|0)<(2);
  14055. $$140 = $19 ? 1 : $17;
  14056. $20 = (($$03645) + 1)|0;
  14057. $21 = ($20|0)>=($3|0);
  14058. $22 = $$ | $$140;
  14059. $23 = ($22|0)==(0);
  14060. $or$cond = $21 | $23;
  14061. if ($or$cond) {
  14062. break;
  14063. } else {
  14064. $$03645 = $20;$$03744 = $15;$$03943 = $$140;$$046 = $$;
  14065. }
  14066. }
  14067. return;
  14068. }
  14069. function _GetImageData($0) {
  14070. $0 = $0|0;
  14071. 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;
  14072. 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;
  14073. 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;
  14074. 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;
  14075. 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;
  14076. 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;
  14077. 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;
  14078. var $97 = 0.0, $98 = 0.0, $99 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  14079. sp = STACKTOP;
  14080. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  14081. $vararg_buffer = sp;
  14082. $1 = ((($0)) + 4|0);
  14083. $2 = HEAP32[$1>>2]|0;
  14084. $3 = ((($0)) + 8|0);
  14085. $4 = HEAP32[$3>>2]|0;
  14086. $5 = $2 << 2;
  14087. $6 = Math_imul($5, $4)|0;
  14088. $7 = (_malloc($6)|0);
  14089. $8 = HEAP32[$1>>2]|0;
  14090. $9 = Math_imul($4, $8)|0;
  14091. $10 = ($9|0)>(0);
  14092. if (!($10)) {
  14093. STACKTOP = sp;return ($7|0);
  14094. }
  14095. $11 = ((($0)) + 16|0);
  14096. $12 = HEAP32[$11>>2]|0;
  14097. $13 = HEAP32[$0>>2]|0;
  14098. $$0104105 = 0;$$0106 = 0;
  14099. while(1) {
  14100. switch ($12|0) {
  14101. case 1: {
  14102. $14 = (($13) + ($$0106)|0);
  14103. $15 = HEAP8[$14>>0]|0;
  14104. $16 = (($7) + ($$0104105<<2)|0);
  14105. HEAP8[$16>>0] = $15;
  14106. $17 = HEAP8[$14>>0]|0;
  14107. $18 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  14108. HEAP8[$18>>0] = $17;
  14109. $19 = HEAP8[$14>>0]|0;
  14110. $20 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  14111. HEAP8[$20>>0] = $19;
  14112. $21 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  14113. HEAP8[$21>>0] = -1;
  14114. $22 = (($$0106) + 1)|0;
  14115. $$1 = $22;
  14116. break;
  14117. }
  14118. case 2: {
  14119. $23 = (($13) + ($$0106)|0);
  14120. $24 = HEAP8[$23>>0]|0;
  14121. $25 = (($7) + ($$0104105<<2)|0);
  14122. HEAP8[$25>>0] = $24;
  14123. $26 = HEAP8[$23>>0]|0;
  14124. $27 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  14125. HEAP8[$27>>0] = $26;
  14126. $28 = HEAP8[$23>>0]|0;
  14127. $29 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  14128. HEAP8[$29>>0] = $28;
  14129. $30 = (($$0106) + 1)|0;
  14130. $31 = (($13) + ($30)|0);
  14131. $32 = HEAP8[$31>>0]|0;
  14132. $33 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  14133. HEAP8[$33>>0] = $32;
  14134. $34 = (($$0106) + 2)|0;
  14135. $$1 = $34;
  14136. break;
  14137. }
  14138. case 5: {
  14139. $35 = (($13) + ($$0106<<1)|0);
  14140. $36 = HEAP16[$35>>1]|0;
  14141. $37 = $36&65535;
  14142. $38 = $37 >>> 11;
  14143. $39 = (+($38|0));
  14144. $40 = $39 * 8.0;
  14145. $41 = (~~(($40))&255);
  14146. $42 = (($7) + ($$0104105<<2)|0);
  14147. HEAP8[$42>>0] = $41;
  14148. $43 = $37 >>> 6;
  14149. $44 = $43 & 31;
  14150. $45 = (+($44|0));
  14151. $46 = $45 * 8.0;
  14152. $47 = (~~(($46))&255);
  14153. $48 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  14154. HEAP8[$48>>0] = $47;
  14155. $49 = $37 >>> 1;
  14156. $50 = $49 & 31;
  14157. $51 = (+($50|0));
  14158. $52 = $51 * 8.0;
  14159. $53 = (~~(($52))&255);
  14160. $54 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  14161. HEAP8[$54>>0] = $53;
  14162. $55 = $37 & 1;
  14163. $56 = (0 - ($55))|0;
  14164. $57 = $56&255;
  14165. $58 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  14166. HEAP8[$58>>0] = $57;
  14167. $59 = (($$0106) + 1)|0;
  14168. $$1 = $59;
  14169. break;
  14170. }
  14171. case 3: {
  14172. $60 = (($13) + ($$0106<<1)|0);
  14173. $61 = HEAP16[$60>>1]|0;
  14174. $62 = $61&65535;
  14175. $63 = $62 >>> 11;
  14176. $64 = (+($63|0));
  14177. $65 = $64 * 8.0;
  14178. $66 = (~~(($65))&255);
  14179. $67 = (($7) + ($$0104105<<2)|0);
  14180. HEAP8[$67>>0] = $66;
  14181. $68 = $62 >>> 5;
  14182. $69 = $68 & 63;
  14183. $70 = (+($69|0));
  14184. $71 = $70 * 4.0;
  14185. $72 = (~~(($71))&255);
  14186. $73 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  14187. HEAP8[$73>>0] = $72;
  14188. $74 = $62 & 31;
  14189. $75 = (+($74|0));
  14190. $76 = $75 * 8.0;
  14191. $77 = (~~(($76))&255);
  14192. $78 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  14193. HEAP8[$78>>0] = $77;
  14194. $79 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  14195. HEAP8[$79>>0] = -1;
  14196. $80 = (($$0106) + 1)|0;
  14197. $$1 = $80;
  14198. break;
  14199. }
  14200. case 6: {
  14201. $81 = (($13) + ($$0106<<1)|0);
  14202. $82 = HEAP16[$81>>1]|0;
  14203. $83 = $82&65535;
  14204. $84 = $83 >>> 12;
  14205. $85 = (+($84|0));
  14206. $86 = $85 * 17.0;
  14207. $87 = (~~(($86))&255);
  14208. $88 = (($7) + ($$0104105<<2)|0);
  14209. HEAP8[$88>>0] = $87;
  14210. $89 = $83 >>> 8;
  14211. $90 = $89 & 15;
  14212. $91 = (+($90|0));
  14213. $92 = $91 * 17.0;
  14214. $93 = (~~(($92))&255);
  14215. $94 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  14216. HEAP8[$94>>0] = $93;
  14217. $95 = $83 >>> 4;
  14218. $96 = $95 & 15;
  14219. $97 = (+($96|0));
  14220. $98 = $97 * 17.0;
  14221. $99 = (~~(($98))&255);
  14222. $100 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  14223. HEAP8[$100>>0] = $99;
  14224. $101 = $83 & 15;
  14225. $102 = (+($101|0));
  14226. $103 = $102 * 17.0;
  14227. $104 = (~~(($103))&255);
  14228. $105 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  14229. HEAP8[$105>>0] = $104;
  14230. $106 = (($$0106) + 1)|0;
  14231. $$1 = $106;
  14232. break;
  14233. }
  14234. case 7: {
  14235. $107 = (($13) + ($$0106)|0);
  14236. $108 = HEAP8[$107>>0]|0;
  14237. $109 = (($7) + ($$0104105<<2)|0);
  14238. HEAP8[$109>>0] = $108;
  14239. $110 = (($$0106) + 1)|0;
  14240. $111 = (($13) + ($110)|0);
  14241. $112 = HEAP8[$111>>0]|0;
  14242. $113 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  14243. HEAP8[$113>>0] = $112;
  14244. $114 = (($$0106) + 2)|0;
  14245. $115 = (($13) + ($114)|0);
  14246. $116 = HEAP8[$115>>0]|0;
  14247. $117 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  14248. HEAP8[$117>>0] = $116;
  14249. $118 = (($$0106) + 3)|0;
  14250. $119 = (($13) + ($118)|0);
  14251. $120 = HEAP8[$119>>0]|0;
  14252. $121 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  14253. HEAP8[$121>>0] = $120;
  14254. $122 = (($$0106) + 4)|0;
  14255. $$1 = $122;
  14256. break;
  14257. }
  14258. case 4: {
  14259. $123 = (($13) + ($$0106)|0);
  14260. $124 = HEAP8[$123>>0]|0;
  14261. $125 = (($7) + ($$0104105<<2)|0);
  14262. HEAP8[$125>>0] = $124;
  14263. $126 = (($$0106) + 1)|0;
  14264. $127 = (($13) + ($126)|0);
  14265. $128 = HEAP8[$127>>0]|0;
  14266. $129 = (((($7) + ($$0104105<<2)|0)) + 1|0);
  14267. HEAP8[$129>>0] = $128;
  14268. $130 = (($$0106) + 2)|0;
  14269. $131 = (($13) + ($130)|0);
  14270. $132 = HEAP8[$131>>0]|0;
  14271. $133 = (((($7) + ($$0104105<<2)|0)) + 2|0);
  14272. HEAP8[$133>>0] = $132;
  14273. $134 = (((($7) + ($$0104105<<2)|0)) + 3|0);
  14274. HEAP8[$134>>0] = -1;
  14275. $135 = (($$0106) + 3)|0;
  14276. $$1 = $135;
  14277. break;
  14278. }
  14279. default: {
  14280. _TraceLog(1,6231,$vararg_buffer);
  14281. $$1 = $$0106;
  14282. }
  14283. }
  14284. $136 = (($$0104105) + 1)|0;
  14285. $137 = HEAP32[$1>>2]|0;
  14286. $138 = HEAP32[$3>>2]|0;
  14287. $139 = Math_imul($138, $137)|0;
  14288. $140 = ($136|0)<($139|0);
  14289. if ($140) {
  14290. $$0104105 = $136;$$0106 = $$1;
  14291. } else {
  14292. break;
  14293. }
  14294. }
  14295. STACKTOP = sp;return ($7|0);
  14296. }
  14297. function _UnloadDefaultFont() {
  14298. var $$byval_copy = 0, $0 = 0, label = 0, sp = 0;
  14299. sp = STACKTOP;
  14300. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  14301. $$byval_copy = sp;
  14302. ;HEAP32[$$byval_copy>>2]=HEAP32[20608>>2]|0;HEAP32[$$byval_copy+4>>2]=HEAP32[20608+4>>2]|0;HEAP32[$$byval_copy+8>>2]=HEAP32[20608+8>>2]|0;HEAP32[$$byval_copy+12>>2]=HEAP32[20608+12>>2]|0;HEAP32[$$byval_copy+16>>2]=HEAP32[20608+16>>2]|0;
  14303. _UnloadTexture($$byval_copy);
  14304. $0 = HEAP32[(20636)>>2]|0;
  14305. _free($0);
  14306. STACKTOP = sp;return;
  14307. }
  14308. function _UnloadTexture($0) {
  14309. $0 = $0|0;
  14310. var $1 = 0, $2 = 0, $3 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  14311. sp = STACKTOP;
  14312. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  14313. $vararg_buffer = sp;
  14314. $1 = HEAP32[$0>>2]|0;
  14315. $2 = ($1|0)==(0);
  14316. if ($2) {
  14317. STACKTOP = sp;return;
  14318. }
  14319. _rlDeleteTextures($1);
  14320. $3 = HEAP32[$0>>2]|0;
  14321. HEAP32[$vararg_buffer>>2] = $3;
  14322. _TraceLog(0,6277,$vararg_buffer);
  14323. STACKTOP = sp;return;
  14324. }
  14325. function _rlDeleteTextures($0) {
  14326. $0 = $0|0;
  14327. var $1 = 0, $2 = 0, label = 0, sp = 0;
  14328. sp = STACKTOP;
  14329. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  14330. $1 = sp;
  14331. HEAP32[$1>>2] = $0;
  14332. $2 = ($0|0)==(0);
  14333. if (!($2)) {
  14334. _glDeleteTextures(1,($1|0));
  14335. }
  14336. STACKTOP = sp;return;
  14337. }
  14338. function _GetDefaultFont($0) {
  14339. $0 = $0|0;
  14340. var label = 0, sp = 0;
  14341. sp = STACKTOP;
  14342. ;HEAP32[$0>>2]=HEAP32[20608>>2]|0;HEAP32[$0+4>>2]=HEAP32[20608+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[20608+8>>2]|0;HEAP32[$0+12>>2]=HEAP32[20608+12>>2]|0;HEAP32[$0+16>>2]=HEAP32[20608+16>>2]|0;HEAP32[$0+20>>2]=HEAP32[20608+20>>2]|0;HEAP32[$0+24>>2]=HEAP32[20608+24>>2]|0;HEAP32[$0+28>>2]=HEAP32[20608+28>>2]|0;
  14343. return;
  14344. }
  14345. function _IsFileExtension($0,$1) {
  14346. $0 = $0|0;
  14347. $1 = $1|0;
  14348. var $$ = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  14349. sp = STACKTOP;
  14350. $2 = (_strrchr($0,46)|0);
  14351. $3 = ($2|0)==(0|0);
  14352. if ($3) {
  14353. return 0;
  14354. } else {
  14355. $4 = (_strcmp($2,$1)|0);
  14356. $5 = ($4|0)==(0);
  14357. $$ = $5&1;
  14358. return ($$|0);
  14359. }
  14360. return (0)|0;
  14361. }
  14362. function _LoadImagePro($0,$1,$2,$3,$4) {
  14363. $0 = $0|0;
  14364. $1 = $1|0;
  14365. $2 = $2|0;
  14366. $3 = $3|0;
  14367. $4 = $4|0;
  14368. var $$byval_copy = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  14369. sp = STACKTOP;
  14370. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  14371. $$byval_copy = sp + 20|0;
  14372. $5 = sp;
  14373. HEAP32[$5>>2] = $1;
  14374. $6 = ((($5)) + 4|0);
  14375. HEAP32[$6>>2] = $2;
  14376. $7 = ((($5)) + 8|0);
  14377. HEAP32[$7>>2] = $3;
  14378. $8 = ((($5)) + 12|0);
  14379. HEAP32[$8>>2] = 1;
  14380. $9 = ((($5)) + 16|0);
  14381. HEAP32[$9>>2] = $4;
  14382. ;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;
  14383. _ImageCopy($0,$$byval_copy);
  14384. STACKTOP = sp;return;
  14385. }
  14386. function _LoadImage($0,$1) {
  14387. $0 = $0|0;
  14388. $1 = $1|0;
  14389. 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, $2 = 0, $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0;
  14390. 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;
  14391. var $45 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $vararg_buffer = 0, $vararg_buffer12 = 0, $vararg_buffer4 = 0, $vararg_buffer7 = 0, $vararg_ptr10 = 0, $vararg_ptr11 = 0, label = 0, sp = 0;
  14392. sp = STACKTOP;
  14393. STACKTOP = STACKTOP + 96|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(96|0);
  14394. $$byval_copy = sp + 40|0;
  14395. $vararg_buffer12 = sp + 32|0;
  14396. $vararg_buffer7 = sp + 16|0;
  14397. $vararg_buffer4 = sp + 8|0;
  14398. $vararg_buffer = sp;
  14399. $2 = sp + 72|0;
  14400. $3 = sp + 68|0;
  14401. $4 = sp + 64|0;
  14402. $5 = sp + 60|0;
  14403. ;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;
  14404. $6 = (_IsFileExtension($1,6327)|0);
  14405. $7 = ($6|0)==(0);
  14406. do {
  14407. if ($7) {
  14408. $19 = (_IsFileExtension($1,6380)|0);
  14409. $20 = ($19|0)==(0);
  14410. if ($20) {
  14411. $30 = (_IsFileExtension($1,6388)|0);
  14412. $31 = ($30|0)==(0);
  14413. if ($31) {
  14414. HEAP32[$vararg_buffer4>>2] = $1;
  14415. _TraceLog(1,6460,$vararg_buffer4);
  14416. break;
  14417. }
  14418. HEAP32[$3>>2] = 0;
  14419. $32 = (_fopen($1,6385)|0);
  14420. _stbi_set_flip_vertically_on_load(1);
  14421. $33 = ((($2)) + 4|0);
  14422. $34 = ((($2)) + 8|0);
  14423. $35 = (_stbi_loadf_from_file($32,$33,$34,$3,0)|0);
  14424. HEAP32[$2>>2] = $35;
  14425. _stbi_set_flip_vertically_on_load(0);
  14426. (_fclose($32)|0);
  14427. $36 = ((($2)) + 12|0);
  14428. HEAP32[$36>>2] = 1;
  14429. $37 = HEAP32[$3>>2]|0;
  14430. $38 = ($37|0)==(3);
  14431. if ($38) {
  14432. $39 = ((($2)) + 16|0);
  14433. HEAP32[$39>>2] = 8;
  14434. } else {
  14435. HEAP32[$$byval_copy>>2] = $1;
  14436. _TraceLog(1,6393,$$byval_copy);
  14437. ;HEAP32[$$byval_copy>>2]=HEAP32[$2>>2]|0;HEAP32[$$byval_copy+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$$byval_copy+8>>2]=HEAP32[$2+8>>2]|0;HEAP32[$$byval_copy+12>>2]=HEAP32[$2+12>>2]|0;HEAP32[$$byval_copy+16>>2]=HEAP32[$2+16>>2]|0;
  14438. _UnloadImage($$byval_copy);
  14439. }
  14440. break;
  14441. } else {
  14442. HEAP32[$3>>2] = 0;
  14443. HEAP32[$4>>2] = 0;
  14444. HEAP32[$5>>2] = 0;
  14445. $21 = (_fopen($1,6385)|0);
  14446. $22 = (_stbi_load_from_file($21,$3,$4,$5,0)|0);
  14447. HEAP32[$2>>2] = $22;
  14448. (_fclose($21)|0);
  14449. $23 = HEAP32[$3>>2]|0;
  14450. $24 = ((($2)) + 4|0);
  14451. HEAP32[$24>>2] = $23;
  14452. $25 = HEAP32[$4>>2]|0;
  14453. $26 = ((($2)) + 8|0);
  14454. HEAP32[$26>>2] = $25;
  14455. $27 = ((($2)) + 12|0);
  14456. HEAP32[$27>>2] = 1;
  14457. $28 = HEAP32[$5>>2]|0;
  14458. switch ($28|0) {
  14459. case 1: {
  14460. $$sink = 1;
  14461. label = 11;
  14462. break;
  14463. }
  14464. case 2: {
  14465. $$sink = 2;
  14466. label = 11;
  14467. break;
  14468. }
  14469. case 3: {
  14470. $$sink = 4;
  14471. label = 11;
  14472. break;
  14473. }
  14474. case 4: {
  14475. $$sink = 7;
  14476. label = 11;
  14477. break;
  14478. }
  14479. default: {
  14480. }
  14481. }
  14482. if ((label|0) == 11) {
  14483. $29 = ((($2)) + 16|0);
  14484. HEAP32[$29>>2] = $$sink;
  14485. }
  14486. break;
  14487. }
  14488. } else {
  14489. $8 = (_LoadResource($1,0)|0);
  14490. $9 = HEAP32[$8>>2]|0;
  14491. $10 = ($9|0)==(1);
  14492. if ($10) {
  14493. $11 = ((($8)) + 20|0);
  14494. $12 = HEAP32[$11>>2]|0;
  14495. $13 = ((($8)) + 4|0);
  14496. $14 = HEAP32[$13>>2]|0;
  14497. $15 = ((($8)) + 8|0);
  14498. $16 = HEAP32[$15>>2]|0;
  14499. $17 = ((($8)) + 12|0);
  14500. $18 = HEAP32[$17>>2]|0;
  14501. _LoadImagePro($2,$12,$14,$16,$18);
  14502. } else {
  14503. HEAP32[$vararg_buffer>>2] = $1;
  14504. _TraceLog(1,6333,$vararg_buffer);
  14505. }
  14506. _UnloadResource($8);
  14507. }
  14508. } while(0);
  14509. $40 = HEAP32[$2>>2]|0;
  14510. $41 = ($40|0)==(0|0);
  14511. if ($41) {
  14512. HEAP32[$vararg_buffer12>>2] = $1;
  14513. _TraceLog(1,6535,$vararg_buffer12);
  14514. ;HEAP32[$0>>2]=HEAP32[$2>>2]|0;HEAP32[$0+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[$2+8>>2]|0;HEAP32[$0+12>>2]=HEAP32[$2+12>>2]|0;HEAP32[$0+16>>2]=HEAP32[$2+16>>2]|0;
  14515. STACKTOP = sp;return;
  14516. } else {
  14517. $42 = ((($2)) + 4|0);
  14518. $43 = HEAP32[$42>>2]|0;
  14519. $44 = ((($2)) + 8|0);
  14520. $45 = HEAP32[$44>>2]|0;
  14521. HEAP32[$vararg_buffer7>>2] = $1;
  14522. $vararg_ptr10 = ((($vararg_buffer7)) + 4|0);
  14523. HEAP32[$vararg_ptr10>>2] = $43;
  14524. $vararg_ptr11 = ((($vararg_buffer7)) + 8|0);
  14525. HEAP32[$vararg_ptr11>>2] = $45;
  14526. _TraceLog(0,6496,$vararg_buffer7);
  14527. ;HEAP32[$0>>2]=HEAP32[$2>>2]|0;HEAP32[$0+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[$2+8>>2]|0;HEAP32[$0+12>>2]=HEAP32[$2+12>>2]|0;HEAP32[$0+16>>2]=HEAP32[$2+16>>2]|0;
  14528. STACKTOP = sp;return;
  14529. }
  14530. }
  14531. function _stbi_load_from_file($0,$1,$2,$3,$4) {
  14532. $0 = $0|0;
  14533. $1 = $1|0;
  14534. $2 = $2|0;
  14535. $3 = $3|0;
  14536. $4 = $4|0;
  14537. var $10 = 0, $11 = 0, $12 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  14538. sp = STACKTOP;
  14539. STACKTOP = STACKTOP + 192|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(192|0);
  14540. $5 = sp;
  14541. _stbi__start_file($5,$0);
  14542. $6 = (_stbi__load_and_postprocess_8bit($5,$1,$2,$3,$4)|0);
  14543. $7 = ($6|0)==(0|0);
  14544. if ($7) {
  14545. STACKTOP = sp;return ($6|0);
  14546. }
  14547. $8 = ((($5)) + 172|0);
  14548. $9 = HEAP32[$8>>2]|0;
  14549. $10 = ((($5)) + 168|0);
  14550. $11 = HEAP32[$10>>2]|0;
  14551. $12 = (($11) - ($9))|0;
  14552. (_fseek($0,$12,1)|0);
  14553. STACKTOP = sp;return ($6|0);
  14554. }
  14555. function _stbi_set_flip_vertically_on_load($0) {
  14556. $0 = $0|0;
  14557. var label = 0, sp = 0;
  14558. sp = STACKTOP;
  14559. HEAP32[5170] = $0;
  14560. return;
  14561. }
  14562. function _stbi_loadf_from_file($0,$1,$2,$3,$4) {
  14563. $0 = $0|0;
  14564. $1 = $1|0;
  14565. $2 = $2|0;
  14566. $3 = $3|0;
  14567. $4 = $4|0;
  14568. var $5 = 0, $6 = 0, label = 0, sp = 0;
  14569. sp = STACKTOP;
  14570. STACKTOP = STACKTOP + 192|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(192|0);
  14571. $5 = sp;
  14572. _stbi__start_file($5,$0);
  14573. $6 = (_stbi__loadf_main($5,$1,$2,$3,$4)|0);
  14574. STACKTOP = sp;return ($6|0);
  14575. }
  14576. function _stbi__start_file($0,$1) {
  14577. $0 = $0|0;
  14578. $1 = $1|0;
  14579. var label = 0, sp = 0;
  14580. sp = STACKTOP;
  14581. _stbi__start_callbacks($0,3692,$1);
  14582. return;
  14583. }
  14584. function _stbi__loadf_main($0,$1,$2,$3,$4) {
  14585. $0 = $0|0;
  14586. $1 = $1|0;
  14587. $2 = $2|0;
  14588. $3 = $3|0;
  14589. $4 = $4|0;
  14590. var $$0 = 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, label = 0, sp = 0;
  14591. sp = STACKTOP;
  14592. $5 = (_stbi__hdr_test($0)|0);
  14593. $6 = ($5|0)==(0);
  14594. if (!($6)) {
  14595. $7 = (_stbi__hdr_load($0,$1,$2,$3,$4)|0);
  14596. $8 = ($7|0)==(0|0);
  14597. if ($8) {
  14598. $$0 = 0;
  14599. return ($$0|0);
  14600. }
  14601. _stbi__float_postprocess($7,$1,$2,$3,$4);
  14602. $$0 = $7;
  14603. return ($$0|0);
  14604. }
  14605. $9 = (_stbi__load_and_postprocess_8bit($0,$1,$2,$3,$4)|0);
  14606. $10 = ($9|0)==(0|0);
  14607. if ($10) {
  14608. _stbi__err(6566);
  14609. $$0 = 0;
  14610. return ($$0|0);
  14611. }
  14612. $11 = HEAP32[$1>>2]|0;
  14613. $12 = HEAP32[$2>>2]|0;
  14614. $13 = ($4|0)==(0);
  14615. if ($13) {
  14616. $14 = HEAP32[$3>>2]|0;
  14617. $15 = $14;
  14618. } else {
  14619. $15 = $4;
  14620. }
  14621. $16 = (_stbi__ldr_to_hdr($9,$11,$12,$15)|0);
  14622. $$0 = $16;
  14623. return ($$0|0);
  14624. }
  14625. function _stbi__hdr_test($0) {
  14626. $0 = $0|0;
  14627. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  14628. sp = STACKTOP;
  14629. $1 = (_stbi__hdr_test_core($0,8174)|0);
  14630. _stbi__rewind($0);
  14631. $2 = ($1|0)==(0);
  14632. if (!($2)) {
  14633. $$0 = $1;
  14634. return ($$0|0);
  14635. }
  14636. $3 = (_stbi__hdr_test_core($0,8186)|0);
  14637. _stbi__rewind($0);
  14638. $$0 = $3;
  14639. return ($$0|0);
  14640. }
  14641. function _stbi__hdr_load($0,$1,$2,$3,$4) {
  14642. $0 = $0|0;
  14643. $1 = $1|0;
  14644. $2 = $2|0;
  14645. $3 = $3|0;
  14646. $4 = $4|0;
  14647. var $$ = 0, $$$0142 = 0, $$014033 = 0, $$014253 = 0, $$014344 = 0, $$014538 = 0, $$0146 = 0, $$0150 = 0, $$114131 = 0, $$1144 = 0, $$1147 = 0, $$1151 = 0, $$2148 = 0, $$2152$be = 0, $$215236 = 0, $$3 = 0, $$314943 = 0, $$315332 = 0, $$430 = 0, $$540 = 0;
  14648. var $$lcssa29 = 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, $12 = 0, $13 = 0, $14 = 0;
  14649. 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, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0;
  14650. var $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, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0;
  14651. 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;
  14652. 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;
  14653. var $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $exitcond = 0, $exitcond87 = 0, $exitcond88 = 0, $notlhs = 0, $notrhs = 0, $or$cond = 0, $or$cond3$not = 0, label = 0, sp = 0;
  14654. sp = STACKTOP;
  14655. STACKTOP = STACKTOP + 1040|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(1040|0);
  14656. $5 = sp + 16|0;
  14657. $6 = sp;
  14658. $7 = sp + 4|0;
  14659. $8 = sp + 8|0;
  14660. $9 = (_stbi__hdr_gettoken($0,$5)|0);
  14661. $10 = (_strcmp($9,8034)|0);
  14662. $11 = ($10|0)==(0);
  14663. if (!($11)) {
  14664. $12 = (_strcmp($9,8045)|0);
  14665. $13 = ($12|0)==(0);
  14666. if (!($13)) {
  14667. _stbi__err(8052);
  14668. $$3 = 0;
  14669. STACKTOP = sp;return ($$3|0);
  14670. }
  14671. }
  14672. $14 = (_stbi__hdr_gettoken($0,$5)|0);
  14673. HEAP32[$6>>2] = $14;
  14674. $15 = HEAP8[$14>>0]|0;
  14675. $16 = ($15<<24>>24)==(0);
  14676. if (!($16)) {
  14677. $$014253 = 0;$17 = $5;
  14678. while(1) {
  14679. $18 = (_strcmp($17,8060)|0);
  14680. $19 = ($18|0)==(0);
  14681. $$$0142 = $19 ? 1 : $$014253;
  14682. $20 = (_stbi__hdr_gettoken($0,$5)|0);
  14683. $21 = HEAP8[$20>>0]|0;
  14684. $22 = ($21<<24>>24)==(0);
  14685. if ($22) {
  14686. break;
  14687. } else {
  14688. $$014253 = $$$0142;$17 = $5;
  14689. }
  14690. }
  14691. HEAP32[$6>>2] = $20;
  14692. $23 = ($$$0142|0)==(0);
  14693. if (!($23)) {
  14694. $24 = (_stbi__hdr_gettoken($0,$5)|0);
  14695. HEAP32[$6>>2] = $24;
  14696. $25 = (_strncmp($24,8102,3)|0);
  14697. $26 = ($25|0)==(0);
  14698. if (!($26)) {
  14699. _stbi__err(8106);
  14700. $$3 = 0;
  14701. STACKTOP = sp;return ($$3|0);
  14702. }
  14703. $27 = ((($5)) + 3|0);
  14704. HEAP32[$6>>2] = $27;
  14705. $28 = (_strtol($27,$6,10)|0);
  14706. $29 = HEAP32[$6>>2]|0;
  14707. $30 = HEAP8[$29>>0]|0;
  14708. $31 = ($30<<24>>24)==(32);
  14709. if ($31) {
  14710. $33 = $29;
  14711. while(1) {
  14712. $32 = ((($33)) + 1|0);
  14713. $34 = HEAP8[$32>>0]|0;
  14714. $35 = ($34<<24>>24)==(32);
  14715. if ($35) {
  14716. $33 = $32;
  14717. } else {
  14718. break;
  14719. }
  14720. }
  14721. HEAP32[$6>>2] = $32;
  14722. $$lcssa29 = $32;
  14723. } else {
  14724. $$lcssa29 = $29;
  14725. }
  14726. $36 = (_strncmp($$lcssa29,8130,3)|0);
  14727. $37 = ($36|0)==(0);
  14728. if (!($37)) {
  14729. _stbi__err(8106);
  14730. $$3 = 0;
  14731. STACKTOP = sp;return ($$3|0);
  14732. }
  14733. $38 = ((($$lcssa29)) + 3|0);
  14734. HEAP32[$6>>2] = $38;
  14735. $39 = (_strtol($38,0,10)|0);
  14736. HEAP32[$1>>2] = $39;
  14737. HEAP32[$2>>2] = $28;
  14738. $40 = ($3|0)==(0|0);
  14739. if (!($40)) {
  14740. HEAP32[$3>>2] = 3;
  14741. }
  14742. $41 = ($4|0)==(0);
  14743. $$ = $41 ? 3 : $4;
  14744. $42 = (_stbi__mad4sizes_valid($39,$28,$$)|0);
  14745. $43 = ($42|0)==(0);
  14746. if ($43) {
  14747. _stbi__err(6792);
  14748. $$3 = 0;
  14749. STACKTOP = sp;return ($$3|0);
  14750. }
  14751. $44 = (_stbi__malloc_mad4($39,$28,$$)|0);
  14752. $45 = ($44|0)==(0|0);
  14753. if ($45) {
  14754. _stbi__err(6585);
  14755. $$3 = 0;
  14756. STACKTOP = sp;return ($$3|0);
  14757. }
  14758. $$off = (($39) + -8)|0;
  14759. $46 = ($$off>>>0)>(32759);
  14760. do {
  14761. if ($46) {
  14762. $$0146 = 0;
  14763. label = 23;
  14764. } else {
  14765. $47 = ($28|0)>(0);
  14766. if ($47) {
  14767. $$014344 = 0;$$314943 = 0;
  14768. } else {
  14769. $$3 = $44;
  14770. STACKTOP = sp;return ($$3|0);
  14771. }
  14772. L39: while(1) {
  14773. $57 = (_stbi__get8($0)|0);
  14774. $58 = (_stbi__get8($0)|0);
  14775. $59 = (_stbi__get8($0)|0);
  14776. $60 = $59&255;
  14777. $notlhs = ($57<<24>>24)==(2);
  14778. $notrhs = ($58<<24>>24)==(2);
  14779. $or$cond3$not = $notlhs & $notrhs;
  14780. $61 = $60 & 128;
  14781. $62 = ($61|0)==(0);
  14782. $or$cond = $or$cond3$not & $62;
  14783. if (!($or$cond)) {
  14784. label = 28;
  14785. break;
  14786. }
  14787. $67 = $60 << 8;
  14788. $68 = (_stbi__get8($0)|0);
  14789. $69 = $68&255;
  14790. $70 = $69 | $67;
  14791. $71 = ($70|0)==($39|0);
  14792. if (!($71)) {
  14793. label = 30;
  14794. break;
  14795. }
  14796. $72 = ($$014344|0)==(0|0);
  14797. if ($72) {
  14798. $73 = (_stbi__malloc_mad2($39,4)|0);
  14799. $74 = ($73|0)==(0|0);
  14800. if ($74) {
  14801. label = 33;
  14802. break;
  14803. } else {
  14804. $$1144 = $73;
  14805. }
  14806. } else {
  14807. $$1144 = $$014344;
  14808. }
  14809. $$014538 = 0;
  14810. while(1) {
  14811. $$215236 = 0;$87 = $39;
  14812. while(1) {
  14813. $82 = (_stbi__get8($0)|0);
  14814. $79 = $82&255;
  14815. $83 = ($82&255)>(128);
  14816. do {
  14817. if ($83) {
  14818. $84 = (_stbi__get8($0)|0);
  14819. $85 = (($79) + 128)|0;
  14820. $77 = $85 & 255;
  14821. $86 = ($77|0)>($87|0);
  14822. if ($86) {
  14823. label = 43;
  14824. break L39;
  14825. }
  14826. $88 = ($77|0)==(0);
  14827. if ($88) {
  14828. $$2152$be = $$215236;
  14829. break;
  14830. } else {
  14831. $$014033 = 0;$$315332 = $$215236;
  14832. }
  14833. while(1) {
  14834. $89 = (($$315332) + 1)|0;
  14835. $90 = $$315332 << 2;
  14836. $91 = (($90) + ($$014538))|0;
  14837. $92 = (($$1144) + ($91)|0);
  14838. HEAP8[$92>>0] = $84;
  14839. $93 = (($$014033) + 1)|0;
  14840. $exitcond87 = ($93|0)==($77|0);
  14841. if ($exitcond87) {
  14842. break;
  14843. } else {
  14844. $$014033 = $93;$$315332 = $89;
  14845. }
  14846. }
  14847. $76 = (($$215236) + ($77))|0;
  14848. $$2152$be = $76;
  14849. } else {
  14850. $94 = ($79|0)>($87|0);
  14851. if ($94) {
  14852. label = 47;
  14853. break L39;
  14854. }
  14855. $95 = ($82<<24>>24)==(0);
  14856. if ($95) {
  14857. $$2152$be = $$215236;
  14858. break;
  14859. } else {
  14860. $$114131 = 0;$$430 = $$215236;
  14861. }
  14862. while(1) {
  14863. $96 = (_stbi__get8($0)|0);
  14864. $97 = (($$430) + 1)|0;
  14865. $98 = $$430 << 2;
  14866. $99 = (($98) + ($$014538))|0;
  14867. $100 = (($$1144) + ($99)|0);
  14868. HEAP8[$100>>0] = $96;
  14869. $101 = (($$114131) + 1)|0;
  14870. $exitcond = ($101|0)==($79|0);
  14871. if ($exitcond) {
  14872. break;
  14873. } else {
  14874. $$114131 = $101;$$430 = $97;
  14875. }
  14876. }
  14877. $78 = (($$215236) + ($79))|0;
  14878. $$2152$be = $78;
  14879. }
  14880. } while(0);
  14881. $80 = (($39) - ($$2152$be))|0;
  14882. $81 = ($80|0)>(0);
  14883. if ($81) {
  14884. $$215236 = $$2152$be;$87 = $80;
  14885. } else {
  14886. break;
  14887. }
  14888. }
  14889. $102 = (($$014538) + 1)|0;
  14890. $103 = ($102|0)<(4);
  14891. if ($103) {
  14892. $$014538 = $102;
  14893. } else {
  14894. break;
  14895. }
  14896. }
  14897. $75 = Math_imul($$314943, $39)|0;
  14898. $$540 = 0;
  14899. while(1) {
  14900. $104 = (($$540) + ($75))|0;
  14901. $105 = Math_imul($104, $$)|0;
  14902. $106 = (($44) + ($105<<2)|0);
  14903. $107 = $$540 << 2;
  14904. $108 = (($$1144) + ($107)|0);
  14905. _stbi__hdr_convert($106,$108,$$);
  14906. $109 = (($$540) + 1)|0;
  14907. $exitcond88 = ($109|0)==($39|0);
  14908. if ($exitcond88) {
  14909. break;
  14910. } else {
  14911. $$540 = $109;
  14912. }
  14913. }
  14914. $110 = (($$314943) + 1)|0;
  14915. $111 = ($110|0)<($28|0);
  14916. if ($111) {
  14917. $$014344 = $$1144;$$314943 = $110;
  14918. } else {
  14919. label = 52;
  14920. break;
  14921. }
  14922. }
  14923. if ((label|0) == 28) {
  14924. HEAP8[$8>>0] = $57;
  14925. $63 = ((($8)) + 1|0);
  14926. HEAP8[$63>>0] = $58;
  14927. $64 = ((($8)) + 2|0);
  14928. HEAP8[$64>>0] = $59;
  14929. $65 = (_stbi__get8($0)|0);
  14930. $66 = ((($8)) + 3|0);
  14931. HEAP8[$66>>0] = $65;
  14932. _stbi__hdr_convert($44,$8,$$);
  14933. _free($$014344);
  14934. $$1151 = 1;$$2148 = 0;
  14935. label = 25;
  14936. break;
  14937. }
  14938. else if ((label|0) == 30) {
  14939. _free($44);
  14940. _free($$014344);
  14941. _stbi__err(8134);
  14942. $$3 = 0;
  14943. STACKTOP = sp;return ($$3|0);
  14944. }
  14945. else if ((label|0) == 33) {
  14946. _free($44);
  14947. _stbi__err(6585);
  14948. $$3 = 0;
  14949. STACKTOP = sp;return ($$3|0);
  14950. }
  14951. else if ((label|0) == 43) {
  14952. _free($44);
  14953. _free($$1144);
  14954. _stbi__err(8166);
  14955. $$3 = 0;
  14956. STACKTOP = sp;return ($$3|0);
  14957. }
  14958. else if ((label|0) == 47) {
  14959. _free($44);
  14960. _free($$1144);
  14961. _stbi__err(8166);
  14962. $$3 = 0;
  14963. STACKTOP = sp;return ($$3|0);
  14964. }
  14965. else if ((label|0) == 52) {
  14966. $112 = ($$1144|0)==(0|0);
  14967. if ($112) {
  14968. $$3 = $44;
  14969. STACKTOP = sp;return ($$3|0);
  14970. }
  14971. _free($$1144);
  14972. $$3 = $44;
  14973. STACKTOP = sp;return ($$3|0);
  14974. }
  14975. }
  14976. } while(0);
  14977. while(1) {
  14978. if ((label|0) == 23) {
  14979. label = 0;
  14980. $48 = ($$0146|0)<($28|0);
  14981. if ($48) {
  14982. $$0150 = 0;$$1147 = $$0146;
  14983. } else {
  14984. $$3 = $44;
  14985. break;
  14986. }
  14987. }
  14988. else if ((label|0) == 25) {
  14989. label = 0;
  14990. (_stbi__getn($0,$7,4)|0);
  14991. $50 = Math_imul($39, $$)|0;
  14992. $51 = Math_imul($50, $$2148)|0;
  14993. $52 = (($44) + ($51<<2)|0);
  14994. $53 = Math_imul($$1151, $$)|0;
  14995. $54 = (($52) + ($53<<2)|0);
  14996. _stbi__hdr_convert($54,$7,$$);
  14997. $55 = (($$1151) + 1)|0;
  14998. $$0150 = $55;$$1147 = $$2148;
  14999. }
  15000. $49 = ($$0150|0)<($39|0);
  15001. if ($49) {
  15002. $$1151 = $$0150;$$2148 = $$1147;
  15003. label = 25;
  15004. continue;
  15005. }
  15006. $56 = (($$1147) + 1)|0;
  15007. $$0146 = $56;
  15008. label = 23;
  15009. }
  15010. STACKTOP = sp;return ($$3|0);
  15011. }
  15012. }
  15013. _stbi__err(8083);
  15014. $$3 = 0;
  15015. STACKTOP = sp;return ($$3|0);
  15016. }
  15017. function _stbi__float_postprocess($0,$1,$2,$3,$4) {
  15018. $0 = $0|0;
  15019. $1 = $1|0;
  15020. $2 = $2|0;
  15021. $3 = $3|0;
  15022. $4 = $4|0;
  15023. var $$05558 = 0, $$05659 = 0, $$061 = 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;
  15024. var $27 = 0, $28 = 0, $29 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $exitcond = 0, $exitcond64 = 0, $exitcond65 = 0, $or$cond = 0, label = 0, sp = 0;
  15025. sp = STACKTOP;
  15026. $5 = HEAP32[5170]|0;
  15027. $6 = ($5|0)!=(0);
  15028. $7 = ($0|0)!=(0|0);
  15029. $or$cond = $7 & $6;
  15030. if (!($or$cond)) {
  15031. return;
  15032. }
  15033. $8 = HEAP32[$1>>2]|0;
  15034. $9 = HEAP32[$2>>2]|0;
  15035. $10 = ($4|0)==(0);
  15036. if ($10) {
  15037. $11 = HEAP32[$3>>2]|0;
  15038. $16 = $11;
  15039. } else {
  15040. $16 = $4;
  15041. }
  15042. $12 = $9 >> 1;
  15043. $13 = ($12|0)>(0);
  15044. if (!($13)) {
  15045. return;
  15046. }
  15047. $14 = ($8|0)>(0);
  15048. $15 = ($16|0)>(0);
  15049. $17 = (($9) + -1)|0;
  15050. $$061 = 0;
  15051. while(1) {
  15052. if ($14) {
  15053. $18 = Math_imul($$061, $8)|0;
  15054. $19 = (($17) - ($$061))|0;
  15055. $20 = Math_imul($19, $8)|0;
  15056. $$05659 = 0;
  15057. while(1) {
  15058. if ($15) {
  15059. $21 = (($$05659) + ($18))|0;
  15060. $22 = Math_imul($21, $16)|0;
  15061. $23 = (($$05659) + ($20))|0;
  15062. $24 = Math_imul($23, $16)|0;
  15063. $$05558 = 0;
  15064. while(1) {
  15065. $25 = (($$05558) + ($22))|0;
  15066. $26 = (($0) + ($25<<2)|0);
  15067. $27 = HEAP32[$26>>2]|0;
  15068. $28 = (($$05558) + ($24))|0;
  15069. $29 = (($0) + ($28<<2)|0);
  15070. $30 = HEAP32[$29>>2]|0;
  15071. HEAP32[$26>>2] = $30;
  15072. HEAP32[$29>>2] = $27;
  15073. $31 = (($$05558) + 1)|0;
  15074. $exitcond = ($31|0)==($16|0);
  15075. if ($exitcond) {
  15076. break;
  15077. } else {
  15078. $$05558 = $31;
  15079. }
  15080. }
  15081. }
  15082. $32 = (($$05659) + 1)|0;
  15083. $exitcond64 = ($32|0)==($8|0);
  15084. if ($exitcond64) {
  15085. break;
  15086. } else {
  15087. $$05659 = $32;
  15088. }
  15089. }
  15090. }
  15091. $33 = (($$061) + 1)|0;
  15092. $exitcond65 = ($33|0)==($12|0);
  15093. if ($exitcond65) {
  15094. break;
  15095. } else {
  15096. $$061 = $33;
  15097. }
  15098. }
  15099. return;
  15100. }
  15101. function _stbi__load_and_postprocess_8bit($0,$1,$2,$3,$4) {
  15102. $0 = $0|0;
  15103. $1 = $1|0;
  15104. $2 = $2|0;
  15105. $3 = $3|0;
  15106. $4 = $4|0;
  15107. 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;
  15108. 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;
  15109. var $7 = 0, $8 = 0, $9 = 0, $exitcond = 0, $exitcond79 = 0, $exitcond80 = 0, label = 0, sp = 0;
  15110. sp = STACKTOP;
  15111. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  15112. $5 = sp;
  15113. $6 = (_stbi__load_main($0,$1,$2,$3,$4,$5)|0);
  15114. $7 = ($6|0)==(0|0);
  15115. if ($7) {
  15116. $$0 = 0;
  15117. STACKTOP = sp;return ($$0|0);
  15118. }
  15119. $8 = HEAP32[$5>>2]|0;
  15120. switch ($8|0) {
  15121. case 8: {
  15122. $$070 = $6;
  15123. break;
  15124. }
  15125. case 16: {
  15126. label = 4;
  15127. break;
  15128. }
  15129. default: {
  15130. ___assert_fail((6594|0),(6620|0),1041,(6643|0));
  15131. // unreachable;
  15132. }
  15133. }
  15134. if ((label|0) == 4) {
  15135. $9 = HEAP32[$1>>2]|0;
  15136. $10 = HEAP32[$2>>2]|0;
  15137. $11 = ($4|0)==(0);
  15138. if ($11) {
  15139. $12 = HEAP32[$3>>2]|0;
  15140. $13 = $12;
  15141. } else {
  15142. $13 = $4;
  15143. }
  15144. $14 = (_stbi__convert_16_to_8($6,$9,$10,$13)|0);
  15145. HEAP32[$5>>2] = 8;
  15146. $$070 = $14;
  15147. }
  15148. $15 = HEAP32[5170]|0;
  15149. $16 = ($15|0)==(0);
  15150. if ($16) {
  15151. $$0 = $$070;
  15152. STACKTOP = sp;return ($$0|0);
  15153. }
  15154. $17 = HEAP32[$1>>2]|0;
  15155. $18 = HEAP32[$2>>2]|0;
  15156. $19 = ($4|0)==(0);
  15157. if ($19) {
  15158. $20 = HEAP32[$3>>2]|0;
  15159. $25 = $20;
  15160. } else {
  15161. $25 = $4;
  15162. }
  15163. $21 = $18 >> 1;
  15164. $22 = ($21|0)>(0);
  15165. if (!($22)) {
  15166. $$0 = $$070;
  15167. STACKTOP = sp;return ($$0|0);
  15168. }
  15169. $23 = ($17|0)>(0);
  15170. $24 = ($25|0)>(0);
  15171. $26 = (($18) + -1)|0;
  15172. $$07378 = 0;
  15173. while(1) {
  15174. if ($23) {
  15175. $27 = Math_imul($$07378, $17)|0;
  15176. $28 = (($26) - ($$07378))|0;
  15177. $29 = Math_imul($28, $17)|0;
  15178. $$07276 = 0;
  15179. while(1) {
  15180. if ($24) {
  15181. $30 = (($$07276) + ($27))|0;
  15182. $31 = Math_imul($30, $25)|0;
  15183. $32 = (($$07276) + ($29))|0;
  15184. $33 = Math_imul($32, $25)|0;
  15185. $$07175 = 0;
  15186. while(1) {
  15187. $34 = (($$07175) + ($31))|0;
  15188. $35 = (($$070) + ($34)|0);
  15189. $36 = HEAP8[$35>>0]|0;
  15190. $37 = (($$07175) + ($33))|0;
  15191. $38 = (($$070) + ($37)|0);
  15192. $39 = HEAP8[$38>>0]|0;
  15193. HEAP8[$35>>0] = $39;
  15194. HEAP8[$38>>0] = $36;
  15195. $40 = (($$07175) + 1)|0;
  15196. $exitcond = ($40|0)==($25|0);
  15197. if ($exitcond) {
  15198. break;
  15199. } else {
  15200. $$07175 = $40;
  15201. }
  15202. }
  15203. }
  15204. $41 = (($$07276) + 1)|0;
  15205. $exitcond79 = ($41|0)==($17|0);
  15206. if ($exitcond79) {
  15207. break;
  15208. } else {
  15209. $$07276 = $41;
  15210. }
  15211. }
  15212. }
  15213. $42 = (($$07378) + 1)|0;
  15214. $exitcond80 = ($42|0)==($21|0);
  15215. if ($exitcond80) {
  15216. $$0 = $$070;
  15217. break;
  15218. } else {
  15219. $$07378 = $42;
  15220. }
  15221. }
  15222. STACKTOP = sp;return ($$0|0);
  15223. }
  15224. function _stbi__ldr_to_hdr($0,$1,$2,$3) {
  15225. $0 = $0|0;
  15226. $1 = $1|0;
  15227. $2 = $2|0;
  15228. $3 = $3|0;
  15229. var $$0 = 0, $$042 = 0, $$043$lcssa = 0, $$04345 = 0, $$04446 = 0, $10 = 0, $11 = 0.0, $12 = 0.0, $13 = 0.0, $14 = 0.0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0.0, $20 = 0.0, $21 = 0.0, $22 = 0.0, $23 = 0.0, $24 = 0.0;
  15230. var $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0.0, $34 = 0.0, $35 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $exitcond = 0, $exitcond48 = 0, $sext = 0;
  15231. var label = 0, sp = 0;
  15232. sp = STACKTOP;
  15233. $4 = ($0|0)==(0|0);
  15234. if ($4) {
  15235. $$0 = 0;
  15236. return ($$0|0);
  15237. }
  15238. $5 = (_stbi__malloc_mad4($1,$2,$3)|0);
  15239. $6 = ($5|0)==(0|0);
  15240. if ($6) {
  15241. _free($0);
  15242. _stbi__err(6585);
  15243. $$0 = 0;
  15244. return ($$0|0);
  15245. }
  15246. $7 = $3 & 1;
  15247. $sext = (($3) + -1)|0;
  15248. $$042 = (($sext) + ($7))|0;
  15249. $8 = Math_imul($2, $1)|0;
  15250. $9 = ($8|0)>(0);
  15251. if ($9) {
  15252. $10 = ($$042|0)>(0);
  15253. $11 = +HEAPF32[765];
  15254. $12 = $11;
  15255. $13 = +HEAPF32[766];
  15256. $14 = $13;
  15257. $$04446 = 0;
  15258. while(1) {
  15259. if ($10) {
  15260. $15 = Math_imul($$04446, $3)|0;
  15261. $$04345 = 0;
  15262. while(1) {
  15263. $16 = (($$04345) + ($15))|0;
  15264. $17 = (($0) + ($16)|0);
  15265. $18 = HEAP8[$17>>0]|0;
  15266. $19 = (+($18&255));
  15267. $20 = $19 / 255.0;
  15268. $21 = $20;
  15269. $22 = (+Math_pow((+$21),(+$12)));
  15270. $23 = $22 * $14;
  15271. $24 = $23;
  15272. $25 = (($5) + ($16<<2)|0);
  15273. HEAPF32[$25>>2] = $24;
  15274. $26 = (($$04345) + 1)|0;
  15275. $exitcond = ($26|0)==($$042|0);
  15276. if ($exitcond) {
  15277. $$043$lcssa = $$042;
  15278. break;
  15279. } else {
  15280. $$04345 = $26;
  15281. }
  15282. }
  15283. } else {
  15284. $$043$lcssa = 0;
  15285. }
  15286. $27 = ($$043$lcssa|0)<($3|0);
  15287. $28 = Math_imul($$04446, $3)|0;
  15288. $29 = (($$043$lcssa) + ($28))|0;
  15289. if ($27) {
  15290. $30 = (($5) + ($29<<2)|0);
  15291. $31 = (($0) + ($29)|0);
  15292. $32 = HEAP8[$31>>0]|0;
  15293. $33 = (+($32&255));
  15294. $34 = $33 / 255.0;
  15295. HEAPF32[$30>>2] = $34;
  15296. }
  15297. $35 = (($$04446) + 1)|0;
  15298. $exitcond48 = ($35|0)==($8|0);
  15299. if ($exitcond48) {
  15300. break;
  15301. } else {
  15302. $$04446 = $35;
  15303. }
  15304. }
  15305. }
  15306. _free($0);
  15307. $$0 = $5;
  15308. return ($$0|0);
  15309. }
  15310. function _stbi__err($0) {
  15311. $0 = $0|0;
  15312. var label = 0, sp = 0;
  15313. sp = STACKTOP;
  15314. HEAP32[5169] = $0;
  15315. return;
  15316. }
  15317. function _stbi__malloc_mad4($0,$1,$2) {
  15318. $0 = $0|0;
  15319. $1 = $1|0;
  15320. $2 = $2|0;
  15321. var $$0 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, label = 0, sp = 0;
  15322. sp = STACKTOP;
  15323. $3 = (_stbi__mad4sizes_valid($0,$1,$2)|0);
  15324. $4 = ($3|0)==(0);
  15325. if ($4) {
  15326. $$0 = 0;
  15327. return ($$0|0);
  15328. }
  15329. $5 = $0 << 2;
  15330. $6 = Math_imul($5, $1)|0;
  15331. $7 = Math_imul($6, $2)|0;
  15332. $8 = (_stbi__malloc($7)|0);
  15333. $$0 = $8;
  15334. return ($$0|0);
  15335. }
  15336. function _stbi__mad4sizes_valid($0,$1,$2) {
  15337. $0 = $0|0;
  15338. $1 = $1|0;
  15339. $2 = $2|0;
  15340. var $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  15341. sp = STACKTOP;
  15342. $3 = (_stbi__mul2sizes_valid($0,$1)|0);
  15343. $4 = ($3|0)==(0);
  15344. if ($4) {
  15345. $15 = 0;
  15346. } else {
  15347. $5 = Math_imul($1, $0)|0;
  15348. $6 = (_stbi__mul2sizes_valid($5,$2)|0);
  15349. $7 = ($6|0)==(0);
  15350. if ($7) {
  15351. $15 = 0;
  15352. } else {
  15353. $8 = Math_imul($5, $2)|0;
  15354. $9 = (_stbi__mul2sizes_valid($8,4)|0);
  15355. $10 = ($9|0)==(0);
  15356. if ($10) {
  15357. $15 = 0;
  15358. } else {
  15359. $11 = $8 << 2;
  15360. $12 = (_stbi__addsizes_valid($11)|0);
  15361. $13 = ($12|0)!=(0);
  15362. $15 = $13;
  15363. }
  15364. }
  15365. }
  15366. $14 = $15&1;
  15367. return ($14|0);
  15368. }
  15369. function _stbi__malloc($0) {
  15370. $0 = $0|0;
  15371. var $1 = 0, label = 0, sp = 0;
  15372. sp = STACKTOP;
  15373. $1 = (_malloc($0)|0);
  15374. return ($1|0);
  15375. }
  15376. function _stbi__mul2sizes_valid($0,$1) {
  15377. $0 = $0|0;
  15378. $1 = $1|0;
  15379. var $$0 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, label = 0, sp = 0;
  15380. sp = STACKTOP;
  15381. $2 = $1 | $0;
  15382. $3 = ($2|0)<(0);
  15383. if ($3) {
  15384. $$0 = 0;
  15385. } else {
  15386. $4 = ($1|0)==(0);
  15387. if ($4) {
  15388. $$0 = 1;
  15389. } else {
  15390. $5 = (2147483647 / ($1|0))&-1;
  15391. $6 = ($5|0)>=($0|0);
  15392. $7 = $6&1;
  15393. $$0 = $7;
  15394. }
  15395. }
  15396. return ($$0|0);
  15397. }
  15398. function _stbi__addsizes_valid($0) {
  15399. $0 = $0|0;
  15400. var label = 0, sp = 0;
  15401. sp = STACKTOP;
  15402. return 1;
  15403. }
  15404. function _stbi__load_main($0,$1,$2,$3,$4,$5) {
  15405. $0 = $0|0;
  15406. $1 = $1|0;
  15407. $2 = $2|0;
  15408. $3 = $3|0;
  15409. $4 = $4|0;
  15410. $5 = $5|0;
  15411. var $$0 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  15412. sp = STACKTOP;
  15413. HEAP32[$5>>2] = 8;
  15414. $6 = ((($5)) + 8|0);
  15415. HEAP32[$6>>2] = 0;
  15416. $7 = ((($5)) + 4|0);
  15417. HEAP32[$7>>2] = 0;
  15418. $8 = (_stbi__png_test($0)|0);
  15419. $9 = ($8|0)==(0);
  15420. if (!($9)) {
  15421. $10 = (_stbi__png_load($0,$1,$2,$3,$4,$5)|0);
  15422. $$0 = $10;
  15423. return ($$0|0);
  15424. }
  15425. $11 = (_stbi__hdr_test($0)|0);
  15426. $12 = ($11|0)==(0);
  15427. if ($12) {
  15428. _stbi__err(6566);
  15429. $$0 = 0;
  15430. return ($$0|0);
  15431. }
  15432. $13 = (_stbi__hdr_load($0,$1,$2,$3,$4)|0);
  15433. $14 = HEAP32[$1>>2]|0;
  15434. $15 = HEAP32[$2>>2]|0;
  15435. $16 = ($4|0)==(0);
  15436. if ($16) {
  15437. $17 = HEAP32[$3>>2]|0;
  15438. $18 = $17;
  15439. } else {
  15440. $18 = $4;
  15441. }
  15442. $19 = (_stbi__hdr_to_ldr($13,$14,$15,$18)|0);
  15443. $$0 = $19;
  15444. return ($$0|0);
  15445. }
  15446. function _stbi__convert_16_to_8($0,$1,$2,$3) {
  15447. $0 = $0|0;
  15448. $1 = $1|0;
  15449. $2 = $2|0;
  15450. $3 = $3|0;
  15451. 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;
  15452. sp = STACKTOP;
  15453. $4 = Math_imul($2, $1)|0;
  15454. $5 = Math_imul($4, $3)|0;
  15455. $6 = (_stbi__malloc($5)|0);
  15456. $7 = ($6|0)==(0|0);
  15457. if ($7) {
  15458. _stbi__err(6585);
  15459. $$0 = 0;
  15460. return ($$0|0);
  15461. }
  15462. $8 = ($5|0)>(0);
  15463. if ($8) {
  15464. $$01819 = 0;
  15465. while(1) {
  15466. $9 = (($0) + ($$01819<<1)|0);
  15467. $10 = HEAP16[$9>>1]|0;
  15468. $11 = ($10&65535) >>> 8;
  15469. $12 = $11&255;
  15470. $13 = (($6) + ($$01819)|0);
  15471. HEAP8[$13>>0] = $12;
  15472. $14 = (($$01819) + 1)|0;
  15473. $exitcond = ($14|0)==($5|0);
  15474. if ($exitcond) {
  15475. break;
  15476. } else {
  15477. $$01819 = $14;
  15478. }
  15479. }
  15480. }
  15481. _free($0);
  15482. $$0 = $6;
  15483. return ($$0|0);
  15484. }
  15485. function _stbi__png_test($0) {
  15486. $0 = $0|0;
  15487. var $1 = 0, label = 0, sp = 0;
  15488. sp = STACKTOP;
  15489. $1 = (_stbi__check_png_header($0)|0);
  15490. _stbi__rewind($0);
  15491. return ($1|0);
  15492. }
  15493. function _stbi__png_load($0,$1,$2,$3,$4,$5) {
  15494. $0 = $0|0;
  15495. $1 = $1|0;
  15496. $2 = $2|0;
  15497. $3 = $3|0;
  15498. $4 = $4|0;
  15499. $5 = $5|0;
  15500. var $6 = 0, $7 = 0, label = 0, sp = 0;
  15501. sp = STACKTOP;
  15502. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  15503. $6 = sp;
  15504. HEAP32[$6>>2] = $0;
  15505. $7 = (_stbi__do_png($6,$1,$2,$3,$4,$5)|0);
  15506. STACKTOP = sp;return ($7|0);
  15507. }
  15508. function _stbi__hdr_to_ldr($0,$1,$2,$3) {
  15509. $0 = $0|0;
  15510. $1 = $1|0;
  15511. $2 = $2|0;
  15512. $3 = $3|0;
  15513. var $$0 = 0.0, $$052 = 0.0, $$054 = 0, $$055 = 0, $$056$lcssa = 0, $$05658 = 0, $$05759 = 0, $$1 = 0.0, $$153 = 0.0, $10 = 0, $11 = 0.0, $12 = 0.0, $13 = 0.0, $14 = 0, $15 = 0, $16 = 0, $17 = 0.0, $18 = 0.0, $19 = 0.0, $20 = 0.0;
  15514. var $21 = 0.0, $22 = 0.0, $23 = 0.0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0.0, $35 = 0.0, $36 = 0.0, $37 = 0, $38 = 0, $39 = 0, $4 = 0;
  15515. var $40 = 0, $41 = 0, $42 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $exitcond = 0, $exitcond61 = 0, $sext = 0, label = 0, sp = 0;
  15516. sp = STACKTOP;
  15517. $4 = ($0|0)==(0|0);
  15518. if ($4) {
  15519. $$054 = 0;
  15520. return ($$054|0);
  15521. }
  15522. $5 = (_stbi__malloc_mad3($1,$2,$3)|0);
  15523. $6 = ($5|0)==(0|0);
  15524. if ($6) {
  15525. _free($0);
  15526. _stbi__err(6585);
  15527. $$054 = 0;
  15528. return ($$054|0);
  15529. }
  15530. $7 = $3 & 1;
  15531. $sext = (($3) + -1)|0;
  15532. $$055 = (($sext) + ($7))|0;
  15533. $8 = Math_imul($2, $1)|0;
  15534. $9 = ($8|0)>(0);
  15535. if ($9) {
  15536. $10 = ($$055|0)>(0);
  15537. $11 = +HEAPF32[767];
  15538. $12 = +HEAPF32[768];
  15539. $13 = $12;
  15540. $$05759 = 0;
  15541. while(1) {
  15542. if ($10) {
  15543. $14 = Math_imul($$05759, $3)|0;
  15544. $$05658 = 0;
  15545. while(1) {
  15546. $15 = (($$05658) + ($14))|0;
  15547. $16 = (($0) + ($15<<2)|0);
  15548. $17 = +HEAPF32[$16>>2];
  15549. $18 = $17 * $11;
  15550. $19 = $18;
  15551. $20 = (+Math_pow((+$19),(+$13)));
  15552. $21 = $20;
  15553. $22 = $21 * 255.0;
  15554. $23 = $22 + 0.5;
  15555. $24 = $23 < 0.0;
  15556. $$052 = $24 ? 0.0 : $23;
  15557. $25 = $$052 > 255.0;
  15558. $$153 = $25 ? 255.0 : $$052;
  15559. $26 = (~~(($$153)));
  15560. $27 = $26&255;
  15561. $28 = (($5) + ($15)|0);
  15562. HEAP8[$28>>0] = $27;
  15563. $29 = (($$05658) + 1)|0;
  15564. $exitcond = ($29|0)==($$055|0);
  15565. if ($exitcond) {
  15566. $$056$lcssa = $$055;
  15567. break;
  15568. } else {
  15569. $$05658 = $29;
  15570. }
  15571. }
  15572. } else {
  15573. $$056$lcssa = 0;
  15574. }
  15575. $30 = ($$056$lcssa|0)<($3|0);
  15576. if ($30) {
  15577. $31 = Math_imul($$05759, $3)|0;
  15578. $32 = (($$056$lcssa) + ($31))|0;
  15579. $33 = (($0) + ($32<<2)|0);
  15580. $34 = +HEAPF32[$33>>2];
  15581. $35 = $34 * 255.0;
  15582. $36 = $35 + 0.5;
  15583. $37 = $36 < 0.0;
  15584. $$0 = $37 ? 0.0 : $36;
  15585. $38 = $$0 > 255.0;
  15586. $$1 = $38 ? 255.0 : $$0;
  15587. $39 = (~~(($$1)));
  15588. $40 = $39&255;
  15589. $41 = (($5) + ($32)|0);
  15590. HEAP8[$41>>0] = $40;
  15591. }
  15592. $42 = (($$05759) + 1)|0;
  15593. $exitcond61 = ($42|0)==($8|0);
  15594. if ($exitcond61) {
  15595. break;
  15596. } else {
  15597. $$05759 = $42;
  15598. }
  15599. }
  15600. }
  15601. _free($0);
  15602. $$054 = $5;
  15603. return ($$054|0);
  15604. }
  15605. function _stbi__malloc_mad3($0,$1,$2) {
  15606. $0 = $0|0;
  15607. $1 = $1|0;
  15608. $2 = $2|0;
  15609. var $$0 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, label = 0, sp = 0;
  15610. sp = STACKTOP;
  15611. $3 = (_stbi__mad3sizes_valid($0,$1,$2)|0);
  15612. $4 = ($3|0)==(0);
  15613. if ($4) {
  15614. $$0 = 0;
  15615. return ($$0|0);
  15616. }
  15617. $5 = Math_imul($1, $0)|0;
  15618. $6 = Math_imul($5, $2)|0;
  15619. $7 = (_stbi__malloc($6)|0);
  15620. $$0 = $7;
  15621. return ($$0|0);
  15622. }
  15623. function _stbi__mad3sizes_valid($0,$1,$2) {
  15624. $0 = $0|0;
  15625. $1 = $1|0;
  15626. $2 = $2|0;
  15627. 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;
  15628. sp = STACKTOP;
  15629. $3 = (_stbi__mul2sizes_valid($0,$1)|0);
  15630. $4 = ($3|0)==(0);
  15631. if ($4) {
  15632. $12 = 0;
  15633. } else {
  15634. $5 = Math_imul($1, $0)|0;
  15635. $6 = (_stbi__mul2sizes_valid($5,$2)|0);
  15636. $7 = ($6|0)==(0);
  15637. if ($7) {
  15638. $12 = 0;
  15639. } else {
  15640. $8 = Math_imul($5, $2)|0;
  15641. $9 = (_stbi__addsizes_valid($8)|0);
  15642. $10 = ($9|0)!=(0);
  15643. $12 = $10;
  15644. }
  15645. }
  15646. $11 = $12&1;
  15647. return ($11|0);
  15648. }
  15649. function _stbi__do_png($0,$1,$2,$3,$4,$5) {
  15650. $0 = $0|0;
  15651. $1 = $1|0;
  15652. $2 = $2|0;
  15653. $3 = $3|0;
  15654. $4 = $4|0;
  15655. $5 = $5|0;
  15656. 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;
  15657. 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;
  15658. var $9 = 0, label = 0, sp = 0;
  15659. sp = STACKTOP;
  15660. $6 = ($4>>>0)>(4);
  15661. if ($6) {
  15662. _stbi__err(6675);
  15663. $$045 = 0;
  15664. return ($$045|0);
  15665. }
  15666. $7 = (_stbi__parse_png_file($0,0,$4)|0);
  15667. $8 = ($7|0)==(0);
  15668. if ($8) {
  15669. $$2 = 0;
  15670. } else {
  15671. $9 = ((($0)) + 16|0);
  15672. $10 = HEAP32[$9>>2]|0;
  15673. $11 = ($10|0)>(8);
  15674. $$ = $11 ? $10 : 8;
  15675. HEAP32[$5>>2] = $$;
  15676. $12 = ((($0)) + 12|0);
  15677. $13 = HEAP32[$12>>2]|0;
  15678. HEAP32[$12>>2] = 0;
  15679. $14 = ($4|0)==(0);
  15680. if ($14) {
  15681. $$1 = $13;
  15682. } else {
  15683. $15 = HEAP32[$0>>2]|0;
  15684. $16 = ((($15)) + 12|0);
  15685. $17 = HEAP32[$16>>2]|0;
  15686. $18 = ($17|0)==($4|0);
  15687. if ($18) {
  15688. $$1 = $13;
  15689. } else {
  15690. $19 = HEAP32[$5>>2]|0;
  15691. $20 = ($19|0)==(8);
  15692. $21 = ((($15)) + 4|0);
  15693. $22 = HEAP32[$21>>2]|0;
  15694. $23 = HEAP32[$15>>2]|0;
  15695. if ($20) {
  15696. $24 = (_stbi__convert_format($13,$17,$4,$23,$22)|0);
  15697. $$0 = $24;
  15698. } else {
  15699. $25 = (_stbi__convert_format16($13,$17,$4,$23,$22)|0);
  15700. $$0 = $25;
  15701. }
  15702. $26 = HEAP32[$0>>2]|0;
  15703. $27 = ((($26)) + 12|0);
  15704. HEAP32[$27>>2] = $4;
  15705. $28 = ($$0|0)==(0|0);
  15706. if ($28) {
  15707. $$045 = 0;
  15708. return ($$045|0);
  15709. } else {
  15710. $$1 = $$0;
  15711. }
  15712. }
  15713. }
  15714. $29 = HEAP32[$0>>2]|0;
  15715. $30 = HEAP32[$29>>2]|0;
  15716. HEAP32[$1>>2] = $30;
  15717. $31 = ((($29)) + 4|0);
  15718. $32 = HEAP32[$31>>2]|0;
  15719. HEAP32[$2>>2] = $32;
  15720. $33 = ($3|0)==(0|0);
  15721. if ($33) {
  15722. $$2 = $$1;
  15723. } else {
  15724. $34 = ((($29)) + 8|0);
  15725. $35 = HEAP32[$34>>2]|0;
  15726. HEAP32[$3>>2] = $35;
  15727. $$2 = $$1;
  15728. }
  15729. }
  15730. $36 = ((($0)) + 12|0);
  15731. $37 = HEAP32[$36>>2]|0;
  15732. _free($37);
  15733. HEAP32[$36>>2] = 0;
  15734. $38 = ((($0)) + 8|0);
  15735. $39 = HEAP32[$38>>2]|0;
  15736. _free($39);
  15737. HEAP32[$38>>2] = 0;
  15738. $40 = ((($0)) + 4|0);
  15739. $41 = HEAP32[$40>>2]|0;
  15740. _free($41);
  15741. HEAP32[$40>>2] = 0;
  15742. $$045 = $$2;
  15743. return ($$045|0);
  15744. }
  15745. function _stbi__parse_png_file($0,$1,$2) {
  15746. $0 = $0|0;
  15747. $1 = $1|0;
  15748. $2 = $2|0;
  15749. 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;
  15750. 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;
  15751. 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;
  15752. 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;
  15753. 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;
  15754. 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;
  15755. 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;
  15756. 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;
  15757. 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;
  15758. 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;
  15759. 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;
  15760. 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;
  15761. 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;
  15762. sp = STACKTOP;
  15763. STACKTOP = STACKTOP + 1056|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(1056|0);
  15764. $3 = sp + 32|0;
  15765. $4 = sp + 22|0;
  15766. $5 = sp + 16|0;
  15767. $6 = sp + 8|0;
  15768. $7 = sp;
  15769. $8 = HEAP32[$0>>2]|0;
  15770. $9 = ((($0)) + 8|0);
  15771. HEAP32[$9>>2] = 0;
  15772. $10 = ((($0)) + 4|0);
  15773. HEAP32[$10>>2] = 0;
  15774. $11 = ((($0)) + 12|0);
  15775. HEAP32[$11>>2] = 0;
  15776. $12 = (_stbi__check_png_header($8)|0);
  15777. $13 = ($12|0)==(0);
  15778. if ($13) {
  15779. $$7 = 0;
  15780. STACKTOP = sp;return ($$7|0);
  15781. }
  15782. $14 = ($1|0)==(1);
  15783. if ($14) {
  15784. $$7 = 1;
  15785. STACKTOP = sp;return ($$7|0);
  15786. }
  15787. $15 = ((($6)) + 4|0);
  15788. $16 = ((($8)) + 4|0);
  15789. $17 = ((($0)) + 16|0);
  15790. $18 = ((($8)) + 8|0);
  15791. $19 = ($1|0)==(2);
  15792. $20 = ((($8)) + 8|0);
  15793. $21 = ((($8)) + 8|0);
  15794. $22 = ((($0)) + 16|0);
  15795. $23 = ($1|0)==(2);
  15796. $24 = ($1|0)==(2);
  15797. $$0206 = 0;$$0211 = 0;$$0214 = 0;$$0217 = 0;$$0228 = 0;$$0231 = 0;$$0235 = 0;$$0241 = 1;$$0245 = 0;
  15798. L7: while(1) {
  15799. _stbi__get_chunk_header($6,$8);
  15800. $25 = HEAP32[$15>>2]|0;
  15801. $switch$split2D = ($25|0)<(1229472850);
  15802. L9: do {
  15803. if ($switch$split2D) {
  15804. $switch$split52D = ($25|0)<(1229209940);
  15805. if ($switch$split52D) {
  15806. switch ($25|0) {
  15807. case 1130840649: {
  15808. break;
  15809. }
  15810. default: {
  15811. label = 103;
  15812. break L9;
  15813. }
  15814. }
  15815. $26 = HEAP32[$6>>2]|0;
  15816. _stbi__skip($8,$26);
  15817. $$1212 = $$0211;$$1215 = $$0214;$$1229 = 1;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$0217;
  15818. break;
  15819. }
  15820. $switch$split112D = ($25|0)<(1229278788);
  15821. if (!($switch$split112D)) {
  15822. switch ($25|0) {
  15823. case 1229278788: {
  15824. label = 85;
  15825. break L7;
  15826. break;
  15827. }
  15828. default: {
  15829. label = 103;
  15830. break L9;
  15831. }
  15832. }
  15833. }
  15834. switch ($25|0) {
  15835. case 1229209940: {
  15836. break;
  15837. }
  15838. default: {
  15839. label = 103;
  15840. break L9;
  15841. }
  15842. }
  15843. $130 = ($$0241|0)==(0);
  15844. if (!($130)) {
  15845. label = 70;
  15846. break L7;
  15847. }
  15848. $131 = ($$0206<<24>>24)==(0);
  15849. $132 = ($$0245|0)!=(0);
  15850. $or$cond = $132 | $131;
  15851. if (!($or$cond)) {
  15852. label = 72;
  15853. break L7;
  15854. }
  15855. if ($24) {
  15856. label = 74;
  15857. break L7;
  15858. }
  15859. $135 = HEAP32[$6>>2]|0;
  15860. $136 = (($135) + ($$0214))|0;
  15861. $137 = ($136|0)<($$0214|0);
  15862. if ($137) {
  15863. $$6$ph = 0;
  15864. break L7;
  15865. }
  15866. $138 = ($136>>>0)>($$0217>>>0);
  15867. if ($138) {
  15868. $139 = ($$0217|0)==(0);
  15869. $140 = ($135>>>0)>(4096);
  15870. $141 = $140 ? $135 : 4096;
  15871. $$$0217 = $139 ? $141 : $$0217;
  15872. $142 = HEAP32[$6>>2]|0;
  15873. $143 = (($142) + ($$0214))|0;
  15874. $$1218 = $$$0217;
  15875. while(1) {
  15876. $144 = ($143>>>0)>($$1218>>>0);
  15877. $145 = $$1218 << 1;
  15878. if ($144) {
  15879. $$1218 = $145;
  15880. } else {
  15881. break;
  15882. }
  15883. }
  15884. $146 = HEAP32[$10>>2]|0;
  15885. $147 = (_realloc($146,$$1218)|0);
  15886. $148 = ($147|0)==(0|0);
  15887. if ($148) {
  15888. label = 81;
  15889. break L7;
  15890. }
  15891. HEAP32[$10>>2] = $147;
  15892. $$2219 = $$1218;
  15893. } else {
  15894. $$2219 = $$0217;
  15895. }
  15896. $149 = HEAP32[$10>>2]|0;
  15897. $150 = (($149) + ($$0214)|0);
  15898. $151 = HEAP32[$6>>2]|0;
  15899. $152 = (_stbi__getn($8,$150,$151)|0);
  15900. $153 = ($152|0)==(0);
  15901. if ($153) {
  15902. label = 83;
  15903. break L7;
  15904. }
  15905. $154 = HEAP32[$6>>2]|0;
  15906. $155 = (($154) + ($$0214))|0;
  15907. $$1212 = $$0211;$$1215 = $155;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$2219;
  15908. } else {
  15909. $switch$split82D = ($25|0)<(1347179589);
  15910. if ($switch$split82D) {
  15911. switch ($25|0) {
  15912. case 1229472850: {
  15913. break;
  15914. }
  15915. default: {
  15916. label = 103;
  15917. break L9;
  15918. }
  15919. }
  15920. $27 = ($$0241|0)==(0);
  15921. if ($27) {
  15922. label = 7;
  15923. break L7;
  15924. }
  15925. $28 = HEAP32[$6>>2]|0;
  15926. $29 = ($28|0)==(13);
  15927. if (!($29)) {
  15928. label = 9;
  15929. break L7;
  15930. }
  15931. $30 = (_stbi__get32be($8)|0);
  15932. HEAP32[$8>>2] = $30;
  15933. $31 = ($30>>>0)>(16777216);
  15934. if ($31) {
  15935. label = 11;
  15936. break L7;
  15937. }
  15938. $32 = (_stbi__get32be($8)|0);
  15939. HEAP32[$16>>2] = $32;
  15940. $33 = ($32>>>0)>(16777216);
  15941. if ($33) {
  15942. label = 13;
  15943. break L7;
  15944. }
  15945. $34 = (_stbi__get8($8)|0);
  15946. $35 = $34&255;
  15947. HEAP32[$17>>2] = $35;
  15948. switch ($34<<24>>24) {
  15949. case 16: case 8: case 4: case 2: case 1: {
  15950. break;
  15951. }
  15952. default: {
  15953. label = 15;
  15954. break L7;
  15955. }
  15956. }
  15957. $36 = (_stbi__get8($8)|0);
  15958. $37 = $36&255;
  15959. $38 = ($36&255)>(6);
  15960. if ($38) {
  15961. label = 17;
  15962. break L7;
  15963. }
  15964. $39 = ($36<<24>>24)==(3);
  15965. if ($39) {
  15966. $40 = HEAP32[$17>>2]|0;
  15967. $41 = ($40|0)==(16);
  15968. if ($41) {
  15969. label = 20;
  15970. break L7;
  15971. } else {
  15972. $$1207 = 3;
  15973. }
  15974. } else {
  15975. $42 = $37 & 1;
  15976. $43 = ($42|0)==(0);
  15977. if ($43) {
  15978. $$1207 = $$0206;
  15979. } else {
  15980. label = 22;
  15981. break L7;
  15982. }
  15983. }
  15984. $44 = (_stbi__get8($8)|0);
  15985. $45 = ($44<<24>>24)==(0);
  15986. if (!($45)) {
  15987. label = 24;
  15988. break L7;
  15989. }
  15990. $46 = (_stbi__get8($8)|0);
  15991. $47 = ($46<<24>>24)==(0);
  15992. if (!($47)) {
  15993. label = 26;
  15994. break L7;
  15995. }
  15996. $48 = (_stbi__get8($8)|0);
  15997. $49 = $48&255;
  15998. $50 = ($48&255)>(1);
  15999. if ($50) {
  16000. label = 28;
  16001. break L7;
  16002. }
  16003. $51 = HEAP32[$8>>2]|0;
  16004. $52 = ($51|0)==(0);
  16005. if ($52) {
  16006. label = 31;
  16007. break L7;
  16008. }
  16009. $53 = HEAP32[$16>>2]|0;
  16010. $54 = ($53|0)==(0);
  16011. if ($54) {
  16012. label = 31;
  16013. break L7;
  16014. }
  16015. $55 = ($$1207<<24>>24)==(0);
  16016. $56 = (1073741824 / ($51>>>0))&-1;
  16017. if (!($55)) {
  16018. HEAP32[$20>>2] = 1;
  16019. $63 = $56 >>> 2;
  16020. $64 = ($63>>>0)<($53>>>0);
  16021. if ($64) {
  16022. label = 37;
  16023. break L7;
  16024. } else {
  16025. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $37;$$2237 = $49;$$2243 = 0;$$3209 = $$1207;$$3220 = $$0217;
  16026. break;
  16027. }
  16028. }
  16029. $57 = $37 & 2;
  16030. $58 = $57 | 1;
  16031. $59 = $37 >>> 2;
  16032. $$lobit = $59 & 1;
  16033. $60 = (($58) + ($$lobit))|0;
  16034. HEAP32[$18>>2] = $60;
  16035. $61 = (($56>>>0) / ($60>>>0))&-1;
  16036. $62 = ($61>>>0)<($53>>>0);
  16037. if ($62) {
  16038. label = 34;
  16039. break L7;
  16040. }
  16041. if ($19) {
  16042. $$6$ph = 1;
  16043. break L7;
  16044. } else {
  16045. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $37;$$2237 = $49;$$2243 = 0;$$3209 = 0;$$3220 = $$0217;
  16046. break;
  16047. }
  16048. }
  16049. $switch$split142D = ($25|0)<(1951551059);
  16050. if ($switch$split142D) {
  16051. switch ($25|0) {
  16052. case 1347179589: {
  16053. break;
  16054. }
  16055. default: {
  16056. label = 103;
  16057. break L9;
  16058. }
  16059. }
  16060. $65 = ($$0241|0)==(0);
  16061. if (!($65)) {
  16062. label = 39;
  16063. break L7;
  16064. }
  16065. $66 = HEAP32[$6>>2]|0;
  16066. $67 = ($66>>>0)>(768);
  16067. if ($67) {
  16068. label = 41;
  16069. break L7;
  16070. }
  16071. $68 = (($66>>>0) / 3)&-1;
  16072. $69 = ($68*3)|0;
  16073. $70 = ($69|0)==($66|0);
  16074. if (!($70)) {
  16075. label = 44;
  16076. break L7;
  16077. }
  16078. $71 = ($66>>>0)>(2);
  16079. if ($71) {
  16080. $$0226593 = 0;
  16081. } else {
  16082. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $68;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = $$0206;$$3220 = $$0217;
  16083. break;
  16084. }
  16085. while(1) {
  16086. $72 = (_stbi__get8($8)|0);
  16087. $73 = $$0226593 << 2;
  16088. $74 = (($3) + ($73)|0);
  16089. HEAP8[$74>>0] = $72;
  16090. $75 = (_stbi__get8($8)|0);
  16091. $76 = $73 | 1;
  16092. $77 = (($3) + ($76)|0);
  16093. HEAP8[$77>>0] = $75;
  16094. $78 = (_stbi__get8($8)|0);
  16095. $79 = $73 | 2;
  16096. $80 = (($3) + ($79)|0);
  16097. HEAP8[$80>>0] = $78;
  16098. $81 = $73 | 3;
  16099. $82 = (($3) + ($81)|0);
  16100. HEAP8[$82>>0] = -1;
  16101. $83 = (($$0226593) + 1)|0;
  16102. $84 = ($83>>>0)<($68>>>0);
  16103. if ($84) {
  16104. $$0226593 = $83;
  16105. } else {
  16106. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $68;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$0217;
  16107. break L9;
  16108. }
  16109. }
  16110. }
  16111. switch ($25|0) {
  16112. case 1951551059: {
  16113. break;
  16114. }
  16115. default: {
  16116. label = 103;
  16117. break L9;
  16118. }
  16119. }
  16120. $85 = ($$0241|0)==(0);
  16121. if (!($85)) {
  16122. label = 47;
  16123. break L7;
  16124. }
  16125. $86 = HEAP32[$10>>2]|0;
  16126. $87 = ($86|0)==(0|0);
  16127. if (!($87)) {
  16128. label = 49;
  16129. break L7;
  16130. }
  16131. $88 = ($$0206<<24>>24)==(0);
  16132. if (!($88)) {
  16133. if ($23) {
  16134. label = 52;
  16135. break L7;
  16136. }
  16137. $90 = ($$0245|0)==(0);
  16138. if ($90) {
  16139. label = 54;
  16140. break L7;
  16141. }
  16142. $91 = HEAP32[$6>>2]|0;
  16143. $92 = ($91>>>0)>($$0245>>>0);
  16144. if ($92) {
  16145. label = 58;
  16146. break L7;
  16147. }
  16148. $93 = HEAP32[$6>>2]|0;
  16149. $94 = ($93|0)==(0);
  16150. if ($94) {
  16151. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = 4;$$3220 = $$0217;
  16152. break;
  16153. }
  16154. $95 = HEAP32[$6>>2]|0;
  16155. $$1227588 = 0;
  16156. while(1) {
  16157. $96 = (_stbi__get8($8)|0);
  16158. $97 = $$1227588 << 2;
  16159. $98 = $97 | 3;
  16160. $99 = (($3) + ($98)|0);
  16161. HEAP8[$99>>0] = $96;
  16162. $100 = (($$1227588) + 1)|0;
  16163. $101 = ($100>>>0)<($95>>>0);
  16164. if ($101) {
  16165. $$1227588 = $100;
  16166. } else {
  16167. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = 4;$$3220 = $$0217;
  16168. break L9;
  16169. }
  16170. }
  16171. }
  16172. $102 = HEAP32[$21>>2]|0;
  16173. $103 = $102 & 1;
  16174. $104 = ($103|0)==(0);
  16175. if ($104) {
  16176. label = 61;
  16177. break L7;
  16178. }
  16179. $105 = HEAP32[$6>>2]|0;
  16180. $106 = $102 << 1;
  16181. $107 = ($105|0)==($106|0);
  16182. if (!($107)) {
  16183. label = 63;
  16184. break L7;
  16185. }
  16186. $108 = HEAP32[$22>>2]|0;
  16187. $109 = ($108|0)==(16);
  16188. $110 = HEAP32[$21>>2]|0;
  16189. $111 = ($110|0)>(0);
  16190. if ($109) {
  16191. if ($111) {
  16192. $$0239591 = 0;
  16193. } else {
  16194. $$1212 = 1;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = 0;$$3220 = $$0217;
  16195. break;
  16196. }
  16197. while(1) {
  16198. $112 = (_stbi__get16be($8)|0);
  16199. $113 = $112&65535;
  16200. $114 = (($5) + ($$0239591<<1)|0);
  16201. HEAP16[$114>>1] = $113;
  16202. $115 = (($$0239591) + 1)|0;
  16203. $116 = HEAP32[$21>>2]|0;
  16204. $117 = ($115|0)<($116|0);
  16205. if ($117) {
  16206. $$0239591 = $115;
  16207. } else {
  16208. $$1212 = 1;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$0217;
  16209. break;
  16210. }
  16211. }
  16212. } else {
  16213. if ($111) {
  16214. $$1240589 = 0;
  16215. } else {
  16216. $$1212 = 1;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = 0;$$3220 = $$0217;
  16217. break;
  16218. }
  16219. while(1) {
  16220. $118 = (_stbi__get16be($8)|0);
  16221. $119 = $118 & 255;
  16222. $120 = HEAP32[$22>>2]|0;
  16223. $121 = (6991 + ($120)|0);
  16224. $122 = HEAP8[$121>>0]|0;
  16225. $123 = $122&255;
  16226. $124 = Math_imul($123, $119)|0;
  16227. $125 = $124&255;
  16228. $126 = (($4) + ($$1240589)|0);
  16229. HEAP8[$126>>0] = $125;
  16230. $127 = (($$1240589) + 1)|0;
  16231. $128 = HEAP32[$21>>2]|0;
  16232. $129 = ($127|0)<($128|0);
  16233. if ($129) {
  16234. $$1240589 = $127;
  16235. } else {
  16236. $$1212 = 1;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = $$0241;$$3209 = $$0206;$$3220 = $$0217;
  16237. break;
  16238. }
  16239. }
  16240. }
  16241. }
  16242. } while(0);
  16243. if ((label|0) == 103) {
  16244. label = 0;
  16245. $202 = ($$0241|0)==(0);
  16246. if (!($202)) {
  16247. label = 104;
  16248. break;
  16249. }
  16250. $203 = $25 & 536870912;
  16251. $204 = ($203|0)==(0);
  16252. if ($204) {
  16253. label = 106;
  16254. break;
  16255. }
  16256. $213 = HEAP32[$6>>2]|0;
  16257. _stbi__skip($8,$213);
  16258. $$1212 = $$0211;$$1215 = $$0214;$$1229 = $$0228;$$1246 = $$0245;$$2233 = $$0231;$$2237 = $$0235;$$2243 = 0;$$3209 = $$0206;$$3220 = $$0217;
  16259. }
  16260. (_stbi__get32be($8)|0);
  16261. $$0206 = $$3209;$$0211 = $$1212;$$0214 = $$1215;$$0217 = $$3220;$$0228 = $$1229;$$0231 = $$2233;$$0235 = $$2237;$$0241 = $$2243;$$0245 = $$1246;
  16262. }
  16263. switch (label|0) {
  16264. case 7: {
  16265. _stbi__err(6765);
  16266. $$6$ph = 0;
  16267. break;
  16268. }
  16269. case 9: {
  16270. _stbi__err(6779);
  16271. $$6$ph = 0;
  16272. break;
  16273. }
  16274. case 11: {
  16275. _stbi__err(6792);
  16276. $$6$ph = 0;
  16277. break;
  16278. }
  16279. case 13: {
  16280. _stbi__err(6792);
  16281. $$6$ph = 0;
  16282. break;
  16283. }
  16284. case 15: {
  16285. _stbi__err(6802);
  16286. $$6$ph = 0;
  16287. break;
  16288. }
  16289. case 17: {
  16290. _stbi__err(6822);
  16291. $$6$ph = 0;
  16292. break;
  16293. }
  16294. case 20: {
  16295. _stbi__err(6822);
  16296. $$6$ph = 0;
  16297. break;
  16298. }
  16299. case 22: {
  16300. _stbi__err(6822);
  16301. $$6$ph = 0;
  16302. break;
  16303. }
  16304. case 24: {
  16305. _stbi__err(6832);
  16306. $$6$ph = 0;
  16307. break;
  16308. }
  16309. case 26: {
  16310. _stbi__err(6848);
  16311. $$6$ph = 0;
  16312. break;
  16313. }
  16314. case 28: {
  16315. _stbi__err(6866);
  16316. $$6$ph = 0;
  16317. break;
  16318. }
  16319. case 31: {
  16320. _stbi__err(6887);
  16321. $$6$ph = 0;
  16322. break;
  16323. }
  16324. case 34: {
  16325. _stbi__err(6792);
  16326. $$6$ph = 0;
  16327. break;
  16328. }
  16329. case 37: {
  16330. _stbi__err(6792);
  16331. $$6$ph = 0;
  16332. break;
  16333. }
  16334. case 39: {
  16335. _stbi__err(6901);
  16336. $$6$ph = 0;
  16337. break;
  16338. }
  16339. case 41: {
  16340. _stbi__err(6916);
  16341. $$6$ph = 0;
  16342. break;
  16343. }
  16344. case 44: {
  16345. _stbi__err(6916);
  16346. $$6$ph = 0;
  16347. break;
  16348. }
  16349. case 47: {
  16350. _stbi__err(6901);
  16351. $$6$ph = 0;
  16352. break;
  16353. }
  16354. case 49: {
  16355. _stbi__err(6929);
  16356. $$6$ph = 0;
  16357. break;
  16358. }
  16359. case 52: {
  16360. $89 = ((($8)) + 8|0);
  16361. HEAP32[$89>>2] = 4;
  16362. $$6$ph = 1;
  16363. break;
  16364. }
  16365. case 54: {
  16366. _stbi__err(6945);
  16367. $$6$ph = 0;
  16368. break;
  16369. }
  16370. case 58: {
  16371. _stbi__err(6962);
  16372. $$6$ph = 0;
  16373. break;
  16374. }
  16375. case 61: {
  16376. _stbi__err(6975);
  16377. $$6$ph = 0;
  16378. break;
  16379. }
  16380. case 63: {
  16381. _stbi__err(6962);
  16382. $$6$ph = 0;
  16383. break;
  16384. }
  16385. case 70: {
  16386. _stbi__err(6901);
  16387. $$6$ph = 0;
  16388. break;
  16389. }
  16390. case 72: {
  16391. _stbi__err(7000);
  16392. $$6$ph = 0;
  16393. break;
  16394. }
  16395. case 74: {
  16396. $133 = $$0206&255;
  16397. $134 = ((($8)) + 8|0);
  16398. HEAP32[$134>>2] = $133;
  16399. $$6$ph = 1;
  16400. break;
  16401. }
  16402. case 81: {
  16403. _stbi__err(6585);
  16404. $$6$ph = 0;
  16405. break;
  16406. }
  16407. case 83: {
  16408. _stbi__err(7008);
  16409. $$6$ph = 0;
  16410. break;
  16411. }
  16412. case 85: {
  16413. $156 = ($$0241|0)==(0);
  16414. do {
  16415. if ($156) {
  16416. $157 = ($1|0)==(0);
  16417. if ($157) {
  16418. $158 = HEAP32[$10>>2]|0;
  16419. $159 = ($158|0)==(0|0);
  16420. if ($159) {
  16421. _stbi__err(7018);
  16422. $$4 = 0;
  16423. break;
  16424. }
  16425. $160 = HEAP32[$8>>2]|0;
  16426. $161 = ((($0)) + 16|0);
  16427. $162 = HEAP32[$161>>2]|0;
  16428. $163 = Math_imul($162, $160)|0;
  16429. $164 = (($163) + 7)|0;
  16430. $165 = $164 >>> 3;
  16431. $166 = ((($8)) + 4|0);
  16432. $167 = HEAP32[$166>>2]|0;
  16433. $168 = ((($8)) + 8|0);
  16434. $169 = HEAP32[$168>>2]|0;
  16435. $170 = Math_imul($169, $167)|0;
  16436. $171 = Math_imul($170, $165)|0;
  16437. $172 = (($171) + ($167))|0;
  16438. HEAP32[$7>>2] = $172;
  16439. $173 = ($$0228|0)!=(0);
  16440. $174 = $173 ^ 1;
  16441. $175 = $174&1;
  16442. $176 = (_stbi_zlib_decode_malloc_guesssize_headerflag($158,$$0214,$172,$7,$175)|0);
  16443. HEAP32[$9>>2] = $176;
  16444. $177 = ($176|0)==(0|0);
  16445. if ($177) {
  16446. $$4 = 0;
  16447. } else {
  16448. $178 = HEAP32[$10>>2]|0;
  16449. _free($178);
  16450. HEAP32[$10>>2] = 0;
  16451. $179 = HEAP32[$168>>2]|0;
  16452. $180 = (($179) + 1)|0;
  16453. $notlhs = ($180|0)!=($2|0);
  16454. $notrhs = ($2|0)==(3);
  16455. $or$cond5$not = $notrhs | $notlhs;
  16456. $181 = ($$0206<<24>>24)!=(0);
  16457. $or$cond7 = $181 | $or$cond5$not;
  16458. $182 = ($$0211<<24>>24)==(0);
  16459. $or$cond248 = $182 & $or$cond7;
  16460. $$254 = $or$cond248 ? $179 : $180;
  16461. $183 = ((($8)) + 12|0);
  16462. HEAP32[$183>>2] = $$254;
  16463. $184 = HEAP32[$9>>2]|0;
  16464. $185 = HEAP32[$7>>2]|0;
  16465. $186 = HEAP32[$161>>2]|0;
  16466. $187 = (_stbi__create_png_image($0,$184,$185,$$254,$186,$$0231,$$0235)|0);
  16467. $188 = ($187|0)==(0);
  16468. if ($188) {
  16469. $$4 = 0;
  16470. } else {
  16471. do {
  16472. if (!($182)) {
  16473. $189 = HEAP32[$161>>2]|0;
  16474. $190 = ($189|0)==(16);
  16475. if ($190) {
  16476. $191 = HEAP32[$183>>2]|0;
  16477. _stbi__compute_transparency16($0,$5,$191);
  16478. break;
  16479. } else {
  16480. $192 = HEAP32[$183>>2]|0;
  16481. _stbi__compute_transparency($0,$4,$192);
  16482. break;
  16483. }
  16484. }
  16485. } while(0);
  16486. $193 = HEAP32[5171]|0;
  16487. $194 = ($193|0)!=(0);
  16488. $or$cond11 = $173 & $194;
  16489. if ($or$cond11) {
  16490. $195 = HEAP32[$183>>2]|0;
  16491. $196 = ($195|0)>(2);
  16492. if ($196) {
  16493. _stbi__de_iphone($0);
  16494. }
  16495. }
  16496. if ($181) {
  16497. $197 = $$0206&255;
  16498. HEAP32[$168>>2] = $197;
  16499. $198 = ($2|0)>(2);
  16500. $$ = $198 ? $2 : $197;
  16501. HEAP32[$183>>2] = $$;
  16502. $199 = (_stbi__expand_png_palette($0,$3,$$)|0);
  16503. $200 = ($199|0)==(0);
  16504. if ($200) {
  16505. $$4 = 0;
  16506. break;
  16507. }
  16508. }
  16509. $201 = HEAP32[$9>>2]|0;
  16510. _free($201);
  16511. HEAP32[$9>>2] = 0;
  16512. $$4 = 1;
  16513. }
  16514. }
  16515. } else {
  16516. $$4 = 1;
  16517. }
  16518. } else {
  16519. _stbi__err(6901);
  16520. $$4 = 0;
  16521. }
  16522. } while(0);
  16523. $$6$ph = $$4;
  16524. break;
  16525. }
  16526. case 104: {
  16527. _stbi__err(6901);
  16528. $$6$ph = 0;
  16529. break;
  16530. }
  16531. case 106: {
  16532. $205 = $25 >>> 24;
  16533. $206 = $205&255;
  16534. HEAP8[7026] = $206;
  16535. $207 = HEAP32[$15>>2]|0;
  16536. $208 = $207 >>> 16;
  16537. $209 = $208&255;
  16538. HEAP8[(7027)>>0] = $209;
  16539. $210 = $207 >>> 8;
  16540. $211 = $210&255;
  16541. HEAP8[(7028)>>0] = $211;
  16542. $212 = $207&255;
  16543. HEAP8[(7029)>>0] = $212;
  16544. _stbi__err(7026);
  16545. $$6$ph = 0;
  16546. break;
  16547. }
  16548. }
  16549. $$7 = $$6$ph;
  16550. STACKTOP = sp;return ($$7|0);
  16551. }
  16552. function _stbi__convert_format($0,$1,$2,$3,$4) {
  16553. $0 = $0|0;
  16554. $1 = $1|0;
  16555. $2 = $2|0;
  16556. $3 = $3|0;
  16557. $4 = $4|0;
  16558. 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;
  16559. 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;
  16560. 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;
  16561. 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;
  16562. 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;
  16563. 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;
  16564. 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;
  16565. 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;
  16566. 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;
  16567. 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;
  16568. var sp = 0;
  16569. sp = STACKTOP;
  16570. $5 = ($2|0)==($1|0);
  16571. if ($5) {
  16572. $$0163 = $0;
  16573. return ($$0163|0);
  16574. }
  16575. $$off = (($2) + -1)|0;
  16576. $6 = ($$off>>>0)<(4);
  16577. if (!($6)) {
  16578. ___assert_fail((6688|0),(6620|0),1477,(6744|0));
  16579. // unreachable;
  16580. }
  16581. $7 = (_stbi__malloc_mad3($2,$3,$4)|0);
  16582. $8 = ($7|0)==(0|0);
  16583. if ($8) {
  16584. _free($0);
  16585. _stbi__err(6585);
  16586. $$0163 = 0;
  16587. return ($$0163|0);
  16588. }
  16589. $9 = ($4|0)>(0);
  16590. L11: do {
  16591. if ($9) {
  16592. $10 = $1 << 3;
  16593. $11 = (($10) + ($2))|0;
  16594. $$0165254 = (($3) + -1)|0;
  16595. $12 = ($$0165254|0)>(-1);
  16596. $$1166249 = (($3) + -1)|0;
  16597. $13 = ($$1166249|0)>(-1);
  16598. $$2167244 = (($3) + -1)|0;
  16599. $14 = ($$2167244|0)>(-1);
  16600. $$3168239 = (($3) + -1)|0;
  16601. $15 = ($$3168239|0)>(-1);
  16602. $$4169234 = (($3) + -1)|0;
  16603. $16 = ($$4169234|0)>(-1);
  16604. $$5170229 = (($3) + -1)|0;
  16605. $17 = ($$5170229|0)>(-1);
  16606. $$6171224 = (($3) + -1)|0;
  16607. $18 = ($$6171224|0)>(-1);
  16608. $$7172219 = (($3) + -1)|0;
  16609. $19 = ($$7172219|0)>(-1);
  16610. $$8173214 = (($3) + -1)|0;
  16611. $20 = ($$8173214|0)>(-1);
  16612. $$9174209 = (($3) + -1)|0;
  16613. $21 = ($$9174209|0)>(-1);
  16614. $$10175204 = (($3) + -1)|0;
  16615. $22 = ($$10175204|0)>(-1);
  16616. $$11176200 = (($3) + -1)|0;
  16617. $23 = ($$11176200|0)>(-1);
  16618. $$0164259 = 0;
  16619. L13: while(1) {
  16620. $24 = Math_imul($$0164259, $3)|0;
  16621. $25 = Math_imul($24, $1)|0;
  16622. $26 = (($0) + ($25)|0);
  16623. $27 = Math_imul($24, $2)|0;
  16624. $28 = (($7) + ($27)|0);
  16625. do {
  16626. switch ($11|0) {
  16627. case 10: {
  16628. if ($12) {
  16629. $$0151255 = $26;$$0165257 = $$0165254;$$0256 = $28;
  16630. while(1) {
  16631. $29 = HEAP8[$$0151255>>0]|0;
  16632. HEAP8[$$0256>>0] = $29;
  16633. $30 = ((($$0256)) + 1|0);
  16634. HEAP8[$30>>0] = -1;
  16635. $31 = ((($$0151255)) + 1|0);
  16636. $32 = ((($$0256)) + 2|0);
  16637. $$0165 = (($$0165257) + -1)|0;
  16638. $33 = ($$0165|0)>(-1);
  16639. if ($33) {
  16640. $$0151255 = $31;$$0165257 = $$0165;$$0256 = $32;
  16641. } else {
  16642. break;
  16643. }
  16644. }
  16645. }
  16646. break;
  16647. }
  16648. case 11: {
  16649. if ($13) {
  16650. $$1152250 = $26;$$1166252 = $$1166249;$$1251 = $28;
  16651. while(1) {
  16652. $34 = HEAP8[$$1152250>>0]|0;
  16653. $35 = ((($$1251)) + 2|0);
  16654. HEAP8[$35>>0] = $34;
  16655. $36 = ((($$1251)) + 1|0);
  16656. HEAP8[$36>>0] = $34;
  16657. HEAP8[$$1251>>0] = $34;
  16658. $37 = ((($$1152250)) + 1|0);
  16659. $38 = ((($$1251)) + 3|0);
  16660. $$1166 = (($$1166252) + -1)|0;
  16661. $39 = ($$1166|0)>(-1);
  16662. if ($39) {
  16663. $$1152250 = $37;$$1166252 = $$1166;$$1251 = $38;
  16664. } else {
  16665. break;
  16666. }
  16667. }
  16668. }
  16669. break;
  16670. }
  16671. case 12: {
  16672. if ($14) {
  16673. $$2153245 = $26;$$2167247 = $$2167244;$$2246 = $28;
  16674. while(1) {
  16675. $40 = HEAP8[$$2153245>>0]|0;
  16676. $41 = ((($$2246)) + 2|0);
  16677. HEAP8[$41>>0] = $40;
  16678. $42 = ((($$2246)) + 1|0);
  16679. HEAP8[$42>>0] = $40;
  16680. HEAP8[$$2246>>0] = $40;
  16681. $43 = ((($$2246)) + 3|0);
  16682. HEAP8[$43>>0] = -1;
  16683. $44 = ((($$2153245)) + 1|0);
  16684. $45 = ((($$2246)) + 4|0);
  16685. $$2167 = (($$2167247) + -1)|0;
  16686. $46 = ($$2167|0)>(-1);
  16687. if ($46) {
  16688. $$2153245 = $44;$$2167247 = $$2167;$$2246 = $45;
  16689. } else {
  16690. break;
  16691. }
  16692. }
  16693. }
  16694. break;
  16695. }
  16696. case 17: {
  16697. if ($15) {
  16698. $$3154240 = $26;$$3168242 = $$3168239;$$3241 = $28;
  16699. while(1) {
  16700. $47 = HEAP8[$$3154240>>0]|0;
  16701. HEAP8[$$3241>>0] = $47;
  16702. $48 = ((($$3154240)) + 2|0);
  16703. $49 = ((($$3241)) + 1|0);
  16704. $$3168 = (($$3168242) + -1)|0;
  16705. $50 = ($$3168|0)>(-1);
  16706. if ($50) {
  16707. $$3154240 = $48;$$3168242 = $$3168;$$3241 = $49;
  16708. } else {
  16709. break;
  16710. }
  16711. }
  16712. }
  16713. break;
  16714. }
  16715. case 19: {
  16716. if ($16) {
  16717. $$4155235 = $26;$$4169237 = $$4169234;$$4236 = $28;
  16718. while(1) {
  16719. $51 = HEAP8[$$4155235>>0]|0;
  16720. $52 = ((($$4236)) + 2|0);
  16721. HEAP8[$52>>0] = $51;
  16722. $53 = ((($$4236)) + 1|0);
  16723. HEAP8[$53>>0] = $51;
  16724. HEAP8[$$4236>>0] = $51;
  16725. $54 = ((($$4155235)) + 2|0);
  16726. $55 = ((($$4236)) + 3|0);
  16727. $$4169 = (($$4169237) + -1)|0;
  16728. $56 = ($$4169|0)>(-1);
  16729. if ($56) {
  16730. $$4155235 = $54;$$4169237 = $$4169;$$4236 = $55;
  16731. } else {
  16732. break;
  16733. }
  16734. }
  16735. }
  16736. break;
  16737. }
  16738. case 20: {
  16739. if ($17) {
  16740. $$5156230 = $26;$$5170232 = $$5170229;$$5231 = $28;
  16741. while(1) {
  16742. $57 = HEAP8[$$5156230>>0]|0;
  16743. $58 = ((($$5231)) + 2|0);
  16744. HEAP8[$58>>0] = $57;
  16745. $59 = ((($$5231)) + 1|0);
  16746. HEAP8[$59>>0] = $57;
  16747. HEAP8[$$5231>>0] = $57;
  16748. $60 = ((($$5156230)) + 1|0);
  16749. $61 = HEAP8[$60>>0]|0;
  16750. $62 = ((($$5231)) + 3|0);
  16751. HEAP8[$62>>0] = $61;
  16752. $63 = ((($$5156230)) + 2|0);
  16753. $64 = ((($$5231)) + 4|0);
  16754. $$5170 = (($$5170232) + -1)|0;
  16755. $65 = ($$5170|0)>(-1);
  16756. if ($65) {
  16757. $$5156230 = $63;$$5170232 = $$5170;$$5231 = $64;
  16758. } else {
  16759. break;
  16760. }
  16761. }
  16762. }
  16763. break;
  16764. }
  16765. case 28: {
  16766. if ($18) {
  16767. $$6157225 = $26;$$6171227 = $$6171224;$$6226 = $28;
  16768. while(1) {
  16769. $66 = HEAP8[$$6157225>>0]|0;
  16770. HEAP8[$$6226>>0] = $66;
  16771. $67 = ((($$6157225)) + 1|0);
  16772. $68 = HEAP8[$67>>0]|0;
  16773. $69 = ((($$6226)) + 1|0);
  16774. HEAP8[$69>>0] = $68;
  16775. $70 = ((($$6157225)) + 2|0);
  16776. $71 = HEAP8[$70>>0]|0;
  16777. $72 = ((($$6226)) + 2|0);
  16778. HEAP8[$72>>0] = $71;
  16779. $73 = ((($$6226)) + 3|0);
  16780. HEAP8[$73>>0] = -1;
  16781. $74 = ((($$6157225)) + 3|0);
  16782. $75 = ((($$6226)) + 4|0);
  16783. $$6171 = (($$6171227) + -1)|0;
  16784. $76 = ($$6171|0)>(-1);
  16785. if ($76) {
  16786. $$6157225 = $74;$$6171227 = $$6171;$$6226 = $75;
  16787. } else {
  16788. break;
  16789. }
  16790. }
  16791. }
  16792. break;
  16793. }
  16794. case 25: {
  16795. if ($19) {
  16796. $$7158220 = $26;$$7172222 = $$7172219;$$7221 = $28;
  16797. while(1) {
  16798. $77 = HEAP8[$$7158220>>0]|0;
  16799. $78 = $77&255;
  16800. $79 = ((($$7158220)) + 1|0);
  16801. $80 = HEAP8[$79>>0]|0;
  16802. $81 = $80&255;
  16803. $82 = ((($$7158220)) + 2|0);
  16804. $83 = HEAP8[$82>>0]|0;
  16805. $84 = $83&255;
  16806. $85 = (_stbi__compute_y($78,$81,$84)|0);
  16807. HEAP8[$$7221>>0] = $85;
  16808. $86 = ((($$7158220)) + 3|0);
  16809. $87 = ((($$7221)) + 1|0);
  16810. $$7172 = (($$7172222) + -1)|0;
  16811. $88 = ($$7172|0)>(-1);
  16812. if ($88) {
  16813. $$7158220 = $86;$$7172222 = $$7172;$$7221 = $87;
  16814. } else {
  16815. break;
  16816. }
  16817. }
  16818. }
  16819. break;
  16820. }
  16821. case 26: {
  16822. if ($20) {
  16823. $$8159215 = $26;$$8173217 = $$8173214;$$8216 = $28;
  16824. while(1) {
  16825. $89 = HEAP8[$$8159215>>0]|0;
  16826. $90 = $89&255;
  16827. $91 = ((($$8159215)) + 1|0);
  16828. $92 = HEAP8[$91>>0]|0;
  16829. $93 = $92&255;
  16830. $94 = ((($$8159215)) + 2|0);
  16831. $95 = HEAP8[$94>>0]|0;
  16832. $96 = $95&255;
  16833. $97 = (_stbi__compute_y($90,$93,$96)|0);
  16834. HEAP8[$$8216>>0] = $97;
  16835. $98 = ((($$8216)) + 1|0);
  16836. HEAP8[$98>>0] = -1;
  16837. $99 = ((($$8159215)) + 3|0);
  16838. $100 = ((($$8216)) + 2|0);
  16839. $$8173 = (($$8173217) + -1)|0;
  16840. $101 = ($$8173|0)>(-1);
  16841. if ($101) {
  16842. $$8159215 = $99;$$8173217 = $$8173;$$8216 = $100;
  16843. } else {
  16844. break;
  16845. }
  16846. }
  16847. }
  16848. break;
  16849. }
  16850. case 33: {
  16851. if ($21) {
  16852. $$9160210 = $26;$$9174212 = $$9174209;$$9211 = $28;
  16853. while(1) {
  16854. $102 = HEAP8[$$9160210>>0]|0;
  16855. $103 = $102&255;
  16856. $104 = ((($$9160210)) + 1|0);
  16857. $105 = HEAP8[$104>>0]|0;
  16858. $106 = $105&255;
  16859. $107 = ((($$9160210)) + 2|0);
  16860. $108 = HEAP8[$107>>0]|0;
  16861. $109 = $108&255;
  16862. $110 = (_stbi__compute_y($103,$106,$109)|0);
  16863. HEAP8[$$9211>>0] = $110;
  16864. $111 = ((($$9160210)) + 4|0);
  16865. $112 = ((($$9211)) + 1|0);
  16866. $$9174 = (($$9174212) + -1)|0;
  16867. $113 = ($$9174|0)>(-1);
  16868. if ($113) {
  16869. $$9160210 = $111;$$9174212 = $$9174;$$9211 = $112;
  16870. } else {
  16871. break;
  16872. }
  16873. }
  16874. }
  16875. break;
  16876. }
  16877. case 34: {
  16878. if ($22) {
  16879. $$10161205 = $26;$$10175207 = $$10175204;$$10206 = $28;
  16880. while(1) {
  16881. $114 = HEAP8[$$10161205>>0]|0;
  16882. $115 = $114&255;
  16883. $116 = ((($$10161205)) + 1|0);
  16884. $117 = HEAP8[$116>>0]|0;
  16885. $118 = $117&255;
  16886. $119 = ((($$10161205)) + 2|0);
  16887. $120 = HEAP8[$119>>0]|0;
  16888. $121 = $120&255;
  16889. $122 = (_stbi__compute_y($115,$118,$121)|0);
  16890. HEAP8[$$10206>>0] = $122;
  16891. $123 = ((($$10161205)) + 3|0);
  16892. $124 = HEAP8[$123>>0]|0;
  16893. $125 = ((($$10206)) + 1|0);
  16894. HEAP8[$125>>0] = $124;
  16895. $126 = ((($$10161205)) + 4|0);
  16896. $127 = ((($$10206)) + 2|0);
  16897. $$10175 = (($$10175207) + -1)|0;
  16898. $128 = ($$10175|0)>(-1);
  16899. if ($128) {
  16900. $$10161205 = $126;$$10175207 = $$10175;$$10206 = $127;
  16901. } else {
  16902. break;
  16903. }
  16904. }
  16905. }
  16906. break;
  16907. }
  16908. case 35: {
  16909. if ($23) {
  16910. $$11162201 = $26;$$11176203 = $$11176200;$$11202 = $28;
  16911. while(1) {
  16912. $129 = HEAP8[$$11162201>>0]|0;
  16913. HEAP8[$$11202>>0] = $129;
  16914. $130 = ((($$11162201)) + 1|0);
  16915. $131 = HEAP8[$130>>0]|0;
  16916. $132 = ((($$11202)) + 1|0);
  16917. HEAP8[$132>>0] = $131;
  16918. $133 = ((($$11162201)) + 2|0);
  16919. $134 = HEAP8[$133>>0]|0;
  16920. $135 = ((($$11202)) + 2|0);
  16921. HEAP8[$135>>0] = $134;
  16922. $136 = ((($$11162201)) + 4|0);
  16923. $137 = ((($$11202)) + 3|0);
  16924. $$11176 = (($$11176203) + -1)|0;
  16925. $138 = ($$11176|0)>(-1);
  16926. if ($138) {
  16927. $$11162201 = $136;$$11176203 = $$11176;$$11202 = $137;
  16928. } else {
  16929. break;
  16930. }
  16931. }
  16932. }
  16933. break;
  16934. }
  16935. default: {
  16936. break L13;
  16937. }
  16938. }
  16939. } while(0);
  16940. $139 = (($$0164259) + 1)|0;
  16941. $140 = ($139|0)<($4|0);
  16942. if ($140) {
  16943. $$0164259 = $139;
  16944. } else {
  16945. break L11;
  16946. }
  16947. }
  16948. ___assert_fail((6742|0),(6620|0),1506,(6744|0));
  16949. // unreachable;
  16950. }
  16951. } while(0);
  16952. _free($0);
  16953. $$0163 = $7;
  16954. return ($$0163|0);
  16955. }
  16956. function _stbi__convert_format16($0,$1,$2,$3,$4) {
  16957. $0 = $0|0;
  16958. $1 = $1|0;
  16959. $2 = $2|0;
  16960. $3 = $3|0;
  16961. $4 = $4|0;
  16962. 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;
  16963. 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;
  16964. 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;
  16965. 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;
  16966. 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;
  16967. 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;
  16968. 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;
  16969. 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;
  16970. 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;
  16971. 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;
  16972. var $98 = 0, $99 = 0, label = 0, sp = 0;
  16973. sp = STACKTOP;
  16974. $5 = ($2|0)==($1|0);
  16975. if ($5) {
  16976. $$0163 = $0;
  16977. return ($$0163|0);
  16978. }
  16979. $$off = (($2) + -1)|0;
  16980. $6 = ($$off>>>0)<(4);
  16981. if (!($6)) {
  16982. ___assert_fail((6688|0),(6620|0),1526,(6719|0));
  16983. // unreachable;
  16984. }
  16985. $7 = $2 << 1;
  16986. $8 = Math_imul($7, $3)|0;
  16987. $9 = Math_imul($8, $4)|0;
  16988. $10 = (_stbi__malloc($9)|0);
  16989. $11 = ($10|0)==(0|0);
  16990. if ($11) {
  16991. _free($0);
  16992. _stbi__err(6585);
  16993. $$0163 = 0;
  16994. return ($$0163|0);
  16995. }
  16996. $12 = ($4|0)>(0);
  16997. L11: do {
  16998. if ($12) {
  16999. $13 = $1 << 3;
  17000. $14 = (($13) + ($2))|0;
  17001. $$0165254 = (($3) + -1)|0;
  17002. $15 = ($$0165254|0)>(-1);
  17003. $$1166249 = (($3) + -1)|0;
  17004. $16 = ($$1166249|0)>(-1);
  17005. $$2167244 = (($3) + -1)|0;
  17006. $17 = ($$2167244|0)>(-1);
  17007. $$3168239 = (($3) + -1)|0;
  17008. $18 = ($$3168239|0)>(-1);
  17009. $$4169234 = (($3) + -1)|0;
  17010. $19 = ($$4169234|0)>(-1);
  17011. $$5170229 = (($3) + -1)|0;
  17012. $20 = ($$5170229|0)>(-1);
  17013. $$6171224 = (($3) + -1)|0;
  17014. $21 = ($$6171224|0)>(-1);
  17015. $$7172219 = (($3) + -1)|0;
  17016. $22 = ($$7172219|0)>(-1);
  17017. $$8173214 = (($3) + -1)|0;
  17018. $23 = ($$8173214|0)>(-1);
  17019. $$9174209 = (($3) + -1)|0;
  17020. $24 = ($$9174209|0)>(-1);
  17021. $$10175204 = (($3) + -1)|0;
  17022. $25 = ($$10175204|0)>(-1);
  17023. $$11176200 = (($3) + -1)|0;
  17024. $26 = ($$11176200|0)>(-1);
  17025. $$0164259 = 0;
  17026. L13: while(1) {
  17027. $27 = Math_imul($$0164259, $3)|0;
  17028. $28 = Math_imul($27, $1)|0;
  17029. $29 = (($0) + ($28<<1)|0);
  17030. $30 = Math_imul($27, $2)|0;
  17031. $31 = (($10) + ($30<<1)|0);
  17032. do {
  17033. switch ($14|0) {
  17034. case 10: {
  17035. if ($15) {
  17036. $$0151255 = $29;$$0165257 = $$0165254;$$0256 = $31;
  17037. while(1) {
  17038. $32 = HEAP16[$$0151255>>1]|0;
  17039. HEAP16[$$0256>>1] = $32;
  17040. $33 = ((($$0256)) + 2|0);
  17041. HEAP16[$33>>1] = -1;
  17042. $34 = ((($$0151255)) + 2|0);
  17043. $35 = ((($$0256)) + 4|0);
  17044. $$0165 = (($$0165257) + -1)|0;
  17045. $36 = ($$0165|0)>(-1);
  17046. if ($36) {
  17047. $$0151255 = $34;$$0165257 = $$0165;$$0256 = $35;
  17048. } else {
  17049. break;
  17050. }
  17051. }
  17052. }
  17053. break;
  17054. }
  17055. case 11: {
  17056. if ($16) {
  17057. $$1152250 = $29;$$1166252 = $$1166249;$$1251 = $31;
  17058. while(1) {
  17059. $37 = HEAP16[$$1152250>>1]|0;
  17060. $38 = ((($$1251)) + 4|0);
  17061. HEAP16[$38>>1] = $37;
  17062. $39 = ((($$1251)) + 2|0);
  17063. HEAP16[$39>>1] = $37;
  17064. HEAP16[$$1251>>1] = $37;
  17065. $40 = ((($$1152250)) + 2|0);
  17066. $41 = ((($$1251)) + 6|0);
  17067. $$1166 = (($$1166252) + -1)|0;
  17068. $42 = ($$1166|0)>(-1);
  17069. if ($42) {
  17070. $$1152250 = $40;$$1166252 = $$1166;$$1251 = $41;
  17071. } else {
  17072. break;
  17073. }
  17074. }
  17075. }
  17076. break;
  17077. }
  17078. case 12: {
  17079. if ($17) {
  17080. $$2153245 = $29;$$2167247 = $$2167244;$$2246 = $31;
  17081. while(1) {
  17082. $43 = HEAP16[$$2153245>>1]|0;
  17083. $44 = ((($$2246)) + 4|0);
  17084. HEAP16[$44>>1] = $43;
  17085. $45 = ((($$2246)) + 2|0);
  17086. HEAP16[$45>>1] = $43;
  17087. HEAP16[$$2246>>1] = $43;
  17088. $46 = ((($$2246)) + 6|0);
  17089. HEAP16[$46>>1] = -1;
  17090. $47 = ((($$2153245)) + 2|0);
  17091. $48 = ((($$2246)) + 8|0);
  17092. $$2167 = (($$2167247) + -1)|0;
  17093. $49 = ($$2167|0)>(-1);
  17094. if ($49) {
  17095. $$2153245 = $47;$$2167247 = $$2167;$$2246 = $48;
  17096. } else {
  17097. break;
  17098. }
  17099. }
  17100. }
  17101. break;
  17102. }
  17103. case 17: {
  17104. if ($18) {
  17105. $$3154240 = $29;$$3168242 = $$3168239;$$3241 = $31;
  17106. while(1) {
  17107. $50 = HEAP16[$$3154240>>1]|0;
  17108. HEAP16[$$3241>>1] = $50;
  17109. $51 = ((($$3154240)) + 4|0);
  17110. $52 = ((($$3241)) + 2|0);
  17111. $$3168 = (($$3168242) + -1)|0;
  17112. $53 = ($$3168|0)>(-1);
  17113. if ($53) {
  17114. $$3154240 = $51;$$3168242 = $$3168;$$3241 = $52;
  17115. } else {
  17116. break;
  17117. }
  17118. }
  17119. }
  17120. break;
  17121. }
  17122. case 19: {
  17123. if ($19) {
  17124. $$4155235 = $29;$$4169237 = $$4169234;$$4236 = $31;
  17125. while(1) {
  17126. $54 = HEAP16[$$4155235>>1]|0;
  17127. $55 = ((($$4236)) + 4|0);
  17128. HEAP16[$55>>1] = $54;
  17129. $56 = ((($$4236)) + 2|0);
  17130. HEAP16[$56>>1] = $54;
  17131. HEAP16[$$4236>>1] = $54;
  17132. $57 = ((($$4155235)) + 4|0);
  17133. $58 = ((($$4236)) + 6|0);
  17134. $$4169 = (($$4169237) + -1)|0;
  17135. $59 = ($$4169|0)>(-1);
  17136. if ($59) {
  17137. $$4155235 = $57;$$4169237 = $$4169;$$4236 = $58;
  17138. } else {
  17139. break;
  17140. }
  17141. }
  17142. }
  17143. break;
  17144. }
  17145. case 20: {
  17146. if ($20) {
  17147. $$5156230 = $29;$$5170232 = $$5170229;$$5231 = $31;
  17148. while(1) {
  17149. $60 = HEAP16[$$5156230>>1]|0;
  17150. $61 = ((($$5231)) + 4|0);
  17151. HEAP16[$61>>1] = $60;
  17152. $62 = ((($$5231)) + 2|0);
  17153. HEAP16[$62>>1] = $60;
  17154. HEAP16[$$5231>>1] = $60;
  17155. $63 = ((($$5156230)) + 2|0);
  17156. $64 = HEAP16[$63>>1]|0;
  17157. $65 = ((($$5231)) + 6|0);
  17158. HEAP16[$65>>1] = $64;
  17159. $66 = ((($$5156230)) + 4|0);
  17160. $67 = ((($$5231)) + 8|0);
  17161. $$5170 = (($$5170232) + -1)|0;
  17162. $68 = ($$5170|0)>(-1);
  17163. if ($68) {
  17164. $$5156230 = $66;$$5170232 = $$5170;$$5231 = $67;
  17165. } else {
  17166. break;
  17167. }
  17168. }
  17169. }
  17170. break;
  17171. }
  17172. case 28: {
  17173. if ($21) {
  17174. $$6157225 = $29;$$6171227 = $$6171224;$$6226 = $31;
  17175. while(1) {
  17176. $69 = HEAP16[$$6157225>>1]|0;
  17177. HEAP16[$$6226>>1] = $69;
  17178. $70 = ((($$6157225)) + 2|0);
  17179. $71 = HEAP16[$70>>1]|0;
  17180. $72 = ((($$6226)) + 2|0);
  17181. HEAP16[$72>>1] = $71;
  17182. $73 = ((($$6157225)) + 4|0);
  17183. $74 = HEAP16[$73>>1]|0;
  17184. $75 = ((($$6226)) + 4|0);
  17185. HEAP16[$75>>1] = $74;
  17186. $76 = ((($$6226)) + 6|0);
  17187. HEAP16[$76>>1] = -1;
  17188. $77 = ((($$6157225)) + 6|0);
  17189. $78 = ((($$6226)) + 8|0);
  17190. $$6171 = (($$6171227) + -1)|0;
  17191. $79 = ($$6171|0)>(-1);
  17192. if ($79) {
  17193. $$6157225 = $77;$$6171227 = $$6171;$$6226 = $78;
  17194. } else {
  17195. break;
  17196. }
  17197. }
  17198. }
  17199. break;
  17200. }
  17201. case 25: {
  17202. if ($22) {
  17203. $$7158220 = $29;$$7172222 = $$7172219;$$7221 = $31;
  17204. while(1) {
  17205. $80 = HEAP16[$$7158220>>1]|0;
  17206. $81 = $80&65535;
  17207. $82 = ((($$7158220)) + 2|0);
  17208. $83 = HEAP16[$82>>1]|0;
  17209. $84 = $83&65535;
  17210. $85 = ((($$7158220)) + 4|0);
  17211. $86 = HEAP16[$85>>1]|0;
  17212. $87 = $86&65535;
  17213. $88 = (_stbi__compute_y_16($81,$84,$87)|0);
  17214. HEAP16[$$7221>>1] = $88;
  17215. $89 = ((($$7158220)) + 6|0);
  17216. $90 = ((($$7221)) + 2|0);
  17217. $$7172 = (($$7172222) + -1)|0;
  17218. $91 = ($$7172|0)>(-1);
  17219. if ($91) {
  17220. $$7158220 = $89;$$7172222 = $$7172;$$7221 = $90;
  17221. } else {
  17222. break;
  17223. }
  17224. }
  17225. }
  17226. break;
  17227. }
  17228. case 26: {
  17229. if ($23) {
  17230. $$8159215 = $29;$$8173217 = $$8173214;$$8216 = $31;
  17231. while(1) {
  17232. $92 = HEAP16[$$8159215>>1]|0;
  17233. $93 = $92&65535;
  17234. $94 = ((($$8159215)) + 2|0);
  17235. $95 = HEAP16[$94>>1]|0;
  17236. $96 = $95&65535;
  17237. $97 = ((($$8159215)) + 4|0);
  17238. $98 = HEAP16[$97>>1]|0;
  17239. $99 = $98&65535;
  17240. $100 = (_stbi__compute_y_16($93,$96,$99)|0);
  17241. HEAP16[$$8216>>1] = $100;
  17242. $101 = ((($$8216)) + 2|0);
  17243. HEAP16[$101>>1] = -1;
  17244. $102 = ((($$8159215)) + 6|0);
  17245. $103 = ((($$8216)) + 4|0);
  17246. $$8173 = (($$8173217) + -1)|0;
  17247. $104 = ($$8173|0)>(-1);
  17248. if ($104) {
  17249. $$8159215 = $102;$$8173217 = $$8173;$$8216 = $103;
  17250. } else {
  17251. break;
  17252. }
  17253. }
  17254. }
  17255. break;
  17256. }
  17257. case 33: {
  17258. if ($24) {
  17259. $$9160210 = $29;$$9174212 = $$9174209;$$9211 = $31;
  17260. while(1) {
  17261. $105 = HEAP16[$$9160210>>1]|0;
  17262. $106 = $105&65535;
  17263. $107 = ((($$9160210)) + 2|0);
  17264. $108 = HEAP16[$107>>1]|0;
  17265. $109 = $108&65535;
  17266. $110 = ((($$9160210)) + 4|0);
  17267. $111 = HEAP16[$110>>1]|0;
  17268. $112 = $111&65535;
  17269. $113 = (_stbi__compute_y_16($106,$109,$112)|0);
  17270. HEAP16[$$9211>>1] = $113;
  17271. $114 = ((($$9160210)) + 8|0);
  17272. $115 = ((($$9211)) + 2|0);
  17273. $$9174 = (($$9174212) + -1)|0;
  17274. $116 = ($$9174|0)>(-1);
  17275. if ($116) {
  17276. $$9160210 = $114;$$9174212 = $$9174;$$9211 = $115;
  17277. } else {
  17278. break;
  17279. }
  17280. }
  17281. }
  17282. break;
  17283. }
  17284. case 34: {
  17285. if ($25) {
  17286. $$10161205 = $29;$$10175207 = $$10175204;$$10206 = $31;
  17287. while(1) {
  17288. $117 = HEAP16[$$10161205>>1]|0;
  17289. $118 = $117&65535;
  17290. $119 = ((($$10161205)) + 2|0);
  17291. $120 = HEAP16[$119>>1]|0;
  17292. $121 = $120&65535;
  17293. $122 = ((($$10161205)) + 4|0);
  17294. $123 = HEAP16[$122>>1]|0;
  17295. $124 = $123&65535;
  17296. $125 = (_stbi__compute_y_16($118,$121,$124)|0);
  17297. HEAP16[$$10206>>1] = $125;
  17298. $126 = ((($$10161205)) + 6|0);
  17299. $127 = HEAP16[$126>>1]|0;
  17300. $128 = ((($$10206)) + 2|0);
  17301. HEAP16[$128>>1] = $127;
  17302. $129 = ((($$10161205)) + 8|0);
  17303. $130 = ((($$10206)) + 4|0);
  17304. $$10175 = (($$10175207) + -1)|0;
  17305. $131 = ($$10175|0)>(-1);
  17306. if ($131) {
  17307. $$10161205 = $129;$$10175207 = $$10175;$$10206 = $130;
  17308. } else {
  17309. break;
  17310. }
  17311. }
  17312. }
  17313. break;
  17314. }
  17315. case 35: {
  17316. if ($26) {
  17317. $$11162201 = $29;$$11176203 = $$11176200;$$11202 = $31;
  17318. while(1) {
  17319. $132 = HEAP16[$$11162201>>1]|0;
  17320. HEAP16[$$11202>>1] = $132;
  17321. $133 = ((($$11162201)) + 2|0);
  17322. $134 = HEAP16[$133>>1]|0;
  17323. $135 = ((($$11202)) + 2|0);
  17324. HEAP16[$135>>1] = $134;
  17325. $136 = ((($$11162201)) + 4|0);
  17326. $137 = HEAP16[$136>>1]|0;
  17327. $138 = ((($$11202)) + 4|0);
  17328. HEAP16[$138>>1] = $137;
  17329. $139 = ((($$11162201)) + 8|0);
  17330. $140 = ((($$11202)) + 6|0);
  17331. $$11176 = (($$11176203) + -1)|0;
  17332. $141 = ($$11176|0)>(-1);
  17333. if ($141) {
  17334. $$11162201 = $139;$$11176203 = $$11176;$$11202 = $140;
  17335. } else {
  17336. break;
  17337. }
  17338. }
  17339. }
  17340. break;
  17341. }
  17342. default: {
  17343. break L13;
  17344. }
  17345. }
  17346. } while(0);
  17347. $142 = (($$0164259) + 1)|0;
  17348. $143 = ($142|0)<($4|0);
  17349. if ($143) {
  17350. $$0164259 = $142;
  17351. } else {
  17352. break L11;
  17353. }
  17354. }
  17355. ___assert_fail((6742|0),(6620|0),1555,(6719|0));
  17356. // unreachable;
  17357. }
  17358. } while(0);
  17359. _free($0);
  17360. $$0163 = $10;
  17361. return ($$0163|0);
  17362. }
  17363. function _stbi__compute_y_16($0,$1,$2) {
  17364. $0 = $0|0;
  17365. $1 = $1|0;
  17366. $2 = $2|0;
  17367. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  17368. sp = STACKTOP;
  17369. $3 = ($0*77)|0;
  17370. $4 = ($1*150)|0;
  17371. $5 = (($4) + ($3))|0;
  17372. $6 = ($2*29)|0;
  17373. $7 = (($5) + ($6))|0;
  17374. $8 = $7 >>> 8;
  17375. $9 = $8&65535;
  17376. return ($9|0);
  17377. }
  17378. function _stbi__compute_y($0,$1,$2) {
  17379. $0 = $0|0;
  17380. $1 = $1|0;
  17381. $2 = $2|0;
  17382. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  17383. sp = STACKTOP;
  17384. $3 = ($0*77)|0;
  17385. $4 = ($1*150)|0;
  17386. $5 = (($4) + ($3))|0;
  17387. $6 = ($2*29)|0;
  17388. $7 = (($5) + ($6))|0;
  17389. $8 = $7 >>> 8;
  17390. $9 = $8&255;
  17391. return ($9|0);
  17392. }
  17393. function _stbi__check_png_header($0) {
  17394. $0 = $0|0;
  17395. 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;
  17396. sp = STACKTOP;
  17397. $1 = (_stbi__get8($0)|0);
  17398. $2 = ($1<<24>>24)==(-119);
  17399. if ($2) {
  17400. $3 = (_stbi__get8($0)|0);
  17401. $4 = ($3<<24>>24)==(80);
  17402. if ($4) {
  17403. $5 = (_stbi__get8($0)|0);
  17404. $6 = ($5<<24>>24)==(78);
  17405. if ($6) {
  17406. $7 = (_stbi__get8($0)|0);
  17407. $8 = ($7<<24>>24)==(71);
  17408. if ($8) {
  17409. $9 = (_stbi__get8($0)|0);
  17410. $10 = ($9<<24>>24)==(13);
  17411. if ($10) {
  17412. $11 = (_stbi__get8($0)|0);
  17413. $12 = ($11<<24>>24)==(10);
  17414. if ($12) {
  17415. $13 = (_stbi__get8($0)|0);
  17416. $14 = ($13<<24>>24)==(26);
  17417. if ($14) {
  17418. $15 = (_stbi__get8($0)|0);
  17419. $16 = ($15<<24>>24)==(10);
  17420. if ($16) {
  17421. $$05 = 1;
  17422. return ($$05|0);
  17423. }
  17424. }
  17425. }
  17426. }
  17427. }
  17428. }
  17429. }
  17430. }
  17431. _stbi__err(8022);
  17432. $$05 = 0;
  17433. return ($$05|0);
  17434. }
  17435. function _stbi__get_chunk_header($0,$1) {
  17436. $0 = $0|0;
  17437. $1 = $1|0;
  17438. var $$sroa$4$0$$sroa_idx2 = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  17439. sp = STACKTOP;
  17440. $2 = (_stbi__get32be($1)|0);
  17441. $3 = (_stbi__get32be($1)|0);
  17442. HEAP32[$0>>2] = $2;
  17443. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  17444. HEAP32[$$sroa$4$0$$sroa_idx2>>2] = $3;
  17445. return;
  17446. }
  17447. function _stbi__skip($0,$1) {
  17448. $0 = $0|0;
  17449. $1 = $1|0;
  17450. 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;
  17451. var $8 = 0, $9 = 0, label = 0, sp = 0;
  17452. sp = STACKTOP;
  17453. $2 = ($1|0)<(0);
  17454. if ($2) {
  17455. $3 = ((($0)) + 172|0);
  17456. $4 = HEAP32[$3>>2]|0;
  17457. $5 = ((($0)) + 168|0);
  17458. HEAP32[$5>>2] = $4;
  17459. return;
  17460. }
  17461. $6 = ((($0)) + 16|0);
  17462. $7 = HEAP32[$6>>2]|0;
  17463. $8 = ($7|0)==(0|0);
  17464. if (!($8)) {
  17465. $9 = ((($0)) + 172|0);
  17466. $10 = HEAP32[$9>>2]|0;
  17467. $11 = ((($0)) + 168|0);
  17468. $12 = HEAP32[$11>>2]|0;
  17469. $13 = $10;
  17470. $14 = (($13) - ($12))|0;
  17471. $15 = ($14|0)<($1|0);
  17472. if ($15) {
  17473. HEAP32[$11>>2] = $10;
  17474. $16 = ((($0)) + 20|0);
  17475. $17 = HEAP32[$16>>2]|0;
  17476. $18 = ((($0)) + 28|0);
  17477. $19 = HEAP32[$18>>2]|0;
  17478. $20 = (($1) - ($14))|0;
  17479. FUNCTION_TABLE_vii[$17 & 63]($19,$20);
  17480. return;
  17481. }
  17482. }
  17483. $21 = ((($0)) + 168|0);
  17484. $22 = HEAP32[$21>>2]|0;
  17485. $23 = (($22) + ($1)|0);
  17486. HEAP32[$21>>2] = $23;
  17487. return;
  17488. }
  17489. function _stbi__get32be($0) {
  17490. $0 = $0|0;
  17491. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, label = 0, sp = 0;
  17492. sp = STACKTOP;
  17493. $1 = (_stbi__get16be($0)|0);
  17494. $2 = $1 << 16;
  17495. $3 = (_stbi__get16be($0)|0);
  17496. $4 = (($2) + ($3))|0;
  17497. return ($4|0);
  17498. }
  17499. function _stbi__get8($0) {
  17500. $0 = $0|0;
  17501. 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;
  17502. sp = STACKTOP;
  17503. $1 = ((($0)) + 168|0);
  17504. $2 = HEAP32[$1>>2]|0;
  17505. $3 = ((($0)) + 172|0);
  17506. $4 = HEAP32[$3>>2]|0;
  17507. $5 = ($2>>>0)<($4>>>0);
  17508. do {
  17509. if ($5) {
  17510. $$sink6 = $2;
  17511. } else {
  17512. $6 = ((($0)) + 32|0);
  17513. $7 = HEAP32[$6>>2]|0;
  17514. $8 = ($7|0)==(0);
  17515. if ($8) {
  17516. $$0 = 0;
  17517. return ($$0|0);
  17518. } else {
  17519. _stbi__refill_buffer($0);
  17520. $9 = HEAP32[$1>>2]|0;
  17521. $$sink6 = $9;
  17522. break;
  17523. }
  17524. }
  17525. } while(0);
  17526. $10 = ((($$sink6)) + 1|0);
  17527. HEAP32[$1>>2] = $10;
  17528. $11 = HEAP8[$$sink6>>0]|0;
  17529. $$0 = $11;
  17530. return ($$0|0);
  17531. }
  17532. function _stbi__get16be($0) {
  17533. $0 = $0|0;
  17534. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  17535. sp = STACKTOP;
  17536. $1 = (_stbi__get8($0)|0);
  17537. $2 = $1&255;
  17538. $3 = $2 << 8;
  17539. $4 = (_stbi__get8($0)|0);
  17540. $5 = $4&255;
  17541. $6 = $3 | $5;
  17542. return ($6|0);
  17543. }
  17544. function _stbi__getn($0,$1,$2) {
  17545. $0 = $0|0;
  17546. $1 = $1|0;
  17547. $2 = $2|0;
  17548. 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;
  17549. var $29 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  17550. sp = STACKTOP;
  17551. $3 = ((($0)) + 16|0);
  17552. $4 = HEAP32[$3>>2]|0;
  17553. $5 = ($4|0)==(0|0);
  17554. if (!($5)) {
  17555. $6 = ((($0)) + 172|0);
  17556. $7 = HEAP32[$6>>2]|0;
  17557. $8 = ((($0)) + 168|0);
  17558. $9 = HEAP32[$8>>2]|0;
  17559. $10 = $9;
  17560. $11 = (($7) - ($10))|0;
  17561. $12 = ($11|0)<($2|0);
  17562. if ($12) {
  17563. _memcpy(($1|0),($9|0),($11|0))|0;
  17564. $13 = HEAP32[$3>>2]|0;
  17565. $14 = ((($0)) + 28|0);
  17566. $15 = HEAP32[$14>>2]|0;
  17567. $16 = (($1) + ($11)|0);
  17568. $17 = (($2) - ($11))|0;
  17569. $18 = (FUNCTION_TABLE_iiii[$13 & 15]($15,$16,$17)|0);
  17570. $19 = ($18|0)==($17|0);
  17571. $20 = $19&1;
  17572. $21 = HEAP32[$6>>2]|0;
  17573. HEAP32[$8>>2] = $21;
  17574. $$1 = $20;
  17575. return ($$1|0);
  17576. }
  17577. }
  17578. $22 = ((($0)) + 168|0);
  17579. $23 = HEAP32[$22>>2]|0;
  17580. $24 = (($23) + ($2)|0);
  17581. $25 = ((($0)) + 172|0);
  17582. $26 = HEAP32[$25>>2]|0;
  17583. $27 = ($24>>>0)>($26>>>0);
  17584. if ($27) {
  17585. $$1 = 0;
  17586. return ($$1|0);
  17587. }
  17588. _memcpy(($1|0),($23|0),($2|0))|0;
  17589. $28 = HEAP32[$22>>2]|0;
  17590. $29 = (($28) + ($2)|0);
  17591. HEAP32[$22>>2] = $29;
  17592. $$1 = 1;
  17593. return ($$1|0);
  17594. }
  17595. function _stbi_zlib_decode_malloc_guesssize_headerflag($0,$1,$2,$3,$4) {
  17596. $0 = $0|0;
  17597. $1 = $1|0;
  17598. $2 = $2|0;
  17599. $3 = $3|0;
  17600. $4 = $4|0;
  17601. 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;
  17602. sp = STACKTOP;
  17603. STACKTOP = STACKTOP + 4080|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(4080|0);
  17604. $5 = sp;
  17605. $6 = (_stbi__malloc($2)|0);
  17606. $7 = ($6|0)==(0|0);
  17607. do {
  17608. if ($7) {
  17609. $$0 = 0;
  17610. } else {
  17611. HEAP32[$5>>2] = $0;
  17612. $8 = (($0) + ($1)|0);
  17613. $9 = ((($5)) + 4|0);
  17614. HEAP32[$9>>2] = $8;
  17615. $10 = (_stbi__do_zlib($5,$6,$2,1,$4)|0);
  17616. $11 = ($10|0)==(0);
  17617. $12 = ((($5)) + 20|0);
  17618. $13 = HEAP32[$12>>2]|0;
  17619. if ($11) {
  17620. _free($13);
  17621. $$0 = 0;
  17622. break;
  17623. }
  17624. $14 = ($3|0)==(0|0);
  17625. if ($14) {
  17626. $$0 = $13;
  17627. } else {
  17628. $15 = ((($5)) + 16|0);
  17629. $16 = HEAP32[$15>>2]|0;
  17630. $17 = $13;
  17631. $18 = (($16) - ($17))|0;
  17632. HEAP32[$3>>2] = $18;
  17633. $$0 = $13;
  17634. }
  17635. }
  17636. } while(0);
  17637. STACKTOP = sp;return ($$0|0);
  17638. }
  17639. function _stbi__create_png_image($0,$1,$2,$3,$4,$5,$6) {
  17640. $0 = $0|0;
  17641. $1 = $1|0;
  17642. $2 = $2|0;
  17643. $3 = $3|0;
  17644. $4 = $4|0;
  17645. $5 = $5|0;
  17646. $6 = $6|0;
  17647. 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;
  17648. 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;
  17649. 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;
  17650. 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;
  17651. var $80 = 0, $81 = 0, $82 = 0, $9 = 0, $or$cond = 0, label = 0, sp = 0;
  17652. sp = STACKTOP;
  17653. $7 = ($4|0)==(16);
  17654. $8 = $7 ? 2 : 1;
  17655. $9 = Math_imul($8, $3)|0;
  17656. $10 = ($6|0)==(0);
  17657. $11 = HEAP32[$0>>2]|0;
  17658. $12 = HEAP32[$11>>2]|0;
  17659. $13 = ((($11)) + 4|0);
  17660. $14 = HEAP32[$13>>2]|0;
  17661. if ($10) {
  17662. $15 = (_stbi__create_png_image_raw($0,$1,$2,$3,$12,$14,$4,$5)|0);
  17663. $$4 = $15;
  17664. return ($$4|0);
  17665. }
  17666. $16 = (_stbi__malloc_mad3($12,$14,$9)|0);
  17667. $17 = ((($0)) + 12|0);
  17668. $18 = ((($0)) + 12|0);
  17669. $$0103117 = 0;$$095119 = $1;$$099118 = $2;
  17670. while(1) {
  17671. $19 = HEAP32[$0>>2]|0;
  17672. $20 = HEAP32[$19>>2]|0;
  17673. $21 = (3076 + ($$0103117<<2)|0);
  17674. $22 = HEAP32[$21>>2]|0;
  17675. $23 = (3104 + ($$0103117<<2)|0);
  17676. $24 = HEAP32[$23>>2]|0;
  17677. $25 = (($20) + -1)|0;
  17678. $26 = (($25) - ($22))|0;
  17679. $27 = (($26) + ($24))|0;
  17680. $28 = (($27>>>0) / ($24>>>0))&-1;
  17681. $29 = ((($19)) + 4|0);
  17682. $30 = HEAP32[$29>>2]|0;
  17683. $31 = (3132 + ($$0103117<<2)|0);
  17684. $32 = HEAP32[$31>>2]|0;
  17685. $33 = (3160 + ($$0103117<<2)|0);
  17686. $34 = HEAP32[$33>>2]|0;
  17687. $35 = (($30) + -1)|0;
  17688. $36 = (($35) - ($32))|0;
  17689. $37 = (($36) + ($34))|0;
  17690. $38 = (($37>>>0) / ($34>>>0))&-1;
  17691. $39 = ($24>>>0)<=($27>>>0);
  17692. $40 = ($34>>>0)<=($37>>>0);
  17693. $or$cond = $39 & $40;
  17694. if ($or$cond) {
  17695. $41 = ((($19)) + 8|0);
  17696. $42 = HEAP32[$41>>2]|0;
  17697. $43 = Math_imul($28, $4)|0;
  17698. $44 = Math_imul($43, $42)|0;
  17699. $45 = (($44) + 7)|0;
  17700. $46 = $45 >> 3;
  17701. $47 = (($46) + 1)|0;
  17702. $48 = Math_imul($47, $38)|0;
  17703. $49 = (_stbi__create_png_image_raw($0,$$095119,$$099118,$3,$28,$38,$4,$5)|0);
  17704. $50 = ($49|0)==(0);
  17705. if ($50) {
  17706. label = 13;
  17707. break;
  17708. }
  17709. $51 = ($38|0)>(0);
  17710. if ($51) {
  17711. $52 = ($28|0)>(0);
  17712. $$0106116 = 0;
  17713. while(1) {
  17714. if ($52) {
  17715. $53 = HEAP32[$33>>2]|0;
  17716. $54 = Math_imul($53, $$0106116)|0;
  17717. $55 = HEAP32[$31>>2]|0;
  17718. $56 = (($54) + ($55))|0;
  17719. $57 = HEAP32[$23>>2]|0;
  17720. $58 = HEAP32[$21>>2]|0;
  17721. $59 = Math_imul($56, $9)|0;
  17722. $60 = Math_imul($$0106116, $28)|0;
  17723. $$0107115 = 0;
  17724. while(1) {
  17725. $61 = Math_imul($57, $$0107115)|0;
  17726. $62 = (($61) + ($58))|0;
  17727. $63 = HEAP32[$0>>2]|0;
  17728. $64 = HEAP32[$63>>2]|0;
  17729. $65 = Math_imul($59, $64)|0;
  17730. $66 = (($16) + ($65)|0);
  17731. $67 = Math_imul($62, $9)|0;
  17732. $68 = (($66) + ($67)|0);
  17733. $69 = HEAP32[$18>>2]|0;
  17734. $70 = (($$0107115) + ($60))|0;
  17735. $71 = Math_imul($70, $9)|0;
  17736. $72 = (($69) + ($71)|0);
  17737. _memcpy(($68|0),($72|0),($9|0))|0;
  17738. $73 = (($$0107115) + 1)|0;
  17739. $74 = ($73|0)<($28|0);
  17740. if ($74) {
  17741. $$0107115 = $73;
  17742. } else {
  17743. break;
  17744. }
  17745. }
  17746. }
  17747. $75 = (($$0106116) + 1)|0;
  17748. $76 = ($75|0)<($38|0);
  17749. if ($76) {
  17750. $$0106116 = $75;
  17751. } else {
  17752. break;
  17753. }
  17754. }
  17755. }
  17756. $77 = HEAP32[$17>>2]|0;
  17757. _free($77);
  17758. $78 = (($$095119) + ($48)|0);
  17759. $79 = (($$099118) - ($48))|0;
  17760. $$3102$ph = $79;$$398$ph = $78;
  17761. } else {
  17762. $$3102$ph = $$099118;$$398$ph = $$095119;
  17763. }
  17764. $80 = (($$0103117) + 1)|0;
  17765. $81 = ($80|0)<(7);
  17766. if ($81) {
  17767. $$0103117 = $80;$$095119 = $$398$ph;$$099118 = $$3102$ph;
  17768. } else {
  17769. label = 15;
  17770. break;
  17771. }
  17772. }
  17773. if ((label|0) == 13) {
  17774. _free($16);
  17775. $$4 = 0;
  17776. return ($$4|0);
  17777. }
  17778. else if ((label|0) == 15) {
  17779. $82 = ((($0)) + 12|0);
  17780. HEAP32[$82>>2] = $16;
  17781. $$4 = 1;
  17782. return ($$4|0);
  17783. }
  17784. return (0)|0;
  17785. }
  17786. function _stbi__compute_transparency16($0,$1,$2) {
  17787. $0 = $0|0;
  17788. $1 = $1|0;
  17789. $2 = $2|0;
  17790. 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;
  17791. 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;
  17792. sp = STACKTOP;
  17793. $3 = HEAP32[$0>>2]|0;
  17794. $4 = HEAP32[$3>>2]|0;
  17795. $5 = ((($3)) + 4|0);
  17796. $6 = HEAP32[$5>>2]|0;
  17797. $7 = Math_imul($6, $4)|0;
  17798. $8 = ((($0)) + 12|0);
  17799. $9 = HEAP32[$8>>2]|0;
  17800. switch ($2|0) {
  17801. case 2: {
  17802. $13 = ($7|0)==(0);
  17803. if ($13) {
  17804. return;
  17805. } else {
  17806. $$0323 = 0;$$04 = $9;
  17807. }
  17808. while(1) {
  17809. $14 = HEAP16[$$04>>1]|0;
  17810. $15 = HEAP16[$1>>1]|0;
  17811. $not$ = ($14<<16>>16)!=($15<<16>>16);
  17812. $16 = $not$ << 31 >> 31;
  17813. $17 = ((($$04)) + 2|0);
  17814. HEAP16[$17>>1] = $16;
  17815. $18 = ((($$04)) + 4|0);
  17816. $19 = (($$0323) + 1)|0;
  17817. $exitcond = ($19|0)==($7|0);
  17818. if ($exitcond) {
  17819. break;
  17820. } else {
  17821. $$0323 = $19;$$04 = $18;
  17822. }
  17823. }
  17824. return;
  17825. break;
  17826. }
  17827. case 4: {
  17828. $10 = ($7|0)==(0);
  17829. if ($10) {
  17830. return;
  17831. }
  17832. $11 = ((($1)) + 2|0);
  17833. $12 = ((($1)) + 4|0);
  17834. $$1335 = 0;$$16 = $9;
  17835. while(1) {
  17836. $20 = HEAP16[$$16>>1]|0;
  17837. $21 = HEAP16[$1>>1]|0;
  17838. $22 = ($20<<16>>16)==($21<<16>>16);
  17839. if ($22) {
  17840. $23 = ((($$16)) + 2|0);
  17841. $24 = HEAP16[$23>>1]|0;
  17842. $25 = HEAP16[$11>>1]|0;
  17843. $26 = ($24<<16>>16)==($25<<16>>16);
  17844. if ($26) {
  17845. $27 = ((($$16)) + 4|0);
  17846. $28 = HEAP16[$27>>1]|0;
  17847. $29 = HEAP16[$12>>1]|0;
  17848. $30 = ($28<<16>>16)==($29<<16>>16);
  17849. if ($30) {
  17850. $31 = ((($$16)) + 6|0);
  17851. HEAP16[$31>>1] = 0;
  17852. }
  17853. }
  17854. }
  17855. $32 = ((($$16)) + 8|0);
  17856. $33 = (($$1335) + 1)|0;
  17857. $exitcond9 = ($33|0)==($7|0);
  17858. if ($exitcond9) {
  17859. break;
  17860. } else {
  17861. $$1335 = $33;$$16 = $32;
  17862. }
  17863. }
  17864. return;
  17865. break;
  17866. }
  17867. default: {
  17868. ___assert_fail((7085|0),(6620|0),4569,(7137|0));
  17869. // unreachable;
  17870. }
  17871. }
  17872. }
  17873. function _stbi__compute_transparency($0,$1,$2) {
  17874. $0 = $0|0;
  17875. $1 = $1|0;
  17876. $2 = $2|0;
  17877. 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;
  17878. 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;
  17879. sp = STACKTOP;
  17880. $3 = HEAP32[$0>>2]|0;
  17881. $4 = HEAP32[$3>>2]|0;
  17882. $5 = ((($3)) + 4|0);
  17883. $6 = HEAP32[$5>>2]|0;
  17884. $7 = Math_imul($6, $4)|0;
  17885. $8 = ((($0)) + 12|0);
  17886. $9 = HEAP32[$8>>2]|0;
  17887. switch ($2|0) {
  17888. case 2: {
  17889. $13 = ($7|0)==(0);
  17890. if ($13) {
  17891. return;
  17892. } else {
  17893. $$0323 = 0;$$04 = $9;
  17894. }
  17895. while(1) {
  17896. $14 = HEAP8[$$04>>0]|0;
  17897. $15 = HEAP8[$1>>0]|0;
  17898. $not$ = ($14<<24>>24)!=($15<<24>>24);
  17899. $16 = $not$ << 31 >> 31;
  17900. $17 = ((($$04)) + 1|0);
  17901. HEAP8[$17>>0] = $16;
  17902. $18 = ((($$04)) + 2|0);
  17903. $19 = (($$0323) + 1)|0;
  17904. $exitcond = ($19|0)==($7|0);
  17905. if ($exitcond) {
  17906. break;
  17907. } else {
  17908. $$0323 = $19;$$04 = $18;
  17909. }
  17910. }
  17911. return;
  17912. break;
  17913. }
  17914. case 4: {
  17915. $10 = ($7|0)==(0);
  17916. if ($10) {
  17917. return;
  17918. }
  17919. $11 = ((($1)) + 1|0);
  17920. $12 = ((($1)) + 2|0);
  17921. $$1335 = 0;$$16 = $9;
  17922. while(1) {
  17923. $20 = HEAP8[$$16>>0]|0;
  17924. $21 = HEAP8[$1>>0]|0;
  17925. $22 = ($20<<24>>24)==($21<<24>>24);
  17926. if ($22) {
  17927. $23 = ((($$16)) + 1|0);
  17928. $24 = HEAP8[$23>>0]|0;
  17929. $25 = HEAP8[$11>>0]|0;
  17930. $26 = ($24<<24>>24)==($25<<24>>24);
  17931. if ($26) {
  17932. $27 = ((($$16)) + 2|0);
  17933. $28 = HEAP8[$27>>0]|0;
  17934. $29 = HEAP8[$12>>0]|0;
  17935. $30 = ($28<<24>>24)==($29<<24>>24);
  17936. if ($30) {
  17937. $31 = ((($$16)) + 3|0);
  17938. HEAP8[$31>>0] = 0;
  17939. }
  17940. }
  17941. }
  17942. $32 = ((($$16)) + 4|0);
  17943. $33 = (($$1335) + 1)|0;
  17944. $exitcond9 = ($33|0)==($7|0);
  17945. if ($exitcond9) {
  17946. break;
  17947. } else {
  17948. $$1335 = $33;$$16 = $32;
  17949. }
  17950. }
  17951. return;
  17952. break;
  17953. }
  17954. default: {
  17955. ___assert_fail((7085|0),(6620|0),4544,(7110|0));
  17956. // unreachable;
  17957. }
  17958. }
  17959. }
  17960. function _stbi__de_iphone($0) {
  17961. $0 = $0|0;
  17962. 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;
  17963. 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;
  17964. 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;
  17965. sp = STACKTOP;
  17966. $1 = HEAP32[$0>>2]|0;
  17967. $2 = HEAP32[$1>>2]|0;
  17968. $3 = ((($1)) + 4|0);
  17969. $4 = HEAP32[$3>>2]|0;
  17970. $5 = Math_imul($4, $2)|0;
  17971. $6 = ((($0)) + 12|0);
  17972. $7 = HEAP32[$6>>2]|0;
  17973. $8 = ((($1)) + 12|0);
  17974. $9 = HEAP32[$8>>2]|0;
  17975. switch ($9|0) {
  17976. case 3: {
  17977. $10 = ($5|0)==(0);
  17978. if ($10) {
  17979. return;
  17980. } else {
  17981. $$05158 = $7;$$059 = 0;
  17982. }
  17983. while(1) {
  17984. $11 = HEAP8[$$05158>>0]|0;
  17985. $12 = ((($$05158)) + 2|0);
  17986. $13 = HEAP8[$12>>0]|0;
  17987. HEAP8[$$05158>>0] = $13;
  17988. HEAP8[$12>>0] = $11;
  17989. $14 = ((($$05158)) + 3|0);
  17990. $15 = (($$059) + 1)|0;
  17991. $exitcond = ($15|0)==($5|0);
  17992. if ($exitcond) {
  17993. break;
  17994. } else {
  17995. $$05158 = $14;$$059 = $15;
  17996. }
  17997. }
  17998. return;
  17999. break;
  18000. }
  18001. case 4: {
  18002. $16 = HEAP32[5172]|0;
  18003. $17 = ($16|0)==(0);
  18004. $18 = ($5|0)!=(0);
  18005. if ($17) {
  18006. if ($18) {
  18007. $$25360 = $7;$$261 = 0;
  18008. } else {
  18009. return;
  18010. }
  18011. while(1) {
  18012. $42 = HEAP8[$$25360>>0]|0;
  18013. $43 = ((($$25360)) + 2|0);
  18014. $44 = HEAP8[$43>>0]|0;
  18015. HEAP8[$$25360>>0] = $44;
  18016. HEAP8[$43>>0] = $42;
  18017. $45 = ((($$25360)) + 4|0);
  18018. $46 = (($$261) + 1)|0;
  18019. $exitcond68 = ($46|0)==($5|0);
  18020. if ($exitcond68) {
  18021. break;
  18022. } else {
  18023. $$25360 = $45;$$261 = $46;
  18024. }
  18025. }
  18026. return;
  18027. }
  18028. if ($18) {
  18029. $$15263 = $7;$$164 = 0;
  18030. } else {
  18031. return;
  18032. }
  18033. while(1) {
  18034. $19 = ((($$15263)) + 3|0);
  18035. $20 = HEAP8[$19>>0]|0;
  18036. $21 = HEAP8[$$15263>>0]|0;
  18037. $22 = ($20<<24>>24)==(0);
  18038. $23 = ((($$15263)) + 2|0);
  18039. $24 = HEAP8[$23>>0]|0;
  18040. if ($22) {
  18041. HEAP8[$$15263>>0] = $24;
  18042. $$sink = $21;
  18043. } else {
  18044. $25 = $24&255;
  18045. $26 = ($25*255)|0;
  18046. $27 = $20&255;
  18047. $28 = (($26>>>0) / ($27>>>0))&-1;
  18048. $29 = $28&255;
  18049. HEAP8[$$15263>>0] = $29;
  18050. $30 = ((($$15263)) + 1|0);
  18051. $31 = HEAP8[$30>>0]|0;
  18052. $32 = $31&255;
  18053. $33 = ($32*255)|0;
  18054. $34 = (($33>>>0) / ($27>>>0))&-1;
  18055. $35 = $34&255;
  18056. HEAP8[$30>>0] = $35;
  18057. $36 = $21&255;
  18058. $37 = ($36*255)|0;
  18059. $38 = (($37>>>0) / ($27>>>0))&-1;
  18060. $39 = $38&255;
  18061. $$sink = $39;
  18062. }
  18063. HEAP8[$23>>0] = $$sink;
  18064. $40 = ((($$15263)) + 4|0);
  18065. $41 = (($$164) + 1)|0;
  18066. $exitcond69 = ($41|0)==($5|0);
  18067. if ($exitcond69) {
  18068. break;
  18069. } else {
  18070. $$15263 = $40;$$164 = $41;
  18071. }
  18072. }
  18073. return;
  18074. break;
  18075. }
  18076. default: {
  18077. ___assert_fail((7051|0),(6620|0),4650,(7069|0));
  18078. // unreachable;
  18079. }
  18080. }
  18081. }
  18082. function _stbi__expand_png_palette($0,$1,$2) {
  18083. $0 = $0|0;
  18084. $1 = $1|0;
  18085. $2 = $2|0;
  18086. 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;
  18087. 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;
  18088. 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;
  18089. sp = STACKTOP;
  18090. $3 = HEAP32[$0>>2]|0;
  18091. $4 = HEAP32[$3>>2]|0;
  18092. $5 = ((($3)) + 4|0);
  18093. $6 = HEAP32[$5>>2]|0;
  18094. $7 = Math_imul($6, $4)|0;
  18095. $8 = ((($0)) + 12|0);
  18096. $9 = HEAP32[$8>>2]|0;
  18097. $10 = (_stbi__malloc_mad2($7,$2)|0);
  18098. $11 = ($10|0)==(0|0);
  18099. if ($11) {
  18100. _stbi__err(6585);
  18101. $$0 = 0;
  18102. return ($$0|0);
  18103. }
  18104. $12 = ($2|0)==(3);
  18105. $13 = ($7|0)!=(0);
  18106. if ($12) {
  18107. if ($13) {
  18108. $$0574 = 0;$$0583 = $10;
  18109. while(1) {
  18110. $14 = (($9) + ($$0574)|0);
  18111. $15 = HEAP8[$14>>0]|0;
  18112. $16 = $15&255;
  18113. $17 = $16 << 2;
  18114. $18 = (($1) + ($17)|0);
  18115. $19 = HEAP8[$18>>0]|0;
  18116. HEAP8[$$0583>>0] = $19;
  18117. $20 = $17 | 1;
  18118. $21 = (($1) + ($20)|0);
  18119. $22 = HEAP8[$21>>0]|0;
  18120. $23 = ((($$0583)) + 1|0);
  18121. HEAP8[$23>>0] = $22;
  18122. $24 = $17 | 2;
  18123. $25 = (($1) + ($24)|0);
  18124. $26 = HEAP8[$25>>0]|0;
  18125. $27 = ((($$0583)) + 2|0);
  18126. HEAP8[$27>>0] = $26;
  18127. $28 = ((($$0583)) + 3|0);
  18128. $29 = (($$0574) + 1)|0;
  18129. $exitcond = ($29|0)==($7|0);
  18130. if ($exitcond) {
  18131. break;
  18132. } else {
  18133. $$0574 = $29;$$0583 = $28;
  18134. }
  18135. }
  18136. }
  18137. } else {
  18138. if ($13) {
  18139. $$1595 = $10;$$16 = 0;
  18140. while(1) {
  18141. $30 = (($9) + ($$16)|0);
  18142. $31 = HEAP8[$30>>0]|0;
  18143. $32 = $31&255;
  18144. $33 = $32 << 2;
  18145. $34 = (($1) + ($33)|0);
  18146. $35 = HEAP8[$34>>0]|0;
  18147. HEAP8[$$1595>>0] = $35;
  18148. $36 = $33 | 1;
  18149. $37 = (($1) + ($36)|0);
  18150. $38 = HEAP8[$37>>0]|0;
  18151. $39 = ((($$1595)) + 1|0);
  18152. HEAP8[$39>>0] = $38;
  18153. $40 = $33 | 2;
  18154. $41 = (($1) + ($40)|0);
  18155. $42 = HEAP8[$41>>0]|0;
  18156. $43 = ((($$1595)) + 2|0);
  18157. HEAP8[$43>>0] = $42;
  18158. $44 = $33 | 3;
  18159. $45 = (($1) + ($44)|0);
  18160. $46 = HEAP8[$45>>0]|0;
  18161. $47 = ((($$1595)) + 3|0);
  18162. HEAP8[$47>>0] = $46;
  18163. $48 = ((($$1595)) + 4|0);
  18164. $49 = (($$16) + 1)|0;
  18165. $exitcond9 = ($49|0)==($7|0);
  18166. if ($exitcond9) {
  18167. break;
  18168. } else {
  18169. $$1595 = $48;$$16 = $49;
  18170. }
  18171. }
  18172. }
  18173. }
  18174. $50 = HEAP32[$8>>2]|0;
  18175. _free($50);
  18176. HEAP32[$8>>2] = $10;
  18177. $$0 = 1;
  18178. return ($$0|0);
  18179. }
  18180. function _stbi__malloc_mad2($0,$1) {
  18181. $0 = $0|0;
  18182. $1 = $1|0;
  18183. var $$0 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  18184. sp = STACKTOP;
  18185. $2 = (_stbi__mad2sizes_valid($0,$1)|0);
  18186. $3 = ($2|0)==(0);
  18187. if ($3) {
  18188. $$0 = 0;
  18189. return ($$0|0);
  18190. }
  18191. $4 = Math_imul($1, $0)|0;
  18192. $5 = (_stbi__malloc($4)|0);
  18193. $$0 = $5;
  18194. return ($$0|0);
  18195. }
  18196. function _stbi__mad2sizes_valid($0,$1) {
  18197. $0 = $0|0;
  18198. $1 = $1|0;
  18199. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, label = 0, sp = 0;
  18200. sp = STACKTOP;
  18201. $2 = (_stbi__mul2sizes_valid($0,$1)|0);
  18202. $3 = ($2|0)==(0);
  18203. if ($3) {
  18204. $8 = 0;
  18205. $7 = $8&1;
  18206. return ($7|0);
  18207. }
  18208. $4 = Math_imul($1, $0)|0;
  18209. $5 = (_stbi__addsizes_valid($4)|0);
  18210. $6 = ($5|0)!=(0);
  18211. $8 = $6;
  18212. $7 = $8&1;
  18213. return ($7|0);
  18214. }
  18215. function _stbi__create_png_image_raw($0,$1,$2,$3,$4,$5,$6,$7) {
  18216. $0 = $0|0;
  18217. $1 = $1|0;
  18218. $2 = $2|0;
  18219. $3 = $3|0;
  18220. $4 = $4|0;
  18221. $5 = $5|0;
  18222. $6 = $6|0;
  18223. $7 = $7|0;
  18224. 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;
  18225. 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;
  18226. 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;
  18227. 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;
  18228. 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;
  18229. 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;
  18230. 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;
  18231. 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;
  18232. 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;
  18233. 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;
  18234. 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;
  18235. 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;
  18236. 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;
  18237. 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;
  18238. 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;
  18239. 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;
  18240. 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;
  18241. 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;
  18242. 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;
  18243. 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;
  18244. 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;
  18245. 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;
  18246. 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;
  18247. 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;
  18248. 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;
  18249. 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;
  18250. 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;
  18251. 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;
  18252. 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;
  18253. 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;
  18254. 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;
  18255. 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;
  18256. 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;
  18257. 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;
  18258. 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;
  18259. 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;
  18260. 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;
  18261. 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;
  18262. sp = STACKTOP;
  18263. $8 = ($6|0)==(16);
  18264. $9 = $8 ? 2 : 1;
  18265. $10 = HEAP32[$0>>2]|0;
  18266. $11 = Math_imul($4, $3)|0;
  18267. $12 = Math_imul($9, $11)|0;
  18268. $13 = ((($10)) + 8|0);
  18269. $14 = HEAP32[$13>>2]|0;
  18270. $15 = Math_imul($9, $3)|0;
  18271. $16 = Math_imul($14, $9)|0;
  18272. $17 = ($14|0)==($3|0);
  18273. $18 = (($14) + 1)|0;
  18274. $19 = ($18|0)==($3|0);
  18275. $or$cond = $17 | $19;
  18276. if (!($or$cond)) {
  18277. ___assert_fail((7166|0),(6620|0),4294,(7207|0));
  18278. // unreachable;
  18279. }
  18280. $20 = (_stbi__malloc_mad3($4,$5,$15)|0);
  18281. $21 = ((($0)) + 12|0);
  18282. HEAP32[$21>>2] = $20;
  18283. $22 = ($20|0)==(0|0);
  18284. if ($22) {
  18285. _stbi__err(6585);
  18286. $$2 = 0;
  18287. return ($$2|0);
  18288. }
  18289. $23 = Math_imul($14, $4)|0;
  18290. $24 = Math_imul($23, $6)|0;
  18291. $25 = (($24) + 7)|0;
  18292. $26 = $25 >>> 3;
  18293. $27 = (($26) + 1)|0;
  18294. $28 = Math_imul($27, $5)|0;
  18295. $29 = HEAP32[$10>>2]|0;
  18296. $30 = ($29|0)==($4|0);
  18297. if ($30) {
  18298. $31 = ((($10)) + 4|0);
  18299. $32 = HEAP32[$31>>2]|0;
  18300. $33 = ($32|0)==($5|0);
  18301. if ($33) {
  18302. $34 = ($28|0)==($2|0);
  18303. if (!($34)) {
  18304. _stbi__err(7234);
  18305. $$2 = 0;
  18306. return ($$2|0);
  18307. }
  18308. } else {
  18309. label = 9;
  18310. }
  18311. } else {
  18312. label = 9;
  18313. }
  18314. if ((label|0) == 9) {
  18315. $35 = ($28>>>0)>($2>>>0);
  18316. if ($35) {
  18317. _stbi__err(7234);
  18318. $$2 = 0;
  18319. return ($$2|0);
  18320. }
  18321. }
  18322. $36 = ($5|0)==(0);
  18323. L18: do {
  18324. if (!($36)) {
  18325. $37 = ($6|0)<(8);
  18326. $38 = ($26>>>0)>($4>>>0);
  18327. $39 = (($11) - ($26))|0;
  18328. $40 = (0 - ($12))|0;
  18329. $41 = ($6|0)==(8);
  18330. $brmerge = $37 | $17;
  18331. $42 = ($4|0)==(0);
  18332. $$0614793 = (($4) + -1)|0;
  18333. $43 = ($$0614793|0)==(0);
  18334. $$1615785 = (($4) + -1)|0;
  18335. $44 = ($$1615785|0)==(0);
  18336. $$2616776 = (($4) + -1)|0;
  18337. $45 = ($$2616776|0)==(0);
  18338. $$3617767 = (($4) + -1)|0;
  18339. $46 = ($$3617767|0)==(0);
  18340. $$4618758 = (($4) + -1)|0;
  18341. $47 = ($$4618758|0)==(0);
  18342. $$5619750 = (($4) + -1)|0;
  18343. $48 = ($$5619750|0)==(0);
  18344. $$6620742 = (($4) + -1)|0;
  18345. $49 = ($$6620742|0)==(0);
  18346. $$not = $8 ^ 1;
  18347. $brmerge894 = $42 | $$not;
  18348. $$0577817 = $1;$$0608816 = $4;$$0611815 = $16;$$0623814 = 0;
  18349. while(1) {
  18350. $50 = HEAP32[$21>>2]|0;
  18351. $51 = Math_imul($$0623814, $12)|0;
  18352. $52 = (($50) + ($51)|0);
  18353. $53 = ((($$0577817)) + 1|0);
  18354. $54 = HEAP8[$$0577817>>0]|0;
  18355. $55 = $54&255;
  18356. $56 = ($54&255)>(4);
  18357. if ($56) {
  18358. label = 105;
  18359. break;
  18360. }
  18361. if ($37) {
  18362. if ($38) {
  18363. label = 16;
  18364. break;
  18365. }
  18366. $57 = (($52) + ($39)|0);
  18367. $$0597 = $57;$$1609 = $26;$$1612 = 1;
  18368. } else {
  18369. $$0597 = $52;$$1609 = $$0608816;$$1612 = $$0611815;
  18370. }
  18371. $58 = (($$0597) + ($40)|0);
  18372. $59 = ($$0623814|0)==(0);
  18373. if ($59) {
  18374. $60 = (7273 + ($55)|0);
  18375. $61 = HEAP8[$60>>0]|0;
  18376. $62 = $61&255;
  18377. $$0588 = $62;
  18378. } else {
  18379. $$0588 = $55;
  18380. }
  18381. $63 = ($$1612|0)>(0);
  18382. L30: do {
  18383. if ($63) {
  18384. $trunc638 = $$0588&255;
  18385. $$0625734 = 0;
  18386. while(1) {
  18387. switch ($trunc638<<24>>24) {
  18388. case 0: {
  18389. $64 = (($53) + ($$0625734)|0);
  18390. $65 = HEAP8[$64>>0]|0;
  18391. $$sink = $65;
  18392. label = 30;
  18393. break;
  18394. }
  18395. case 1: {
  18396. $66 = (($53) + ($$0625734)|0);
  18397. $67 = HEAP8[$66>>0]|0;
  18398. $$sink = $67;
  18399. label = 30;
  18400. break;
  18401. }
  18402. case 2: {
  18403. $68 = (($53) + ($$0625734)|0);
  18404. $69 = HEAP8[$68>>0]|0;
  18405. $70 = $69&255;
  18406. $71 = (($58) + ($$0625734)|0);
  18407. $72 = HEAP8[$71>>0]|0;
  18408. $73 = $72&255;
  18409. $74 = (($73) + ($70))|0;
  18410. $75 = $74&255;
  18411. $$sink = $75;
  18412. label = 30;
  18413. break;
  18414. }
  18415. case 3: {
  18416. $76 = (($53) + ($$0625734)|0);
  18417. $77 = HEAP8[$76>>0]|0;
  18418. $78 = $77&255;
  18419. $79 = (($58) + ($$0625734)|0);
  18420. $80 = HEAP8[$79>>0]|0;
  18421. $81 = $80&255;
  18422. $82 = $81 >>> 1;
  18423. $83 = (($82) + ($78))|0;
  18424. $84 = $83&255;
  18425. $$sink = $84;
  18426. label = 30;
  18427. break;
  18428. }
  18429. case 4: {
  18430. $85 = (($53) + ($$0625734)|0);
  18431. $86 = HEAP8[$85>>0]|0;
  18432. $87 = $86&255;
  18433. $88 = (($58) + ($$0625734)|0);
  18434. $89 = HEAP8[$88>>0]|0;
  18435. $90 = $89&255;
  18436. $91 = (_stbi__paeth(0,$90,0)|0);
  18437. $92 = (($91) + ($87))|0;
  18438. $93 = $92&255;
  18439. $$sink = $93;
  18440. label = 30;
  18441. break;
  18442. }
  18443. case 5: {
  18444. $94 = (($53) + ($$0625734)|0);
  18445. $95 = HEAP8[$94>>0]|0;
  18446. $$sink = $95;
  18447. label = 30;
  18448. break;
  18449. }
  18450. case 6: {
  18451. $96 = (($53) + ($$0625734)|0);
  18452. $97 = HEAP8[$96>>0]|0;
  18453. $$sink = $97;
  18454. label = 30;
  18455. break;
  18456. }
  18457. default: {
  18458. }
  18459. }
  18460. if ((label|0) == 30) {
  18461. label = 0;
  18462. $$sink1 = (($$0597) + ($$0625734)|0);
  18463. HEAP8[$$sink1>>0] = $$sink;
  18464. }
  18465. $98 = (($$0625734) + 1)|0;
  18466. $exitcond864 = ($98|0)==($$1612|0);
  18467. if ($exitcond864) {
  18468. break L30;
  18469. } else {
  18470. $$0625734 = $98;
  18471. }
  18472. }
  18473. }
  18474. } while(0);
  18475. do {
  18476. if ($41) {
  18477. if (!($17)) {
  18478. $99 = (($$0597) + ($14)|0);
  18479. HEAP8[$99>>0] = -1;
  18480. }
  18481. $100 = (($53) + ($14)|0);
  18482. $$1578 = $100;$$sink641 = $3;
  18483. } else {
  18484. if (!($8)) {
  18485. $105 = ((($$0577817)) + 2|0);
  18486. $$1578 = $105;$$sink641 = 1;
  18487. break;
  18488. }
  18489. if (!($17)) {
  18490. $101 = (($$1612) + 1)|0;
  18491. $102 = (($$0597) + ($101)|0);
  18492. $103 = (($$0597) + ($$1612)|0);
  18493. HEAP8[$103>>0] = -1;
  18494. HEAP8[$102>>0] = -1;
  18495. }
  18496. $104 = (($53) + ($$1612)|0);
  18497. $$1578 = $104;$$sink641 = $15;
  18498. }
  18499. } while(0);
  18500. $106 = (($$0597) + ($$sink641)|0);
  18501. $107 = (($58) + ($$sink641)|0);
  18502. if ($brmerge) {
  18503. $108 = (($$1609) + -1)|0;
  18504. $109 = Math_imul($108, $$1612)|0;
  18505. $trunc637 = $$0588&255;
  18506. switch ($trunc637<<24>>24) {
  18507. case 0: {
  18508. _memcpy(($106|0),($$1578|0),($109|0))|0;
  18509. break;
  18510. }
  18511. case 1: {
  18512. $115 = ($109|0)>(0);
  18513. if ($115) {
  18514. $$1626812 = 0;
  18515. while(1) {
  18516. $116 = (($$1578) + ($$1626812)|0);
  18517. $117 = HEAP8[$116>>0]|0;
  18518. $118 = $117&255;
  18519. $119 = (($$1626812) - ($$1612))|0;
  18520. $120 = (($106) + ($119)|0);
  18521. $121 = HEAP8[$120>>0]|0;
  18522. $122 = $121&255;
  18523. $123 = (($122) + ($118))|0;
  18524. $124 = $123&255;
  18525. $125 = (($106) + ($$1626812)|0);
  18526. HEAP8[$125>>0] = $124;
  18527. $126 = (($$1626812) + 1)|0;
  18528. $exitcond886 = ($126|0)==($109|0);
  18529. if ($exitcond886) {
  18530. break;
  18531. } else {
  18532. $$1626812 = $126;
  18533. }
  18534. }
  18535. }
  18536. break;
  18537. }
  18538. case 2: {
  18539. $114 = ($109|0)>(0);
  18540. if ($114) {
  18541. $$2627810 = 0;
  18542. while(1) {
  18543. $127 = (($$1578) + ($$2627810)|0);
  18544. $128 = HEAP8[$127>>0]|0;
  18545. $129 = $128&255;
  18546. $130 = (($107) + ($$2627810)|0);
  18547. $131 = HEAP8[$130>>0]|0;
  18548. $132 = $131&255;
  18549. $133 = (($132) + ($129))|0;
  18550. $134 = $133&255;
  18551. $135 = (($106) + ($$2627810)|0);
  18552. HEAP8[$135>>0] = $134;
  18553. $136 = (($$2627810) + 1)|0;
  18554. $exitcond885 = ($136|0)==($109|0);
  18555. if ($exitcond885) {
  18556. break;
  18557. } else {
  18558. $$2627810 = $136;
  18559. }
  18560. }
  18561. }
  18562. break;
  18563. }
  18564. case 3: {
  18565. $113 = ($109|0)>(0);
  18566. if ($113) {
  18567. $$3628808 = 0;
  18568. while(1) {
  18569. $137 = (($$1578) + ($$3628808)|0);
  18570. $138 = HEAP8[$137>>0]|0;
  18571. $139 = $138&255;
  18572. $140 = (($107) + ($$3628808)|0);
  18573. $141 = HEAP8[$140>>0]|0;
  18574. $142 = $141&255;
  18575. $143 = (($$3628808) - ($$1612))|0;
  18576. $144 = (($106) + ($143)|0);
  18577. $145 = HEAP8[$144>>0]|0;
  18578. $146 = $145&255;
  18579. $147 = (($146) + ($142))|0;
  18580. $148 = $147 >>> 1;
  18581. $149 = (($148) + ($139))|0;
  18582. $150 = $149&255;
  18583. $151 = (($106) + ($$3628808)|0);
  18584. HEAP8[$151>>0] = $150;
  18585. $152 = (($$3628808) + 1)|0;
  18586. $exitcond884 = ($152|0)==($109|0);
  18587. if ($exitcond884) {
  18588. break;
  18589. } else {
  18590. $$3628808 = $152;
  18591. }
  18592. }
  18593. }
  18594. break;
  18595. }
  18596. case 4: {
  18597. $112 = ($109|0)>(0);
  18598. if ($112) {
  18599. $$4629806 = 0;
  18600. while(1) {
  18601. $153 = (($$1578) + ($$4629806)|0);
  18602. $154 = HEAP8[$153>>0]|0;
  18603. $155 = $154&255;
  18604. $156 = (($$4629806) - ($$1612))|0;
  18605. $157 = (($106) + ($156)|0);
  18606. $158 = HEAP8[$157>>0]|0;
  18607. $159 = $158&255;
  18608. $160 = (($107) + ($$4629806)|0);
  18609. $161 = HEAP8[$160>>0]|0;
  18610. $162 = $161&255;
  18611. $163 = (($107) + ($156)|0);
  18612. $164 = HEAP8[$163>>0]|0;
  18613. $165 = $164&255;
  18614. $166 = (_stbi__paeth($159,$162,$165)|0);
  18615. $167 = (($166) + ($155))|0;
  18616. $168 = $167&255;
  18617. $169 = (($106) + ($$4629806)|0);
  18618. HEAP8[$169>>0] = $168;
  18619. $170 = (($$4629806) + 1)|0;
  18620. $exitcond883 = ($170|0)==($109|0);
  18621. if ($exitcond883) {
  18622. break;
  18623. } else {
  18624. $$4629806 = $170;
  18625. }
  18626. }
  18627. }
  18628. break;
  18629. }
  18630. case 5: {
  18631. $111 = ($109|0)>(0);
  18632. if ($111) {
  18633. $$5630804 = 0;
  18634. while(1) {
  18635. $171 = (($$1578) + ($$5630804)|0);
  18636. $172 = HEAP8[$171>>0]|0;
  18637. $173 = $172&255;
  18638. $174 = (($$5630804) - ($$1612))|0;
  18639. $175 = (($106) + ($174)|0);
  18640. $176 = HEAP8[$175>>0]|0;
  18641. $177 = $176&255;
  18642. $178 = $177 >>> 1;
  18643. $179 = (($178) + ($173))|0;
  18644. $180 = $179&255;
  18645. $181 = (($106) + ($$5630804)|0);
  18646. HEAP8[$181>>0] = $180;
  18647. $182 = (($$5630804) + 1)|0;
  18648. $exitcond882 = ($182|0)==($109|0);
  18649. if ($exitcond882) {
  18650. break;
  18651. } else {
  18652. $$5630804 = $182;
  18653. }
  18654. }
  18655. }
  18656. break;
  18657. }
  18658. case 6: {
  18659. $110 = ($109|0)>(0);
  18660. if ($110) {
  18661. $$6631802 = 0;
  18662. while(1) {
  18663. $183 = (($$1578) + ($$6631802)|0);
  18664. $184 = HEAP8[$183>>0]|0;
  18665. $185 = $184&255;
  18666. $186 = (($$6631802) - ($$1612))|0;
  18667. $187 = (($106) + ($186)|0);
  18668. $188 = HEAP8[$187>>0]|0;
  18669. $189 = $188&255;
  18670. $190 = (_stbi__paeth($189,0,0)|0);
  18671. $191 = (($190) + ($185))|0;
  18672. $192 = $191&255;
  18673. $193 = (($106) + ($$6631802)|0);
  18674. HEAP8[$193>>0] = $192;
  18675. $194 = (($$6631802) + 1)|0;
  18676. $exitcond881 = ($194|0)==($109|0);
  18677. if ($exitcond881) {
  18678. break;
  18679. } else {
  18680. $$6631802 = $194;
  18681. }
  18682. }
  18683. }
  18684. break;
  18685. }
  18686. default: {
  18687. }
  18688. }
  18689. $195 = (($$1578) + ($109)|0);
  18690. $$11$ph = $195;
  18691. } else {
  18692. if (!($19)) {
  18693. label = 58;
  18694. break;
  18695. }
  18696. $trunc = $$0588&255;
  18697. switch ($trunc<<24>>24) {
  18698. case 0: {
  18699. if ($43) {
  18700. $$9586 = $$1578;
  18701. } else {
  18702. $208 = ($$1612|0)>(0);
  18703. $209 = Math_imul($$6620742, $$1612)|0;
  18704. $$0614796 = $$0614793;$$2579795 = $$1578;$$2599794 = $106;
  18705. while(1) {
  18706. if ($208) {
  18707. $$7632790 = 0;
  18708. while(1) {
  18709. $210 = (($$2579795) + ($$7632790)|0);
  18710. $211 = HEAP8[$210>>0]|0;
  18711. $212 = (($$2599794) + ($$7632790)|0);
  18712. HEAP8[$212>>0] = $211;
  18713. $213 = (($$7632790) + 1)|0;
  18714. $exitcond877 = ($213|0)==($$1612|0);
  18715. if ($exitcond877) {
  18716. break;
  18717. } else {
  18718. $$7632790 = $213;
  18719. }
  18720. }
  18721. }
  18722. $214 = (($$2599794) + ($$1612)|0);
  18723. HEAP8[$214>>0] = -1;
  18724. $215 = (($$2579795) + ($$1612)|0);
  18725. $216 = (($$2599794) + ($15)|0);
  18726. $$0614 = (($$0614796) + -1)|0;
  18727. $217 = ($$0614|0)==(0);
  18728. if ($217) {
  18729. break;
  18730. } else {
  18731. $$0614796 = $$0614;$$2579795 = $215;$$2599794 = $216;
  18732. }
  18733. }
  18734. $scevgep879 = (($$1578) + ($209)|0);
  18735. $$9586 = $scevgep879;
  18736. }
  18737. break;
  18738. }
  18739. case 1: {
  18740. if ($44) {
  18741. $$9586 = $$1578;
  18742. } else {
  18743. $206 = ($$1612|0)>(0);
  18744. $207 = Math_imul($$6620742, $$1612)|0;
  18745. $$1615788 = $$1615785;$$3580787 = $$1578;$$3600786 = $106;
  18746. while(1) {
  18747. if ($206) {
  18748. $$8633782 = 0;
  18749. while(1) {
  18750. $218 = (($$3580787) + ($$8633782)|0);
  18751. $219 = HEAP8[$218>>0]|0;
  18752. $220 = $219&255;
  18753. $221 = (($$8633782) - ($15))|0;
  18754. $222 = (($$3600786) + ($221)|0);
  18755. $223 = HEAP8[$222>>0]|0;
  18756. $224 = $223&255;
  18757. $225 = (($224) + ($220))|0;
  18758. $226 = $225&255;
  18759. $227 = (($$3600786) + ($$8633782)|0);
  18760. HEAP8[$227>>0] = $226;
  18761. $228 = (($$8633782) + 1)|0;
  18762. $exitcond875 = ($228|0)==($$1612|0);
  18763. if ($exitcond875) {
  18764. break;
  18765. } else {
  18766. $$8633782 = $228;
  18767. }
  18768. }
  18769. }
  18770. $229 = (($$3600786) + ($$1612)|0);
  18771. HEAP8[$229>>0] = -1;
  18772. $230 = (($$3580787) + ($$1612)|0);
  18773. $231 = (($$3600786) + ($15)|0);
  18774. $$1615 = (($$1615788) + -1)|0;
  18775. $232 = ($$1615|0)==(0);
  18776. if ($232) {
  18777. break;
  18778. } else {
  18779. $$1615788 = $$1615;$$3580787 = $230;$$3600786 = $231;
  18780. }
  18781. }
  18782. $scevgep876 = (($$1578) + ($207)|0);
  18783. $$9586 = $scevgep876;
  18784. }
  18785. break;
  18786. }
  18787. case 2: {
  18788. if ($45) {
  18789. $$9586 = $$1578;
  18790. } else {
  18791. $204 = ($$1612|0)>(0);
  18792. $205 = Math_imul($$6620742, $$1612)|0;
  18793. $$2616780 = $$2616776;$$3592778 = $107;$$4581779 = $$1578;$$4601777 = $106;
  18794. while(1) {
  18795. if ($204) {
  18796. $$9634773 = 0;
  18797. while(1) {
  18798. $233 = (($$4581779) + ($$9634773)|0);
  18799. $234 = HEAP8[$233>>0]|0;
  18800. $235 = $234&255;
  18801. $236 = (($$3592778) + ($$9634773)|0);
  18802. $237 = HEAP8[$236>>0]|0;
  18803. $238 = $237&255;
  18804. $239 = (($238) + ($235))|0;
  18805. $240 = $239&255;
  18806. $241 = (($$4601777) + ($$9634773)|0);
  18807. HEAP8[$241>>0] = $240;
  18808. $242 = (($$9634773) + 1)|0;
  18809. $exitcond873 = ($242|0)==($$1612|0);
  18810. if ($exitcond873) {
  18811. break;
  18812. } else {
  18813. $$9634773 = $242;
  18814. }
  18815. }
  18816. }
  18817. $243 = (($$4601777) + ($$1612)|0);
  18818. HEAP8[$243>>0] = -1;
  18819. $244 = (($$4581779) + ($$1612)|0);
  18820. $245 = (($$4601777) + ($15)|0);
  18821. $246 = (($$3592778) + ($15)|0);
  18822. $$2616 = (($$2616780) + -1)|0;
  18823. $247 = ($$2616|0)==(0);
  18824. if ($247) {
  18825. break;
  18826. } else {
  18827. $$2616780 = $$2616;$$3592778 = $246;$$4581779 = $244;$$4601777 = $245;
  18828. }
  18829. }
  18830. $scevgep874 = (($$1578) + ($205)|0);
  18831. $$9586 = $scevgep874;
  18832. }
  18833. break;
  18834. }
  18835. case 3: {
  18836. if ($46) {
  18837. $$9586 = $$1578;
  18838. } else {
  18839. $202 = ($$1612|0)>(0);
  18840. $203 = Math_imul($$6620742, $$1612)|0;
  18841. $$3617771 = $$3617767;$$4593769 = $107;$$5582770 = $$1578;$$5602768 = $106;
  18842. while(1) {
  18843. if ($202) {
  18844. $$10635764 = 0;
  18845. while(1) {
  18846. $248 = (($$5582770) + ($$10635764)|0);
  18847. $249 = HEAP8[$248>>0]|0;
  18848. $250 = $249&255;
  18849. $251 = (($$4593769) + ($$10635764)|0);
  18850. $252 = HEAP8[$251>>0]|0;
  18851. $253 = $252&255;
  18852. $254 = (($$10635764) - ($15))|0;
  18853. $255 = (($$5602768) + ($254)|0);
  18854. $256 = HEAP8[$255>>0]|0;
  18855. $257 = $256&255;
  18856. $258 = (($257) + ($253))|0;
  18857. $259 = $258 >>> 1;
  18858. $260 = (($259) + ($250))|0;
  18859. $261 = $260&255;
  18860. $262 = (($$5602768) + ($$10635764)|0);
  18861. HEAP8[$262>>0] = $261;
  18862. $263 = (($$10635764) + 1)|0;
  18863. $exitcond871 = ($263|0)==($$1612|0);
  18864. if ($exitcond871) {
  18865. break;
  18866. } else {
  18867. $$10635764 = $263;
  18868. }
  18869. }
  18870. }
  18871. $264 = (($$5602768) + ($$1612)|0);
  18872. HEAP8[$264>>0] = -1;
  18873. $265 = (($$5582770) + ($$1612)|0);
  18874. $266 = (($$5602768) + ($15)|0);
  18875. $267 = (($$4593769) + ($15)|0);
  18876. $$3617 = (($$3617771) + -1)|0;
  18877. $268 = ($$3617|0)==(0);
  18878. if ($268) {
  18879. break;
  18880. } else {
  18881. $$3617771 = $$3617;$$4593769 = $267;$$5582770 = $265;$$5602768 = $266;
  18882. }
  18883. }
  18884. $scevgep872 = (($$1578) + ($203)|0);
  18885. $$9586 = $scevgep872;
  18886. }
  18887. break;
  18888. }
  18889. case 4: {
  18890. if ($47) {
  18891. $$9586 = $$1578;
  18892. } else {
  18893. $200 = ($$1612|0)>(0);
  18894. $201 = Math_imul($$6620742, $$1612)|0;
  18895. $$4618762 = $$4618758;$$5594760 = $107;$$6583761 = $$1578;$$6603759 = $106;
  18896. while(1) {
  18897. if ($200) {
  18898. $$11636755 = 0;
  18899. while(1) {
  18900. $269 = (($$6583761) + ($$11636755)|0);
  18901. $270 = HEAP8[$269>>0]|0;
  18902. $271 = $270&255;
  18903. $272 = (($$11636755) - ($15))|0;
  18904. $273 = (($$6603759) + ($272)|0);
  18905. $274 = HEAP8[$273>>0]|0;
  18906. $275 = $274&255;
  18907. $276 = (($$5594760) + ($$11636755)|0);
  18908. $277 = HEAP8[$276>>0]|0;
  18909. $278 = $277&255;
  18910. $279 = (($$5594760) + ($272)|0);
  18911. $280 = HEAP8[$279>>0]|0;
  18912. $281 = $280&255;
  18913. $282 = (_stbi__paeth($275,$278,$281)|0);
  18914. $283 = (($282) + ($271))|0;
  18915. $284 = $283&255;
  18916. $285 = (($$6603759) + ($$11636755)|0);
  18917. HEAP8[$285>>0] = $284;
  18918. $286 = (($$11636755) + 1)|0;
  18919. $exitcond869 = ($286|0)==($$1612|0);
  18920. if ($exitcond869) {
  18921. break;
  18922. } else {
  18923. $$11636755 = $286;
  18924. }
  18925. }
  18926. }
  18927. $287 = (($$6603759) + ($$1612)|0);
  18928. HEAP8[$287>>0] = -1;
  18929. $288 = (($$6583761) + ($$1612)|0);
  18930. $289 = (($$6603759) + ($15)|0);
  18931. $290 = (($$5594760) + ($15)|0);
  18932. $$4618 = (($$4618762) + -1)|0;
  18933. $291 = ($$4618|0)==(0);
  18934. if ($291) {
  18935. break;
  18936. } else {
  18937. $$4618762 = $$4618;$$5594760 = $290;$$6583761 = $288;$$6603759 = $289;
  18938. }
  18939. }
  18940. $scevgep870 = (($$1578) + ($201)|0);
  18941. $$9586 = $scevgep870;
  18942. }
  18943. break;
  18944. }
  18945. case 5: {
  18946. if ($48) {
  18947. $$9586 = $$1578;
  18948. } else {
  18949. $198 = ($$1612|0)>(0);
  18950. $199 = Math_imul($$6620742, $$1612)|0;
  18951. $$5619753 = $$5619750;$$7584752 = $$1578;$$7604751 = $106;
  18952. while(1) {
  18953. if ($198) {
  18954. $$12747 = 0;
  18955. while(1) {
  18956. $292 = (($$7584752) + ($$12747)|0);
  18957. $293 = HEAP8[$292>>0]|0;
  18958. $294 = $293&255;
  18959. $295 = (($$12747) - ($15))|0;
  18960. $296 = (($$7604751) + ($295)|0);
  18961. $297 = HEAP8[$296>>0]|0;
  18962. $298 = $297&255;
  18963. $299 = $298 >>> 1;
  18964. $300 = (($299) + ($294))|0;
  18965. $301 = $300&255;
  18966. $302 = (($$7604751) + ($$12747)|0);
  18967. HEAP8[$302>>0] = $301;
  18968. $303 = (($$12747) + 1)|0;
  18969. $exitcond867 = ($303|0)==($$1612|0);
  18970. if ($exitcond867) {
  18971. break;
  18972. } else {
  18973. $$12747 = $303;
  18974. }
  18975. }
  18976. }
  18977. $304 = (($$7604751) + ($$1612)|0);
  18978. HEAP8[$304>>0] = -1;
  18979. $305 = (($$7584752) + ($$1612)|0);
  18980. $306 = (($$7604751) + ($15)|0);
  18981. $$5619 = (($$5619753) + -1)|0;
  18982. $307 = ($$5619|0)==(0);
  18983. if ($307) {
  18984. break;
  18985. } else {
  18986. $$5619753 = $$5619;$$7584752 = $305;$$7604751 = $306;
  18987. }
  18988. }
  18989. $scevgep868 = (($$1578) + ($199)|0);
  18990. $$9586 = $scevgep868;
  18991. }
  18992. break;
  18993. }
  18994. case 6: {
  18995. if ($49) {
  18996. $$9586 = $$1578;
  18997. } else {
  18998. $196 = ($$1612|0)>(0);
  18999. $197 = Math_imul($$6620742, $$1612)|0;
  19000. $$6620745 = $$6620742;$$8585744 = $$1578;$$8605743 = $106;
  19001. while(1) {
  19002. if ($196) {
  19003. $$13739 = 0;
  19004. while(1) {
  19005. $308 = (($$8585744) + ($$13739)|0);
  19006. $309 = HEAP8[$308>>0]|0;
  19007. $310 = $309&255;
  19008. $311 = (($$13739) - ($15))|0;
  19009. $312 = (($$8605743) + ($311)|0);
  19010. $313 = HEAP8[$312>>0]|0;
  19011. $314 = $313&255;
  19012. $315 = (_stbi__paeth($314,0,0)|0);
  19013. $316 = (($315) + ($310))|0;
  19014. $317 = $316&255;
  19015. $318 = (($$8605743) + ($$13739)|0);
  19016. HEAP8[$318>>0] = $317;
  19017. $319 = (($$13739) + 1)|0;
  19018. $exitcond865 = ($319|0)==($$1612|0);
  19019. if ($exitcond865) {
  19020. break;
  19021. } else {
  19022. $$13739 = $319;
  19023. }
  19024. }
  19025. }
  19026. $320 = (($$8605743) + ($$1612)|0);
  19027. HEAP8[$320>>0] = -1;
  19028. $321 = (($$8585744) + ($$1612)|0);
  19029. $322 = (($$8605743) + ($15)|0);
  19030. $$6620 = (($$6620745) + -1)|0;
  19031. $323 = ($$6620|0)==(0);
  19032. if ($323) {
  19033. break;
  19034. } else {
  19035. $$6620745 = $$6620;$$8585744 = $321;$$8605743 = $322;
  19036. }
  19037. }
  19038. $scevgep866 = (($$1578) + ($197)|0);
  19039. $$9586 = $scevgep866;
  19040. }
  19041. break;
  19042. }
  19043. default: {
  19044. $$9586 = $$1578;
  19045. }
  19046. }
  19047. if ($brmerge894) {
  19048. $$11$ph = $$9586;
  19049. } else {
  19050. $324 = HEAP32[$21>>2]|0;
  19051. $325 = (($324) + ($51)|0);
  19052. $326 = (($$1612) + 1)|0;
  19053. $$7621798 = 0;$$9606799 = $325;
  19054. while(1) {
  19055. $327 = (($$9606799) + ($326)|0);
  19056. HEAP8[$327>>0] = -1;
  19057. $328 = (($$7621798) + 1)|0;
  19058. $329 = (($$9606799) + ($15)|0);
  19059. $exitcond880 = ($328|0)==($4|0);
  19060. if ($exitcond880) {
  19061. $$11$ph = $$9586;
  19062. break;
  19063. } else {
  19064. $$7621798 = $328;$$9606799 = $329;
  19065. }
  19066. }
  19067. }
  19068. }
  19069. $330 = (($$0623814) + 1)|0;
  19070. $331 = ($330>>>0)<($5>>>0);
  19071. if ($331) {
  19072. $$0577817 = $$11$ph;$$0608816 = $$1609;$$0611815 = $$1612;$$0623814 = $330;
  19073. } else {
  19074. break L18;
  19075. }
  19076. }
  19077. if ((label|0) == 16) {
  19078. ___assert_fail((7252|0),(6620|0),4315,(7207|0));
  19079. // unreachable;
  19080. }
  19081. else if ((label|0) == 58) {
  19082. ___assert_fail((7278|0),(6620|0),4377,(7207|0));
  19083. // unreachable;
  19084. }
  19085. else if ((label|0) == 105) {
  19086. _stbi__err(7295);
  19087. $$2 = 0;
  19088. return ($$2|0);
  19089. }
  19090. }
  19091. } while(0);
  19092. $332 = ($6|0)<(8);
  19093. if (!($332)) {
  19094. if (!($8)) {
  19095. $$2 = 1;
  19096. return ($$2|0);
  19097. }
  19098. $601 = Math_imul($4, $3)|0;
  19099. $602 = Math_imul($601, $5)|0;
  19100. $603 = ($602|0)==(0);
  19101. if ($603) {
  19102. $$2 = 1;
  19103. return ($$2|0);
  19104. }
  19105. $604 = HEAP32[$21>>2]|0;
  19106. $$0731 = $604;$$8622729 = 0;
  19107. while(1) {
  19108. $605 = HEAP8[$$0731>>0]|0;
  19109. $606 = $605&255;
  19110. $607 = $606 << 8;
  19111. $608 = ((($$0731)) + 1|0);
  19112. $609 = HEAP8[$608>>0]|0;
  19113. $610 = $609&255;
  19114. $611 = $607 | $610;
  19115. $612 = $611&65535;
  19116. HEAP16[$$0731>>1] = $612;
  19117. $613 = (($$8622729) + 1)|0;
  19118. $614 = ((($$0731)) + 2|0);
  19119. $exitcond = ($613|0)==($602|0);
  19120. if ($exitcond) {
  19121. $$2 = 1;
  19122. break;
  19123. } else {
  19124. $$0731 = $614;$$8622729 = $613;
  19125. }
  19126. }
  19127. return ($$2|0);
  19128. }
  19129. $333 = ($5|0)==(0);
  19130. if ($333) {
  19131. $$2 = 1;
  19132. return ($$2|0);
  19133. }
  19134. $334 = (0 - ($26))|0;
  19135. $335 = ($7|0)==(0);
  19136. $336 = (6991 + ($6)|0);
  19137. $$0568724 = (($4) + -1)|0;
  19138. $337 = ($$0568724|0)>(-1);
  19139. $$1721 = (($4) + -1)|0;
  19140. $338 = ($$1721|0)>(-1);
  19141. $339 = ($23|0)>(1);
  19142. $340 = ($23|0)>(3);
  19143. $341 = ($23|0)>(7);
  19144. $342 = (($23) + -8)|0;
  19145. $343 = $342 >>> 3;
  19146. $344 = $343 << 3;
  19147. $345 = (($344) + 8)|0;
  19148. $346 = (($342) - ($344))|0;
  19149. $347 = (($343) + ($11))|0;
  19150. $348 = (($347) + 1)|0;
  19151. $349 = (($348) - ($26))|0;
  19152. $350 = (($23) + -4)|0;
  19153. $351 = $350 >>> 2;
  19154. $352 = $351 << 2;
  19155. $353 = (($352) + 4)|0;
  19156. $354 = (($350) - ($352))|0;
  19157. $355 = (($351) + ($11))|0;
  19158. $356 = (($355) + 1)|0;
  19159. $357 = (($356) - ($26))|0;
  19160. $358 = (($23) + -2)|0;
  19161. $359 = $358 >>> 1;
  19162. $360 = $359 << 1;
  19163. $361 = (($360) + 2)|0;
  19164. $362 = (($358) - ($360))|0;
  19165. $363 = (($359) + ($11))|0;
  19166. $364 = (($363) + 1)|0;
  19167. $365 = (($364) - ($26))|0;
  19168. $$1624727 = 0;$indvars$iv = $345;$indvars$iv848 = $349;$indvars$iv851 = $353;$indvars$iv854 = $357;$indvars$iv857 = $361;$indvars$iv860 = $365;
  19169. L174: while(1) {
  19170. $366 = HEAP32[$21>>2]|0;
  19171. $367 = Math_imul($$1624727, $12)|0;
  19172. $368 = (($366) + ($367)|0);
  19173. $369 = (($368) + ($11)|0);
  19174. $370 = (($369) + ($334)|0);
  19175. if ($335) {
  19176. $371 = HEAP8[$336>>0]|0;
  19177. $372 = $371&255;
  19178. $377 = $372;
  19179. } else {
  19180. $377 = 1;
  19181. }
  19182. switch ($6|0) {
  19183. case 4: {
  19184. if ($339) {
  19185. $scevgep859 = (($366) + ($indvars$iv857)|0);
  19186. $$0571715 = $370;$$0574714 = $368;$$14713 = $23;
  19187. while(1) {
  19188. $373 = HEAP8[$$0571715>>0]|0;
  19189. $374 = $373&255;
  19190. $375 = $374 >>> 4;
  19191. $376 = Math_imul($375, $377)|0;
  19192. $378 = $376&255;
  19193. $379 = ((($$0574714)) + 1|0);
  19194. HEAP8[$$0574714>>0] = $378;
  19195. $380 = HEAP8[$$0571715>>0]|0;
  19196. $381 = $380 & 15;
  19197. $382 = $381&255;
  19198. $383 = Math_imul($382, $377)|0;
  19199. $384 = $383&255;
  19200. $385 = ((($$0574714)) + 2|0);
  19201. HEAP8[$379>>0] = $384;
  19202. $386 = (($$14713) + -2)|0;
  19203. $387 = ((($$0571715)) + 1|0);
  19204. $388 = ($386|0)>(1);
  19205. if ($388) {
  19206. $$0571715 = $387;$$0574714 = $385;$$14713 = $386;
  19207. } else {
  19208. break;
  19209. }
  19210. }
  19211. $scevgep862 = (($366) + ($indvars$iv860)|0);
  19212. $$0571$lcssa = $scevgep862;$$0574$lcssa = $scevgep859;$$14$lcssa = $362;
  19213. } else {
  19214. $$0571$lcssa = $370;$$0574$lcssa = $368;$$14$lcssa = $23;
  19215. }
  19216. $389 = ($$14$lcssa|0)==(1);
  19217. if ($389) {
  19218. $390 = HEAP8[$$0571$lcssa>>0]|0;
  19219. $391 = $390&255;
  19220. $392 = $391 >>> 4;
  19221. $393 = Math_imul($392, $377)|0;
  19222. $394 = $393&255;
  19223. HEAP8[$$0574$lcssa>>0] = $394;
  19224. }
  19225. break;
  19226. }
  19227. case 2: {
  19228. if ($340) {
  19229. $scevgep853 = (($366) + ($indvars$iv851)|0);
  19230. $$15705 = $23;$$1572707 = $370;$$1575706 = $368;
  19231. while(1) {
  19232. $395 = HEAP8[$$1572707>>0]|0;
  19233. $396 = $395&255;
  19234. $397 = $396 >>> 6;
  19235. $398 = Math_imul($397, $377)|0;
  19236. $399 = $398&255;
  19237. $400 = ((($$1575706)) + 1|0);
  19238. HEAP8[$$1575706>>0] = $399;
  19239. $401 = HEAP8[$$1572707>>0]|0;
  19240. $402 = $401&255;
  19241. $403 = $402 >>> 4;
  19242. $404 = $403 & 3;
  19243. $405 = Math_imul($404, $377)|0;
  19244. $406 = $405&255;
  19245. $407 = ((($$1575706)) + 2|0);
  19246. HEAP8[$400>>0] = $406;
  19247. $408 = HEAP8[$$1572707>>0]|0;
  19248. $409 = $408&255;
  19249. $410 = $409 >>> 2;
  19250. $411 = $410 & 3;
  19251. $412 = Math_imul($411, $377)|0;
  19252. $413 = $412&255;
  19253. $414 = ((($$1575706)) + 3|0);
  19254. HEAP8[$407>>0] = $413;
  19255. $415 = HEAP8[$$1572707>>0]|0;
  19256. $416 = $415 & 3;
  19257. $417 = $416&255;
  19258. $418 = Math_imul($417, $377)|0;
  19259. $419 = $418&255;
  19260. $420 = ((($$1575706)) + 4|0);
  19261. HEAP8[$414>>0] = $419;
  19262. $421 = (($$15705) + -4)|0;
  19263. $422 = ((($$1572707)) + 1|0);
  19264. $423 = ($421|0)>(3);
  19265. if ($423) {
  19266. $$15705 = $421;$$1572707 = $422;$$1575706 = $420;
  19267. } else {
  19268. break;
  19269. }
  19270. }
  19271. $scevgep856 = (($366) + ($indvars$iv854)|0);
  19272. $$15$lcssa = $354;$$1572$lcssa = $scevgep856;$$1575$lcssa = $scevgep853;
  19273. } else {
  19274. $$15$lcssa = $23;$$1572$lcssa = $370;$$1575$lcssa = $368;
  19275. }
  19276. $424 = ($$15$lcssa|0)>(0);
  19277. if ($424) {
  19278. $425 = HEAP8[$$1572$lcssa>>0]|0;
  19279. $426 = $425&255;
  19280. $427 = $426 >>> 6;
  19281. $428 = Math_imul($427, $377)|0;
  19282. $429 = $428&255;
  19283. HEAP8[$$1575$lcssa>>0] = $429;
  19284. $430 = ($$15$lcssa|0)==(1);
  19285. if (!($430)) {
  19286. $431 = ((($$1575$lcssa)) + 1|0);
  19287. $432 = HEAP8[$$1572$lcssa>>0]|0;
  19288. $433 = $432&255;
  19289. $434 = $433 >>> 4;
  19290. $435 = $434 & 3;
  19291. $436 = Math_imul($435, $377)|0;
  19292. $437 = $436&255;
  19293. HEAP8[$431>>0] = $437;
  19294. $438 = ($$15$lcssa|0)>(2);
  19295. if ($438) {
  19296. $439 = ((($$1575$lcssa)) + 2|0);
  19297. $440 = HEAP8[$$1572$lcssa>>0]|0;
  19298. $441 = $440&255;
  19299. $442 = $441 >>> 2;
  19300. $443 = $442 & 3;
  19301. $444 = Math_imul($443, $377)|0;
  19302. $445 = $444&255;
  19303. HEAP8[$439>>0] = $445;
  19304. }
  19305. }
  19306. }
  19307. break;
  19308. }
  19309. case 1: {
  19310. if ($341) {
  19311. $scevgep = (($366) + ($indvars$iv)|0);
  19312. $$16700 = $23;$$2573702 = $370;$$4701 = $368;
  19313. while(1) {
  19314. $446 = HEAP8[$$2573702>>0]|0;
  19315. $447 = $446&255;
  19316. $448 = $447 >>> 7;
  19317. $449 = (0 - ($448))|0;
  19318. $450 = $377 & $449;
  19319. $451 = $450&255;
  19320. $452 = ((($$4701)) + 1|0);
  19321. HEAP8[$$4701>>0] = $451;
  19322. $453 = HEAP8[$$2573702>>0]|0;
  19323. $454 = $453&255;
  19324. $455 = $454 >>> 6;
  19325. $456 = $455 & 1;
  19326. $457 = (0 - ($456))|0;
  19327. $458 = $377 & $457;
  19328. $459 = $458&255;
  19329. $460 = ((($$4701)) + 2|0);
  19330. HEAP8[$452>>0] = $459;
  19331. $461 = HEAP8[$$2573702>>0]|0;
  19332. $462 = $461&255;
  19333. $463 = $462 >>> 5;
  19334. $464 = $463 & 1;
  19335. $465 = (0 - ($464))|0;
  19336. $466 = $377 & $465;
  19337. $467 = $466&255;
  19338. $468 = ((($$4701)) + 3|0);
  19339. HEAP8[$460>>0] = $467;
  19340. $469 = HEAP8[$$2573702>>0]|0;
  19341. $470 = $469&255;
  19342. $471 = $470 >>> 4;
  19343. $472 = $471 & 1;
  19344. $473 = (0 - ($472))|0;
  19345. $474 = $377 & $473;
  19346. $475 = $474&255;
  19347. $476 = ((($$4701)) + 4|0);
  19348. HEAP8[$468>>0] = $475;
  19349. $477 = HEAP8[$$2573702>>0]|0;
  19350. $478 = $477&255;
  19351. $479 = $478 >>> 3;
  19352. $480 = $479 & 1;
  19353. $481 = (0 - ($480))|0;
  19354. $482 = $377 & $481;
  19355. $483 = $482&255;
  19356. $484 = ((($$4701)) + 5|0);
  19357. HEAP8[$476>>0] = $483;
  19358. $485 = HEAP8[$$2573702>>0]|0;
  19359. $486 = $485&255;
  19360. $487 = $486 >>> 2;
  19361. $488 = $487 & 1;
  19362. $489 = (0 - ($488))|0;
  19363. $490 = $377 & $489;
  19364. $491 = $490&255;
  19365. $492 = ((($$4701)) + 6|0);
  19366. HEAP8[$484>>0] = $491;
  19367. $493 = HEAP8[$$2573702>>0]|0;
  19368. $494 = $493&255;
  19369. $495 = $494 >>> 1;
  19370. $496 = $495 & 1;
  19371. $497 = (0 - ($496))|0;
  19372. $498 = $377 & $497;
  19373. $499 = $498&255;
  19374. $500 = ((($$4701)) + 7|0);
  19375. HEAP8[$492>>0] = $499;
  19376. $501 = HEAP8[$$2573702>>0]|0;
  19377. $502 = $501 & 1;
  19378. $503 = $502&255;
  19379. $504 = (0 - ($503))|0;
  19380. $505 = $377 & $504;
  19381. $506 = $505&255;
  19382. $507 = ((($$4701)) + 8|0);
  19383. HEAP8[$500>>0] = $506;
  19384. $508 = (($$16700) + -8)|0;
  19385. $509 = ((($$2573702)) + 1|0);
  19386. $510 = ($508|0)>(7);
  19387. if ($510) {
  19388. $$16700 = $508;$$2573702 = $509;$$4701 = $507;
  19389. } else {
  19390. break;
  19391. }
  19392. }
  19393. $scevgep850 = (($366) + ($indvars$iv848)|0);
  19394. $$16$lcssa = $346;$$2573$lcssa = $scevgep850;$$4$lcssa = $scevgep;
  19395. } else {
  19396. $$16$lcssa = $23;$$2573$lcssa = $370;$$4$lcssa = $368;
  19397. }
  19398. $511 = ($$16$lcssa|0)>(0);
  19399. if ($511) {
  19400. $512 = HEAP8[$$2573$lcssa>>0]|0;
  19401. $513 = $512&255;
  19402. $514 = $513 >>> 7;
  19403. $515 = (0 - ($514))|0;
  19404. $516 = $377 & $515;
  19405. $517 = $516&255;
  19406. HEAP8[$$4$lcssa>>0] = $517;
  19407. $518 = ($$16$lcssa|0)==(1);
  19408. if (!($518)) {
  19409. $519 = ((($$4$lcssa)) + 1|0);
  19410. $520 = HEAP8[$$2573$lcssa>>0]|0;
  19411. $521 = $520&255;
  19412. $522 = $521 >>> 6;
  19413. $523 = $522 & 1;
  19414. $524 = (0 - ($523))|0;
  19415. $525 = $377 & $524;
  19416. $526 = $525&255;
  19417. HEAP8[$519>>0] = $526;
  19418. $527 = ($$16$lcssa|0)>(2);
  19419. if ($527) {
  19420. $528 = ((($$4$lcssa)) + 2|0);
  19421. $529 = HEAP8[$$2573$lcssa>>0]|0;
  19422. $530 = $529&255;
  19423. $531 = $530 >>> 5;
  19424. $532 = $531 & 1;
  19425. $533 = (0 - ($532))|0;
  19426. $534 = $377 & $533;
  19427. $535 = $534&255;
  19428. HEAP8[$528>>0] = $535;
  19429. $536 = ($$16$lcssa|0)==(3);
  19430. if (!($536)) {
  19431. $537 = ((($$4$lcssa)) + 3|0);
  19432. $538 = HEAP8[$$2573$lcssa>>0]|0;
  19433. $539 = $538&255;
  19434. $540 = $539 >>> 4;
  19435. $541 = $540 & 1;
  19436. $542 = (0 - ($541))|0;
  19437. $543 = $377 & $542;
  19438. $544 = $543&255;
  19439. HEAP8[$537>>0] = $544;
  19440. $545 = ($$16$lcssa|0)>(4);
  19441. if ($545) {
  19442. $546 = ((($$4$lcssa)) + 4|0);
  19443. $547 = HEAP8[$$2573$lcssa>>0]|0;
  19444. $548 = $547&255;
  19445. $549 = $548 >>> 3;
  19446. $550 = $549 & 1;
  19447. $551 = (0 - ($550))|0;
  19448. $552 = $377 & $551;
  19449. $553 = $552&255;
  19450. HEAP8[$546>>0] = $553;
  19451. $554 = ($$16$lcssa|0)==(5);
  19452. if (!($554)) {
  19453. $555 = ((($$4$lcssa)) + 5|0);
  19454. $556 = HEAP8[$$2573$lcssa>>0]|0;
  19455. $557 = $556&255;
  19456. $558 = $557 >>> 2;
  19457. $559 = $558 & 1;
  19458. $560 = (0 - ($559))|0;
  19459. $561 = $377 & $560;
  19460. $562 = $561&255;
  19461. HEAP8[$555>>0] = $562;
  19462. $563 = ($$16$lcssa|0)>(6);
  19463. if ($563) {
  19464. $564 = ((($$4$lcssa)) + 6|0);
  19465. $565 = HEAP8[$$2573$lcssa>>0]|0;
  19466. $566 = $565&255;
  19467. $567 = $566 >>> 1;
  19468. $568 = $567 & 1;
  19469. $569 = (0 - ($568))|0;
  19470. $570 = $377 & $569;
  19471. $571 = $570&255;
  19472. HEAP8[$564>>0] = $571;
  19473. }
  19474. }
  19475. }
  19476. }
  19477. }
  19478. }
  19479. }
  19480. break;
  19481. }
  19482. default: {
  19483. }
  19484. }
  19485. L213: do {
  19486. if (!($17)) {
  19487. $572 = HEAP32[$21>>2]|0;
  19488. $573 = (($572) + ($367)|0);
  19489. switch ($14|0) {
  19490. case 1: {
  19491. if ($337) {
  19492. $$0568725 = $$0568724;
  19493. } else {
  19494. break L213;
  19495. }
  19496. while(1) {
  19497. $574 = $$0568725 << 1;
  19498. $575 = $574 | 1;
  19499. $576 = (($573) + ($575)|0);
  19500. HEAP8[$576>>0] = -1;
  19501. $577 = (($573) + ($$0568725)|0);
  19502. $578 = HEAP8[$577>>0]|0;
  19503. $579 = (($573) + ($574)|0);
  19504. HEAP8[$579>>0] = $578;
  19505. $$0568 = (($$0568725) + -1)|0;
  19506. $580 = ($$0568|0)>(-1);
  19507. if ($580) {
  19508. $$0568725 = $$0568;
  19509. } else {
  19510. break;
  19511. }
  19512. }
  19513. break;
  19514. }
  19515. case 3: {
  19516. if ($338) {
  19517. $$1722 = $$1721;
  19518. } else {
  19519. break L213;
  19520. }
  19521. while(1) {
  19522. $581 = $$1722 << 2;
  19523. $582 = $581 | 3;
  19524. $583 = (($573) + ($582)|0);
  19525. HEAP8[$583>>0] = -1;
  19526. $584 = ($$1722*3)|0;
  19527. $585 = (($584) + 2)|0;
  19528. $586 = (($573) + ($585)|0);
  19529. $587 = HEAP8[$586>>0]|0;
  19530. $588 = $581 | 2;
  19531. $589 = (($573) + ($588)|0);
  19532. HEAP8[$589>>0] = $587;
  19533. $590 = (($584) + 1)|0;
  19534. $591 = (($573) + ($590)|0);
  19535. $592 = HEAP8[$591>>0]|0;
  19536. $593 = $581 | 1;
  19537. $594 = (($573) + ($593)|0);
  19538. HEAP8[$594>>0] = $592;
  19539. $595 = (($573) + ($584)|0);
  19540. $596 = HEAP8[$595>>0]|0;
  19541. $597 = (($573) + ($581)|0);
  19542. HEAP8[$597>>0] = $596;
  19543. $$1 = (($$1722) + -1)|0;
  19544. $598 = ($$1|0)>(-1);
  19545. if ($598) {
  19546. $$1722 = $$1;
  19547. } else {
  19548. break;
  19549. }
  19550. }
  19551. break;
  19552. }
  19553. default: {
  19554. label = 144;
  19555. break L174;
  19556. }
  19557. }
  19558. }
  19559. } while(0);
  19560. $599 = (($$1624727) + 1)|0;
  19561. $600 = ($599>>>0)<($5>>>0);
  19562. $indvars$iv$next = (($indvars$iv) + ($12))|0;
  19563. $indvars$iv$next849 = (($indvars$iv848) + ($12))|0;
  19564. $indvars$iv$next852 = (($indvars$iv851) + ($12))|0;
  19565. $indvars$iv$next855 = (($indvars$iv854) + ($12))|0;
  19566. $indvars$iv$next858 = (($indvars$iv857) + ($12))|0;
  19567. $indvars$iv$next861 = (($indvars$iv860) + ($12))|0;
  19568. if ($600) {
  19569. $$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;
  19570. } else {
  19571. $$2 = 1;
  19572. label = 151;
  19573. break;
  19574. }
  19575. }
  19576. if ((label|0) == 144) {
  19577. ___assert_fail((7310|0),(6620|0),4466,(7207|0));
  19578. // unreachable;
  19579. }
  19580. else if ((label|0) == 151) {
  19581. return ($$2|0);
  19582. }
  19583. return (0)|0;
  19584. }
  19585. function _stbi__paeth($0,$1,$2) {
  19586. $0 = $0|0;
  19587. $1 = $1|0;
  19588. $2 = $2|0;
  19589. 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;
  19590. var label = 0, sp = 0;
  19591. sp = STACKTOP;
  19592. $3 = (($1) + ($0))|0;
  19593. $4 = (($3) - ($2))|0;
  19594. $5 = (($4) - ($0))|0;
  19595. $ispos = ($5|0)>(-1);
  19596. $neg = (0 - ($5))|0;
  19597. $6 = $ispos ? $5 : $neg;
  19598. $7 = (($4) - ($1))|0;
  19599. $ispos26 = ($7|0)>(-1);
  19600. $neg27 = (0 - ($7))|0;
  19601. $8 = $ispos26 ? $7 : $neg27;
  19602. $9 = (($4) - ($2))|0;
  19603. $ispos28 = ($9|0)>(-1);
  19604. $neg29 = (0 - ($9))|0;
  19605. $10 = $ispos28 ? $9 : $neg29;
  19606. $11 = ($6|0)>($8|0);
  19607. $12 = ($6|0)>($10|0);
  19608. $or$cond = $11 | $12;
  19609. $13 = ($8|0)>($10|0);
  19610. $$ = $13 ? $2 : $1;
  19611. $$0 = $or$cond ? $$ : $0;
  19612. return ($$0|0);
  19613. }
  19614. function _stbi__do_zlib($0,$1,$2,$3,$4) {
  19615. $0 = $0|0;
  19616. $1 = $1|0;
  19617. $2 = $2|0;
  19618. $3 = $3|0;
  19619. $4 = $4|0;
  19620. var $10 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  19621. sp = STACKTOP;
  19622. $5 = ((($0)) + 20|0);
  19623. HEAP32[$5>>2] = $1;
  19624. $6 = ((($0)) + 16|0);
  19625. HEAP32[$6>>2] = $1;
  19626. $7 = (($1) + ($2)|0);
  19627. $8 = ((($0)) + 24|0);
  19628. HEAP32[$8>>2] = $7;
  19629. $9 = ((($0)) + 28|0);
  19630. HEAP32[$9>>2] = $3;
  19631. $10 = (_stbi__parse_zlib($0,$4)|0);
  19632. return ($10|0);
  19633. }
  19634. function _stbi__parse_zlib($0,$1) {
  19635. $0 = $0|0;
  19636. $1 = $1|0;
  19637. 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;
  19638. var $9 = 0, label = 0, sp = 0;
  19639. sp = STACKTOP;
  19640. $2 = ($1|0)==(0);
  19641. if (!($2)) {
  19642. $3 = (_stbi__parse_zlib_header($0)|0);
  19643. $4 = ($3|0)==(0);
  19644. if ($4) {
  19645. $$0 = 0;
  19646. return ($$0|0);
  19647. }
  19648. }
  19649. $5 = ((($0)) + 8|0);
  19650. HEAP32[$5>>2] = 0;
  19651. $6 = ((($0)) + 12|0);
  19652. HEAP32[$6>>2] = 0;
  19653. $7 = ((($0)) + 32|0);
  19654. $8 = ((($0)) + 2052|0);
  19655. L5: while(1) {
  19656. $9 = (_stbi__zreceive($0,1)|0);
  19657. $10 = (_stbi__zreceive($0,2)|0);
  19658. switch ($10|0) {
  19659. case 3: {
  19660. $$0 = 0;
  19661. label = 11;
  19662. break L5;
  19663. break;
  19664. }
  19665. case 0: {
  19666. $11 = (_stbi__parse_uncompressed_block($0)|0);
  19667. $12 = ($11|0)==(0);
  19668. if ($12) {
  19669. $$0 = 0;
  19670. label = 11;
  19671. break L5;
  19672. }
  19673. break;
  19674. }
  19675. case 1: {
  19676. $13 = (_stbi__zbuild_huffman($7,7321,288)|0);
  19677. $14 = ($13|0)==(0);
  19678. if ($14) {
  19679. $$0 = 0;
  19680. label = 11;
  19681. break L5;
  19682. }
  19683. $15 = (_stbi__zbuild_huffman($8,7609,32)|0);
  19684. $16 = ($15|0)==(0);
  19685. if ($16) {
  19686. $$0 = 0;
  19687. label = 11;
  19688. break L5;
  19689. } else {
  19690. label = 9;
  19691. }
  19692. break;
  19693. }
  19694. default: {
  19695. $17 = (_stbi__compute_huffman_codes($0)|0);
  19696. $18 = ($17|0)==(0);
  19697. if ($18) {
  19698. $$0 = 0;
  19699. label = 11;
  19700. break L5;
  19701. } else {
  19702. label = 9;
  19703. }
  19704. }
  19705. }
  19706. if ((label|0) == 9) {
  19707. label = 0;
  19708. $19 = (_stbi__parse_huffman_block($0)|0);
  19709. $20 = ($19|0)==(0);
  19710. if ($20) {
  19711. $$0 = 0;
  19712. label = 11;
  19713. break;
  19714. }
  19715. }
  19716. $21 = ($9|0)==(0);
  19717. if (!($21)) {
  19718. $$0 = 1;
  19719. label = 11;
  19720. break;
  19721. }
  19722. }
  19723. if ((label|0) == 11) {
  19724. return ($$0|0);
  19725. }
  19726. return (0)|0;
  19727. }
  19728. function _stbi__parse_zlib_header($0) {
  19729. $0 = $0|0;
  19730. 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;
  19731. sp = STACKTOP;
  19732. $1 = (_stbi__zget8($0)|0);
  19733. $2 = $1&255;
  19734. $3 = $2 & 15;
  19735. $4 = (_stbi__zget8($0)|0);
  19736. $5 = $4&255;
  19737. $6 = $2 << 8;
  19738. $7 = $6 | $5;
  19739. $8 = (($7>>>0) % 31)&-1;
  19740. $9 = ($8|0)==(0);
  19741. if (!($9)) {
  19742. _stbi__err(7975);
  19743. $$0 = 0;
  19744. return ($$0|0);
  19745. }
  19746. $10 = $5 & 32;
  19747. $11 = ($10|0)==(0);
  19748. if (!($11)) {
  19749. _stbi__err(7991);
  19750. $$0 = 0;
  19751. return ($$0|0);
  19752. }
  19753. $12 = ($3|0)==(8);
  19754. if ($12) {
  19755. $$0 = 1;
  19756. return ($$0|0);
  19757. }
  19758. _stbi__err(8006);
  19759. $$0 = 0;
  19760. return ($$0|0);
  19761. }
  19762. function _stbi__zreceive($0,$1) {
  19763. $0 = $0|0;
  19764. $1 = $1|0;
  19765. 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;
  19766. sp = STACKTOP;
  19767. $2 = ((($0)) + 8|0);
  19768. $3 = HEAP32[$2>>2]|0;
  19769. $4 = ($3|0)<($1|0);
  19770. if ($4) {
  19771. _stbi__fill_bits($0);
  19772. }
  19773. $5 = ((($0)) + 12|0);
  19774. $6 = HEAP32[$5>>2]|0;
  19775. $7 = 1 << $1;
  19776. $8 = (($7) + -1)|0;
  19777. $9 = $6 & $8;
  19778. $10 = $6 >>> $1;
  19779. HEAP32[$5>>2] = $10;
  19780. $11 = HEAP32[$2>>2]|0;
  19781. $12 = (($11) - ($1))|0;
  19782. HEAP32[$2>>2] = $12;
  19783. return ($9|0);
  19784. }
  19785. function _stbi__parse_uncompressed_block($0) {
  19786. $0 = $0|0;
  19787. 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;
  19788. 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;
  19789. 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;
  19790. 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;
  19791. sp = STACKTOP;
  19792. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  19793. $1 = sp;
  19794. $2 = ((($0)) + 8|0);
  19795. $3 = HEAP32[$2>>2]|0;
  19796. $4 = $3 & 7;
  19797. $5 = ($4|0)==(0);
  19798. if ($5) {
  19799. $$ph = $3;
  19800. } else {
  19801. (_stbi__zreceive($0,$4)|0);
  19802. $$pr = HEAP32[$2>>2]|0;
  19803. $$ph = $$pr;
  19804. }
  19805. $6 = ($$ph|0)>(0);
  19806. if ($6) {
  19807. $7 = ((($0)) + 12|0);
  19808. $$promoted = HEAP32[$7>>2]|0;
  19809. $8 = $$ph ^ -1;
  19810. $9 = ($8|0)>(-9);
  19811. $smax = $9 ? $8 : -9;
  19812. $10 = (($$ph) + ($smax))|0;
  19813. $11 = (($10) + 8)|0;
  19814. $12 = $11 >>> 3;
  19815. $13 = (($12) + 1)|0;
  19816. $14 = $12 << 3;
  19817. $$037 = 0;$16 = $$promoted;
  19818. while(1) {
  19819. $15 = $16&255;
  19820. $17 = (($$037) + 1)|0;
  19821. $18 = (($1) + ($$037)|0);
  19822. HEAP8[$18>>0] = $15;
  19823. $19 = $16 >>> 8;
  19824. $exitcond47 = ($17|0)==($13|0);
  19825. if ($exitcond47) {
  19826. break;
  19827. } else {
  19828. $$037 = $17;$16 = $19;
  19829. }
  19830. }
  19831. $20 = (($$ph) + -8)|0;
  19832. $21 = (($20) - ($14))|0;
  19833. HEAP32[$7>>2] = $19;
  19834. HEAP32[$2>>2] = $21;
  19835. $$0$lcssa = $13;$$lcssa = $21;
  19836. } else {
  19837. $$0$lcssa = 0;$$lcssa = $$ph;
  19838. }
  19839. $22 = ($$lcssa|0)==(0);
  19840. if (!($22)) {
  19841. ___assert_fail((7897|0),(6620|0),4033,(7914|0));
  19842. // unreachable;
  19843. }
  19844. $23 = ($$0$lcssa|0)<(4);
  19845. if ($23) {
  19846. $$136 = $$0$lcssa;
  19847. while(1) {
  19848. $24 = (_stbi__zget8($0)|0);
  19849. $25 = (($$136) + 1)|0;
  19850. $26 = (($1) + ($$136)|0);
  19851. HEAP8[$26>>0] = $24;
  19852. $exitcond = ($25|0)==(4);
  19853. if ($exitcond) {
  19854. break;
  19855. } else {
  19856. $$136 = $25;
  19857. }
  19858. }
  19859. }
  19860. $27 = ((($1)) + 1|0);
  19861. $28 = HEAP8[$27>>0]|0;
  19862. $29 = $28&255;
  19863. $30 = $29 << 8;
  19864. $31 = HEAP8[$1>>0]|0;
  19865. $32 = $31&255;
  19866. $33 = $30 | $32;
  19867. $34 = ((($1)) + 3|0);
  19868. $35 = HEAP8[$34>>0]|0;
  19869. $36 = $35&255;
  19870. $37 = $36 << 8;
  19871. $38 = ((($1)) + 2|0);
  19872. $39 = HEAP8[$38>>0]|0;
  19873. $40 = $39&255;
  19874. $41 = $37 | $40;
  19875. $42 = $33 ^ 65535;
  19876. $43 = ($41|0)==($42|0);
  19877. if (!($43)) {
  19878. _stbi__err(7945);
  19879. $$034 = 0;
  19880. STACKTOP = sp;return ($$034|0);
  19881. }
  19882. $44 = HEAP32[$0>>2]|0;
  19883. $45 = (($44) + ($33)|0);
  19884. $46 = ((($0)) + 4|0);
  19885. $47 = HEAP32[$46>>2]|0;
  19886. $48 = ($45>>>0)>($47>>>0);
  19887. if ($48) {
  19888. _stbi__err(7958);
  19889. $$034 = 0;
  19890. STACKTOP = sp;return ($$034|0);
  19891. }
  19892. $49 = ((($0)) + 16|0);
  19893. $50 = HEAP32[$49>>2]|0;
  19894. $51 = (($50) + ($33)|0);
  19895. $52 = ((($0)) + 24|0);
  19896. $53 = HEAP32[$52>>2]|0;
  19897. $54 = ($51>>>0)>($53>>>0);
  19898. if ($54) {
  19899. $55 = (_stbi__zexpand($0,$50,$33)|0);
  19900. $56 = ($55|0)==(0);
  19901. if ($56) {
  19902. $$034 = 0;
  19903. STACKTOP = sp;return ($$034|0);
  19904. }
  19905. }
  19906. $57 = HEAP32[$49>>2]|0;
  19907. $58 = HEAP32[$0>>2]|0;
  19908. _memcpy(($57|0),($58|0),($33|0))|0;
  19909. $59 = HEAP32[$0>>2]|0;
  19910. $60 = (($59) + ($33)|0);
  19911. HEAP32[$0>>2] = $60;
  19912. $61 = HEAP32[$49>>2]|0;
  19913. $62 = (($61) + ($33)|0);
  19914. HEAP32[$49>>2] = $62;
  19915. $$034 = 1;
  19916. STACKTOP = sp;return ($$034|0);
  19917. }
  19918. function _stbi__zbuild_huffman($0,$1,$2) {
  19919. $0 = $0|0;
  19920. $1 = $1|0;
  19921. $2 = $2|0;
  19922. 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;
  19923. 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;
  19924. 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;
  19925. 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;
  19926. 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;
  19927. 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;
  19928. sp = STACKTOP;
  19929. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  19930. $3 = sp + 72|0;
  19931. $4 = sp;
  19932. dest=$4; stop=dest+68|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  19933. _memset(($0|0),0,1024)|0;
  19934. $5 = ($2|0)>(0);
  19935. if ($5) {
  19936. $$07688 = 0;
  19937. while(1) {
  19938. $6 = (($1) + ($$07688)|0);
  19939. $7 = HEAP8[$6>>0]|0;
  19940. $8 = $7&255;
  19941. $9 = (($4) + ($8<<2)|0);
  19942. $10 = HEAP32[$9>>2]|0;
  19943. $11 = (($10) + 1)|0;
  19944. HEAP32[$9>>2] = $11;
  19945. $12 = (($$07688) + 1)|0;
  19946. $exitcond91 = ($12|0)==($2|0);
  19947. if ($exitcond91) {
  19948. break;
  19949. } else {
  19950. $$07688 = $12;
  19951. }
  19952. }
  19953. }
  19954. HEAP32[$4>>2] = 0;
  19955. $16 = ((($4)) + 4|0);
  19956. $17 = HEAP32[$16>>2]|0;
  19957. $18 = ($17|0)>(2);
  19958. if (!($18)) {
  19959. $13 = ((($4)) + 8|0);
  19960. $14 = HEAP32[$13>>2]|0;
  19961. $15 = ($14|0)>(4);
  19962. if (!($15)) {
  19963. $69 = ((($4)) + 12|0);
  19964. $70 = HEAP32[$69>>2]|0;
  19965. $71 = ($70|0)>(8);
  19966. if (!($71)) {
  19967. $72 = ((($4)) + 16|0);
  19968. $73 = HEAP32[$72>>2]|0;
  19969. $74 = ($73|0)>(16);
  19970. if (!($74)) {
  19971. $75 = ((($4)) + 20|0);
  19972. $76 = HEAP32[$75>>2]|0;
  19973. $77 = ($76|0)>(32);
  19974. if (!($77)) {
  19975. $78 = ((($4)) + 24|0);
  19976. $79 = HEAP32[$78>>2]|0;
  19977. $80 = ($79|0)>(64);
  19978. if (!($80)) {
  19979. $81 = ((($4)) + 28|0);
  19980. $82 = HEAP32[$81>>2]|0;
  19981. $83 = ($82|0)>(128);
  19982. if (!($83)) {
  19983. $84 = ((($4)) + 32|0);
  19984. $85 = HEAP32[$84>>2]|0;
  19985. $86 = ($85|0)>(256);
  19986. if (!($86)) {
  19987. $87 = ((($4)) + 36|0);
  19988. $88 = HEAP32[$87>>2]|0;
  19989. $89 = ($88|0)>(512);
  19990. if (!($89)) {
  19991. $90 = ((($4)) + 40|0);
  19992. $91 = HEAP32[$90>>2]|0;
  19993. $92 = ($91|0)>(1024);
  19994. if (!($92)) {
  19995. $93 = ((($4)) + 44|0);
  19996. $94 = HEAP32[$93>>2]|0;
  19997. $95 = ($94|0)>(2048);
  19998. if (!($95)) {
  19999. $96 = ((($4)) + 48|0);
  20000. $97 = HEAP32[$96>>2]|0;
  20001. $98 = ($97|0)>(4096);
  20002. if (!($98)) {
  20003. $99 = ((($4)) + 52|0);
  20004. $100 = HEAP32[$99>>2]|0;
  20005. $101 = ($100|0)>(8192);
  20006. if (!($101)) {
  20007. $102 = ((($4)) + 56|0);
  20008. $103 = HEAP32[$102>>2]|0;
  20009. $104 = ($103|0)>(16384);
  20010. if (!($104)) {
  20011. $105 = ((($4)) + 60|0);
  20012. $106 = HEAP32[$105>>2]|0;
  20013. $107 = ($106|0)>(32768);
  20014. if (!($107)) {
  20015. $$07785 = 0;$$07884 = 0;$$286 = 1;
  20016. while(1) {
  20017. $19 = (($3) + ($$286<<2)|0);
  20018. HEAP32[$19>>2] = $$07884;
  20019. $20 = $$07884&65535;
  20020. $21 = (((($0)) + 1024|0) + ($$286<<1)|0);
  20021. HEAP16[$21>>1] = $20;
  20022. $22 = $$07785&65535;
  20023. $23 = (((($0)) + 1124|0) + ($$286<<1)|0);
  20024. HEAP16[$23>>1] = $22;
  20025. $24 = (($4) + ($$286<<2)|0);
  20026. $25 = HEAP32[$24>>2]|0;
  20027. $26 = (($25) + ($$07884))|0;
  20028. $27 = ($25|0)!=(0);
  20029. $28 = 1 << $$286;
  20030. $29 = ($26|0)>($28|0);
  20031. $or$cond = $27 & $29;
  20032. if ($or$cond) {
  20033. label = 7;
  20034. break;
  20035. }
  20036. $30 = (16 - ($$286))|0;
  20037. $31 = $26 << $30;
  20038. $32 = (((($0)) + 1056|0) + ($$286<<2)|0);
  20039. HEAP32[$32>>2] = $31;
  20040. $33 = $26 << 1;
  20041. $34 = (($25) + ($$07785))|0;
  20042. $35 = (($$286) + 1)|0;
  20043. $36 = ($35|0)<(16);
  20044. if ($36) {
  20045. $$07785 = $34;$$07884 = $33;$$286 = $35;
  20046. } else {
  20047. break;
  20048. }
  20049. }
  20050. if ((label|0) == 7) {
  20051. _stbi__err(7835);
  20052. $$075 = 0;
  20053. STACKTOP = sp;return ($$075|0);
  20054. }
  20055. $37 = ((($0)) + 1120|0);
  20056. HEAP32[$37>>2] = 65536;
  20057. $38 = ($2|0)>(0);
  20058. if ($38) {
  20059. $$382 = 0;
  20060. } else {
  20061. $$075 = 1;
  20062. STACKTOP = sp;return ($$075|0);
  20063. }
  20064. while(1) {
  20065. $39 = (($1) + ($$382)|0);
  20066. $40 = HEAP8[$39>>0]|0;
  20067. $41 = $40&255;
  20068. $42 = ($40<<24>>24)==(0);
  20069. if (!($42)) {
  20070. $43 = (($3) + ($41<<2)|0);
  20071. $44 = HEAP32[$43>>2]|0;
  20072. $45 = (((($0)) + 1024|0) + ($41<<1)|0);
  20073. $46 = HEAP16[$45>>1]|0;
  20074. $47 = $46&65535;
  20075. $48 = (($44) - ($47))|0;
  20076. $49 = (((($0)) + 1124|0) + ($41<<1)|0);
  20077. $50 = HEAP16[$49>>1]|0;
  20078. $51 = $50&65535;
  20079. $52 = (($48) + ($51))|0;
  20080. $53 = $41 << 9;
  20081. $54 = $53 | $$382;
  20082. $55 = $54&65535;
  20083. $56 = (((($0)) + 1156|0) + ($52)|0);
  20084. HEAP8[$56>>0] = $40;
  20085. $57 = $$382&65535;
  20086. $58 = (((($0)) + 1444|0) + ($52<<1)|0);
  20087. HEAP16[$58>>1] = $57;
  20088. $59 = ($40&255)<(10);
  20089. do {
  20090. if ($59) {
  20091. $60 = (_stbi__bit_reverse($44,$41)|0);
  20092. $61 = ($60|0)<(512);
  20093. if (!($61)) {
  20094. break;
  20095. }
  20096. $62 = 1 << $41;
  20097. $$081 = $60;
  20098. while(1) {
  20099. $63 = (($0) + ($$081<<1)|0);
  20100. HEAP16[$63>>1] = $55;
  20101. $64 = (($$081) + ($62))|0;
  20102. $65 = ($64|0)<(512);
  20103. if ($65) {
  20104. $$081 = $64;
  20105. } else {
  20106. break;
  20107. }
  20108. }
  20109. }
  20110. } while(0);
  20111. $66 = HEAP32[$43>>2]|0;
  20112. $67 = (($66) + 1)|0;
  20113. HEAP32[$43>>2] = $67;
  20114. }
  20115. $68 = (($$382) + 1)|0;
  20116. $exitcond = ($68|0)==($2|0);
  20117. if ($exitcond) {
  20118. $$075 = 1;
  20119. break;
  20120. } else {
  20121. $$382 = $68;
  20122. }
  20123. }
  20124. STACKTOP = sp;return ($$075|0);
  20125. }
  20126. }
  20127. }
  20128. }
  20129. }
  20130. }
  20131. }
  20132. }
  20133. }
  20134. }
  20135. }
  20136. }
  20137. }
  20138. }
  20139. }
  20140. _stbi__err(7887);
  20141. $$075 = 0;
  20142. STACKTOP = sp;return ($$075|0);
  20143. }
  20144. function _stbi__compute_huffman_codes($0) {
  20145. $0 = $0|0;
  20146. 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;
  20147. 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;
  20148. 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;
  20149. var label = 0, sp = 0, stop = 0;
  20150. sp = STACKTOP;
  20151. STACKTOP = STACKTOP + 2496|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(2496|0);
  20152. $1 = sp;
  20153. $2 = sp + 2039|0;
  20154. $3 = sp + 2020|0;
  20155. $4 = (_stbi__zreceive($0,5)|0);
  20156. $5 = (($4) + 257)|0;
  20157. $6 = (_stbi__zreceive($0,5)|0);
  20158. $7 = (($6) + 1)|0;
  20159. $8 = (_stbi__zreceive($0,4)|0);
  20160. $9 = (($8) + 4)|0;
  20161. $10 = (($7) + ($5))|0;
  20162. dest=$3; stop=dest+19|0; do { HEAP8[dest>>0]=0|0; dest=dest+1|0; } while ((dest|0) < (stop|0));
  20163. $11 = ($9|0)>(0);
  20164. if ($11) {
  20165. $$06579 = 0;
  20166. while(1) {
  20167. $12 = (_stbi__zreceive($0,3)|0);
  20168. $13 = $12&255;
  20169. $14 = (7816 + ($$06579)|0);
  20170. $15 = HEAP8[$14>>0]|0;
  20171. $16 = $15&255;
  20172. $17 = (($3) + ($16)|0);
  20173. HEAP8[$17>>0] = $13;
  20174. $18 = (($$06579) + 1)|0;
  20175. $exitcond = ($18|0)==($9|0);
  20176. if ($exitcond) {
  20177. break;
  20178. } else {
  20179. $$06579 = $18;
  20180. }
  20181. }
  20182. }
  20183. $19 = (_stbi__zbuild_huffman($1,$3,19)|0);
  20184. $20 = ($19|0)==(0);
  20185. if ($20) {
  20186. $$4 = 0;
  20187. STACKTOP = sp;return ($$4|0);
  20188. }
  20189. $21 = ($10|0)>(0);
  20190. L8: do {
  20191. if ($21) {
  20192. $$06678 = 0;
  20193. L9: while(1) {
  20194. $22 = (_stbi__zhuffman_decode($0,$1)|0);
  20195. $23 = ($22>>>0)>(18);
  20196. if ($23) {
  20197. label = 6;
  20198. break;
  20199. }
  20200. $24 = ($22|0)<(16);
  20201. if ($24) {
  20202. $25 = $22&255;
  20203. $26 = (($$06678) + 1)|0;
  20204. $27 = (($2) + ($$06678)|0);
  20205. HEAP8[$27>>0] = $25;
  20206. $$066$be = $26;
  20207. } else {
  20208. switch ($22|0) {
  20209. case 16: {
  20210. $28 = (_stbi__zreceive($0,2)|0);
  20211. $29 = ($$06678|0)==(0);
  20212. if ($29) {
  20213. label = 11;
  20214. break L9;
  20215. }
  20216. $30 = (($28) + 3)|0;
  20217. $31 = (($$06678) + -1)|0;
  20218. $32 = (($2) + ($31)|0);
  20219. $33 = HEAP8[$32>>0]|0;
  20220. $$0 = $33;$$061 = $30;
  20221. break;
  20222. }
  20223. case 17: {
  20224. $34 = (_stbi__zreceive($0,3)|0);
  20225. $35 = (($34) + 3)|0;
  20226. $$0 = 0;$$061 = $35;
  20227. break;
  20228. }
  20229. case 18: {
  20230. $36 = (_stbi__zreceive($0,7)|0);
  20231. $37 = (($36) + 11)|0;
  20232. $$0 = 0;$$061 = $37;
  20233. break;
  20234. }
  20235. default: {
  20236. label = 14;
  20237. break L9;
  20238. }
  20239. }
  20240. $38 = (($10) - ($$06678))|0;
  20241. $39 = ($38|0)<($$061|0);
  20242. if ($39) {
  20243. label = 17;
  20244. break;
  20245. }
  20246. $40 = (($2) + ($$06678)|0);
  20247. _memset(($40|0),($$0|0),($$061|0))|0;
  20248. $41 = (($$061) + ($$06678))|0;
  20249. $$066$be = $41;
  20250. }
  20251. $42 = ($10|0)>($$066$be|0);
  20252. if ($42) {
  20253. $$06678 = $$066$be;
  20254. } else {
  20255. $$066$lcssa = $$066$be;
  20256. break L8;
  20257. }
  20258. }
  20259. if ((label|0) == 6) {
  20260. _stbi__err(7835);
  20261. $$4 = 0;
  20262. STACKTOP = sp;return ($$4|0);
  20263. }
  20264. else if ((label|0) == 11) {
  20265. _stbi__err(7835);
  20266. $$4 = 0;
  20267. STACKTOP = sp;return ($$4|0);
  20268. }
  20269. else if ((label|0) == 14) {
  20270. ___assert_fail((7851|0),(6620|0),4006,(7859|0));
  20271. // unreachable;
  20272. }
  20273. else if ((label|0) == 17) {
  20274. _stbi__err(7835);
  20275. $$4 = 0;
  20276. STACKTOP = sp;return ($$4|0);
  20277. }
  20278. } else {
  20279. $$066$lcssa = 0;
  20280. }
  20281. } while(0);
  20282. $43 = ($10|0)==($$066$lcssa|0);
  20283. if (!($43)) {
  20284. _stbi__err(7835);
  20285. $$4 = 0;
  20286. STACKTOP = sp;return ($$4|0);
  20287. }
  20288. $44 = ((($0)) + 32|0);
  20289. $45 = (_stbi__zbuild_huffman($44,$2,$5)|0);
  20290. $46 = ($45|0)==(0);
  20291. if ($46) {
  20292. $$4 = 0;
  20293. STACKTOP = sp;return ($$4|0);
  20294. }
  20295. $47 = ((($0)) + 2052|0);
  20296. $48 = (($2) + ($5)|0);
  20297. $49 = (_stbi__zbuild_huffman($47,$48,$7)|0);
  20298. $not$ = ($49|0)!=(0);
  20299. $$ = $not$&1;
  20300. $$4 = $$;
  20301. STACKTOP = sp;return ($$4|0);
  20302. }
  20303. function _stbi__parse_huffman_block($0) {
  20304. $0 = $0|0;
  20305. 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;
  20306. 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;
  20307. 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;
  20308. var $56 = 0, $57 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $scevgep = 0, $scevgep92 = 0, label = 0, sp = 0;
  20309. sp = STACKTOP;
  20310. $1 = ((($0)) + 16|0);
  20311. $2 = HEAP32[$1>>2]|0;
  20312. $3 = ((($0)) + 32|0);
  20313. $4 = ((($0)) + 24|0);
  20314. $5 = ((($0)) + 2052|0);
  20315. $6 = ((($0)) + 20|0);
  20316. $7 = ((($0)) + 24|0);
  20317. $$070 = $2;
  20318. while(1) {
  20319. $10 = (_stbi__zhuffman_decode($0,$3)|0);
  20320. $11 = ($10|0)<(256);
  20321. if ($11) {
  20322. $12 = ($10|0)<(0);
  20323. if ($12) {
  20324. label = 6;
  20325. break;
  20326. }
  20327. $13 = HEAP32[$4>>2]|0;
  20328. $14 = ($$070>>>0)<($13>>>0);
  20329. if ($14) {
  20330. $$171 = $$070;
  20331. } else {
  20332. $15 = (_stbi__zexpand($0,$$070,1)|0);
  20333. $16 = ($15|0)==(0);
  20334. if ($16) {
  20335. $$3$ph = 0;
  20336. label = 28;
  20337. break;
  20338. }
  20339. $17 = HEAP32[$1>>2]|0;
  20340. $$171 = $17;
  20341. }
  20342. $18 = $10&255;
  20343. $19 = ((($$171)) + 1|0);
  20344. HEAP8[$$171>>0] = $18;
  20345. $$070 = $19;
  20346. continue;
  20347. }
  20348. $20 = ($10|0)==(256);
  20349. if ($20) {
  20350. label = 12;
  20351. break;
  20352. }
  20353. $21 = (($10) + -257)|0;
  20354. $22 = (3188 + ($21<<2)|0);
  20355. $23 = HEAP32[$22>>2]|0;
  20356. $24 = (($10) + -265)|0;
  20357. $25 = ($24>>>0)<(20);
  20358. if ($25) {
  20359. $26 = (3312 + ($21<<2)|0);
  20360. $27 = HEAP32[$26>>2]|0;
  20361. $28 = (_stbi__zreceive($0,$27)|0);
  20362. $29 = (($28) + ($23))|0;
  20363. $$064 = $29;
  20364. } else {
  20365. $$064 = $23;
  20366. }
  20367. $30 = (_stbi__zhuffman_decode($0,$5)|0);
  20368. $31 = ($30|0)<(0);
  20369. if ($31) {
  20370. label = 16;
  20371. break;
  20372. }
  20373. $32 = (3436 + ($30<<2)|0);
  20374. $33 = HEAP32[$32>>2]|0;
  20375. $34 = (($30) + -4)|0;
  20376. $35 = ($34>>>0)<(26);
  20377. if ($35) {
  20378. $36 = (3564 + ($30<<2)|0);
  20379. $37 = HEAP32[$36>>2]|0;
  20380. $38 = (_stbi__zreceive($0,$37)|0);
  20381. $39 = (($38) + ($33))|0;
  20382. $$063 = $39;
  20383. } else {
  20384. $$063 = $33;
  20385. }
  20386. $40 = HEAP32[$6>>2]|0;
  20387. $41 = $$070;
  20388. $42 = (($41) - ($40))|0;
  20389. $43 = ($42|0)<($$063|0);
  20390. if ($43) {
  20391. label = 20;
  20392. break;
  20393. }
  20394. $44 = (($$070) + ($$064)|0);
  20395. $45 = HEAP32[$7>>2]|0;
  20396. $46 = ($44>>>0)>($45>>>0);
  20397. if ($46) {
  20398. $47 = (_stbi__zexpand($0,$$070,$$064)|0);
  20399. $48 = ($47|0)==(0);
  20400. if ($48) {
  20401. $$3$ph = 0;
  20402. label = 28;
  20403. break;
  20404. }
  20405. $49 = HEAP32[$1>>2]|0;
  20406. $$272 = $49;
  20407. } else {
  20408. $$272 = $$070;
  20409. }
  20410. $50 = (0 - ($$063))|0;
  20411. $9 = (($$272) + ($50)|0);
  20412. $51 = ($$063|0)==(1);
  20413. $52 = ($$064|0)!=(0);
  20414. if ($51) {
  20415. if (!($52)) {
  20416. $$070 = $$272;
  20417. continue;
  20418. }
  20419. $8 = HEAP8[$9>>0]|0;
  20420. _memset(($$272|0),($8|0),($$064|0))|0;
  20421. $scevgep92 = (($$272) + ($$064)|0);
  20422. $$070 = $scevgep92;
  20423. continue;
  20424. }
  20425. if ($52) {
  20426. $$067 = $9;$$266 = $$064;$$5 = $$272;
  20427. } else {
  20428. $$070 = $$272;
  20429. continue;
  20430. }
  20431. while(1) {
  20432. $53 = ((($$067)) + 1|0);
  20433. $54 = HEAP8[$$067>>0]|0;
  20434. $55 = ((($$5)) + 1|0);
  20435. HEAP8[$$5>>0] = $54;
  20436. $56 = (($$266) + -1)|0;
  20437. $57 = ($56|0)==(0);
  20438. if ($57) {
  20439. break;
  20440. } else {
  20441. $$067 = $53;$$266 = $56;$$5 = $55;
  20442. }
  20443. }
  20444. $scevgep = (($$272) + ($$064)|0);
  20445. $$070 = $scevgep;
  20446. }
  20447. if ((label|0) == 6) {
  20448. _stbi__err(7641);
  20449. $$3$ph = 0;
  20450. return ($$3$ph|0);
  20451. }
  20452. else if ((label|0) == 12) {
  20453. HEAP32[$1>>2] = $$070;
  20454. $$3$ph = 1;
  20455. return ($$3$ph|0);
  20456. }
  20457. else if ((label|0) == 16) {
  20458. _stbi__err(7641);
  20459. $$3$ph = 0;
  20460. return ($$3$ph|0);
  20461. }
  20462. else if ((label|0) == 20) {
  20463. _stbi__err(7658);
  20464. $$3$ph = 0;
  20465. return ($$3$ph|0);
  20466. }
  20467. else if ((label|0) == 28) {
  20468. return ($$3$ph|0);
  20469. }
  20470. return (0)|0;
  20471. }
  20472. function _stbi__zhuffman_decode($0,$1) {
  20473. $0 = $0|0;
  20474. $1 = $1|0;
  20475. 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;
  20476. sp = STACKTOP;
  20477. $2 = ((($0)) + 8|0);
  20478. $3 = HEAP32[$2>>2]|0;
  20479. $4 = ($3|0)<(16);
  20480. if ($4) {
  20481. _stbi__fill_bits($0);
  20482. }
  20483. $5 = ((($0)) + 12|0);
  20484. $6 = HEAP32[$5>>2]|0;
  20485. $7 = $6 & 511;
  20486. $8 = (($1) + ($7<<1)|0);
  20487. $9 = HEAP16[$8>>1]|0;
  20488. $10 = $9&65535;
  20489. $11 = ($9<<16>>16)==(0);
  20490. if ($11) {
  20491. $17 = (_stbi__zhuffman_decode_slowpath($0,$1)|0);
  20492. $$0 = $17;
  20493. return ($$0|0);
  20494. } else {
  20495. $12 = $10 >>> 9;
  20496. $13 = $6 >>> $12;
  20497. HEAP32[$5>>2] = $13;
  20498. $14 = HEAP32[$2>>2]|0;
  20499. $15 = (($14) - ($12))|0;
  20500. HEAP32[$2>>2] = $15;
  20501. $16 = $10 & 511;
  20502. $$0 = $16;
  20503. return ($$0|0);
  20504. }
  20505. return (0)|0;
  20506. }
  20507. function _stbi__zexpand($0,$1,$2) {
  20508. $0 = $0|0;
  20509. $1 = $1|0;
  20510. $2 = $2|0;
  20511. 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;
  20512. var $9 = 0, label = 0, sp = 0;
  20513. sp = STACKTOP;
  20514. $3 = ((($0)) + 16|0);
  20515. HEAP32[$3>>2] = $1;
  20516. $4 = ((($0)) + 28|0);
  20517. $5 = HEAP32[$4>>2]|0;
  20518. $6 = ($5|0)==(0);
  20519. if ($6) {
  20520. _stbi__err(7667);
  20521. $$0 = 0;
  20522. return ($$0|0);
  20523. }
  20524. $7 = ((($0)) + 20|0);
  20525. $8 = HEAP32[$7>>2]|0;
  20526. $9 = $1;
  20527. $10 = $8;
  20528. $11 = (($9) - ($10))|0;
  20529. $12 = ((($0)) + 24|0);
  20530. $13 = HEAP32[$12>>2]|0;
  20531. $14 = (($13) - ($10))|0;
  20532. $15 = (($11) + ($2))|0;
  20533. $$029 = $14;
  20534. while(1) {
  20535. $16 = ($15|0)>($$029|0);
  20536. $17 = $$029 << 1;
  20537. if ($16) {
  20538. $$029 = $17;
  20539. } else {
  20540. break;
  20541. }
  20542. }
  20543. $18 = (_realloc($8,$$029)|0);
  20544. $19 = ($18|0)==(0|0);
  20545. if ($19) {
  20546. _stbi__err(6585);
  20547. $$0 = 0;
  20548. return ($$0|0);
  20549. } else {
  20550. HEAP32[$7>>2] = $18;
  20551. $20 = (($18) + ($11)|0);
  20552. HEAP32[$3>>2] = $20;
  20553. $21 = (($18) + ($$029)|0);
  20554. HEAP32[$12>>2] = $21;
  20555. $$0 = 1;
  20556. return ($$0|0);
  20557. }
  20558. return (0)|0;
  20559. }
  20560. function _stbi__fill_bits($0) {
  20561. $0 = $0|0;
  20562. 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;
  20563. sp = STACKTOP;
  20564. $1 = ((($0)) + 12|0);
  20565. $2 = ((($0)) + 8|0);
  20566. while(1) {
  20567. $3 = HEAP32[$1>>2]|0;
  20568. $4 = HEAP32[$2>>2]|0;
  20569. $5 = 1 << $4;
  20570. $6 = ($3>>>0)<($5>>>0);
  20571. if (!($6)) {
  20572. label = 3;
  20573. break;
  20574. }
  20575. $7 = (_stbi__zget8($0)|0);
  20576. $8 = $7&255;
  20577. $9 = HEAP32[$2>>2]|0;
  20578. $10 = $8 << $9;
  20579. $11 = HEAP32[$1>>2]|0;
  20580. $12 = $11 | $10;
  20581. HEAP32[$1>>2] = $12;
  20582. $13 = (($9) + 8)|0;
  20583. HEAP32[$2>>2] = $13;
  20584. $14 = ($13|0)<(25);
  20585. if (!($14)) {
  20586. label = 5;
  20587. break;
  20588. }
  20589. }
  20590. if ((label|0) == 3) {
  20591. ___assert_fail((7763|0),(6620|0),3848,(7800|0));
  20592. // unreachable;
  20593. }
  20594. else if ((label|0) == 5) {
  20595. return;
  20596. }
  20597. }
  20598. function _stbi__zhuffman_decode_slowpath($0,$1) {
  20599. $0 = $0|0;
  20600. $1 = $1|0;
  20601. 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;
  20602. 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;
  20603. sp = STACKTOP;
  20604. $2 = ((($0)) + 12|0);
  20605. $3 = HEAP32[$2>>2]|0;
  20606. $4 = (_stbi__bit_reverse($3,16)|0);
  20607. $$025 = 10;
  20608. while(1) {
  20609. $5 = (((($1)) + 1056|0) + ($$025<<2)|0);
  20610. $6 = HEAP32[$5>>2]|0;
  20611. $7 = ($4|0)<($6|0);
  20612. $8 = (($$025) + 1)|0;
  20613. if ($7) {
  20614. break;
  20615. } else {
  20616. $$025 = $8;
  20617. }
  20618. }
  20619. $9 = ($$025|0)==(16);
  20620. if ($9) {
  20621. $$0 = -1;
  20622. return ($$0|0);
  20623. }
  20624. $10 = (16 - ($$025))|0;
  20625. $11 = $4 >> $10;
  20626. $12 = (((($1)) + 1024|0) + ($$025<<1)|0);
  20627. $13 = HEAP16[$12>>1]|0;
  20628. $14 = $13&65535;
  20629. $15 = (($11) - ($14))|0;
  20630. $16 = (((($1)) + 1124|0) + ($$025<<1)|0);
  20631. $17 = HEAP16[$16>>1]|0;
  20632. $18 = $17&65535;
  20633. $19 = (($15) + ($18))|0;
  20634. $20 = (((($1)) + 1156|0) + ($19)|0);
  20635. $21 = HEAP8[$20>>0]|0;
  20636. $22 = $21&255;
  20637. $23 = ($22|0)==($$025|0);
  20638. if (!($23)) {
  20639. ___assert_fail((7687|0),(6620|0),3876,(7703|0));
  20640. // unreachable;
  20641. }
  20642. $24 = HEAP32[$2>>2]|0;
  20643. $25 = $24 >>> $$025;
  20644. HEAP32[$2>>2] = $25;
  20645. $26 = ((($0)) + 8|0);
  20646. $27 = HEAP32[$26>>2]|0;
  20647. $28 = (($27) - ($$025))|0;
  20648. HEAP32[$26>>2] = $28;
  20649. $29 = (((($1)) + 1444|0) + ($19<<1)|0);
  20650. $30 = HEAP16[$29>>1]|0;
  20651. $31 = $30&65535;
  20652. $$0 = $31;
  20653. return ($$0|0);
  20654. }
  20655. function _stbi__bit_reverse($0,$1) {
  20656. $0 = $0|0;
  20657. $1 = $1|0;
  20658. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  20659. sp = STACKTOP;
  20660. $2 = ($1|0)<(17);
  20661. if ($2) {
  20662. $3 = (_stbi__bitreverse16($0)|0);
  20663. $4 = (16 - ($1))|0;
  20664. $5 = $3 >> $4;
  20665. return ($5|0);
  20666. } else {
  20667. ___assert_fail((7734|0),(6620|0),3766,(7745|0));
  20668. // unreachable;
  20669. }
  20670. return (0)|0;
  20671. }
  20672. function _stbi__bitreverse16($0) {
  20673. $0 = $0|0;
  20674. 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;
  20675. var sp = 0;
  20676. sp = STACKTOP;
  20677. $1 = $0 >>> 1;
  20678. $2 = $1 & 21845;
  20679. $3 = $0 << 1;
  20680. $4 = $3 & 43690;
  20681. $5 = $2 | $4;
  20682. $6 = $5 >>> 2;
  20683. $7 = $6 & 13107;
  20684. $8 = $5 << 2;
  20685. $9 = $8 & 52428;
  20686. $10 = $7 | $9;
  20687. $11 = $10 >>> 4;
  20688. $12 = $11 & 3855;
  20689. $13 = $10 << 4;
  20690. $14 = $13 & 61680;
  20691. $15 = $12 | $14;
  20692. $16 = $15 >>> 8;
  20693. $17 = $15 << 8;
  20694. $18 = $17 & 65280;
  20695. $19 = $18 | $16;
  20696. return ($19|0);
  20697. }
  20698. function _stbi__zget8($0) {
  20699. $0 = $0|0;
  20700. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  20701. sp = STACKTOP;
  20702. $1 = HEAP32[$0>>2]|0;
  20703. $2 = ((($0)) + 4|0);
  20704. $3 = HEAP32[$2>>2]|0;
  20705. $4 = ($1>>>0)<($3>>>0);
  20706. if (!($4)) {
  20707. $$0 = 0;
  20708. return ($$0|0);
  20709. }
  20710. $5 = ((($1)) + 1|0);
  20711. HEAP32[$0>>2] = $5;
  20712. $6 = HEAP8[$1>>0]|0;
  20713. $$0 = $6;
  20714. return ($$0|0);
  20715. }
  20716. function _stbi__refill_buffer($0) {
  20717. $0 = $0|0;
  20718. 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;
  20719. sp = STACKTOP;
  20720. $1 = ((($0)) + 16|0);
  20721. $2 = HEAP32[$1>>2]|0;
  20722. $3 = ((($0)) + 28|0);
  20723. $4 = HEAP32[$3>>2]|0;
  20724. $5 = ((($0)) + 40|0);
  20725. $6 = ((($0)) + 36|0);
  20726. $7 = HEAP32[$6>>2]|0;
  20727. $8 = (FUNCTION_TABLE_iiii[$2 & 15]($4,$5,$7)|0);
  20728. $9 = ($8|0)==(0);
  20729. if ($9) {
  20730. $10 = ((($0)) + 32|0);
  20731. HEAP32[$10>>2] = 0;
  20732. $11 = ((($0)) + 168|0);
  20733. HEAP32[$11>>2] = $5;
  20734. $12 = ((($0)) + 41|0);
  20735. $13 = ((($0)) + 172|0);
  20736. HEAP32[$13>>2] = $12;
  20737. HEAP8[$5>>0] = 0;
  20738. return;
  20739. } else {
  20740. $14 = ((($0)) + 168|0);
  20741. HEAP32[$14>>2] = $5;
  20742. $15 = (((($0)) + 40|0) + ($8)|0);
  20743. $16 = ((($0)) + 172|0);
  20744. HEAP32[$16>>2] = $15;
  20745. return;
  20746. }
  20747. }
  20748. function _stbi__rewind($0) {
  20749. $0 = $0|0;
  20750. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  20751. sp = STACKTOP;
  20752. $1 = ((($0)) + 176|0);
  20753. $2 = HEAP32[$1>>2]|0;
  20754. $3 = ((($0)) + 168|0);
  20755. HEAP32[$3>>2] = $2;
  20756. $4 = ((($0)) + 180|0);
  20757. $5 = HEAP32[$4>>2]|0;
  20758. $6 = ((($0)) + 172|0);
  20759. HEAP32[$6>>2] = $5;
  20760. return;
  20761. }
  20762. function _stbi__hdr_gettoken($0,$1) {
  20763. $0 = $0|0;
  20764. $1 = $1|0;
  20765. var $$014 = 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, $or$cond = 0, label = 0, sp = 0;
  20766. sp = STACKTOP;
  20767. $$014 = 0;
  20768. while(1) {
  20769. $2 = (_stbi__get8($0)|0);
  20770. $3 = (_stbi__at_eof($0)|0);
  20771. $4 = ($3|0)!=(0);
  20772. $5 = ($2<<24>>24)==(10);
  20773. $or$cond = $5 | $4;
  20774. if ($or$cond) {
  20775. $$1 = $$014;
  20776. break;
  20777. }
  20778. $6 = (($$014) + 1)|0;
  20779. $7 = (($1) + ($$014)|0);
  20780. HEAP8[$7>>0] = $2;
  20781. $8 = ($6|0)==(1023);
  20782. if ($8) {
  20783. label = 4;
  20784. break;
  20785. } else {
  20786. $$014 = $6;
  20787. }
  20788. }
  20789. L4: do {
  20790. if ((label|0) == 4) {
  20791. while(1) {
  20792. label = 0;
  20793. $9 = (_stbi__at_eof($0)|0);
  20794. $10 = ($9|0)==(0);
  20795. if (!($10)) {
  20796. $$1 = $6;
  20797. break L4;
  20798. }
  20799. $11 = (_stbi__get8($0)|0);
  20800. $12 = ($11<<24>>24)==(10);
  20801. if ($12) {
  20802. $$1 = $6;
  20803. break;
  20804. } else {
  20805. label = 4;
  20806. }
  20807. }
  20808. }
  20809. } while(0);
  20810. $13 = (($1) + ($$1)|0);
  20811. HEAP8[$13>>0] = 0;
  20812. return ($1|0);
  20813. }
  20814. function _stbi__hdr_convert($0,$1,$2) {
  20815. $0 = $0|0;
  20816. $1 = $1|0;
  20817. $2 = $2|0;
  20818. var $$sink = 0.0, $$sink1 = 0, $$sink30 = 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.0, $22 = 0.0, $23 = 0.0, $24 = 0.0, $25 = 0.0, $26 = 0;
  20819. var $27 = 0, $28 = 0.0, $29 = 0.0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0.0, $34 = 0.0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0.0;
  20820. var $9 = 0.0, label = 0, sp = 0;
  20821. sp = STACKTOP;
  20822. $3 = ((($1)) + 3|0);
  20823. $4 = HEAP8[$3>>0]|0;
  20824. $5 = ($4<<24>>24)==(0);
  20825. if ($5) {
  20826. switch ($2|0) {
  20827. case 4: {
  20828. $38 = ((($0)) + 12|0);
  20829. HEAPF32[$38>>2] = 1.0;
  20830. label = 10;
  20831. break;
  20832. }
  20833. case 3: {
  20834. label = 10;
  20835. break;
  20836. }
  20837. case 2: {
  20838. $$sink30 = 1.0;
  20839. label = 11;
  20840. break;
  20841. }
  20842. case 1: {
  20843. break;
  20844. }
  20845. default: {
  20846. return;
  20847. }
  20848. }
  20849. if ((label|0) == 10) {
  20850. $39 = ((($0)) + 8|0);
  20851. HEAPF32[$39>>2] = 0.0;
  20852. $$sink30 = 0.0;
  20853. label = 11;
  20854. }
  20855. if ((label|0) == 11) {
  20856. $40 = ((($0)) + 4|0);
  20857. HEAPF32[$40>>2] = $$sink30;
  20858. }
  20859. HEAPF32[$0>>2] = 0.0;
  20860. return;
  20861. }
  20862. $6 = $4&255;
  20863. $7 = (($6) + -136)|0;
  20864. $8 = (+_ldexp(1.0,$7));
  20865. $9 = $8;
  20866. $10 = ($2|0)<(3);
  20867. $11 = HEAP8[$1>>0]|0;
  20868. if ($10) {
  20869. $12 = $11&255;
  20870. $13 = ((($1)) + 1|0);
  20871. $14 = HEAP8[$13>>0]|0;
  20872. $15 = $14&255;
  20873. $16 = (($15) + ($12))|0;
  20874. $17 = ((($1)) + 2|0);
  20875. $18 = HEAP8[$17>>0]|0;
  20876. $19 = $18&255;
  20877. $20 = (($16) + ($19))|0;
  20878. $21 = (+($20|0));
  20879. $22 = $9 * $21;
  20880. $23 = $22 / 3.0;
  20881. $$sink = $23;$$sink1 = $0;
  20882. } else {
  20883. $24 = (+($11&255));
  20884. $25 = $9 * $24;
  20885. HEAPF32[$0>>2] = $25;
  20886. $26 = ((($1)) + 1|0);
  20887. $27 = HEAP8[$26>>0]|0;
  20888. $28 = (+($27&255));
  20889. $29 = $9 * $28;
  20890. $30 = ((($0)) + 4|0);
  20891. HEAPF32[$30>>2] = $29;
  20892. $31 = ((($1)) + 2|0);
  20893. $32 = HEAP8[$31>>0]|0;
  20894. $33 = (+($32&255));
  20895. $34 = $9 * $33;
  20896. $35 = ((($0)) + 8|0);
  20897. $$sink = $34;$$sink1 = $35;
  20898. }
  20899. HEAPF32[$$sink1>>2] = $$sink;
  20900. switch ($2|0) {
  20901. case 2: {
  20902. $36 = ((($0)) + 4|0);
  20903. HEAPF32[$36>>2] = 1.0;
  20904. return;
  20905. break;
  20906. }
  20907. case 4: {
  20908. $37 = ((($0)) + 12|0);
  20909. HEAPF32[$37>>2] = 1.0;
  20910. return;
  20911. break;
  20912. }
  20913. default: {
  20914. return;
  20915. }
  20916. }
  20917. }
  20918. function _stbi__at_eof($0) {
  20919. $0 = $0|0;
  20920. var $$0 = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0;
  20921. var sp = 0;
  20922. sp = STACKTOP;
  20923. $1 = ((($0)) + 16|0);
  20924. $2 = HEAP32[$1>>2]|0;
  20925. $3 = ($2|0)==(0|0);
  20926. if (!($3)) {
  20927. $4 = ((($0)) + 24|0);
  20928. $5 = HEAP32[$4>>2]|0;
  20929. $6 = ((($0)) + 28|0);
  20930. $7 = HEAP32[$6>>2]|0;
  20931. $8 = (FUNCTION_TABLE_ii[$5 & 15]($7)|0);
  20932. $9 = ($8|0)==(0);
  20933. if ($9) {
  20934. $$0 = 0;
  20935. return ($$0|0);
  20936. }
  20937. $10 = ((($0)) + 32|0);
  20938. $11 = HEAP32[$10>>2]|0;
  20939. $12 = ($11|0)==(0);
  20940. if ($12) {
  20941. $$0 = 1;
  20942. return ($$0|0);
  20943. }
  20944. }
  20945. $13 = ((($0)) + 168|0);
  20946. $14 = HEAP32[$13>>2]|0;
  20947. $15 = ((($0)) + 172|0);
  20948. $16 = HEAP32[$15>>2]|0;
  20949. $17 = ($14>>>0)>=($16>>>0);
  20950. $18 = $17&1;
  20951. $$0 = $18;
  20952. return ($$0|0);
  20953. }
  20954. function _stbi__hdr_test_core($0,$1) {
  20955. $0 = $0|0;
  20956. $1 = $1|0;
  20957. var $$07 = 0, $$08 = 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;
  20958. sp = STACKTOP;
  20959. $2 = HEAP8[$1>>0]|0;
  20960. $3 = ($2<<24>>24)==(0);
  20961. L1: do {
  20962. if (!($3)) {
  20963. $$08 = 0;$11 = $1;
  20964. while(1) {
  20965. $8 = (_stbi__get8($0)|0);
  20966. $9 = $8&255;
  20967. $10 = HEAP8[$11>>0]|0;
  20968. $12 = $10 << 24 >> 24;
  20969. $13 = ($9|0)==($12|0);
  20970. $5 = (($$08) + 1)|0;
  20971. if (!($13)) {
  20972. $$07 = 0;
  20973. break;
  20974. }
  20975. $4 = (($1) + ($5)|0);
  20976. $6 = HEAP8[$4>>0]|0;
  20977. $7 = ($6<<24>>24)==(0);
  20978. if ($7) {
  20979. break L1;
  20980. } else {
  20981. $$08 = $5;$11 = $4;
  20982. }
  20983. }
  20984. return ($$07|0);
  20985. }
  20986. } while(0);
  20987. _stbi__rewind($0);
  20988. $$07 = 1;
  20989. return ($$07|0);
  20990. }
  20991. function _stbi__start_callbacks($0,$1,$2) {
  20992. $0 = $0|0;
  20993. $1 = $1|0;
  20994. $2 = $2|0;
  20995. var $10 = 0, $11 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  20996. sp = STACKTOP;
  20997. $3 = ((($0)) + 16|0);
  20998. ;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;
  20999. $4 = ((($0)) + 28|0);
  21000. HEAP32[$4>>2] = $2;
  21001. $5 = ((($0)) + 36|0);
  21002. HEAP32[$5>>2] = 128;
  21003. $6 = ((($0)) + 32|0);
  21004. HEAP32[$6>>2] = 1;
  21005. $7 = ((($0)) + 40|0);
  21006. $8 = ((($0)) + 176|0);
  21007. HEAP32[$8>>2] = $7;
  21008. _stbi__refill_buffer($0);
  21009. $9 = ((($0)) + 172|0);
  21010. $10 = HEAP32[$9>>2]|0;
  21011. $11 = ((($0)) + 180|0);
  21012. HEAP32[$11>>2] = $10;
  21013. return;
  21014. }
  21015. function _stbi__stdio_read($0,$1,$2) {
  21016. $0 = $0|0;
  21017. $1 = $1|0;
  21018. $2 = $2|0;
  21019. var $3 = 0, label = 0, sp = 0;
  21020. sp = STACKTOP;
  21021. $3 = (_fread($1,1,$2,$0)|0);
  21022. return ($3|0);
  21023. }
  21024. function _stbi__stdio_skip($0,$1) {
  21025. $0 = $0|0;
  21026. $1 = $1|0;
  21027. var label = 0, sp = 0;
  21028. sp = STACKTOP;
  21029. (_fseek($0,$1,1)|0);
  21030. return;
  21031. }
  21032. function _stbi__stdio_eof($0) {
  21033. $0 = $0|0;
  21034. var $1 = 0, label = 0, sp = 0;
  21035. sp = STACKTOP;
  21036. $1 = (_feof($0)|0);
  21037. return ($1|0);
  21038. }
  21039. function _ImageCopy($0,$1) {
  21040. $0 = $0|0;
  21041. $1 = $1|0;
  21042. var $$0 = 0, $$sroa$6$0 = 0, $$sroa$6$0$$sroa_idx11 = 0, $$sroa$7$0 = 0, $$sroa$7$0$$sroa_idx13 = 0, $$sroa$8$0 = 0, $$sroa$8$0$$sroa_idx15 = 0, $$sroa$9$0 = 0, $$sroa$9$0$$sroa_idx17 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0;
  21043. var $20 = 0, $21 = 0, $22 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  21044. sp = STACKTOP;
  21045. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  21046. $vararg_buffer = sp;
  21047. $2 = ((($1)) + 4|0);
  21048. $3 = HEAP32[$2>>2]|0;
  21049. $4 = ((($1)) + 8|0);
  21050. $5 = HEAP32[$4>>2]|0;
  21051. $6 = Math_imul($5, $3)|0;
  21052. $7 = ((($1)) + 16|0);
  21053. $8 = HEAP32[$7>>2]|0;
  21054. switch ($8|0) {
  21055. case 18: case 15: case 12: case 11: case 1: {
  21056. $$0 = $6;
  21057. break;
  21058. }
  21059. case 6: case 5: case 3: case 2: {
  21060. $9 = $6 << 1;
  21061. $$0 = $9;
  21062. break;
  21063. }
  21064. case 4: {
  21065. $10 = ($6*3)|0;
  21066. $$0 = $10;
  21067. break;
  21068. }
  21069. case 7: {
  21070. $11 = $6 << 2;
  21071. $$0 = $11;
  21072. break;
  21073. }
  21074. case 8: {
  21075. $12 = ($6*12)|0;
  21076. $$0 = $12;
  21077. break;
  21078. }
  21079. case 17: case 16: case 14: case 13: case 10: case 9: {
  21080. $13 = (($6|0) / 2)&-1;
  21081. $$0 = $13;
  21082. break;
  21083. }
  21084. case 19: {
  21085. $14 = (($6|0) / 4)&-1;
  21086. $$0 = $14;
  21087. break;
  21088. }
  21089. default: {
  21090. _TraceLog(1,8194,$vararg_buffer);
  21091. $$0 = $6;
  21092. }
  21093. }
  21094. $15 = (_malloc($$0)|0);
  21095. $16 = ($15|0)==(0|0);
  21096. if ($16) {
  21097. $$sroa$6$0 = 0;$$sroa$7$0 = 0;$$sroa$8$0 = 0;$$sroa$9$0 = 0;
  21098. } else {
  21099. $17 = HEAP32[$1>>2]|0;
  21100. _memcpy(($15|0),($17|0),($$0|0))|0;
  21101. $18 = HEAP32[$2>>2]|0;
  21102. $19 = HEAP32[$4>>2]|0;
  21103. $20 = ((($1)) + 12|0);
  21104. $21 = HEAP32[$20>>2]|0;
  21105. $22 = HEAP32[$7>>2]|0;
  21106. $$sroa$6$0 = $18;$$sroa$7$0 = $19;$$sroa$8$0 = $21;$$sroa$9$0 = $22;
  21107. }
  21108. HEAP32[$0>>2] = $15;
  21109. $$sroa$6$0$$sroa_idx11 = ((($0)) + 4|0);
  21110. HEAP32[$$sroa$6$0$$sroa_idx11>>2] = $$sroa$6$0;
  21111. $$sroa$7$0$$sroa_idx13 = ((($0)) + 8|0);
  21112. HEAP32[$$sroa$7$0$$sroa_idx13>>2] = $$sroa$7$0;
  21113. $$sroa$8$0$$sroa_idx15 = ((($0)) + 12|0);
  21114. HEAP32[$$sroa$8$0$$sroa_idx15>>2] = $$sroa$8$0;
  21115. $$sroa$9$0$$sroa_idx17 = ((($0)) + 16|0);
  21116. HEAP32[$$sroa$9$0$$sroa_idx17>>2] = $$sroa$9$0;
  21117. STACKTOP = sp;return;
  21118. }
  21119. function _DrawText($0,$1,$2,$3,$4) {
  21120. $0 = $0|0;
  21121. $1 = $1|0;
  21122. $2 = $2|0;
  21123. $3 = $3|0;
  21124. $4 = $4|0;
  21125. 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;
  21126. sp = STACKTOP;
  21127. STACKTOP = STACKTOP + 128|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(128|0);
  21128. $$byval_copy2 = sp + 112|0;
  21129. $$byval_copy1 = sp + 104|0;
  21130. $$byval_copy = sp + 72|0;
  21131. $5 = sp + 32|0;
  21132. $6 = sp + 64|0;
  21133. $7 = sp;
  21134. _GetDefaultFont($5);
  21135. $8 = HEAP32[$5>>2]|0;
  21136. $9 = ($8|0)==(0);
  21137. if ($9) {
  21138. STACKTOP = sp;return;
  21139. }
  21140. $10 = (+($1|0));
  21141. HEAPF32[$6>>2] = $10;
  21142. $11 = ((($6)) + 4|0);
  21143. $12 = (+($2|0));
  21144. HEAPF32[$11>>2] = $12;
  21145. $13 = ($3|0)>(10);
  21146. $$ = $13 ? $3 : 10;
  21147. $14 = (($$>>>0) / 10)&-1;
  21148. _GetDefaultFont($7);
  21149. $15 = (+($$|0));
  21150. ;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;
  21151. ;HEAP32[$$byval_copy1>>2]=HEAP32[$6>>2]|0;HEAP32[$$byval_copy1+4>>2]=HEAP32[$6+4>>2]|0;
  21152. ;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;
  21153. _DrawTextEx($$byval_copy,$0,$$byval_copy1,$15,$14,$$byval_copy2);
  21154. STACKTOP = sp;return;
  21155. }
  21156. function _DrawTextEx($0,$1,$2,$3,$4,$5) {
  21157. $0 = $0|0;
  21158. $1 = $1|0;
  21159. $2 = $2|0;
  21160. $3 = +$3;
  21161. $4 = $4|0;
  21162. $5 = $5|0;
  21163. 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;
  21164. var $17 = 0, $18 = 0, $19 = 0, $20 = 0, $21 = 0.0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0.0, $29 = 0.0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0;
  21165. 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;
  21166. 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;
  21167. 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;
  21168. sp = STACKTOP;
  21169. STACKTOP = STACKTOP + 128|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(128|0);
  21170. $$byval_copy5 = sp + 88|0;
  21171. $$byval_copy4 = sp + 80|0;
  21172. $$byval_copy3 = sp + 64|0;
  21173. $$byval_copy2 = sp + 48|0;
  21174. $$byval_copy1 = sp + 24|0;
  21175. $6 = sp + 8|0;
  21176. $7 = sp;
  21177. $8 = (_strlen($1)|0);
  21178. $9 = ((($0)) + 20|0);
  21179. $10 = HEAP32[$9>>2]|0;
  21180. $11 = (+($10|0));
  21181. $12 = $3 / $11;
  21182. $13 = ($8|0)>(0);
  21183. if (!($13)) {
  21184. STACKTOP = sp;return;
  21185. }
  21186. $14 = ((($0)) + 28|0);
  21187. $15 = +HEAPF32[$2>>2];
  21188. $16 = ((($6)) + 4|0);
  21189. $17 = ((($2)) + 4|0);
  21190. $18 = ((($6)) + 8|0);
  21191. $19 = ((($6)) + 12|0);
  21192. $20 = ((($7)) + 4|0);
  21193. $21 = (+($4|0));
  21194. $$04954 = 0;$$05153 = 0;$$055 = 0;
  21195. while(1) {
  21196. $22 = (($1) + ($$055)|0);
  21197. $23 = HEAP8[$22>>0]|0;
  21198. $24 = $23&255;
  21199. switch ($23<<24>>24) {
  21200. case 10: {
  21201. $25 = HEAP32[$9>>2]|0;
  21202. $26 = (($25|0) / 2)&-1;
  21203. $27 = (($26) + ($25))|0;
  21204. $28 = (+($27|0));
  21205. $29 = $12 * $28;
  21206. $30 = (~~(($29)));
  21207. $31 = (($30) + ($$05153))|0;
  21208. $$150 = 0;$$152 = $31;$$2 = $$055;
  21209. break;
  21210. }
  21211. case -62: {
  21212. $32 = (($$055) + 1)|0;
  21213. $33 = (($1) + ($32)|0);
  21214. $34 = HEAP8[$33>>0]|0;
  21215. $35 = $34&255;
  21216. $$1 = $32;$$sink = $35;
  21217. label = 8;
  21218. break;
  21219. }
  21220. case -61: {
  21221. $36 = (($$055) + 1)|0;
  21222. $37 = (($1) + ($36)|0);
  21223. $38 = HEAP8[$37>>0]|0;
  21224. $39 = $38&255;
  21225. $40 = (($39) + 64)|0;
  21226. $$1 = $36;$$sink = $40;
  21227. label = 8;
  21228. break;
  21229. }
  21230. default: {
  21231. $$1 = $$055;$$sink = $24;
  21232. label = 8;
  21233. }
  21234. }
  21235. do {
  21236. if ((label|0) == 8) {
  21237. label = 0;
  21238. ;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;
  21239. $41 = (_GetCharIndex($$byval_copy5,$$sink)|0);
  21240. $42 = HEAP32[$14>>2]|0;
  21241. $43 = (((($42) + ($41<<5)|0)) + 4|0);
  21242. $44 = (+($$04954|0));
  21243. $45 = $44 + $15;
  21244. $46 = (((($42) + ($41<<5)|0)) + 20|0);
  21245. $47 = HEAP32[$46>>2]|0;
  21246. $48 = (+($47|0));
  21247. $49 = $12 * $48;
  21248. $50 = $45 + $49;
  21249. $51 = (~~(($50)));
  21250. HEAP32[$6>>2] = $51;
  21251. $52 = +HEAPF32[$17>>2];
  21252. $53 = (+($$05153|0));
  21253. $54 = $53 + $52;
  21254. $55 = (((($42) + ($41<<5)|0)) + 24|0);
  21255. $56 = HEAP32[$55>>2]|0;
  21256. $57 = (+($56|0));
  21257. $58 = $12 * $57;
  21258. $59 = $54 + $58;
  21259. $60 = (~~(($59)));
  21260. HEAP32[$16>>2] = $60;
  21261. $61 = (((($42) + ($41<<5)|0)) + 12|0);
  21262. $62 = HEAP32[$61>>2]|0;
  21263. $63 = (+($62|0));
  21264. $64 = $12 * $63;
  21265. $65 = (~~(($64)));
  21266. HEAP32[$18>>2] = $65;
  21267. $66 = (((($42) + ($41<<5)|0)) + 16|0);
  21268. $67 = HEAP32[$66>>2]|0;
  21269. $68 = (+($67|0));
  21270. $69 = $12 * $68;
  21271. $70 = (~~(($69)));
  21272. HEAP32[$19>>2] = $70;
  21273. HEAPF32[$7>>2] = 0.0;
  21274. HEAPF32[$20>>2] = 0.0;
  21275. ;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;
  21276. ;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;
  21277. ;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;
  21278. ;HEAP32[$$byval_copy4>>2]=HEAP32[$7>>2]|0;HEAP32[$$byval_copy4+4>>2]=HEAP32[$7+4>>2]|0;
  21279. ;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;
  21280. _DrawTexturePro($$byval_copy1,$$byval_copy2,$$byval_copy3,$$byval_copy4,0.0,$$byval_copy5);
  21281. $71 = HEAP32[$14>>2]|0;
  21282. $72 = (((($71) + ($41<<5)|0)) + 28|0);
  21283. $73 = HEAP32[$72>>2]|0;
  21284. $74 = ($73|0)==(0);
  21285. if ($74) {
  21286. $75 = (((($71) + ($41<<5)|0)) + 12|0);
  21287. $76 = HEAP32[$75>>2]|0;
  21288. $77 = (+($76|0));
  21289. $78 = $12 * $77;
  21290. $79 = $21 + $78;
  21291. $80 = (~~(($79)));
  21292. $81 = (($80) + ($$04954))|0;
  21293. $$150 = $81;$$152 = $$05153;$$2 = $$1;
  21294. break;
  21295. } else {
  21296. $82 = (+($73|0));
  21297. $83 = $12 * $82;
  21298. $84 = $21 + $83;
  21299. $85 = (~~(($84)));
  21300. $86 = (($85) + ($$04954))|0;
  21301. $$150 = $86;$$152 = $$05153;$$2 = $$1;
  21302. break;
  21303. }
  21304. }
  21305. } while(0);
  21306. $87 = (($$2) + 1)|0;
  21307. $88 = ($87|0)<($8|0);
  21308. if ($88) {
  21309. $$04954 = $$150;$$05153 = $$152;$$055 = $87;
  21310. } else {
  21311. break;
  21312. }
  21313. }
  21314. STACKTOP = sp;return;
  21315. }
  21316. function _GetCharIndex($0,$1) {
  21317. $0 = $0|0;
  21318. $1 = $1|0;
  21319. 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;
  21320. sp = STACKTOP;
  21321. $2 = ((($0)) + 24|0);
  21322. $3 = HEAP32[$2>>2]|0;
  21323. $4 = ($3|0)>(0);
  21324. if (!($4)) {
  21325. $$08 = 0;
  21326. return ($$08|0);
  21327. }
  21328. $5 = ((($0)) + 28|0);
  21329. $6 = HEAP32[$5>>2]|0;
  21330. $$09 = 0;
  21331. while(1) {
  21332. $7 = (($6) + ($$09<<5)|0);
  21333. $8 = HEAP32[$7>>2]|0;
  21334. $9 = ($8|0)==($1|0);
  21335. if ($9) {
  21336. $$08 = $$09;
  21337. label = 5;
  21338. break;
  21339. }
  21340. $10 = (($$09) + 1)|0;
  21341. $11 = HEAP32[$2>>2]|0;
  21342. $12 = ($10|0)<($11|0);
  21343. if ($12) {
  21344. $$09 = $10;
  21345. } else {
  21346. $$08 = 0;
  21347. label = 5;
  21348. break;
  21349. }
  21350. }
  21351. if ((label|0) == 5) {
  21352. return ($$08|0);
  21353. }
  21354. return (0)|0;
  21355. }
  21356. function _DrawTexturePro($0,$1,$2,$3,$4,$5) {
  21357. $0 = $0|0;
  21358. $1 = $1|0;
  21359. $2 = $2|0;
  21360. $3 = $3|0;
  21361. $4 = +$4;
  21362. $5 = $5|0;
  21363. 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;
  21364. 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;
  21365. 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;
  21366. 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;
  21367. 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;
  21368. sp = STACKTOP;
  21369. $6 = HEAP32[$0>>2]|0;
  21370. $7 = ($6|0)==(0);
  21371. if ($7) {
  21372. return;
  21373. }
  21374. $8 = ((($1)) + 8|0);
  21375. $9 = HEAP32[$8>>2]|0;
  21376. $10 = ($9|0)<(0);
  21377. if ($10) {
  21378. $11 = HEAP32[$1>>2]|0;
  21379. $12 = (($11) - ($9))|0;
  21380. HEAP32[$1>>2] = $12;
  21381. }
  21382. $13 = ((($1)) + 12|0);
  21383. $14 = HEAP32[$13>>2]|0;
  21384. $15 = ($14|0)<(0);
  21385. if ($15) {
  21386. $16 = ((($1)) + 4|0);
  21387. $17 = HEAP32[$16>>2]|0;
  21388. $18 = (($17) - ($14))|0;
  21389. HEAP32[$16>>2] = $18;
  21390. }
  21391. $19 = HEAP32[$0>>2]|0;
  21392. _rlEnableTexture($19);
  21393. _rlPushMatrix();
  21394. $20 = HEAP32[$2>>2]|0;
  21395. $21 = (+($20|0));
  21396. $22 = ((($2)) + 4|0);
  21397. $23 = HEAP32[$22>>2]|0;
  21398. $24 = (+($23|0));
  21399. _rlTranslatef($21,$24,0.0);
  21400. _rlRotatef($4,0.0,0.0,1.0);
  21401. $25 = +HEAPF32[$3>>2];
  21402. $26 = -$25;
  21403. $27 = ((($3)) + 4|0);
  21404. $28 = +HEAPF32[$27>>2];
  21405. $29 = -$28;
  21406. _rlTranslatef($26,$29,0.0);
  21407. _rlBegin(7);
  21408. $30 = HEAP8[$5>>0]|0;
  21409. $31 = ((($5)) + 1|0);
  21410. $32 = HEAP8[$31>>0]|0;
  21411. $33 = ((($5)) + 2|0);
  21412. $34 = HEAP8[$33>>0]|0;
  21413. $35 = ((($5)) + 3|0);
  21414. $36 = HEAP8[$35>>0]|0;
  21415. _rlColor4ub($30,$32,$34,$36);
  21416. $37 = HEAP32[$1>>2]|0;
  21417. $38 = (+($37|0));
  21418. $39 = ((($0)) + 4|0);
  21419. $40 = HEAP32[$39>>2]|0;
  21420. $41 = (+($40|0));
  21421. $42 = $38 / $41;
  21422. $43 = ((($1)) + 4|0);
  21423. $44 = HEAP32[$43>>2]|0;
  21424. $45 = (+($44|0));
  21425. $46 = ((($0)) + 8|0);
  21426. $47 = HEAP32[$46>>2]|0;
  21427. $48 = (+($47|0));
  21428. $49 = $45 / $48;
  21429. _rlTexCoord2f($42,$49);
  21430. _rlVertex2f(0.0,0.0);
  21431. $50 = HEAP32[$1>>2]|0;
  21432. $51 = (+($50|0));
  21433. $52 = HEAP32[$39>>2]|0;
  21434. $53 = (+($52|0));
  21435. $54 = $51 / $53;
  21436. $55 = HEAP32[$43>>2]|0;
  21437. $56 = HEAP32[$13>>2]|0;
  21438. $57 = (($56) + ($55))|0;
  21439. $58 = (+($57|0));
  21440. $59 = HEAP32[$46>>2]|0;
  21441. $60 = (+($59|0));
  21442. $61 = $58 / $60;
  21443. _rlTexCoord2f($54,$61);
  21444. $62 = ((($2)) + 12|0);
  21445. $63 = HEAP32[$62>>2]|0;
  21446. $64 = (+($63|0));
  21447. _rlVertex2f(0.0,$64);
  21448. $65 = HEAP32[$1>>2]|0;
  21449. $66 = HEAP32[$8>>2]|0;
  21450. $67 = (($66) + ($65))|0;
  21451. $68 = (+($67|0));
  21452. $69 = HEAP32[$39>>2]|0;
  21453. $70 = (+($69|0));
  21454. $71 = $68 / $70;
  21455. $72 = HEAP32[$43>>2]|0;
  21456. $73 = HEAP32[$13>>2]|0;
  21457. $74 = (($73) + ($72))|0;
  21458. $75 = (+($74|0));
  21459. $76 = HEAP32[$46>>2]|0;
  21460. $77 = (+($76|0));
  21461. $78 = $75 / $77;
  21462. _rlTexCoord2f($71,$78);
  21463. $79 = ((($2)) + 8|0);
  21464. $80 = HEAP32[$79>>2]|0;
  21465. $81 = (+($80|0));
  21466. $82 = HEAP32[$62>>2]|0;
  21467. $83 = (+($82|0));
  21468. _rlVertex2f($81,$83);
  21469. $84 = HEAP32[$1>>2]|0;
  21470. $85 = HEAP32[$8>>2]|0;
  21471. $86 = (($85) + ($84))|0;
  21472. $87 = (+($86|0));
  21473. $88 = HEAP32[$39>>2]|0;
  21474. $89 = (+($88|0));
  21475. $90 = $87 / $89;
  21476. $91 = HEAP32[$43>>2]|0;
  21477. $92 = (+($91|0));
  21478. $93 = HEAP32[$46>>2]|0;
  21479. $94 = (+($93|0));
  21480. $95 = $92 / $94;
  21481. _rlTexCoord2f($90,$95);
  21482. $96 = HEAP32[$79>>2]|0;
  21483. $97 = (+($96|0));
  21484. _rlVertex2f($97,0.0);
  21485. _rlEnd();
  21486. _rlPopMatrix();
  21487. _rlDisableTexture();
  21488. return;
  21489. }
  21490. function _rlEnableTexture($0) {
  21491. $0 = $0|0;
  21492. 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;
  21493. sp = STACKTOP;
  21494. $1 = HEAP32[5220]|0;
  21495. $2 = HEAP32[5218]|0;
  21496. $3 = (($2) + -1)|0;
  21497. $4 = (((($1) + (($3*144)|0)|0)) + 8|0);
  21498. $5 = HEAP32[$4>>2]|0;
  21499. $6 = ($5|0)==($0|0);
  21500. if ($6) {
  21501. return;
  21502. }
  21503. $7 = (($1) + (($3*144)|0)|0);
  21504. $8 = HEAP32[$7>>2]|0;
  21505. $9 = ($8|0)>(0);
  21506. if ($9) {
  21507. $10 = (($2) + 1)|0;
  21508. HEAP32[5218] = $10;
  21509. }
  21510. $11 = HEAP32[5218]|0;
  21511. $12 = (($11) + -1)|0;
  21512. $13 = (((($1) + (($12*144)|0)|0)) + 8|0);
  21513. HEAP32[$13>>2] = $0;
  21514. $14 = (($1) + (($12*144)|0)|0);
  21515. HEAP32[$14>>2] = 0;
  21516. return;
  21517. }
  21518. function _rlPushMatrix() {
  21519. 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;
  21520. sp = STACKTOP;
  21521. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  21522. $vararg_buffer = sp;
  21523. $0 = HEAP32[5368]|0;
  21524. $1 = ($0|0)==(15);
  21525. if ($1) {
  21526. HEAP32[$vararg_buffer>>2] = 16;
  21527. _TraceLog(2,8301,$vararg_buffer);
  21528. }
  21529. $2 = HEAP32[5368]|0;
  21530. $3 = (21476 + ($2<<6)|0);
  21531. $4 = HEAP32[5625]|0;
  21532. 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));
  21533. _rlLoadIdentity();
  21534. $5 = HEAP32[5368]|0;
  21535. $6 = (($5) + 1)|0;
  21536. HEAP32[5368] = $6;
  21537. $7 = HEAP32[5630]|0;
  21538. $8 = ($7|0)==(5888);
  21539. if (!($8)) {
  21540. STACKTOP = sp;return;
  21541. }
  21542. HEAP32[5626] = 1;
  21543. STACKTOP = sp;return;
  21544. }
  21545. function _rlTranslatef($0,$1,$2) {
  21546. $0 = +$0;
  21547. $1 = +$1;
  21548. $2 = +$2;
  21549. var $$byval_copy = 0, $$byval_copy1 = 0, $3 = 0, $4 = 0, $5 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  21550. sp = STACKTOP;
  21551. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  21552. $$byval_copy1 = sp + 192|0;
  21553. $$byval_copy = sp + 128|0;
  21554. $3 = sp + 64|0;
  21555. $4 = sp;
  21556. _MatrixTranslate($3,$0,$1,$2);
  21557. _MatrixTranspose($3);
  21558. $5 = HEAP32[5625]|0;
  21559. 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));
  21560. 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));
  21561. _MatrixMultiply($4,$$byval_copy,$$byval_copy1);
  21562. 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));
  21563. STACKTOP = sp;return;
  21564. }
  21565. function _rlRotatef($0,$1,$2,$3) {
  21566. $0 = +$0;
  21567. $1 = +$1;
  21568. $2 = +$2;
  21569. $3 = +$3;
  21570. 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;
  21571. sp = STACKTOP;
  21572. STACKTOP = STACKTOP + 336|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(336|0);
  21573. $$byval_copy2 = sp + 272|0;
  21574. $$byval_copy1 = sp + 208|0;
  21575. $4 = sp + 144|0;
  21576. $5 = sp + 64|0;
  21577. $6 = sp + 80|0;
  21578. $7 = sp;
  21579. _MatrixIdentity($4);
  21580. HEAPF32[$5>>2] = $1;
  21581. $8 = ((($5)) + 4|0);
  21582. HEAPF32[$8>>2] = $2;
  21583. $9 = ((($5)) + 8|0);
  21584. HEAPF32[$9>>2] = $3;
  21585. _VectorNormalize($5);
  21586. $10 = $0 * 0.01745329238474369;
  21587. ;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;
  21588. _MatrixRotate($6,$$byval_copy2,$10);
  21589. 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));
  21590. _MatrixTranspose($4);
  21591. $11 = HEAP32[5625]|0;
  21592. 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));
  21593. 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));
  21594. _MatrixMultiply($7,$$byval_copy1,$$byval_copy2);
  21595. 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));
  21596. STACKTOP = sp;return;
  21597. }
  21598. function _rlBegin($0) {
  21599. $0 = $0|0;
  21600. var label = 0, sp = 0;
  21601. sp = STACKTOP;
  21602. HEAP32[5629] = $0;
  21603. return;
  21604. }
  21605. function _rlColor4ub($0,$1,$2,$3) {
  21606. $0 = $0|0;
  21607. $1 = $1|0;
  21608. $2 = $2|0;
  21609. $3 = $3|0;
  21610. 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;
  21611. var $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  21612. sp = STACKTOP;
  21613. $4 = HEAP32[5629]|0;
  21614. switch ($4|0) {
  21615. case 1: {
  21616. $$sink37 = (20892);$$sink38 = (20904);
  21617. break;
  21618. }
  21619. case 4: {
  21620. $$sink37 = (20940);$$sink38 = (20952);
  21621. break;
  21622. }
  21623. case 7: {
  21624. $$sink37 = (20700);$$sink38 = (20712);
  21625. break;
  21626. }
  21627. default: {
  21628. return;
  21629. }
  21630. }
  21631. $5 = HEAP32[$$sink38>>2]|0;
  21632. $6 = HEAP32[$$sink37>>2]|0;
  21633. $7 = $6 << 2;
  21634. $8 = (($5) + ($7)|0);
  21635. HEAP8[$8>>0] = $0;
  21636. $9 = HEAP32[$$sink38>>2]|0;
  21637. $10 = HEAP32[$$sink37>>2]|0;
  21638. $11 = $10 << 2;
  21639. $12 = $11 | 1;
  21640. $13 = (($9) + ($12)|0);
  21641. HEAP8[$13>>0] = $1;
  21642. $14 = HEAP32[$$sink38>>2]|0;
  21643. $15 = HEAP32[$$sink37>>2]|0;
  21644. $16 = $15 << 2;
  21645. $17 = $16 | 2;
  21646. $18 = (($14) + ($17)|0);
  21647. HEAP8[$18>>0] = $2;
  21648. $19 = HEAP32[$$sink38>>2]|0;
  21649. $20 = HEAP32[$$sink37>>2]|0;
  21650. $21 = $20 << 2;
  21651. $22 = $21 | 3;
  21652. $23 = (($19) + ($22)|0);
  21653. HEAP8[$23>>0] = $3;
  21654. $24 = HEAP32[$$sink37>>2]|0;
  21655. $25 = (($24) + 1)|0;
  21656. HEAP32[$$sink37>>2] = $25;
  21657. return;
  21658. }
  21659. function _rlNormal3f($0,$1,$2) {
  21660. $0 = +$0;
  21661. $1 = +$1;
  21662. $2 = +$2;
  21663. var label = 0, sp = 0;
  21664. sp = STACKTOP;
  21665. return;
  21666. }
  21667. function _rlTexCoord2f($0,$1) {
  21668. $0 = +$0;
  21669. $1 = +$1;
  21670. var $10 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  21671. sp = STACKTOP;
  21672. $2 = HEAP32[5629]|0;
  21673. $3 = ($2|0)==(7);
  21674. if (!($3)) {
  21675. return;
  21676. }
  21677. $4 = HEAP32[(20708)>>2]|0;
  21678. $5 = HEAP32[(20696)>>2]|0;
  21679. $6 = $5 << 1;
  21680. $7 = (($4) + ($6<<2)|0);
  21681. HEAPF32[$7>>2] = $0;
  21682. $8 = $6 | 1;
  21683. $9 = (($4) + ($8<<2)|0);
  21684. HEAPF32[$9>>2] = $1;
  21685. $10 = (($5) + 1)|0;
  21686. HEAP32[(20696)>>2] = $10;
  21687. return;
  21688. }
  21689. function _rlVertex2f($0,$1) {
  21690. $0 = +$0;
  21691. $1 = +$1;
  21692. var $2 = 0.0, label = 0, sp = 0;
  21693. sp = STACKTOP;
  21694. $2 = +HEAPF32[926];
  21695. _rlVertex3f($0,$1,$2);
  21696. return;
  21697. }
  21698. function _rlEnd() {
  21699. 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;
  21700. 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;
  21701. 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;
  21702. 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;
  21703. 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;
  21704. 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;
  21705. 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;
  21706. 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;
  21707. var $scevgep = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  21708. sp = STACKTOP;
  21709. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  21710. $$byval_copy = sp;
  21711. $0 = HEAP32[5626]|0;
  21712. $1 = ($0|0)==(0);
  21713. if (!($1)) {
  21714. $2 = HEAP32[5627]|0;
  21715. $3 = ($2|0)>(0);
  21716. if ($3) {
  21717. $$03956 = 0;
  21718. while(1) {
  21719. $6 = HEAP32[5628]|0;
  21720. $7 = (($6) + (($$03956*12)|0)|0);
  21721. $8 = HEAP32[5625]|0;
  21722. 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));
  21723. _VectorTransform($7,$$byval_copy);
  21724. $9 = (($$03956) + 1)|0;
  21725. $5 = HEAP32[5627]|0;
  21726. $10 = ($9|0)<($5|0);
  21727. if ($10) {
  21728. $$03956 = $9;
  21729. } else {
  21730. break;
  21731. }
  21732. }
  21733. HEAP32[5626] = 0;
  21734. $4 = ($5|0)>(0);
  21735. if ($4) {
  21736. $$04154 = 0;
  21737. while(1) {
  21738. $11 = HEAP32[5628]|0;
  21739. $12 = (($11) + (($$04154*12)|0)|0);
  21740. $13 = +HEAPF32[$12>>2];
  21741. $14 = (((($11) + (($$04154*12)|0)|0)) + 4|0);
  21742. $15 = +HEAPF32[$14>>2];
  21743. $16 = (((($11) + (($$04154*12)|0)|0)) + 8|0);
  21744. $17 = +HEAPF32[$16>>2];
  21745. _rlVertex3f($13,$15,$17);
  21746. $18 = (($$04154) + 1)|0;
  21747. $19 = HEAP32[5627]|0;
  21748. $20 = ($18|0)<($19|0);
  21749. if ($20) {
  21750. $$04154 = $18;
  21751. } else {
  21752. break;
  21753. }
  21754. }
  21755. }
  21756. } else {
  21757. HEAP32[5626] = 0;
  21758. }
  21759. HEAP32[5627] = 0;
  21760. }
  21761. $21 = HEAP32[5629]|0;
  21762. switch ($21|0) {
  21763. case 1: {
  21764. $22 = HEAP32[5221]|0;
  21765. $23 = HEAP32[(20892)>>2]|0;
  21766. $24 = ($22|0)==($23|0);
  21767. if ($24) {
  21768. $148 = +HEAPF32[926];
  21769. $149 = $148 + 4.9999998736893758E-5;
  21770. HEAPF32[926] = $149;
  21771. STACKTOP = sp;return;
  21772. }
  21773. $25 = (($22) - ($23))|0;
  21774. $26 = ($25|0)>(0);
  21775. if ($26) {
  21776. $$04347 = 0;
  21777. } else {
  21778. $148 = +HEAPF32[926];
  21779. $149 = $148 + 4.9999998736893758E-5;
  21780. HEAPF32[926] = $149;
  21781. STACKTOP = sp;return;
  21782. }
  21783. while(1) {
  21784. $27 = HEAP32[(20904)>>2]|0;
  21785. $28 = HEAP32[(20892)>>2]|0;
  21786. $29 = $28 << 2;
  21787. $30 = (($29) + -4)|0;
  21788. $31 = (($27) + ($30)|0);
  21789. $32 = HEAP8[$31>>0]|0;
  21790. $33 = (($27) + ($29)|0);
  21791. HEAP8[$33>>0] = $32;
  21792. $34 = HEAP32[(20904)>>2]|0;
  21793. $35 = HEAP32[(20892)>>2]|0;
  21794. $36 = $35 << 2;
  21795. $37 = (($36) + -3)|0;
  21796. $38 = (($34) + ($37)|0);
  21797. $39 = HEAP8[$38>>0]|0;
  21798. $40 = $36 | 1;
  21799. $41 = (($34) + ($40)|0);
  21800. HEAP8[$41>>0] = $39;
  21801. $42 = HEAP32[(20904)>>2]|0;
  21802. $43 = HEAP32[(20892)>>2]|0;
  21803. $44 = $43 << 2;
  21804. $45 = (($44) + -2)|0;
  21805. $46 = (($42) + ($45)|0);
  21806. $47 = HEAP8[$46>>0]|0;
  21807. $48 = $44 | 2;
  21808. $49 = (($42) + ($48)|0);
  21809. HEAP8[$49>>0] = $47;
  21810. $50 = HEAP32[(20904)>>2]|0;
  21811. $51 = HEAP32[(20892)>>2]|0;
  21812. $52 = $51 << 2;
  21813. $53 = (($52) + -1)|0;
  21814. $54 = (($50) + ($53)|0);
  21815. $55 = HEAP8[$54>>0]|0;
  21816. $56 = $52 | 3;
  21817. $57 = (($50) + ($56)|0);
  21818. HEAP8[$57>>0] = $55;
  21819. $58 = HEAP32[(20892)>>2]|0;
  21820. $59 = (($58) + 1)|0;
  21821. HEAP32[(20892)>>2] = $59;
  21822. $60 = (($$04347) + 1)|0;
  21823. $exitcond = ($60|0)==($25|0);
  21824. if ($exitcond) {
  21825. break;
  21826. } else {
  21827. $$04347 = $60;
  21828. }
  21829. }
  21830. $148 = +HEAPF32[926];
  21831. $149 = $148 + 4.9999998736893758E-5;
  21832. HEAPF32[926] = $149;
  21833. STACKTOP = sp;return;
  21834. break;
  21835. }
  21836. case 4: {
  21837. $61 = HEAP32[5233]|0;
  21838. $62 = HEAP32[(20940)>>2]|0;
  21839. $63 = ($61|0)==($62|0);
  21840. if ($63) {
  21841. $148 = +HEAPF32[926];
  21842. $149 = $148 + 4.9999998736893758E-5;
  21843. HEAPF32[926] = $149;
  21844. STACKTOP = sp;return;
  21845. }
  21846. $64 = (($61) - ($62))|0;
  21847. $65 = ($64|0)>(0);
  21848. if ($65) {
  21849. $$04248 = 0;
  21850. } else {
  21851. $148 = +HEAPF32[926];
  21852. $149 = $148 + 4.9999998736893758E-5;
  21853. HEAPF32[926] = $149;
  21854. STACKTOP = sp;return;
  21855. }
  21856. while(1) {
  21857. $66 = HEAP32[(20952)>>2]|0;
  21858. $67 = HEAP32[(20940)>>2]|0;
  21859. $68 = $67 << 2;
  21860. $69 = (($68) + -4)|0;
  21861. $70 = (($66) + ($69)|0);
  21862. $71 = HEAP8[$70>>0]|0;
  21863. $72 = (($66) + ($68)|0);
  21864. HEAP8[$72>>0] = $71;
  21865. $73 = HEAP32[(20952)>>2]|0;
  21866. $74 = HEAP32[(20940)>>2]|0;
  21867. $75 = $74 << 2;
  21868. $76 = (($75) + -3)|0;
  21869. $77 = (($73) + ($76)|0);
  21870. $78 = HEAP8[$77>>0]|0;
  21871. $79 = $75 | 1;
  21872. $80 = (($73) + ($79)|0);
  21873. HEAP8[$80>>0] = $78;
  21874. $81 = HEAP32[(20952)>>2]|0;
  21875. $82 = HEAP32[(20940)>>2]|0;
  21876. $83 = $82 << 2;
  21877. $84 = (($83) + -2)|0;
  21878. $85 = (($81) + ($84)|0);
  21879. $86 = HEAP8[$85>>0]|0;
  21880. $87 = $83 | 2;
  21881. $88 = (($81) + ($87)|0);
  21882. HEAP8[$88>>0] = $86;
  21883. $89 = HEAP32[(20952)>>2]|0;
  21884. $90 = HEAP32[(20940)>>2]|0;
  21885. $91 = $90 << 2;
  21886. $92 = (($91) + -1)|0;
  21887. $93 = (($89) + ($92)|0);
  21888. $94 = HEAP8[$93>>0]|0;
  21889. $95 = $91 | 3;
  21890. $96 = (($89) + ($95)|0);
  21891. HEAP8[$96>>0] = $94;
  21892. $97 = HEAP32[(20940)>>2]|0;
  21893. $98 = (($97) + 1)|0;
  21894. HEAP32[(20940)>>2] = $98;
  21895. $99 = (($$04248) + 1)|0;
  21896. $exitcond60 = ($99|0)==($64|0);
  21897. if ($exitcond60) {
  21898. break;
  21899. } else {
  21900. $$04248 = $99;
  21901. }
  21902. }
  21903. $148 = +HEAPF32[926];
  21904. $149 = $148 + 4.9999998736893758E-5;
  21905. HEAPF32[926] = $149;
  21906. STACKTOP = sp;return;
  21907. break;
  21908. }
  21909. case 7: {
  21910. $100 = HEAP32[5173]|0;
  21911. $101 = HEAP32[(20700)>>2]|0;
  21912. $102 = ($100|0)==($101|0);
  21913. if (!($102)) {
  21914. $103 = (($100) - ($101))|0;
  21915. $104 = ($103|0)>(0);
  21916. if ($104) {
  21917. $$04052 = 0;
  21918. while(1) {
  21919. $105 = HEAP32[(20712)>>2]|0;
  21920. $106 = HEAP32[(20700)>>2]|0;
  21921. $107 = $106 << 2;
  21922. $108 = (($107) + -4)|0;
  21923. $109 = (($105) + ($108)|0);
  21924. $110 = HEAP8[$109>>0]|0;
  21925. $111 = (($105) + ($107)|0);
  21926. HEAP8[$111>>0] = $110;
  21927. $112 = HEAP32[(20712)>>2]|0;
  21928. $113 = HEAP32[(20700)>>2]|0;
  21929. $114 = $113 << 2;
  21930. $115 = (($114) + -3)|0;
  21931. $116 = (($112) + ($115)|0);
  21932. $117 = HEAP8[$116>>0]|0;
  21933. $118 = $114 | 1;
  21934. $119 = (($112) + ($118)|0);
  21935. HEAP8[$119>>0] = $117;
  21936. $120 = HEAP32[(20712)>>2]|0;
  21937. $121 = HEAP32[(20700)>>2]|0;
  21938. $122 = $121 << 2;
  21939. $123 = (($122) + -2)|0;
  21940. $124 = (($120) + ($123)|0);
  21941. $125 = HEAP8[$124>>0]|0;
  21942. $126 = $122 | 2;
  21943. $127 = (($120) + ($126)|0);
  21944. HEAP8[$127>>0] = $125;
  21945. $128 = HEAP32[(20712)>>2]|0;
  21946. $129 = HEAP32[(20700)>>2]|0;
  21947. $130 = $129 << 2;
  21948. $131 = (($130) + -1)|0;
  21949. $132 = (($128) + ($131)|0);
  21950. $133 = HEAP8[$132>>0]|0;
  21951. $134 = $130 | 3;
  21952. $135 = (($128) + ($134)|0);
  21953. HEAP8[$135>>0] = $133;
  21954. $136 = HEAP32[(20700)>>2]|0;
  21955. $137 = (($136) + 1)|0;
  21956. HEAP32[(20700)>>2] = $137;
  21957. $138 = (($$04052) + 1)|0;
  21958. $exitcond63 = ($138|0)==($103|0);
  21959. if ($exitcond63) {
  21960. break;
  21961. } else {
  21962. $$04052 = $138;
  21963. }
  21964. }
  21965. }
  21966. }
  21967. $139 = HEAP32[5173]|0;
  21968. $140 = HEAP32[(20696)>>2]|0;
  21969. $141 = ($139|0)>($140|0);
  21970. if (!($141)) {
  21971. $148 = +HEAPF32[926];
  21972. $149 = $148 + 4.9999998736893758E-5;
  21973. HEAPF32[926] = $149;
  21974. STACKTOP = sp;return;
  21975. }
  21976. $142 = HEAP32[(20708)>>2]|0;
  21977. $$promoted = HEAP32[(20696)>>2]|0;
  21978. $143 = $$promoted << 1;
  21979. $scevgep = (($142) + ($143<<2)|0);
  21980. $144 = (($139) - ($140))|0;
  21981. $145 = $144 << 3;
  21982. _memset(($scevgep|0),0,($145|0))|0;
  21983. $146 = (($139) + ($$promoted))|0;
  21984. $147 = (($146) - ($140))|0;
  21985. HEAP32[(20696)>>2] = $147;
  21986. $148 = +HEAPF32[926];
  21987. $149 = $148 + 4.9999998736893758E-5;
  21988. HEAPF32[926] = $149;
  21989. STACKTOP = sp;return;
  21990. break;
  21991. }
  21992. default: {
  21993. $148 = +HEAPF32[926];
  21994. $149 = $148 + 4.9999998736893758E-5;
  21995. HEAPF32[926] = $149;
  21996. STACKTOP = sp;return;
  21997. }
  21998. }
  21999. }
  22000. function _rlPopMatrix() {
  22001. var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  22002. sp = STACKTOP;
  22003. $0 = HEAP32[5368]|0;
  22004. $1 = ($0|0)>(0);
  22005. if (!($1)) {
  22006. return;
  22007. }
  22008. $2 = HEAP32[5368]|0;
  22009. $3 = (($2) + -1)|0;
  22010. $4 = (21476 + ($3<<6)|0);
  22011. $5 = HEAP32[5625]|0;
  22012. _memmove(($5|0),($4|0),64)|0;
  22013. $6 = (($2) + -1)|0;
  22014. HEAP32[5368] = $6;
  22015. return;
  22016. }
  22017. function _rlDisableTexture() {
  22018. var $0 = 0, $1 = 0, label = 0, sp = 0;
  22019. sp = STACKTOP;
  22020. $0 = HEAP32[5173]|0;
  22021. $1 = ($0|0)>(4095);
  22022. if (!($1)) {
  22023. return;
  22024. }
  22025. _rlglDraw();
  22026. return;
  22027. }
  22028. function _rlglDraw() {
  22029. var label = 0, sp = 0;
  22030. sp = STACKTOP;
  22031. _UpdateDefaultBuffers();
  22032. _DrawDefaultBuffers();
  22033. return;
  22034. }
  22035. function _UpdateDefaultBuffers() {
  22036. 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;
  22037. 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;
  22038. var $45 = 0, $46 = 0, $47 = 0, $48 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  22039. sp = STACKTOP;
  22040. $0 = HEAP32[5221]|0;
  22041. $1 = ($0|0)>(0);
  22042. if ($1) {
  22043. $2 = HEAP32[5259]|0;
  22044. $3 = ($2|0)==(0);
  22045. if (!($3)) {
  22046. $4 = HEAP32[5260]|0;
  22047. $5 = HEAP32[(20912)>>2]|0;
  22048. FUNCTION_TABLE_vi[$4 & 31]($5);
  22049. }
  22050. $6 = HEAP32[(20916)>>2]|0;
  22051. _glBindBuffer(34962,($6|0));
  22052. $7 = HEAP32[5221]|0;
  22053. $8 = ($7*12)|0;
  22054. $9 = HEAP32[(20896)>>2]|0;
  22055. _glBufferSubData(34962,0,($8|0),($9|0));
  22056. $10 = HEAP32[(20920)>>2]|0;
  22057. _glBindBuffer(34962,($10|0));
  22058. $11 = HEAP32[(20892)>>2]|0;
  22059. $12 = $11 << 2;
  22060. $13 = HEAP32[(20904)>>2]|0;
  22061. _glBufferSubData(34962,0,($12|0),($13|0));
  22062. }
  22063. $14 = HEAP32[5233]|0;
  22064. $15 = ($14|0)>(0);
  22065. if ($15) {
  22066. $16 = HEAP32[5259]|0;
  22067. $17 = ($16|0)==(0);
  22068. if (!($17)) {
  22069. $18 = HEAP32[5260]|0;
  22070. $19 = HEAP32[(20960)>>2]|0;
  22071. FUNCTION_TABLE_vi[$18 & 31]($19);
  22072. }
  22073. $20 = HEAP32[(20964)>>2]|0;
  22074. _glBindBuffer(34962,($20|0));
  22075. $21 = HEAP32[5233]|0;
  22076. $22 = ($21*12)|0;
  22077. $23 = HEAP32[(20944)>>2]|0;
  22078. _glBufferSubData(34962,0,($22|0),($23|0));
  22079. $24 = HEAP32[(20968)>>2]|0;
  22080. _glBindBuffer(34962,($24|0));
  22081. $25 = HEAP32[(20940)>>2]|0;
  22082. $26 = $25 << 2;
  22083. $27 = HEAP32[(20952)>>2]|0;
  22084. _glBufferSubData(34962,0,($26|0),($27|0));
  22085. }
  22086. $28 = HEAP32[5173]|0;
  22087. $29 = ($28|0)>(0);
  22088. if ($29) {
  22089. $30 = HEAP32[5259]|0;
  22090. $31 = ($30|0)==(0);
  22091. if (!($31)) {
  22092. $32 = HEAP32[5260]|0;
  22093. $33 = HEAP32[(20720)>>2]|0;
  22094. FUNCTION_TABLE_vi[$32 & 31]($33);
  22095. }
  22096. $34 = HEAP32[(20724)>>2]|0;
  22097. _glBindBuffer(34962,($34|0));
  22098. $35 = HEAP32[5173]|0;
  22099. $36 = ($35*12)|0;
  22100. $37 = HEAP32[(20704)>>2]|0;
  22101. _glBufferSubData(34962,0,($36|0),($37|0));
  22102. $38 = HEAP32[(20728)>>2]|0;
  22103. _glBindBuffer(34962,($38|0));
  22104. $39 = HEAP32[5173]|0;
  22105. $40 = $39 << 3;
  22106. $41 = HEAP32[(20708)>>2]|0;
  22107. _glBufferSubData(34962,0,($40|0),($41|0));
  22108. $42 = HEAP32[(20732)>>2]|0;
  22109. _glBindBuffer(34962,($42|0));
  22110. $43 = HEAP32[5173]|0;
  22111. $44 = $43 << 2;
  22112. $45 = HEAP32[(20712)>>2]|0;
  22113. _glBufferSubData(34962,0,($44|0),($45|0));
  22114. }
  22115. $46 = HEAP32[5259]|0;
  22116. $47 = ($46|0)==(0);
  22117. if ($47) {
  22118. return;
  22119. }
  22120. $48 = HEAP32[5260]|0;
  22121. FUNCTION_TABLE_vi[$48 & 31](0);
  22122. return;
  22123. }
  22124. function _DrawDefaultBuffers() {
  22125. 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;
  22126. 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;
  22127. 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;
  22128. 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;
  22129. 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;
  22130. var $or$cond = 0, $or$cond3 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  22131. sp = STACKTOP;
  22132. STACKTOP = STACKTOP + 320|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(320|0);
  22133. $$byval_copy2 = sp + 256|0;
  22134. $modelview$byval_copy = sp + 192|0;
  22135. $0 = sp + 128|0;
  22136. $1 = sp + 64|0;
  22137. $2 = sp;
  22138. dest=$0; src=20740; 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));
  22139. dest=$1; src=20804; 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));
  22140. $3 = HEAP32[5217]|0;
  22141. $4 = ($3|0)!=(0);
  22142. $$ = $4 ? 2 : 1;
  22143. $$02932 = 0;
  22144. while(1) {
  22145. if ($4) {
  22146. 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));
  22147. 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));
  22148. _SetStereoView($$02932,$modelview$byval_copy,$$byval_copy2);
  22149. }
  22150. $8 = HEAP32[5221]|0;
  22151. $9 = ($8|0)>(0);
  22152. $10 = HEAP32[5233]|0;
  22153. $11 = ($10|0)>(0);
  22154. $or$cond = $9 | $11;
  22155. $12 = HEAP32[5173]|0;
  22156. $13 = ($12|0)>(0);
  22157. $or$cond3 = $or$cond | $13;
  22158. if ($or$cond3) {
  22159. $14 = HEAP32[5245]|0;
  22160. _glUseProgram(($14|0));
  22161. dest=$modelview$byval_copy; src=20804; 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));
  22162. dest=$$byval_copy2; src=20740; 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));
  22163. _MatrixMultiply($2,$modelview$byval_copy,$$byval_copy2);
  22164. $15 = HEAP32[(21008)>>2]|0;
  22165. 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));
  22166. $16 = (_MatrixToFloat($$byval_copy2)|0);
  22167. _glUniformMatrix4fv(($15|0),1,0,($16|0));
  22168. $17 = HEAP32[(21012)>>2]|0;
  22169. _glUniform4f(($17|0),1.0,1.0,1.0,1.0);
  22170. $18 = HEAP32[(21024)>>2]|0;
  22171. _glUniform1i(($18|0),0);
  22172. }
  22173. $19 = HEAP32[5221]|0;
  22174. $20 = ($19|0)>(0);
  22175. if ($20) {
  22176. $21 = HEAP32[5219]|0;
  22177. _glBindTexture(3553,($21|0));
  22178. $22 = HEAP32[5259]|0;
  22179. $23 = ($22|0)==(0);
  22180. if ($23) {
  22181. $26 = HEAP32[(20916)>>2]|0;
  22182. _glBindBuffer(34962,($26|0));
  22183. $27 = HEAP32[(20984)>>2]|0;
  22184. _glVertexAttribPointer(($27|0),3,5126,0,0,(0|0));
  22185. $28 = HEAP32[(20984)>>2]|0;
  22186. _glEnableVertexAttribArray(($28|0));
  22187. $29 = HEAP32[(20920)>>2]|0;
  22188. _glBindBuffer(34962,($29|0));
  22189. $30 = HEAP32[(21004)>>2]|0;
  22190. _glVertexAttribPointer(($30|0),4,5121,1,0,(0|0));
  22191. $31 = HEAP32[(21004)>>2]|0;
  22192. _glEnableVertexAttribArray(($31|0));
  22193. } else {
  22194. $24 = HEAP32[5260]|0;
  22195. $25 = HEAP32[(20912)>>2]|0;
  22196. FUNCTION_TABLE_vi[$24 & 31]($25);
  22197. }
  22198. $32 = HEAP32[5221]|0;
  22199. _glDrawArrays(1,0,($32|0));
  22200. $33 = HEAP32[5259]|0;
  22201. $34 = ($33|0)==(0);
  22202. if ($34) {
  22203. _glBindBuffer(34962,0);
  22204. }
  22205. _glBindTexture(3553,0);
  22206. }
  22207. $35 = HEAP32[5233]|0;
  22208. $36 = ($35|0)>(0);
  22209. if ($36) {
  22210. $37 = HEAP32[5219]|0;
  22211. _glBindTexture(3553,($37|0));
  22212. $38 = HEAP32[5259]|0;
  22213. $39 = ($38|0)==(0);
  22214. if ($39) {
  22215. $42 = HEAP32[(20964)>>2]|0;
  22216. _glBindBuffer(34962,($42|0));
  22217. $43 = HEAP32[(20984)>>2]|0;
  22218. _glVertexAttribPointer(($43|0),3,5126,0,0,(0|0));
  22219. $44 = HEAP32[(20984)>>2]|0;
  22220. _glEnableVertexAttribArray(($44|0));
  22221. $45 = HEAP32[(20968)>>2]|0;
  22222. _glBindBuffer(34962,($45|0));
  22223. $46 = HEAP32[(21004)>>2]|0;
  22224. _glVertexAttribPointer(($46|0),4,5121,1,0,(0|0));
  22225. $47 = HEAP32[(21004)>>2]|0;
  22226. _glEnableVertexAttribArray(($47|0));
  22227. } else {
  22228. $40 = HEAP32[5260]|0;
  22229. $41 = HEAP32[(20960)>>2]|0;
  22230. FUNCTION_TABLE_vi[$40 & 31]($41);
  22231. }
  22232. $48 = HEAP32[5233]|0;
  22233. _glDrawArrays(4,0,($48|0));
  22234. $49 = HEAP32[5259]|0;
  22235. $50 = ($49|0)==(0);
  22236. if ($50) {
  22237. _glBindBuffer(34962,0);
  22238. }
  22239. _glBindTexture(3553,0);
  22240. }
  22241. $51 = HEAP32[5173]|0;
  22242. $52 = ($51|0)>(0);
  22243. if ($52) {
  22244. $53 = HEAP32[5259]|0;
  22245. $54 = ($53|0)==(0);
  22246. if ($54) {
  22247. $57 = HEAP32[(20724)>>2]|0;
  22248. _glBindBuffer(34962,($57|0));
  22249. $58 = HEAP32[(20984)>>2]|0;
  22250. _glVertexAttribPointer(($58|0),3,5126,0,0,(0|0));
  22251. $59 = HEAP32[(20984)>>2]|0;
  22252. _glEnableVertexAttribArray(($59|0));
  22253. $60 = HEAP32[(20728)>>2]|0;
  22254. _glBindBuffer(34962,($60|0));
  22255. $61 = HEAP32[(20988)>>2]|0;
  22256. _glVertexAttribPointer(($61|0),2,5126,0,0,(0|0));
  22257. $62 = HEAP32[(20988)>>2]|0;
  22258. _glEnableVertexAttribArray(($62|0));
  22259. $63 = HEAP32[(20732)>>2]|0;
  22260. _glBindBuffer(34962,($63|0));
  22261. $64 = HEAP32[(21004)>>2]|0;
  22262. _glVertexAttribPointer(($64|0),4,5121,1,0,(0|0));
  22263. $65 = HEAP32[(21004)>>2]|0;
  22264. _glEnableVertexAttribArray(($65|0));
  22265. $66 = HEAP32[(20736)>>2]|0;
  22266. _glBindBuffer(34963,($66|0));
  22267. } else {
  22268. $55 = HEAP32[5260]|0;
  22269. $56 = HEAP32[(20720)>>2]|0;
  22270. FUNCTION_TABLE_vi[$55 & 31]($56);
  22271. }
  22272. $67 = HEAP32[5218]|0;
  22273. $68 = ($67|0)>(0);
  22274. if ($68) {
  22275. $$02830 = 0;$$031 = 0;
  22276. while(1) {
  22277. $71 = HEAP32[5220]|0;
  22278. $72 = (($71) + (($$031*144)|0)|0);
  22279. $73 = HEAP32[$72>>2]|0;
  22280. $74 = (($73|0) / 4)&-1;
  22281. $75 = ($74*6)|0;
  22282. $76 = (((($71) + (($$031*144)|0)|0)) + 8|0);
  22283. $77 = HEAP32[$76>>2]|0;
  22284. _glBindTexture(3553,($77|0));
  22285. $78 = $$02830 << 1;
  22286. $79 = $78;
  22287. _glDrawElements(4,($75|0),5123,($79|0));
  22288. $80 = HEAP32[5220]|0;
  22289. $81 = (($80) + (($$031*144)|0)|0);
  22290. $82 = HEAP32[$81>>2]|0;
  22291. $83 = (($82|0) / 4)&-1;
  22292. $84 = ($83*6)|0;
  22293. $85 = (($84) + ($$02830))|0;
  22294. $86 = (($$031) + 1)|0;
  22295. $87 = HEAP32[5218]|0;
  22296. $88 = ($86|0)<($87|0);
  22297. if ($88) {
  22298. $$02830 = $85;$$031 = $86;
  22299. } else {
  22300. break;
  22301. }
  22302. }
  22303. }
  22304. $69 = HEAP32[5259]|0;
  22305. $70 = ($69|0)==(0);
  22306. if ($70) {
  22307. _glBindBuffer(34962,0);
  22308. _glBindBuffer(34963,0);
  22309. }
  22310. _glBindTexture(3553,0);
  22311. }
  22312. $89 = HEAP32[5259]|0;
  22313. $90 = ($89|0)==(0);
  22314. if (!($90)) {
  22315. $91 = HEAP32[5260]|0;
  22316. FUNCTION_TABLE_vi[$91 & 31](0);
  22317. }
  22318. _glUseProgram(0);
  22319. $92 = (($$02932) + 1)|0;
  22320. $93 = ($92|0)<($$|0);
  22321. if ($93) {
  22322. $$02932 = $92;
  22323. } else {
  22324. break;
  22325. }
  22326. }
  22327. HEAP32[5218] = 1;
  22328. $5 = HEAP32[5219]|0;
  22329. $6 = HEAP32[5220]|0;
  22330. $7 = ((($6)) + 8|0);
  22331. HEAP32[$7>>2] = $5;
  22332. HEAP32[$6>>2] = 0;
  22333. HEAP32[5221] = 0;
  22334. HEAP32[(20892)>>2] = 0;
  22335. HEAP32[5233] = 0;
  22336. HEAP32[(20940)>>2] = 0;
  22337. HEAP32[5173] = 0;
  22338. HEAP32[(20696)>>2] = 0;
  22339. HEAP32[(20700)>>2] = 0;
  22340. HEAPF32[926] = -1.0;
  22341. dest=20740; 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));
  22342. dest=20804; 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));
  22343. STACKTOP = sp;return;
  22344. }
  22345. function _SetStereoView($0,$1,$2) {
  22346. $0 = $0|0;
  22347. $1 = $1|0;
  22348. $2 = $2|0;
  22349. 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;
  22350. sp = STACKTOP;
  22351. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  22352. $$byval_copy3 = sp + 192|0;
  22353. $$byval_copy = sp + 64|0;
  22354. $3 = sp;
  22355. $4 = sp + 128|0;
  22356. 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));
  22357. $5 = HEAP32[5277]|0;
  22358. $6 = Math_imul($5, $0)|0;
  22359. $7 = (($6|0) / 2)&-1;
  22360. $8 = (($5|0) / 2)&-1;
  22361. $9 = HEAP32[5278]|0;
  22362. _rlViewport($7,0,$8,$9);
  22363. $10 = (21344 + ($0<<6)|0);
  22364. 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));
  22365. 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));
  22366. _MatrixMultiply($4,$$byval_copy,$$byval_copy3);
  22367. $11 = (21216 + ($0<<6)|0);
  22368. 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));
  22369. 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));
  22370. _SetMatrixModelview($$byval_copy3);
  22371. 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));
  22372. _SetMatrixProjection($$byval_copy3);
  22373. STACKTOP = sp;return;
  22374. }
  22375. function _MatrixMultiply($0,$1,$2) {
  22376. $0 = $0|0;
  22377. $1 = $1|0;
  22378. $2 = $2|0;
  22379. 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;
  22380. 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;
  22381. 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;
  22382. 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;
  22383. 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;
  22384. 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;
  22385. 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;
  22386. 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;
  22387. 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;
  22388. 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;
  22389. sp = STACKTOP;
  22390. $3 = +HEAPF32[$2>>2];
  22391. $4 = +HEAPF32[$1>>2];
  22392. $5 = $3 * $4;
  22393. $6 = ((($2)) + 16|0);
  22394. $7 = +HEAPF32[$6>>2];
  22395. $8 = ((($1)) + 4|0);
  22396. $9 = +HEAPF32[$8>>2];
  22397. $10 = $7 * $9;
  22398. $11 = $5 + $10;
  22399. $12 = ((($2)) + 32|0);
  22400. $13 = +HEAPF32[$12>>2];
  22401. $14 = ((($1)) + 8|0);
  22402. $15 = +HEAPF32[$14>>2];
  22403. $16 = $13 * $15;
  22404. $17 = $11 + $16;
  22405. $18 = ((($2)) + 48|0);
  22406. $19 = +HEAPF32[$18>>2];
  22407. $20 = ((($1)) + 12|0);
  22408. $21 = +HEAPF32[$20>>2];
  22409. $22 = $19 * $21;
  22410. $23 = $17 + $22;
  22411. $24 = ((($1)) + 16|0);
  22412. $25 = +HEAPF32[$24>>2];
  22413. $26 = $3 * $25;
  22414. $27 = ((($1)) + 20|0);
  22415. $28 = +HEAPF32[$27>>2];
  22416. $29 = $7 * $28;
  22417. $30 = $26 + $29;
  22418. $31 = ((($1)) + 24|0);
  22419. $32 = +HEAPF32[$31>>2];
  22420. $33 = $13 * $32;
  22421. $34 = $30 + $33;
  22422. $35 = ((($1)) + 28|0);
  22423. $36 = +HEAPF32[$35>>2];
  22424. $37 = $19 * $36;
  22425. $38 = $34 + $37;
  22426. $39 = ((($1)) + 32|0);
  22427. $40 = +HEAPF32[$39>>2];
  22428. $41 = $3 * $40;
  22429. $42 = ((($1)) + 36|0);
  22430. $43 = +HEAPF32[$42>>2];
  22431. $44 = $7 * $43;
  22432. $45 = $41 + $44;
  22433. $46 = ((($1)) + 40|0);
  22434. $47 = +HEAPF32[$46>>2];
  22435. $48 = $13 * $47;
  22436. $49 = $45 + $48;
  22437. $50 = ((($1)) + 44|0);
  22438. $51 = +HEAPF32[$50>>2];
  22439. $52 = $19 * $51;
  22440. $53 = $49 + $52;
  22441. $54 = ((($1)) + 48|0);
  22442. $55 = +HEAPF32[$54>>2];
  22443. $56 = $3 * $55;
  22444. $57 = ((($1)) + 52|0);
  22445. $58 = +HEAPF32[$57>>2];
  22446. $59 = $7 * $58;
  22447. $60 = $56 + $59;
  22448. $61 = ((($1)) + 56|0);
  22449. $62 = +HEAPF32[$61>>2];
  22450. $63 = $13 * $62;
  22451. $64 = $60 + $63;
  22452. $65 = ((($1)) + 60|0);
  22453. $66 = +HEAPF32[$65>>2];
  22454. $67 = $19 * $66;
  22455. $68 = $64 + $67;
  22456. $69 = ((($2)) + 4|0);
  22457. $70 = +HEAPF32[$69>>2];
  22458. $71 = $4 * $70;
  22459. $72 = ((($2)) + 20|0);
  22460. $73 = +HEAPF32[$72>>2];
  22461. $74 = $9 * $73;
  22462. $75 = $71 + $74;
  22463. $76 = ((($2)) + 36|0);
  22464. $77 = +HEAPF32[$76>>2];
  22465. $78 = $15 * $77;
  22466. $79 = $75 + $78;
  22467. $80 = ((($2)) + 52|0);
  22468. $81 = +HEAPF32[$80>>2];
  22469. $82 = $21 * $81;
  22470. $83 = $79 + $82;
  22471. $84 = $25 * $70;
  22472. $85 = $28 * $73;
  22473. $86 = $84 + $85;
  22474. $87 = $32 * $77;
  22475. $88 = $86 + $87;
  22476. $89 = $36 * $81;
  22477. $90 = $88 + $89;
  22478. $91 = $40 * $70;
  22479. $92 = $43 * $73;
  22480. $93 = $91 + $92;
  22481. $94 = $47 * $77;
  22482. $95 = $93 + $94;
  22483. $96 = $51 * $81;
  22484. $97 = $95 + $96;
  22485. $98 = $55 * $70;
  22486. $99 = $58 * $73;
  22487. $100 = $98 + $99;
  22488. $101 = $62 * $77;
  22489. $102 = $100 + $101;
  22490. $103 = $66 * $81;
  22491. $104 = $102 + $103;
  22492. $105 = ((($2)) + 8|0);
  22493. $106 = +HEAPF32[$105>>2];
  22494. $107 = $4 * $106;
  22495. $108 = ((($2)) + 24|0);
  22496. $109 = +HEAPF32[$108>>2];
  22497. $110 = $9 * $109;
  22498. $111 = $107 + $110;
  22499. $112 = ((($2)) + 40|0);
  22500. $113 = +HEAPF32[$112>>2];
  22501. $114 = $15 * $113;
  22502. $115 = $111 + $114;
  22503. $116 = ((($2)) + 56|0);
  22504. $117 = +HEAPF32[$116>>2];
  22505. $118 = $21 * $117;
  22506. $119 = $115 + $118;
  22507. $120 = $25 * $106;
  22508. $121 = $28 * $109;
  22509. $122 = $120 + $121;
  22510. $123 = $32 * $113;
  22511. $124 = $122 + $123;
  22512. $125 = $36 * $117;
  22513. $126 = $124 + $125;
  22514. $127 = $40 * $106;
  22515. $128 = $43 * $109;
  22516. $129 = $127 + $128;
  22517. $130 = $47 * $113;
  22518. $131 = $129 + $130;
  22519. $132 = $51 * $117;
  22520. $133 = $131 + $132;
  22521. $134 = $55 * $106;
  22522. $135 = $58 * $109;
  22523. $136 = $134 + $135;
  22524. $137 = $62 * $113;
  22525. $138 = $136 + $137;
  22526. $139 = $66 * $117;
  22527. $140 = $138 + $139;
  22528. $141 = ((($2)) + 12|0);
  22529. $142 = +HEAPF32[$141>>2];
  22530. $143 = $4 * $142;
  22531. $144 = ((($2)) + 28|0);
  22532. $145 = +HEAPF32[$144>>2];
  22533. $146 = $9 * $145;
  22534. $147 = $143 + $146;
  22535. $148 = ((($2)) + 44|0);
  22536. $149 = +HEAPF32[$148>>2];
  22537. $150 = $15 * $149;
  22538. $151 = $147 + $150;
  22539. $152 = ((($2)) + 60|0);
  22540. $153 = +HEAPF32[$152>>2];
  22541. $154 = $21 * $153;
  22542. $155 = $151 + $154;
  22543. $156 = $25 * $142;
  22544. $157 = $28 * $145;
  22545. $158 = $156 + $157;
  22546. $159 = $32 * $149;
  22547. $160 = $158 + $159;
  22548. $161 = $36 * $153;
  22549. $162 = $160 + $161;
  22550. $163 = $40 * $142;
  22551. $164 = $43 * $145;
  22552. $165 = $163 + $164;
  22553. $166 = $47 * $149;
  22554. $167 = $165 + $166;
  22555. $168 = $51 * $153;
  22556. $169 = $167 + $168;
  22557. $170 = $55 * $142;
  22558. $171 = $58 * $145;
  22559. $172 = $170 + $171;
  22560. $173 = $62 * $149;
  22561. $174 = $172 + $173;
  22562. $175 = $66 * $153;
  22563. $176 = $174 + $175;
  22564. HEAPF32[$0>>2] = $23;
  22565. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  22566. HEAPF32[$$sroa$4$0$$sroa_idx2>>2] = $83;
  22567. $$sroa$5$0$$sroa_idx4 = ((($0)) + 8|0);
  22568. HEAPF32[$$sroa$5$0$$sroa_idx4>>2] = $119;
  22569. $$sroa$6$0$$sroa_idx6 = ((($0)) + 12|0);
  22570. HEAPF32[$$sroa$6$0$$sroa_idx6>>2] = $155;
  22571. $$sroa$7$0$$sroa_idx8 = ((($0)) + 16|0);
  22572. HEAPF32[$$sroa$7$0$$sroa_idx8>>2] = $38;
  22573. $$sroa$8$0$$sroa_idx10 = ((($0)) + 20|0);
  22574. HEAPF32[$$sroa$8$0$$sroa_idx10>>2] = $90;
  22575. $$sroa$9$0$$sroa_idx12 = ((($0)) + 24|0);
  22576. HEAPF32[$$sroa$9$0$$sroa_idx12>>2] = $126;
  22577. $$sroa$10$0$$sroa_idx14 = ((($0)) + 28|0);
  22578. HEAPF32[$$sroa$10$0$$sroa_idx14>>2] = $162;
  22579. $$sroa$11$0$$sroa_idx16 = ((($0)) + 32|0);
  22580. HEAPF32[$$sroa$11$0$$sroa_idx16>>2] = $53;
  22581. $$sroa$12$0$$sroa_idx18 = ((($0)) + 36|0);
  22582. HEAPF32[$$sroa$12$0$$sroa_idx18>>2] = $97;
  22583. $$sroa$13$0$$sroa_idx20 = ((($0)) + 40|0);
  22584. HEAPF32[$$sroa$13$0$$sroa_idx20>>2] = $133;
  22585. $$sroa$14$0$$sroa_idx22 = ((($0)) + 44|0);
  22586. HEAPF32[$$sroa$14$0$$sroa_idx22>>2] = $169;
  22587. $$sroa$15$0$$sroa_idx24 = ((($0)) + 48|0);
  22588. HEAPF32[$$sroa$15$0$$sroa_idx24>>2] = $68;
  22589. $$sroa$16$0$$sroa_idx26 = ((($0)) + 52|0);
  22590. HEAPF32[$$sroa$16$0$$sroa_idx26>>2] = $104;
  22591. $$sroa$17$0$$sroa_idx28 = ((($0)) + 56|0);
  22592. HEAPF32[$$sroa$17$0$$sroa_idx28>>2] = $140;
  22593. $$sroa$18$0$$sroa_idx30 = ((($0)) + 60|0);
  22594. HEAPF32[$$sroa$18$0$$sroa_idx30>>2] = $176;
  22595. return;
  22596. }
  22597. function _MatrixToFloat($0) {
  22598. $0 = $0|0;
  22599. 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;
  22600. 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;
  22601. sp = STACKTOP;
  22602. $1 = HEAP32[$0>>2]|0;
  22603. HEAP32[5261] = $1;
  22604. $2 = ((($0)) + 4|0);
  22605. $3 = HEAP32[$2>>2]|0;
  22606. HEAP32[(21048)>>2] = $3;
  22607. $4 = ((($0)) + 8|0);
  22608. $5 = HEAP32[$4>>2]|0;
  22609. HEAP32[(21052)>>2] = $5;
  22610. $6 = ((($0)) + 12|0);
  22611. $7 = HEAP32[$6>>2]|0;
  22612. HEAP32[(21056)>>2] = $7;
  22613. $8 = ((($0)) + 16|0);
  22614. $9 = HEAP32[$8>>2]|0;
  22615. HEAP32[(21060)>>2] = $9;
  22616. $10 = ((($0)) + 20|0);
  22617. $11 = HEAP32[$10>>2]|0;
  22618. HEAP32[(21064)>>2] = $11;
  22619. $12 = ((($0)) + 24|0);
  22620. $13 = HEAP32[$12>>2]|0;
  22621. HEAP32[(21068)>>2] = $13;
  22622. $14 = ((($0)) + 28|0);
  22623. $15 = HEAP32[$14>>2]|0;
  22624. HEAP32[(21072)>>2] = $15;
  22625. $16 = ((($0)) + 32|0);
  22626. $17 = HEAP32[$16>>2]|0;
  22627. HEAP32[(21076)>>2] = $17;
  22628. $18 = ((($0)) + 36|0);
  22629. $19 = HEAP32[$18>>2]|0;
  22630. HEAP32[(21080)>>2] = $19;
  22631. $20 = ((($0)) + 40|0);
  22632. $21 = HEAP32[$20>>2]|0;
  22633. HEAP32[(21084)>>2] = $21;
  22634. $22 = ((($0)) + 44|0);
  22635. $23 = HEAP32[$22>>2]|0;
  22636. HEAP32[(21088)>>2] = $23;
  22637. $24 = ((($0)) + 48|0);
  22638. $25 = HEAP32[$24>>2]|0;
  22639. HEAP32[(21092)>>2] = $25;
  22640. $26 = ((($0)) + 52|0);
  22641. $27 = HEAP32[$26>>2]|0;
  22642. HEAP32[(21096)>>2] = $27;
  22643. $28 = ((($0)) + 56|0);
  22644. $29 = HEAP32[$28>>2]|0;
  22645. HEAP32[(21100)>>2] = $29;
  22646. $30 = ((($0)) + 60|0);
  22647. $31 = HEAP32[$30>>2]|0;
  22648. HEAP32[(21104)>>2] = $31;
  22649. return (21044|0);
  22650. }
  22651. function _rlViewport($0,$1,$2,$3) {
  22652. $0 = $0|0;
  22653. $1 = $1|0;
  22654. $2 = $2|0;
  22655. $3 = $3|0;
  22656. var label = 0, sp = 0;
  22657. sp = STACKTOP;
  22658. _glViewport(($0|0),($1|0),($2|0),($3|0));
  22659. return;
  22660. }
  22661. function _SetMatrixModelview($0) {
  22662. $0 = $0|0;
  22663. var dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  22664. sp = STACKTOP;
  22665. dest=20804; 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));
  22666. return;
  22667. }
  22668. function _SetMatrixProjection($0) {
  22669. $0 = $0|0;
  22670. var dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  22671. sp = STACKTOP;
  22672. dest=20740; 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));
  22673. return;
  22674. }
  22675. function _VectorTransform($0,$1) {
  22676. $0 = $0|0;
  22677. $1 = $1|0;
  22678. 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;
  22679. 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;
  22680. var $47 = 0.0, $5 = 0, $6 = 0.0, $7 = 0.0, $8 = 0.0, $9 = 0, label = 0, sp = 0;
  22681. sp = STACKTOP;
  22682. $2 = +HEAPF32[$0>>2];
  22683. $3 = ((($0)) + 4|0);
  22684. $4 = +HEAPF32[$3>>2];
  22685. $5 = ((($0)) + 8|0);
  22686. $6 = +HEAPF32[$5>>2];
  22687. $7 = +HEAPF32[$1>>2];
  22688. $8 = $2 * $7;
  22689. $9 = ((($1)) + 4|0);
  22690. $10 = +HEAPF32[$9>>2];
  22691. $11 = $4 * $10;
  22692. $12 = $8 + $11;
  22693. $13 = ((($1)) + 8|0);
  22694. $14 = +HEAPF32[$13>>2];
  22695. $15 = $6 * $14;
  22696. $16 = $12 + $15;
  22697. $17 = ((($1)) + 12|0);
  22698. $18 = +HEAPF32[$17>>2];
  22699. $19 = $18 + $16;
  22700. HEAPF32[$0>>2] = $19;
  22701. $20 = ((($1)) + 16|0);
  22702. $21 = +HEAPF32[$20>>2];
  22703. $22 = $2 * $21;
  22704. $23 = ((($1)) + 20|0);
  22705. $24 = +HEAPF32[$23>>2];
  22706. $25 = $4 * $24;
  22707. $26 = $22 + $25;
  22708. $27 = ((($1)) + 24|0);
  22709. $28 = +HEAPF32[$27>>2];
  22710. $29 = $6 * $28;
  22711. $30 = $26 + $29;
  22712. $31 = ((($1)) + 28|0);
  22713. $32 = +HEAPF32[$31>>2];
  22714. $33 = $32 + $30;
  22715. HEAPF32[$3>>2] = $33;
  22716. $34 = ((($1)) + 32|0);
  22717. $35 = +HEAPF32[$34>>2];
  22718. $36 = $2 * $35;
  22719. $37 = ((($1)) + 36|0);
  22720. $38 = +HEAPF32[$37>>2];
  22721. $39 = $4 * $38;
  22722. $40 = $36 + $39;
  22723. $41 = ((($1)) + 40|0);
  22724. $42 = +HEAPF32[$41>>2];
  22725. $43 = $6 * $42;
  22726. $44 = $40 + $43;
  22727. $45 = ((($1)) + 44|0);
  22728. $46 = +HEAPF32[$45>>2];
  22729. $47 = $46 + $44;
  22730. HEAPF32[$5>>2] = $47;
  22731. return;
  22732. }
  22733. function _rlVertex3f($0,$1,$2) {
  22734. $0 = +$0;
  22735. $1 = +$1;
  22736. $2 = +$2;
  22737. 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;
  22738. 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;
  22739. var $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, $vararg_buffer3 = 0, label = 0, sp = 0;
  22740. sp = STACKTOP;
  22741. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  22742. $vararg_buffer3 = sp + 16|0;
  22743. $vararg_buffer1 = sp + 8|0;
  22744. $vararg_buffer = sp;
  22745. $3 = HEAP32[5626]|0;
  22746. $4 = ($3|0)==(0);
  22747. if (!($4)) {
  22748. $5 = HEAP32[5628]|0;
  22749. $6 = HEAP32[5627]|0;
  22750. $7 = (($5) + (($6*12)|0)|0);
  22751. HEAPF32[$7>>2] = $0;
  22752. $8 = (((($5) + (($6*12)|0)|0)) + 4|0);
  22753. HEAPF32[$8>>2] = $1;
  22754. $9 = (((($5) + (($6*12)|0)|0)) + 8|0);
  22755. HEAPF32[$9>>2] = $2;
  22756. $10 = (($6) + 1)|0;
  22757. HEAP32[5627] = $10;
  22758. STACKTOP = sp;return;
  22759. }
  22760. $11 = HEAP32[5629]|0;
  22761. switch ($11|0) {
  22762. case 1: {
  22763. $12 = HEAP32[5221]|0;
  22764. $13 = ($12|0)<(2048);
  22765. if ($13) {
  22766. $14 = HEAP32[(20896)>>2]|0;
  22767. $15 = ($12*3)|0;
  22768. $16 = (($14) + ($15<<2)|0);
  22769. HEAPF32[$16>>2] = $0;
  22770. $17 = (($15) + 1)|0;
  22771. $18 = (($14) + ($17<<2)|0);
  22772. HEAPF32[$18>>2] = $1;
  22773. $19 = (($15) + 2)|0;
  22774. $20 = (($14) + ($19<<2)|0);
  22775. HEAPF32[$20>>2] = $2;
  22776. $21 = (($12) + 1)|0;
  22777. HEAP32[5221] = $21;
  22778. STACKTOP = sp;return;
  22779. } else {
  22780. _TraceLog(2,8222,$vararg_buffer);
  22781. STACKTOP = sp;return;
  22782. }
  22783. break;
  22784. }
  22785. case 4: {
  22786. $22 = HEAP32[5233]|0;
  22787. $23 = ($22|0)<(6144);
  22788. if ($23) {
  22789. $24 = HEAP32[(20944)>>2]|0;
  22790. $25 = ($22*3)|0;
  22791. $26 = (($24) + ($25<<2)|0);
  22792. HEAPF32[$26>>2] = $0;
  22793. $27 = (($25) + 1)|0;
  22794. $28 = (($24) + ($27<<2)|0);
  22795. HEAPF32[$28>>2] = $1;
  22796. $29 = (($25) + 2)|0;
  22797. $30 = (($24) + ($29<<2)|0);
  22798. HEAPF32[$30>>2] = $2;
  22799. $31 = (($22) + 1)|0;
  22800. HEAP32[5233] = $31;
  22801. STACKTOP = sp;return;
  22802. } else {
  22803. _TraceLog(2,8247,$vararg_buffer1);
  22804. STACKTOP = sp;return;
  22805. }
  22806. break;
  22807. }
  22808. case 7: {
  22809. $32 = HEAP32[5173]|0;
  22810. $33 = ($32|0)<(4096);
  22811. if ($33) {
  22812. $34 = HEAP32[(20704)>>2]|0;
  22813. $35 = ($32*3)|0;
  22814. $36 = (($34) + ($35<<2)|0);
  22815. HEAPF32[$36>>2] = $0;
  22816. $37 = (($35) + 1)|0;
  22817. $38 = (($34) + ($37<<2)|0);
  22818. HEAPF32[$38>>2] = $1;
  22819. $39 = (($35) + 2)|0;
  22820. $40 = (($34) + ($39<<2)|0);
  22821. HEAPF32[$40>>2] = $2;
  22822. $41 = (($32) + 1)|0;
  22823. HEAP32[5173] = $41;
  22824. $42 = HEAP32[5220]|0;
  22825. $43 = HEAP32[5218]|0;
  22826. $44 = (($43) + -1)|0;
  22827. $45 = (($42) + (($44*144)|0)|0);
  22828. $46 = HEAP32[$45>>2]|0;
  22829. $47 = (($46) + 1)|0;
  22830. HEAP32[$45>>2] = $47;
  22831. STACKTOP = sp;return;
  22832. } else {
  22833. _TraceLog(2,8276,$vararg_buffer3);
  22834. STACKTOP = sp;return;
  22835. }
  22836. break;
  22837. }
  22838. default: {
  22839. STACKTOP = sp;return;
  22840. }
  22841. }
  22842. }
  22843. function _MatrixIdentity($0) {
  22844. $0 = $0|0;
  22845. 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;
  22846. sp = STACKTOP;
  22847. HEAPF32[$0>>2] = 1.0;
  22848. $$sroa$5$0$$sroa_idx = ((($0)) + 4|0);
  22849. ;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;
  22850. $$sroa$55$0$$sroa_idx6 = ((($0)) + 20|0);
  22851. HEAPF32[$$sroa$55$0$$sroa_idx6>>2] = 1.0;
  22852. $$sroa$6$0$$sroa_idx = ((($0)) + 24|0);
  22853. ;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;
  22854. $$sroa$611$0$$sroa_idx12 = ((($0)) + 40|0);
  22855. HEAPF32[$$sroa$611$0$$sroa_idx12>>2] = 1.0;
  22856. $$sroa$7$0$$sroa_idx = ((($0)) + 44|0);
  22857. ;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;
  22858. $$sroa$717$0$$sroa_idx18 = ((($0)) + 60|0);
  22859. HEAPF32[$$sroa$717$0$$sroa_idx18>>2] = 1.0;
  22860. return;
  22861. }
  22862. function _VectorNormalize($0) {
  22863. $0 = $0|0;
  22864. 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;
  22865. sp = STACKTOP;
  22866. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  22867. $$byval_copy = sp;
  22868. ;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;
  22869. $1 = (+_VectorLength($$byval_copy));
  22870. $2 = $1 == 0.0;
  22871. $$op = 1.0 / $1;
  22872. $3 = $2 ? 1.0 : $$op;
  22873. $4 = +HEAPF32[$0>>2];
  22874. $5 = $4 * $3;
  22875. HEAPF32[$0>>2] = $5;
  22876. $6 = ((($0)) + 4|0);
  22877. $7 = +HEAPF32[$6>>2];
  22878. $8 = $3 * $7;
  22879. HEAPF32[$6>>2] = $8;
  22880. $9 = ((($0)) + 8|0);
  22881. $10 = +HEAPF32[$9>>2];
  22882. $11 = $3 * $10;
  22883. HEAPF32[$9>>2] = $11;
  22884. STACKTOP = sp;return;
  22885. }
  22886. function _MatrixRotate($0,$1,$2) {
  22887. $0 = $0|0;
  22888. $1 = $1|0;
  22889. $2 = +$2;
  22890. 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;
  22891. 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;
  22892. 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;
  22893. 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;
  22894. 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;
  22895. 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;
  22896. 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;
  22897. 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;
  22898. sp = STACKTOP;
  22899. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  22900. $3 = sp;
  22901. _MatrixIdentity($3);
  22902. $4 = +HEAPF32[$1>>2];
  22903. $5 = ((($1)) + 4|0);
  22904. $6 = +HEAPF32[$5>>2];
  22905. $7 = ((($1)) + 8|0);
  22906. $8 = +HEAPF32[$7>>2];
  22907. $9 = $4 * $4;
  22908. $10 = $6 * $6;
  22909. $11 = $9 + $10;
  22910. $12 = $8 * $8;
  22911. $13 = $11 + $12;
  22912. $14 = (+Math_sqrt((+$13)));
  22913. $15 = $14 != 1.0;
  22914. $16 = $14 != 0.0;
  22915. $or$cond = $15 & $16;
  22916. $17 = 1.0 / $14;
  22917. $18 = $4 * $17;
  22918. $19 = $6 * $17;
  22919. $20 = $8 * $17;
  22920. $$ = $or$cond ? $20 : $8;
  22921. $$221 = $or$cond ? $19 : $6;
  22922. $$222 = $or$cond ? $18 : $4;
  22923. $21 = (+Math_sin((+$2)));
  22924. $22 = (+Math_cos((+$2)));
  22925. $23 = 1.0 - $22;
  22926. $24 = +HEAPF32[$3>>2];
  22927. $25 = ((($3)) + 16|0);
  22928. $26 = +HEAPF32[$25>>2];
  22929. $27 = ((($3)) + 32|0);
  22930. $28 = +HEAPF32[$27>>2];
  22931. $29 = ((($3)) + 48|0);
  22932. $30 = +HEAPF32[$29>>2];
  22933. $31 = ((($3)) + 4|0);
  22934. $32 = +HEAPF32[$31>>2];
  22935. $33 = ((($3)) + 20|0);
  22936. $34 = +HEAPF32[$33>>2];
  22937. $35 = ((($3)) + 36|0);
  22938. $36 = +HEAPF32[$35>>2];
  22939. $37 = ((($3)) + 52|0);
  22940. $38 = +HEAPF32[$37>>2];
  22941. $39 = ((($3)) + 8|0);
  22942. $40 = +HEAPF32[$39>>2];
  22943. $41 = ((($3)) + 24|0);
  22944. $42 = +HEAPF32[$41>>2];
  22945. $43 = ((($3)) + 40|0);
  22946. $44 = +HEAPF32[$43>>2];
  22947. $45 = ((($3)) + 56|0);
  22948. $46 = +HEAPF32[$45>>2];
  22949. $47 = $$222 * $$222;
  22950. $48 = $23 * $47;
  22951. $49 = $22 + $48;
  22952. $50 = $$221 * $$222;
  22953. $51 = $23 * $50;
  22954. $52 = $21 * $$;
  22955. $53 = $52 + $51;
  22956. $54 = $$ * $$222;
  22957. $55 = $23 * $54;
  22958. $56 = $21 * $$221;
  22959. $57 = $55 - $56;
  22960. $58 = $51 - $52;
  22961. $59 = $$221 * $$221;
  22962. $60 = $23 * $59;
  22963. $61 = $22 + $60;
  22964. $62 = $$ * $$221;
  22965. $63 = $23 * $62;
  22966. $64 = $21 * $$222;
  22967. $65 = $64 + $63;
  22968. $66 = $56 + $55;
  22969. $67 = $63 - $64;
  22970. $68 = $$ * $$;
  22971. $69 = $23 * $68;
  22972. $70 = $22 + $69;
  22973. $71 = $24 * $49;
  22974. $72 = $53 * $32;
  22975. $73 = $71 + $72;
  22976. $74 = $57 * $40;
  22977. $75 = $73 + $74;
  22978. $76 = $26 * $49;
  22979. $77 = $53 * $34;
  22980. $78 = $76 + $77;
  22981. $79 = $57 * $42;
  22982. $80 = $78 + $79;
  22983. $81 = $28 * $49;
  22984. $82 = $53 * $36;
  22985. $83 = $81 + $82;
  22986. $84 = $57 * $44;
  22987. $85 = $83 + $84;
  22988. $86 = $30 * $49;
  22989. $87 = $53 * $38;
  22990. $88 = $86 + $87;
  22991. $89 = $57 * $46;
  22992. $90 = $88 + $89;
  22993. $91 = $24 * $58;
  22994. $92 = $61 * $32;
  22995. $93 = $91 + $92;
  22996. $94 = $65 * $40;
  22997. $95 = $93 + $94;
  22998. $96 = $26 * $58;
  22999. $97 = $61 * $34;
  23000. $98 = $96 + $97;
  23001. $99 = $65 * $42;
  23002. $100 = $98 + $99;
  23003. $101 = $28 * $58;
  23004. $102 = $61 * $36;
  23005. $103 = $101 + $102;
  23006. $104 = $65 * $44;
  23007. $105 = $103 + $104;
  23008. $106 = $30 * $58;
  23009. $107 = $61 * $38;
  23010. $108 = $106 + $107;
  23011. $109 = $65 * $46;
  23012. $110 = $108 + $109;
  23013. $111 = $24 * $66;
  23014. $112 = $67 * $32;
  23015. $113 = $111 + $112;
  23016. $114 = $70 * $40;
  23017. $115 = $113 + $114;
  23018. $116 = $26 * $66;
  23019. $117 = $67 * $34;
  23020. $118 = $116 + $117;
  23021. $119 = $70 * $42;
  23022. $120 = $118 + $119;
  23023. $121 = $28 * $66;
  23024. $122 = $67 * $36;
  23025. $123 = $121 + $122;
  23026. $124 = $70 * $44;
  23027. $125 = $123 + $124;
  23028. $126 = $30 * $66;
  23029. $127 = $67 * $38;
  23030. $128 = $126 + $127;
  23031. $129 = $70 * $46;
  23032. $130 = $128 + $129;
  23033. $131 = ((($3)) + 12|0);
  23034. $132 = HEAP32[$131>>2]|0;
  23035. $133 = ((($3)) + 28|0);
  23036. $134 = HEAP32[$133>>2]|0;
  23037. $135 = ((($3)) + 44|0);
  23038. $136 = HEAP32[$135>>2]|0;
  23039. $137 = ((($3)) + 60|0);
  23040. $138 = HEAP32[$137>>2]|0;
  23041. HEAPF32[$0>>2] = $75;
  23042. $$sroa$4$0$$sroa_idx187 = ((($0)) + 4|0);
  23043. HEAPF32[$$sroa$4$0$$sroa_idx187>>2] = $95;
  23044. $$sroa$5$0$$sroa_idx189 = ((($0)) + 8|0);
  23045. HEAPF32[$$sroa$5$0$$sroa_idx189>>2] = $115;
  23046. $$sroa$6$0$$sroa_idx191 = ((($0)) + 12|0);
  23047. HEAP32[$$sroa$6$0$$sroa_idx191>>2] = $132;
  23048. $$sroa$7$0$$sroa_idx193 = ((($0)) + 16|0);
  23049. HEAPF32[$$sroa$7$0$$sroa_idx193>>2] = $80;
  23050. $$sroa$8$0$$sroa_idx195 = ((($0)) + 20|0);
  23051. HEAPF32[$$sroa$8$0$$sroa_idx195>>2] = $100;
  23052. $$sroa$9$0$$sroa_idx197 = ((($0)) + 24|0);
  23053. HEAPF32[$$sroa$9$0$$sroa_idx197>>2] = $120;
  23054. $$sroa$10$0$$sroa_idx199 = ((($0)) + 28|0);
  23055. HEAP32[$$sroa$10$0$$sroa_idx199>>2] = $134;
  23056. $$sroa$11$0$$sroa_idx201 = ((($0)) + 32|0);
  23057. HEAPF32[$$sroa$11$0$$sroa_idx201>>2] = $85;
  23058. $$sroa$12$0$$sroa_idx203 = ((($0)) + 36|0);
  23059. HEAPF32[$$sroa$12$0$$sroa_idx203>>2] = $105;
  23060. $$sroa$13$0$$sroa_idx205 = ((($0)) + 40|0);
  23061. HEAPF32[$$sroa$13$0$$sroa_idx205>>2] = $125;
  23062. $$sroa$14$0$$sroa_idx207 = ((($0)) + 44|0);
  23063. HEAP32[$$sroa$14$0$$sroa_idx207>>2] = $136;
  23064. $$sroa$15$0$$sroa_idx209 = ((($0)) + 48|0);
  23065. HEAPF32[$$sroa$15$0$$sroa_idx209>>2] = $90;
  23066. $$sroa$16$0$$sroa_idx211 = ((($0)) + 52|0);
  23067. HEAPF32[$$sroa$16$0$$sroa_idx211>>2] = $110;
  23068. $$sroa$17$0$$sroa_idx213 = ((($0)) + 56|0);
  23069. HEAPF32[$$sroa$17$0$$sroa_idx213>>2] = $130;
  23070. $$sroa$18$0$$sroa_idx215 = ((($0)) + 60|0);
  23071. HEAP32[$$sroa$18$0$$sroa_idx215>>2] = $138;
  23072. STACKTOP = sp;return;
  23073. }
  23074. function _MatrixTranspose($0) {
  23075. $0 = $0|0;
  23076. 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;
  23077. var $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  23078. sp = STACKTOP;
  23079. $1 = ((($0)) + 4|0);
  23080. $2 = HEAP32[$1>>2]|0;
  23081. $3 = ((($0)) + 8|0);
  23082. $4 = HEAP32[$3>>2]|0;
  23083. $5 = ((($0)) + 12|0);
  23084. $6 = HEAP32[$5>>2]|0;
  23085. $7 = ((($0)) + 16|0);
  23086. $8 = HEAP32[$7>>2]|0;
  23087. $9 = ((($0)) + 24|0);
  23088. $10 = HEAP32[$9>>2]|0;
  23089. $11 = ((($0)) + 28|0);
  23090. $12 = HEAP32[$11>>2]|0;
  23091. $13 = ((($0)) + 32|0);
  23092. $14 = HEAP32[$13>>2]|0;
  23093. $15 = ((($0)) + 36|0);
  23094. $16 = HEAP32[$15>>2]|0;
  23095. $17 = ((($0)) + 44|0);
  23096. $18 = HEAP32[$17>>2]|0;
  23097. $19 = ((($0)) + 48|0);
  23098. $20 = HEAP32[$19>>2]|0;
  23099. $21 = ((($0)) + 52|0);
  23100. $22 = HEAP32[$21>>2]|0;
  23101. $23 = ((($0)) + 56|0);
  23102. $24 = HEAP32[$23>>2]|0;
  23103. HEAP32[$1>>2] = $8;
  23104. HEAP32[$3>>2] = $14;
  23105. HEAP32[$5>>2] = $20;
  23106. HEAP32[$7>>2] = $2;
  23107. HEAP32[$9>>2] = $16;
  23108. HEAP32[$11>>2] = $22;
  23109. HEAP32[$13>>2] = $4;
  23110. HEAP32[$15>>2] = $10;
  23111. HEAP32[$17>>2] = $24;
  23112. HEAP32[$19>>2] = $6;
  23113. HEAP32[$21>>2] = $12;
  23114. HEAP32[$23>>2] = $18;
  23115. return;
  23116. }
  23117. function _VectorLength($0) {
  23118. $0 = $0|0;
  23119. 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;
  23120. sp = STACKTOP;
  23121. $1 = +HEAPF32[$0>>2];
  23122. $2 = $1 * $1;
  23123. $3 = ((($0)) + 4|0);
  23124. $4 = +HEAPF32[$3>>2];
  23125. $5 = $4 * $4;
  23126. $6 = $2 + $5;
  23127. $7 = ((($0)) + 8|0);
  23128. $8 = +HEAPF32[$7>>2];
  23129. $9 = $8 * $8;
  23130. $10 = $6 + $9;
  23131. $11 = (+Math_sqrt((+$10)));
  23132. return (+$11);
  23133. }
  23134. function _MatrixTranslate($0,$1,$2,$3) {
  23135. $0 = $0|0;
  23136. $1 = +$1;
  23137. $2 = +$2;
  23138. $3 = +$3;
  23139. 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;
  23140. sp = STACKTOP;
  23141. HEAPF32[$0>>2] = 1.0;
  23142. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  23143. $$sroa$8$0$$sroa_idx10 = ((($0)) + 20|0);
  23144. ;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;
  23145. HEAPF32[$$sroa$8$0$$sroa_idx10>>2] = 1.0;
  23146. $$sroa$9$0$$sroa_idx12 = ((($0)) + 24|0);
  23147. $$sroa$13$0$$sroa_idx20 = ((($0)) + 40|0);
  23148. ;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;
  23149. HEAPF32[$$sroa$13$0$$sroa_idx20>>2] = 1.0;
  23150. $$sroa$14$0$$sroa_idx22 = ((($0)) + 44|0);
  23151. HEAPF32[$$sroa$14$0$$sroa_idx22>>2] = 0.0;
  23152. $$sroa$15$0$$sroa_idx24 = ((($0)) + 48|0);
  23153. HEAPF32[$$sroa$15$0$$sroa_idx24>>2] = $1;
  23154. $$sroa$16$0$$sroa_idx26 = ((($0)) + 52|0);
  23155. HEAPF32[$$sroa$16$0$$sroa_idx26>>2] = $2;
  23156. $$sroa$17$0$$sroa_idx28 = ((($0)) + 56|0);
  23157. HEAPF32[$$sroa$17$0$$sroa_idx28>>2] = $3;
  23158. $$sroa$18$0$$sroa_idx30 = ((($0)) + 60|0);
  23159. HEAPF32[$$sroa$18$0$$sroa_idx30>>2] = 1.0;
  23160. return;
  23161. }
  23162. function _rlLoadIdentity() {
  23163. var $0 = 0, $1 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  23164. sp = STACKTOP;
  23165. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  23166. $0 = sp;
  23167. $1 = HEAP32[5625]|0;
  23168. _MatrixIdentity($0);
  23169. 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));
  23170. STACKTOP = sp;return;
  23171. }
  23172. function _FormatText($0,$varargs) {
  23173. $0 = $0|0;
  23174. $varargs = $varargs|0;
  23175. var $1 = 0, label = 0, sp = 0;
  23176. sp = STACKTOP;
  23177. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  23178. $1 = sp;
  23179. HEAP32[$1>>2] = $varargs;
  23180. (_vsprintf(23512,$0,$1)|0);
  23181. STACKTOP = sp;return (23512|0);
  23182. }
  23183. function _DrawFPS($0,$1) {
  23184. $0 = $0|0;
  23185. $1 = $1|0;
  23186. 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;
  23187. sp = STACKTOP;
  23188. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  23189. $$byval_copy = sp;
  23190. $2 = sp + 4|0;
  23191. $3 = HEAP32[5631]|0;
  23192. $4 = HEAP32[927]|0;
  23193. $5 = ($3|0)<($4|0);
  23194. if ($5) {
  23195. $6 = (($3) + 1)|0;
  23196. $$sink = $6;
  23197. } else {
  23198. $7 = (_GetFPS()|0);
  23199. HEAP32[5632] = $7;
  23200. HEAP32[927] = $7;
  23201. $$sink = 0;
  23202. }
  23203. HEAP32[5631] = $$sink;
  23204. $8 = HEAP32[5632]|0;
  23205. HEAP32[$$byval_copy>>2] = $8;
  23206. (_FormatText(8339,$$byval_copy)|0);
  23207. HEAP8[$2>>0] = 0;
  23208. $9 = ((($2)) + 1|0);
  23209. HEAP8[$9>>0] = -98;
  23210. $10 = ((($2)) + 2|0);
  23211. HEAP8[$10>>0] = 47;
  23212. $11 = ((($2)) + 3|0);
  23213. HEAP8[$11>>0] = -1;
  23214. ;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;
  23215. _DrawText(23512,$0,$1,20,$$byval_copy);
  23216. STACKTOP = sp;return;
  23217. }
  23218. function _GetFPS() {
  23219. var $0 = 0.0, $1 = 0.0, $2 = 0, label = 0, sp = 0;
  23220. sp = STACKTOP;
  23221. $0 = (+_GetFrameTime());
  23222. $1 = 1.0 / $0;
  23223. $2 = (~~(($1)));
  23224. return ($2|0);
  23225. }
  23226. function _GetFrameTime() {
  23227. var $0 = 0.0, $1 = 0.0, label = 0, sp = 0;
  23228. sp = STACKTOP;
  23229. $0 = +HEAPF64[2430];
  23230. $1 = $0;
  23231. return (+$1);
  23232. }
  23233. function _LoadTexture($0,$1) {
  23234. $0 = $0|0;
  23235. $1 = $1|0;
  23236. var $$byval_copy1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  23237. sp = STACKTOP;
  23238. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  23239. $$byval_copy1 = sp + 44|0;
  23240. $vararg_buffer = sp;
  23241. $2 = sp + 24|0;
  23242. $3 = sp + 4|0;
  23243. ;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;
  23244. _LoadImage($3,$1);
  23245. $4 = HEAP32[$3>>2]|0;
  23246. $5 = ($4|0)==(0|0);
  23247. if ($5) {
  23248. _TraceLog(1,8347,$vararg_buffer);
  23249. ;HEAP32[$0>>2]=HEAP32[$2>>2]|0;HEAP32[$0+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[$2+8>>2]|0;HEAP32[$0+12>>2]=HEAP32[$2+12>>2]|0;HEAP32[$0+16>>2]=HEAP32[$2+16>>2]|0;
  23250. STACKTOP = sp;return;
  23251. } else {
  23252. ;HEAP32[$$byval_copy1>>2]=HEAP32[$3>>2]|0;HEAP32[$$byval_copy1+4>>2]=HEAP32[$3+4>>2]|0;HEAP32[$$byval_copy1+8>>2]=HEAP32[$3+8>>2]|0;HEAP32[$$byval_copy1+12>>2]=HEAP32[$3+12>>2]|0;HEAP32[$$byval_copy1+16>>2]=HEAP32[$3+16>>2]|0;
  23253. _LoadTextureFromImage($2,$$byval_copy1);
  23254. ;HEAP32[$$byval_copy1>>2]=HEAP32[$3>>2]|0;HEAP32[$$byval_copy1+4>>2]=HEAP32[$3+4>>2]|0;HEAP32[$$byval_copy1+8>>2]=HEAP32[$3+8>>2]|0;HEAP32[$$byval_copy1+12>>2]=HEAP32[$3+12>>2]|0;HEAP32[$$byval_copy1+16>>2]=HEAP32[$3+16>>2]|0;
  23255. _UnloadImage($$byval_copy1);
  23256. ;HEAP32[$0>>2]=HEAP32[$2>>2]|0;HEAP32[$0+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$0+8>>2]=HEAP32[$2+8>>2]|0;HEAP32[$0+12>>2]=HEAP32[$2+12>>2]|0;HEAP32[$0+16>>2]=HEAP32[$2+16>>2]|0;
  23257. STACKTOP = sp;return;
  23258. }
  23259. }
  23260. function _LoadRenderTexture($0,$1,$2) {
  23261. $0 = $0|0;
  23262. $1 = $1|0;
  23263. $2 = $2|0;
  23264. var $3 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  23265. sp = STACKTOP;
  23266. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  23267. $3 = sp;
  23268. _rlglLoadRenderTexture($3,$1,$2);
  23269. 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));
  23270. STACKTOP = sp;return;
  23271. }
  23272. function _rlglLoadRenderTexture($0,$1,$2) {
  23273. $0 = $0|0;
  23274. $1 = $1|0;
  23275. $2 = $2|0;
  23276. 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;
  23277. 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;
  23278. sp = STACKTOP;
  23279. STACKTOP = STACKTOP + 96|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(96|0);
  23280. $vararg_buffer9 = sp + 40|0;
  23281. $vararg_buffer7 = sp + 32|0;
  23282. $vararg_buffer5 = sp + 24|0;
  23283. $vararg_buffer3 = sp + 16|0;
  23284. $vararg_buffer1 = sp + 8|0;
  23285. $vararg_buffer = sp;
  23286. $3 = sp + 44|0;
  23287. HEAP32[$3>>2] = 0;
  23288. $4 = ((($3)) + 4|0);
  23289. HEAP32[$4>>2] = 0;
  23290. $5 = ((($3)) + 8|0);
  23291. HEAP32[$5>>2] = $1;
  23292. $6 = ((($3)) + 12|0);
  23293. HEAP32[$6>>2] = $2;
  23294. $7 = ((($3)) + 20|0);
  23295. HEAP32[$7>>2] = 7;
  23296. $8 = ((($3)) + 16|0);
  23297. HEAP32[$8>>2] = 1;
  23298. $9 = ((($3)) + 24|0);
  23299. HEAP32[$9>>2] = 0;
  23300. $10 = ((($3)) + 28|0);
  23301. HEAP32[$10>>2] = $1;
  23302. $11 = ((($3)) + 32|0);
  23303. HEAP32[$11>>2] = $2;
  23304. $12 = ((($3)) + 40|0);
  23305. HEAP32[$12>>2] = 19;
  23306. $13 = ((($3)) + 36|0);
  23307. HEAP32[$13>>2] = 1;
  23308. _glGenTextures(1,($4|0));
  23309. $14 = HEAP32[$4>>2]|0;
  23310. _glBindTexture(3553,($14|0));
  23311. _glTexParameteri(3553,10242,33071);
  23312. _glTexParameteri(3553,10243,33071);
  23313. _glTexParameteri(3553,10241,9729);
  23314. _glTexParameteri(3553,10240,9729);
  23315. _glTexImage2D(3553,0,6408,($1|0),($2|0),0,6408,5121,(0|0));
  23316. _glBindTexture(3553,0);
  23317. _glGenRenderbuffers(1,($9|0));
  23318. $15 = HEAP32[$9>>2]|0;
  23319. _glBindRenderbuffer(36161,($15|0));
  23320. _glRenderbufferStorage(36161,33189,($1|0),($2|0));
  23321. _glGenFramebuffers(1,($3|0));
  23322. $16 = HEAP32[$3>>2]|0;
  23323. _glBindFramebuffer(36160,($16|0));
  23324. $17 = HEAP32[$4>>2]|0;
  23325. _glFramebufferTexture2D(36160,36064,3553,($17|0),0);
  23326. $18 = HEAP32[$9>>2]|0;
  23327. _glFramebufferRenderbuffer(36160,36096,36161,($18|0));
  23328. $19 = (_glCheckFramebufferStatus(36160)|0);
  23329. $20 = ($19|0)==(36053);
  23330. if ($20) {
  23331. $21 = HEAP32[$3>>2]|0;
  23332. HEAP32[$vararg_buffer9>>2] = $21;
  23333. _TraceLog(0,8556,$vararg_buffer9);
  23334. _glBindFramebuffer(36160,0);
  23335. 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));
  23336. STACKTOP = sp;return;
  23337. }
  23338. _TraceLog(1,8376,$vararg_buffer);
  23339. switch ($19|0) {
  23340. case 36061: {
  23341. _TraceLog(1,8419,$vararg_buffer1);
  23342. break;
  23343. }
  23344. case 36054: {
  23345. _TraceLog(1,8446,$vararg_buffer3);
  23346. break;
  23347. }
  23348. case 36057: {
  23349. _TraceLog(1,8480,$vararg_buffer5);
  23350. break;
  23351. }
  23352. case 36055: {
  23353. _TraceLog(1,8514,$vararg_buffer7);
  23354. break;
  23355. }
  23356. default: {
  23357. }
  23358. }
  23359. _glDeleteTextures(1,($4|0));
  23360. _glDeleteTextures(1,($9|0));
  23361. _glDeleteFramebuffers(1,($3|0));
  23362. _glBindFramebuffer(36160,0);
  23363. 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));
  23364. STACKTOP = sp;return;
  23365. }
  23366. function _rlGetVersion() {
  23367. var label = 0, sp = 0;
  23368. sp = STACKTOP;
  23369. return 4;
  23370. }
  23371. function _DrawTextureRec($0,$1,$2,$3) {
  23372. $0 = $0|0;
  23373. $1 = $1|0;
  23374. $2 = $2|0;
  23375. $3 = $3|0;
  23376. 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;
  23377. 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;
  23378. sp = STACKTOP;
  23379. STACKTOP = STACKTOP + 96|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(96|0);
  23380. $$byval_copy3 = sp + 88|0;
  23381. $tmpcast$byval_copy = sp + 80|0;
  23382. $$byval_copy2 = sp + 64|0;
  23383. $$byval_copy1 = sp + 48|0;
  23384. $$byval_copy = sp + 24|0;
  23385. $4 = sp + 8|0;
  23386. $5 = sp;
  23387. $6 = +HEAPF32[$2>>2];
  23388. $7 = (~~(($6)));
  23389. HEAP32[$4>>2] = $7;
  23390. $8 = ((($4)) + 4|0);
  23391. $9 = ((($2)) + 4|0);
  23392. $10 = +HEAPF32[$9>>2];
  23393. $11 = (~~(($10)));
  23394. HEAP32[$8>>2] = $11;
  23395. $12 = ((($4)) + 8|0);
  23396. $13 = ((($1)) + 8|0);
  23397. $14 = HEAP32[$13>>2]|0;
  23398. $ispos = ($14|0)>(-1);
  23399. $neg = (0 - ($14))|0;
  23400. $15 = $ispos ? $14 : $neg;
  23401. HEAP32[$12>>2] = $15;
  23402. $16 = ((($4)) + 12|0);
  23403. $17 = ((($1)) + 12|0);
  23404. $18 = HEAP32[$17>>2]|0;
  23405. $ispos1 = ($18|0)>(-1);
  23406. $neg2 = (0 - ($18))|0;
  23407. $19 = $ispos1 ? $18 : $neg2;
  23408. HEAP32[$16>>2] = $19;
  23409. $20 = $5;
  23410. $21 = $20;
  23411. HEAP32[$21>>2] = 0;
  23412. $22 = (($20) + 4)|0;
  23413. $23 = $22;
  23414. HEAP32[$23>>2] = 0;
  23415. ;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;
  23416. ;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;
  23417. ;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;
  23418. ;HEAP32[$tmpcast$byval_copy>>2]=HEAP32[$5>>2]|0;HEAP32[$tmpcast$byval_copy+4>>2]=HEAP32[$5+4>>2]|0;
  23419. ;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;
  23420. _DrawTexturePro($$byval_copy,$$byval_copy1,$$byval_copy2,$tmpcast$byval_copy,0.0,$$byval_copy3);
  23421. STACKTOP = sp;return;
  23422. }
  23423. function _MatrixScale($0,$1,$2,$3) {
  23424. $0 = $0|0;
  23425. $1 = +$1;
  23426. $2 = +$2;
  23427. $3 = +$3;
  23428. 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;
  23429. sp = STACKTOP;
  23430. HEAPF32[$0>>2] = $1;
  23431. $$sroa$5$0$$sroa_idx = ((($0)) + 4|0);
  23432. ;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;
  23433. $$sroa$55$0$$sroa_idx6 = ((($0)) + 20|0);
  23434. HEAPF32[$$sroa$55$0$$sroa_idx6>>2] = $2;
  23435. $$sroa$6$0$$sroa_idx = ((($0)) + 24|0);
  23436. ;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;
  23437. $$sroa$611$0$$sroa_idx12 = ((($0)) + 40|0);
  23438. HEAPF32[$$sroa$611$0$$sroa_idx12>>2] = $3;
  23439. $$sroa$7$0$$sroa_idx = ((($0)) + 44|0);
  23440. ;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;
  23441. $$sroa$717$0$$sroa_idx18 = ((($0)) + 60|0);
  23442. HEAPF32[$$sroa$717$0$$sroa_idx18>>2] = 1.0;
  23443. return;
  23444. }
  23445. function _DrawGrid($0,$1) {
  23446. $0 = $0|0;
  23447. $1 = +$1;
  23448. 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;
  23449. sp = STACKTOP;
  23450. $2 = (($0|0) / 2)&-1;
  23451. _rlBegin(1);
  23452. $3 = (0 - ($2))|0;
  23453. $4 = ($2|0)<($3|0);
  23454. if ($4) {
  23455. _rlEnd();
  23456. return;
  23457. }
  23458. $5 = (+($3|0));
  23459. $6 = $5 * $1;
  23460. $7 = (+($2|0));
  23461. $8 = $7 * $1;
  23462. $$024 = $3;
  23463. while(1) {
  23464. $9 = ($$024|0)==(0);
  23465. if ($9) {
  23466. _rlColor3f(0.5,0.5,0.5);
  23467. _rlColor3f(0.5,0.5,0.5);
  23468. _rlColor3f(0.5,0.5,0.5);
  23469. _rlColor3f(0.5,0.5,0.5);
  23470. } else {
  23471. _rlColor3f(0.75,0.75,0.75);
  23472. _rlColor3f(0.75,0.75,0.75);
  23473. _rlColor3f(0.75,0.75,0.75);
  23474. _rlColor3f(0.75,0.75,0.75);
  23475. }
  23476. $10 = (+($$024|0));
  23477. $11 = $10 * $1;
  23478. _rlVertex3f($11,0.0,$6);
  23479. _rlVertex3f($11,0.0,$8);
  23480. _rlVertex3f($6,0.0,$11);
  23481. _rlVertex3f($8,0.0,$11);
  23482. $12 = (($$024) + 1)|0;
  23483. $13 = ($$024|0)<($2|0);
  23484. if ($13) {
  23485. $$024 = $12;
  23486. } else {
  23487. break;
  23488. }
  23489. }
  23490. _rlEnd();
  23491. return;
  23492. }
  23493. function _rlColor3f($0,$1,$2) {
  23494. $0 = +$0;
  23495. $1 = +$1;
  23496. $2 = +$2;
  23497. var $3 = 0.0, $4 = 0, $5 = 0.0, $6 = 0, $7 = 0.0, $8 = 0, label = 0, sp = 0;
  23498. sp = STACKTOP;
  23499. $3 = $0 * 255.0;
  23500. $4 = (~~(($3))&255);
  23501. $5 = $1 * 255.0;
  23502. $6 = (~~(($5))&255);
  23503. $7 = $2 * 255.0;
  23504. $8 = (~~(($7))&255);
  23505. _rlColor4ub($4,$6,$8,-1);
  23506. return;
  23507. }
  23508. function _LoadMesh($0,$1) {
  23509. $0 = $0|0;
  23510. $1 = $1|0;
  23511. 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;
  23512. sp = STACKTOP;
  23513. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  23514. $vararg_buffer = sp;
  23515. $2 = sp + 72|0;
  23516. $3 = sp + 4|0;
  23517. dest=$2; stop=dest+68|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  23518. $4 = (_IsFileExtension($1,8608)|0);
  23519. $5 = ($4|0)==(0);
  23520. if (!($5)) {
  23521. _LoadOBJ($3,$1);
  23522. 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));
  23523. }
  23524. $6 = HEAP32[$2>>2]|0;
  23525. $7 = ($6|0)==(0);
  23526. if ($7) {
  23527. _TraceLog(1,8613,$vararg_buffer);
  23528. } else {
  23529. _rlglLoadMesh($2,0);
  23530. }
  23531. 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));
  23532. STACKTOP = sp;return;
  23533. }
  23534. function _LoadOBJ($0,$1) {
  23535. $0 = $0|0;
  23536. $1 = $1|0;
  23537. 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;
  23538. 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;
  23539. 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;
  23540. 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;
  23541. 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;
  23542. 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;
  23543. 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;
  23544. 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;
  23545. 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;
  23546. 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;
  23547. 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;
  23548. 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;
  23549. 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;
  23550. 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;
  23551. 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;
  23552. 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;
  23553. 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;
  23554. 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;
  23555. 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;
  23556. 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;
  23557. 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;
  23558. 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;
  23559. 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;
  23560. var $vararg_ptr89 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  23561. sp = STACKTOP;
  23562. STACKTOP = STACKTOP + 672|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(672|0);
  23563. $$byval_copy103 = sp + 320|0;
  23564. $$byval_copy102 = sp + 304|0;
  23565. $vararg_buffer90 = sp + 296|0;
  23566. $vararg_buffer79 = sp + 256|0;
  23567. $vararg_buffer71 = sp + 232|0;
  23568. $vararg_buffer63 = sp + 208|0;
  23569. $vararg_buffer58 = sp + 192|0;
  23570. $vararg_buffer55 = sp + 184|0;
  23571. $vararg_buffer52 = sp + 176|0;
  23572. $vararg_buffer49 = sp + 168|0;
  23573. $vararg_buffer44 = sp + 152|0;
  23574. $vararg_buffer41 = sp + 144|0;
  23575. $vararg_buffer36 = sp + 128|0;
  23576. $vararg_buffer33 = sp + 120|0;
  23577. $vararg_buffer29 = sp + 112|0;
  23578. $vararg_buffer26 = sp + 104|0;
  23579. $vararg_buffer23 = sp + 96|0;
  23580. $vararg_buffer11 = sp + 80|0;
  23581. $vararg_buffer7 = sp + 64|0;
  23582. $vararg_buffer4 = sp + 56|0;
  23583. $vararg_buffer1 = sp + 48|0;
  23584. $vararg_buffer = sp + 40|0;
  23585. $$sroa$75 = sp;
  23586. $2 = sp + 664|0;
  23587. $3 = sp + 464|0;
  23588. $4 = sp + 428|0;
  23589. $5 = sp + 416|0;
  23590. $6 = sp + 452|0;
  23591. $7 = sp + 440|0;
  23592. $8 = sp + 404|0;
  23593. $9 = sp + 392|0;
  23594. $10 = sp + 380|0;
  23595. $11 = sp + 368|0;
  23596. $12 = sp + 356|0;
  23597. $13 = sp + 344|0;
  23598. $14 = sp + 332|0;
  23599. dest=$$sroa$75; stop=dest+36|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  23600. $15 = (_fopen($1,13533)|0);
  23601. $16 = ($15|0)==(0|0);
  23602. if ($16) {
  23603. HEAP32[$vararg_buffer>>2] = $1;
  23604. _TraceLog(1,8780,$vararg_buffer);
  23605. $$sroa$75$0$$sroa_idx = ((($0)) + 32|0);
  23606. ;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;
  23607. 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));
  23608. STACKTOP = sp;return;
  23609. }
  23610. $17 = (_feof($15)|0);
  23611. $18 = ($17|0)==(0);
  23612. L5: do {
  23613. if ($18) {
  23614. $$0$ph445 = 0;$$0344$ph444 = 0;$$0345$ph443 = 0;$$0346$ph442 = 0;
  23615. while(1) {
  23616. $$0$ph374433 = $$0$ph445;$$0344$ph373432 = $$0344$ph444;$$0345$ph372431 = $$0345$ph443;
  23617. L8: while(1) {
  23618. $$0$ph377422 = $$0$ph374433;$$0344$ph376421 = $$0344$ph373432;
  23619. L10: while(1) {
  23620. $$0$ph379412 = $$0$ph377422;
  23621. L12: while(1) {
  23622. L14: while(1) {
  23623. HEAP32[$vararg_buffer1>>2] = $2;
  23624. (_fscanf($15,8814,$vararg_buffer1)|0);
  23625. $19 = HEAP8[$2>>0]|0;
  23626. $20 = $19 << 24 >> 24;
  23627. switch ($20|0) {
  23628. case 102: {
  23629. break L8;
  23630. break;
  23631. }
  23632. case 118: {
  23633. break L14;
  23634. break;
  23635. }
  23636. case 117: case 109: case 115: case 103: case 111: case 35: {
  23637. (_fgets($3,200,$15)|0);
  23638. break;
  23639. }
  23640. default: {
  23641. }
  23642. }
  23643. $21 = (_feof($15)|0);
  23644. $22 = ($21|0)==(0);
  23645. if (!($22)) {
  23646. $$0$ph379$lcssa386 = $$0$ph379412;$$0344$ph376$lcssa388 = $$0344$ph376421;$$0345$ph372$lcssa389 = $$0345$ph372431;$$0346$ph$lcssa = $$0346$ph442;
  23647. break L5;
  23648. }
  23649. }
  23650. HEAP32[$vararg_buffer4>>2] = $2;
  23651. (_fscanf($15,8814,$vararg_buffer4)|0);
  23652. $23 = HEAP8[$2>>0]|0;
  23653. switch ($23<<24>>24) {
  23654. case 116: {
  23655. break L10;
  23656. break;
  23657. }
  23658. case 110: {
  23659. break L12;
  23660. break;
  23661. }
  23662. default: {
  23663. }
  23664. }
  23665. $30 = (($$0$ph379412) + 1)|0;
  23666. (_fgets($3,200,$15)|0);
  23667. $31 = (_feof($15)|0);
  23668. $32 = ($31|0)==(0);
  23669. if ($32) {
  23670. $$0$ph379412 = $30;
  23671. } else {
  23672. $$0$ph379$lcssa386 = $30;$$0344$ph376$lcssa388 = $$0344$ph376421;$$0345$ph372$lcssa389 = $$0345$ph372431;$$0346$ph$lcssa = $$0346$ph442;
  23673. break L5;
  23674. }
  23675. }
  23676. $27 = (($$0344$ph376421) + 1)|0;
  23677. (_fgets($3,200,$15)|0);
  23678. $28 = (_feof($15)|0);
  23679. $29 = ($28|0)==(0);
  23680. if ($29) {
  23681. $$0$ph377422 = $$0$ph379412;$$0344$ph376421 = $27;
  23682. } else {
  23683. $$0$ph379$lcssa386 = $$0$ph379412;$$0344$ph376$lcssa388 = $27;$$0345$ph372$lcssa389 = $$0345$ph372431;$$0346$ph$lcssa = $$0346$ph442;
  23684. break L5;
  23685. }
  23686. }
  23687. $24 = (($$0345$ph372431) + 1)|0;
  23688. (_fgets($3,200,$15)|0);
  23689. $25 = (_feof($15)|0);
  23690. $26 = ($25|0)==(0);
  23691. if ($26) {
  23692. $$0$ph374433 = $$0$ph379412;$$0344$ph373432 = $$0344$ph376421;$$0345$ph372431 = $24;
  23693. } else {
  23694. $$0$ph379$lcssa386 = $$0$ph379412;$$0344$ph376$lcssa388 = $$0344$ph376421;$$0345$ph372$lcssa389 = $24;$$0346$ph$lcssa = $$0346$ph442;
  23695. break L5;
  23696. }
  23697. }
  23698. $33 = (($$0346$ph442) + 1)|0;
  23699. (_fgets($3,200,$15)|0);
  23700. $34 = (_feof($15)|0);
  23701. $35 = ($34|0)==(0);
  23702. if ($35) {
  23703. $$0$ph445 = $$0$ph379412;$$0344$ph444 = $$0344$ph376421;$$0345$ph443 = $$0345$ph372431;$$0346$ph442 = $33;
  23704. } else {
  23705. $$0$ph379$lcssa386 = $$0$ph379412;$$0344$ph376$lcssa388 = $$0344$ph376421;$$0345$ph372$lcssa389 = $$0345$ph372431;$$0346$ph$lcssa = $33;
  23706. break;
  23707. }
  23708. }
  23709. } else {
  23710. $$0$ph379$lcssa386 = 0;$$0344$ph376$lcssa388 = 0;$$0345$ph372$lcssa389 = 0;$$0346$ph$lcssa = 0;
  23711. }
  23712. } while(0);
  23713. HEAP32[$vararg_buffer7>>2] = $1;
  23714. $vararg_ptr10 = ((($vararg_buffer7)) + 4|0);
  23715. HEAP32[$vararg_ptr10>>2] = $$0$ph379$lcssa386;
  23716. _TraceLog(3,8817,$vararg_buffer7);
  23717. HEAP32[$vararg_buffer11>>2] = $1;
  23718. $vararg_ptr14 = ((($vararg_buffer11)) + 4|0);
  23719. HEAP32[$vararg_ptr14>>2] = $$0345$ph372$lcssa389;
  23720. _TraceLog(3,8841,$vararg_buffer11);
  23721. HEAP32[$$byval_copy102>>2] = $1;
  23722. $vararg_ptr18 = ((($$byval_copy102)) + 4|0);
  23723. HEAP32[$vararg_ptr18>>2] = $$0344$ph376$lcssa388;
  23724. _TraceLog(3,8866,$$byval_copy102);
  23725. HEAP32[$$byval_copy103>>2] = $1;
  23726. $vararg_ptr22 = ((($$byval_copy103)) + 4|0);
  23727. HEAP32[$vararg_ptr22>>2] = $$0346$ph$lcssa;
  23728. _TraceLog(3,8889,$$byval_copy103);
  23729. $36 = ($$0$ph379$lcssa386*12)|0;
  23730. $37 = (_malloc($36)|0);
  23731. $38 = ($$0344$ph376$lcssa388|0)>(0);
  23732. if ($38) {
  23733. $39 = ($$0344$ph376$lcssa388*12)|0;
  23734. $40 = (_malloc($39)|0);
  23735. $$0357 = $40;$369 = $40;
  23736. } else {
  23737. $$0357 = 0;$369 = 0;
  23738. }
  23739. $41 = ($$0345$ph372$lcssa389|0)>(0);
  23740. if ($41) {
  23741. $42 = $$0345$ph372$lcssa389 << 3;
  23742. $43 = (_malloc($42)|0);
  23743. $$0356 = $43;$370 = $43;
  23744. } else {
  23745. $$0356 = 0;$370 = 0;
  23746. }
  23747. _rewind($15);
  23748. $44 = (_feof($15)|0);
  23749. $45 = ($44|0)==(0);
  23750. L31: do {
  23751. if ($45) {
  23752. $$0353$ph402 = 0;$$0354$ph401 = 0;$$0355$ph400 = 0;
  23753. while(1) {
  23754. $$0353$ph365399 = $$0353$ph402;$$0354$ph364398 = $$0354$ph401;
  23755. L34: while(1) {
  23756. $$0353$ph367397 = $$0353$ph365399;
  23757. L36: while(1) {
  23758. L38: while(1) {
  23759. HEAP32[$vararg_buffer23>>2] = $2;
  23760. (_fscanf($15,8814,$vararg_buffer23)|0);
  23761. $46 = HEAP8[$2>>0]|0;
  23762. $47 = $46 << 24 >> 24;
  23763. switch ($47|0) {
  23764. case 118: {
  23765. break L38;
  23766. break;
  23767. }
  23768. case 102: case 117: case 109: case 115: case 103: case 111: case 35: {
  23769. (_fgets($3,200,$15)|0);
  23770. break;
  23771. }
  23772. default: {
  23773. }
  23774. }
  23775. $48 = (_feof($15)|0);
  23776. $49 = ($48|0)==(0);
  23777. if (!($49)) {
  23778. break L31;
  23779. }
  23780. }
  23781. HEAP32[$vararg_buffer26>>2] = $2;
  23782. (_fscanf($15,8814,$vararg_buffer26)|0);
  23783. $50 = HEAP8[$2>>0]|0;
  23784. switch ($50<<24>>24) {
  23785. case 110: {
  23786. break L36;
  23787. break;
  23788. }
  23789. case 116: {
  23790. break;
  23791. }
  23792. default: {
  23793. break L34;
  23794. }
  23795. }
  23796. $51 = (($$0356) + ($$0353$ph367397<<3)|0);
  23797. $52 = (((($$0356) + ($$0353$ph367397<<3)|0)) + 4|0);
  23798. HEAP32[$vararg_buffer29>>2] = $51;
  23799. $vararg_ptr32 = ((($vararg_buffer29)) + 4|0);
  23800. HEAP32[$vararg_ptr32>>2] = $52;
  23801. (_fscanf($15,8914,$vararg_buffer29)|0);
  23802. $53 = (($$0353$ph367397) + 1)|0;
  23803. HEAP32[$vararg_buffer33>>2] = $2;
  23804. (_fscanf($15,8814,$vararg_buffer33)|0);
  23805. $54 = (_feof($15)|0);
  23806. $55 = ($54|0)==(0);
  23807. if ($55) {
  23808. $$0353$ph367397 = $53;
  23809. } else {
  23810. break L31;
  23811. }
  23812. }
  23813. $56 = (($$0357) + (($$0354$ph364398*12)|0)|0);
  23814. $57 = (((($$0357) + (($$0354$ph364398*12)|0)|0)) + 4|0);
  23815. $58 = (((($$0357) + (($$0354$ph364398*12)|0)|0)) + 8|0);
  23816. HEAP32[$vararg_buffer36>>2] = $56;
  23817. $vararg_ptr39 = ((($vararg_buffer36)) + 4|0);
  23818. HEAP32[$vararg_ptr39>>2] = $57;
  23819. $vararg_ptr40 = ((($vararg_buffer36)) + 8|0);
  23820. HEAP32[$vararg_ptr40>>2] = $58;
  23821. (_fscanf($15,8928,$vararg_buffer36)|0);
  23822. $59 = (($$0354$ph364398) + 1)|0;
  23823. HEAP32[$vararg_buffer41>>2] = $2;
  23824. (_fscanf($15,8814,$vararg_buffer41)|0);
  23825. $60 = (_feof($15)|0);
  23826. $61 = ($60|0)==(0);
  23827. if ($61) {
  23828. $$0353$ph365399 = $$0353$ph367397;$$0354$ph364398 = $59;
  23829. } else {
  23830. break L31;
  23831. }
  23832. }
  23833. $62 = (($37) + (($$0355$ph400*12)|0)|0);
  23834. $63 = (((($37) + (($$0355$ph400*12)|0)|0)) + 4|0);
  23835. $64 = (((($37) + (($$0355$ph400*12)|0)|0)) + 8|0);
  23836. HEAP32[$vararg_buffer44>>2] = $62;
  23837. $vararg_ptr47 = ((($vararg_buffer44)) + 4|0);
  23838. HEAP32[$vararg_ptr47>>2] = $63;
  23839. $vararg_ptr48 = ((($vararg_buffer44)) + 8|0);
  23840. HEAP32[$vararg_ptr48>>2] = $64;
  23841. (_fscanf($15,8928,$vararg_buffer44)|0);
  23842. $65 = (($$0355$ph400) + 1)|0;
  23843. HEAP32[$vararg_buffer49>>2] = $2;
  23844. (_fscanf($15,8814,$vararg_buffer49)|0);
  23845. $66 = (_feof($15)|0);
  23846. $67 = ($66|0)==(0);
  23847. if ($67) {
  23848. $$0353$ph402 = $$0353$ph367397;$$0354$ph401 = $$0354$ph364398;$$0355$ph400 = $65;
  23849. } else {
  23850. break;
  23851. }
  23852. }
  23853. }
  23854. } while(0);
  23855. $68 = ($$0346$ph$lcssa*3)|0;
  23856. $69 = ($$0346$ph$lcssa*9)|0;
  23857. $70 = ($$0346$ph$lcssa*36)|0;
  23858. $71 = (_malloc($70)|0);
  23859. $72 = ($$0346$ph$lcssa*6)|0;
  23860. $73 = ($$0346$ph$lcssa*24)|0;
  23861. $74 = (_malloc($73)|0);
  23862. $75 = (_malloc($70)|0);
  23863. _rewind($15);
  23864. $76 = ($$0344$ph376$lcssa388|0)==(0);
  23865. if ($76) {
  23866. HEAP32[$vararg_buffer52>>2] = $1;
  23867. _TraceLog(0,8937,$vararg_buffer52);
  23868. }
  23869. $77 = ($$0345$ph372$lcssa389|0)==(0);
  23870. $78 = $$0344$ph376$lcssa388 | $$0345$ph372$lcssa389;
  23871. $79 = ($78|0)==(0);
  23872. $80 = ((($vararg_buffer11)) + 4|0);
  23873. $81 = ((($vararg_buffer11)) + 8|0);
  23874. $82 = ((($vararg_buffer11)) + 4|0);
  23875. $83 = ((($vararg_buffer11)) + 8|0);
  23876. $84 = ((($4)) + 4|0);
  23877. $85 = ((($4)) + 8|0);
  23878. $86 = ((($5)) + 4|0);
  23879. $87 = ((($5)) + 8|0);
  23880. $88 = ((($vararg_buffer11)) + 4|0);
  23881. $89 = ((($vararg_buffer7)) + 4|0);
  23882. $90 = ((($vararg_buffer11)) + 8|0);
  23883. $91 = ((($vararg_buffer7)) + 8|0);
  23884. $92 = ((($vararg_buffer11)) + 4|0);
  23885. $93 = ((($4)) + 4|0);
  23886. $94 = ((($vararg_buffer11)) + 8|0);
  23887. $95 = ((($4)) + 8|0);
  23888. $96 = ((($vararg_buffer11)) + 4|0);
  23889. $97 = ((($vararg_buffer7)) + 4|0);
  23890. $98 = ((($4)) + 4|0);
  23891. $99 = ((($vararg_buffer11)) + 8|0);
  23892. $100 = ((($vararg_buffer7)) + 8|0);
  23893. $101 = ((($4)) + 8|0);
  23894. $102 = ((($vararg_buffer7)) + 4|0);
  23895. $103 = ((($vararg_buffer7)) + 8|0);
  23896. $$0350$ph$ph = 0;$$0351$ph$ph = 0;$$0352$ph$ph = 0;
  23897. L51: while(1) {
  23898. $$0350$ph = $$0350$ph$ph;$$0352$ph = $$0352$ph$ph;
  23899. while(1) {
  23900. $104 = (_feof($15)|0);
  23901. $105 = ($104|0)==(0);
  23902. if (!($105)) {
  23903. break L51;
  23904. }
  23905. L55: while(1) {
  23906. HEAP32[$vararg_buffer55>>2] = $2;
  23907. (_fscanf($15,8814,$vararg_buffer55)|0);
  23908. $106 = HEAP8[$2>>0]|0;
  23909. $107 = $106 << 24 >> 24;
  23910. switch ($107|0) {
  23911. case 102: {
  23912. break L55;
  23913. break;
  23914. }
  23915. case 118: case 117: case 109: case 115: case 103: case 111: case 35: {
  23916. (_fgets($3,200,$15)|0);
  23917. break;
  23918. }
  23919. default: {
  23920. }
  23921. }
  23922. $108 = (_feof($15)|0);
  23923. $109 = ($108|0)==(0);
  23924. if (!($109)) {
  23925. break L51;
  23926. }
  23927. }
  23928. do {
  23929. if ($79) {
  23930. HEAP32[$vararg_buffer58>>2] = $vararg_buffer11;
  23931. $vararg_ptr61 = ((($vararg_buffer58)) + 4|0);
  23932. HEAP32[$vararg_ptr61>>2] = $80;
  23933. $vararg_ptr62 = ((($vararg_buffer58)) + 8|0);
  23934. HEAP32[$vararg_ptr62>>2] = $81;
  23935. (_fscanf($15,9008,$vararg_buffer58)|0);
  23936. } else {
  23937. if ($76) {
  23938. HEAP32[$vararg_buffer63>>2] = $vararg_buffer11;
  23939. $vararg_ptr66 = ((($vararg_buffer63)) + 4|0);
  23940. HEAP32[$vararg_ptr66>>2] = $vararg_buffer7;
  23941. $vararg_ptr67 = ((($vararg_buffer63)) + 8|0);
  23942. HEAP32[$vararg_ptr67>>2] = $88;
  23943. $vararg_ptr68 = ((($vararg_buffer63)) + 12|0);
  23944. HEAP32[$vararg_ptr68>>2] = $89;
  23945. $vararg_ptr69 = ((($vararg_buffer63)) + 16|0);
  23946. HEAP32[$vararg_ptr69>>2] = $90;
  23947. $vararg_ptr70 = ((($vararg_buffer63)) + 20|0);
  23948. HEAP32[$vararg_ptr70>>2] = $91;
  23949. (_fscanf($15,9017,$vararg_buffer63)|0);
  23950. break;
  23951. }
  23952. if ($77) {
  23953. HEAP32[$vararg_buffer71>>2] = $vararg_buffer11;
  23954. $vararg_ptr74 = ((($vararg_buffer71)) + 4|0);
  23955. HEAP32[$vararg_ptr74>>2] = $4;
  23956. $vararg_ptr75 = ((($vararg_buffer71)) + 8|0);
  23957. HEAP32[$vararg_ptr75>>2] = $92;
  23958. $vararg_ptr76 = ((($vararg_buffer71)) + 12|0);
  23959. HEAP32[$vararg_ptr76>>2] = $93;
  23960. $vararg_ptr77 = ((($vararg_buffer71)) + 16|0);
  23961. HEAP32[$vararg_ptr77>>2] = $94;
  23962. $vararg_ptr78 = ((($vararg_buffer71)) + 20|0);
  23963. HEAP32[$vararg_ptr78>>2] = $95;
  23964. (_fscanf($15,9035,$vararg_buffer71)|0);
  23965. break;
  23966. } else {
  23967. HEAP32[$vararg_buffer79>>2] = $vararg_buffer11;
  23968. $vararg_ptr82 = ((($vararg_buffer79)) + 4|0);
  23969. HEAP32[$vararg_ptr82>>2] = $vararg_buffer7;
  23970. $vararg_ptr83 = ((($vararg_buffer79)) + 8|0);
  23971. HEAP32[$vararg_ptr83>>2] = $4;
  23972. $vararg_ptr84 = ((($vararg_buffer79)) + 12|0);
  23973. HEAP32[$vararg_ptr84>>2] = $96;
  23974. $vararg_ptr85 = ((($vararg_buffer79)) + 16|0);
  23975. HEAP32[$vararg_ptr85>>2] = $97;
  23976. $vararg_ptr86 = ((($vararg_buffer79)) + 20|0);
  23977. HEAP32[$vararg_ptr86>>2] = $98;
  23978. $vararg_ptr87 = ((($vararg_buffer79)) + 24|0);
  23979. HEAP32[$vararg_ptr87>>2] = $99;
  23980. $vararg_ptr88 = ((($vararg_buffer79)) + 28|0);
  23981. HEAP32[$vararg_ptr88>>2] = $100;
  23982. $vararg_ptr89 = ((($vararg_buffer79)) + 32|0);
  23983. HEAP32[$vararg_ptr89>>2] = $101;
  23984. (_fscanf($15,9056,$vararg_buffer79)|0);
  23985. break;
  23986. }
  23987. }
  23988. } while(0);
  23989. $110 = HEAP32[$vararg_buffer11>>2]|0;
  23990. $111 = (($110) + -1)|0;
  23991. $112 = (($37) + (($111*12)|0)|0);
  23992. $113 = HEAP32[$112>>2]|0;
  23993. $114 = (($71) + ($$0352$ph<<2)|0);
  23994. HEAP32[$114>>2] = $113;
  23995. $115 = (((($37) + (($111*12)|0)|0)) + 4|0);
  23996. $116 = HEAP32[$115>>2]|0;
  23997. $117 = (($$0352$ph) + 1)|0;
  23998. $118 = (($71) + ($117<<2)|0);
  23999. HEAP32[$118>>2] = $116;
  24000. $119 = (((($37) + (($111*12)|0)|0)) + 8|0);
  24001. $120 = HEAP32[$119>>2]|0;
  24002. $121 = (($$0352$ph) + 2)|0;
  24003. $122 = (($71) + ($121<<2)|0);
  24004. HEAP32[$122>>2] = $120;
  24005. $123 = (($$0352$ph) + 3)|0;
  24006. $124 = HEAP32[$82>>2]|0;
  24007. $125 = (($124) + -1)|0;
  24008. $126 = (($37) + (($125*12)|0)|0);
  24009. $127 = HEAP32[$126>>2]|0;
  24010. $128 = (($71) + ($123<<2)|0);
  24011. HEAP32[$128>>2] = $127;
  24012. $129 = (((($37) + (($125*12)|0)|0)) + 4|0);
  24013. $130 = HEAP32[$129>>2]|0;
  24014. $131 = (($$0352$ph) + 4)|0;
  24015. $132 = (($71) + ($131<<2)|0);
  24016. HEAP32[$132>>2] = $130;
  24017. $133 = (((($37) + (($125*12)|0)|0)) + 8|0);
  24018. $134 = HEAP32[$133>>2]|0;
  24019. $135 = (($$0352$ph) + 5)|0;
  24020. $136 = (($71) + ($135<<2)|0);
  24021. HEAP32[$136>>2] = $134;
  24022. $137 = (($$0352$ph) + 6)|0;
  24023. $138 = HEAP32[$83>>2]|0;
  24024. $139 = (($138) + -1)|0;
  24025. $140 = (($37) + (($139*12)|0)|0);
  24026. $141 = HEAP32[$140>>2]|0;
  24027. $142 = (($71) + ($137<<2)|0);
  24028. HEAP32[$142>>2] = $141;
  24029. $143 = (((($37) + (($139*12)|0)|0)) + 4|0);
  24030. $144 = HEAP32[$143>>2]|0;
  24031. $145 = (($$0352$ph) + 7)|0;
  24032. $146 = (($71) + ($145<<2)|0);
  24033. HEAP32[$146>>2] = $144;
  24034. $147 = (((($37) + (($139*12)|0)|0)) + 8|0);
  24035. $148 = HEAP32[$147>>2]|0;
  24036. $149 = (($$0352$ph) + 8)|0;
  24037. $150 = (($71) + ($149<<2)|0);
  24038. HEAP32[$150>>2] = $148;
  24039. $151 = (($$0352$ph) + 9)|0;
  24040. if ($38) {
  24041. $152 = HEAP32[$4>>2]|0;
  24042. $153 = (($152) + -1)|0;
  24043. $154 = (($$0357) + (($153*12)|0)|0);
  24044. $155 = HEAP32[$154>>2]|0;
  24045. $156 = (($75) + ($$0350$ph<<2)|0);
  24046. HEAP32[$156>>2] = $155;
  24047. $157 = (((($$0357) + (($153*12)|0)|0)) + 4|0);
  24048. $158 = HEAP32[$157>>2]|0;
  24049. $159 = (($$0350$ph) + 1)|0;
  24050. $160 = (($75) + ($159<<2)|0);
  24051. HEAP32[$160>>2] = $158;
  24052. $161 = (((($$0357) + (($153*12)|0)|0)) + 8|0);
  24053. $162 = HEAP32[$161>>2]|0;
  24054. $163 = (($$0350$ph) + 2)|0;
  24055. $164 = (($75) + ($163<<2)|0);
  24056. HEAP32[$164>>2] = $162;
  24057. $165 = (($$0350$ph) + 3)|0;
  24058. $166 = HEAP32[$84>>2]|0;
  24059. $167 = (($166) + -1)|0;
  24060. $168 = (($$0357) + (($167*12)|0)|0);
  24061. $169 = HEAP32[$168>>2]|0;
  24062. $170 = (($75) + ($165<<2)|0);
  24063. HEAP32[$170>>2] = $169;
  24064. $171 = (((($$0357) + (($167*12)|0)|0)) + 4|0);
  24065. $172 = HEAP32[$171>>2]|0;
  24066. $173 = (($$0350$ph) + 4)|0;
  24067. $174 = (($75) + ($173<<2)|0);
  24068. HEAP32[$174>>2] = $172;
  24069. $175 = (((($$0357) + (($167*12)|0)|0)) + 8|0);
  24070. $176 = HEAP32[$175>>2]|0;
  24071. $177 = (($$0350$ph) + 5)|0;
  24072. $178 = (($75) + ($177<<2)|0);
  24073. HEAP32[$178>>2] = $176;
  24074. $179 = (($$0350$ph) + 6)|0;
  24075. $180 = HEAP32[$85>>2]|0;
  24076. $181 = (($180) + -1)|0;
  24077. $182 = (($$0357) + (($181*12)|0)|0);
  24078. $183 = HEAP32[$182>>2]|0;
  24079. $184 = (($75) + ($179<<2)|0);
  24080. HEAP32[$184>>2] = $183;
  24081. $185 = (((($$0357) + (($181*12)|0)|0)) + 4|0);
  24082. $186 = HEAP32[$185>>2]|0;
  24083. $187 = (($$0350$ph) + 7)|0;
  24084. $188 = (($75) + ($187<<2)|0);
  24085. HEAP32[$188>>2] = $186;
  24086. $189 = (((($$0357) + (($181*12)|0)|0)) + 8|0);
  24087. $190 = HEAP32[$189>>2]|0;
  24088. $191 = (($$0350$ph) + 8)|0;
  24089. $192 = (($75) + ($191<<2)|0);
  24090. HEAP32[$192>>2] = $190;
  24091. } else {
  24092. $193 = HEAP32[$82>>2]|0;
  24093. $194 = (($193) + -1)|0;
  24094. $195 = (($37) + (($194*12)|0)|0);
  24095. $196 = HEAP32[$vararg_buffer11>>2]|0;
  24096. $197 = (($196) + -1)|0;
  24097. $198 = (($37) + (($197*12)|0)|0);
  24098. ;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;
  24099. ;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;
  24100. _VectorSubtract($6,$$byval_copy102,$$byval_copy103);
  24101. $199 = HEAP32[$83>>2]|0;
  24102. $200 = (($199) + -1)|0;
  24103. $201 = (($37) + (($200*12)|0)|0);
  24104. $202 = HEAP32[$vararg_buffer11>>2]|0;
  24105. $203 = (($202) + -1)|0;
  24106. $204 = (($37) + (($203*12)|0)|0);
  24107. ;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;
  24108. ;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;
  24109. _VectorSubtract($7,$$byval_copy102,$$byval_copy103);
  24110. ;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;
  24111. ;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;
  24112. _VectorCrossProduct($5,$$byval_copy102,$$byval_copy103);
  24113. _VectorNormalize($5);
  24114. $205 = HEAP32[$5>>2]|0;
  24115. $206 = (($75) + ($$0350$ph<<2)|0);
  24116. HEAP32[$206>>2] = $205;
  24117. $207 = HEAP32[$86>>2]|0;
  24118. $208 = (($$0350$ph) + 1)|0;
  24119. $209 = (($75) + ($208<<2)|0);
  24120. HEAP32[$209>>2] = $207;
  24121. $210 = HEAP32[$87>>2]|0;
  24122. $211 = (($$0350$ph) + 2)|0;
  24123. $212 = (($75) + ($211<<2)|0);
  24124. HEAP32[$212>>2] = $210;
  24125. $213 = (($$0350$ph) + 3)|0;
  24126. $214 = HEAP32[$5>>2]|0;
  24127. $215 = (($75) + ($213<<2)|0);
  24128. HEAP32[$215>>2] = $214;
  24129. $216 = HEAP32[$86>>2]|0;
  24130. $217 = (($$0350$ph) + 4)|0;
  24131. $218 = (($75) + ($217<<2)|0);
  24132. HEAP32[$218>>2] = $216;
  24133. $219 = HEAP32[$87>>2]|0;
  24134. $220 = (($$0350$ph) + 5)|0;
  24135. $221 = (($75) + ($220<<2)|0);
  24136. HEAP32[$221>>2] = $219;
  24137. $222 = (($$0350$ph) + 6)|0;
  24138. $223 = HEAP32[$5>>2]|0;
  24139. $224 = (($75) + ($222<<2)|0);
  24140. HEAP32[$224>>2] = $223;
  24141. $225 = HEAP32[$86>>2]|0;
  24142. $226 = (($$0350$ph) + 7)|0;
  24143. $227 = (($75) + ($226<<2)|0);
  24144. HEAP32[$227>>2] = $225;
  24145. $228 = HEAP32[$87>>2]|0;
  24146. $229 = (($$0350$ph) + 8)|0;
  24147. $230 = (($75) + ($229<<2)|0);
  24148. HEAP32[$230>>2] = $228;
  24149. }
  24150. $$1 = (($$0350$ph) + 9)|0;
  24151. if ($41) {
  24152. break;
  24153. } else {
  24154. $$0350$ph = $$1;$$0352$ph = $151;
  24155. }
  24156. }
  24157. $231 = HEAP32[$vararg_buffer7>>2]|0;
  24158. $232 = (($231) + -1)|0;
  24159. $233 = (($$0356) + ($232<<3)|0);
  24160. $234 = HEAP32[$233>>2]|0;
  24161. $235 = (($74) + ($$0351$ph$ph<<2)|0);
  24162. HEAP32[$235>>2] = $234;
  24163. $236 = (((($$0356) + ($232<<3)|0)) + 4|0);
  24164. $237 = +HEAPF32[$236>>2];
  24165. $238 = 1.0 - $237;
  24166. $239 = $$0351$ph$ph | 1;
  24167. $240 = (($74) + ($239<<2)|0);
  24168. HEAPF32[$240>>2] = $238;
  24169. $241 = (($$0351$ph$ph) + 2)|0;
  24170. $242 = HEAP32[$102>>2]|0;
  24171. $243 = (($242) + -1)|0;
  24172. $244 = (($$0356) + ($243<<3)|0);
  24173. $245 = HEAP32[$244>>2]|0;
  24174. $246 = (($74) + ($241<<2)|0);
  24175. HEAP32[$246>>2] = $245;
  24176. $247 = (((($$0356) + ($243<<3)|0)) + 4|0);
  24177. $248 = +HEAPF32[$247>>2];
  24178. $249 = 1.0 - $248;
  24179. $250 = (($$0351$ph$ph) + 3)|0;
  24180. $251 = (($74) + ($250<<2)|0);
  24181. HEAPF32[$251>>2] = $249;
  24182. $252 = (($$0351$ph$ph) + 4)|0;
  24183. $253 = HEAP32[$103>>2]|0;
  24184. $254 = (($253) + -1)|0;
  24185. $255 = (($$0356) + ($254<<3)|0);
  24186. $256 = HEAP32[$255>>2]|0;
  24187. $257 = (($74) + ($252<<2)|0);
  24188. HEAP32[$257>>2] = $256;
  24189. $258 = (((($$0356) + ($254<<3)|0)) + 4|0);
  24190. $259 = +HEAPF32[$258>>2];
  24191. $260 = 1.0 - $259;
  24192. $261 = (($$0351$ph$ph) + 5)|0;
  24193. $262 = (($74) + ($261<<2)|0);
  24194. HEAPF32[$262>>2] = $260;
  24195. $263 = (($$0351$ph$ph) + 6)|0;
  24196. $$0350$ph$ph = $$1;$$0351$ph$ph = $263;$$0352$ph$ph = $151;
  24197. }
  24198. (_fclose($15)|0);
  24199. $264 = ($$0345$ph372$lcssa389|0)==(0);
  24200. if ($264) {
  24201. $265 = ($72|0)>(0);
  24202. if ($265) {
  24203. $368 = ($$0346$ph$lcssa*24)|0;
  24204. _memset(($74|0),0,($368|0))|0;
  24205. $$sroa$64$0 = 0;
  24206. } else {
  24207. $$sroa$64$0 = 0;
  24208. }
  24209. } else {
  24210. $266 = (_malloc($70)|0);
  24211. $267 = ($69|0)>(0);
  24212. if ($267) {
  24213. $268 = ((($5)) + 4|0);
  24214. $269 = ((($5)) + 8|0);
  24215. $270 = ((($8)) + 4|0);
  24216. $271 = ((($8)) + 8|0);
  24217. $272 = ((($9)) + 4|0);
  24218. $273 = ((($9)) + 8|0);
  24219. $274 = ((($12)) + 4|0);
  24220. $275 = ((($10)) + 4|0);
  24221. $276 = ((($12)) + 8|0);
  24222. $277 = ((($10)) + 8|0);
  24223. $278 = ((($13)) + 4|0);
  24224. $279 = ((($11)) + 4|0);
  24225. $280 = ((($13)) + 8|0);
  24226. $281 = ((($11)) + 8|0);
  24227. $282 = ((($14)) + 4|0);
  24228. $283 = ((($14)) + 8|0);
  24229. $$0347392 = 0;$$0348391 = 0;
  24230. while(1) {
  24231. $284 = (($71) + ($$0348391<<2)|0);
  24232. $285 = HEAP32[$284>>2]|0;
  24233. HEAP32[$5>>2] = $285;
  24234. $286 = (($$0348391) + 1)|0;
  24235. $287 = (($71) + ($286<<2)|0);
  24236. $288 = HEAP32[$287>>2]|0;
  24237. HEAP32[$268>>2] = $288;
  24238. $289 = (($$0348391) + 2)|0;
  24239. $290 = (($71) + ($289<<2)|0);
  24240. $291 = HEAP32[$290>>2]|0;
  24241. HEAP32[$269>>2] = $291;
  24242. $292 = (($$0348391) + 3)|0;
  24243. $293 = (($71) + ($292<<2)|0);
  24244. $294 = HEAP32[$293>>2]|0;
  24245. HEAP32[$8>>2] = $294;
  24246. $295 = (($$0348391) + 4)|0;
  24247. $296 = (($71) + ($295<<2)|0);
  24248. $297 = HEAP32[$296>>2]|0;
  24249. HEAP32[$270>>2] = $297;
  24250. $298 = (($$0348391) + 5)|0;
  24251. $299 = (($71) + ($298<<2)|0);
  24252. $300 = HEAP32[$299>>2]|0;
  24253. HEAP32[$271>>2] = $300;
  24254. $301 = (($$0348391) + 6)|0;
  24255. $302 = (($71) + ($301<<2)|0);
  24256. $303 = HEAP32[$302>>2]|0;
  24257. HEAP32[$9>>2] = $303;
  24258. $304 = (($$0348391) + 7)|0;
  24259. $305 = (($71) + ($304<<2)|0);
  24260. $306 = HEAP32[$305>>2]|0;
  24261. HEAP32[$272>>2] = $306;
  24262. $307 = (($$0348391) + 8)|0;
  24263. $308 = (($71) + ($307<<2)|0);
  24264. $309 = HEAP32[$308>>2]|0;
  24265. HEAP32[$273>>2] = $309;
  24266. $310 = (($74) + ($$0347392<<2)|0);
  24267. $311 = +HEAPF32[$310>>2];
  24268. $312 = $$0347392 | 1;
  24269. $313 = (($74) + ($312<<2)|0);
  24270. $314 = +HEAPF32[$313>>2];
  24271. $315 = (($$0347392) + 2)|0;
  24272. $316 = (($74) + ($315<<2)|0);
  24273. $317 = +HEAPF32[$316>>2];
  24274. $318 = (($$0347392) + 3)|0;
  24275. $319 = (($74) + ($318<<2)|0);
  24276. $320 = +HEAPF32[$319>>2];
  24277. $321 = (($$0347392) + 4)|0;
  24278. $322 = (($74) + ($321<<2)|0);
  24279. $323 = +HEAPF32[$322>>2];
  24280. $324 = (($$0347392) + 5)|0;
  24281. $325 = (($74) + ($324<<2)|0);
  24282. $326 = +HEAPF32[$325>>2];
  24283. ;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;
  24284. ;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;
  24285. _VectorSubtract($10,$$byval_copy102,$$byval_copy103);
  24286. ;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;
  24287. ;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;
  24288. _VectorSubtract($11,$$byval_copy102,$$byval_copy103);
  24289. $327 = $317 - $311;
  24290. $328 = $320 - $314;
  24291. $329 = $323 - $311;
  24292. $330 = $326 - $314;
  24293. $331 = $327 * $330;
  24294. $332 = $328 * $329;
  24295. $333 = $331 - $332;
  24296. $334 = 1.0 / $333;
  24297. $335 = +HEAPF32[$10>>2];
  24298. $336 = $330 * $335;
  24299. HEAPF32[$12>>2] = $336;
  24300. $337 = +HEAPF32[$275>>2];
  24301. $338 = $330 * $337;
  24302. HEAPF32[$274>>2] = $338;
  24303. $339 = +HEAPF32[$277>>2];
  24304. $340 = $330 * $339;
  24305. HEAPF32[$276>>2] = $340;
  24306. $341 = +HEAPF32[$11>>2];
  24307. $342 = $328 * $341;
  24308. HEAPF32[$13>>2] = $342;
  24309. $343 = +HEAPF32[$279>>2];
  24310. $344 = $328 * $343;
  24311. HEAPF32[$278>>2] = $344;
  24312. $345 = +HEAPF32[$281>>2];
  24313. $346 = $328 * $345;
  24314. HEAPF32[$280>>2] = $346;
  24315. ;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;
  24316. ;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;
  24317. _VectorSubtract($14,$$byval_copy102,$$byval_copy103);
  24318. _VectorScale($14,$334);
  24319. $347 = HEAP32[$14>>2]|0;
  24320. $348 = (($266) + ($$0348391<<2)|0);
  24321. HEAP32[$348>>2] = $347;
  24322. $349 = HEAP32[$282>>2]|0;
  24323. $350 = (($266) + ($286<<2)|0);
  24324. HEAP32[$350>>2] = $349;
  24325. $351 = HEAP32[$283>>2]|0;
  24326. $352 = (($266) + ($289<<2)|0);
  24327. HEAP32[$352>>2] = $351;
  24328. $353 = HEAP32[$14>>2]|0;
  24329. $354 = (($266) + ($292<<2)|0);
  24330. HEAP32[$354>>2] = $353;
  24331. $355 = HEAP32[$282>>2]|0;
  24332. $356 = (($266) + ($295<<2)|0);
  24333. HEAP32[$356>>2] = $355;
  24334. $357 = HEAP32[$283>>2]|0;
  24335. $358 = (($266) + ($298<<2)|0);
  24336. HEAP32[$358>>2] = $357;
  24337. $359 = HEAP32[$14>>2]|0;
  24338. $360 = (($266) + ($301<<2)|0);
  24339. HEAP32[$360>>2] = $359;
  24340. $361 = HEAP32[$282>>2]|0;
  24341. $362 = (($266) + ($304<<2)|0);
  24342. HEAP32[$362>>2] = $361;
  24343. $363 = HEAP32[$283>>2]|0;
  24344. $364 = (($266) + ($307<<2)|0);
  24345. HEAP32[$364>>2] = $363;
  24346. $365 = (($$0348391) + 9)|0;
  24347. $366 = (($$0347392) + 6)|0;
  24348. $367 = ($365|0)<($69|0);
  24349. if ($367) {
  24350. $$0347392 = $366;$$0348391 = $365;
  24351. } else {
  24352. $$sroa$64$0 = $266;
  24353. break;
  24354. }
  24355. }
  24356. } else {
  24357. $$sroa$64$0 = $266;
  24358. }
  24359. }
  24360. _free($37);
  24361. _free($369);
  24362. _free($370);
  24363. HEAP32[$vararg_buffer90>>2] = $1;
  24364. _TraceLog(0,9083,$vararg_buffer90);
  24365. HEAP32[$0>>2] = $68;
  24366. $$sroa$12$0$$sroa_idx244 = ((($0)) + 4|0);
  24367. HEAP32[$$sroa$12$0$$sroa_idx244>>2] = 0;
  24368. $$sroa$12247$0$$sroa_idx249 = ((($0)) + 8|0);
  24369. HEAP32[$$sroa$12247$0$$sroa_idx249>>2] = $71;
  24370. $$sroa$31$0$$sroa_idx270 = ((($0)) + 12|0);
  24371. HEAP32[$$sroa$31$0$$sroa_idx270>>2] = $74;
  24372. $$sroa$45$0$$sroa_idx286 = ((($0)) + 16|0);
  24373. HEAP32[$$sroa$45$0$$sroa_idx286>>2] = 0;
  24374. $$sroa$45289$0$$sroa_idx291 = ((($0)) + 20|0);
  24375. HEAP32[$$sroa$45289$0$$sroa_idx291>>2] = $75;
  24376. $$sroa$64$0$$sroa_idx312 = ((($0)) + 24|0);
  24377. HEAP32[$$sroa$64$0$$sroa_idx312>>2] = $$sroa$64$0;
  24378. $$sroa$74$0$$sroa_idx324 = ((($0)) + 28|0);
  24379. HEAP32[$$sroa$74$0$$sroa_idx324>>2] = 0;
  24380. $$sroa$75$0$$sroa_idx328 = ((($0)) + 32|0);
  24381. 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));
  24382. STACKTOP = sp;return;
  24383. }
  24384. function _rlglLoadMesh($0,$1) {
  24385. $0 = $0|0;
  24386. $1 = $1|0;
  24387. 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;
  24388. 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;
  24389. 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;
  24390. 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;
  24391. var $82 = 0, $83 = 0, $84 = 0, $85 = 0, $9 = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, $vararg_buffer3 = 0, label = 0, sp = 0;
  24392. sp = STACKTOP;
  24393. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  24394. $vararg_buffer3 = sp + 16|0;
  24395. $vararg_buffer1 = sp + 8|0;
  24396. $vararg_buffer = sp;
  24397. $2 = sp + 48|0;
  24398. $3 = sp + 20|0;
  24399. $4 = ((($0)) + 36|0);
  24400. $5 = ((($0)) + 40|0);
  24401. $6 = ((($0)) + 44|0);
  24402. $7 = ((($0)) + 48|0);
  24403. $8 = ((($0)) + 52|0);
  24404. $9 = ((($0)) + 56|0);
  24405. $10 = ((($0)) + 60|0);
  24406. $11 = ((($0)) + 64|0);
  24407. $12 = ($1|0)!=(0);
  24408. $$ = $12 ? 35048 : 35044;
  24409. ;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;
  24410. HEAP32[$2>>2] = 0;
  24411. ;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;
  24412. $13 = HEAP32[5259]|0;
  24413. $14 = ($13|0)==(0);
  24414. if (!($14)) {
  24415. $15 = HEAP32[5633]|0;
  24416. FUNCTION_TABLE_vii[$15 & 63](1,$2);
  24417. $16 = HEAP32[5260]|0;
  24418. $17 = HEAP32[$2>>2]|0;
  24419. FUNCTION_TABLE_vi[$16 & 31]($17);
  24420. }
  24421. _glGenBuffers(1,($3|0));
  24422. $18 = HEAP32[$3>>2]|0;
  24423. _glBindBuffer(34962,($18|0));
  24424. $19 = HEAP32[$0>>2]|0;
  24425. $20 = ($19*12)|0;
  24426. $21 = ((($0)) + 8|0);
  24427. $22 = HEAP32[$21>>2]|0;
  24428. _glBufferData(34962,($20|0),($22|0),($$|0));
  24429. _glVertexAttribPointer(0,3,5126,0,0,(0|0));
  24430. _glEnableVertexAttribArray(0);
  24431. $23 = ((($3)) + 4|0);
  24432. _glGenBuffers(1,($23|0));
  24433. $24 = HEAP32[$23>>2]|0;
  24434. _glBindBuffer(34962,($24|0));
  24435. $25 = HEAP32[$0>>2]|0;
  24436. $26 = $25 << 3;
  24437. $27 = ((($0)) + 12|0);
  24438. $28 = HEAP32[$27>>2]|0;
  24439. _glBufferData(34962,($26|0),($28|0),($$|0));
  24440. _glVertexAttribPointer(1,2,5126,0,0,(0|0));
  24441. _glEnableVertexAttribArray(1);
  24442. $29 = ((($0)) + 20|0);
  24443. $30 = HEAP32[$29>>2]|0;
  24444. $31 = ($30|0)==(0|0);
  24445. if ($31) {
  24446. _glVertexAttrib3f(2,1.0,1.0,1.0);
  24447. _glDisableVertexAttribArray(2);
  24448. } else {
  24449. $32 = ((($3)) + 8|0);
  24450. _glGenBuffers(1,($32|0));
  24451. $33 = HEAP32[$32>>2]|0;
  24452. _glBindBuffer(34962,($33|0));
  24453. $34 = HEAP32[$0>>2]|0;
  24454. $35 = ($34*12)|0;
  24455. $36 = HEAP32[$29>>2]|0;
  24456. _glBufferData(34962,($35|0),($36|0),($$|0));
  24457. _glVertexAttribPointer(2,3,5126,0,0,(0|0));
  24458. _glEnableVertexAttribArray(2);
  24459. }
  24460. $37 = ((($0)) + 28|0);
  24461. $38 = HEAP32[$37>>2]|0;
  24462. $39 = ($38|0)==(0|0);
  24463. if ($39) {
  24464. _glVertexAttrib4f(3,1.0,1.0,1.0,1.0);
  24465. _glDisableVertexAttribArray(3);
  24466. } else {
  24467. $40 = ((($3)) + 12|0);
  24468. _glGenBuffers(1,($40|0));
  24469. $41 = HEAP32[$40>>2]|0;
  24470. _glBindBuffer(34962,($41|0));
  24471. $42 = HEAP32[$0>>2]|0;
  24472. $43 = $42 << 2;
  24473. $44 = HEAP32[$37>>2]|0;
  24474. _glBufferData(34962,($43|0),($44|0),($$|0));
  24475. _glVertexAttribPointer(3,4,5121,1,0,(0|0));
  24476. _glEnableVertexAttribArray(3);
  24477. }
  24478. $45 = ((($0)) + 24|0);
  24479. $46 = HEAP32[$45>>2]|0;
  24480. $47 = ($46|0)==(0|0);
  24481. if ($47) {
  24482. _glVertexAttrib3f(4,0.0,0.0,0.0);
  24483. _glDisableVertexAttribArray(4);
  24484. } else {
  24485. $48 = ((($3)) + 16|0);
  24486. _glGenBuffers(1,($48|0));
  24487. $49 = HEAP32[$48>>2]|0;
  24488. _glBindBuffer(34962,($49|0));
  24489. $50 = HEAP32[$0>>2]|0;
  24490. $51 = ($50*12)|0;
  24491. $52 = HEAP32[$45>>2]|0;
  24492. _glBufferData(34962,($51|0),($52|0),($$|0));
  24493. _glVertexAttribPointer(4,3,5126,0,0,(0|0));
  24494. _glEnableVertexAttribArray(4);
  24495. }
  24496. $53 = ((($0)) + 16|0);
  24497. $54 = HEAP32[$53>>2]|0;
  24498. $55 = ($54|0)==(0|0);
  24499. if ($55) {
  24500. _glVertexAttrib2f(5,0.0,0.0);
  24501. _glDisableVertexAttribArray(5);
  24502. } else {
  24503. $56 = ((($3)) + 20|0);
  24504. _glGenBuffers(1,($56|0));
  24505. $57 = HEAP32[$56>>2]|0;
  24506. _glBindBuffer(34962,($57|0));
  24507. $58 = HEAP32[$0>>2]|0;
  24508. $59 = $58 << 3;
  24509. $60 = HEAP32[$53>>2]|0;
  24510. _glBufferData(34962,($59|0),($60|0),($$|0));
  24511. _glVertexAttribPointer(5,2,5126,0,0,(0|0));
  24512. _glEnableVertexAttribArray(5);
  24513. }
  24514. $61 = ((($0)) + 32|0);
  24515. $62 = HEAP32[$61>>2]|0;
  24516. $63 = ($62|0)==(0|0);
  24517. if (!($63)) {
  24518. $64 = ((($3)) + 24|0);
  24519. _glGenBuffers(1,($64|0));
  24520. $65 = HEAP32[$64>>2]|0;
  24521. _glBindBuffer(34963,($65|0));
  24522. $66 = ((($0)) + 4|0);
  24523. $67 = HEAP32[$66>>2]|0;
  24524. $68 = ($67*6)|0;
  24525. $69 = HEAP32[$61>>2]|0;
  24526. _glBufferData(34963,($68|0),($69|0),35044);
  24527. }
  24528. $70 = HEAP32[$3>>2]|0;
  24529. HEAP32[$5>>2] = $70;
  24530. $71 = HEAP32[$23>>2]|0;
  24531. HEAP32[$6>>2] = $71;
  24532. $72 = ((($3)) + 8|0);
  24533. $73 = HEAP32[$72>>2]|0;
  24534. HEAP32[$7>>2] = $73;
  24535. $74 = ((($3)) + 12|0);
  24536. $75 = HEAP32[$74>>2]|0;
  24537. HEAP32[$8>>2] = $75;
  24538. $76 = ((($3)) + 16|0);
  24539. $77 = HEAP32[$76>>2]|0;
  24540. HEAP32[$9>>2] = $77;
  24541. $78 = ((($3)) + 20|0);
  24542. $79 = HEAP32[$78>>2]|0;
  24543. HEAP32[$10>>2] = $79;
  24544. $80 = ((($3)) + 24|0);
  24545. $81 = HEAP32[$80>>2]|0;
  24546. HEAP32[$11>>2] = $81;
  24547. $82 = HEAP32[5259]|0;
  24548. $83 = ($82|0)==(0);
  24549. if ($83) {
  24550. _TraceLog(0,8732,$vararg_buffer3);
  24551. STACKTOP = sp;return;
  24552. }
  24553. $84 = HEAP32[$2>>2]|0;
  24554. $85 = ($84|0)==(0);
  24555. if ($85) {
  24556. _TraceLog(1,8691,$vararg_buffer1);
  24557. STACKTOP = sp;return;
  24558. } else {
  24559. HEAP32[$4>>2] = $84;
  24560. HEAP32[$vararg_buffer>>2] = $84;
  24561. _TraceLog(0,8638,$vararg_buffer);
  24562. STACKTOP = sp;return;
  24563. }
  24564. }
  24565. function _VectorSubtract($0,$1,$2) {
  24566. $0 = $0|0;
  24567. $1 = $1|0;
  24568. $2 = $2|0;
  24569. 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;
  24570. sp = STACKTOP;
  24571. $3 = +HEAPF32[$1>>2];
  24572. $4 = +HEAPF32[$2>>2];
  24573. $5 = $3 - $4;
  24574. HEAPF32[$0>>2] = $5;
  24575. $6 = ((($0)) + 4|0);
  24576. $7 = ((($1)) + 4|0);
  24577. $8 = +HEAPF32[$7>>2];
  24578. $9 = ((($2)) + 4|0);
  24579. $10 = +HEAPF32[$9>>2];
  24580. $11 = $8 - $10;
  24581. HEAPF32[$6>>2] = $11;
  24582. $12 = ((($0)) + 8|0);
  24583. $13 = ((($1)) + 8|0);
  24584. $14 = +HEAPF32[$13>>2];
  24585. $15 = ((($2)) + 8|0);
  24586. $16 = +HEAPF32[$15>>2];
  24587. $17 = $14 - $16;
  24588. HEAPF32[$12>>2] = $17;
  24589. return;
  24590. }
  24591. function _VectorCrossProduct($0,$1,$2) {
  24592. $0 = $0|0;
  24593. $1 = $1|0;
  24594. $2 = $2|0;
  24595. 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;
  24596. var $9 = 0.0, label = 0, sp = 0;
  24597. sp = STACKTOP;
  24598. $3 = ((($1)) + 4|0);
  24599. $4 = +HEAPF32[$3>>2];
  24600. $5 = ((($2)) + 8|0);
  24601. $6 = +HEAPF32[$5>>2];
  24602. $7 = $4 * $6;
  24603. $8 = ((($1)) + 8|0);
  24604. $9 = +HEAPF32[$8>>2];
  24605. $10 = ((($2)) + 4|0);
  24606. $11 = +HEAPF32[$10>>2];
  24607. $12 = $9 * $11;
  24608. $13 = $7 - $12;
  24609. $14 = +HEAPF32[$2>>2];
  24610. $15 = $9 * $14;
  24611. $16 = +HEAPF32[$1>>2];
  24612. $17 = $6 * $16;
  24613. $18 = $15 - $17;
  24614. $19 = $11 * $16;
  24615. $20 = $4 * $14;
  24616. $21 = $19 - $20;
  24617. HEAPF32[$0>>2] = $13;
  24618. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  24619. HEAPF32[$$sroa$4$0$$sroa_idx2>>2] = $18;
  24620. $$sroa$5$0$$sroa_idx4 = ((($0)) + 8|0);
  24621. HEAPF32[$$sroa$5$0$$sroa_idx4>>2] = $21;
  24622. return;
  24623. }
  24624. function _VectorScale($0,$1) {
  24625. $0 = $0|0;
  24626. $1 = +$1;
  24627. 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;
  24628. sp = STACKTOP;
  24629. $2 = +HEAPF32[$0>>2];
  24630. $3 = $2 * $1;
  24631. HEAPF32[$0>>2] = $3;
  24632. $4 = ((($0)) + 4|0);
  24633. $5 = +HEAPF32[$4>>2];
  24634. $6 = $5 * $1;
  24635. HEAPF32[$4>>2] = $6;
  24636. $7 = ((($0)) + 8|0);
  24637. $8 = +HEAPF32[$7>>2];
  24638. $9 = $8 * $1;
  24639. HEAPF32[$7>>2] = $9;
  24640. return;
  24641. }
  24642. function _LoadModel($0,$1) {
  24643. $0 = $0|0;
  24644. $1 = $1|0;
  24645. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  24646. sp = STACKTOP;
  24647. STACKTOP = STACKTOP + 464|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(464|0);
  24648. $2 = sp + 200|0;
  24649. $3 = sp + 136|0;
  24650. $4 = sp;
  24651. _memset(($2|0),0,264)|0;
  24652. _LoadMesh($2,$1);
  24653. $5 = ((($2)) + 68|0);
  24654. _MatrixIdentity($3);
  24655. 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));
  24656. $6 = ((($2)) + 132|0);
  24657. _LoadDefaultMaterial($4);
  24658. _memcpy(($6|0),($4|0),132)|0;
  24659. _memcpy(($0|0),($2|0),264)|0;
  24660. STACKTOP = sp;return;
  24661. }
  24662. function _LoadDefaultMaterial($0) {
  24663. $0 = $0|0;
  24664. 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;
  24665. sp = STACKTOP;
  24666. STACKTOP = STACKTOP + 192|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(192|0);
  24667. $$sroa$09 = sp;
  24668. $1 = sp + 136|0;
  24669. $2 = sp + 116|0;
  24670. dest=$$sroa$09; stop=dest+116|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  24671. _GetDefaultShader($1);
  24672. 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));
  24673. _GetDefaultTexture($2);
  24674. $$sroa$09$56$sroa_idx = ((($$sroa$09)) + 56|0);
  24675. ;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;
  24676. 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));
  24677. $$sroa$6$0$$sroa_idx = ((($0)) + 116|0);
  24678. $$sroa$18$0$$sroa_idx15 = ((($0)) + 128|0);
  24679. ;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;
  24680. HEAPF32[$$sroa$18$0$$sroa_idx15>>2] = 100.0;
  24681. STACKTOP = sp;return;
  24682. }
  24683. function _GetDefaultShader($0) {
  24684. $0 = $0|0;
  24685. var dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  24686. sp = STACKTOP;
  24687. dest=$0; src=22536; 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));
  24688. return;
  24689. }
  24690. function _GetDefaultTexture($0) {
  24691. $0 = $0|0;
  24692. 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;
  24693. sp = STACKTOP;
  24694. $1 = HEAP32[5219]|0;
  24695. HEAP32[$0>>2] = $1;
  24696. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  24697. HEAP32[$$sroa$4$0$$sroa_idx2>>2] = 1;
  24698. $$sroa$5$0$$sroa_idx4 = ((($0)) + 8|0);
  24699. HEAP32[$$sroa$5$0$$sroa_idx4>>2] = 1;
  24700. $$sroa$6$0$$sroa_idx6 = ((($0)) + 12|0);
  24701. HEAP32[$$sroa$6$0$$sroa_idx6>>2] = 1;
  24702. $$sroa$7$0$$sroa_idx8 = ((($0)) + 16|0);
  24703. HEAP32[$$sroa$7$0$$sroa_idx8>>2] = 7;
  24704. return;
  24705. }
  24706. function _UnloadMesh($0) {
  24707. $0 = $0|0;
  24708. var label = 0, sp = 0;
  24709. sp = STACKTOP;
  24710. _rlglUnloadMesh($0);
  24711. return;
  24712. }
  24713. function _rlglUnloadMesh($0) {
  24714. $0 = $0|0;
  24715. 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;
  24716. 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;
  24717. sp = STACKTOP;
  24718. $1 = ((($0)) + 8|0);
  24719. $2 = HEAP32[$1>>2]|0;
  24720. $3 = ($2|0)==(0|0);
  24721. if (!($3)) {
  24722. _free($2);
  24723. }
  24724. $4 = ((($0)) + 12|0);
  24725. $5 = HEAP32[$4>>2]|0;
  24726. $6 = ($5|0)==(0|0);
  24727. if (!($6)) {
  24728. _free($5);
  24729. }
  24730. $7 = ((($0)) + 20|0);
  24731. $8 = HEAP32[$7>>2]|0;
  24732. $9 = ($8|0)==(0|0);
  24733. if (!($9)) {
  24734. _free($8);
  24735. }
  24736. $10 = ((($0)) + 28|0);
  24737. $11 = HEAP32[$10>>2]|0;
  24738. $12 = ($11|0)==(0|0);
  24739. if (!($12)) {
  24740. _free($11);
  24741. }
  24742. $13 = ((($0)) + 24|0);
  24743. $14 = HEAP32[$13>>2]|0;
  24744. $15 = ($14|0)==(0|0);
  24745. if (!($15)) {
  24746. _free($14);
  24747. }
  24748. $16 = ((($0)) + 16|0);
  24749. $17 = HEAP32[$16>>2]|0;
  24750. $18 = ($17|0)==(0|0);
  24751. if (!($18)) {
  24752. _free($17);
  24753. }
  24754. $19 = ((($0)) + 32|0);
  24755. $20 = HEAP32[$19>>2]|0;
  24756. $21 = ($20|0)==(0|0);
  24757. if (!($21)) {
  24758. _free($20);
  24759. }
  24760. $22 = ((($0)) + 40|0);
  24761. $23 = HEAP32[$22>>2]|0;
  24762. _rlDeleteBuffers($23);
  24763. $24 = ((($0)) + 44|0);
  24764. $25 = HEAP32[$24>>2]|0;
  24765. _rlDeleteBuffers($25);
  24766. $26 = ((($0)) + 48|0);
  24767. $27 = HEAP32[$26>>2]|0;
  24768. _rlDeleteBuffers($27);
  24769. $28 = ((($0)) + 52|0);
  24770. $29 = HEAP32[$28>>2]|0;
  24771. _rlDeleteBuffers($29);
  24772. $30 = ((($0)) + 56|0);
  24773. $31 = HEAP32[$30>>2]|0;
  24774. _rlDeleteBuffers($31);
  24775. $32 = ((($0)) + 60|0);
  24776. $33 = HEAP32[$32>>2]|0;
  24777. _rlDeleteBuffers($33);
  24778. $34 = ((($0)) + 64|0);
  24779. $35 = HEAP32[$34>>2]|0;
  24780. _rlDeleteBuffers($35);
  24781. $36 = ((($0)) + 36|0);
  24782. $37 = HEAP32[$36>>2]|0;
  24783. _rlDeleteVertexArrays($37);
  24784. return;
  24785. }
  24786. function _rlDeleteBuffers($0) {
  24787. $0 = $0|0;
  24788. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  24789. sp = STACKTOP;
  24790. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  24791. $vararg_buffer = sp;
  24792. $1 = sp + 4|0;
  24793. HEAP32[$1>>2] = $0;
  24794. $2 = ($0|0)==(0);
  24795. if ($2) {
  24796. STACKTOP = sp;return;
  24797. }
  24798. _glDeleteBuffers(1,($1|0));
  24799. $3 = HEAP32[5259]|0;
  24800. $4 = ($3|0)==(0);
  24801. if (!($4)) {
  24802. STACKTOP = sp;return;
  24803. }
  24804. $5 = HEAP32[$1>>2]|0;
  24805. HEAP32[$vararg_buffer>>2] = $5;
  24806. _TraceLog(0,9175,$vararg_buffer);
  24807. STACKTOP = sp;return;
  24808. }
  24809. function _rlDeleteVertexArrays($0) {
  24810. $0 = $0|0;
  24811. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  24812. sp = STACKTOP;
  24813. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  24814. $vararg_buffer = sp;
  24815. $1 = sp + 4|0;
  24816. HEAP32[$1>>2] = $0;
  24817. $2 = HEAP32[5259]|0;
  24818. $3 = ($2|0)==(0);
  24819. if ($3) {
  24820. STACKTOP = sp;return;
  24821. }
  24822. $4 = ($0|0)==(0);
  24823. if (!($4)) {
  24824. $5 = HEAP32[5648]|0;
  24825. FUNCTION_TABLE_vii[$5 & 63](1,$1);
  24826. }
  24827. $6 = HEAP32[$1>>2]|0;
  24828. HEAP32[$vararg_buffer>>2] = $6;
  24829. _TraceLog(0,9127,$vararg_buffer);
  24830. STACKTOP = sp;return;
  24831. }
  24832. function _UnloadModel($0) {
  24833. $0 = $0|0;
  24834. var $$byval_copy = 0, $1 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  24835. sp = STACKTOP;
  24836. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  24837. $$byval_copy = sp + 4|0;
  24838. $vararg_buffer = sp;
  24839. _UnloadMesh($0);
  24840. $1 = ((($0)) + 132|0);
  24841. _memcpy(($$byval_copy|0),($1|0),132)|0;
  24842. _UnloadMaterial($$byval_copy);
  24843. _TraceLog(0,9230,$vararg_buffer);
  24844. STACKTOP = sp;return;
  24845. }
  24846. function _UnloadMaterial($0) {
  24847. $0 = $0|0;
  24848. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  24849. sp = STACKTOP;
  24850. $1 = ((($0)) + 56|0);
  24851. $2 = HEAP32[$1>>2]|0;
  24852. _rlDeleteTextures($2);
  24853. $3 = ((($0)) + 76|0);
  24854. $4 = HEAP32[$3>>2]|0;
  24855. _rlDeleteTextures($4);
  24856. $5 = ((($0)) + 96|0);
  24857. $6 = HEAP32[$5>>2]|0;
  24858. _rlDeleteTextures($6);
  24859. return;
  24860. }
  24861. function _DrawModel($0,$1,$2,$3) {
  24862. $0 = $0|0;
  24863. $1 = $1|0;
  24864. $2 = +$2;
  24865. $3 = $3|0;
  24866. 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;
  24867. sp = STACKTOP;
  24868. STACKTOP = STACKTOP + 336|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(336|0);
  24869. $$byval_copy4 = sp + 324|0;
  24870. $$byval_copy3 = sp + 312|0;
  24871. $$byval_copy2 = sp + 300|0;
  24872. $$byval_copy1 = sp + 288|0;
  24873. $$byval_copy = sp + 24|0;
  24874. $4 = sp + 12|0;
  24875. $5 = sp;
  24876. HEAPF32[$4>>2] = $2;
  24877. $6 = ((($4)) + 4|0);
  24878. HEAPF32[$6>>2] = $2;
  24879. $7 = ((($4)) + 8|0);
  24880. HEAPF32[$7>>2] = $2;
  24881. ;HEAP32[$5>>2]=0|0;HEAP32[$5+4>>2]=0|0;HEAP32[$5+8>>2]=0|0;
  24882. _memcpy(($$byval_copy|0),($0|0),264)|0;
  24883. ;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;
  24884. ;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;
  24885. ;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;
  24886. ;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;
  24887. _DrawModelEx($$byval_copy,$$byval_copy1,$$byval_copy2,0.0,$$byval_copy3,$$byval_copy4);
  24888. STACKTOP = sp;return;
  24889. }
  24890. function _DrawModelEx($0,$1,$2,$3,$4,$5) {
  24891. $0 = $0|0;
  24892. $1 = $1|0;
  24893. $2 = $2|0;
  24894. $3 = +$3;
  24895. $4 = $4|0;
  24896. $5 = $5|0;
  24897. var $$byval_copy7 = 0, $$byval_copy8 = 0, $$byval_copy9 = 0, $10 = 0, $11 = 0, $12 = 0.0, $13 = 0.0, $14 = 0, $15 = 0.0, $16 = 0, $17 = 0.0, $18 = 0.0, $19 = 0, $20 = 0.0, $21 = 0, $22 = 0.0, $23 = 0, $24 = 0, $25 = 0, $26 = 0;
  24898. var $6 = 0, $7 = 0, $8 = 0, $9 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  24899. sp = STACKTOP;
  24900. STACKTOP = STACKTOP + 656|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(656|0);
  24901. $$byval_copy9 = sp + 584|0;
  24902. $$byval_copy8 = sp + 452|0;
  24903. $$byval_copy7 = sp + 384|0;
  24904. $6 = sp + 192|0;
  24905. $7 = sp + 128|0;
  24906. $8 = sp + 64|0;
  24907. $9 = sp;
  24908. $10 = sp + 320|0;
  24909. $11 = sp + 256|0;
  24910. $12 = $3 * 0.01745329238474369;
  24911. ;HEAP32[$$byval_copy9>>2]=HEAP32[$2>>2]|0;HEAP32[$$byval_copy9+4>>2]=HEAP32[$2+4>>2]|0;HEAP32[$$byval_copy9+8>>2]=HEAP32[$2+8>>2]|0;
  24912. _MatrixRotate($6,$$byval_copy9,$12);
  24913. $13 = +HEAPF32[$4>>2];
  24914. $14 = ((($4)) + 4|0);
  24915. $15 = +HEAPF32[$14>>2];
  24916. $16 = ((($4)) + 8|0);
  24917. $17 = +HEAPF32[$16>>2];
  24918. _MatrixScale($7,$13,$15,$17);
  24919. $18 = +HEAPF32[$1>>2];
  24920. $19 = ((($1)) + 4|0);
  24921. $20 = +HEAPF32[$19>>2];
  24922. $21 = ((($1)) + 8|0);
  24923. $22 = +HEAPF32[$21>>2];
  24924. _MatrixTranslate($8,$18,$20,$22);
  24925. dest=$$byval_copy8; 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));
  24926. dest=$$byval_copy9; 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));
  24927. _MatrixMultiply($10,$$byval_copy8,$$byval_copy9);
  24928. dest=$$byval_copy8; 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));
  24929. dest=$$byval_copy9; 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));
  24930. _MatrixMultiply($9,$$byval_copy8,$$byval_copy9);
  24931. $23 = ((($0)) + 68|0);
  24932. dest=$$byval_copy8; src=$23; 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));
  24933. dest=$$byval_copy9; 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));
  24934. _MatrixMultiply($11,$$byval_copy8,$$byval_copy9);
  24935. dest=$23; 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));
  24936. $24 = ((($0)) + 132|0);
  24937. $25 = ((($0)) + 248|0);
  24938. $26 = HEAPU8[$5>>0]|(HEAPU8[$5+1>>0]<<8)|(HEAPU8[$5+2>>0]<<16)|(HEAPU8[$5+3>>0]<<24);
  24939. HEAP32[$25>>2] = $26;
  24940. dest=$$byval_copy7; 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));
  24941. _memcpy(($$byval_copy8|0),($24|0),132)|0;
  24942. dest=$$byval_copy9; 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));
  24943. _rlglDrawMesh($$byval_copy7,$$byval_copy8,$$byval_copy9);
  24944. STACKTOP = sp;return;
  24945. }
  24946. function _rlglDrawMesh($0,$1,$2) {
  24947. $0 = $0|0;
  24948. $1 = $1|0;
  24949. $2 = $2|0;
  24950. 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;
  24951. 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;
  24952. 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;
  24953. 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;
  24954. 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;
  24955. 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;
  24956. 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;
  24957. 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;
  24958. 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;
  24959. var label = 0, sp = 0, src = 0, stop = 0;
  24960. sp = STACKTOP;
  24961. STACKTOP = STACKTOP + 384|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(384|0);
  24962. $$byval_copy5 = sp + 320|0;
  24963. $modelview$byval_copy4 = sp + 256|0;
  24964. $3 = sp + 192|0;
  24965. $4 = sp + 128|0;
  24966. $5 = sp + 64|0;
  24967. $6 = sp;
  24968. $7 = HEAP32[$1>>2]|0;
  24969. _glUseProgram(($7|0));
  24970. $8 = ((($1)) + 32|0);
  24971. $9 = HEAP32[$8>>2]|0;
  24972. $10 = ((($1)) + 116|0);
  24973. $11 = HEAP8[$10>>0]|0;
  24974. $12 = (+($11&255));
  24975. $13 = $12 / 255.0;
  24976. $14 = ((($1)) + 117|0);
  24977. $15 = HEAP8[$14>>0]|0;
  24978. $16 = (+($15&255));
  24979. $17 = $16 / 255.0;
  24980. $18 = ((($1)) + 118|0);
  24981. $19 = HEAP8[$18>>0]|0;
  24982. $20 = (+($19&255));
  24983. $21 = $20 / 255.0;
  24984. $22 = ((($1)) + 119|0);
  24985. $23 = HEAP8[$22>>0]|0;
  24986. $24 = (+($23&255));
  24987. $25 = $24 / 255.0;
  24988. _glUniform4f(($9|0),(+$13),(+$17),(+$21),(+$25));
  24989. $26 = ((($1)) + 36|0);
  24990. $27 = HEAP32[$26>>2]|0;
  24991. $28 = ($27|0)==(-1);
  24992. if (!($28)) {
  24993. $29 = ((($1)) + 120|0);
  24994. $30 = HEAP8[$29>>0]|0;
  24995. $31 = (+($30&255));
  24996. $32 = $31 / 255.0;
  24997. $33 = ((($1)) + 121|0);
  24998. $34 = HEAP8[$33>>0]|0;
  24999. $35 = (+($34&255));
  25000. $36 = $35 / 255.0;
  25001. $37 = ((($1)) + 122|0);
  25002. $38 = HEAP8[$37>>0]|0;
  25003. $39 = (+($38&255));
  25004. $40 = $39 / 255.0;
  25005. $41 = ((($1)) + 123|0);
  25006. $42 = HEAP8[$41>>0]|0;
  25007. $43 = (+($42&255));
  25008. $44 = $43 / 255.0;
  25009. _glUniform4f(($27|0),(+$32),(+$36),(+$40),(+$44));
  25010. }
  25011. $45 = ((($1)) + 40|0);
  25012. $46 = HEAP32[$45>>2]|0;
  25013. $47 = ($46|0)==(-1);
  25014. if (!($47)) {
  25015. $48 = ((($1)) + 124|0);
  25016. $49 = HEAP8[$48>>0]|0;
  25017. $50 = (+($49&255));
  25018. $51 = $50 / 255.0;
  25019. $52 = ((($1)) + 125|0);
  25020. $53 = HEAP8[$52>>0]|0;
  25021. $54 = (+($53&255));
  25022. $55 = $54 / 255.0;
  25023. $56 = ((($1)) + 126|0);
  25024. $57 = HEAP8[$56>>0]|0;
  25025. $58 = (+($57&255));
  25026. $59 = $58 / 255.0;
  25027. $60 = ((($1)) + 127|0);
  25028. $61 = HEAP8[$60>>0]|0;
  25029. $62 = (+($61&255));
  25030. $63 = $62 / 255.0;
  25031. _glUniform4f(($46|0),(+$51),(+$55),(+$59),(+$63));
  25032. }
  25033. dest=$3; src=20804; 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));
  25034. dest=$4; src=20740; 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));
  25035. 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));
  25036. dest=$$byval_copy5; src=20804; 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));
  25037. _MatrixMultiply($5,$modelview$byval_copy4,$$byval_copy5);
  25038. $64 = HEAP32[$1>>2]|0;
  25039. $65 = HEAP32[5634]|0;
  25040. $66 = ($64|0)==($65|0);
  25041. if (!($66)) {
  25042. $67 = (_glGetUniformLocation(($64|0),(9288|0))|0);
  25043. $68 = ($67|0)==(-1);
  25044. if (!($68)) {
  25045. 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));
  25046. _MatrixTranspose($modelview$byval_copy4);
  25047. _MatrixInvert($modelview$byval_copy4);
  25048. 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));
  25049. $69 = (_MatrixToFloat($$byval_copy5)|0);
  25050. _glUniformMatrix4fv(($67|0),1,0,($69|0));
  25051. }
  25052. $70 = HEAP32[$1>>2]|0;
  25053. $71 = (_glGetUniformLocation(($70|0),(9300|0))|0);
  25054. $72 = ($71|0)==(-1);
  25055. if (!($72)) {
  25056. $73 = ((($3)) + 8|0);
  25057. $74 = +HEAPF32[$73>>2];
  25058. $75 = ((($3)) + 24|0);
  25059. $76 = +HEAPF32[$75>>2];
  25060. $77 = ((($3)) + 40|0);
  25061. $78 = +HEAPF32[$77>>2];
  25062. _glUniform3f(($71|0),(+$74),(+$76),(+$78));
  25063. }
  25064. $79 = (_glGetUniformLocation(($70|0),(9308|0))|0);
  25065. $80 = ($79|0)==(-1);
  25066. if (!($80)) {
  25067. $81 = ((($1)) + 128|0);
  25068. $82 = +HEAPF32[$81>>2];
  25069. _glUniform1f(($79|0),(+$82));
  25070. }
  25071. }
  25072. _glActiveTexture(33984);
  25073. $83 = ((($1)) + 56|0);
  25074. $84 = HEAP32[$83>>2]|0;
  25075. _glBindTexture(3553,($84|0));
  25076. $85 = ((($1)) + 44|0);
  25077. $86 = HEAP32[$85>>2]|0;
  25078. _glUniform1i(($86|0),0);
  25079. $87 = ((($1)) + 76|0);
  25080. $88 = HEAP32[$87>>2]|0;
  25081. $89 = ($88|0)==(0);
  25082. if (!($89)) {
  25083. $90 = ((($1)) + 48|0);
  25084. $91 = HEAP32[$90>>2]|0;
  25085. $92 = ($91|0)==(-1);
  25086. if (!($92)) {
  25087. $93 = HEAP32[$1>>2]|0;
  25088. $94 = (_glGetUniformLocation(($93|0),(9319|0))|0);
  25089. _glUniform1i(($94|0),1);
  25090. _glActiveTexture(33985);
  25091. $95 = HEAP32[$87>>2]|0;
  25092. _glBindTexture(3553,($95|0));
  25093. $96 = HEAP32[$90>>2]|0;
  25094. _glUniform1i(($96|0),1);
  25095. }
  25096. }
  25097. $97 = ((($1)) + 96|0);
  25098. $98 = HEAP32[$97>>2]|0;
  25099. $99 = ($98|0)==(0);
  25100. if (!($99)) {
  25101. $100 = ((($1)) + 52|0);
  25102. $101 = HEAP32[$100>>2]|0;
  25103. $102 = ($101|0)==(-1);
  25104. if (!($102)) {
  25105. $103 = HEAP32[$1>>2]|0;
  25106. $104 = (_glGetUniformLocation(($103|0),(9329|0))|0);
  25107. _glUniform1i(($104|0),1);
  25108. _glActiveTexture(33986);
  25109. $105 = HEAP32[$97>>2]|0;
  25110. _glBindTexture(3553,($105|0));
  25111. $106 = HEAP32[$100>>2]|0;
  25112. _glUniform1i(($106|0),2);
  25113. }
  25114. }
  25115. $107 = HEAP32[5259]|0;
  25116. $108 = ($107|0)==(0);
  25117. if ($108) {
  25118. $112 = ((($0)) + 40|0);
  25119. $113 = HEAP32[$112>>2]|0;
  25120. _glBindBuffer(34962,($113|0));
  25121. $114 = ((($1)) + 4|0);
  25122. $115 = HEAP32[$114>>2]|0;
  25123. _glVertexAttribPointer(($115|0),3,5126,0,0,(0|0));
  25124. _glEnableVertexAttribArray(($115|0));
  25125. $116 = ((($0)) + 44|0);
  25126. $117 = HEAP32[$116>>2]|0;
  25127. _glBindBuffer(34962,($117|0));
  25128. $118 = ((($1)) + 8|0);
  25129. $119 = HEAP32[$118>>2]|0;
  25130. _glVertexAttribPointer(($119|0),2,5126,0,0,(0|0));
  25131. _glEnableVertexAttribArray(($119|0));
  25132. $120 = ((($1)) + 16|0);
  25133. $121 = HEAP32[$120>>2]|0;
  25134. $122 = ($121|0)==(-1);
  25135. if (!($122)) {
  25136. $123 = ((($0)) + 48|0);
  25137. $124 = HEAP32[$123>>2]|0;
  25138. _glBindBuffer(34962,($124|0));
  25139. $125 = HEAP32[$120>>2]|0;
  25140. _glVertexAttribPointer(($125|0),3,5126,0,0,(0|0));
  25141. $126 = HEAP32[$120>>2]|0;
  25142. _glEnableVertexAttribArray(($126|0));
  25143. }
  25144. $127 = ((($1)) + 24|0);
  25145. $128 = HEAP32[$127>>2]|0;
  25146. $129 = ($128|0)==(-1);
  25147. do {
  25148. if (!($129)) {
  25149. $130 = ((($0)) + 52|0);
  25150. $131 = HEAP32[$130>>2]|0;
  25151. $132 = ($131|0)==(0);
  25152. if ($132) {
  25153. _glVertexAttrib4f(($128|0),1.0,1.0,1.0,1.0);
  25154. $135 = HEAP32[$127>>2]|0;
  25155. _glDisableVertexAttribArray(($135|0));
  25156. break;
  25157. } else {
  25158. _glBindBuffer(34962,($131|0));
  25159. $133 = HEAP32[$127>>2]|0;
  25160. _glVertexAttribPointer(($133|0),4,5121,1,0,(0|0));
  25161. $134 = HEAP32[$127>>2]|0;
  25162. _glEnableVertexAttribArray(($134|0));
  25163. break;
  25164. }
  25165. }
  25166. } while(0);
  25167. $136 = ((($1)) + 20|0);
  25168. $137 = HEAP32[$136>>2]|0;
  25169. $138 = ($137|0)==(-1);
  25170. if (!($138)) {
  25171. $139 = ((($0)) + 56|0);
  25172. $140 = HEAP32[$139>>2]|0;
  25173. _glBindBuffer(34962,($140|0));
  25174. $141 = HEAP32[$136>>2]|0;
  25175. _glVertexAttribPointer(($141|0),3,5126,0,0,(0|0));
  25176. $142 = HEAP32[$136>>2]|0;
  25177. _glEnableVertexAttribArray(($142|0));
  25178. }
  25179. $143 = ((($1)) + 12|0);
  25180. $144 = HEAP32[$143>>2]|0;
  25181. $145 = ($144|0)==(-1);
  25182. if (!($145)) {
  25183. $146 = ((($0)) + 60|0);
  25184. $147 = HEAP32[$146>>2]|0;
  25185. _glBindBuffer(34962,($147|0));
  25186. $148 = HEAP32[$143>>2]|0;
  25187. _glVertexAttribPointer(($148|0),2,5126,0,0,(0|0));
  25188. $149 = HEAP32[$143>>2]|0;
  25189. _glEnableVertexAttribArray(($149|0));
  25190. }
  25191. $150 = ((($0)) + 32|0);
  25192. $151 = HEAP32[$150>>2]|0;
  25193. $152 = ($151|0)==(0|0);
  25194. if (!($152)) {
  25195. $153 = HEAP32[(20736)>>2]|0;
  25196. _glBindBuffer(34963,($153|0));
  25197. }
  25198. } else {
  25199. $109 = HEAP32[5260]|0;
  25200. $110 = ((($0)) + 36|0);
  25201. $111 = HEAP32[$110>>2]|0;
  25202. FUNCTION_TABLE_vi[$109 & 31]($111);
  25203. }
  25204. $154 = HEAP32[5217]|0;
  25205. $155 = ($154|0)!=(0);
  25206. $$ = $155 ? 2 : 1;
  25207. $156 = ((($1)) + 28|0);
  25208. $157 = ((($0)) + 32|0);
  25209. $158 = HEAP32[$0>>2]|0;
  25210. $159 = ((($0)) + 4|0);
  25211. $$020 = 0;
  25212. while(1) {
  25213. if ($155) {
  25214. 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));
  25215. 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));
  25216. _SetStereoView($$020,$modelview$byval_copy4,$$byval_copy5);
  25217. } else {
  25218. dest=20804; 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));
  25219. }
  25220. dest=$modelview$byval_copy4; src=20804; 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));
  25221. dest=$$byval_copy5; src=20740; 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));
  25222. _MatrixMultiply($6,$modelview$byval_copy4,$$byval_copy5);
  25223. $162 = HEAP32[$156>>2]|0;
  25224. 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));
  25225. $163 = (_MatrixToFloat($$byval_copy5)|0);
  25226. _glUniformMatrix4fv(($162|0),1,0,($163|0));
  25227. $164 = HEAP32[$157>>2]|0;
  25228. $165 = ($164|0)==(0|0);
  25229. if ($165) {
  25230. _glDrawArrays(4,0,($158|0));
  25231. } else {
  25232. $166 = HEAP32[$159>>2]|0;
  25233. $167 = ($166*3)|0;
  25234. _glDrawElements(4,($167|0),5123,(0|0));
  25235. }
  25236. $168 = (($$020) + 1)|0;
  25237. $169 = ($168|0)<($$|0);
  25238. if ($169) {
  25239. $$020 = $168;
  25240. } else {
  25241. break;
  25242. }
  25243. }
  25244. $160 = HEAP32[$87>>2]|0;
  25245. $161 = ($160|0)==(0);
  25246. if (!($161)) {
  25247. _glActiveTexture(33985);
  25248. _glBindTexture(3553,0);
  25249. }
  25250. $170 = HEAP32[$97>>2]|0;
  25251. $171 = ($170|0)==(0);
  25252. if (!($171)) {
  25253. _glActiveTexture(33986);
  25254. _glBindTexture(3553,0);
  25255. }
  25256. _glActiveTexture(33984);
  25257. _glBindTexture(3553,0);
  25258. $172 = HEAP32[5259]|0;
  25259. $173 = ($172|0)==(0);
  25260. if (!($173)) {
  25261. $174 = HEAP32[5260]|0;
  25262. FUNCTION_TABLE_vi[$174 & 31](0);
  25263. _glUseProgram(0);
  25264. dest=20740; 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));
  25265. dest=20804; 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));
  25266. STACKTOP = sp;return;
  25267. }
  25268. _glBindBuffer(34962,0);
  25269. $175 = ((($0)) + 32|0);
  25270. $176 = HEAP32[$175>>2]|0;
  25271. $177 = ($176|0)==(0|0);
  25272. if ($177) {
  25273. _glUseProgram(0);
  25274. dest=20740; 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));
  25275. dest=20804; 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));
  25276. STACKTOP = sp;return;
  25277. }
  25278. _glBindBuffer(34963,0);
  25279. _glUseProgram(0);
  25280. dest=20740; 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));
  25281. dest=20804; 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));
  25282. STACKTOP = sp;return;
  25283. }
  25284. function _MatrixInvert($0) {
  25285. $0 = $0|0;
  25286. 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;
  25287. 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;
  25288. 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;
  25289. 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;
  25290. 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;
  25291. 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;
  25292. 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;
  25293. 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;
  25294. 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;
  25295. sp = STACKTOP;
  25296. $1 = +HEAPF32[$0>>2];
  25297. $2 = ((($0)) + 16|0);
  25298. $3 = +HEAPF32[$2>>2];
  25299. $4 = ((($0)) + 32|0);
  25300. $5 = +HEAPF32[$4>>2];
  25301. $6 = ((($0)) + 48|0);
  25302. $7 = +HEAPF32[$6>>2];
  25303. $8 = ((($0)) + 4|0);
  25304. $9 = +HEAPF32[$8>>2];
  25305. $10 = ((($0)) + 20|0);
  25306. $11 = +HEAPF32[$10>>2];
  25307. $12 = ((($0)) + 36|0);
  25308. $13 = +HEAPF32[$12>>2];
  25309. $14 = ((($0)) + 52|0);
  25310. $15 = +HEAPF32[$14>>2];
  25311. $16 = ((($0)) + 8|0);
  25312. $17 = +HEAPF32[$16>>2];
  25313. $18 = ((($0)) + 24|0);
  25314. $19 = +HEAPF32[$18>>2];
  25315. $20 = ((($0)) + 40|0);
  25316. $21 = +HEAPF32[$20>>2];
  25317. $22 = ((($0)) + 56|0);
  25318. $23 = +HEAPF32[$22>>2];
  25319. $24 = ((($0)) + 12|0);
  25320. $25 = +HEAPF32[$24>>2];
  25321. $26 = ((($0)) + 28|0);
  25322. $27 = +HEAPF32[$26>>2];
  25323. $28 = ((($0)) + 44|0);
  25324. $29 = +HEAPF32[$28>>2];
  25325. $30 = ((($0)) + 60|0);
  25326. $31 = +HEAPF32[$30>>2];
  25327. $32 = $1 * $11;
  25328. $33 = $3 * $9;
  25329. $34 = $32 - $33;
  25330. $35 = $1 * $13;
  25331. $36 = $5 * $9;
  25332. $37 = $35 - $36;
  25333. $38 = $1 * $15;
  25334. $39 = $7 * $9;
  25335. $40 = $38 - $39;
  25336. $41 = $3 * $13;
  25337. $42 = $5 * $11;
  25338. $43 = $41 - $42;
  25339. $44 = $3 * $15;
  25340. $45 = $7 * $11;
  25341. $46 = $44 - $45;
  25342. $47 = $5 * $15;
  25343. $48 = $7 * $13;
  25344. $49 = $47 - $48;
  25345. $50 = $17 * $27;
  25346. $51 = $19 * $25;
  25347. $52 = $50 - $51;
  25348. $53 = $17 * $29;
  25349. $54 = $21 * $25;
  25350. $55 = $53 - $54;
  25351. $56 = $17 * $31;
  25352. $57 = $23 * $25;
  25353. $58 = $56 - $57;
  25354. $59 = $19 * $29;
  25355. $60 = $21 * $27;
  25356. $61 = $59 - $60;
  25357. $62 = $19 * $31;
  25358. $63 = $23 * $27;
  25359. $64 = $62 - $63;
  25360. $65 = $21 * $31;
  25361. $66 = $23 * $29;
  25362. $67 = $65 - $66;
  25363. $68 = $34 * $67;
  25364. $69 = $37 * $64;
  25365. $70 = $68 - $69;
  25366. $71 = $40 * $61;
  25367. $72 = $71 + $70;
  25368. $73 = $43 * $58;
  25369. $74 = $73 + $72;
  25370. $75 = $46 * $55;
  25371. $76 = $74 - $75;
  25372. $77 = $49 * $52;
  25373. $78 = $77 + $76;
  25374. $79 = 1.0 / $78;
  25375. $80 = $11 * $67;
  25376. $81 = $13 * $64;
  25377. $82 = $80 - $81;
  25378. $83 = $15 * $61;
  25379. $84 = $83 + $82;
  25380. $85 = $84 * $79;
  25381. $86 = $3 * $67;
  25382. $87 = $5 * $64;
  25383. $88 = $87 - $86;
  25384. $89 = $7 * $61;
  25385. $90 = $88 - $89;
  25386. $91 = $90 * $79;
  25387. $92 = $49 * $27;
  25388. $93 = $46 * $29;
  25389. $94 = $92 - $93;
  25390. $95 = $43 * $31;
  25391. $96 = $94 + $95;
  25392. $97 = $96 * $79;
  25393. $98 = $19 * $49;
  25394. $99 = $46 * $21;
  25395. $100 = $99 - $98;
  25396. $101 = $43 * $23;
  25397. $102 = $100 - $101;
  25398. $103 = $102 * $79;
  25399. $104 = -$9;
  25400. $105 = $67 * $104;
  25401. $106 = $13 * $58;
  25402. $107 = $105 + $106;
  25403. $108 = $15 * $55;
  25404. $109 = $107 - $108;
  25405. $110 = $109 * $79;
  25406. $111 = $1 * $67;
  25407. $112 = $5 * $58;
  25408. $113 = $111 - $112;
  25409. $114 = $7 * $55;
  25410. $115 = $114 + $113;
  25411. $116 = $115 * $79;
  25412. $117 = -$25;
  25413. $118 = $49 * $117;
  25414. $119 = $40 * $29;
  25415. $120 = $118 + $119;
  25416. $121 = $37 * $31;
  25417. $122 = $120 - $121;
  25418. $123 = $122 * $79;
  25419. $124 = $17 * $49;
  25420. $125 = $40 * $21;
  25421. $126 = $124 - $125;
  25422. $127 = $37 * $23;
  25423. $128 = $126 + $127;
  25424. $129 = $128 * $79;
  25425. $130 = $9 * $64;
  25426. $131 = $11 * $58;
  25427. $132 = $130 - $131;
  25428. $133 = $15 * $52;
  25429. $134 = $133 + $132;
  25430. $135 = $134 * $79;
  25431. $136 = $1 * $64;
  25432. $137 = $3 * $58;
  25433. $138 = $137 - $136;
  25434. $139 = $7 * $52;
  25435. $140 = $138 - $139;
  25436. $141 = $140 * $79;
  25437. $142 = $46 * $25;
  25438. $143 = $40 * $27;
  25439. $144 = $142 - $143;
  25440. $145 = $34 * $31;
  25441. $146 = $144 + $145;
  25442. $147 = $146 * $79;
  25443. $148 = $17 * $46;
  25444. $149 = $19 * $40;
  25445. $150 = $149 - $148;
  25446. $151 = $34 * $23;
  25447. $152 = $150 - $151;
  25448. $153 = $152 * $79;
  25449. $154 = $61 * $104;
  25450. $155 = $11 * $55;
  25451. $156 = $154 + $155;
  25452. $157 = $13 * $52;
  25453. $158 = $156 - $157;
  25454. $159 = $158 * $79;
  25455. $160 = $1 * $61;
  25456. $161 = $3 * $55;
  25457. $162 = $160 - $161;
  25458. $163 = $5 * $52;
  25459. $164 = $163 + $162;
  25460. $165 = $164 * $79;
  25461. $166 = $43 * $117;
  25462. $167 = $37 * $27;
  25463. $168 = $166 + $167;
  25464. $169 = $34 * $29;
  25465. $170 = $168 - $169;
  25466. $171 = $170 * $79;
  25467. $172 = $17 * $43;
  25468. $173 = $37 * $19;
  25469. $174 = $172 - $173;
  25470. $175 = $34 * $21;
  25471. $176 = $174 + $175;
  25472. $177 = $176 * $79;
  25473. HEAPF32[$0>>2] = $85;
  25474. HEAPF32[$8>>2] = $110;
  25475. HEAPF32[$16>>2] = $135;
  25476. HEAPF32[$24>>2] = $159;
  25477. HEAPF32[$2>>2] = $91;
  25478. HEAPF32[$10>>2] = $116;
  25479. HEAPF32[$18>>2] = $141;
  25480. HEAPF32[$26>>2] = $165;
  25481. HEAPF32[$4>>2] = $97;
  25482. HEAPF32[$12>>2] = $123;
  25483. HEAPF32[$20>>2] = $147;
  25484. HEAPF32[$28>>2] = $171;
  25485. HEAPF32[$6>>2] = $103;
  25486. HEAPF32[$14>>2] = $129;
  25487. HEAPF32[$22>>2] = $153;
  25488. HEAPF32[$30>>2] = $177;
  25489. return;
  25490. }
  25491. function _MatrixLookAt($0,$1,$2,$3) {
  25492. $0 = $0|0;
  25493. $1 = $1|0;
  25494. $2 = $2|0;
  25495. $3 = $3|0;
  25496. 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;
  25497. 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;
  25498. 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;
  25499. sp = STACKTOP;
  25500. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  25501. $$byval_copy5 = sp + 48|0;
  25502. $$byval_copy4 = sp + 36|0;
  25503. $4 = sp + 24|0;
  25504. $5 = sp + 12|0;
  25505. $6 = sp;
  25506. ;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;
  25507. ;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;
  25508. _VectorSubtract($4,$$byval_copy4,$$byval_copy5);
  25509. _VectorNormalize($4);
  25510. ;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;
  25511. ;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;
  25512. _VectorCrossProduct($5,$$byval_copy4,$$byval_copy5);
  25513. _VectorNormalize($5);
  25514. ;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;
  25515. ;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;
  25516. _VectorCrossProduct($6,$$byval_copy4,$$byval_copy5);
  25517. _VectorNormalize($6);
  25518. $7 = +HEAPF32[$5>>2];
  25519. $8 = ((($5)) + 4|0);
  25520. $9 = +HEAPF32[$8>>2];
  25521. $10 = ((($5)) + 8|0);
  25522. $11 = +HEAPF32[$10>>2];
  25523. $12 = +HEAPF32[$1>>2];
  25524. $13 = $7 * $12;
  25525. $14 = ((($1)) + 4|0);
  25526. $15 = +HEAPF32[$14>>2];
  25527. $16 = $9 * $15;
  25528. $17 = $13 + $16;
  25529. $18 = ((($1)) + 8|0);
  25530. $19 = +HEAPF32[$18>>2];
  25531. $20 = $11 * $19;
  25532. $21 = $17 + $20;
  25533. $22 = -$21;
  25534. $23 = +HEAPF32[$6>>2];
  25535. $24 = ((($6)) + 4|0);
  25536. $25 = +HEAPF32[$24>>2];
  25537. $26 = ((($6)) + 8|0);
  25538. $27 = +HEAPF32[$26>>2];
  25539. $28 = $12 * $23;
  25540. $29 = $15 * $25;
  25541. $30 = $28 + $29;
  25542. $31 = $19 * $27;
  25543. $32 = $30 + $31;
  25544. $33 = -$32;
  25545. $34 = +HEAPF32[$4>>2];
  25546. $35 = ((($4)) + 4|0);
  25547. $36 = +HEAPF32[$35>>2];
  25548. $37 = ((($4)) + 8|0);
  25549. $38 = +HEAPF32[$37>>2];
  25550. $39 = $12 * $34;
  25551. $40 = $15 * $36;
  25552. $41 = $39 + $40;
  25553. $42 = $19 * $38;
  25554. $43 = $41 + $42;
  25555. $44 = -$43;
  25556. HEAPF32[$0>>2] = $7;
  25557. $$sroa$4$0$$sroa_idx2 = ((($0)) + 4|0);
  25558. HEAPF32[$$sroa$4$0$$sroa_idx2>>2] = $23;
  25559. $$sroa$5$0$$sroa_idx4 = ((($0)) + 8|0);
  25560. HEAPF32[$$sroa$5$0$$sroa_idx4>>2] = $34;
  25561. $$sroa$6$0$$sroa_idx6 = ((($0)) + 12|0);
  25562. HEAPF32[$$sroa$6$0$$sroa_idx6>>2] = 0.0;
  25563. $$sroa$7$0$$sroa_idx8 = ((($0)) + 16|0);
  25564. HEAPF32[$$sroa$7$0$$sroa_idx8>>2] = $9;
  25565. $$sroa$8$0$$sroa_idx10 = ((($0)) + 20|0);
  25566. HEAPF32[$$sroa$8$0$$sroa_idx10>>2] = $25;
  25567. $$sroa$9$0$$sroa_idx12 = ((($0)) + 24|0);
  25568. HEAPF32[$$sroa$9$0$$sroa_idx12>>2] = $36;
  25569. $$sroa$10$0$$sroa_idx14 = ((($0)) + 28|0);
  25570. HEAPF32[$$sroa$10$0$$sroa_idx14>>2] = 0.0;
  25571. $$sroa$11$0$$sroa_idx16 = ((($0)) + 32|0);
  25572. HEAPF32[$$sroa$11$0$$sroa_idx16>>2] = $11;
  25573. $$sroa$12$0$$sroa_idx18 = ((($0)) + 36|0);
  25574. HEAPF32[$$sroa$12$0$$sroa_idx18>>2] = $27;
  25575. $$sroa$13$0$$sroa_idx20 = ((($0)) + 40|0);
  25576. HEAPF32[$$sroa$13$0$$sroa_idx20>>2] = $38;
  25577. $$sroa$14$0$$sroa_idx22 = ((($0)) + 44|0);
  25578. HEAPF32[$$sroa$14$0$$sroa_idx22>>2] = 0.0;
  25579. $$sroa$15$0$$sroa_idx24 = ((($0)) + 48|0);
  25580. HEAPF32[$$sroa$15$0$$sroa_idx24>>2] = $22;
  25581. $$sroa$16$0$$sroa_idx26 = ((($0)) + 52|0);
  25582. HEAPF32[$$sroa$16$0$$sroa_idx26>>2] = $33;
  25583. $$sroa$17$0$$sroa_idx28 = ((($0)) + 56|0);
  25584. HEAPF32[$$sroa$17$0$$sroa_idx28>>2] = $44;
  25585. $$sroa$18$0$$sroa_idx30 = ((($0)) + 60|0);
  25586. HEAPF32[$$sroa$18$0$$sroa_idx30>>2] = 1.0;
  25587. STACKTOP = sp;return;
  25588. }
  25589. function _rlVertex2i($0,$1) {
  25590. $0 = $0|0;
  25591. $1 = $1|0;
  25592. var $2 = 0.0, $3 = 0.0, $4 = 0.0, label = 0, sp = 0;
  25593. sp = STACKTOP;
  25594. $2 = (+($0|0));
  25595. $3 = (+($1|0));
  25596. $4 = +HEAPF32[926];
  25597. _rlVertex3f($2,$3,$4);
  25598. return;
  25599. }
  25600. function _DrawRectangle($0,$1,$2,$3,$4) {
  25601. $0 = $0|0;
  25602. $1 = $1|0;
  25603. $2 = $2|0;
  25604. $3 = $3|0;
  25605. $4 = $4|0;
  25606. var $$byval_copy = 0, $$byval_copy1 = 0, $$byval_copy2 = 0, $10 = 0.0, $11 = 0, $12 = 0.0, $5 = 0, $6 = 0, $7 = 0.0, $8 = 0, $9 = 0.0, label = 0, sp = 0;
  25607. sp = STACKTOP;
  25608. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  25609. $$byval_copy2 = sp + 32|0;
  25610. $$byval_copy1 = sp + 24|0;
  25611. $$byval_copy = sp + 16|0;
  25612. $5 = sp + 8|0;
  25613. $6 = sp;
  25614. $7 = (+($0|0));
  25615. HEAPF32[$5>>2] = $7;
  25616. $8 = ((($5)) + 4|0);
  25617. $9 = (+($1|0));
  25618. HEAPF32[$8>>2] = $9;
  25619. $10 = (+($2|0));
  25620. HEAPF32[$6>>2] = $10;
  25621. $11 = ((($6)) + 4|0);
  25622. $12 = (+($3|0));
  25623. HEAPF32[$11>>2] = $12;
  25624. ;HEAP32[$$byval_copy>>2]=HEAP32[$5>>2]|0;HEAP32[$$byval_copy+4>>2]=HEAP32[$5+4>>2]|0;
  25625. ;HEAP32[$$byval_copy1>>2]=HEAP32[$6>>2]|0;HEAP32[$$byval_copy1+4>>2]=HEAP32[$6+4>>2]|0;
  25626. ;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;
  25627. _DrawRectangleV($$byval_copy,$$byval_copy1,$$byval_copy2);
  25628. STACKTOP = sp;return;
  25629. }
  25630. function _DrawRectangleV($0,$1,$2) {
  25631. $0 = $0|0;
  25632. $1 = $1|0;
  25633. $2 = $2|0;
  25634. var $10 = 0, $11 = 0, $12 = 0, $13 = 0.0, $14 = 0, $15 = 0, $16 = 0.0, $17 = 0, $18 = 0, $19 = 0.0, $20 = 0.0, $21 = 0, $22 = 0.0, $23 = 0.0, $24 = 0.0, $25 = 0, $26 = 0.0, $27 = 0.0, $28 = 0.0, $29 = 0;
  25635. var $3 = 0, $30 = 0.0, $31 = 0, $32 = 0.0, $33 = 0, $34 = 0.0, $35 = 0.0, $36 = 0, $37 = 0.0, $38 = 0.0, $39 = 0, $4 = 0, $40 = 0.0, $41 = 0.0, $42 = 0.0, $43 = 0, $44 = 0.0, $45 = 0, $46 = 0, $47 = 0;
  25636. 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.0, $61 = 0, $62 = 0.0, $63 = 0, $64 = 0.0, $65 = 0.0;
  25637. var $66 = 0.0, $67 = 0.0, $68 = 0.0, $69 = 0.0, $7 = 0, $70 = 0.0, $71 = 0.0, $72 = 0.0, $73 = 0.0, $74 = 0.0, $75 = 0.0, $8 = 0, $9 = 0, label = 0, sp = 0;
  25638. sp = STACKTOP;
  25639. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  25640. $3 = sp;
  25641. $4 = (_rlGetVersion()|0);
  25642. $5 = ($4|0)==(1);
  25643. if ($5) {
  25644. _rlBegin(4);
  25645. $6 = HEAP8[$2>>0]|0;
  25646. $7 = ((($2)) + 1|0);
  25647. $8 = HEAP8[$7>>0]|0;
  25648. $9 = ((($2)) + 2|0);
  25649. $10 = HEAP8[$9>>0]|0;
  25650. $11 = ((($2)) + 3|0);
  25651. $12 = HEAP8[$11>>0]|0;
  25652. _rlColor4ub($6,$8,$10,$12);
  25653. $13 = +HEAPF32[$0>>2];
  25654. $14 = (~~(($13)));
  25655. $15 = ((($0)) + 4|0);
  25656. $16 = +HEAPF32[$15>>2];
  25657. $17 = (~~(($16)));
  25658. _rlVertex2i($14,$17);
  25659. $18 = ((($1)) + 4|0);
  25660. $19 = +HEAPF32[$18>>2];
  25661. $20 = $16 + $19;
  25662. $21 = (~~(($20)));
  25663. _rlVertex2i($14,$21);
  25664. $22 = +HEAPF32[$0>>2];
  25665. $23 = +HEAPF32[$1>>2];
  25666. $24 = $22 + $23;
  25667. $25 = (~~(($24)));
  25668. $26 = +HEAPF32[$15>>2];
  25669. $27 = +HEAPF32[$18>>2];
  25670. $28 = $26 + $27;
  25671. $29 = (~~(($28)));
  25672. _rlVertex2i($25,$29);
  25673. $30 = +HEAPF32[$0>>2];
  25674. $31 = (~~(($30)));
  25675. $32 = +HEAPF32[$15>>2];
  25676. $33 = (~~(($32)));
  25677. _rlVertex2i($31,$33);
  25678. $34 = +HEAPF32[$1>>2];
  25679. $35 = $30 + $34;
  25680. $36 = (~~(($35)));
  25681. $37 = +HEAPF32[$18>>2];
  25682. $38 = $32 + $37;
  25683. $39 = (~~(($38)));
  25684. _rlVertex2i($36,$39);
  25685. $40 = +HEAPF32[$0>>2];
  25686. $41 = +HEAPF32[$1>>2];
  25687. $42 = $40 + $41;
  25688. $43 = (~~(($42)));
  25689. $44 = +HEAPF32[$15>>2];
  25690. $45 = (~~(($44)));
  25691. _rlVertex2i($43,$45);
  25692. _rlEnd();
  25693. STACKTOP = sp;return;
  25694. }
  25695. $46 = (_rlGetVersion()|0);
  25696. $47 = ($46|0)==(2);
  25697. if (!($47)) {
  25698. $48 = (_rlGetVersion()|0);
  25699. $49 = ($48|0)==(3);
  25700. if (!($49)) {
  25701. $50 = (_rlGetVersion()|0);
  25702. $51 = ($50|0)==(4);
  25703. if (!($51)) {
  25704. STACKTOP = sp;return;
  25705. }
  25706. }
  25707. }
  25708. _GetDefaultTexture($3);
  25709. $52 = HEAP32[$3>>2]|0;
  25710. _rlEnableTexture($52);
  25711. _rlBegin(7);
  25712. $53 = HEAP8[$2>>0]|0;
  25713. $54 = ((($2)) + 1|0);
  25714. $55 = HEAP8[$54>>0]|0;
  25715. $56 = ((($2)) + 2|0);
  25716. $57 = HEAP8[$56>>0]|0;
  25717. $58 = ((($2)) + 3|0);
  25718. $59 = HEAP8[$58>>0]|0;
  25719. _rlColor4ub($53,$55,$57,$59);
  25720. _rlTexCoord2f(0.0,0.0);
  25721. $60 = +HEAPF32[$0>>2];
  25722. $61 = ((($0)) + 4|0);
  25723. $62 = +HEAPF32[$61>>2];
  25724. _rlVertex2f($60,$62);
  25725. _rlTexCoord2f(0.0,1.0);
  25726. $63 = ((($1)) + 4|0);
  25727. $64 = +HEAPF32[$63>>2];
  25728. $65 = $62 + $64;
  25729. _rlVertex2f($60,$65);
  25730. _rlTexCoord2f(1.0,1.0);
  25731. $66 = +HEAPF32[$0>>2];
  25732. $67 = +HEAPF32[$1>>2];
  25733. $68 = $66 + $67;
  25734. $69 = +HEAPF32[$61>>2];
  25735. $70 = +HEAPF32[$63>>2];
  25736. $71 = $69 + $70;
  25737. _rlVertex2f($68,$71);
  25738. _rlTexCoord2f(1.0,0.0);
  25739. $72 = +HEAPF32[$0>>2];
  25740. $73 = +HEAPF32[$1>>2];
  25741. $74 = $72 + $73;
  25742. $75 = +HEAPF32[$61>>2];
  25743. _rlVertex2f($74,$75);
  25744. _rlEnd();
  25745. _rlDisableTexture();
  25746. STACKTOP = sp;return;
  25747. }
  25748. function _Vector2Distance($0,$1) {
  25749. $0 = $0|0;
  25750. $1 = $1|0;
  25751. 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;
  25752. sp = STACKTOP;
  25753. $2 = +HEAPF32[$0>>2];
  25754. $3 = +HEAPF32[$1>>2];
  25755. $4 = $2 - $3;
  25756. $5 = $4 * $4;
  25757. $6 = ((($0)) + 4|0);
  25758. $7 = +HEAPF32[$6>>2];
  25759. $8 = ((($1)) + 4|0);
  25760. $9 = +HEAPF32[$8>>2];
  25761. $10 = $7 - $9;
  25762. $11 = $10 * $10;
  25763. $12 = $5 + $11;
  25764. $13 = (+Math_sqrt((+$12)));
  25765. return (+$13);
  25766. }
  25767. function _Vector2Angle($0,$1) {
  25768. $0 = $0|0;
  25769. $1 = $1|0;
  25770. 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;
  25771. sp = STACKTOP;
  25772. $2 = ((($1)) + 4|0);
  25773. $3 = +HEAPF32[$2>>2];
  25774. $4 = ((($0)) + 4|0);
  25775. $5 = +HEAPF32[$4>>2];
  25776. $6 = $3 - $5;
  25777. $7 = +HEAPF32[$1>>2];
  25778. $8 = +HEAPF32[$0>>2];
  25779. $9 = $7 - $8;
  25780. $10 = (+Math_atan2((+$6),(+$9)));
  25781. $11 = $10 * 57.2957763671875;
  25782. $12 = $11 < 0.0;
  25783. $13 = $11 + 360.0;
  25784. $$0 = $12 ? $13 : $11;
  25785. return (+$$0);
  25786. }
  25787. function _VectorZero($0) {
  25788. $0 = $0|0;
  25789. var $1 = 0, $2 = 0, label = 0, sp = 0;
  25790. sp = STACKTOP;
  25791. HEAPF32[$0>>2] = 0.0;
  25792. $1 = ((($0)) + 4|0);
  25793. HEAPF32[$1>>2] = 0.0;
  25794. $2 = ((($0)) + 8|0);
  25795. HEAPF32[$2>>2] = 0.0;
  25796. return;
  25797. }
  25798. function _MatrixFrustum($0,$1,$2,$3,$4,$5,$6) {
  25799. $0 = $0|0;
  25800. $1 = +$1;
  25801. $2 = +$2;
  25802. $3 = +$3;
  25803. $4 = +$4;
  25804. $5 = +$5;
  25805. $6 = +$6;
  25806. 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;
  25807. 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;
  25808. var $35 = 0.0, $7 = 0.0, $8 = 0.0, $9 = 0.0, label = 0, sp = 0;
  25809. sp = STACKTOP;
  25810. $7 = $2 - $1;
  25811. $8 = $7;
  25812. $9 = $4 - $3;
  25813. $10 = $9;
  25814. $11 = $6 - $5;
  25815. $12 = $11;
  25816. $13 = $5 * 2.0;
  25817. $14 = $8;
  25818. $15 = $13 / $14;
  25819. $16 = $15;
  25820. $17 = $10;
  25821. $18 = $13 / $17;
  25822. $19 = $18;
  25823. $20 = $1 + $2;
  25824. $21 = $20 / $14;
  25825. $22 = $21;
  25826. $23 = $3 + $4;
  25827. $24 = $23 / $17;
  25828. $25 = $24;
  25829. $26 = $5 + $6;
  25830. $27 = -$26;
  25831. $28 = $12;
  25832. $29 = $27 / $28;
  25833. $30 = $29;
  25834. $31 = $5 * $6;
  25835. $32 = $31 * 2.0;
  25836. $33 = -$32;
  25837. $34 = $33 / $28;
  25838. $35 = $34;
  25839. HEAPF32[$0>>2] = $16;
  25840. $$sroa$4$0$$sroa_idx12 = ((($0)) + 4|0);
  25841. HEAPF32[$$sroa$4$0$$sroa_idx12>>2] = 0.0;
  25842. $$sroa$5$0$$sroa_idx14 = ((($0)) + 8|0);
  25843. HEAPF32[$$sroa$5$0$$sroa_idx14>>2] = $22;
  25844. $$sroa$6$0$$sroa_idx16 = ((($0)) + 12|0);
  25845. HEAPF32[$$sroa$6$0$$sroa_idx16>>2] = 0.0;
  25846. $$sroa$7$0$$sroa_idx18 = ((($0)) + 16|0);
  25847. HEAPF32[$$sroa$7$0$$sroa_idx18>>2] = 0.0;
  25848. $$sroa$8$0$$sroa_idx20 = ((($0)) + 20|0);
  25849. HEAPF32[$$sroa$8$0$$sroa_idx20>>2] = $19;
  25850. $$sroa$9$0$$sroa_idx22 = ((($0)) + 24|0);
  25851. HEAPF32[$$sroa$9$0$$sroa_idx22>>2] = $25;
  25852. $$sroa$10$0$$sroa_idx24 = ((($0)) + 28|0);
  25853. HEAPF32[$$sroa$10$0$$sroa_idx24>>2] = 0.0;
  25854. $$sroa$11$0$$sroa_idx26 = ((($0)) + 32|0);
  25855. HEAPF32[$$sroa$11$0$$sroa_idx26>>2] = 0.0;
  25856. $$sroa$12$0$$sroa_idx28 = ((($0)) + 36|0);
  25857. HEAPF32[$$sroa$12$0$$sroa_idx28>>2] = 0.0;
  25858. $$sroa$13$0$$sroa_idx30 = ((($0)) + 40|0);
  25859. HEAPF32[$$sroa$13$0$$sroa_idx30>>2] = $30;
  25860. $$sroa$14$0$$sroa_idx32 = ((($0)) + 44|0);
  25861. HEAPF32[$$sroa$14$0$$sroa_idx32>>2] = $35;
  25862. $$sroa$15$0$$sroa_idx34 = ((($0)) + 48|0);
  25863. HEAPF32[$$sroa$15$0$$sroa_idx34>>2] = 0.0;
  25864. $$sroa$16$0$$sroa_idx36 = ((($0)) + 52|0);
  25865. HEAPF32[$$sroa$16$0$$sroa_idx36>>2] = 0.0;
  25866. $$sroa$17$0$$sroa_idx38 = ((($0)) + 56|0);
  25867. HEAPF32[$$sroa$17$0$$sroa_idx38>>2] = -1.0;
  25868. $$sroa$18$0$$sroa_idx40 = ((($0)) + 60|0);
  25869. HEAPF32[$$sroa$18$0$$sroa_idx40>>2] = 0.0;
  25870. return;
  25871. }
  25872. function _MatrixOrtho($0,$1,$2,$3,$4,$5,$6) {
  25873. $0 = $0|0;
  25874. $1 = +$1;
  25875. $2 = +$2;
  25876. $3 = +$3;
  25877. $4 = +$4;
  25878. $5 = +$5;
  25879. $6 = +$6;
  25880. 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;
  25881. 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;
  25882. var sp = 0;
  25883. sp = STACKTOP;
  25884. $7 = $2 - $1;
  25885. $8 = $7;
  25886. $9 = $4 - $3;
  25887. $10 = $9;
  25888. $11 = $6 - $5;
  25889. $12 = $11;
  25890. $13 = 2.0 / $8;
  25891. $14 = 2.0 / $10;
  25892. $15 = -2.0 / $12;
  25893. $16 = $1 + $2;
  25894. $17 = -$16;
  25895. $18 = $8;
  25896. $19 = $17 / $18;
  25897. $20 = $19;
  25898. $21 = $3 + $4;
  25899. $22 = -$21;
  25900. $23 = $10;
  25901. $24 = $22 / $23;
  25902. $25 = $24;
  25903. $26 = $5 + $6;
  25904. $27 = -$26;
  25905. $28 = $12;
  25906. $29 = $27 / $28;
  25907. $30 = $29;
  25908. HEAPF32[$0>>2] = $13;
  25909. $$sroa$4$0$$sroa_idx12 = ((($0)) + 4|0);
  25910. HEAPF32[$$sroa$4$0$$sroa_idx12>>2] = 0.0;
  25911. $$sroa$5$0$$sroa_idx14 = ((($0)) + 8|0);
  25912. HEAPF32[$$sroa$5$0$$sroa_idx14>>2] = 0.0;
  25913. $$sroa$6$0$$sroa_idx16 = ((($0)) + 12|0);
  25914. HEAPF32[$$sroa$6$0$$sroa_idx16>>2] = $20;
  25915. $$sroa$7$0$$sroa_idx18 = ((($0)) + 16|0);
  25916. HEAPF32[$$sroa$7$0$$sroa_idx18>>2] = 0.0;
  25917. $$sroa$8$0$$sroa_idx20 = ((($0)) + 20|0);
  25918. HEAPF32[$$sroa$8$0$$sroa_idx20>>2] = $14;
  25919. $$sroa$9$0$$sroa_idx22 = ((($0)) + 24|0);
  25920. HEAPF32[$$sroa$9$0$$sroa_idx22>>2] = 0.0;
  25921. $$sroa$10$0$$sroa_idx24 = ((($0)) + 28|0);
  25922. HEAPF32[$$sroa$10$0$$sroa_idx24>>2] = $25;
  25923. $$sroa$11$0$$sroa_idx26 = ((($0)) + 32|0);
  25924. HEAPF32[$$sroa$11$0$$sroa_idx26>>2] = 0.0;
  25925. $$sroa$12$0$$sroa_idx28 = ((($0)) + 36|0);
  25926. HEAPF32[$$sroa$12$0$$sroa_idx28>>2] = 0.0;
  25927. $$sroa$13$0$$sroa_idx30 = ((($0)) + 40|0);
  25928. HEAPF32[$$sroa$13$0$$sroa_idx30>>2] = $15;
  25929. $$sroa$14$0$$sroa_idx32 = ((($0)) + 44|0);
  25930. HEAPF32[$$sroa$14$0$$sroa_idx32>>2] = $30;
  25931. $$sroa$15$0$$sroa_idx34 = ((($0)) + 48|0);
  25932. HEAPF32[$$sroa$15$0$$sroa_idx34>>2] = 0.0;
  25933. $$sroa$16$0$$sroa_idx36 = ((($0)) + 52|0);
  25934. HEAPF32[$$sroa$16$0$$sroa_idx36>>2] = 0.0;
  25935. $$sroa$17$0$$sroa_idx38 = ((($0)) + 56|0);
  25936. HEAPF32[$$sroa$17$0$$sroa_idx38>>2] = 0.0;
  25937. $$sroa$18$0$$sroa_idx40 = ((($0)) + 60|0);
  25938. HEAPF32[$$sroa$18$0$$sroa_idx40>>2] = 1.0;
  25939. return;
  25940. }
  25941. function _ProcessGestureEvent($0) {
  25942. $0 = $0|0;
  25943. 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;
  25944. 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;
  25945. 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;
  25946. 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;
  25947. 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;
  25948. 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;
  25949. 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;
  25950. 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;
  25951. 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;
  25952. var $moveDownPosition2$byval_copy12 = 0, $or$cond = 0, $or$cond3 = 0, $or$cond5 = 0, $or$cond7 = 0, $or$cond9 = 0, label = 0, sp = 0;
  25953. sp = STACKTOP;
  25954. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  25955. $moveDownPosition2$byval_copy12 = sp + 8|0;
  25956. $moveDownPosition$byval_copy11 = sp;
  25957. $1 = ((($0)) + 4|0);
  25958. $2 = HEAP32[$1>>2]|0;
  25959. HEAP32[5650] = $2;
  25960. $3 = ($2|0)<(2);
  25961. $4 = HEAP32[$0>>2]|0;
  25962. $5 = ($4|0)==(1);
  25963. if (!($3)) {
  25964. if ($5) {
  25965. $88 = ((($0)) + 24|0);
  25966. $89 = $88;
  25967. $90 = $89;
  25968. $91 = HEAP32[$90>>2]|0;
  25969. $92 = (($89) + 4)|0;
  25970. $93 = $92;
  25971. $94 = HEAP32[$93>>2]|0;
  25972. $95 = 19448;
  25973. $96 = $95;
  25974. HEAP32[$96>>2] = $91;
  25975. $97 = (($95) + 4)|0;
  25976. $98 = $97;
  25977. HEAP32[$98>>2] = $94;
  25978. $99 = ((($0)) + 32|0);
  25979. $100 = $99;
  25980. $101 = $100;
  25981. $102 = HEAP32[$101>>2]|0;
  25982. $103 = (($100) + 4)|0;
  25983. $104 = $103;
  25984. $105 = HEAP32[$104>>2]|0;
  25985. $106 = 19488;
  25986. $107 = $106;
  25987. HEAP32[$107>>2] = $102;
  25988. $108 = (($106) + 4)|0;
  25989. $109 = $108;
  25990. HEAP32[$109>>2] = $105;
  25991. $110 = +HEAPF32[4872];
  25992. $111 = +HEAPF32[4862];
  25993. $112 = $110 - $111;
  25994. HEAPF32[4874] = $112;
  25995. $113 = +HEAPF32[(19492)>>2];
  25996. $114 = +HEAPF32[(19452)>>2];
  25997. $115 = $113 - $114;
  25998. HEAPF32[(19500)>>2] = $115;
  25999. HEAP32[5649] = 4;
  26000. STACKTOP = sp;return;
  26001. }
  26002. switch ($4|0) {
  26003. case 2: {
  26004. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[19480>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[19480+4>>2]|0;
  26005. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[19504>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[19504+4>>2]|0;
  26006. $116 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  26007. HEAPF32[5655] = $116;
  26008. $117 = 19480;
  26009. $118 = $117;
  26010. $119 = HEAP32[$118>>2]|0;
  26011. $120 = (($117) + 4)|0;
  26012. $121 = $120;
  26013. $122 = HEAP32[$121>>2]|0;
  26014. $123 = 19448;
  26015. $124 = $123;
  26016. HEAP32[$124>>2] = $119;
  26017. $125 = (($123) + 4)|0;
  26018. $126 = $125;
  26019. HEAP32[$126>>2] = $122;
  26020. $127 = 19504;
  26021. $128 = $127;
  26022. $129 = HEAP32[$128>>2]|0;
  26023. $130 = (($127) + 4)|0;
  26024. $131 = $130;
  26025. $132 = HEAP32[$131>>2]|0;
  26026. $133 = 19488;
  26027. $134 = $133;
  26028. HEAP32[$134>>2] = $129;
  26029. $135 = (($133) + 4)|0;
  26030. $136 = $135;
  26031. HEAP32[$136>>2] = $132;
  26032. $137 = ((($0)) + 24|0);
  26033. $138 = $137;
  26034. $139 = $138;
  26035. $140 = HEAP32[$139>>2]|0;
  26036. $141 = (($138) + 4)|0;
  26037. $142 = $141;
  26038. $143 = HEAP32[$142>>2]|0;
  26039. $144 = 19480;
  26040. $145 = $144;
  26041. HEAP32[$145>>2] = $140;
  26042. $146 = (($144) + 4)|0;
  26043. $147 = $146;
  26044. HEAP32[$147>>2] = $143;
  26045. $148 = ((($0)) + 32|0);
  26046. $149 = $148;
  26047. $150 = $149;
  26048. $151 = HEAP32[$150>>2]|0;
  26049. $152 = (($149) + 4)|0;
  26050. $153 = $152;
  26051. $154 = HEAP32[$153>>2]|0;
  26052. $155 = 19504;
  26053. $156 = $155;
  26054. HEAP32[$156>>2] = $151;
  26055. $157 = (($155) + 4)|0;
  26056. $158 = $157;
  26057. HEAP32[$158>>2] = $154;
  26058. $159 = +HEAPF32[4876];
  26059. $160 = +HEAPF32[4870];
  26060. $161 = $159 - $160;
  26061. HEAPF32[4874] = $161;
  26062. $162 = +HEAPF32[(19508)>>2];
  26063. $163 = +HEAPF32[(19484)>>2];
  26064. $164 = $162 - $163;
  26065. HEAPF32[(19500)>>2] = $164;
  26066. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[19448>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[19448+4>>2]|0;
  26067. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[19480>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[19480+4>>2]|0;
  26068. $165 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  26069. $166 = !($165 >= 0.004999999888241291);
  26070. if ($166) {
  26071. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[19488>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[19488+4>>2]|0;
  26072. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[19504>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[19504+4>>2]|0;
  26073. $167 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  26074. $168 = !($167 >= 0.004999999888241291);
  26075. if ($168) {
  26076. $$sink16 = 4;
  26077. } else {
  26078. label = 29;
  26079. }
  26080. } else {
  26081. label = 29;
  26082. }
  26083. if ((label|0) == 29) {
  26084. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[19480>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[19480+4>>2]|0;
  26085. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[19504>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[19504+4>>2]|0;
  26086. $169 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  26087. $170 = +HEAPF32[5655];
  26088. $171 = $169 - $170;
  26089. $172 = $171 < 0.0;
  26090. $$sink11 = $172 ? 256 : 512;
  26091. $$sink16 = $$sink11;
  26092. }
  26093. HEAP32[5649] = $$sink16;
  26094. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[19480>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[19480+4>>2]|0;
  26095. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[19504>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[19504+4>>2]|0;
  26096. $173 = (+_Vector2Angle($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  26097. $174 = 360.0 - $173;
  26098. HEAPF32[5656] = $174;
  26099. STACKTOP = sp;return;
  26100. break;
  26101. }
  26102. case 0: {
  26103. HEAPF32[5655] = 0.0;
  26104. HEAPF32[5656] = 0.0;
  26105. HEAPF32[4874] = 0.0;
  26106. HEAPF32[(19500)>>2] = 0.0;
  26107. HEAP32[5650] = 0;
  26108. HEAP32[5649] = 0;
  26109. STACKTOP = sp;return;
  26110. break;
  26111. }
  26112. default: {
  26113. STACKTOP = sp;return;
  26114. }
  26115. }
  26116. }
  26117. if ($5) {
  26118. $6 = HEAP32[5651]|0;
  26119. $7 = (($6) + 1)|0;
  26120. HEAP32[5651] = $7;
  26121. $8 = HEAP32[5649]|0;
  26122. $9 = ($8|0)==(0);
  26123. $10 = ($6|0)>(0);
  26124. $or$cond = $10 & $9;
  26125. if ($or$cond) {
  26126. $11 = ((($0)) + 24|0);
  26127. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[19448>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[19448+4>>2]|0;
  26128. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[$11>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[$11+4>>2]|0;
  26129. $12 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  26130. $13 = $12 < 0.029999999329447746;
  26131. if ($13) {
  26132. HEAP32[5649] = 2;
  26133. HEAP32[5651] = 0;
  26134. } else {
  26135. label = 6;
  26136. }
  26137. } else {
  26138. label = 6;
  26139. }
  26140. if ((label|0) == 6) {
  26141. HEAP32[5651] = 1;
  26142. HEAP32[5649] = 1;
  26143. }
  26144. $14 = ((($0)) + 24|0);
  26145. $15 = $14;
  26146. $16 = $15;
  26147. $17 = HEAP32[$16>>2]|0;
  26148. $18 = (($15) + 4)|0;
  26149. $19 = $18;
  26150. $20 = HEAP32[$19>>2]|0;
  26151. $21 = 19448;
  26152. $22 = $21;
  26153. HEAP32[$22>>2] = $17;
  26154. $23 = (($21) + 4)|0;
  26155. $24 = $23;
  26156. HEAP32[$24>>2] = $20;
  26157. $25 = 19456;
  26158. $26 = $25;
  26159. HEAP32[$26>>2] = $17;
  26160. $27 = (($25) + 4)|0;
  26161. $28 = $27;
  26162. HEAP32[$28>>2] = $20;
  26163. $29 = 19464;
  26164. $30 = $29;
  26165. HEAP32[$30>>2] = $17;
  26166. $31 = (($29) + 4)|0;
  26167. $32 = $31;
  26168. HEAP32[$32>>2] = $20;
  26169. $33 = ((($0)) + 8|0);
  26170. $34 = HEAP32[$33>>2]|0;
  26171. HEAP32[928] = $34;
  26172. HEAPF32[4868] = 0.0;
  26173. HEAPF32[(19476)>>2] = 0.0;
  26174. STACKTOP = sp;return;
  26175. }
  26176. switch ($4|0) {
  26177. case 0: {
  26178. $35 = HEAP32[5649]|0;
  26179. $36 = ($35|0)==(8);
  26180. if ($36) {
  26181. $37 = ((($0)) + 24|0);
  26182. $38 = $37;
  26183. $39 = $38;
  26184. $40 = HEAP32[$39>>2]|0;
  26185. $41 = (($38) + 4)|0;
  26186. $42 = $41;
  26187. $43 = HEAP32[$42>>2]|0;
  26188. $44 = 19464;
  26189. $45 = $44;
  26190. HEAP32[$45>>2] = $40;
  26191. $46 = (($44) + 4)|0;
  26192. $47 = $46;
  26193. HEAP32[$47>>2] = $43;
  26194. }
  26195. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[19448>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[19448+4>>2]|0;
  26196. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[19464>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[19464+4>>2]|0;
  26197. $48 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  26198. $49 = $48 / 0.0;
  26199. HEAPF32[5652] = $49;
  26200. HEAP32[5653] = 0;
  26201. $50 = $49 > 5.0000002374872565E-4;
  26202. if ($50) {
  26203. $51 = HEAP32[928]|0;
  26204. $52 = ((($0)) + 8|0);
  26205. $53 = HEAP32[$52>>2]|0;
  26206. $54 = ($51|0)==($53|0);
  26207. if ($54) {
  26208. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[19448>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[19448+4>>2]|0;
  26209. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[19464>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[19464+4>>2]|0;
  26210. $55 = (+_Vector2Angle($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  26211. $56 = 360.0 - $55;
  26212. HEAPF32[5654] = $56;
  26213. $57 = $56 < 30.0;
  26214. $58 = $56 > 330.0;
  26215. $or$cond3 = $57 | $58;
  26216. if ($or$cond3) {
  26217. $$sink10 = 16;
  26218. } else {
  26219. $59 = $56 > 30.0;
  26220. $60 = $56 < 120.0;
  26221. $or$cond5 = $59 & $60;
  26222. if ($or$cond5) {
  26223. $$sink10 = 64;
  26224. } else {
  26225. $61 = $56 > 120.0;
  26226. $62 = $56 < 210.0;
  26227. $or$cond7 = $61 & $62;
  26228. $63 = $56 > 210.0;
  26229. $64 = $56 < 300.0;
  26230. $or$cond9 = $63 & $64;
  26231. $$sink = $or$cond9 ? 128 : 0;
  26232. $$$sink = $or$cond7 ? 32 : $$sink;
  26233. $$sink10 = $$$sink;
  26234. }
  26235. }
  26236. } else {
  26237. label = 16;
  26238. }
  26239. } else {
  26240. label = 16;
  26241. }
  26242. if ((label|0) == 16) {
  26243. HEAPF32[5652] = 0.0;
  26244. HEAPF32[5654] = 0.0;
  26245. $$sink10 = 0;
  26246. }
  26247. HEAP32[5649] = $$sink10;
  26248. HEAPF32[4864] = 0.0;
  26249. HEAPF32[(19460)>>2] = 0.0;
  26250. HEAP32[5650] = 0;
  26251. STACKTOP = sp;return;
  26252. break;
  26253. }
  26254. case 2: {
  26255. $65 = HEAP32[5653]|0;
  26256. $66 = ($65|0)==(0);
  26257. if ($66) {
  26258. HEAP32[5653] = 1;
  26259. }
  26260. $67 = ((($0)) + 24|0);
  26261. $68 = $67;
  26262. $69 = $68;
  26263. $70 = HEAP32[$69>>2]|0;
  26264. $71 = (($68) + 4)|0;
  26265. $72 = $71;
  26266. $73 = HEAP32[$72>>2]|0;
  26267. $74 = 19480;
  26268. $75 = $74;
  26269. HEAP32[$75>>2] = $70;
  26270. $76 = (($74) + 4)|0;
  26271. $77 = $76;
  26272. HEAP32[$77>>2] = $73;
  26273. $78 = HEAP32[5649]|0;
  26274. $79 = ($78|0)==(4);
  26275. if ($79) {
  26276. ;HEAP32[$moveDownPosition$byval_copy11>>2]=HEAP32[19448>>2]|0;HEAP32[$moveDownPosition$byval_copy11+4>>2]=HEAP32[19448+4>>2]|0;
  26277. ;HEAP32[$moveDownPosition2$byval_copy12>>2]=HEAP32[19480>>2]|0;HEAP32[$moveDownPosition2$byval_copy12+4>>2]=HEAP32[19480+4>>2]|0;
  26278. $80 = (+_Vector2Distance($moveDownPosition$byval_copy11,$moveDownPosition2$byval_copy12));
  26279. $81 = !($80 >= 0.014999999664723873);
  26280. if (!($81)) {
  26281. HEAP32[5649] = 8;
  26282. }
  26283. }
  26284. $82 = +HEAPF32[4870];
  26285. $83 = +HEAPF32[4864];
  26286. $84 = $82 - $83;
  26287. HEAPF32[4868] = $84;
  26288. $85 = +HEAPF32[(19484)>>2];
  26289. $86 = +HEAPF32[(19460)>>2];
  26290. $87 = $85 - $86;
  26291. HEAPF32[(19476)>>2] = $87;
  26292. STACKTOP = sp;return;
  26293. break;
  26294. }
  26295. default: {
  26296. STACKTOP = sp;return;
  26297. }
  26298. }
  26299. }
  26300. function _UpdateGestures() {
  26301. 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;
  26302. sp = STACKTOP;
  26303. $0 = HEAP32[5649]|0;
  26304. $$off = (($0) + -1)|0;
  26305. $1 = ($$off>>>0)<(2);
  26306. $2 = HEAP32[5650]|0;
  26307. $3 = ($2|0)<(2);
  26308. $or$cond3 = $1 & $3;
  26309. if ($or$cond3) {
  26310. HEAP32[5649] = 4;
  26311. }
  26312. $4 = HEAP32[5649]|0;
  26313. $5 = (($4) + -16)|0;
  26314. $6 = $5 >>> 4;
  26315. $7 = $5 << 28;
  26316. $8 = $6 | $7;
  26317. switch ($8|0) {
  26318. case 0: case 1: case 3: case 7: {
  26319. break;
  26320. }
  26321. default: {
  26322. return;
  26323. }
  26324. }
  26325. HEAP32[5649] = 0;
  26326. return;
  26327. }
  26328. function _SetCameraMode($0,$1) {
  26329. $0 = $0|0;
  26330. $1 = $1|0;
  26331. var $$off = 0, $$sroa$024$0$$sroa_idx = 0, $$sroa$024$0$copyload = 0.0, $$sroa$031$0$copyload = 0.0, $$sroa$4$0$$sroa_idx26 = 0, $$sroa$4$0$copyload = 0.0, $$sroa$433$0$$sroa_idx34 = 0, $$sroa$433$0$copyload = 0.0, $$sroa$528$0$$sroa_idx29 = 0, $$sroa$528$0$copyload = 0.0, $$sroa$536$0$$sroa_idx37 = 0, $$sroa$536$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;
  26332. var $18 = 0.0, $19 = 0.0, $2 = 0.0, $20 = 0.0, $21 = 0, $22 = 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;
  26333. sp = STACKTOP;
  26334. $$sroa$031$0$copyload = +HEAPF32[$0>>2];
  26335. $$sroa$433$0$$sroa_idx34 = ((($0)) + 4|0);
  26336. $$sroa$433$0$copyload = +HEAPF32[$$sroa$433$0$$sroa_idx34>>2];
  26337. $$sroa$536$0$$sroa_idx37 = ((($0)) + 8|0);
  26338. $$sroa$536$0$copyload = +HEAPF32[$$sroa$536$0$$sroa_idx37>>2];
  26339. $$sroa$024$0$$sroa_idx = ((($0)) + 12|0);
  26340. $$sroa$024$0$copyload = +HEAPF32[$$sroa$024$0$$sroa_idx>>2];
  26341. $$sroa$4$0$$sroa_idx26 = ((($0)) + 16|0);
  26342. $$sroa$4$0$copyload = +HEAPF32[$$sroa$4$0$$sroa_idx26>>2];
  26343. $$sroa$528$0$$sroa_idx29 = ((($0)) + 20|0);
  26344. $$sroa$528$0$copyload = +HEAPF32[$$sroa$528$0$$sroa_idx29>>2];
  26345. $2 = $$sroa$024$0$copyload - $$sroa$031$0$copyload;
  26346. $3 = $$sroa$4$0$copyload - $$sroa$433$0$copyload;
  26347. $4 = $$sroa$528$0$copyload - $$sroa$536$0$copyload;
  26348. $5 = $2 * $2;
  26349. $6 = $3 * $3;
  26350. $7 = $5 + $6;
  26351. $8 = $4 * $4;
  26352. $9 = $7 + $8;
  26353. $10 = (+Math_sqrt((+$9)));
  26354. HEAPF32[5657] = $10;
  26355. $11 = $5 + $8;
  26356. $12 = (+Math_sqrt((+$11)));
  26357. $13 = (+Math_sqrt((+$7)));
  26358. $14 = (+Math_abs((+$2)));
  26359. $15 = $14 / $12;
  26360. $16 = (+Math_asin((+$15)));
  26361. HEAPF32[5658] = $16;
  26362. $17 = (+Math_abs((+$3)));
  26363. $18 = $17 / $13;
  26364. $19 = (+Math_asin((+$18)));
  26365. $20 = -$19;
  26366. HEAPF32[5659] = $20;
  26367. $21 = HEAP32[$$sroa$433$0$$sroa_idx34>>2]|0;
  26368. HEAP32[929] = $21;
  26369. $$off = (($1) + -3)|0;
  26370. $22 = ($$off>>>0)<(2);
  26371. if ($22) {
  26372. _DisableCursor();
  26373. HEAP32[5660] = $1;
  26374. return;
  26375. } else {
  26376. _EnableCursor();
  26377. HEAP32[5660] = $1;
  26378. return;
  26379. }
  26380. }
  26381. function _DisableCursor() {
  26382. var label = 0, sp = 0;
  26383. sp = STACKTOP;
  26384. HEAP32[5661] = 1;
  26385. HEAP32[5662] = 1;
  26386. return;
  26387. }
  26388. function _EnableCursor() {
  26389. var label = 0, sp = 0;
  26390. sp = STACKTOP;
  26391. HEAP32[5661] = 1;
  26392. HEAP32[5662] = 0;
  26393. return;
  26394. }
  26395. function _UpdateCamera($0) {
  26396. $0 = $0|0;
  26397. var $$ = 0, $$0 = 0, $$not = 0, $$not170 = 0, $$pr = 0, $$pr172 = 0, $$sink = 0.0, $$sink15 = 0, $$sink20 = 0.0, $$sink20$p = 0.0, $$sink24 = 0.0, $$sink26 = 0.0, $1 = 0, $10 = 0, $100 = 0.0, $101 = 0.0, $102 = 0.0, $103 = 0.0, $104 = 0.0, $105 = 0;
  26398. var $106 = 0, $107 = 0.0, $108 = 0.0, $109 = 0.0, $11 = 0, $110 = 0, $111 = 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, $12 = 0, $120 = 0.0, $121 = 0.0, $122 = 0.0, $123 = 0.0;
  26399. var $124 = 0.0, $125 = 0.0, $126 = 0.0, $127 = 0.0, $128 = 0, $129 = 0.0, $13 = 0, $130 = 0, $131 = 0.0, $132 = 0.0, $133 = 0.0, $134 = 0.0, $135 = 0.0, $136 = 0.0, $137 = 0, $138 = 0.0, $139 = 0.0, $14 = 0, $140 = 0.0, $141 = 0.0;
  26400. var $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, $150 = 0.0, $151 = 0.0, $152 = 0, $153 = 0.0, $154 = 0, $155 = 0.0, $156 = 0.0, $157 = 0.0, $158 = 0.0, $159 = 0.0, $16 = 0;
  26401. var $160 = 0.0, $161 = 0, $162 = 0, $163 = 0, $164 = 0.0, $165 = 0.0, $166 = 0.0, $167 = 0.0, $168 = 0, $169 = 0, $17 = 0, $170 = 0, $171 = 0, $172 = 0.0, $173 = 0.0, $174 = 0.0, $175 = 0.0, $176 = 0.0, $177 = 0.0, $178 = 0.0;
  26402. var $179 = 0.0, $18 = 0, $180 = 0.0, $181 = 0, $182 = 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.0, $192 = 0.0, $193 = 0.0, $194 = 0.0, $195 = 0.0, $196 = 0.0;
  26403. var $197 = 0, $198 = 0.0, $199 = 0.0, $2 = 0, $20 = 0, $200 = 0.0, $201 = 0.0, $202 = 0.0, $203 = 0, $204 = 0.0, $205 = 0.0, $206 = 0.0, $207 = 0.0, $208 = 0.0, $209 = 0.0, $21 = 0, $210 = 0.0, $211 = 0.0, $212 = 0, $213 = 0.0;
  26404. var $214 = 0.0, $215 = 0.0, $216 = 0.0, $217 = 0.0, $218 = 0.0, $219 = 0.0, $22 = 0, $220 = 0.0, $221 = 0, $222 = 0, $223 = 0, $224 = 0, $225 = 0.0, $226 = 0.0, $227 = 0, $228 = 0.0, $229 = 0.0, $23 = 0, $230 = 0, $231 = 0.0;
  26405. var $232 = 0.0, $233 = 0.0, $234 = 0.0, $235 = 0, $236 = 0.0, $237 = 0.0, $238 = 0.0, $239 = 0, $24 = 0, $240 = 0.0, $241 = 0.0, $242 = 0.0, $243 = 0.0, $244 = 0.0, $245 = 0.0, $246 = 0.0, $247 = 0.0, $248 = 0.0, $249 = 0.0, $25 = 0;
  26406. var $250 = 0.0, $251 = 0, $252 = 0.0, $253 = 0.0, $254 = 0, $255 = 0.0, $256 = 0.0, $257 = 0.0, $258 = 0, $259 = 0.0, $26 = 0, $260 = 0.0, $261 = 0.0, $262 = 0.0, $263 = 0.0, $264 = 0.0, $265 = 0.0, $266 = 0.0, $267 = 0.0, $268 = 0.0;
  26407. var $269 = 0, $27 = 0, $270 = 0.0, $271 = 0.0, $272 = 0, $273 = 0, $274 = 0.0, $275 = 0.0, $276 = 0.0, $277 = 0.0, $278 = 0.0, $279 = 0.0, $28 = 0, $280 = 0, $281 = 0, $282 = 0, $283 = 0, $284 = 0.0, $285 = 0.0, $286 = 0.0;
  26408. var $287 = 0.0, $288 = 0, $289 = 0.0, $29 = 0.0, $290 = 0.0, $291 = 0.0, $292 = 0.0, $293 = 0.0, $294 = 0.0, $295 = 0.0, $296 = 0.0, $297 = 0, $298 = 0.0, $299 = 0.0, $3 = 0, $30 = 0.0, $300 = 0, $301 = 0.0, $302 = 0.0, $303 = 0.0;
  26409. var $304 = 0.0, $305 = 0, $306 = 0, $307 = 0.0, $308 = 0.0, $309 = 0.0, $31 = 0.0, $310 = 0.0, $311 = 0.0, $312 = 0, $313 = 0.0, $314 = 0.0, $315 = 0.0, $316 = 0.0, $317 = 0.0, $318 = 0, $319 = 0.0, $32 = 0, $320 = 0.0, $321 = 0.0;
  26410. var $322 = 0.0, $323 = 0, $324 = 0, $325 = 0, $326 = 0, $327 = 0.0, $328 = 0, $329 = 0.0, $33 = 0.0, $330 = 0.0, $331 = 0.0, $332 = 0.0, $333 = 0.0, $334 = 0.0, $335 = 0.0, $336 = 0.0, $337 = 0, $338 = 0.0, $339 = 0.0, $34 = 0.0;
  26411. var $340 = 0, $341 = 0, $342 = 0.0, $343 = 0.0, $344 = 0.0, $345 = 0.0, $346 = 0.0, $347 = 0.0, $348 = 0.0, $349 = 0, $35 = 0.0, $350 = 0.0, $351 = 0.0, $352 = 0, $353 = 0.0, $354 = 0.0, $355 = 0, $356 = 0.0, $357 = 0.0, $358 = 0.0;
  26412. var $359 = 0.0, $36 = 0, $360 = 0, $361 = 0.0, $362 = 0.0, $363 = 0.0, $364 = 0, $365 = 0.0, $366 = 0.0, $367 = 0, $368 = 0, $369 = 0, $37 = 0, $370 = 0, $371 = 0, $372 = 0, $373 = 0, $374 = 0, $375 = 0, $376 = 0;
  26413. var $377 = 0, $378 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0.0, $47 = 0, $48 = 0, $49 = 0.0, $5 = 0, $50 = 0.0, $51 = 0.0, $52 = 0, $53 = 0;
  26414. var $54 = 0.0, $55 = 0, $56 = 0, $57 = 0.0, $58 = 0, $59 = 0, $6 = 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, $69 = 0.0, $7 = 0, $70 = 0.0, $71 = 0.0;
  26415. var $72 = 0.0, $73 = 0, $74 = 0.0, $75 = 0, $76 = 0.0, $77 = 0.0, $78 = 0.0, $79 = 0.0, $8 = 0, $80 = 0.0, $81 = 0.0, $82 = 0, $83 = 0.0, $84 = 0.0, $85 = 0.0, $86 = 0.0, $87 = 0.0, $88 = 0.0, $89 = 0.0, $9 = 0;
  26416. var $90 = 0.0, $91 = 0.0, $92 = 0.0, $93 = 0.0, $94 = 0.0, $95 = 0.0, $96 = 0, $97 = 0.0, $98 = 0, $99 = 0.0, $not$ = 0, $or$cond = 0, $or$cond11 = 0, $or$cond13 = 0, $or$cond169 = 0, $or$cond171 = 0, $or$cond3 = 0, $or$cond5 = 0, $or$cond7 = 0, $or$cond9 = 0;
  26417. var $storemerge = 0.0, label = 0, sp = 0;
  26418. sp = STACKTOP;
  26419. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  26420. $1 = sp;
  26421. $2 = sp + 8|0;
  26422. _GetMousePosition($1);
  26423. $3 = (_GetMouseWheelMove()|0);
  26424. $4 = HEAP32[930]|0;
  26425. $5 = (_IsMouseButtonDown($4)|0);
  26426. $6 = HEAP32[931]|0;
  26427. $7 = (_IsKeyDown($6)|0);
  26428. $8 = HEAP32[932]|0;
  26429. $9 = (_IsKeyDown($8)|0);
  26430. $10 = HEAP32[933]|0;
  26431. $11 = (_IsKeyDown($10)|0);
  26432. HEAP32[$2>>2] = $11;
  26433. $12 = ((($2)) + 4|0);
  26434. $13 = HEAP32[934]|0;
  26435. $14 = (_IsKeyDown($13)|0);
  26436. HEAP32[$12>>2] = $14;
  26437. $15 = ((($2)) + 8|0);
  26438. $16 = HEAP32[935]|0;
  26439. $17 = (_IsKeyDown($16)|0);
  26440. HEAP32[$15>>2] = $17;
  26441. $18 = ((($2)) + 12|0);
  26442. $19 = HEAP32[936]|0;
  26443. $20 = (_IsKeyDown($19)|0);
  26444. HEAP32[$18>>2] = $20;
  26445. $21 = ((($2)) + 16|0);
  26446. $22 = HEAP32[937]|0;
  26447. $23 = (_IsKeyDown($22)|0);
  26448. HEAP32[$21>>2] = $23;
  26449. $24 = ((($2)) + 20|0);
  26450. $25 = HEAP32[938]|0;
  26451. $26 = (_IsKeyDown($25)|0);
  26452. HEAP32[$24>>2] = $26;
  26453. $27 = HEAP32[5660]|0;
  26454. $28 = ($27|0)==(0);
  26455. L1: do {
  26456. if ($28) {
  26457. label = 47;
  26458. } else {
  26459. $29 = +HEAPF32[$1>>2];
  26460. $30 = +HEAPF32[4878];
  26461. $31 = $29 - $30;
  26462. $32 = ((($1)) + 4|0);
  26463. $33 = +HEAPF32[$32>>2];
  26464. $34 = +HEAPF32[(19516)>>2];
  26465. $35 = $33 - $34;
  26466. $36 = $1;
  26467. $37 = $36;
  26468. $38 = HEAP32[$37>>2]|0;
  26469. $39 = (($36) + 4)|0;
  26470. $40 = $39;
  26471. $41 = HEAP32[$40>>2]|0;
  26472. $42 = 19512;
  26473. $43 = $42;
  26474. HEAP32[$43>>2] = $38;
  26475. $44 = (($42) + 4)|0;
  26476. $45 = $44;
  26477. HEAP32[$45>>2] = $41;
  26478. $$pr = HEAP32[5660]|0;
  26479. switch ($$pr|0) {
  26480. case 1: {
  26481. $46 = +HEAPF32[5657];
  26482. $47 = $46 < 120.0;
  26483. $48 = ($3|0)<(0);
  26484. $or$cond = $48 & $47;
  26485. do {
  26486. if ($or$cond) {
  26487. $49 = (+($3|0));
  26488. $50 = $49 * 1.5;
  26489. $51 = $46 - $50;
  26490. HEAPF32[5657] = $51;
  26491. $52 = $51 > 120.0;
  26492. if ($52) {
  26493. HEAPF32[5657] = 120.0;
  26494. }
  26495. } else {
  26496. $53 = ((($0)) + 4|0);
  26497. $54 = +HEAPF32[$53>>2];
  26498. $55 = ((($0)) + 12|0);
  26499. $56 = ((($0)) + 16|0);
  26500. $57 = +HEAPF32[$56>>2];
  26501. $58 = $54 > $57;
  26502. $59 = $46 == 120.0;
  26503. $or$cond3 = $59 & $58;
  26504. $or$cond5 = $48 & $or$cond3;
  26505. if ($or$cond5) {
  26506. $60 = (+($3|0));
  26507. $61 = +HEAPF32[$55>>2];
  26508. $62 = +HEAPF32[$0>>2];
  26509. $63 = $61 - $62;
  26510. $64 = $60 * $63;
  26511. $65 = $64 * 1.5;
  26512. $66 = $65 / $46;
  26513. $67 = $61 + $66;
  26514. HEAPF32[$55>>2] = $67;
  26515. $68 = $57 - $54;
  26516. $69 = $60 * $68;
  26517. $70 = $69 * 1.5;
  26518. $71 = $70 / $46;
  26519. $72 = $57 + $71;
  26520. HEAPF32[$56>>2] = $72;
  26521. $73 = ((($0)) + 20|0);
  26522. $74 = +HEAPF32[$73>>2];
  26523. $75 = ((($0)) + 8|0);
  26524. $76 = +HEAPF32[$75>>2];
  26525. $77 = $74 - $76;
  26526. $78 = $60 * $77;
  26527. $79 = $78 * 1.5;
  26528. $80 = $79 / $46;
  26529. $81 = $74 + $80;
  26530. HEAPF32[$73>>2] = $81;
  26531. break;
  26532. }
  26533. $$not = $58 ^ 1;
  26534. $82 = !($57 >= 0.0);
  26535. $or$cond169 = $82 | $$not;
  26536. if (!($or$cond169)) {
  26537. $83 = (+($3|0));
  26538. $84 = +HEAPF32[$55>>2];
  26539. $85 = +HEAPF32[$0>>2];
  26540. $86 = $84 - $85;
  26541. $87 = $83 * $86;
  26542. $88 = $87 * 1.5;
  26543. $89 = $88 / $46;
  26544. $90 = $84 + $89;
  26545. HEAPF32[$55>>2] = $90;
  26546. $91 = $57 - $54;
  26547. $92 = $83 * $91;
  26548. $93 = $92 * 1.5;
  26549. $94 = $93 / $46;
  26550. $95 = $57 + $94;
  26551. HEAPF32[$56>>2] = $95;
  26552. $96 = ((($0)) + 20|0);
  26553. $97 = +HEAPF32[$96>>2];
  26554. $98 = ((($0)) + 8|0);
  26555. $99 = +HEAPF32[$98>>2];
  26556. $100 = $97 - $99;
  26557. $101 = $83 * $100;
  26558. $102 = $101 * 1.5;
  26559. $103 = $102 / $46;
  26560. $104 = $97 + $103;
  26561. HEAPF32[$96>>2] = $104;
  26562. break;
  26563. }
  26564. if ($58) {
  26565. $105 = $57 < 0.0;
  26566. $106 = ($3|0)>(0);
  26567. $or$cond7 = $106 & $105;
  26568. if ($or$cond7) {
  26569. $107 = (+($3|0));
  26570. $108 = $107 * 1.5;
  26571. $109 = $46 - $108;
  26572. HEAPF32[5657] = $109;
  26573. $110 = $109 < 0.30000001192092896;
  26574. if (!($110)) {
  26575. break;
  26576. }
  26577. HEAPF32[5657] = 0.30000001192092896;
  26578. break;
  26579. }
  26580. }
  26581. $111 = $54 < $57;
  26582. $or$cond9 = $59 & $111;
  26583. $or$cond11 = $48 & $or$cond9;
  26584. $112 = +HEAPF32[$56>>2];
  26585. $113 = +HEAPF32[$53>>2];
  26586. if ($or$cond11) {
  26587. $114 = (+($3|0));
  26588. $115 = +HEAPF32[$55>>2];
  26589. $116 = +HEAPF32[$0>>2];
  26590. $117 = $115 - $116;
  26591. $118 = $114 * $117;
  26592. $119 = $118 * 1.5;
  26593. $120 = $119 / $46;
  26594. $121 = $115 + $120;
  26595. HEAPF32[$55>>2] = $121;
  26596. $122 = $112 - $113;
  26597. $123 = $114 * $122;
  26598. $124 = $123 * 1.5;
  26599. $125 = +HEAPF32[5657];
  26600. $126 = $124 / $125;
  26601. $127 = $112 + $126;
  26602. HEAPF32[$56>>2] = $127;
  26603. $128 = ((($0)) + 20|0);
  26604. $129 = +HEAPF32[$128>>2];
  26605. $130 = ((($0)) + 8|0);
  26606. $131 = +HEAPF32[$130>>2];
  26607. $132 = $129 - $131;
  26608. $133 = $114 * $132;
  26609. $134 = $133 * 1.5;
  26610. $135 = $134 / $125;
  26611. $136 = $129 + $135;
  26612. HEAPF32[$128>>2] = $136;
  26613. break;
  26614. }
  26615. $$not170 = $111 ^ 1;
  26616. $137 = !($57 <= 0.0);
  26617. $or$cond171 = $137 | $$not170;
  26618. if (!($or$cond171)) {
  26619. $138 = (+($3|0));
  26620. $139 = +HEAPF32[$55>>2];
  26621. $140 = +HEAPF32[$0>>2];
  26622. $141 = $139 - $140;
  26623. $142 = $138 * $141;
  26624. $143 = $142 * 1.5;
  26625. $144 = $143 / $46;
  26626. $145 = $139 + $144;
  26627. HEAPF32[$55>>2] = $145;
  26628. $146 = $112 - $113;
  26629. $147 = $138 * $146;
  26630. $148 = $147 * 1.5;
  26631. $149 = +HEAPF32[5657];
  26632. $150 = $148 / $149;
  26633. $151 = $112 + $150;
  26634. HEAPF32[$56>>2] = $151;
  26635. $152 = ((($0)) + 20|0);
  26636. $153 = +HEAPF32[$152>>2];
  26637. $154 = ((($0)) + 8|0);
  26638. $155 = +HEAPF32[$154>>2];
  26639. $156 = $153 - $155;
  26640. $157 = $138 * $156;
  26641. $158 = $157 * 1.5;
  26642. $159 = $158 / $149;
  26643. $160 = $153 + $159;
  26644. HEAPF32[$152>>2] = $160;
  26645. break;
  26646. }
  26647. $161 = $113 < $112;
  26648. if ($161) {
  26649. $162 = $112 > 0.0;
  26650. $163 = ($3|0)>(0);
  26651. $or$cond13 = $163 & $162;
  26652. if ($or$cond13) {
  26653. $164 = (+($3|0));
  26654. $165 = $164 * 1.5;
  26655. $166 = +HEAPF32[5657];
  26656. $167 = $166 - $165;
  26657. HEAPF32[5657] = $167;
  26658. $168 = $167 < 0.30000001192092896;
  26659. if ($168) {
  26660. HEAPF32[5657] = 0.30000001192092896;
  26661. }
  26662. }
  26663. }
  26664. }
  26665. } while(0);
  26666. $169 = ($5|0)==(0);
  26667. if ($169) {
  26668. label = 47;
  26669. break L1;
  26670. }
  26671. $170 = ($7|0)==(0);
  26672. if ($170) {
  26673. $183 = $31 * -0.0099999997764825821;
  26674. $184 = +HEAPF32[5658];
  26675. $185 = (+Math_cos((+$184)));
  26676. $186 = $183 * $185;
  26677. $187 = $35 * 0.0099999997764825821;
  26678. $188 = (+Math_sin((+$184)));
  26679. $189 = $187 * $188;
  26680. $190 = +HEAPF32[5659];
  26681. $191 = (+Math_sin((+$190)));
  26682. $192 = $189 * $191;
  26683. $193 = $186 + $192;
  26684. $194 = +HEAPF32[5657];
  26685. $195 = $194 / 5.0999999046325684;
  26686. $196 = $193 * $195;
  26687. $197 = ((($0)) + 12|0);
  26688. $198 = +HEAPF32[$197>>2];
  26689. $199 = $198 + $196;
  26690. HEAPF32[$197>>2] = $199;
  26691. $200 = (+Math_cos((+$190)));
  26692. $201 = $187 * $200;
  26693. $202 = $195 * $201;
  26694. $203 = ((($0)) + 16|0);
  26695. $204 = +HEAPF32[$203>>2];
  26696. $205 = $204 + $202;
  26697. HEAPF32[$203>>2] = $205;
  26698. $206 = $31 * 0.0099999997764825821;
  26699. $207 = $206 * $188;
  26700. $208 = $187 * $185;
  26701. $209 = $208 * $191;
  26702. $210 = $207 + $209;
  26703. $211 = $210 * $195;
  26704. $212 = ((($0)) + 20|0);
  26705. $213 = +HEAPF32[$212>>2];
  26706. $214 = $211 + $213;
  26707. HEAPF32[$212>>2] = $214;
  26708. label = 47;
  26709. break L1;
  26710. }
  26711. $171 = ($9|0)==(0);
  26712. if (!($171)) {
  26713. $172 = $35 * 0.05000000074505806;
  26714. $173 = +HEAPF32[5657];
  26715. $174 = $172 + $173;
  26716. HEAPF32[5657] = $174;
  26717. label = 47;
  26718. break L1;
  26719. }
  26720. $175 = $31 * 0.0099999997764825821;
  26721. $176 = +HEAPF32[5658];
  26722. $177 = $176 - $175;
  26723. HEAPF32[5658] = $177;
  26724. $178 = $35 * 0.0099999997764825821;
  26725. $179 = +HEAPF32[5659];
  26726. $180 = $179 - $178;
  26727. HEAPF32[5659] = $180;
  26728. $181 = $180 > 1.483529806137085;
  26729. if ($181) {
  26730. HEAPF32[5659] = 1.483529806137085;
  26731. label = 47;
  26732. break L1;
  26733. }
  26734. $182 = $180 < -1.483529806137085;
  26735. if (!($182)) {
  26736. label = 47;
  26737. break L1;
  26738. }
  26739. HEAPF32[5659] = -1.483529806137085;
  26740. label = 47;
  26741. break L1;
  26742. break;
  26743. }
  26744. case 2: {
  26745. $215 = +HEAPF32[5658];
  26746. $216 = $215 + 0.0099999997764825821;
  26747. HEAPF32[5658] = $216;
  26748. $217 = (+($3|0));
  26749. $218 = $217 * 1.5;
  26750. $219 = +HEAPF32[5657];
  26751. $220 = $219 - $218;
  26752. HEAPF32[5657] = $220;
  26753. $221 = $220 < 1.2000000476837158;
  26754. if (!($221)) {
  26755. label = 47;
  26756. break L1;
  26757. }
  26758. HEAPF32[5657] = 1.2000000476837158;
  26759. label = 47;
  26760. break L1;
  26761. break;
  26762. }
  26763. case 4: case 3: {
  26764. $225 = +HEAPF32[5658];
  26765. $226 = (+Math_sin((+$225)));
  26766. $227 = HEAP32[$12>>2]|0;
  26767. $228 = (+($227>>>0));
  26768. $229 = $226 * $228;
  26769. $230 = HEAP32[$2>>2]|0;
  26770. $231 = (+($230>>>0));
  26771. $232 = $226 * $231;
  26772. $233 = $229 - $232;
  26773. $234 = (+Math_cos((+$225)));
  26774. $235 = HEAP32[$18>>2]|0;
  26775. $236 = (+($235>>>0));
  26776. $237 = $234 * $236;
  26777. $238 = $233 - $237;
  26778. $239 = HEAP32[$15>>2]|0;
  26779. $240 = (+($239>>>0));
  26780. $241 = $234 * $240;
  26781. $242 = $238 + $241;
  26782. $243 = $242 / 20.0;
  26783. $244 = +HEAPF32[$0>>2];
  26784. $245 = $244 + $243;
  26785. HEAPF32[$0>>2] = $245;
  26786. $246 = +HEAPF32[5659];
  26787. $247 = (+Math_sin((+$246)));
  26788. $248 = $231 * $247;
  26789. $249 = $228 * $247;
  26790. $250 = $248 - $249;
  26791. $251 = HEAP32[$21>>2]|0;
  26792. $252 = (+($251>>>0));
  26793. $253 = $250 + $252;
  26794. $254 = HEAP32[$24>>2]|0;
  26795. $255 = (+($254>>>0));
  26796. $256 = $253 - $255;
  26797. $257 = $256 / 20.0;
  26798. $258 = ((($0)) + 4|0);
  26799. $259 = +HEAPF32[$258>>2];
  26800. $260 = $259 + $257;
  26801. HEAPF32[$258>>2] = $260;
  26802. $261 = $228 * $234;
  26803. $262 = $234 * $231;
  26804. $263 = $261 - $262;
  26805. $264 = $226 * $236;
  26806. $265 = $263 + $264;
  26807. $266 = $226 * $240;
  26808. $267 = $265 - $266;
  26809. $268 = $267 / 20.0;
  26810. $269 = ((($0)) + 8|0);
  26811. $270 = +HEAPF32[$269>>2];
  26812. $271 = $268 + $270;
  26813. HEAPF32[$269>>2] = $271;
  26814. $272 = HEAP32[$2>>2]|0;
  26815. $273 = ($272|0)==(0);
  26816. if ($273) {
  26817. $222 = ((($2)) + 4|0);
  26818. $223 = HEAP32[$222>>2]|0;
  26819. $224 = ($223|0)==(0);
  26820. if ($224) {
  26821. $368 = ((($2)) + 8|0);
  26822. $369 = HEAP32[$368>>2]|0;
  26823. $370 = ($369|0)==(0);
  26824. if ($370) {
  26825. $371 = ((($2)) + 12|0);
  26826. $372 = HEAP32[$371>>2]|0;
  26827. $373 = ($372|0)==(0);
  26828. if ($373) {
  26829. $374 = ((($2)) + 16|0);
  26830. $375 = HEAP32[$374>>2]|0;
  26831. $376 = ($375|0)==(0);
  26832. if ($376) {
  26833. $377 = ((($2)) + 20|0);
  26834. $378 = HEAP32[$377>>2]|0;
  26835. $not$ = ($378|0)!=(0);
  26836. $$ = $not$&1;
  26837. $$0 = $$;
  26838. } else {
  26839. $$0 = 1;
  26840. }
  26841. } else {
  26842. $$0 = 1;
  26843. }
  26844. } else {
  26845. $$0 = 1;
  26846. }
  26847. } else {
  26848. $$0 = 1;
  26849. }
  26850. } else {
  26851. $$0 = 1;
  26852. }
  26853. $274 = $31 * 0.0030000000260770321;
  26854. $275 = +HEAPF32[5658];
  26855. $276 = $275 - $274;
  26856. HEAPF32[5658] = $276;
  26857. $277 = $35 * 0.0030000000260770321;
  26858. $278 = +HEAPF32[5659];
  26859. $279 = $278 - $277;
  26860. HEAPF32[5659] = $279;
  26861. $280 = HEAP32[5660]|0;
  26862. $281 = ($280|0)==(4);
  26863. if ($281) {
  26864. $282 = $279 > 0.087266460061073303;
  26865. if ($282) {
  26866. $$sink24 = 0.087266460061073303;
  26867. label = 38;
  26868. } else {
  26869. $283 = $279 < -1.483529806137085;
  26870. if ($283) {
  26871. $$sink24 = -1.483529806137085;
  26872. label = 38;
  26873. }
  26874. }
  26875. if ((label|0) == 38) {
  26876. HEAPF32[5659] = $$sink24;
  26877. }
  26878. $284 = (+($3|0));
  26879. $285 = $284 * 1.5;
  26880. $286 = +HEAPF32[5657];
  26881. $287 = $286 - $285;
  26882. $288 = $287 < 1.2000000476837158;
  26883. $storemerge = $288 ? 1.2000000476837158 : $287;
  26884. HEAPF32[5657] = $storemerge;
  26885. $289 = +HEAPF32[$0>>2];
  26886. $290 = +HEAPF32[5658];
  26887. $291 = (+Math_cos((+$290)));
  26888. $292 = $291 * 0.40000000596046448;
  26889. $293 = $289 + $292;
  26890. $294 = (+Math_sin((+$290)));
  26891. $295 = $294 * 0.0;
  26892. $296 = $293 + $295;
  26893. $297 = ((($0)) + 12|0);
  26894. HEAPF32[$297>>2] = $296;
  26895. $298 = +HEAPF32[$258>>2];
  26896. $299 = $298 + 0.0;
  26897. $300 = ((($0)) + 16|0);
  26898. HEAPF32[$300>>2] = $299;
  26899. $301 = +HEAPF32[$269>>2];
  26900. $302 = $295 + $301;
  26901. $303 = $294 * 0.40000000596046448;
  26902. $304 = $302 - $303;
  26903. $$sink = $304;$$sink15 = $297;
  26904. } else {
  26905. $305 = $279 > 1.483529806137085;
  26906. if ($305) {
  26907. $$sink26 = 1.483529806137085;
  26908. label = 42;
  26909. } else {
  26910. $306 = $279 < -1.483529806137085;
  26911. if ($306) {
  26912. $$sink26 = -1.483529806137085;
  26913. label = 42;
  26914. }
  26915. }
  26916. if ((label|0) == 42) {
  26917. HEAPF32[5659] = $$sink26;
  26918. }
  26919. $307 = +HEAPF32[$0>>2];
  26920. $308 = +HEAPF32[5658];
  26921. $309 = (+Math_sin((+$308)));
  26922. $310 = $309 * 25.0;
  26923. $311 = $307 - $310;
  26924. $312 = ((($0)) + 12|0);
  26925. HEAPF32[$312>>2] = $311;
  26926. $313 = +HEAPF32[$258>>2];
  26927. $314 = +HEAPF32[5659];
  26928. $315 = (+Math_sin((+$314)));
  26929. $316 = $315 * 25.0;
  26930. $317 = $313 + $316;
  26931. $318 = ((($0)) + 16|0);
  26932. HEAPF32[$318>>2] = $317;
  26933. $319 = +HEAPF32[$269>>2];
  26934. $320 = (+Math_cos((+$308)));
  26935. $321 = $320 * 25.0;
  26936. $322 = $319 - $321;
  26937. $323 = ((($0)) + 20|0);
  26938. HEAPF32[$323>>2] = $322;
  26939. $324 = ($$0|0)==(0);
  26940. if (!($324)) {
  26941. $325 = HEAP32[5663]|0;
  26942. $326 = (($325) + 1)|0;
  26943. HEAP32[5663] = $326;
  26944. }
  26945. $327 = +HEAPF32[929];
  26946. $328 = HEAP32[5663]|0;
  26947. $329 = (+($328|0));
  26948. $330 = $329 / 5.0;
  26949. $331 = (+Math_sin((+$330)));
  26950. $332 = $331 / 30.0;
  26951. $333 = $327 - $332;
  26952. HEAPF32[$258>>2] = $333;
  26953. $334 = $329 / 10.0;
  26954. $335 = (+Math_sin((+$334)));
  26955. $336 = $335 / 200.0;
  26956. $337 = ((($0)) + 24|0);
  26957. HEAPF32[$337>>2] = $336;
  26958. $338 = -$335;
  26959. $339 = $338 / 200.0;
  26960. $$sink = $339;$$sink15 = $337;
  26961. }
  26962. $340 = ((($$sink15)) + 8|0);
  26963. HEAPF32[$340>>2] = $$sink;
  26964. label = 47;
  26965. break L1;
  26966. break;
  26967. }
  26968. default: {
  26969. $341 = $$pr;
  26970. break L1;
  26971. }
  26972. }
  26973. }
  26974. } while(0);
  26975. if ((label|0) == 47) {
  26976. $$pr172 = HEAP32[5660]|0;
  26977. $341 = $$pr172;
  26978. }
  26979. switch ($341|0) {
  26980. case 1: case 2: case 4: {
  26981. break;
  26982. }
  26983. default: {
  26984. STACKTOP = sp;return;
  26985. }
  26986. }
  26987. $342 = +HEAPF32[5658];
  26988. $343 = (+Math_sin((+$342)));
  26989. $344 = +HEAPF32[5657];
  26990. $345 = $343 * $344;
  26991. $346 = +HEAPF32[5659];
  26992. $347 = (+Math_cos((+$346)));
  26993. $348 = $345 * $347;
  26994. $349 = ((($0)) + 12|0);
  26995. $350 = +HEAPF32[$349>>2];
  26996. $351 = $348 + $350;
  26997. HEAPF32[$0>>2] = $351;
  26998. $352 = !($346 <= 0.0);
  26999. $353 = (+Math_sin((+$346)));
  27000. $354 = +HEAPF32[5657];
  27001. $355 = ((($0)) + 16|0);
  27002. $356 = +HEAPF32[$355>>2];
  27003. $357 = $353 * $354;
  27004. $358 = $353 * $357;
  27005. $359 = -$358;
  27006. $$sink20$p = $352 ? $359 : $358;
  27007. $$sink20 = $356 + $$sink20$p;
  27008. $360 = ((($0)) + 4|0);
  27009. HEAPF32[$360>>2] = $$sink20;
  27010. $361 = (+Math_cos((+$342)));
  27011. $362 = $354 * $361;
  27012. $363 = $347 * $362;
  27013. $364 = ((($0)) + 20|0);
  27014. $365 = +HEAPF32[$364>>2];
  27015. $366 = $365 + $363;
  27016. $367 = ((($0)) + 8|0);
  27017. HEAPF32[$367>>2] = $366;
  27018. STACKTOP = sp;return;
  27019. }
  27020. function _GetMousePosition($0) {
  27021. $0 = $0|0;
  27022. 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;
  27023. sp = STACKTOP;
  27024. $1 = 19520;
  27025. $2 = $1;
  27026. $3 = HEAP32[$2>>2]|0;
  27027. $4 = (($1) + 4)|0;
  27028. $5 = $4;
  27029. $6 = HEAP32[$5>>2]|0;
  27030. $7 = $0;
  27031. $8 = $7;
  27032. HEAP32[$8>>2] = $3;
  27033. $9 = (($7) + 4)|0;
  27034. $10 = $9;
  27035. HEAP32[$10>>2] = $6;
  27036. return;
  27037. }
  27038. function _GetMouseWheelMove() {
  27039. var $0 = 0, $1 = 0, label = 0, sp = 0;
  27040. sp = STACKTOP;
  27041. $0 = HEAP32[5665]|0;
  27042. $1 = (($0|0) / 100)&-1;
  27043. return ($1|0);
  27044. }
  27045. function _IsMouseButtonDown($0) {
  27046. $0 = $0|0;
  27047. var $$ = 0, $1 = 0, $2 = 0, label = 0, sp = 0;
  27048. sp = STACKTOP;
  27049. $1 = (_GetMouseButtonStatus($0)|0);
  27050. $2 = ($1|0)==(1);
  27051. $$ = $2&1;
  27052. return ($$|0);
  27053. }
  27054. function _IsKeyDown($0) {
  27055. $0 = $0|0;
  27056. var $$ = 0, $1 = 0, $2 = 0, label = 0, sp = 0;
  27057. sp = STACKTOP;
  27058. $1 = (_GetKeyStatus($0)|0);
  27059. $2 = ($1|0)==(1);
  27060. $$ = $2&1;
  27061. return ($$|0);
  27062. }
  27063. function _GetKeyStatus($0) {
  27064. $0 = $0|0;
  27065. var $1 = 0, $2 = 0, label = 0, sp = 0;
  27066. sp = STACKTOP;
  27067. $1 = HEAP32[5664]|0;
  27068. $2 = (_glfwGetKey(($1|0),($0|0))|0);
  27069. return ($2|0);
  27070. }
  27071. function _GetMouseButtonStatus($0) {
  27072. $0 = $0|0;
  27073. var $1 = 0, $2 = 0, label = 0, sp = 0;
  27074. sp = STACKTOP;
  27075. $1 = HEAP32[5664]|0;
  27076. $2 = (_glfwGetMouseButton(($1|0),($0|0))|0);
  27077. return ($2|0);
  27078. }
  27079. function _InitWindow($0,$1,$2) {
  27080. $0 = $0|0;
  27081. $1 = $1|0;
  27082. $2 = $2|0;
  27083. 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;
  27084. sp = STACKTOP;
  27085. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  27086. $vararg_buffer = sp;
  27087. _TraceLog(0,9341,$vararg_buffer);
  27088. HEAP32[5666] = $2;
  27089. _InitGraphicsDevice($0,$1);
  27090. _LoadDefaultFont();
  27091. _InitTimer();
  27092. (_emscripten_set_fullscreenchange_callback((0|0),(0|0),1,(5|0))|0);
  27093. (_emscripten_set_keypress_callback((9370|0),(0|0),1,(6|0))|0);
  27094. (_emscripten_set_click_callback((9370|0),(0|0),1,(7|0))|0);
  27095. (_emscripten_set_touchstart_callback((9370|0),(0|0),1,(8|0))|0);
  27096. (_emscripten_set_touchend_callback((9370|0),(0|0),1,(8|0))|0);
  27097. (_emscripten_set_touchmove_callback((9370|0),(0|0),1,(8|0))|0);
  27098. (_emscripten_set_touchcancel_callback((9370|0),(0|0),1,(8|0))|0);
  27099. (_emscripten_set_gamepadconnected_callback((0|0),1,(9|0))|0);
  27100. (_emscripten_set_gamepaddisconnected_callback((0|0),1,(9|0))|0);
  27101. $3 = HEAP32[5667]|0;
  27102. $4 = (+($3|0));
  27103. $5 = $4 * 0.5;
  27104. HEAPF32[4880] = $5;
  27105. $6 = HEAP32[5668]|0;
  27106. $7 = (+($6|0));
  27107. $8 = $7 * 0.5;
  27108. HEAPF32[(19524)>>2] = $8;
  27109. $9 = HEAP32[5669]|0;
  27110. $10 = ($9|0)==(0);
  27111. if ($10) {
  27112. STACKTOP = sp;return;
  27113. }
  27114. _SetTargetFPS(60);
  27115. _LogoAnimation();
  27116. STACKTOP = sp;return;
  27117. }
  27118. function _InitGraphicsDevice($0,$1) {
  27119. $0 = $0|0;
  27120. $1 = $1|0;
  27121. 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;
  27122. 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;
  27123. 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;
  27124. 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;
  27125. 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;
  27126. var label = 0, sp = 0, src = 0, stop = 0;
  27127. sp = STACKTOP;
  27128. STACKTOP = STACKTOP + 144|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(144|0);
  27129. $$byval_copy = sp + 136|0;
  27130. $vararg_buffer22 = sp + 64|0;
  27131. $vararg_buffer18 = sp + 56|0;
  27132. $vararg_buffer14 = sp + 48|0;
  27133. $vararg_buffer10 = sp + 40|0;
  27134. $vararg_buffer8 = sp + 32|0;
  27135. $vararg_buffer6 = sp + 24|0;
  27136. $vararg_buffer3 = sp + 16|0;
  27137. $vararg_buffer1 = sp + 8|0;
  27138. $vararg_buffer = sp;
  27139. $2 = sp + 72|0;
  27140. $3 = sp + 140|0;
  27141. HEAP32[5667] = $0;
  27142. HEAP32[5668] = $1;
  27143. _MatrixIdentity($2);
  27144. dest=22696; 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));
  27145. (_glfwSetErrorCallback((2|0))|0);
  27146. $4 = (_glfwInit()|0);
  27147. $5 = ($4|0)==(0);
  27148. if ($5) {
  27149. _TraceLog(2,9565,$vararg_buffer);
  27150. }
  27151. $6 = HEAP32[5667]|0;
  27152. HEAP32[5690] = $6;
  27153. $7 = HEAP32[5668]|0;
  27154. HEAP32[5691] = $7;
  27155. _glfwDefaultWindowHints();
  27156. $8 = HEAP8[23576]|0;
  27157. $9 = $8 & 4;
  27158. $10 = ($9<<24>>24)==(0);
  27159. if ($10) {
  27160. _glfwWindowHint(131075,0);
  27161. } else {
  27162. _glfwWindowHint(131075,1);
  27163. }
  27164. $11 = HEAP8[23576]|0;
  27165. $12 = $11 & 8;
  27166. $13 = ($12<<24>>24)==(0);
  27167. if (!($13)) {
  27168. _glfwWindowHint(131077,1);
  27169. }
  27170. $14 = HEAP8[23576]|0;
  27171. $15 = $14 & 32;
  27172. $16 = ($15<<24>>24)==(0);
  27173. if (!($16)) {
  27174. _glfwWindowHint(135181,4);
  27175. _TraceLog(0,9591,$vararg_buffer1);
  27176. }
  27177. $17 = (_rlGetVersion()|0);
  27178. $18 = ($17|0)==(2);
  27179. if ($18) {
  27180. _glfwWindowHint(139266,2);
  27181. _glfwWindowHint(139267,1);
  27182. } else {
  27183. $19 = (_rlGetVersion()|0);
  27184. $20 = ($19|0)==(3);
  27185. if ($20) {
  27186. _glfwWindowHint(139266,3);
  27187. _glfwWindowHint(139267,3);
  27188. _glfwWindowHint(139272,204801);
  27189. _glfwWindowHint(139270,0);
  27190. }
  27191. }
  27192. $21 = HEAP32[5692]|0;
  27193. $22 = ($21|0)==(0);
  27194. if ($22) {
  27195. $47 = HEAP32[5667]|0;
  27196. $48 = HEAP32[5668]|0;
  27197. $49 = HEAP32[5666]|0;
  27198. $50 = (_glfwCreateWindow(($47|0),($48|0),($49|0),(0|0),(0|0))|0);
  27199. HEAP32[5664] = $50;
  27200. $51 = HEAP32[5667]|0;
  27201. HEAP32[5693] = $51;
  27202. $52 = HEAP32[5668]|0;
  27203. HEAP32[5694] = $52;
  27204. $54 = $50;
  27205. } else {
  27206. $23 = (_glfwGetPrimaryMonitor()|0);
  27207. $24 = (_glfwGetVideoModes(($23|0),($$byval_copy|0))|0);
  27208. $25 = HEAP32[$$byval_copy>>2]|0;
  27209. $26 = ($25|0)>(0);
  27210. L22: do {
  27211. if ($26) {
  27212. $27 = HEAP32[5667]|0;
  27213. $28 = HEAP32[$$byval_copy>>2]|0;
  27214. $29 = HEAP32[5668]|0;
  27215. $$015 = 0;
  27216. while(1) {
  27217. $30 = (($24) + (($$015*24)|0)|0);
  27218. $31 = HEAP32[$30>>2]|0;
  27219. $32 = ($31|0)<($27|0);
  27220. if (!($32)) {
  27221. $33 = (((($24) + (($$015*24)|0)|0)) + 4|0);
  27222. $34 = HEAP32[$33>>2]|0;
  27223. $35 = ($34|0)<($29|0);
  27224. if (!($35)) {
  27225. break;
  27226. }
  27227. }
  27228. $36 = (($$015) + 1)|0;
  27229. $37 = ($36|0)<($28|0);
  27230. if ($37) {
  27231. $$015 = $36;
  27232. } else {
  27233. break L22;
  27234. }
  27235. }
  27236. HEAP32[5690] = $31;
  27237. HEAP32[5691] = $34;
  27238. }
  27239. } while(0);
  27240. $38 = HEAP32[5690]|0;
  27241. $39 = HEAP32[5691]|0;
  27242. HEAP32[$vararg_buffer3>>2] = $38;
  27243. $vararg_ptr5 = ((($vararg_buffer3)) + 4|0);
  27244. HEAP32[$vararg_ptr5>>2] = $39;
  27245. _TraceLog(1,9616,$vararg_buffer3);
  27246. $40 = HEAP32[5690]|0;
  27247. $41 = HEAP32[5691]|0;
  27248. _SetupFramebufferSize($40,$41);
  27249. $42 = HEAP32[5690]|0;
  27250. $43 = HEAP32[5691]|0;
  27251. $44 = HEAP32[5666]|0;
  27252. $45 = (_glfwGetPrimaryMonitor()|0);
  27253. $46 = (_glfwCreateWindow(($42|0),($43|0),($44|0),($45|0),(0|0))|0);
  27254. HEAP32[5664] = $46;
  27255. $54 = $46;
  27256. }
  27257. $53 = ($54|0)==(0|0);
  27258. if ($53) {
  27259. _glfwTerminate();
  27260. _TraceLog(2,9654,$vararg_buffer6);
  27261. } else {
  27262. _TraceLog(0,9687,$vararg_buffer8);
  27263. $55 = HEAP32[5693]|0;
  27264. $56 = HEAP32[5694]|0;
  27265. HEAP32[$vararg_buffer10>>2] = $55;
  27266. $vararg_ptr13 = ((($vararg_buffer10)) + 4|0);
  27267. HEAP32[$vararg_ptr13>>2] = $56;
  27268. _TraceLog(0,9727,$vararg_buffer10);
  27269. $57 = HEAP32[5667]|0;
  27270. $58 = HEAP32[5668]|0;
  27271. HEAP32[$vararg_buffer14>>2] = $57;
  27272. $vararg_ptr17 = ((($vararg_buffer14)) + 4|0);
  27273. HEAP32[$vararg_ptr17>>2] = $58;
  27274. _TraceLog(0,9748,$vararg_buffer14);
  27275. $59 = HEAP32[5695]|0;
  27276. $60 = HEAP32[5696]|0;
  27277. HEAP32[$vararg_buffer18>>2] = $59;
  27278. $vararg_ptr21 = ((($vararg_buffer18)) + 4|0);
  27279. HEAP32[$vararg_ptr21>>2] = $60;
  27280. _TraceLog(0,9769,$vararg_buffer18);
  27281. }
  27282. $61 = HEAP32[5664]|0;
  27283. (_glfwSetWindowSizeCallback(($61|0),(1|0))|0);
  27284. $62 = HEAP32[5664]|0;
  27285. (_glfwSetCursorEnterCallback(($62|0),(3|0))|0);
  27286. $63 = HEAP32[5664]|0;
  27287. (_glfwSetKeyCallback(($63|0),(1|0))|0);
  27288. $64 = HEAP32[5664]|0;
  27289. (_glfwSetMouseButtonCallback(($64|0),(1|0))|0);
  27290. $65 = HEAP32[5664]|0;
  27291. (_glfwSetCursorPosCallback(($65|0),(1|0))|0);
  27292. $66 = HEAP32[5664]|0;
  27293. (_glfwSetCharCallback(($66|0),(4|0))|0);
  27294. $67 = HEAP32[5664]|0;
  27295. (_glfwSetScrollCallback(($67|0),(2|0))|0);
  27296. $68 = HEAP32[5664]|0;
  27297. (_glfwSetWindowIconifyCallback(($68|0),(5|0))|0);
  27298. $69 = HEAP32[5664]|0;
  27299. _glfwMakeContextCurrent(($69|0));
  27300. _glfwSwapInterval(0);
  27301. $70 = HEAP8[23576]|0;
  27302. $71 = $70 & 64;
  27303. $72 = ($71<<24>>24)==(0);
  27304. if ($72) {
  27305. $73 = HEAP32[5667]|0;
  27306. $74 = HEAP32[5668]|0;
  27307. _rlglInit($73,$74);
  27308. _SetupViewport();
  27309. _rlMatrixMode(5889);
  27310. _rlLoadIdentity();
  27311. $75 = HEAP32[5693]|0;
  27312. $76 = HEAP32[5695]|0;
  27313. $77 = (($75) - ($76))|0;
  27314. $78 = (+($77|0));
  27315. $79 = HEAP32[5694]|0;
  27316. $80 = HEAP32[5696]|0;
  27317. $81 = (($79) - ($80))|0;
  27318. $82 = (+($81|0));
  27319. _rlOrtho(0.0,$78,$82,0.0,0.0,1.0);
  27320. _rlMatrixMode(5888);
  27321. _rlLoadIdentity();
  27322. HEAP8[$3>>0] = -11;
  27323. $83 = ((($3)) + 1|0);
  27324. HEAP8[$83>>0] = -11;
  27325. $84 = ((($3)) + 2|0);
  27326. HEAP8[$84>>0] = -11;
  27327. $85 = ((($3)) + 3|0);
  27328. HEAP8[$85>>0] = -1;
  27329. ;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;
  27330. _ClearBackground($$byval_copy);
  27331. STACKTOP = sp;return;
  27332. }
  27333. _glfwSwapInterval(1);
  27334. _TraceLog(0,9794,$vararg_buffer22);
  27335. $73 = HEAP32[5667]|0;
  27336. $74 = HEAP32[5668]|0;
  27337. _rlglInit($73,$74);
  27338. _SetupViewport();
  27339. _rlMatrixMode(5889);
  27340. _rlLoadIdentity();
  27341. $75 = HEAP32[5693]|0;
  27342. $76 = HEAP32[5695]|0;
  27343. $77 = (($75) - ($76))|0;
  27344. $78 = (+($77|0));
  27345. $79 = HEAP32[5694]|0;
  27346. $80 = HEAP32[5696]|0;
  27347. $81 = (($79) - ($80))|0;
  27348. $82 = (+($81|0));
  27349. _rlOrtho(0.0,$78,$82,0.0,0.0,1.0);
  27350. _rlMatrixMode(5888);
  27351. _rlLoadIdentity();
  27352. HEAP8[$3>>0] = -11;
  27353. $83 = ((($3)) + 1|0);
  27354. HEAP8[$83>>0] = -11;
  27355. $84 = ((($3)) + 2|0);
  27356. HEAP8[$84>>0] = -11;
  27357. $85 = ((($3)) + 3|0);
  27358. HEAP8[$85>>0] = -1;
  27359. ;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;
  27360. _ClearBackground($$byval_copy);
  27361. STACKTOP = sp;return;
  27362. }
  27363. function _InitTimer() {
  27364. var $0 = 0, $1 = 0.0, label = 0, sp = 0;
  27365. sp = STACKTOP;
  27366. $0 = (_time((0|0))|0);
  27367. _srand($0);
  27368. $1 = (+_GetTime());
  27369. HEAPF64[2444] = $1;
  27370. return;
  27371. }
  27372. function _EmscriptenFullscreenChangeCallback($0,$1,$2) {
  27373. $0 = $0|0;
  27374. $1 = $1|0;
  27375. $2 = $2|0;
  27376. 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;
  27377. sp = STACKTOP;
  27378. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  27379. $vararg_buffer4 = sp + 16|0;
  27380. $vararg_buffer = sp;
  27381. $3 = HEAP32[$1>>2]|0;
  27382. $4 = ($3|0)==(0);
  27383. $5 = ((($1)) + 264|0);
  27384. $6 = HEAP32[$5>>2]|0;
  27385. $7 = ((($1)) + 268|0);
  27386. $8 = HEAP32[$7>>2]|0;
  27387. $9 = ((($1)) + 272|0);
  27388. $10 = HEAP32[$9>>2]|0;
  27389. $11 = ((($1)) + 276|0);
  27390. $12 = HEAP32[$11>>2]|0;
  27391. if ($4) {
  27392. HEAP32[$vararg_buffer4>>2] = $6;
  27393. $vararg_ptr7 = ((($vararg_buffer4)) + 4|0);
  27394. HEAP32[$vararg_ptr7>>2] = $8;
  27395. $vararg_ptr8 = ((($vararg_buffer4)) + 8|0);
  27396. HEAP32[$vararg_ptr8>>2] = $10;
  27397. $vararg_ptr9 = ((($vararg_buffer4)) + 12|0);
  27398. HEAP32[$vararg_ptr9>>2] = $12;
  27399. _TraceLog(0,9498,$vararg_buffer4);
  27400. STACKTOP = sp;return 0;
  27401. } else {
  27402. HEAP32[$vararg_buffer>>2] = $6;
  27403. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  27404. HEAP32[$vararg_ptr1>>2] = $8;
  27405. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  27406. HEAP32[$vararg_ptr2>>2] = $10;
  27407. $vararg_ptr3 = ((($vararg_buffer)) + 12|0);
  27408. HEAP32[$vararg_ptr3>>2] = $12;
  27409. _TraceLog(0,9429,$vararg_buffer);
  27410. STACKTOP = sp;return 0;
  27411. }
  27412. return (0)|0;
  27413. }
  27414. function _EmscriptenKeyboardCallback($0,$1,$2) {
  27415. $0 = $0|0;
  27416. $1 = $1|0;
  27417. $2 = $2|0;
  27418. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  27419. sp = STACKTOP;
  27420. $3 = ($0|0)==(1);
  27421. if (!($3)) {
  27422. return 0;
  27423. }
  27424. $4 = ((($1)) + 32|0);
  27425. $5 = (_strcmp($4,9422)|0);
  27426. $6 = ($5|0)==(0);
  27427. if (!($6)) {
  27428. return 0;
  27429. }
  27430. (_emscripten_exit_pointerlock()|0);
  27431. return 0;
  27432. }
  27433. function _EmscriptenMouseCallback($0,$1,$2) {
  27434. $0 = $0|0;
  27435. $1 = $1|0;
  27436. $2 = $2|0;
  27437. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $or$cond = 0, label = 0, sp = 0;
  27438. sp = STACKTOP;
  27439. STACKTOP = STACKTOP + 272|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(272|0);
  27440. $3 = sp;
  27441. $4 = ($0|0)==(4);
  27442. $5 = HEAP32[5661]|0;
  27443. $6 = ($5|0)!=(0);
  27444. $or$cond = $4 & $6;
  27445. if (!($or$cond)) {
  27446. STACKTOP = sp;return 0;
  27447. }
  27448. (_emscripten_get_pointerlock_status(($3|0))|0);
  27449. $7 = HEAP32[$3>>2]|0;
  27450. $8 = ($7|0)==(0);
  27451. if ($8) {
  27452. (_emscripten_request_pointerlock((0|0),1)|0);
  27453. } else {
  27454. (_emscripten_exit_pointerlock()|0);
  27455. (_emscripten_get_pointerlock_status(($3|0))|0);
  27456. }
  27457. HEAP32[5661] = 0;
  27458. STACKTOP = sp;return 0;
  27459. }
  27460. function _EmscriptenTouchCallback($0,$1,$2) {
  27461. $0 = $0|0;
  27462. $1 = $1|0;
  27463. $2 = $2|0;
  27464. 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;
  27465. 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;
  27466. 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;
  27467. var $60 = 0.0, $61 = 0.0, $7 = 0, $8 = 0, $9 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  27468. sp = STACKTOP;
  27469. STACKTOP = STACKTOP + 112|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(112|0);
  27470. $$byval_copy = sp + 56|0;
  27471. $3 = sp;
  27472. switch ($0|0) {
  27473. case 22: {
  27474. $$sink = 1;
  27475. label = 4;
  27476. break;
  27477. }
  27478. case 23: {
  27479. $$sink = 0;
  27480. label = 4;
  27481. break;
  27482. }
  27483. case 24: {
  27484. $$sink = 2;
  27485. label = 4;
  27486. break;
  27487. }
  27488. default: {
  27489. }
  27490. }
  27491. if ((label|0) == 4) {
  27492. HEAP32[$3>>2] = $$sink;
  27493. }
  27494. $4 = HEAP32[$1>>2]|0;
  27495. $5 = ((($3)) + 4|0);
  27496. HEAP32[$5>>2] = $4;
  27497. $6 = ((($1)) + 20|0);
  27498. $7 = HEAP32[$6>>2]|0;
  27499. $8 = ((($3)) + 8|0);
  27500. HEAP32[$8>>2] = $7;
  27501. $9 = ((($1)) + 72|0);
  27502. $10 = HEAP32[$9>>2]|0;
  27503. $11 = ((($3)) + 12|0);
  27504. HEAP32[$11>>2] = $10;
  27505. $12 = ((($1)) + 56|0);
  27506. $13 = HEAP32[$12>>2]|0;
  27507. $14 = (+($13|0));
  27508. $15 = ((($1)) + 60|0);
  27509. $16 = HEAP32[$15>>2]|0;
  27510. $17 = (+($16|0));
  27511. $$sroa$03$0$$sroa_idx = ((($3)) + 24|0);
  27512. HEAPF32[$$sroa$03$0$$sroa_idx>>2] = $14;
  27513. $$sroa$24$0$$sroa_idx5 = ((($3)) + 28|0);
  27514. HEAPF32[$$sroa$24$0$$sroa_idx5>>2] = $17;
  27515. $18 = ((($1)) + 108|0);
  27516. $19 = HEAP32[$18>>2]|0;
  27517. $20 = (+($19|0));
  27518. $21 = ((($1)) + 112|0);
  27519. $22 = HEAP32[$21>>2]|0;
  27520. $23 = (+($22|0));
  27521. $$sroa$0$0$$sroa_idx = ((($3)) + 32|0);
  27522. HEAPF32[$$sroa$0$0$$sroa_idx>>2] = $20;
  27523. $$sroa$2$0$$sroa_idx2 = ((($3)) + 36|0);
  27524. HEAPF32[$$sroa$2$0$$sroa_idx2>>2] = $23;
  27525. $24 = ((($3)) + 24|0);
  27526. $25 = $24;
  27527. $26 = $25;
  27528. $27 = HEAP32[$26>>2]|0;
  27529. $28 = (($25) + 4)|0;
  27530. $29 = $28;
  27531. $30 = HEAP32[$29>>2]|0;
  27532. $31 = 19536;
  27533. $32 = $31;
  27534. HEAP32[$32>>2] = $27;
  27535. $33 = (($31) + 4)|0;
  27536. $34 = $33;
  27537. HEAP32[$34>>2] = $30;
  27538. $35 = ((($3)) + 32|0);
  27539. $36 = $35;
  27540. $37 = $36;
  27541. $38 = HEAP32[$37>>2]|0;
  27542. $39 = (($36) + 4)|0;
  27543. $40 = $39;
  27544. $41 = HEAP32[$40>>2]|0;
  27545. $42 = (19544);
  27546. $43 = $42;
  27547. HEAP32[$43>>2] = $38;
  27548. $44 = (($42) + 4)|0;
  27549. $45 = $44;
  27550. HEAP32[$45>>2] = $41;
  27551. $46 = (_GetScreenWidth()|0);
  27552. $47 = (+($46|0));
  27553. $48 = +HEAPF32[$24>>2];
  27554. $49 = $48 / $47;
  27555. HEAPF32[$24>>2] = $49;
  27556. $50 = (_GetScreenHeight()|0);
  27557. $51 = (+($50|0));
  27558. $52 = +HEAPF32[$$sroa$24$0$$sroa_idx5>>2];
  27559. $53 = $52 / $51;
  27560. HEAPF32[$$sroa$24$0$$sroa_idx5>>2] = $53;
  27561. $54 = (_GetScreenWidth()|0);
  27562. $55 = (+($54|0));
  27563. $56 = +HEAPF32[$35>>2];
  27564. $57 = $56 / $55;
  27565. HEAPF32[$35>>2] = $57;
  27566. $58 = (_GetScreenHeight()|0);
  27567. $59 = (+($58|0));
  27568. $60 = +HEAPF32[$$sroa$2$0$$sroa_idx2>>2];
  27569. $61 = $60 / $59;
  27570. HEAPF32[$$sroa$2$0$$sroa_idx2>>2] = $61;
  27571. 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));
  27572. _ProcessGestureEvent($$byval_copy);
  27573. STACKTOP = sp;return 1;
  27574. }
  27575. function _EmscriptenGamepadCallback($0,$1,$2) {
  27576. $0 = $0|0;
  27577. $1 = $1|0;
  27578. $2 = $2|0;
  27579. 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;
  27580. sp = STACKTOP;
  27581. $3 = ((($1)) + 1296|0);
  27582. $4 = HEAP32[$3>>2]|0;
  27583. $5 = ($4|0)==(0);
  27584. if ($5) {
  27585. label = 3;
  27586. } else {
  27587. $6 = ((($1)) + 1300|0);
  27588. $7 = HEAP32[$6>>2]|0;
  27589. $8 = ($7|0)<(4);
  27590. if ($8) {
  27591. $$sink = 1;
  27592. } else {
  27593. label = 3;
  27594. }
  27595. }
  27596. if ((label|0) == 3) {
  27597. $$sink = 0;
  27598. }
  27599. $9 = ((($1)) + 1300|0);
  27600. $10 = HEAP32[$9>>2]|0;
  27601. $11 = (22680 + ($10<<2)|0);
  27602. HEAP32[$11>>2] = $$sink;
  27603. return 0;
  27604. }
  27605. function _SetTargetFPS($0) {
  27606. $0 = $0|0;
  27607. 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;
  27608. sp = STACKTOP;
  27609. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  27610. $vararg_buffer = sp;
  27611. $1 = ($0|0)<(1);
  27612. $2 = (+($0|0));
  27613. $3 = 1.0 / $2;
  27614. $$ = $1 ? 0.0 : $3;
  27615. HEAPF64[2441] = $$;
  27616. $4 = $3;
  27617. $$op = $4 * 1000.0;
  27618. $5 = $$op;
  27619. $6 = $1 ? 0.0 : $5;
  27620. HEAPF64[$vararg_buffer>>3] = $6;
  27621. _TraceLog(0,9378,$vararg_buffer);
  27622. STACKTOP = sp;return;
  27623. }
  27624. function _LogoAnimation() {
  27625. var label = 0, sp = 0;
  27626. sp = STACKTOP;
  27627. HEAP32[5669] = 0;
  27628. return;
  27629. }
  27630. function _GetScreenWidth() {
  27631. var $0 = 0, label = 0, sp = 0;
  27632. sp = STACKTOP;
  27633. $0 = HEAP32[5667]|0;
  27634. return ($0|0);
  27635. }
  27636. function _GetScreenHeight() {
  27637. var $0 = 0, label = 0, sp = 0;
  27638. sp = STACKTOP;
  27639. $0 = HEAP32[5668]|0;
  27640. return ($0|0);
  27641. }
  27642. function _GetTime() {
  27643. var $0 = 0.0, label = 0, sp = 0;
  27644. sp = STACKTOP;
  27645. $0 = (+_glfwGetTime());
  27646. return (+$0);
  27647. }
  27648. function _ErrorCallback($0,$1) {
  27649. $0 = $0|0;
  27650. $1 = $1|0;
  27651. var $vararg_buffer = 0, $vararg_ptr1 = 0, label = 0, sp = 0;
  27652. sp = STACKTOP;
  27653. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  27654. $vararg_buffer = sp;
  27655. HEAP32[$vararg_buffer>>2] = $0;
  27656. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  27657. HEAP32[$vararg_ptr1>>2] = $1;
  27658. _TraceLog(1,13403,$vararg_buffer);
  27659. STACKTOP = sp;return;
  27660. }
  27661. function _SetupFramebufferSize($0,$1) {
  27662. $0 = $0|0;
  27663. $1 = $1|0;
  27664. 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;
  27665. 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;
  27666. 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;
  27667. var $vararg_ptr3 = 0, $vararg_ptr7 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  27668. sp = STACKTOP;
  27669. STACKTOP = STACKTOP + 112|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(112|0);
  27670. $vararg_buffer8 = sp + 24|0;
  27671. $vararg_buffer4 = sp + 16|0;
  27672. $vararg_buffer = sp;
  27673. $2 = sp + 40|0;
  27674. $3 = HEAP32[5667]|0;
  27675. $4 = ($3|0)>($0|0);
  27676. if (!($4)) {
  27677. $5 = HEAP32[5668]|0;
  27678. $6 = ($5|0)>($1|0);
  27679. if (!($6)) {
  27680. $30 = ($3|0)<($0|0);
  27681. $31 = ($5|0)<($1|0);
  27682. $or$cond = $30 | $31;
  27683. if (!($or$cond)) {
  27684. HEAP32[5693] = $3;
  27685. HEAP32[5694] = $5;
  27686. HEAP32[5695] = 0;
  27687. HEAP32[5696] = 0;
  27688. STACKTOP = sp;return;
  27689. }
  27690. HEAP32[$vararg_buffer8>>2] = $3;
  27691. $vararg_ptr11 = ((($vararg_buffer8)) + 4|0);
  27692. HEAP32[$vararg_ptr11>>2] = $5;
  27693. $vararg_ptr12 = ((($vararg_buffer8)) + 8|0);
  27694. HEAP32[$vararg_ptr12>>2] = $0;
  27695. $vararg_ptr13 = ((($vararg_buffer8)) + 12|0);
  27696. HEAP32[$vararg_ptr13>>2] = $1;
  27697. _TraceLog(0,13337,$vararg_buffer8);
  27698. $32 = (+($0|0));
  27699. $33 = (+($1|0));
  27700. $34 = $32 / $33;
  27701. $35 = HEAP32[5667]|0;
  27702. $36 = (+($35|0));
  27703. $37 = HEAP32[5668]|0;
  27704. $38 = (+($37|0));
  27705. $39 = $36 / $38;
  27706. $40 = !($34 <= $39);
  27707. if ($40) {
  27708. $44 = $34 * $38;
  27709. $roundf = (+_roundf((+$44)));
  27710. $45 = (~~(($roundf)));
  27711. HEAP32[5693] = $45;
  27712. HEAP32[5694] = $37;
  27713. $46 = (($45) - ($35))|0;
  27714. HEAP32[5695] = $46;
  27715. $$sink1 = 0;
  27716. } else {
  27717. HEAP32[5693] = $35;
  27718. $41 = $36 / $34;
  27719. $roundf38 = (+_roundf((+$41)));
  27720. $42 = (~~(($roundf38)));
  27721. HEAP32[5694] = $42;
  27722. HEAP32[5695] = 0;
  27723. $43 = (($42) - ($37))|0;
  27724. $$sink1 = $43;
  27725. }
  27726. HEAP32[5696] = $$sink1;
  27727. STACKTOP = sp;return;
  27728. }
  27729. }
  27730. $7 = HEAP32[5668]|0;
  27731. HEAP32[$vararg_buffer>>2] = $3;
  27732. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  27733. HEAP32[$vararg_ptr1>>2] = $7;
  27734. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  27735. HEAP32[$vararg_ptr2>>2] = $0;
  27736. $vararg_ptr3 = ((($vararg_buffer)) + 12|0);
  27737. HEAP32[$vararg_ptr3>>2] = $1;
  27738. _TraceLog(1,13194,$vararg_buffer);
  27739. $8 = (+($0|0));
  27740. $9 = HEAP32[5667]|0;
  27741. $10 = (+($9|0));
  27742. $11 = $8 / $10;
  27743. $12 = (+($1|0));
  27744. $13 = HEAP32[5668]|0;
  27745. $14 = (+($13|0));
  27746. $15 = $12 / $14;
  27747. $16 = !($11 <= $15);
  27748. if ($16) {
  27749. $22 = $10 * $15;
  27750. $roundf39 = (+_roundf((+$22)));
  27751. $23 = (~~(($roundf39)));
  27752. HEAP32[5693] = $23;
  27753. HEAP32[5694] = $1;
  27754. $24 = (($0) - ($23))|0;
  27755. HEAP32[5695] = $24;
  27756. $$sink = 0;
  27757. } else {
  27758. HEAP32[5693] = $0;
  27759. $17 = HEAP32[5668]|0;
  27760. $18 = (+($17|0));
  27761. $19 = $11 * $18;
  27762. $roundf40 = (+_roundf((+$19)));
  27763. $20 = (~~(($roundf40)));
  27764. HEAP32[5694] = $20;
  27765. HEAP32[5695] = 0;
  27766. $21 = (($1) - ($20))|0;
  27767. $$sink = $21;
  27768. }
  27769. HEAP32[5696] = $$sink;
  27770. $25 = HEAP32[5693]|0;
  27771. $26 = (+($25|0));
  27772. $27 = HEAP32[5667]|0;
  27773. $28 = (+($27|0));
  27774. $29 = $26 / $28;
  27775. _MatrixScale($2,$29,$29,$29);
  27776. dest=22696; 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));
  27777. HEAP32[5693] = $0;
  27778. HEAP32[5694] = $1;
  27779. HEAP32[$vararg_buffer4>>2] = $0;
  27780. $vararg_ptr7 = ((($vararg_buffer4)) + 4|0);
  27781. HEAP32[$vararg_ptr7>>2] = $1;
  27782. _TraceLog(1,13272,$vararg_buffer4);
  27783. STACKTOP = sp;return;
  27784. }
  27785. function _WindowSizeCallback($0,$1,$2) {
  27786. $0 = $0|0;
  27787. $1 = $1|0;
  27788. $2 = $2|0;
  27789. var $3 = 0.0, $4 = 0.0, label = 0, sp = 0;
  27790. sp = STACKTOP;
  27791. _rlViewport(0,0,$1,$2);
  27792. _rlMatrixMode(5889);
  27793. _rlLoadIdentity();
  27794. $3 = (+($1|0));
  27795. $4 = (+($2|0));
  27796. _rlOrtho(0.0,$3,$4,0.0,0.0,1.0);
  27797. _rlMatrixMode(5888);
  27798. _rlLoadIdentity();
  27799. _rlClearScreenBuffers();
  27800. HEAP32[5667] = $1;
  27801. HEAP32[5668] = $2;
  27802. HEAP32[5693] = $1;
  27803. HEAP32[5694] = $2;
  27804. return;
  27805. }
  27806. function _CursorEnterCallback($0,$1) {
  27807. $0 = $0|0;
  27808. $1 = $1|0;
  27809. var label = 0, sp = 0;
  27810. sp = STACKTOP;
  27811. return;
  27812. }
  27813. function _KeyCallback($0,$1,$2,$3,$4) {
  27814. $0 = $0|0;
  27815. $1 = $1|0;
  27816. $2 = $2|0;
  27817. $3 = $3|0;
  27818. $4 = $4|0;
  27819. var $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, label = 0, sp = 0;
  27820. sp = STACKTOP;
  27821. $5 = HEAP32[940]|0;
  27822. $6 = ($5|0)==($1|0);
  27823. $7 = ($3|0)==(1);
  27824. $or$cond = $7 & $6;
  27825. if ($or$cond) {
  27826. _glfwSetWindowShouldClose(($0|0),1);
  27827. return;
  27828. }
  27829. $8 = $3&255;
  27830. $9 = (23583 + ($1)|0);
  27831. HEAP8[$9>>0] = $8;
  27832. if (!($7)) {
  27833. return;
  27834. }
  27835. HEAP32[939] = $1;
  27836. return;
  27837. }
  27838. function _MouseButtonCallback($0,$1,$2,$3) {
  27839. $0 = $0|0;
  27840. $1 = $1|0;
  27841. $2 = $2|0;
  27842. $3 = $3|0;
  27843. 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;
  27844. 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;
  27845. sp = STACKTOP;
  27846. STACKTOP = STACKTOP + 128|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(128|0);
  27847. $$byval_copy = sp + 64|0;
  27848. $4 = sp + 8|0;
  27849. $5 = sp;
  27850. $6 = $2&255;
  27851. $7 = (23577 + ($1)|0);
  27852. HEAP8[$7>>0] = $6;
  27853. $8 = (_IsMouseButtonPressed(0)|0);
  27854. $9 = ($8|0)==(0);
  27855. if ($9) {
  27856. $10 = (_IsMouseButtonReleased(0)|0);
  27857. $11 = ($10|0)==(0);
  27858. if (!($11)) {
  27859. $$sink = 0;
  27860. label = 3;
  27861. }
  27862. } else {
  27863. $$sink = 1;
  27864. label = 3;
  27865. }
  27866. if ((label|0) == 3) {
  27867. HEAP32[$4>>2] = $$sink;
  27868. }
  27869. $12 = ((($4)) + 8|0);
  27870. HEAP32[$12>>2] = 0;
  27871. $13 = ((($4)) + 4|0);
  27872. HEAP32[$13>>2] = 1;
  27873. $14 = ((($4)) + 24|0);
  27874. _GetMousePosition($5);
  27875. $15 = $5;
  27876. $16 = $15;
  27877. $17 = HEAP32[$16>>2]|0;
  27878. $18 = (($15) + 4)|0;
  27879. $19 = $18;
  27880. $20 = HEAP32[$19>>2]|0;
  27881. $21 = $14;
  27882. $22 = $21;
  27883. HEAP32[$22>>2] = $17;
  27884. $23 = (($21) + 4)|0;
  27885. $24 = $23;
  27886. HEAP32[$24>>2] = $20;
  27887. $25 = (_GetScreenWidth()|0);
  27888. $26 = (+($25|0));
  27889. $27 = +HEAPF32[$14>>2];
  27890. $28 = $27 / $26;
  27891. HEAPF32[$14>>2] = $28;
  27892. $29 = (_GetScreenHeight()|0);
  27893. $30 = (+($29|0));
  27894. $31 = ((($4)) + 28|0);
  27895. $32 = +HEAPF32[$31>>2];
  27896. $33 = $32 / $30;
  27897. HEAPF32[$31>>2] = $33;
  27898. 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));
  27899. _ProcessGestureEvent($$byval_copy);
  27900. STACKTOP = sp;return;
  27901. }
  27902. function _MouseCursorPosCallback($0,$1,$2) {
  27903. $0 = $0|0;
  27904. $1 = +$1;
  27905. $2 = +$2;
  27906. 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;
  27907. 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;
  27908. sp = STACKTOP;
  27909. STACKTOP = STACKTOP + 112|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(112|0);
  27910. $$byval_copy = sp + 56|0;
  27911. $3 = sp;
  27912. HEAP32[$3>>2] = 2;
  27913. $4 = ((($3)) + 8|0);
  27914. HEAP32[$4>>2] = 0;
  27915. $5 = ((($3)) + 4|0);
  27916. HEAP32[$5>>2] = 1;
  27917. $6 = $1;
  27918. $7 = $2;
  27919. $$sroa$0$0$$sroa_idx = ((($3)) + 24|0);
  27920. HEAPF32[$$sroa$0$0$$sroa_idx>>2] = $6;
  27921. $$sroa$2$0$$sroa_idx1 = ((($3)) + 28|0);
  27922. HEAPF32[$$sroa$2$0$$sroa_idx1>>2] = $7;
  27923. $8 = ((($3)) + 24|0);
  27924. $9 = $8;
  27925. $10 = $9;
  27926. $11 = HEAP32[$10>>2]|0;
  27927. $12 = (($9) + 4)|0;
  27928. $13 = $12;
  27929. $14 = HEAP32[$13>>2]|0;
  27930. $15 = 19536;
  27931. $16 = $15;
  27932. HEAP32[$16>>2] = $11;
  27933. $17 = (($15) + 4)|0;
  27934. $18 = $17;
  27935. HEAP32[$18>>2] = $14;
  27936. $19 = (_GetScreenWidth()|0);
  27937. $20 = (+($19|0));
  27938. $21 = +HEAPF32[$8>>2];
  27939. $22 = $21 / $20;
  27940. HEAPF32[$8>>2] = $22;
  27941. $23 = (_GetScreenHeight()|0);
  27942. $24 = (+($23|0));
  27943. $25 = +HEAPF32[$$sroa$2$0$$sroa_idx1>>2];
  27944. $26 = $25 / $24;
  27945. HEAPF32[$$sroa$2$0$$sroa_idx1>>2] = $26;
  27946. 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));
  27947. _ProcessGestureEvent($$byval_copy);
  27948. STACKTOP = sp;return;
  27949. }
  27950. function _CharCallback($0,$1) {
  27951. $0 = $0|0;
  27952. $1 = $1|0;
  27953. var label = 0, sp = 0;
  27954. sp = STACKTOP;
  27955. HEAP32[939] = $1;
  27956. return;
  27957. }
  27958. function _ScrollCallback($0,$1,$2) {
  27959. $0 = $0|0;
  27960. $1 = +$1;
  27961. $2 = +$2;
  27962. var $3 = 0, label = 0, sp = 0;
  27963. sp = STACKTOP;
  27964. $3 = (~~(($2)));
  27965. HEAP32[5699] = $3;
  27966. return;
  27967. }
  27968. function _WindowIconifyCallback($0,$1) {
  27969. $0 = $0|0;
  27970. $1 = $1|0;
  27971. var $$sink = 0, $2 = 0, label = 0, sp = 0;
  27972. sp = STACKTOP;
  27973. $2 = ($1|0)!=(0);
  27974. $$sink = $2&1;
  27975. HEAP32[5698] = $$sink;
  27976. return;
  27977. }
  27978. function _rlglInit($0,$1) {
  27979. $0 = $0|0;
  27980. $1 = $1|0;
  27981. var $$06066 = 0, $$06167 = 0, $$06268 = 0, $$063 = 0, $$sink64 = 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;
  27982. 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;
  27983. 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;
  27984. 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.0, $73 = 0.0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0;
  27985. var $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $9 = 0, $exitcond = 0, $exitcond70 = 0, $exitcond71 = 0, $vararg_buffer = 0, $vararg_buffer1 = 0, $vararg_buffer10 = 0, $vararg_buffer13 = 0, $vararg_buffer15 = 0, $vararg_buffer17 = 0;
  27986. var $vararg_buffer19 = 0, $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;
  27987. sp = STACKTOP;
  27988. STACKTOP = STACKTOP + 2464|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(2464|0);
  27989. $vararg_buffer41 = sp + 2184|0;
  27990. $vararg_buffer39 = sp + 2176|0;
  27991. $vararg_buffer36 = sp + 2168|0;
  27992. $vararg_buffer34 = sp + 2160|0;
  27993. $vararg_buffer31 = sp + 2152|0;
  27994. $vararg_buffer29 = sp + 2144|0;
  27995. $vararg_buffer27 = sp + 2136|0;
  27996. $vararg_buffer25 = sp + 2128|0;
  27997. $vararg_buffer23 = sp + 2120|0;
  27998. $vararg_buffer21 = sp + 2112|0;
  27999. $vararg_buffer19 = sp + 2104|0;
  28000. $vararg_buffer17 = sp + 2096|0;
  28001. $vararg_buffer15 = sp + 2088|0;
  28002. $vararg_buffer13 = sp + 2080|0;
  28003. $vararg_buffer10 = sp + 2072|0;
  28004. $vararg_buffer7 = sp + 24|0;
  28005. $vararg_buffer4 = sp + 16|0;
  28006. $vararg_buffer1 = sp + 8|0;
  28007. $vararg_buffer = sp;
  28008. $2 = sp + 2400|0;
  28009. $3 = sp + 2384|0;
  28010. $4 = sp + 2320|0;
  28011. $5 = sp + 2256|0;
  28012. $6 = sp + 2192|0;
  28013. $7 = (_glGetString(7936)|0);
  28014. HEAP32[$vararg_buffer>>2] = $7;
  28015. _TraceLog(0,9817,$vararg_buffer);
  28016. $8 = (_glGetString(7937)|0);
  28017. HEAP32[$vararg_buffer1>>2] = $8;
  28018. _TraceLog(0,9835,$vararg_buffer1);
  28019. $9 = (_glGetString(7938)|0);
  28020. HEAP32[$vararg_buffer4>>2] = $9;
  28021. _TraceLog(0,9853,$vararg_buffer4);
  28022. $10 = (_glGetString(35724)|0);
  28023. HEAP32[$vararg_buffer7>>2] = $10;
  28024. _TraceLog(0,9871,$vararg_buffer7);
  28025. $11 = (_glGetString(7939)|0);
  28026. $12 = (_strlen($11)|0);
  28027. $13 = (($12) + 1)|0;
  28028. $14 = (_malloc($13)|0);
  28029. _memcpy(($14|0),($11|0),($13|0))|0;
  28030. $$063 = 0;$$sink64 = $14;
  28031. while(1) {
  28032. $15 = (_strtok($$sink64,9889)|0);
  28033. $16 = (($vararg_buffer7) + ($$063<<2)|0);
  28034. HEAP32[$16>>2] = $15;
  28035. $17 = ($15|0)==(0|0);
  28036. $18 = (($$063) + 1)|0;
  28037. if ($17) {
  28038. break;
  28039. } else {
  28040. $$063 = $18;$$sink64 = 0;
  28041. }
  28042. }
  28043. _free($14);
  28044. $19 = (($$063) + -1)|0;
  28045. HEAP32[$vararg_buffer10>>2] = $19;
  28046. _TraceLog(0,9891,$vararg_buffer10);
  28047. $20 = ($$063|0)>(1);
  28048. if ($20) {
  28049. $$06268 = 0;
  28050. while(1) {
  28051. $23 = (($vararg_buffer7) + ($$06268<<2)|0);
  28052. $24 = HEAP32[$23>>2]|0;
  28053. $25 = (_strcmp($24,9926)|0);
  28054. $26 = ($25|0)==(0);
  28055. if ($26) {
  28056. HEAP32[5259] = 1;
  28057. $27 = (_eglGetProcAddress((9953|0))|0);
  28058. HEAP32[5633] = $27;
  28059. $28 = (_eglGetProcAddress((9974|0))|0);
  28060. HEAP32[5260] = $28;
  28061. $29 = (_eglGetProcAddress((9995|0))|0);
  28062. HEAP32[5648] = $29;
  28063. }
  28064. $30 = (_strcmp($24,10019)|0);
  28065. $31 = ($30|0)==(0);
  28066. if ($31) {
  28067. HEAP32[5166] = 1;
  28068. }
  28069. $32 = (_strcmp($24,10039)|0);
  28070. $33 = ($32|0)==(0);
  28071. if ($33) {
  28072. HEAP32[5165] = 1;
  28073. }
  28074. $34 = (_strcmp($24,10057)|0);
  28075. $35 = ($34|0)==(0);
  28076. if ($35) {
  28077. label = 14;
  28078. } else {
  28079. $36 = HEAP32[$23>>2]|0;
  28080. $37 = (_strcmp($36,10089)|0);
  28081. $38 = ($37|0)==(0);
  28082. if ($38) {
  28083. label = 14;
  28084. } else {
  28085. $39 = (_strcmp($36,10122)|0);
  28086. $40 = ($39|0)==(0);
  28087. if ($40) {
  28088. label = 14;
  28089. }
  28090. }
  28091. }
  28092. if ((label|0) == 14) {
  28093. label = 0;
  28094. HEAP32[5160] = 1;
  28095. }
  28096. $41 = HEAP32[$23>>2]|0;
  28097. $42 = (_strcmp($41,10162)|0);
  28098. $43 = ($42|0)==(0);
  28099. if ($43) {
  28100. label = 17;
  28101. } else {
  28102. $44 = (_strcmp($41,10198)|0);
  28103. $45 = ($44|0)==(0);
  28104. if ($45) {
  28105. label = 17;
  28106. }
  28107. }
  28108. if ((label|0) == 17) {
  28109. label = 0;
  28110. HEAP32[5161] = 1;
  28111. }
  28112. $46 = (_strcmp($41,10231)|0);
  28113. $47 = ($46|0)==(0);
  28114. if ($47) {
  28115. HEAP32[5162] = 1;
  28116. }
  28117. $48 = HEAP32[$23>>2]|0;
  28118. $49 = (_strcmp($48,10256)|0);
  28119. $50 = ($49|0)==(0);
  28120. if ($50) {
  28121. HEAP32[5163] = 1;
  28122. }
  28123. $51 = (_strcmp($48,10289)|0);
  28124. $52 = ($51|0)==(0);
  28125. if ($52) {
  28126. HEAP32[5164] = 1;
  28127. }
  28128. $53 = (_strcmp($48,10325)|0);
  28129. $54 = ($53|0)==(0);
  28130. if ($54) {
  28131. HEAP32[5697] = 1;
  28132. _glGetFloatv(34047,(20672|0));
  28133. }
  28134. $55 = (_strcmp($48,10359)|0);
  28135. $56 = ($55|0)==(0);
  28136. if ($56) {
  28137. HEAP32[5167] = 1;
  28138. }
  28139. $57 = (($$06268) + 1)|0;
  28140. $exitcond71 = ($57|0)==($19|0);
  28141. if ($exitcond71) {
  28142. break;
  28143. } else {
  28144. $$06268 = $57;
  28145. }
  28146. }
  28147. }
  28148. $21 = HEAP32[5259]|0;
  28149. $22 = ($21|0)==(0);
  28150. if ($22) {
  28151. _TraceLog(1,10462,$vararg_buffer15);
  28152. } else {
  28153. _TraceLog(0,10387,$vararg_buffer13);
  28154. }
  28155. $58 = HEAP32[5166]|0;
  28156. $59 = ($58|0)==(0);
  28157. if ($59) {
  28158. _TraceLog(1,10598,$vararg_buffer19);
  28159. } else {
  28160. _TraceLog(0,10523,$vararg_buffer17);
  28161. }
  28162. $60 = HEAP32[5160]|0;
  28163. $61 = ($60|0)==(0);
  28164. if (!($61)) {
  28165. _TraceLog(0,10690,$vararg_buffer21);
  28166. }
  28167. $62 = HEAP32[5161]|0;
  28168. $63 = ($62|0)==(0);
  28169. if (!($63)) {
  28170. _TraceLog(0,10736,$vararg_buffer23);
  28171. }
  28172. $64 = HEAP32[5162]|0;
  28173. $65 = ($64|0)==(0);
  28174. if (!($65)) {
  28175. _TraceLog(0,10783,$vararg_buffer25);
  28176. }
  28177. $66 = HEAP32[5163]|0;
  28178. $67 = ($66|0)==(0);
  28179. if (!($67)) {
  28180. _TraceLog(0,10834,$vararg_buffer27);
  28181. }
  28182. $68 = HEAP32[5164]|0;
  28183. $69 = ($68|0)==(0);
  28184. if (!($69)) {
  28185. _TraceLog(0,10881,$vararg_buffer29);
  28186. }
  28187. $70 = HEAP32[5697]|0;
  28188. $71 = ($70|0)==(0);
  28189. if (!($71)) {
  28190. $72 = +HEAPF32[5168];
  28191. $73 = $72;
  28192. HEAPF64[$vararg_buffer31>>3] = $73;
  28193. _TraceLog(0,10928,$vararg_buffer31);
  28194. }
  28195. $74 = HEAP32[5167]|0;
  28196. $75 = ($74|0)==(0);
  28197. if (!($75)) {
  28198. _TraceLog(0,10994,$vararg_buffer34);
  28199. }
  28200. HEAP32[$vararg_buffer10>>2] = -1;
  28201. $76 = (_rlglLoadTexture($vararg_buffer10,1,1,7,1)|0);
  28202. HEAP32[5219] = $76;
  28203. $77 = ($76|0)==(0);
  28204. if ($77) {
  28205. _TraceLog(1,11098,$vararg_buffer39);
  28206. } else {
  28207. HEAP32[$vararg_buffer36>>2] = $76;
  28208. _TraceLog(0,11047,$vararg_buffer36);
  28209. }
  28210. _LoadDefaultShader($2);
  28211. dest=22536; 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));
  28212. dest=20980; 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));
  28213. _LoadDefaultBuffers();
  28214. $78 = (_malloc(49152)|0);
  28215. HEAP32[5628] = $78;
  28216. $$06167 = 0;
  28217. while(1) {
  28218. $80 = HEAP32[5628]|0;
  28219. $81 = (($80) + (($$06167*12)|0)|0);
  28220. _VectorZero($3);
  28221. ;HEAP32[$81>>2]=HEAP32[$3>>2]|0;HEAP32[$81+4>>2]=HEAP32[$3+4>>2]|0;HEAP32[$81+8>>2]=HEAP32[$3+8>>2]|0;
  28222. $82 = (($$06167) + 1)|0;
  28223. $exitcond70 = ($82|0)==(4096);
  28224. if ($exitcond70) {
  28225. break;
  28226. } else {
  28227. $$06167 = $82;
  28228. }
  28229. }
  28230. $79 = (_malloc(36864)|0);
  28231. HEAP32[5220] = $79;
  28232. $$06066 = 0;
  28233. while(1) {
  28234. $83 = (((($79) + (($$06066*144)|0)|0)) + 8|0);
  28235. HEAP32[$83>>2] = 0;
  28236. $84 = (($79) + (($$06066*144)|0)|0);
  28237. HEAP32[$84>>2] = 0;
  28238. $85 = (($$06066) + 1)|0;
  28239. $exitcond = ($85|0)==(256);
  28240. if ($exitcond) {
  28241. break;
  28242. } else {
  28243. $$06066 = $85;
  28244. }
  28245. }
  28246. HEAP32[5218] = 1;
  28247. $86 = HEAP32[5219]|0;
  28248. $87 = ((($79)) + 8|0);
  28249. HEAP32[$87>>2] = $86;
  28250. HEAP32[5629] = 4;
  28251. _MatrixIdentity($4);
  28252. dest=21476; 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));
  28253. _MatrixIdentity($4);
  28254. dest=(21540); 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));
  28255. _MatrixIdentity($4);
  28256. dest=(21604); 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));
  28257. _MatrixIdentity($4);
  28258. dest=(21668); 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));
  28259. _MatrixIdentity($4);
  28260. dest=(21732); 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));
  28261. _MatrixIdentity($4);
  28262. dest=(21796); 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));
  28263. _MatrixIdentity($4);
  28264. dest=(21860); 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));
  28265. _MatrixIdentity($4);
  28266. dest=(21924); 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));
  28267. _MatrixIdentity($4);
  28268. dest=(21988); 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));
  28269. _MatrixIdentity($4);
  28270. dest=(22052); 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));
  28271. _MatrixIdentity($4);
  28272. dest=(22116); 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));
  28273. _MatrixIdentity($4);
  28274. dest=(22180); 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));
  28275. _MatrixIdentity($4);
  28276. dest=(22244); 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));
  28277. _MatrixIdentity($4);
  28278. dest=(22308); 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));
  28279. _MatrixIdentity($4);
  28280. dest=(22372); 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));
  28281. _MatrixIdentity($4);
  28282. dest=(22436); 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));
  28283. _MatrixIdentity($5);
  28284. dest=20740; 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));
  28285. _MatrixIdentity($6);
  28286. dest=20804; 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));
  28287. HEAP32[5625] = 20804;
  28288. _glDepthFunc(515);
  28289. _glDisable(2929);
  28290. _glBlendFunc(770,771);
  28291. _glEnable(3042);
  28292. _glCullFace(1029);
  28293. _glFrontFace(2305);
  28294. _glEnable(2884);
  28295. _glClearColor(0.0,0.0,0.0,1.0);
  28296. _glClearDepthf(1.0);
  28297. _glClear(16640);
  28298. HEAP32[5277] = $0;
  28299. HEAP32[5278] = $1;
  28300. _TraceLog(0,11137,$vararg_buffer41);
  28301. STACKTOP = sp;return;
  28302. }
  28303. function _SetupViewport() {
  28304. var $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, label = 0, sp = 0;
  28305. sp = STACKTOP;
  28306. $0 = HEAP32[5695]|0;
  28307. $1 = (($0|0) / 2)&-1;
  28308. $2 = HEAP32[5696]|0;
  28309. $3 = (($2|0) / 2)&-1;
  28310. $4 = HEAP32[5693]|0;
  28311. $5 = (($4) - ($0))|0;
  28312. $6 = HEAP32[5694]|0;
  28313. $7 = (($6) - ($2))|0;
  28314. _rlViewport($1,$3,$5,$7);
  28315. return;
  28316. }
  28317. function _rlMatrixMode($0) {
  28318. $0 = $0|0;
  28319. var $modelview$sink = 0, label = 0, sp = 0;
  28320. sp = STACKTOP;
  28321. switch ($0|0) {
  28322. case 5889: {
  28323. $modelview$sink = 20740;
  28324. label = 3;
  28325. break;
  28326. }
  28327. case 5888: {
  28328. $modelview$sink = 20804;
  28329. label = 3;
  28330. break;
  28331. }
  28332. default: {
  28333. }
  28334. }
  28335. if ((label|0) == 3) {
  28336. HEAP32[5625] = $modelview$sink;
  28337. }
  28338. HEAP32[5630] = $0;
  28339. return;
  28340. }
  28341. function _rlOrtho($0,$1,$2,$3,$4,$5) {
  28342. $0 = +$0;
  28343. $1 = +$1;
  28344. $2 = +$2;
  28345. $3 = +$3;
  28346. $4 = +$4;
  28347. $5 = +$5;
  28348. var $$byval_copy = 0, $$byval_copy1 = 0, $6 = 0, $7 = 0, $8 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  28349. sp = STACKTOP;
  28350. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  28351. $$byval_copy1 = sp + 192|0;
  28352. $$byval_copy = sp + 128|0;
  28353. $6 = sp + 64|0;
  28354. $7 = sp;
  28355. _MatrixOrtho($6,$0,$1,$2,$3,$4,$5);
  28356. _MatrixTranspose($6);
  28357. $8 = HEAP32[5625]|0;
  28358. 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));
  28359. 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));
  28360. _MatrixMultiply($7,$$byval_copy,$$byval_copy1);
  28361. 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));
  28362. STACKTOP = sp;return;
  28363. }
  28364. function _ClearBackground($0) {
  28365. $0 = $0|0;
  28366. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, label = 0, sp = 0;
  28367. sp = STACKTOP;
  28368. $1 = HEAP8[$0>>0]|0;
  28369. $2 = ((($0)) + 1|0);
  28370. $3 = HEAP8[$2>>0]|0;
  28371. $4 = ((($0)) + 2|0);
  28372. $5 = HEAP8[$4>>0]|0;
  28373. $6 = ((($0)) + 3|0);
  28374. $7 = HEAP8[$6>>0]|0;
  28375. _rlClearColor($1,$3,$5,$7);
  28376. return;
  28377. }
  28378. function _rlClearColor($0,$1,$2,$3) {
  28379. $0 = $0|0;
  28380. $1 = $1|0;
  28381. $2 = $2|0;
  28382. $3 = $3|0;
  28383. 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;
  28384. sp = STACKTOP;
  28385. $4 = (+($0&255));
  28386. $5 = $4 / 255.0;
  28387. $6 = (+($1&255));
  28388. $7 = $6 / 255.0;
  28389. $8 = (+($2&255));
  28390. $9 = $8 / 255.0;
  28391. $10 = (+($3&255));
  28392. $11 = $10 / 255.0;
  28393. _glClearColor((+$5),(+$7),(+$9),(+$11));
  28394. return;
  28395. }
  28396. function _LoadDefaultShader($0) {
  28397. $0 = $0|0;
  28398. 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;
  28399. sp = STACKTOP;
  28400. STACKTOP = STACKTOP + 1008|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(1008|0);
  28401. $vararg_buffer1 = sp + 8|0;
  28402. $vararg_buffer = sp;
  28403. $1 = sp + 16|0;
  28404. $2 = sp + 513|0;
  28405. $3 = sp + 72|0;
  28406. _memcpy(($2|0),(11713|0),489)|0;
  28407. _memcpy(($3|0),(12202|0),441)|0;
  28408. $4 = (_LoadShaderProgram($2,$3)|0);
  28409. HEAP32[$1>>2] = $4;
  28410. $5 = ($4|0)==(0);
  28411. if ($5) {
  28412. HEAP32[$vararg_buffer1>>2] = $4;
  28413. _TraceLog(1,12691,$vararg_buffer1);
  28414. } else {
  28415. HEAP32[$vararg_buffer>>2] = $4;
  28416. _TraceLog(0,12643,$vararg_buffer);
  28417. }
  28418. $6 = HEAP32[$1>>2]|0;
  28419. $7 = ($6|0)==(0);
  28420. if (!($7)) {
  28421. _LoadDefaultShaderLocations($1);
  28422. }
  28423. 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));
  28424. STACKTOP = sp;return;
  28425. }
  28426. function _LoadDefaultBuffers() {
  28427. 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;
  28428. 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;
  28429. 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;
  28430. 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;
  28431. 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;
  28432. 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;
  28433. 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;
  28434. sp = STACKTOP;
  28435. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  28436. $vararg_buffer17 = sp + 48|0;
  28437. $vararg_buffer14 = sp + 40|0;
  28438. $vararg_buffer10 = sp + 32|0;
  28439. $vararg_buffer7 = sp + 24|0;
  28440. $vararg_buffer3 = sp + 16|0;
  28441. $vararg_buffer1 = sp + 8|0;
  28442. $vararg_buffer = sp;
  28443. $0 = (_malloc(24576)|0);
  28444. HEAP32[(20896)>>2] = $0;
  28445. $1 = (_malloc(8192)|0);
  28446. HEAP32[(20904)>>2] = $1;
  28447. HEAP32[(20900)>>2] = 0;
  28448. HEAP32[(20908)>>2] = 0;
  28449. _memset(($0|0),0,24576)|0;
  28450. $$05972 = 0;
  28451. while(1) {
  28452. $2 = HEAP32[(20904)>>2]|0;
  28453. $3 = (($2) + ($$05972)|0);
  28454. HEAP8[$3>>0] = 0;
  28455. $4 = (($$05972) + 1)|0;
  28456. $exitcond80 = ($4|0)==(8192);
  28457. if ($exitcond80) {
  28458. break;
  28459. } else {
  28460. $$05972 = $4;
  28461. }
  28462. }
  28463. HEAP32[5221] = 0;
  28464. HEAP32[(20892)>>2] = 0;
  28465. HEAP32[(20888)>>2] = 0;
  28466. $5 = (_malloc(73728)|0);
  28467. HEAP32[(20944)>>2] = $5;
  28468. $6 = (_malloc(24576)|0);
  28469. HEAP32[(20952)>>2] = $6;
  28470. HEAP32[(20948)>>2] = 0;
  28471. HEAP32[(20956)>>2] = 0;
  28472. _memset(($5|0),0,73728)|0;
  28473. $$05770 = 0;
  28474. while(1) {
  28475. $7 = HEAP32[(20952)>>2]|0;
  28476. $8 = (($7) + ($$05770)|0);
  28477. HEAP8[$8>>0] = 0;
  28478. $9 = (($$05770) + 1)|0;
  28479. $exitcond78 = ($9|0)==(24576);
  28480. if ($exitcond78) {
  28481. break;
  28482. } else {
  28483. $$05770 = $9;
  28484. }
  28485. }
  28486. HEAP32[5233] = 0;
  28487. HEAP32[(20940)>>2] = 0;
  28488. HEAP32[(20936)>>2] = 0;
  28489. $10 = (_malloc(49152)|0);
  28490. HEAP32[(20704)>>2] = $10;
  28491. $11 = (_malloc(32768)|0);
  28492. HEAP32[(20708)>>2] = $11;
  28493. $12 = (_malloc(16384)|0);
  28494. HEAP32[(20712)>>2] = $12;
  28495. $13 = (_malloc(12288)|0);
  28496. HEAP32[(20716)>>2] = $13;
  28497. $14 = HEAP32[(20704)>>2]|0;
  28498. _memset(($14|0),0,49152)|0;
  28499. $15 = HEAP32[(20708)>>2]|0;
  28500. _memset(($15|0),0,32768)|0;
  28501. $$05467 = 0;
  28502. while(1) {
  28503. $17 = HEAP32[(20712)>>2]|0;
  28504. $18 = (($17) + ($$05467)|0);
  28505. HEAP8[$18>>0] = 0;
  28506. $19 = (($$05467) + 1)|0;
  28507. $exitcond75 = ($19|0)==(16384);
  28508. if ($exitcond75) {
  28509. break;
  28510. } else {
  28511. $$05467 = $19;
  28512. }
  28513. }
  28514. $16 = HEAP32[(20716)>>2]|0;
  28515. $$05365 = 0;$$066 = 0;
  28516. while(1) {
  28517. $22 = $$05365 << 2;
  28518. $23 = $22&65535;
  28519. $24 = (($16) + ($$066<<1)|0);
  28520. HEAP16[$24>>1] = $23;
  28521. $25 = $22 | 1;
  28522. $26 = $25&65535;
  28523. $27 = $$066 | 1;
  28524. $28 = (($16) + ($27<<1)|0);
  28525. HEAP16[$28>>1] = $26;
  28526. $29 = $22 | 2;
  28527. $30 = $29&65535;
  28528. $31 = (($$066) + 2)|0;
  28529. $32 = (($16) + ($31<<1)|0);
  28530. HEAP16[$32>>1] = $30;
  28531. $33 = (($$066) + 3)|0;
  28532. $34 = (($16) + ($33<<1)|0);
  28533. HEAP16[$34>>1] = $23;
  28534. $35 = (($$066) + 4)|0;
  28535. $36 = (($16) + ($35<<1)|0);
  28536. HEAP16[$36>>1] = $30;
  28537. $37 = $22 | 3;
  28538. $38 = $37&65535;
  28539. $39 = (($$066) + 5)|0;
  28540. $40 = (($16) + ($39<<1)|0);
  28541. HEAP16[$40>>1] = $38;
  28542. $41 = (($$05365) + 1)|0;
  28543. $42 = (($$066) + 6)|0;
  28544. $exitcond = ($41|0)==(1024);
  28545. if ($exitcond) {
  28546. break;
  28547. } else {
  28548. $$05365 = $41;$$066 = $42;
  28549. }
  28550. }
  28551. HEAP32[5173] = 0;
  28552. HEAP32[(20696)>>2] = 0;
  28553. HEAP32[(20700)>>2] = 0;
  28554. _TraceLog(0,11184,$vararg_buffer);
  28555. $20 = HEAP32[5259]|0;
  28556. $21 = ($20|0)==(0);
  28557. if (!($21)) {
  28558. $43 = HEAP32[5633]|0;
  28559. FUNCTION_TABLE_vii[$43 & 63](1,(20912));
  28560. $44 = HEAP32[5260]|0;
  28561. $45 = HEAP32[(20912)>>2]|0;
  28562. FUNCTION_TABLE_vi[$44 & 31]($45);
  28563. }
  28564. _glGenBuffers(2,((20916)|0));
  28565. $46 = HEAP32[(20916)>>2]|0;
  28566. _glBindBuffer(34962,($46|0));
  28567. $47 = HEAP32[(20896)>>2]|0;
  28568. _glBufferData(34962,24576,($47|0),35048);
  28569. $48 = HEAP32[(20984)>>2]|0;
  28570. _glEnableVertexAttribArray(($48|0));
  28571. $49 = HEAP32[(20984)>>2]|0;
  28572. _glVertexAttribPointer(($49|0),3,5126,0,0,(0|0));
  28573. _glGenBuffers(2,((20920)|0));
  28574. $50 = HEAP32[(20920)>>2]|0;
  28575. _glBindBuffer(34962,($50|0));
  28576. $51 = HEAP32[(20904)>>2]|0;
  28577. _glBufferData(34962,8192,($51|0),35048);
  28578. $52 = HEAP32[(21004)>>2]|0;
  28579. _glEnableVertexAttribArray(($52|0));
  28580. $53 = HEAP32[(21004)>>2]|0;
  28581. _glVertexAttribPointer(($53|0),4,5121,1,0,(0|0));
  28582. $54 = HEAP32[5259]|0;
  28583. $55 = ($54|0)==(0);
  28584. if ($55) {
  28585. $57 = HEAP32[(20916)>>2]|0;
  28586. $58 = HEAP32[(20920)>>2]|0;
  28587. HEAP32[$vararg_buffer3>>2] = $57;
  28588. $vararg_ptr6 = ((($vararg_buffer3)) + 4|0);
  28589. HEAP32[$vararg_ptr6>>2] = $58;
  28590. _TraceLog(0,11322,$vararg_buffer3);
  28591. } else {
  28592. $56 = HEAP32[(20912)>>2]|0;
  28593. HEAP32[$vararg_buffer1>>2] = $56;
  28594. _TraceLog(0,11257,$vararg_buffer1);
  28595. }
  28596. $59 = HEAP32[5259]|0;
  28597. $60 = ($59|0)==(0);
  28598. if (!($60)) {
  28599. $61 = HEAP32[5633]|0;
  28600. FUNCTION_TABLE_vii[$61 & 63](1,(20960));
  28601. $62 = HEAP32[5260]|0;
  28602. $63 = HEAP32[(20960)>>2]|0;
  28603. FUNCTION_TABLE_vi[$62 & 31]($63);
  28604. }
  28605. _glGenBuffers(1,((20964)|0));
  28606. $64 = HEAP32[(20964)>>2]|0;
  28607. _glBindBuffer(34962,($64|0));
  28608. $65 = HEAP32[(20944)>>2]|0;
  28609. _glBufferData(34962,73728,($65|0),35048);
  28610. $66 = HEAP32[(20984)>>2]|0;
  28611. _glEnableVertexAttribArray(($66|0));
  28612. $67 = HEAP32[(20984)>>2]|0;
  28613. _glVertexAttribPointer(($67|0),3,5126,0,0,(0|0));
  28614. _glGenBuffers(1,((20968)|0));
  28615. $68 = HEAP32[(20968)>>2]|0;
  28616. _glBindBuffer(34962,($68|0));
  28617. $69 = HEAP32[(20952)>>2]|0;
  28618. _glBufferData(34962,24576,($69|0),35048);
  28619. $70 = HEAP32[(21004)>>2]|0;
  28620. _glEnableVertexAttribArray(($70|0));
  28621. $71 = HEAP32[(21004)>>2]|0;
  28622. _glVertexAttribPointer(($71|0),4,5121,1,0,(0|0));
  28623. $72 = HEAP32[5259]|0;
  28624. $73 = ($72|0)==(0);
  28625. if ($73) {
  28626. $75 = HEAP32[(20964)>>2]|0;
  28627. $76 = HEAP32[(20968)>>2]|0;
  28628. HEAP32[$vararg_buffer10>>2] = $75;
  28629. $vararg_ptr13 = ((($vararg_buffer10)) + 4|0);
  28630. HEAP32[$vararg_ptr13>>2] = $76;
  28631. _TraceLog(0,11468,$vararg_buffer10);
  28632. } else {
  28633. $74 = HEAP32[(20960)>>2]|0;
  28634. HEAP32[$vararg_buffer7>>2] = $74;
  28635. _TraceLog(0,11399,$vararg_buffer7);
  28636. }
  28637. $77 = HEAP32[5259]|0;
  28638. $78 = ($77|0)==(0);
  28639. if (!($78)) {
  28640. $79 = HEAP32[5633]|0;
  28641. FUNCTION_TABLE_vii[$79 & 63](1,(20720));
  28642. $80 = HEAP32[5260]|0;
  28643. $81 = HEAP32[(20720)>>2]|0;
  28644. FUNCTION_TABLE_vi[$80 & 31]($81);
  28645. }
  28646. _glGenBuffers(1,((20724)|0));
  28647. $82 = HEAP32[(20724)>>2]|0;
  28648. _glBindBuffer(34962,($82|0));
  28649. $83 = HEAP32[(20704)>>2]|0;
  28650. _glBufferData(34962,49152,($83|0),35048);
  28651. $84 = HEAP32[(20984)>>2]|0;
  28652. _glEnableVertexAttribArray(($84|0));
  28653. $85 = HEAP32[(20984)>>2]|0;
  28654. _glVertexAttribPointer(($85|0),3,5126,0,0,(0|0));
  28655. _glGenBuffers(1,((20728)|0));
  28656. $86 = HEAP32[(20728)>>2]|0;
  28657. _glBindBuffer(34962,($86|0));
  28658. $87 = HEAP32[(20708)>>2]|0;
  28659. _glBufferData(34962,32768,($87|0),35048);
  28660. $88 = HEAP32[(20988)>>2]|0;
  28661. _glEnableVertexAttribArray(($88|0));
  28662. $89 = HEAP32[(20988)>>2]|0;
  28663. _glVertexAttribPointer(($89|0),2,5126,0,0,(0|0));
  28664. _glGenBuffers(1,((20732)|0));
  28665. $90 = HEAP32[(20732)>>2]|0;
  28666. _glBindBuffer(34962,($90|0));
  28667. $91 = HEAP32[(20712)>>2]|0;
  28668. _glBufferData(34962,16384,($91|0),35048);
  28669. $92 = HEAP32[(21004)>>2]|0;
  28670. _glEnableVertexAttribArray(($92|0));
  28671. $93 = HEAP32[(21004)>>2]|0;
  28672. _glVertexAttribPointer(($93|0),4,5121,1,0,(0|0));
  28673. _glGenBuffers(1,((20736)|0));
  28674. $94 = HEAP32[(20736)>>2]|0;
  28675. _glBindBuffer(34963,($94|0));
  28676. $95 = HEAP32[(20716)>>2]|0;
  28677. _glBufferData(34963,12288,($95|0),35044);
  28678. $96 = HEAP32[5259]|0;
  28679. $97 = ($96|0)==(0);
  28680. if ($97) {
  28681. $99 = HEAP32[(20724)>>2]|0;
  28682. $100 = HEAP32[(20728)>>2]|0;
  28683. $101 = HEAP32[(20732)>>2]|0;
  28684. $102 = HEAP32[(20736)>>2]|0;
  28685. HEAP32[$vararg_buffer17>>2] = $99;
  28686. $vararg_ptr20 = ((($vararg_buffer17)) + 4|0);
  28687. HEAP32[$vararg_ptr20>>2] = $100;
  28688. $vararg_ptr21 = ((($vararg_buffer17)) + 8|0);
  28689. HEAP32[$vararg_ptr21>>2] = $101;
  28690. $vararg_ptr22 = ((($vararg_buffer17)) + 12|0);
  28691. HEAP32[$vararg_ptr22>>2] = $102;
  28692. _TraceLog(0,11614,$vararg_buffer17);
  28693. } else {
  28694. $98 = HEAP32[(20720)>>2]|0;
  28695. HEAP32[$vararg_buffer14>>2] = $98;
  28696. _TraceLog(0,11549,$vararg_buffer14);
  28697. }
  28698. $103 = HEAP32[5259]|0;
  28699. $104 = ($103|0)==(0);
  28700. if ($104) {
  28701. STACKTOP = sp;return;
  28702. }
  28703. $105 = HEAP32[5260]|0;
  28704. FUNCTION_TABLE_vi[$105 & 31](0);
  28705. STACKTOP = sp;return;
  28706. }
  28707. function _LoadShaderProgram($0,$1) {
  28708. $0 = $0|0;
  28709. $1 = $1|0;
  28710. 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;
  28711. 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;
  28712. sp = STACKTOP;
  28713. STACKTOP = STACKTOP + 96|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(96|0);
  28714. $vararg_buffer22 = sp + 64|0;
  28715. $vararg_buffer19 = sp + 56|0;
  28716. $vararg_buffer16 = sp + 48|0;
  28717. $vararg_buffer13 = sp + 40|0;
  28718. $vararg_buffer10 = sp + 32|0;
  28719. $vararg_buffer7 = sp + 24|0;
  28720. $vararg_buffer4 = sp + 16|0;
  28721. $vararg_buffer1 = sp + 8|0;
  28722. $vararg_buffer = sp;
  28723. $2 = sp + 80|0;
  28724. $3 = sp + 76|0;
  28725. $4 = sp + 72|0;
  28726. $5 = sp + 68|0;
  28727. $6 = (_glCreateShader(35633)|0);
  28728. $7 = (_glCreateShader(35632)|0);
  28729. HEAP32[$2>>2] = $0;
  28730. HEAP32[$3>>2] = $1;
  28731. _glShaderSource(($6|0),1,($2|0),(0|0));
  28732. _glShaderSource(($7|0),1,($3|0),(0|0));
  28733. HEAP32[$4>>2] = 0;
  28734. _glCompileShader(($6|0));
  28735. _glGetShaderiv(($6|0),35713,($4|0));
  28736. $8 = HEAP32[$4>>2]|0;
  28737. $9 = ($8|0)==(1);
  28738. if ($9) {
  28739. HEAP32[$vararg_buffer4>>2] = $6;
  28740. _TraceLog(0,12947,$vararg_buffer4);
  28741. } else {
  28742. HEAP32[$vararg_buffer>>2] = $6;
  28743. _TraceLog(1,12895,$vararg_buffer);
  28744. HEAP32[$vararg_buffer>>2] = 0;
  28745. _glGetShaderiv(($6|0),35716,($vararg_buffer|0));
  28746. $10 = HEAP32[$vararg_buffer>>2]|0;
  28747. $11 = (_llvm_stacksave()|0);
  28748. $$alloca_mul = $10;
  28749. $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);;
  28750. $13 = HEAP32[$vararg_buffer>>2]|0;
  28751. _glGetShaderInfoLog(($6|0),($13|0),($5|0),($12|0));
  28752. HEAP32[$vararg_buffer1>>2] = $12;
  28753. _TraceLog(0,12944,$vararg_buffer1);
  28754. _llvm_stackrestore(($11|0));
  28755. }
  28756. _glCompileShader(($7|0));
  28757. _glGetShaderiv(($7|0),35713,($4|0));
  28758. $14 = HEAP32[$4>>2]|0;
  28759. $15 = ($14|0)==(1);
  28760. if ($15) {
  28761. HEAP32[$vararg_buffer13>>2] = $7;
  28762. _TraceLog(0,13048,$vararg_buffer13);
  28763. } else {
  28764. HEAP32[$vararg_buffer7>>2] = $7;
  28765. _TraceLog(1,12997,$vararg_buffer7);
  28766. HEAP32[$vararg_buffer7>>2] = 0;
  28767. _glGetShaderiv(($7|0),35716,($vararg_buffer7|0));
  28768. $16 = HEAP32[$vararg_buffer7>>2]|0;
  28769. $17 = (_llvm_stacksave()|0);
  28770. $$alloca_mul34 = $16;
  28771. $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);;
  28772. $19 = HEAP32[$vararg_buffer7>>2]|0;
  28773. _glGetShaderInfoLog(($7|0),($19|0),($5|0),($18|0));
  28774. HEAP32[$vararg_buffer10>>2] = $18;
  28775. _TraceLog(0,12944,$vararg_buffer10);
  28776. _llvm_stackrestore(($17|0));
  28777. }
  28778. $20 = (_glCreateProgram()|0);
  28779. _glAttachShader(($20|0),($6|0));
  28780. _glAttachShader(($20|0),($7|0));
  28781. _glBindAttribLocation(($20|0),0,(12739|0));
  28782. _glBindAttribLocation(($20|0),1,(12754|0));
  28783. _glBindAttribLocation(($20|0),2,(12785|0));
  28784. _glBindAttribLocation(($20|0),3,(12812|0));
  28785. _glBindAttribLocation(($20|0),4,(12798|0));
  28786. _glBindAttribLocation(($20|0),5,(12769|0));
  28787. _glLinkProgram(($20|0));
  28788. _glGetProgramiv(($20|0),35714,($4|0));
  28789. $21 = HEAP32[$4>>2]|0;
  28790. $22 = ($21|0)==(0);
  28791. if ($22) {
  28792. HEAP32[$vararg_buffer16>>2] = $20;
  28793. _TraceLog(1,13100,$vararg_buffer16);
  28794. HEAP32[$vararg_buffer16>>2] = 0;
  28795. _glGetProgramiv(($20|0),35716,($vararg_buffer16|0));
  28796. $23 = HEAP32[$vararg_buffer16>>2]|0;
  28797. $24 = (_llvm_stacksave()|0);
  28798. $$alloca_mul36 = $23;
  28799. $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);;
  28800. $26 = HEAP32[$vararg_buffer16>>2]|0;
  28801. _glGetProgramInfoLog(($20|0),($26|0),($5|0),($25|0));
  28802. HEAP32[$vararg_buffer19>>2] = $25;
  28803. _TraceLog(0,12944,$vararg_buffer19);
  28804. _glDeleteProgram(($20|0));
  28805. _llvm_stackrestore(($24|0));
  28806. $$0 = 0;
  28807. _glDeleteShader(($6|0));
  28808. _glDeleteShader(($7|0));
  28809. STACKTOP = sp;return ($$0|0);
  28810. } else {
  28811. HEAP32[$vararg_buffer22>>2] = $20;
  28812. _TraceLog(0,13146,$vararg_buffer22);
  28813. $$0 = $20;
  28814. _glDeleteShader(($6|0));
  28815. _glDeleteShader(($7|0));
  28816. STACKTOP = sp;return ($$0|0);
  28817. }
  28818. return (0)|0;
  28819. }
  28820. function _LoadDefaultShaderLocations($0) {
  28821. $0 = $0|0;
  28822. 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;
  28823. 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;
  28824. var sp = 0;
  28825. sp = STACKTOP;
  28826. $1 = HEAP32[$0>>2]|0;
  28827. $2 = (_glGetAttribLocation(($1|0),(12739|0))|0);
  28828. $3 = ((($0)) + 4|0);
  28829. HEAP32[$3>>2] = $2;
  28830. $4 = HEAP32[$0>>2]|0;
  28831. $5 = (_glGetAttribLocation(($4|0),(12754|0))|0);
  28832. $6 = ((($0)) + 8|0);
  28833. HEAP32[$6>>2] = $5;
  28834. $7 = HEAP32[$0>>2]|0;
  28835. $8 = (_glGetAttribLocation(($7|0),(12769|0))|0);
  28836. $9 = ((($0)) + 12|0);
  28837. HEAP32[$9>>2] = $8;
  28838. $10 = HEAP32[$0>>2]|0;
  28839. $11 = (_glGetAttribLocation(($10|0),(12785|0))|0);
  28840. $12 = ((($0)) + 16|0);
  28841. HEAP32[$12>>2] = $11;
  28842. $13 = HEAP32[$0>>2]|0;
  28843. $14 = (_glGetAttribLocation(($13|0),(12798|0))|0);
  28844. $15 = ((($0)) + 20|0);
  28845. HEAP32[$15>>2] = $14;
  28846. $16 = HEAP32[$0>>2]|0;
  28847. $17 = (_glGetAttribLocation(($16|0),(12812|0))|0);
  28848. $18 = ((($0)) + 24|0);
  28849. HEAP32[$18>>2] = $17;
  28850. $19 = HEAP32[$0>>2]|0;
  28851. $20 = (_glGetUniformLocation(($19|0),(12824|0))|0);
  28852. $21 = ((($0)) + 28|0);
  28853. HEAP32[$21>>2] = $20;
  28854. $22 = HEAP32[$0>>2]|0;
  28855. $23 = (_glGetUniformLocation(($22|0),(12834|0))|0);
  28856. $24 = ((($0)) + 32|0);
  28857. HEAP32[$24>>2] = $23;
  28858. $25 = HEAP32[$0>>2]|0;
  28859. $26 = (_glGetUniformLocation(($25|0),(12845|0))|0);
  28860. $27 = ((($0)) + 36|0);
  28861. HEAP32[$27>>2] = $26;
  28862. $28 = HEAP32[$0>>2]|0;
  28863. $29 = (_glGetUniformLocation(($28|0),(12856|0))|0);
  28864. $30 = ((($0)) + 40|0);
  28865. HEAP32[$30>>2] = $29;
  28866. $31 = HEAP32[$0>>2]|0;
  28867. $32 = (_glGetUniformLocation(($31|0),(12868|0))|0);
  28868. $33 = ((($0)) + 44|0);
  28869. HEAP32[$33>>2] = $32;
  28870. $34 = HEAP32[$0>>2]|0;
  28871. $35 = (_glGetUniformLocation(($34|0),(12877|0))|0);
  28872. $36 = ((($0)) + 48|0);
  28873. HEAP32[$36>>2] = $35;
  28874. $37 = HEAP32[$0>>2]|0;
  28875. $38 = (_glGetUniformLocation(($37|0),(12886|0))|0);
  28876. $39 = ((($0)) + 52|0);
  28877. HEAP32[$39>>2] = $38;
  28878. return;
  28879. }
  28880. function _IsMouseButtonPressed($0) {
  28881. $0 = $0|0;
  28882. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $or$cond = 0, label = 0, sp = 0;
  28883. sp = STACKTOP;
  28884. $1 = (23577 + ($0)|0);
  28885. $2 = HEAP8[$1>>0]|0;
  28886. $3 = (23580 + ($0)|0);
  28887. $4 = HEAP8[$3>>0]|0;
  28888. $5 = ($2<<24>>24)!=($4<<24>>24);
  28889. $6 = ($2<<24>>24)==(1);
  28890. $or$cond = $6 & $5;
  28891. $$0 = $or$cond&1;
  28892. return ($$0|0);
  28893. }
  28894. function _IsMouseButtonReleased($0) {
  28895. $0 = $0|0;
  28896. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $or$cond = 0, label = 0, sp = 0;
  28897. sp = STACKTOP;
  28898. $1 = (23577 + ($0)|0);
  28899. $2 = HEAP8[$1>>0]|0;
  28900. $3 = (23580 + ($0)|0);
  28901. $4 = HEAP8[$3>>0]|0;
  28902. $5 = ($2<<24>>24)!=($4<<24>>24);
  28903. $6 = ($2<<24>>24)==(0);
  28904. $or$cond = $6 & $5;
  28905. $$0 = $or$cond&1;
  28906. return ($$0|0);
  28907. }
  28908. function _rlClearScreenBuffers() {
  28909. var label = 0, sp = 0;
  28910. sp = STACKTOP;
  28911. _glClear(16640);
  28912. return;
  28913. }
  28914. function _CloseWindow() {
  28915. var $0 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  28916. sp = STACKTOP;
  28917. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  28918. $vararg_buffer = sp;
  28919. _UnloadDefaultFont();
  28920. _rlglClose();
  28921. $0 = HEAP32[5664]|0;
  28922. _glfwDestroyWindow(($0|0));
  28923. _glfwTerminate();
  28924. _TraceLog(0,13441,$vararg_buffer);
  28925. STACKTOP = sp;return;
  28926. }
  28927. function _rlglClose() {
  28928. var $0 = 0, $1 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  28929. sp = STACKTOP;
  28930. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  28931. $vararg_buffer = sp;
  28932. _UnloadDefaultShader();
  28933. _UnloadDefaultBuffers();
  28934. _glDeleteTextures(1,(20876|0));
  28935. $0 = HEAP32[5219]|0;
  28936. HEAP32[$vararg_buffer>>2] = $0;
  28937. _TraceLog(0,13468,$vararg_buffer);
  28938. $1 = HEAP32[5220]|0;
  28939. _free($1);
  28940. STACKTOP = sp;return;
  28941. }
  28942. function _UnloadDefaultShader() {
  28943. var $0 = 0, label = 0, sp = 0;
  28944. sp = STACKTOP;
  28945. _glUseProgram(0);
  28946. $0 = HEAP32[5634]|0;
  28947. _glDeleteProgram(($0|0));
  28948. return;
  28949. }
  28950. function _UnloadDefaultBuffers() {
  28951. 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;
  28952. sp = STACKTOP;
  28953. $0 = HEAP32[5259]|0;
  28954. $1 = ($0|0)==(0);
  28955. if (!($1)) {
  28956. $2 = HEAP32[5260]|0;
  28957. FUNCTION_TABLE_vi[$2 & 31](0);
  28958. }
  28959. _glDisableVertexAttribArray(0);
  28960. _glDisableVertexAttribArray(1);
  28961. _glDisableVertexAttribArray(2);
  28962. _glDisableVertexAttribArray(3);
  28963. _glBindBuffer(34962,0);
  28964. _glBindBuffer(34963,0);
  28965. _glDeleteBuffers(1,((20916)|0));
  28966. _glDeleteBuffers(1,((20920)|0));
  28967. _glDeleteBuffers(1,((20964)|0));
  28968. _glDeleteBuffers(1,((20968)|0));
  28969. _glDeleteBuffers(1,((20724)|0));
  28970. _glDeleteBuffers(1,((20728)|0));
  28971. _glDeleteBuffers(1,((20732)|0));
  28972. _glDeleteBuffers(1,((20736)|0));
  28973. $3 = HEAP32[5259]|0;
  28974. $4 = ($3|0)==(0);
  28975. if (!($4)) {
  28976. $5 = HEAP32[5648]|0;
  28977. FUNCTION_TABLE_vii[$5 & 63](1,(20912));
  28978. $6 = HEAP32[5648]|0;
  28979. FUNCTION_TABLE_vii[$6 & 63](1,(20960));
  28980. $7 = HEAP32[5648]|0;
  28981. FUNCTION_TABLE_vii[$7 & 63](1,(20720));
  28982. }
  28983. $8 = HEAP32[(20896)>>2]|0;
  28984. _free($8);
  28985. $9 = HEAP32[(20904)>>2]|0;
  28986. _free($9);
  28987. $10 = HEAP32[(20944)>>2]|0;
  28988. _free($10);
  28989. $11 = HEAP32[(20952)>>2]|0;
  28990. _free($11);
  28991. $12 = HEAP32[(20704)>>2]|0;
  28992. _free($12);
  28993. $13 = HEAP32[(20708)>>2]|0;
  28994. _free($13);
  28995. $14 = HEAP32[(20712)>>2]|0;
  28996. _free($14);
  28997. $15 = HEAP32[(20716)>>2]|0;
  28998. _free($15);
  28999. return;
  29000. }
  29001. function _BeginDrawing() {
  29002. var $0 = 0.0, $1 = 0.0, $2 = 0.0, $downscaleView$byval_copy = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  29003. sp = STACKTOP;
  29004. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  29005. $downscaleView$byval_copy = sp;
  29006. $0 = (+_GetTime());
  29007. HEAPF64[2445] = $0;
  29008. $1 = +HEAPF64[2444];
  29009. $2 = $0 - $1;
  29010. HEAPF64[2446] = $2;
  29011. HEAPF64[2444] = $0;
  29012. _rlClearScreenBuffers();
  29013. _rlLoadIdentity();
  29014. dest=$downscaleView$byval_copy; src=22696; 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));
  29015. (_MatrixToFloat($downscaleView$byval_copy)|0);
  29016. _rlMultMatrixf(21044);
  29017. STACKTOP = sp;return;
  29018. }
  29019. function _rlMultMatrixf($0) {
  29020. $0 = $0|0;
  29021. 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;
  29022. 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;
  29023. 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;
  29024. sp = STACKTOP;
  29025. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  29026. $$byval_copy1 = sp + 192|0;
  29027. $$byval_copy = sp + 128|0;
  29028. $1 = sp + 64|0;
  29029. $2 = sp;
  29030. $3 = HEAP32[$0>>2]|0;
  29031. HEAP32[$1>>2] = $3;
  29032. $4 = ((($1)) + 4|0);
  29033. $5 = ((($0)) + 4|0);
  29034. $6 = HEAP32[$5>>2]|0;
  29035. HEAP32[$4>>2] = $6;
  29036. $7 = ((($1)) + 8|0);
  29037. $8 = ((($0)) + 8|0);
  29038. $9 = HEAP32[$8>>2]|0;
  29039. HEAP32[$7>>2] = $9;
  29040. $10 = ((($1)) + 12|0);
  29041. $11 = ((($0)) + 12|0);
  29042. $12 = HEAP32[$11>>2]|0;
  29043. HEAP32[$10>>2] = $12;
  29044. $13 = ((($1)) + 16|0);
  29045. $14 = ((($0)) + 16|0);
  29046. $15 = HEAP32[$14>>2]|0;
  29047. HEAP32[$13>>2] = $15;
  29048. $16 = ((($1)) + 20|0);
  29049. $17 = ((($0)) + 20|0);
  29050. $18 = HEAP32[$17>>2]|0;
  29051. HEAP32[$16>>2] = $18;
  29052. $19 = ((($1)) + 24|0);
  29053. $20 = ((($0)) + 24|0);
  29054. $21 = HEAP32[$20>>2]|0;
  29055. HEAP32[$19>>2] = $21;
  29056. $22 = ((($1)) + 28|0);
  29057. $23 = ((($0)) + 28|0);
  29058. $24 = HEAP32[$23>>2]|0;
  29059. HEAP32[$22>>2] = $24;
  29060. $25 = ((($1)) + 32|0);
  29061. $26 = ((($0)) + 32|0);
  29062. $27 = HEAP32[$26>>2]|0;
  29063. HEAP32[$25>>2] = $27;
  29064. $28 = ((($1)) + 36|0);
  29065. $29 = ((($0)) + 36|0);
  29066. $30 = HEAP32[$29>>2]|0;
  29067. HEAP32[$28>>2] = $30;
  29068. $31 = ((($1)) + 40|0);
  29069. $32 = ((($0)) + 40|0);
  29070. $33 = HEAP32[$32>>2]|0;
  29071. HEAP32[$31>>2] = $33;
  29072. $34 = ((($1)) + 44|0);
  29073. $35 = ((($0)) + 44|0);
  29074. $36 = HEAP32[$35>>2]|0;
  29075. HEAP32[$34>>2] = $36;
  29076. $37 = ((($1)) + 48|0);
  29077. $38 = ((($0)) + 48|0);
  29078. $39 = HEAP32[$38>>2]|0;
  29079. HEAP32[$37>>2] = $39;
  29080. $40 = ((($1)) + 52|0);
  29081. $41 = ((($0)) + 52|0);
  29082. $42 = HEAP32[$41>>2]|0;
  29083. HEAP32[$40>>2] = $42;
  29084. $43 = ((($1)) + 56|0);
  29085. $44 = ((($0)) + 56|0);
  29086. $45 = HEAP32[$44>>2]|0;
  29087. HEAP32[$43>>2] = $45;
  29088. $46 = ((($1)) + 60|0);
  29089. $47 = ((($0)) + 60|0);
  29090. $48 = HEAP32[$47>>2]|0;
  29091. HEAP32[$46>>2] = $48;
  29092. $49 = HEAP32[5625]|0;
  29093. 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));
  29094. 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));
  29095. _MatrixMultiply($2,$$byval_copy,$$byval_copy1);
  29096. 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));
  29097. STACKTOP = sp;return;
  29098. }
  29099. function _EndDrawing() {
  29100. 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;
  29101. sp = STACKTOP;
  29102. _rlglDraw();
  29103. _SwapBuffers();
  29104. _PollInputEvents();
  29105. $0 = (+_GetTime());
  29106. HEAPF64[2445] = $0;
  29107. $1 = +HEAPF64[2444];
  29108. $2 = $0 - $1;
  29109. HEAPF64[2447] = $2;
  29110. HEAPF64[2444] = $0;
  29111. $3 = +HEAPF64[2446];
  29112. $4 = $2 + $3;
  29113. HEAPF64[2430] = $4;
  29114. $5 = +HEAPF64[2441];
  29115. $6 = $4 < $5;
  29116. if (!($6)) {
  29117. return;
  29118. }
  29119. $7 = $5 - $4;
  29120. $8 = $7 * 1000.0;
  29121. $9 = $8;
  29122. _Wait($9);
  29123. $10 = (+_GetTime());
  29124. HEAPF64[2445] = $10;
  29125. $11 = +HEAPF64[2444];
  29126. $12 = $10 - $11;
  29127. HEAPF64[2444] = $10;
  29128. $13 = +HEAPF64[2430];
  29129. $14 = $12 + $13;
  29130. HEAPF64[2430] = $14;
  29131. return;
  29132. }
  29133. function _SwapBuffers() {
  29134. var $0 = 0, label = 0, sp = 0;
  29135. sp = STACKTOP;
  29136. $0 = HEAP32[5664]|0;
  29137. _glfwSwapBuffers(($0|0));
  29138. return;
  29139. }
  29140. function _PollInputEvents() {
  29141. 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;
  29142. 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;
  29143. 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;
  29144. sp = STACKTOP;
  29145. STACKTOP = STACKTOP + 1456|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(1456|0);
  29146. $0 = sp + 1440|0;
  29147. $1 = sp + 1432|0;
  29148. $2 = sp;
  29149. _UpdateGestures();
  29150. HEAP32[939] = -1;
  29151. HEAP32[941] = -1;
  29152. HEAP32[5700] = 0;
  29153. $3 = HEAP32[5664]|0;
  29154. _glfwGetCursorPos(($3|0),($0|0),($1|0));
  29155. $4 = +HEAPF64[$0>>3];
  29156. $5 = $4;
  29157. HEAPF32[4880] = $5;
  29158. $6 = +HEAPF64[$1>>3];
  29159. $7 = $6;
  29160. HEAPF32[(19524)>>2] = $7;
  29161. _memcpy((24095|0),(23583|0),512)|0;
  29162. ;HEAP8[23580>>0]=HEAP8[23577>>0]|0;HEAP8[23580+1>>0]=HEAP8[23577+1>>0]|0;HEAP8[23580+2>>0]=HEAP8[23577+2>>0]|0;
  29163. $8 = HEAP32[5699]|0;
  29164. HEAP32[5665] = $8;
  29165. HEAP32[5699] = 0;
  29166. $9 = (_emscripten_get_num_gamepads()|0);
  29167. $10 = ($9|0)>(0);
  29168. if (!($10)) {
  29169. STACKTOP = sp;return;
  29170. }
  29171. $11 = ((($2)) + 12|0);
  29172. $12 = ((($2)) + 8|0);
  29173. $$05160 = 0;
  29174. while(1) {
  29175. $scevgep = (24607 + ($$05160<<5)|0);
  29176. $scevgep67 = (24735 + ($$05160<<5)|0);
  29177. 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));
  29178. $13 = (_emscripten_get_gamepad_status(($$05160|0),($2|0))|0);
  29179. $14 = ($13|0)==(0);
  29180. if ($14) {
  29181. $15 = HEAP32[$11>>2]|0;
  29182. $16 = ($15|0)>(0);
  29183. if ($16) {
  29184. $17 = HEAP32[$11>>2]|0;
  29185. $$04857 = 0;
  29186. while(1) {
  29187. $21 = (((($2)) + 1040|0) + ($$04857<<2)|0);
  29188. $22 = HEAP32[$21>>2]|0;
  29189. $23 = ($22|0)==(1);
  29190. $24 = ((24735 + ($$05160<<5)|0) + ($$04857)|0);
  29191. if ($23) {
  29192. HEAP8[$24>>0] = 1;
  29193. HEAP32[941] = $$04857;
  29194. } else {
  29195. HEAP8[$24>>0] = 0;
  29196. }
  29197. $25 = (($$04857) + 1)|0;
  29198. $26 = ($25|0)<($17|0);
  29199. $27 = ($25|0)<(32);
  29200. $28 = $27 & $26;
  29201. if ($28) {
  29202. $$04857 = $25;
  29203. } else {
  29204. break;
  29205. }
  29206. }
  29207. }
  29208. $18 = HEAP32[$12>>2]|0;
  29209. $19 = ($18|0)>(0);
  29210. if ($19) {
  29211. $20 = HEAP32[$12>>2]|0;
  29212. $$058 = 0;
  29213. while(1) {
  29214. $29 = (((($2)) + 16|0) + ($$058<<3)|0);
  29215. $30 = +HEAPF64[$29>>3];
  29216. $31 = $30;
  29217. $32 = ((22804 + ($$05160<<5)|0) + ($$058<<2)|0);
  29218. HEAPF32[$32>>2] = $31;
  29219. $33 = (($$058) + 1)|0;
  29220. $34 = ($33|0)<($20|0);
  29221. $35 = ($33|0)<(8);
  29222. $36 = $35 & $34;
  29223. if ($36) {
  29224. $$058 = $33;
  29225. } else {
  29226. $$lcssa = $20;
  29227. break;
  29228. }
  29229. }
  29230. } else {
  29231. $$lcssa = $18;
  29232. }
  29233. HEAP32[5700] = $$lcssa;
  29234. }
  29235. $37 = (($$05160) + 1)|0;
  29236. $38 = ($37|0)<($9|0);
  29237. $39 = ($37|0)<(4);
  29238. $40 = $38 & $39;
  29239. if ($40) {
  29240. $$05160 = $37;
  29241. } else {
  29242. break;
  29243. }
  29244. }
  29245. STACKTOP = sp;return;
  29246. }
  29247. function _Wait($0) {
  29248. $0 = +$0;
  29249. 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;
  29250. sp = STACKTOP;
  29251. $1 = (+_GetTime());
  29252. $2 = 0.0 - $1;
  29253. $3 = $0 / 1000.0;
  29254. $4 = $3;
  29255. $5 = $2 < $4;
  29256. if (!($5)) {
  29257. return;
  29258. }
  29259. while(1) {
  29260. $6 = (+_GetTime());
  29261. $7 = $6 - $1;
  29262. $8 = $7 < $4;
  29263. if (!($8)) {
  29264. break;
  29265. }
  29266. }
  29267. return;
  29268. }
  29269. function _Begin3dMode($0) {
  29270. $0 = $0|0;
  29271. 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;
  29272. var $8 = 0.0, $9 = 0.0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  29273. sp = STACKTOP;
  29274. STACKTOP = STACKTOP + 160|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(160|0);
  29275. $$byval_copy3 = sp + 88|0;
  29276. $$byval_copy1 = sp + 76|0;
  29277. $$byval_copy = sp + 64|0;
  29278. $1 = sp;
  29279. _rlglDraw();
  29280. _rlMatrixMode(5889);
  29281. _rlPushMatrix();
  29282. _rlLoadIdentity();
  29283. $2 = HEAP32[5667]|0;
  29284. $3 = (+($2|0));
  29285. $4 = HEAP32[5668]|0;
  29286. $5 = (+($4|0));
  29287. $6 = $3 / $5;
  29288. $7 = ((($0)) + 36|0);
  29289. $8 = +HEAPF32[$7>>2];
  29290. $9 = $8 * 3.1415927410125732;
  29291. $10 = $9;
  29292. $11 = $10 / 360.0;
  29293. $12 = (+Math_tan((+$11)));
  29294. $13 = $12 * 0.01;
  29295. $14 = $6;
  29296. $15 = $13 * $14;
  29297. $16 = -$15;
  29298. $17 = -$13;
  29299. _rlFrustum($16,$15,$17,$13,0.01,1000.0);
  29300. _rlMatrixMode(5888);
  29301. _rlLoadIdentity();
  29302. $18 = ((($0)) + 12|0);
  29303. $19 = ((($0)) + 24|0);
  29304. ;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;
  29305. ;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;
  29306. ;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;
  29307. _MatrixLookAt($1,$$byval_copy,$$byval_copy1,$$byval_copy3);
  29308. 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));
  29309. (_MatrixToFloat($$byval_copy3)|0);
  29310. _rlMultMatrixf(21044);
  29311. _rlEnableDepthTest();
  29312. STACKTOP = sp;return;
  29313. }
  29314. function _rlFrustum($0,$1,$2,$3,$4,$5) {
  29315. $0 = +$0;
  29316. $1 = +$1;
  29317. $2 = +$2;
  29318. $3 = +$3;
  29319. $4 = +$4;
  29320. $5 = +$5;
  29321. var $$byval_copy = 0, $$byval_copy1 = 0, $6 = 0, $7 = 0, $8 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  29322. sp = STACKTOP;
  29323. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  29324. $$byval_copy1 = sp + 192|0;
  29325. $$byval_copy = sp + 128|0;
  29326. $6 = sp + 64|0;
  29327. $7 = sp;
  29328. _MatrixFrustum($6,$0,$1,$2,$3,$4,$5);
  29329. _MatrixTranspose($6);
  29330. $8 = HEAP32[5625]|0;
  29331. 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));
  29332. 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));
  29333. _MatrixMultiply($7,$$byval_copy,$$byval_copy1);
  29334. 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));
  29335. STACKTOP = sp;return;
  29336. }
  29337. function _rlEnableDepthTest() {
  29338. var label = 0, sp = 0;
  29339. sp = STACKTOP;
  29340. _glEnable(2929);
  29341. return;
  29342. }
  29343. function _End3dMode() {
  29344. var label = 0, sp = 0;
  29345. sp = STACKTOP;
  29346. _rlglDraw();
  29347. _rlMatrixMode(5889);
  29348. _rlPopMatrix();
  29349. _rlMatrixMode(5888);
  29350. _rlLoadIdentity();
  29351. _rlDisableDepthTest();
  29352. return;
  29353. }
  29354. function _rlDisableDepthTest() {
  29355. var label = 0, sp = 0;
  29356. sp = STACKTOP;
  29357. _glDisable(2929);
  29358. return;
  29359. }
  29360. function _BeginTextureMode($0) {
  29361. $0 = $0|0;
  29362. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0.0, $7 = 0.0, label = 0, sp = 0;
  29363. sp = STACKTOP;
  29364. _rlglDraw();
  29365. $1 = HEAP32[$0>>2]|0;
  29366. _rlEnableRenderTexture($1);
  29367. _rlClearScreenBuffers();
  29368. $2 = ((($0)) + 8|0);
  29369. $3 = HEAP32[$2>>2]|0;
  29370. $4 = ((($0)) + 12|0);
  29371. $5 = HEAP32[$4>>2]|0;
  29372. _rlViewport(0,0,$3,$5);
  29373. _rlMatrixMode(5889);
  29374. _rlLoadIdentity();
  29375. $6 = (+($3|0));
  29376. $7 = (+($5|0));
  29377. _rlOrtho(0.0,$6,$7,0.0,0.0,1.0);
  29378. _rlMatrixMode(5888);
  29379. _rlLoadIdentity();
  29380. return;
  29381. }
  29382. function _rlEnableRenderTexture($0) {
  29383. $0 = $0|0;
  29384. var label = 0, sp = 0;
  29385. sp = STACKTOP;
  29386. _glBindFramebuffer(36160,($0|0));
  29387. return;
  29388. }
  29389. function _EndTextureMode() {
  29390. var $0 = 0, $1 = 0.0, $2 = 0, $3 = 0.0, label = 0, sp = 0;
  29391. sp = STACKTOP;
  29392. _rlglDraw();
  29393. _rlDisableRenderTexture();
  29394. _SetupViewport();
  29395. _rlMatrixMode(5889);
  29396. _rlLoadIdentity();
  29397. $0 = (_GetScreenWidth()|0);
  29398. $1 = (+($0|0));
  29399. $2 = (_GetScreenHeight()|0);
  29400. $3 = (+($2|0));
  29401. _rlOrtho(0.0,$1,$3,0.0,0.0,1.0);
  29402. _rlMatrixMode(5888);
  29403. _rlLoadIdentity();
  29404. return;
  29405. }
  29406. function _rlDisableRenderTexture() {
  29407. var label = 0, sp = 0;
  29408. sp = STACKTOP;
  29409. _glBindFramebuffer(36160,0);
  29410. return;
  29411. }
  29412. function _Fade($0,$1,$2) {
  29413. $0 = $0|0;
  29414. $1 = $1|0;
  29415. $2 = +$2;
  29416. var $$0 = 0.0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0.0, $8 = 0.0, $9 = 0, label = 0, sp = 0;
  29417. sp = STACKTOP;
  29418. $3 = $2 < 0.0;
  29419. if ($3) {
  29420. $$0 = 0.0;
  29421. } else {
  29422. $4 = $2 > 1.0;
  29423. if ($4) {
  29424. $$0 = 1.0;
  29425. } else {
  29426. $$0 = $2;
  29427. }
  29428. }
  29429. $5 = ((($1)) + 3|0);
  29430. $6 = HEAP8[$5>>0]|0;
  29431. $7 = (+($6&255));
  29432. $8 = $$0 * $7;
  29433. $9 = HEAP8[$1>>0]|0;
  29434. HEAP8[$0>>0] = $9;
  29435. $10 = ((($0)) + 1|0);
  29436. $11 = ((($1)) + 1|0);
  29437. $12 = HEAP8[$11>>0]|0;
  29438. HEAP8[$10>>0] = $12;
  29439. $13 = ((($0)) + 2|0);
  29440. $14 = ((($1)) + 2|0);
  29441. $15 = HEAP8[$14>>0]|0;
  29442. HEAP8[$13>>0] = $15;
  29443. $16 = ((($0)) + 3|0);
  29444. $17 = (~~(($8))&255);
  29445. HEAP8[$16>>0] = $17;
  29446. return;
  29447. }
  29448. function _SetConfigFlags($0) {
  29449. $0 = $0|0;
  29450. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  29451. sp = STACKTOP;
  29452. HEAP8[23576] = $0;
  29453. $1 = $0 & 1;
  29454. $2 = ($1<<24>>24)==(0);
  29455. if (!($2)) {
  29456. HEAP32[5669] = 1;
  29457. }
  29458. $3 = HEAP8[23576]|0;
  29459. $4 = $3 & 2;
  29460. $5 = ($4<<24>>24)==(0);
  29461. if ($5) {
  29462. return;
  29463. }
  29464. HEAP32[5692] = 1;
  29465. return;
  29466. }
  29467. function _IsKeyPressed($0) {
  29468. $0 = $0|0;
  29469. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $or$cond = 0, label = 0, sp = 0;
  29470. sp = STACKTOP;
  29471. $1 = (23583 + ($0)|0);
  29472. $2 = HEAP8[$1>>0]|0;
  29473. $3 = (24095 + ($0)|0);
  29474. $4 = HEAP8[$3>>0]|0;
  29475. $5 = ($2<<24>>24)!=($4<<24>>24);
  29476. $6 = ($2<<24>>24)==(1);
  29477. $or$cond = $6 & $5;
  29478. $$0 = $or$cond&1;
  29479. return ($$0|0);
  29480. }
  29481. function _rlDeleteShader($0) {
  29482. $0 = $0|0;
  29483. var $1 = 0, label = 0, sp = 0;
  29484. sp = STACKTOP;
  29485. $1 = ($0|0)==(0);
  29486. if ($1) {
  29487. return;
  29488. }
  29489. _glDeleteProgram(($0|0));
  29490. return;
  29491. }
  29492. function _LoadText($0) {
  29493. $0 = $0|0;
  29494. 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;
  29495. sp = STACKTOP;
  29496. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  29497. $vararg_buffer = sp;
  29498. $1 = ($0|0)==(0|0);
  29499. if ($1) {
  29500. $$1 = 0;
  29501. STACKTOP = sp;return ($$1|0);
  29502. }
  29503. $2 = (_fopen($0,13533)|0);
  29504. $3 = ($2|0)==(0|0);
  29505. if ($3) {
  29506. HEAP32[$vararg_buffer>>2] = $0;
  29507. _TraceLog(1,13536,$vararg_buffer);
  29508. $$1 = 0;
  29509. STACKTOP = sp;return ($$1|0);
  29510. }
  29511. (_fseek($2,0,2)|0);
  29512. $4 = (_ftell($2)|0);
  29513. _rewind($2);
  29514. $5 = ($4|0)>(0);
  29515. if ($5) {
  29516. $6 = (($4) + 1)|0;
  29517. $7 = (_malloc($6)|0);
  29518. $8 = (_fread($7,1,$4,$2)|0);
  29519. $9 = (($7) + ($8)|0);
  29520. HEAP8[$9>>0] = 0;
  29521. $$0 = $7;
  29522. } else {
  29523. $$0 = 0;
  29524. }
  29525. (_fclose($2)|0);
  29526. $$1 = $$0;
  29527. STACKTOP = sp;return ($$1|0);
  29528. }
  29529. function _LoadShader($0,$1,$2) {
  29530. $0 = $0|0;
  29531. $1 = $1|0;
  29532. $2 = $2|0;
  29533. 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;
  29534. sp = STACKTOP;
  29535. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  29536. $vararg_buffer = sp;
  29537. $3 = sp + 8|0;
  29538. dest=$3; stop=dest+56|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  29539. $4 = (_LoadText($1)|0);
  29540. $5 = (_LoadText($2)|0);
  29541. $6 = ($4|0)!=(0|0);
  29542. $7 = ($5|0)!=(0|0);
  29543. $or$cond = $6 & $7;
  29544. if ($or$cond) {
  29545. $8 = (_LoadShaderProgram($4,$5)|0);
  29546. HEAP32[$3>>2] = $8;
  29547. $9 = ($8|0)==(0);
  29548. if (!($9)) {
  29549. _LoadDefaultShaderLocations($3);
  29550. }
  29551. _free($4);
  29552. _free($5);
  29553. }
  29554. $10 = HEAP32[$3>>2]|0;
  29555. $11 = ($10|0)==(0);
  29556. if ($11) {
  29557. _TraceLog(1,13571,$vararg_buffer);
  29558. dest=$3; src=22536; 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));
  29559. }
  29560. 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));
  29561. STACKTOP = sp;return;
  29562. }
  29563. function _UnloadShader($0) {
  29564. $0 = $0|0;
  29565. var $1 = 0, $2 = 0, $3 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  29566. sp = STACKTOP;
  29567. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  29568. $vararg_buffer = sp;
  29569. $1 = HEAP32[$0>>2]|0;
  29570. $2 = ($1|0)==(0);
  29571. if ($2) {
  29572. STACKTOP = sp;return;
  29573. }
  29574. _rlDeleteShader($1);
  29575. $3 = HEAP32[$0>>2]|0;
  29576. HEAP32[$vararg_buffer>>2] = $3;
  29577. _TraceLog(0,13605,$vararg_buffer);
  29578. STACKTOP = sp;return;
  29579. }
  29580. function _BeginShaderMode($0) {
  29581. $0 = $0|0;
  29582. var $1 = 0, $2 = 0, $3 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  29583. sp = STACKTOP;
  29584. $1 = HEAP32[5245]|0;
  29585. $2 = HEAP32[$0>>2]|0;
  29586. $3 = ($1|0)==($2|0);
  29587. if ($3) {
  29588. return;
  29589. }
  29590. _rlglDraw();
  29591. dest=20980; 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));
  29592. return;
  29593. }
  29594. function _EndShaderMode() {
  29595. var $defaultShader$byval_copy = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  29596. sp = STACKTOP;
  29597. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  29598. $defaultShader$byval_copy = sp;
  29599. dest=$defaultShader$byval_copy; src=22536; 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));
  29600. _BeginShaderMode($defaultShader$byval_copy);
  29601. STACKTOP = sp;return;
  29602. }
  29603. function _emscripten_GetProcAddress($0) {
  29604. $0 = $0|0;
  29605. 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;
  29606. 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;
  29607. 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;
  29608. 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;
  29609. 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;
  29610. 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;
  29611. 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;
  29612. 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;
  29613. 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;
  29614. 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;
  29615. 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;
  29616. 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;
  29617. 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;
  29618. 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;
  29619. 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;
  29620. 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;
  29621. 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;
  29622. 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;
  29623. 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;
  29624. 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;
  29625. 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;
  29626. 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;
  29627. 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;
  29628. 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;
  29629. 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;
  29630. 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;
  29631. 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;
  29632. 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;
  29633. sp = STACKTOP;
  29634. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  29635. $1 = sp + 12|0;
  29636. $2 = sp + 8|0;
  29637. $3 = sp + 4|0;
  29638. $4 = sp;
  29639. HEAP32[$2>>2] = $0;
  29640. $5 = HEAP32[$2>>2]|0;
  29641. $6 = (_strlen($5)|0);
  29642. $7 = (($6) + 1)|0;
  29643. $8 = (_malloc($7)|0);
  29644. HEAP32[$3>>2] = $8;
  29645. $9 = HEAP32[$3>>2]|0;
  29646. $10 = HEAP32[$2>>2]|0;
  29647. (_strcpy($9,$10)|0);
  29648. $11 = HEAP32[$3>>2]|0;
  29649. $12 = (_strstr($11,13647)|0);
  29650. HEAP32[$4>>2] = $12;
  29651. $13 = HEAP32[$4>>2]|0;
  29652. $14 = ($13|0)!=(0|0);
  29653. if ($14) {
  29654. $15 = HEAP32[$4>>2]|0;
  29655. HEAP8[$15>>0] = 0;
  29656. }
  29657. $16 = HEAP32[$3>>2]|0;
  29658. $17 = (_strstr($16,13651)|0);
  29659. HEAP32[$4>>2] = $17;
  29660. $18 = HEAP32[$4>>2]|0;
  29661. $19 = ($18|0)!=(0|0);
  29662. if ($19) {
  29663. $20 = HEAP32[$4>>2]|0;
  29664. HEAP8[$20>>0] = 0;
  29665. }
  29666. $21 = HEAP32[$3>>2]|0;
  29667. $22 = (_strstr($21,13655)|0);
  29668. HEAP32[$4>>2] = $22;
  29669. $23 = HEAP32[$4>>2]|0;
  29670. $24 = ($23|0)!=(0|0);
  29671. if ($24) {
  29672. $25 = HEAP32[$4>>2]|0;
  29673. HEAP8[$25>>0] = 0;
  29674. }
  29675. $26 = HEAP32[$3>>2]|0;
  29676. $27 = (_strstr($26,13659)|0);
  29677. HEAP32[$4>>2] = $27;
  29678. $28 = HEAP32[$4>>2]|0;
  29679. $29 = ($28|0)!=(0|0);
  29680. if ($29) {
  29681. $30 = HEAP32[$4>>2]|0;
  29682. HEAP8[$30>>0] = 0;
  29683. }
  29684. $31 = HEAP32[$3>>2]|0;
  29685. $32 = (_strcmp($31,13665)|0);
  29686. $33 = ($32|0)!=(0);
  29687. do {
  29688. if ($33) {
  29689. $34 = HEAP32[$3>>2]|0;
  29690. $35 = (_strcmp($34,13703)|0);
  29691. $36 = ($35|0)!=(0);
  29692. if (!($36)) {
  29693. HEAP32[$3>>2] = 13722;
  29694. break;
  29695. }
  29696. $37 = HEAP32[$3>>2]|0;
  29697. $38 = (_strcmp($37,13735)|0);
  29698. $39 = ($38|0)!=(0);
  29699. if (!($39)) {
  29700. HEAP32[$3>>2] = 13756;
  29701. break;
  29702. }
  29703. $40 = HEAP32[$3>>2]|0;
  29704. $41 = (_strcmp($40,13771)|0);
  29705. $42 = ($41|0)!=(0);
  29706. if (!($42)) {
  29707. HEAP32[$3>>2] = 13786;
  29708. break;
  29709. }
  29710. $43 = HEAP32[$3>>2]|0;
  29711. $44 = (_strcmp($43,13801)|0);
  29712. $45 = ($44|0)!=(0);
  29713. if (!($45)) {
  29714. HEAP32[$3>>2] = 13816;
  29715. }
  29716. } else {
  29717. HEAP32[$3>>2] = 13687;
  29718. }
  29719. } while(0);
  29720. $46 = HEAP32[$3>>2]|0;
  29721. $47 = (_strcmp($46,13831)|0);
  29722. $48 = ($47|0)!=(0);
  29723. do {
  29724. if ($48) {
  29725. $49 = HEAP32[$3>>2]|0;
  29726. $50 = (_strcmp($49,13845)|0);
  29727. $51 = ($50|0)!=(0);
  29728. if (!($51)) {
  29729. HEAP32[$1>>2] = 3;
  29730. break;
  29731. }
  29732. $52 = HEAP32[$3>>2]|0;
  29733. $53 = (_strcmp($52,13857)|0);
  29734. $54 = ($53|0)!=(0);
  29735. if (!($54)) {
  29736. HEAP32[$1>>2] = 7;
  29737. break;
  29738. }
  29739. $55 = HEAP32[$3>>2]|0;
  29740. $56 = (_strcmp($55,13871)|0);
  29741. $57 = ($56|0)!=(0);
  29742. if (!($57)) {
  29743. HEAP32[$1>>2] = 8;
  29744. break;
  29745. }
  29746. $58 = HEAP32[$3>>2]|0;
  29747. $59 = (_strcmp($58,13883)|0);
  29748. $60 = ($59|0)!=(0);
  29749. if (!($60)) {
  29750. HEAP32[$1>>2] = 9;
  29751. break;
  29752. }
  29753. $61 = HEAP32[$3>>2]|0;
  29754. $62 = (_strcmp($61,13897)|0);
  29755. $63 = ($62|0)!=(0);
  29756. if (!($63)) {
  29757. HEAP32[$1>>2] = 10;
  29758. break;
  29759. }
  29760. $64 = HEAP32[$3>>2]|0;
  29761. $65 = (_strcmp($64,13911)|0);
  29762. $66 = ($65|0)!=(0);
  29763. if (!($66)) {
  29764. HEAP32[$1>>2] = 11;
  29765. break;
  29766. }
  29767. $67 = HEAP32[$3>>2]|0;
  29768. $68 = (_strcmp($67,13928)|0);
  29769. $69 = ($68|0)!=(0);
  29770. if (!($69)) {
  29771. HEAP32[$1>>2] = 1;
  29772. break;
  29773. }
  29774. $70 = HEAP32[$3>>2]|0;
  29775. $71 = (_strcmp($70,13951)|0);
  29776. $72 = ($71|0)!=(0);
  29777. if (!($72)) {
  29778. HEAP32[$1>>2] = 1;
  29779. break;
  29780. }
  29781. $73 = HEAP32[$3>>2]|0;
  29782. $74 = (_strcmp($73,13977)|0);
  29783. $75 = ($74|0)!=(0);
  29784. if (!($75)) {
  29785. HEAP32[$1>>2] = 2;
  29786. break;
  29787. }
  29788. $76 = HEAP32[$3>>2]|0;
  29789. $77 = (_strcmp($76,13990)|0);
  29790. $78 = ($77|0)!=(0);
  29791. if (!($78)) {
  29792. HEAP32[$1>>2] = 3;
  29793. break;
  29794. }
  29795. $79 = HEAP32[$3>>2]|0;
  29796. $80 = (_strcmp($79,14006)|0);
  29797. $81 = ($80|0)!=(0);
  29798. if (!($81)) {
  29799. HEAP32[$1>>2] = 1;
  29800. break;
  29801. }
  29802. $82 = HEAP32[$3>>2]|0;
  29803. $83 = (_strcmp($82,14019)|0);
  29804. $84 = ($83|0)!=(0);
  29805. if (!($84)) {
  29806. HEAP32[$1>>2] = 12;
  29807. break;
  29808. }
  29809. $85 = HEAP32[$3>>2]|0;
  29810. $86 = (_strcmp($85,14033)|0);
  29811. $87 = ($86|0)!=(0);
  29812. if (!($87)) {
  29813. HEAP32[$1>>2] = 2;
  29814. break;
  29815. }
  29816. $88 = HEAP32[$3>>2]|0;
  29817. $89 = (_strcmp($88,14053)|0);
  29818. $90 = ($89|0)!=(0);
  29819. if (!($90)) {
  29820. HEAP32[$1>>2] = 3;
  29821. break;
  29822. }
  29823. $91 = HEAP32[$3>>2]|0;
  29824. $92 = (_strcmp($91,14073)|0);
  29825. $93 = ($92|0)!=(0);
  29826. if (!($93)) {
  29827. HEAP32[$1>>2] = 4;
  29828. break;
  29829. }
  29830. $94 = HEAP32[$3>>2]|0;
  29831. $95 = (_strcmp($94,14090)|0);
  29832. $96 = ($95|0)!=(0);
  29833. if (!($96)) {
  29834. HEAP32[$1>>2] = 5;
  29835. break;
  29836. }
  29837. $97 = HEAP32[$3>>2]|0;
  29838. $98 = (_strcmp($97,14107)|0);
  29839. $99 = ($98|0)!=(0);
  29840. if (!($99)) {
  29841. HEAP32[$1>>2] = 4;
  29842. break;
  29843. }
  29844. $100 = HEAP32[$3>>2]|0;
  29845. $101 = (_strcmp($100,14119)|0);
  29846. $102 = ($101|0)!=(0);
  29847. if (!($102)) {
  29848. HEAP32[$1>>2] = 13;
  29849. break;
  29850. }
  29851. $103 = HEAP32[$3>>2]|0;
  29852. $104 = (_strcmp($103,14132)|0);
  29853. $105 = ($104|0)!=(0);
  29854. if (!($105)) {
  29855. HEAP32[$1>>2] = 14;
  29856. break;
  29857. }
  29858. $106 = HEAP32[$3>>2]|0;
  29859. $107 = (_strcmp($106,14148)|0);
  29860. $108 = ($107|0)!=(0);
  29861. if (!($108)) {
  29862. HEAP32[$1>>2] = 6;
  29863. break;
  29864. }
  29865. $109 = HEAP32[$3>>2]|0;
  29866. $110 = (_strcmp($109,14171)|0);
  29867. $111 = ($110|0)!=(0);
  29868. if (!($111)) {
  29869. HEAP32[$1>>2] = 2;
  29870. break;
  29871. }
  29872. $112 = HEAP32[$3>>2]|0;
  29873. $113 = (_strcmp($112,14184)|0);
  29874. $114 = ($113|0)!=(0);
  29875. if (!($114)) {
  29876. HEAP32[$1>>2] = 3;
  29877. break;
  29878. }
  29879. $115 = HEAP32[$3>>2]|0;
  29880. $116 = (_strcmp($115,14200)|0);
  29881. $117 = ($116|0)!=(0);
  29882. if (!($117)) {
  29883. HEAP32[$1>>2] = 5;
  29884. break;
  29885. }
  29886. $118 = HEAP32[$3>>2]|0;
  29887. $119 = (_strcmp($118,14211)|0);
  29888. $120 = ($119|0)!=(0);
  29889. if (!($120)) {
  29890. HEAP32[$1>>2] = 15;
  29891. break;
  29892. }
  29893. $121 = HEAP32[$3>>2]|0;
  29894. $122 = (_strcmp($121,14230)|0);
  29895. $123 = ($122|0)!=(0);
  29896. if (!($123)) {
  29897. HEAP32[$1>>2] = 16;
  29898. break;
  29899. }
  29900. $124 = HEAP32[$3>>2]|0;
  29901. $125 = (_strcmp($124,14252)|0);
  29902. $126 = ($125|0)!=(0);
  29903. if (!($126)) {
  29904. HEAP32[$1>>2] = 17;
  29905. break;
  29906. }
  29907. $127 = HEAP32[$3>>2]|0;
  29908. $128 = (_strcmp($127,14271)|0);
  29909. $129 = ($128|0)!=(0);
  29910. if (!($129)) {
  29911. HEAP32[$1>>2] = 7;
  29912. break;
  29913. }
  29914. $130 = HEAP32[$3>>2]|0;
  29915. $131 = (_strcmp($130,14300)|0);
  29916. $132 = ($131|0)!=(0);
  29917. if (!($132)) {
  29918. HEAP32[$1>>2] = 6;
  29919. break;
  29920. }
  29921. $133 = HEAP32[$3>>2]|0;
  29922. $134 = (_strcmp($133,14317)|0);
  29923. $135 = ($134|0)!=(0);
  29924. if (!($135)) {
  29925. HEAP32[$1>>2] = 8;
  29926. break;
  29927. }
  29928. $136 = HEAP32[$3>>2]|0;
  29929. $137 = (_strcmp($136,14332)|0);
  29930. $138 = ($137|0)!=(0);
  29931. if (!($138)) {
  29932. HEAP32[$1>>2] = 9;
  29933. break;
  29934. }
  29935. $139 = HEAP32[$3>>2]|0;
  29936. $140 = (_strcmp($139,14347)|0);
  29937. $141 = ($140|0)!=(0);
  29938. if (!($141)) {
  29939. HEAP32[$1>>2] = 1;
  29940. break;
  29941. }
  29942. $142 = HEAP32[$3>>2]|0;
  29943. $143 = (_strcmp($142,14368)|0);
  29944. $144 = ($143|0)!=(0);
  29945. if (!($144)) {
  29946. HEAP32[$1>>2] = 10;
  29947. break;
  29948. }
  29949. $145 = HEAP32[$3>>2]|0;
  29950. $146 = (_strcmp($145,14388)|0);
  29951. $147 = ($146|0)!=(0);
  29952. if (!($147)) {
  29953. HEAP32[$1>>2] = 11;
  29954. break;
  29955. }
  29956. $148 = HEAP32[$3>>2]|0;
  29957. $149 = (_strcmp($148,14408)|0);
  29958. $150 = ($149|0)!=(0);
  29959. if (!($150)) {
  29960. HEAP32[$1>>2] = 12;
  29961. break;
  29962. }
  29963. $151 = HEAP32[$3>>2]|0;
  29964. $152 = (_strcmp($151,14434)|0);
  29965. $153 = ($152|0)!=(0);
  29966. if (!($153)) {
  29967. HEAP32[$1>>2] = 2;
  29968. break;
  29969. }
  29970. $154 = HEAP32[$3>>2]|0;
  29971. $155 = (_strcmp($154,14453)|0);
  29972. $156 = ($155|0)!=(0);
  29973. if (!($156)) {
  29974. HEAP32[$1>>2] = 1;
  29975. break;
  29976. }
  29977. $157 = HEAP32[$3>>2]|0;
  29978. $158 = (_strcmp($157,14465)|0);
  29979. $159 = ($158|0)!=(0);
  29980. if (!($159)) {
  29981. HEAP32[$1>>2] = 3;
  29982. break;
  29983. }
  29984. $160 = HEAP32[$3>>2]|0;
  29985. $161 = (_strcmp($160,14477)|0);
  29986. $162 = ($161|0)!=(0);
  29987. if (!($162)) {
  29988. HEAP32[$1>>2] = 1;
  29989. break;
  29990. }
  29991. $163 = HEAP32[$3>>2]|0;
  29992. $164 = (_strcmp($163,14489)|0);
  29993. $165 = ($164|0)!=(0);
  29994. if (!($165)) {
  29995. HEAP32[$1>>2] = 1;
  29996. break;
  29997. }
  29998. $166 = HEAP32[$3>>2]|0;
  29999. $167 = (_strcmp($166,14501)|0);
  30000. $168 = ($167|0)!=(0);
  30001. if (!($168)) {
  30002. HEAP32[$1>>2] = 18;
  30003. break;
  30004. }
  30005. $169 = HEAP32[$3>>2]|0;
  30006. $170 = (_strcmp($169,14513)|0);
  30007. $171 = ($170|0)!=(0);
  30008. if (!($171)) {
  30009. HEAP32[$1>>2] = 13;
  30010. break;
  30011. }
  30012. $172 = HEAP32[$3>>2]|0;
  30013. $173 = (_strcmp($172,14525)|0);
  30014. $174 = ($173|0)!=(0);
  30015. if (!($174)) {
  30016. HEAP32[$1>>2] = 4;
  30017. break;
  30018. }
  30019. $175 = HEAP32[$3>>2]|0;
  30020. $176 = (_strcmp($175,14537)|0);
  30021. $177 = ($176|0)!=(0);
  30022. if (!($177)) {
  30023. HEAP32[$1>>2] = 2;
  30024. break;
  30025. }
  30026. $178 = HEAP32[$3>>2]|0;
  30027. $179 = (_strcmp($178,14549)|0);
  30028. $180 = ($179|0)!=(0);
  30029. if (!($180)) {
  30030. HEAP32[$1>>2] = 14;
  30031. break;
  30032. }
  30033. $181 = HEAP32[$3>>2]|0;
  30034. $182 = (_strcmp($181,14562)|0);
  30035. $183 = ($182|0)!=(0);
  30036. if (!($183)) {
  30037. HEAP32[$1>>2] = 15;
  30038. break;
  30039. }
  30040. $184 = HEAP32[$3>>2]|0;
  30041. $185 = (_strcmp($184,14575)|0);
  30042. $186 = ($185|0)!=(0);
  30043. if (!($186)) {
  30044. HEAP32[$1>>2] = 16;
  30045. break;
  30046. }
  30047. $187 = HEAP32[$3>>2]|0;
  30048. $188 = (_strcmp($187,14588)|0);
  30049. $189 = ($188|0)!=(0);
  30050. if (!($189)) {
  30051. HEAP32[$1>>2] = 17;
  30052. break;
  30053. }
  30054. $190 = HEAP32[$3>>2]|0;
  30055. $191 = (_strcmp($190,14601)|0);
  30056. $192 = ($191|0)!=(0);
  30057. if (!($192)) {
  30058. HEAP32[$1>>2] = 18;
  30059. break;
  30060. }
  30061. $193 = HEAP32[$3>>2]|0;
  30062. $194 = (_strcmp($193,14614)|0);
  30063. $195 = ($194|0)!=(0);
  30064. if (!($195)) {
  30065. HEAP32[$1>>2] = 19;
  30066. break;
  30067. }
  30068. $196 = HEAP32[$3>>2]|0;
  30069. $197 = (_strcmp($196,14627)|0);
  30070. $198 = ($197|0)!=(0);
  30071. if (!($198)) {
  30072. HEAP32[$1>>2] = 20;
  30073. break;
  30074. }
  30075. $199 = HEAP32[$3>>2]|0;
  30076. $200 = (_strcmp($199,14640)|0);
  30077. $201 = ($200|0)!=(0);
  30078. if (!($201)) {
  30079. HEAP32[$1>>2] = 21;
  30080. break;
  30081. }
  30082. $202 = HEAP32[$3>>2]|0;
  30083. $203 = (_strcmp($202,14653)|0);
  30084. $204 = ($203|0)!=(0);
  30085. if (!($204)) {
  30086. HEAP32[$1>>2] = 5;
  30087. break;
  30088. }
  30089. $205 = HEAP32[$3>>2]|0;
  30090. $206 = (_strcmp($205,14672)|0);
  30091. $207 = ($206|0)!=(0);
  30092. if (!($207)) {
  30093. HEAP32[$1>>2] = 6;
  30094. break;
  30095. }
  30096. $208 = HEAP32[$3>>2]|0;
  30097. $209 = (_strcmp($208,14691)|0);
  30098. $210 = ($209|0)!=(0);
  30099. if (!($210)) {
  30100. HEAP32[$1>>2] = 7;
  30101. break;
  30102. }
  30103. $211 = HEAP32[$3>>2]|0;
  30104. $212 = (_strcmp($211,14710)|0);
  30105. $213 = ($212|0)!=(0);
  30106. if (!($213)) {
  30107. HEAP32[$1>>2] = 19;
  30108. break;
  30109. }
  30110. $214 = HEAP32[$3>>2]|0;
  30111. $215 = (_strcmp($214,14723)|0);
  30112. $216 = ($215|0)!=(0);
  30113. if (!($216)) {
  30114. HEAP32[$1>>2] = 20;
  30115. break;
  30116. }
  30117. $217 = HEAP32[$3>>2]|0;
  30118. $218 = (_strcmp($217,14741)|0);
  30119. $219 = ($218|0)!=(0);
  30120. if (!($219)) {
  30121. HEAP32[$1>>2] = 21;
  30122. break;
  30123. }
  30124. $220 = HEAP32[$3>>2]|0;
  30125. $221 = (_strcmp($220,14759)|0);
  30126. $222 = ($221|0)!=(0);
  30127. if (!($222)) {
  30128. HEAP32[$1>>2] = 22;
  30129. break;
  30130. }
  30131. $223 = HEAP32[$3>>2]|0;
  30132. $224 = (_strcmp($223,14777)|0);
  30133. $225 = ($224|0)!=(0);
  30134. if (!($225)) {
  30135. HEAP32[$1>>2] = 23;
  30136. break;
  30137. }
  30138. $226 = HEAP32[$3>>2]|0;
  30139. $227 = (_strcmp($226,14795)|0);
  30140. $228 = ($227|0)!=(0);
  30141. if (!($228)) {
  30142. HEAP32[$1>>2] = 2;
  30143. break;
  30144. }
  30145. $229 = HEAP32[$3>>2]|0;
  30146. $230 = (_strcmp($229,14815)|0);
  30147. $231 = ($230|0)!=(0);
  30148. if (!($231)) {
  30149. HEAP32[$1>>2] = 3;
  30150. break;
  30151. }
  30152. $232 = HEAP32[$3>>2]|0;
  30153. $233 = (_strcmp($232,13756)|0);
  30154. $234 = ($233|0)!=(0);
  30155. if (!($234)) {
  30156. HEAP32[$1>>2] = 7;
  30157. break;
  30158. }
  30159. $235 = HEAP32[$3>>2]|0;
  30160. $236 = (_strcmp($235,14833)|0);
  30161. $237 = ($236|0)!=(0);
  30162. if (!($237)) {
  30163. HEAP32[$1>>2] = 1;
  30164. break;
  30165. }
  30166. $238 = HEAP32[$3>>2]|0;
  30167. $239 = (_strcmp($238,14848)|0);
  30168. $240 = ($239|0)!=(0);
  30169. if (!($240)) {
  30170. HEAP32[$1>>2] = 8;
  30171. break;
  30172. }
  30173. $241 = HEAP32[$3>>2]|0;
  30174. $242 = (_strcmp($241,14869)|0);
  30175. $243 = ($242|0)!=(0);
  30176. if (!($243)) {
  30177. HEAP32[$1>>2] = 9;
  30178. break;
  30179. }
  30180. $244 = HEAP32[$3>>2]|0;
  30181. $245 = (_strcmp($244,14884)|0);
  30182. $246 = ($245|0)!=(0);
  30183. if (!($246)) {
  30184. HEAP32[$1>>2] = 10;
  30185. break;
  30186. }
  30187. $247 = HEAP32[$3>>2]|0;
  30188. $248 = (_strcmp($247,14902)|0);
  30189. $249 = ($248|0)!=(0);
  30190. if (!($249)) {
  30191. HEAP32[$1>>2] = 2;
  30192. break;
  30193. }
  30194. $250 = HEAP32[$3>>2]|0;
  30195. $251 = (_strcmp($250,14918)|0);
  30196. $252 = ($251|0)!=(0);
  30197. if (!($252)) {
  30198. HEAP32[$1>>2] = 11;
  30199. break;
  30200. }
  30201. $253 = HEAP32[$3>>2]|0;
  30202. $254 = (_strcmp($253,14937)|0);
  30203. $255 = ($254|0)!=(0);
  30204. if (!($255)) {
  30205. HEAP32[$1>>2] = 22;
  30206. break;
  30207. }
  30208. $256 = HEAP32[$3>>2]|0;
  30209. $257 = (_strcmp($256,14951)|0);
  30210. $258 = ($257|0)!=(0);
  30211. if (!($258)) {
  30212. HEAP32[$1>>2] = 23;
  30213. break;
  30214. }
  30215. $259 = HEAP32[$3>>2]|0;
  30216. $260 = (_strcmp($259,14966)|0);
  30217. $261 = ($260|0)!=(0);
  30218. if (!($261)) {
  30219. HEAP32[$1>>2] = 8;
  30220. break;
  30221. }
  30222. $262 = HEAP32[$3>>2]|0;
  30223. $263 = (_strcmp($262,13687)|0);
  30224. $264 = ($263|0)!=(0);
  30225. if (!($264)) {
  30226. HEAP32[$1>>2] = 1;
  30227. break;
  30228. }
  30229. $265 = HEAP32[$3>>2]|0;
  30230. $266 = (_strcmp($265,14977)|0);
  30231. $267 = ($266|0)!=(0);
  30232. if (!($267)) {
  30233. HEAP32[$1>>2] = 3;
  30234. break;
  30235. }
  30236. $268 = HEAP32[$3>>2]|0;
  30237. $269 = (_strcmp($268,13786)|0);
  30238. $270 = ($269|0)!=(0);
  30239. if (!($270)) {
  30240. HEAP32[$1>>2] = 24;
  30241. break;
  30242. }
  30243. $271 = HEAP32[$3>>2]|0;
  30244. $272 = (_strcmp($271,13816)|0);
  30245. $273 = ($272|0)!=(0);
  30246. if (!($273)) {
  30247. HEAP32[$1>>2] = 25;
  30248. break;
  30249. }
  30250. $274 = HEAP32[$3>>2]|0;
  30251. $275 = (_strcmp($274,14993)|0);
  30252. $276 = ($275|0)!=(0);
  30253. if (!($276)) {
  30254. HEAP32[$1>>2] = 12;
  30255. break;
  30256. }
  30257. $277 = HEAP32[$3>>2]|0;
  30258. $278 = (_strcmp($277,15020)|0);
  30259. $279 = ($278|0)!=(0);
  30260. if (!($279)) {
  30261. HEAP32[$1>>2] = 4;
  30262. break;
  30263. }
  30264. $280 = HEAP32[$3>>2]|0;
  30265. $281 = (_strcmp($280,15034)|0);
  30266. $282 = ($281|0)!=(0);
  30267. if (!($282)) {
  30268. HEAP32[$1>>2] = 13;
  30269. break;
  30270. }
  30271. $283 = HEAP32[$3>>2]|0;
  30272. $284 = (_strcmp($283,13722)|0);
  30273. $285 = ($284|0)!=(0);
  30274. if (!($285)) {
  30275. HEAP32[$1>>2] = 5;
  30276. break;
  30277. }
  30278. $286 = HEAP32[$3>>2]|0;
  30279. $287 = (_strcmp($286,15054)|0);
  30280. $288 = ($287|0)!=(0);
  30281. if (!($288)) {
  30282. HEAP32[$1>>2] = 6;
  30283. break;
  30284. }
  30285. $289 = HEAP32[$3>>2]|0;
  30286. $290 = (_strcmp($289,15072)|0);
  30287. $291 = ($290|0)!=(0);
  30288. if (!($291)) {
  30289. HEAP32[$1>>2] = 9;
  30290. break;
  30291. }
  30292. $292 = HEAP32[$3>>2]|0;
  30293. $293 = (_strcmp($292,15084)|0);
  30294. $294 = ($293|0)!=(0);
  30295. if (!($294)) {
  30296. HEAP32[$1>>2] = 24;
  30297. break;
  30298. }
  30299. $295 = HEAP32[$3>>2]|0;
  30300. $296 = (_strcmp($295,15105)|0);
  30301. $297 = ($296|0)!=(0);
  30302. if (!($297)) {
  30303. HEAP32[$1>>2] = 26;
  30304. break;
  30305. }
  30306. $298 = HEAP32[$3>>2]|0;
  30307. $299 = (_strcmp($298,15123)|0);
  30308. $300 = ($299|0)!=(0);
  30309. if (!($300)) {
  30310. HEAP32[$1>>2] = 27;
  30311. break;
  30312. }
  30313. $301 = HEAP32[$3>>2]|0;
  30314. $302 = (_strcmp($301,15141)|0);
  30315. $303 = ($302|0)!=(0);
  30316. if (!($303)) {
  30317. HEAP32[$1>>2] = 28;
  30318. break;
  30319. }
  30320. $304 = HEAP32[$3>>2]|0;
  30321. $305 = (_strcmp($304,15162)|0);
  30322. $306 = ($305|0)!=(0);
  30323. if (!($306)) {
  30324. HEAP32[$1>>2] = 14;
  30325. break;
  30326. }
  30327. $307 = HEAP32[$3>>2]|0;
  30328. $308 = (_strcmp($307,15188)|0);
  30329. $309 = ($308|0)!=(0);
  30330. if (!($309)) {
  30331. HEAP32[$1>>2] = 3;
  30332. break;
  30333. }
  30334. $310 = HEAP32[$3>>2]|0;
  30335. $311 = (_strcmp($310,15211)|0);
  30336. $312 = ($311|0)!=(0);
  30337. if (!($312)) {
  30338. HEAP32[$1>>2] = 15;
  30339. break;
  30340. }
  30341. $313 = HEAP32[$3>>2]|0;
  30342. $314 = (_strcmp($313,15249)|0);
  30343. $315 = ($314|0)!=(0);
  30344. if (!($315)) {
  30345. HEAP32[$1>>2] = 10;
  30346. break;
  30347. }
  30348. $316 = HEAP32[$3>>2]|0;
  30349. $317 = (_strcmp($316,15265)|0);
  30350. $318 = ($317|0)!=(0);
  30351. if (!($318)) {
  30352. HEAP32[$1>>2] = 7;
  30353. break;
  30354. }
  30355. $319 = HEAP32[$3>>2]|0;
  30356. $320 = (_strcmp($319,15280)|0);
  30357. $321 = ($320|0)!=(0);
  30358. if (!($321)) {
  30359. HEAP32[$1>>2] = 25;
  30360. break;
  30361. }
  30362. $322 = HEAP32[$3>>2]|0;
  30363. $323 = (_strcmp($322,15303)|0);
  30364. $324 = ($323|0)!=(0);
  30365. if (!($324)) {
  30366. HEAP32[$1>>2] = 16;
  30367. break;
  30368. }
  30369. $325 = HEAP32[$3>>2]|0;
  30370. $326 = (_strcmp($325,15316)|0);
  30371. $327 = ($326|0)!=(0);
  30372. if (!($327)) {
  30373. HEAP32[$1>>2] = 29;
  30374. break;
  30375. }
  30376. $328 = HEAP32[$3>>2]|0;
  30377. $329 = (_strcmp($328,15330)|0);
  30378. $330 = ($329|0)!=(0);
  30379. if (!($330)) {
  30380. HEAP32[$1>>2] = 30;
  30381. break;
  30382. }
  30383. $331 = HEAP32[$3>>2]|0;
  30384. $332 = (_strcmp($331,15344)|0);
  30385. $333 = ($332|0)!=(0);
  30386. if (!($333)) {
  30387. HEAP32[$1>>2] = 1;
  30388. break;
  30389. }
  30390. $334 = HEAP32[$3>>2]|0;
  30391. $335 = (_strcmp($334,15364)|0);
  30392. $336 = ($335|0)!=(0);
  30393. if (!($336)) {
  30394. HEAP32[$1>>2] = 8;
  30395. break;
  30396. }
  30397. $337 = HEAP32[$3>>2]|0;
  30398. $338 = (_strcmp($337,15384)|0);
  30399. $339 = ($338|0)!=(0);
  30400. if (!($339)) {
  30401. HEAP32[$1>>2] = 17;
  30402. break;
  30403. }
  30404. $340 = HEAP32[$3>>2]|0;
  30405. $341 = (_strcmp($340,15400)|0);
  30406. $342 = ($341|0)!=(0);
  30407. if (!($342)) {
  30408. HEAP32[$1>>2] = 18;
  30409. break;
  30410. }
  30411. $343 = HEAP32[$3>>2]|0;
  30412. $344 = (_strcmp($343,15418)|0);
  30413. $345 = ($344|0)!=(0);
  30414. if (!($345)) {
  30415. HEAP32[$1>>2] = 26;
  30416. break;
  30417. }
  30418. $346 = HEAP32[$3>>2]|0;
  30419. $347 = (_strcmp($346,15434)|0);
  30420. $348 = ($347|0)!=(0);
  30421. if (!($348)) {
  30422. HEAP32[$1>>2] = 19;
  30423. break;
  30424. }
  30425. $349 = HEAP32[$3>>2]|0;
  30426. $350 = (_strcmp($349,15449)|0);
  30427. $351 = ($350|0)!=(0);
  30428. if (!($351)) {
  30429. HEAP32[$1>>2] = 9;
  30430. break;
  30431. }
  30432. $352 = HEAP32[$3>>2]|0;
  30433. $353 = (_strcmp($352,15471)|0);
  30434. $354 = ($353|0)!=(0);
  30435. if (!($354)) {
  30436. HEAP32[$1>>2] = 31;
  30437. break;
  30438. }
  30439. $355 = HEAP32[$3>>2]|0;
  30440. $356 = (_strcmp($355,15489)|0);
  30441. $357 = ($356|0)!=(0);
  30442. if (!($357)) {
  30443. HEAP32[$1>>2] = 32;
  30444. break;
  30445. }
  30446. $358 = HEAP32[$3>>2]|0;
  30447. $359 = (_strcmp($358,15510)|0);
  30448. $360 = ($359|0)!=(0);
  30449. if (!($360)) {
  30450. HEAP32[$1>>2] = 10;
  30451. break;
  30452. }
  30453. $361 = HEAP32[$3>>2]|0;
  30454. $362 = (_strcmp($361,15528)|0);
  30455. $363 = ($362|0)!=(0);
  30456. if (!($363)) {
  30457. HEAP32[$1>>2] = 11;
  30458. break;
  30459. }
  30460. $364 = HEAP32[$3>>2]|0;
  30461. $365 = (_strcmp($364,15541)|0);
  30462. $366 = ($365|0)!=(0);
  30463. if (!($366)) {
  30464. HEAP32[$1>>2] = 2;
  30465. break;
  30466. }
  30467. $367 = HEAP32[$3>>2]|0;
  30468. $368 = (_strcmp($367,15556)|0);
  30469. $369 = ($368|0)!=(0);
  30470. if (!($369)) {
  30471. HEAP32[$1>>2] = 12;
  30472. break;
  30473. }
  30474. $370 = HEAP32[$3>>2]|0;
  30475. $371 = (_strcmp($370,15570)|0);
  30476. $372 = ($371|0)!=(0);
  30477. if (!($372)) {
  30478. HEAP32[$1>>2] = 1;
  30479. break;
  30480. }
  30481. $373 = HEAP32[$3>>2]|0;
  30482. $374 = (_strcmp($373,15580)|0);
  30483. $375 = ($374|0)!=(0);
  30484. if (!($375)) {
  30485. HEAP32[$1>>2] = 1;
  30486. break;
  30487. }
  30488. $376 = HEAP32[$3>>2]|0;
  30489. $377 = (_strcmp($376,15590)|0);
  30490. $378 = ($377|0)!=(0);
  30491. if (!($378)) {
  30492. HEAP32[$1>>2] = 2;
  30493. break;
  30494. }
  30495. $379 = HEAP32[$3>>2]|0;
  30496. $380 = (_strcmp($379,15612)|0);
  30497. $381 = ($380|0)!=(0);
  30498. if (!($381)) {
  30499. HEAP32[$1>>2] = 13;
  30500. break;
  30501. }
  30502. $382 = HEAP32[$3>>2]|0;
  30503. $383 = (_strcmp($382,15638)|0);
  30504. $384 = ($383|0)!=(0);
  30505. if (!($384)) {
  30506. HEAP32[$1>>2] = 14;
  30507. break;
  30508. }
  30509. $385 = HEAP32[$3>>2]|0;
  30510. $386 = (_strcmp($385,15665)|0);
  30511. $387 = ($386|0)!=(0);
  30512. if (!($387)) {
  30513. HEAP32[$1>>2] = 27;
  30514. break;
  30515. }
  30516. $388 = HEAP32[$3>>2]|0;
  30517. $389 = (_strcmp($388,15678)|0);
  30518. $390 = ($389|0)!=(0);
  30519. if (!($390)) {
  30520. HEAP32[$1>>2] = 20;
  30521. break;
  30522. }
  30523. $391 = HEAP32[$3>>2]|0;
  30524. $392 = (_strcmp($391,15693)|0);
  30525. $393 = ($392|0)!=(0);
  30526. if (!($393)) {
  30527. HEAP32[$1>>2] = 4;
  30528. break;
  30529. }
  30530. $394 = HEAP32[$3>>2]|0;
  30531. $395 = (_strcmp($394,15708)|0);
  30532. $396 = ($395|0)!=(0);
  30533. if (!($396)) {
  30534. HEAP32[$1>>2] = 3;
  30535. break;
  30536. }
  30537. $397 = HEAP32[$3>>2]|0;
  30538. $398 = (_strcmp($397,15732)|0);
  30539. $399 = ($398|0)!=(0);
  30540. if (!($399)) {
  30541. HEAP32[$1>>2] = 2;
  30542. break;
  30543. }
  30544. $400 = HEAP32[$3>>2]|0;
  30545. $401 = (_strcmp($400,15743)|0);
  30546. $402 = ($401|0)!=(0);
  30547. if (!($402)) {
  30548. HEAP32[$1>>2] = 33;
  30549. break;
  30550. }
  30551. $403 = HEAP32[$3>>2]|0;
  30552. $404 = (_strcmp($403,15765)|0);
  30553. $405 = ($404|0)!=(0);
  30554. if (!($405)) {
  30555. HEAP32[$1>>2] = 21;
  30556. break;
  30557. }
  30558. $406 = HEAP32[$3>>2]|0;
  30559. $407 = (_strcmp($406,15787)|0);
  30560. $408 = ($407|0)!=(0);
  30561. if (!($408)) {
  30562. HEAP32[$1>>2] = 5;
  30563. break;
  30564. }
  30565. $409 = HEAP32[$3>>2]|0;
  30566. $410 = (_strcmp($409,15811)|0);
  30567. $411 = ($410|0)!=(0);
  30568. if (!($411)) {
  30569. HEAP32[$1>>2] = 4;
  30570. break;
  30571. }
  30572. $412 = HEAP32[$3>>2]|0;
  30573. $413 = (_strcmp($412,15820)|0);
  30574. $414 = ($413|0)!=(0);
  30575. if (!($414)) {
  30576. HEAP32[$1>>2] = 5;
  30577. break;
  30578. }
  30579. $415 = HEAP32[$3>>2]|0;
  30580. $416 = (_strcmp($415,15828)|0);
  30581. $417 = ($416|0)!=(0);
  30582. if (!($417)) {
  30583. HEAP32[$1>>2] = 1;
  30584. break;
  30585. }
  30586. $418 = HEAP32[$3>>2]|0;
  30587. $419 = (_strcmp($418,15841)|0);
  30588. $420 = ($419|0)!=(0);
  30589. if (!($420)) {
  30590. HEAP32[$1>>2] = 2;
  30591. break;
  30592. }
  30593. $421 = HEAP32[$3>>2]|0;
  30594. $422 = (_strcmp($421,15855)|0);
  30595. $423 = ($422|0)!=(0);
  30596. if (!($423)) {
  30597. HEAP32[$1>>2] = 15;
  30598. break;
  30599. }
  30600. $424 = HEAP32[$3>>2]|0;
  30601. $425 = (_strcmp($424,15867)|0);
  30602. $426 = ($425|0)!=(0);
  30603. if (!($426)) {
  30604. HEAP32[$1>>2] = 16;
  30605. break;
  30606. }
  30607. $427 = HEAP32[$3>>2]|0;
  30608. $428 = (_strcmp($427,15876)|0);
  30609. $429 = ($428|0)!=(0);
  30610. if (!($429)) {
  30611. HEAP32[$1>>2] = 17;
  30612. break;
  30613. }
  30614. $430 = HEAP32[$3>>2]|0;
  30615. $431 = (_strcmp($430,15886)|0);
  30616. $432 = ($431|0)!=(0);
  30617. if (!($432)) {
  30618. HEAP32[$1>>2] = 18;
  30619. break;
  30620. }
  30621. $433 = HEAP32[$3>>2]|0;
  30622. $434 = (_strcmp($433,15898)|0);
  30623. $435 = ($434|0)!=(0);
  30624. if (!($435)) {
  30625. HEAP32[$1>>2] = 19;
  30626. break;
  30627. }
  30628. $436 = HEAP32[$3>>2]|0;
  30629. $437 = (_strcmp($436,15909)|0);
  30630. $438 = ($437|0)!=(0);
  30631. if (!($438)) {
  30632. HEAP32[$1>>2] = 20;
  30633. break;
  30634. }
  30635. $439 = HEAP32[$3>>2]|0;
  30636. $440 = (_strcmp($439,15917)|0);
  30637. $441 = ($440|0)!=(0);
  30638. if (!($441)) {
  30639. HEAP32[$1>>2] = 3;
  30640. break;
  30641. }
  30642. $442 = HEAP32[$3>>2]|0;
  30643. $443 = (_strcmp($442,15929)|0);
  30644. $444 = ($443|0)!=(0);
  30645. if (!($444)) {
  30646. HEAP32[$1>>2] = 21;
  30647. break;
  30648. }
  30649. $445 = HEAP32[$3>>2]|0;
  30650. $446 = (_strcmp($445,15944)|0);
  30651. $447 = ($446|0)!=(0);
  30652. if (!($447)) {
  30653. HEAP32[$1>>2] = 22;
  30654. break;
  30655. }
  30656. $448 = HEAP32[$3>>2]|0;
  30657. $449 = (_strcmp($448,15956)|0);
  30658. $450 = ($449|0)!=(0);
  30659. if (!($450)) {
  30660. HEAP32[$1>>2] = 23;
  30661. break;
  30662. }
  30663. $451 = HEAP32[$3>>2]|0;
  30664. $452 = (_strcmp($451,15970)|0);
  30665. $453 = ($452|0)!=(0);
  30666. if (!($453)) {
  30667. HEAP32[$1>>2] = 11;
  30668. break;
  30669. }
  30670. $454 = HEAP32[$3>>2]|0;
  30671. $455 = (_strcmp($454,15995)|0);
  30672. $456 = ($455|0)!=(0);
  30673. if (!($456)) {
  30674. HEAP32[$1>>2] = 24;
  30675. break;
  30676. }
  30677. $457 = HEAP32[$3>>2]|0;
  30678. $458 = (_strcmp($457,16012)|0);
  30679. $459 = ($458|0)!=(0);
  30680. if (!($459)) {
  30681. HEAP32[$1>>2] = 25;
  30682. break;
  30683. }
  30684. $460 = HEAP32[$3>>2]|0;
  30685. $461 = (_strcmp($460,16028)|0);
  30686. $462 = ($461|0)!=(0);
  30687. if (!($462)) {
  30688. HEAP32[$1>>2] = 26;
  30689. break;
  30690. }
  30691. $463 = HEAP32[$3>>2]|0;
  30692. $464 = (_strcmp($463,16044)|0);
  30693. $465 = ($464|0)!=(0);
  30694. if (!($465)) {
  30695. HEAP32[$1>>2] = 12;
  30696. break;
  30697. }
  30698. $466 = HEAP32[$3>>2]|0;
  30699. $467 = (_strcmp($466,16056)|0);
  30700. $468 = ($467|0)!=(0);
  30701. if (!($468)) {
  30702. HEAP32[$1>>2] = 34;
  30703. break;
  30704. }
  30705. $469 = HEAP32[$3>>2]|0;
  30706. $470 = (_strcmp($469,16068)|0);
  30707. $471 = ($470|0)!=(0);
  30708. if (!($471)) {
  30709. HEAP32[$1>>2] = 35;
  30710. break;
  30711. }
  30712. $472 = HEAP32[$3>>2]|0;
  30713. $473 = (_strcmp($472,16092)|0);
  30714. $474 = ($473|0)!=(0);
  30715. if (!($474)) {
  30716. HEAP32[$1>>2] = 1;
  30717. break;
  30718. }
  30719. $475 = HEAP32[$3>>2]|0;
  30720. $476 = (_strcmp($475,16105)|0);
  30721. $477 = ($476|0)!=(0);
  30722. if (!($477)) {
  30723. HEAP32[$1>>2] = 2;
  30724. break;
  30725. }
  30726. $478 = HEAP32[$3>>2]|0;
  30727. $479 = (_strcmp($478,16119)|0);
  30728. $480 = ($479|0)!=(0);
  30729. if (!($480)) {
  30730. HEAP32[$1>>2] = 36;
  30731. break;
  30732. }
  30733. $481 = HEAP32[$3>>2]|0;
  30734. $482 = (_strcmp($481,16141)|0);
  30735. $483 = ($482|0)!=(0);
  30736. if (!($483)) {
  30737. HEAP32[$1>>2] = 37;
  30738. break;
  30739. }
  30740. $484 = HEAP32[$3>>2]|0;
  30741. $485 = (_strcmp($484,16148)|0);
  30742. $486 = ($485|0)!=(0);
  30743. if (!($486)) {
  30744. HEAP32[$1>>2] = 3;
  30745. break;
  30746. }
  30747. $487 = HEAP32[$3>>2]|0;
  30748. $488 = (_strcmp($487,16164)|0);
  30749. $489 = ($488|0)!=(0);
  30750. if (!($489)) {
  30751. HEAP32[$1>>2] = 2;
  30752. break;
  30753. }
  30754. $490 = HEAP32[$3>>2]|0;
  30755. $491 = (_strcmp($490,16181)|0);
  30756. $492 = ($491|0)!=(0);
  30757. if (!($492)) {
  30758. HEAP32[$1>>2] = 1;
  30759. break;
  30760. }
  30761. $493 = HEAP32[$3>>2]|0;
  30762. $494 = (_strcmp($493,16198)|0);
  30763. $495 = ($494|0)!=(0);
  30764. if (!($495)) {
  30765. HEAP32[$1>>2] = 28;
  30766. break;
  30767. }
  30768. $496 = HEAP32[$3>>2]|0;
  30769. $497 = (_strcmp($496,16214)|0);
  30770. $498 = ($497|0)!=(0);
  30771. if (!($498)) {
  30772. HEAP32[$1>>2] = 1;
  30773. break;
  30774. }
  30775. $499 = HEAP32[$3>>2]|0;
  30776. $500 = (_strcmp($499,16230)|0);
  30777. $501 = ($500|0)!=(0);
  30778. if (!($501)) {
  30779. HEAP32[$1>>2] = 4;
  30780. break;
  30781. }
  30782. $502 = HEAP32[$3>>2]|0;
  30783. $503 = (_strcmp($502,16247)|0);
  30784. $504 = ($503|0)!=(0);
  30785. if (!($504)) {
  30786. HEAP32[$1>>2] = 29;
  30787. break;
  30788. }
  30789. $505 = HEAP32[$3>>2]|0;
  30790. $506 = (_strcmp($505,16261)|0);
  30791. $507 = ($506|0)!=(0);
  30792. if (!($507)) {
  30793. HEAP32[$1>>2] = 30;
  30794. break;
  30795. }
  30796. $508 = HEAP32[$3>>2]|0;
  30797. $509 = (_strcmp($508,16273)|0);
  30798. $510 = ($509|0)!=(0);
  30799. if (!($510)) {
  30800. HEAP32[$1>>2] = 22;
  30801. break;
  30802. }
  30803. $511 = HEAP32[$3>>2]|0;
  30804. $512 = (_strcmp($511,16284)|0);
  30805. $513 = ($512|0)!=(0);
  30806. if (!($513)) {
  30807. HEAP32[$1>>2] = 2;
  30808. break;
  30809. }
  30810. $514 = HEAP32[$3>>2]|0;
  30811. $515 = (_strcmp($514,16297)|0);
  30812. $516 = ($515|0)!=(0);
  30813. if (!($516)) {
  30814. HEAP32[$1>>2] = 23;
  30815. break;
  30816. }
  30817. $517 = HEAP32[$3>>2]|0;
  30818. $518 = (_strcmp($517,16307)|0);
  30819. $519 = ($518|0)!=(0);
  30820. if (!($519)) {
  30821. HEAP32[$1>>2] = 2;
  30822. break;
  30823. }
  30824. $520 = HEAP32[$3>>2]|0;
  30825. $521 = (_strcmp($520,16324)|0);
  30826. $522 = ($521|0)!=(0);
  30827. if (!($522)) {
  30828. HEAP32[$1>>2] = 24;
  30829. break;
  30830. }
  30831. $523 = HEAP32[$3>>2]|0;
  30832. $524 = (_strcmp($523,16336)|0);
  30833. $525 = ($524|0)!=(0);
  30834. if (!($525)) {
  30835. HEAP32[$1>>2] = 25;
  30836. break;
  30837. }
  30838. $526 = HEAP32[$3>>2]|0;
  30839. $527 = (_strcmp($526,16358)|0);
  30840. $528 = ($527|0)!=(0);
  30841. if (!($528)) {
  30842. HEAP32[$1>>2] = 26;
  30843. break;
  30844. }
  30845. $529 = HEAP32[$3>>2]|0;
  30846. $530 = (_strcmp($529,16378)|0);
  30847. $531 = ($530|0)!=(0);
  30848. if (!($531)) {
  30849. HEAP32[$1>>2] = 3;
  30850. break;
  30851. }
  30852. $532 = HEAP32[$3>>2]|0;
  30853. $533 = (_strcmp($532,16391)|0);
  30854. $534 = ($533|0)!=(0);
  30855. if (!($534)) {
  30856. HEAP32[$1>>2] = 27;
  30857. break;
  30858. }
  30859. $535 = HEAP32[$3>>2]|0;
  30860. $536 = (_strcmp($535,16413)|0);
  30861. $537 = ($536|0)!=(0);
  30862. if (!($537)) {
  30863. HEAP32[$1>>2] = 28;
  30864. break;
  30865. }
  30866. $538 = HEAP32[$3>>2]|0;
  30867. $539 = (_strcmp($538,16433)|0);
  30868. $540 = ($539|0)!=(0);
  30869. if (!($540)) {
  30870. HEAP32[$1>>2] = 2;
  30871. break;
  30872. }
  30873. $541 = HEAP32[$3>>2]|0;
  30874. $542 = (_strcmp($541,16450)|0);
  30875. $543 = ($542|0)!=(0);
  30876. if (!($543)) {
  30877. HEAP32[$1>>2] = 2;
  30878. break;
  30879. }
  30880. $544 = HEAP32[$3>>2]|0;
  30881. $545 = (_strcmp($544,16467)|0);
  30882. $546 = ($545|0)!=(0);
  30883. if (!($546)) {
  30884. HEAP32[$1>>2] = 3;
  30885. break;
  30886. }
  30887. $547 = HEAP32[$3>>2]|0;
  30888. $548 = (_strcmp($547,16487)|0);
  30889. $549 = ($548|0)!=(0);
  30890. if ($549) {
  30891. $550 = HEAP32[$2>>2]|0;
  30892. $551 = HEAP32[$3>>2]|0;
  30893. $552 = _emscripten_asm_const_iii(0, ($550|0), ($551|0))|0;
  30894. HEAP32[$1>>2] = 0;
  30895. break;
  30896. } else {
  30897. HEAP32[$1>>2] = 38;
  30898. break;
  30899. }
  30900. } else {
  30901. HEAP32[$1>>2] = 6;
  30902. }
  30903. } while(0);
  30904. $553 = HEAP32[$1>>2]|0;
  30905. STACKTOP = sp;return ($553|0);
  30906. }
  30907. function _emscripten_get_global_libc() {
  30908. var label = 0, sp = 0;
  30909. sp = STACKTOP;
  30910. return (22932|0);
  30911. }
  30912. function ___stdio_close($0) {
  30913. $0 = $0|0;
  30914. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $vararg_buffer = 0, label = 0, sp = 0;
  30915. sp = STACKTOP;
  30916. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  30917. $vararg_buffer = sp;
  30918. $1 = ((($0)) + 60|0);
  30919. $2 = HEAP32[$1>>2]|0;
  30920. $3 = (_dummy_738($2)|0);
  30921. HEAP32[$vararg_buffer>>2] = $3;
  30922. $4 = (___syscall6(6,($vararg_buffer|0))|0);
  30923. $5 = (___syscall_ret($4)|0);
  30924. STACKTOP = sp;return ($5|0);
  30925. }
  30926. function ___stdio_write($0,$1,$2) {
  30927. $0 = $0|0;
  30928. $1 = $1|0;
  30929. $2 = $2|0;
  30930. 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;
  30931. 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;
  30932. 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;
  30933. var $vararg_ptr7 = 0, label = 0, sp = 0;
  30934. sp = STACKTOP;
  30935. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  30936. $vararg_buffer3 = sp + 16|0;
  30937. $vararg_buffer = sp;
  30938. $3 = sp + 32|0;
  30939. $4 = ((($0)) + 28|0);
  30940. $5 = HEAP32[$4>>2]|0;
  30941. HEAP32[$3>>2] = $5;
  30942. $6 = ((($3)) + 4|0);
  30943. $7 = ((($0)) + 20|0);
  30944. $8 = HEAP32[$7>>2]|0;
  30945. $9 = (($8) - ($5))|0;
  30946. HEAP32[$6>>2] = $9;
  30947. $10 = ((($3)) + 8|0);
  30948. HEAP32[$10>>2] = $1;
  30949. $11 = ((($3)) + 12|0);
  30950. HEAP32[$11>>2] = $2;
  30951. $12 = (($9) + ($2))|0;
  30952. $13 = ((($0)) + 60|0);
  30953. $14 = HEAP32[$13>>2]|0;
  30954. $15 = $3;
  30955. HEAP32[$vararg_buffer>>2] = $14;
  30956. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  30957. HEAP32[$vararg_ptr1>>2] = $15;
  30958. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  30959. HEAP32[$vararg_ptr2>>2] = 2;
  30960. $16 = (___syscall146(146,($vararg_buffer|0))|0);
  30961. $17 = (___syscall_ret($16)|0);
  30962. $18 = ($12|0)==($17|0);
  30963. L1: do {
  30964. if ($18) {
  30965. label = 3;
  30966. } else {
  30967. $$04756 = 2;$$04855 = $12;$$04954 = $3;$26 = $17;
  30968. while(1) {
  30969. $25 = ($26|0)<(0);
  30970. if ($25) {
  30971. break;
  30972. }
  30973. $34 = (($$04855) - ($26))|0;
  30974. $35 = ((($$04954)) + 4|0);
  30975. $36 = HEAP32[$35>>2]|0;
  30976. $37 = ($26>>>0)>($36>>>0);
  30977. $38 = ((($$04954)) + 8|0);
  30978. $$150 = $37 ? $38 : $$04954;
  30979. $39 = $37 << 31 >> 31;
  30980. $$1 = (($39) + ($$04756))|0;
  30981. $40 = $37 ? $36 : 0;
  30982. $$0 = (($26) - ($40))|0;
  30983. $41 = HEAP32[$$150>>2]|0;
  30984. $42 = (($41) + ($$0)|0);
  30985. HEAP32[$$150>>2] = $42;
  30986. $43 = ((($$150)) + 4|0);
  30987. $44 = HEAP32[$43>>2]|0;
  30988. $45 = (($44) - ($$0))|0;
  30989. HEAP32[$43>>2] = $45;
  30990. $46 = HEAP32[$13>>2]|0;
  30991. $47 = $$150;
  30992. HEAP32[$vararg_buffer3>>2] = $46;
  30993. $vararg_ptr6 = ((($vararg_buffer3)) + 4|0);
  30994. HEAP32[$vararg_ptr6>>2] = $47;
  30995. $vararg_ptr7 = ((($vararg_buffer3)) + 8|0);
  30996. HEAP32[$vararg_ptr7>>2] = $$1;
  30997. $48 = (___syscall146(146,($vararg_buffer3|0))|0);
  30998. $49 = (___syscall_ret($48)|0);
  30999. $50 = ($34|0)==($49|0);
  31000. if ($50) {
  31001. label = 3;
  31002. break L1;
  31003. } else {
  31004. $$04756 = $$1;$$04855 = $34;$$04954 = $$150;$26 = $49;
  31005. }
  31006. }
  31007. $27 = ((($0)) + 16|0);
  31008. HEAP32[$27>>2] = 0;
  31009. HEAP32[$4>>2] = 0;
  31010. HEAP32[$7>>2] = 0;
  31011. $28 = HEAP32[$0>>2]|0;
  31012. $29 = $28 | 32;
  31013. HEAP32[$0>>2] = $29;
  31014. $30 = ($$04756|0)==(2);
  31015. if ($30) {
  31016. $$051 = 0;
  31017. } else {
  31018. $31 = ((($$04954)) + 4|0);
  31019. $32 = HEAP32[$31>>2]|0;
  31020. $33 = (($2) - ($32))|0;
  31021. $$051 = $33;
  31022. }
  31023. }
  31024. } while(0);
  31025. if ((label|0) == 3) {
  31026. $19 = ((($0)) + 44|0);
  31027. $20 = HEAP32[$19>>2]|0;
  31028. $21 = ((($0)) + 48|0);
  31029. $22 = HEAP32[$21>>2]|0;
  31030. $23 = (($20) + ($22)|0);
  31031. $24 = ((($0)) + 16|0);
  31032. HEAP32[$24>>2] = $23;
  31033. HEAP32[$4>>2] = $20;
  31034. HEAP32[$7>>2] = $20;
  31035. $$051 = $2;
  31036. }
  31037. STACKTOP = sp;return ($$051|0);
  31038. }
  31039. function ___stdio_seek($0,$1,$2) {
  31040. $0 = $0|0;
  31041. $1 = $1|0;
  31042. $2 = $2|0;
  31043. 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;
  31044. sp = STACKTOP;
  31045. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  31046. $vararg_buffer = sp;
  31047. $3 = sp + 20|0;
  31048. $4 = ((($0)) + 60|0);
  31049. $5 = HEAP32[$4>>2]|0;
  31050. $6 = $3;
  31051. HEAP32[$vararg_buffer>>2] = $5;
  31052. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  31053. HEAP32[$vararg_ptr1>>2] = 0;
  31054. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  31055. HEAP32[$vararg_ptr2>>2] = $1;
  31056. $vararg_ptr3 = ((($vararg_buffer)) + 12|0);
  31057. HEAP32[$vararg_ptr3>>2] = $6;
  31058. $vararg_ptr4 = ((($vararg_buffer)) + 16|0);
  31059. HEAP32[$vararg_ptr4>>2] = $2;
  31060. $7 = (___syscall140(140,($vararg_buffer|0))|0);
  31061. $8 = (___syscall_ret($7)|0);
  31062. $9 = ($8|0)<(0);
  31063. if ($9) {
  31064. HEAP32[$3>>2] = -1;
  31065. $10 = -1;
  31066. } else {
  31067. $$pre = HEAP32[$3>>2]|0;
  31068. $10 = $$pre;
  31069. }
  31070. STACKTOP = sp;return ($10|0);
  31071. }
  31072. function ___syscall_ret($0) {
  31073. $0 = $0|0;
  31074. var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  31075. sp = STACKTOP;
  31076. $1 = ($0>>>0)>(4294963200);
  31077. if ($1) {
  31078. $2 = (0 - ($0))|0;
  31079. $3 = (___errno_location()|0);
  31080. HEAP32[$3>>2] = $2;
  31081. $$0 = -1;
  31082. } else {
  31083. $$0 = $0;
  31084. }
  31085. return ($$0|0);
  31086. }
  31087. function ___errno_location() {
  31088. var $0 = 0, $1 = 0, label = 0, sp = 0;
  31089. sp = STACKTOP;
  31090. $0 = (___pthread_self_108()|0);
  31091. $1 = ((($0)) + 64|0);
  31092. return ($1|0);
  31093. }
  31094. function ___pthread_self_108() {
  31095. var $0 = 0, label = 0, sp = 0;
  31096. sp = STACKTOP;
  31097. $0 = (_pthread_self()|0);
  31098. return ($0|0);
  31099. }
  31100. function _pthread_self() {
  31101. var label = 0, sp = 0;
  31102. sp = STACKTOP;
  31103. return (3972|0);
  31104. }
  31105. function _dummy_738($0) {
  31106. $0 = $0|0;
  31107. var label = 0, sp = 0;
  31108. sp = STACKTOP;
  31109. return ($0|0);
  31110. }
  31111. function ___stdio_read($0,$1,$2) {
  31112. $0 = $0|0;
  31113. $1 = $1|0;
  31114. $2 = $2|0;
  31115. 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;
  31116. 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;
  31117. sp = STACKTOP;
  31118. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  31119. $vararg_buffer = sp;
  31120. $3 = sp + 16|0;
  31121. HEAP32[$3>>2] = $1;
  31122. $4 = ((($3)) + 4|0);
  31123. $5 = ((($0)) + 48|0);
  31124. $6 = HEAP32[$5>>2]|0;
  31125. $7 = ($6|0)!=(0);
  31126. $8 = $7&1;
  31127. $9 = (($2) - ($8))|0;
  31128. HEAP32[$4>>2] = $9;
  31129. $10 = ((($3)) + 8|0);
  31130. $11 = ((($0)) + 44|0);
  31131. $12 = HEAP32[$11>>2]|0;
  31132. HEAP32[$10>>2] = $12;
  31133. $13 = ((($3)) + 12|0);
  31134. HEAP32[$13>>2] = $6;
  31135. $14 = ((($0)) + 60|0);
  31136. $15 = HEAP32[$14>>2]|0;
  31137. $16 = $3;
  31138. HEAP32[$vararg_buffer>>2] = $15;
  31139. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  31140. HEAP32[$vararg_ptr1>>2] = $16;
  31141. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  31142. HEAP32[$vararg_ptr2>>2] = 2;
  31143. $17 = (___syscall145(145,($vararg_buffer|0))|0);
  31144. $18 = (___syscall_ret($17)|0);
  31145. $19 = ($18|0)<(1);
  31146. if ($19) {
  31147. $20 = $18 & 48;
  31148. $21 = $20 ^ 16;
  31149. $22 = HEAP32[$0>>2]|0;
  31150. $23 = $22 | $21;
  31151. HEAP32[$0>>2] = $23;
  31152. $$0 = $18;
  31153. } else {
  31154. $24 = HEAP32[$4>>2]|0;
  31155. $25 = ($18>>>0)>($24>>>0);
  31156. if ($25) {
  31157. $26 = (($18) - ($24))|0;
  31158. $27 = HEAP32[$11>>2]|0;
  31159. $28 = ((($0)) + 4|0);
  31160. HEAP32[$28>>2] = $27;
  31161. $29 = (($27) + ($26)|0);
  31162. $30 = ((($0)) + 8|0);
  31163. HEAP32[$30>>2] = $29;
  31164. $31 = HEAP32[$5>>2]|0;
  31165. $32 = ($31|0)==(0);
  31166. if ($32) {
  31167. $$0 = $2;
  31168. } else {
  31169. $33 = ((($27)) + 1|0);
  31170. HEAP32[$28>>2] = $33;
  31171. $34 = HEAP8[$27>>0]|0;
  31172. $35 = (($2) + -1)|0;
  31173. $36 = (($1) + ($35)|0);
  31174. HEAP8[$36>>0] = $34;
  31175. $$0 = $2;
  31176. }
  31177. } else {
  31178. $$0 = $18;
  31179. }
  31180. }
  31181. STACKTOP = sp;return ($$0|0);
  31182. }
  31183. function ___stdout_write($0,$1,$2) {
  31184. $0 = $0|0;
  31185. $1 = $1|0;
  31186. $2 = $2|0;
  31187. 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;
  31188. sp = STACKTOP;
  31189. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  31190. $vararg_buffer = sp;
  31191. $3 = sp + 16|0;
  31192. $4 = ((($0)) + 36|0);
  31193. HEAP32[$4>>2] = 10;
  31194. $5 = HEAP32[$0>>2]|0;
  31195. $6 = $5 & 64;
  31196. $7 = ($6|0)==(0);
  31197. if ($7) {
  31198. $8 = ((($0)) + 60|0);
  31199. $9 = HEAP32[$8>>2]|0;
  31200. $10 = $3;
  31201. HEAP32[$vararg_buffer>>2] = $9;
  31202. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  31203. HEAP32[$vararg_ptr1>>2] = 21523;
  31204. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  31205. HEAP32[$vararg_ptr2>>2] = $10;
  31206. $11 = (___syscall54(54,($vararg_buffer|0))|0);
  31207. $12 = ($11|0)==(0);
  31208. if (!($12)) {
  31209. $13 = ((($0)) + 75|0);
  31210. HEAP8[$13>>0] = -1;
  31211. }
  31212. }
  31213. $14 = (___stdio_write($0,$1,$2)|0);
  31214. STACKTOP = sp;return ($14|0);
  31215. }
  31216. function _strtox_768($0,$1,$2,$3,$4) {
  31217. $0 = $0|0;
  31218. $1 = $1|0;
  31219. $2 = $2|0;
  31220. $3 = $3|0;
  31221. $4 = $4|0;
  31222. var $$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, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  31223. sp = STACKTOP;
  31224. STACKTOP = STACKTOP + 128|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(128|0);
  31225. $5 = sp;
  31226. HEAP32[$5>>2] = 0;
  31227. $6 = ((($5)) + 4|0);
  31228. HEAP32[$6>>2] = $0;
  31229. $7 = ((($5)) + 44|0);
  31230. HEAP32[$7>>2] = $0;
  31231. $8 = ($0|0)<(0|0);
  31232. $9 = ((($0)) + 2147483647|0);
  31233. $$sink = $8 ? (-1) : $9;
  31234. $10 = ((($5)) + 8|0);
  31235. HEAP32[$10>>2] = $$sink;
  31236. $11 = ((($5)) + 76|0);
  31237. HEAP32[$11>>2] = -1;
  31238. ___shlim($5,0);
  31239. $12 = (___intscan($5,$2,1,$3,$4)|0);
  31240. $13 = tempRet0;
  31241. $14 = ($1|0)==(0|0);
  31242. if (!($14)) {
  31243. $15 = ((($5)) + 108|0);
  31244. $16 = HEAP32[$15>>2]|0;
  31245. $17 = HEAP32[$6>>2]|0;
  31246. $18 = HEAP32[$10>>2]|0;
  31247. $19 = (($17) + ($16))|0;
  31248. $20 = (($19) - ($18))|0;
  31249. $21 = (($0) + ($20)|0);
  31250. HEAP32[$1>>2] = $21;
  31251. }
  31252. tempRet0 = ($13);
  31253. STACKTOP = sp;return ($12|0);
  31254. }
  31255. function ___shlim($0,$1) {
  31256. $0 = $0|0;
  31257. $1 = $1|0;
  31258. 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;
  31259. sp = STACKTOP;
  31260. $2 = ((($0)) + 104|0);
  31261. HEAP32[$2>>2] = $1;
  31262. $3 = ((($0)) + 8|0);
  31263. $4 = HEAP32[$3>>2]|0;
  31264. $5 = ((($0)) + 4|0);
  31265. $6 = HEAP32[$5>>2]|0;
  31266. $7 = $4;
  31267. $8 = $6;
  31268. $9 = (($7) - ($8))|0;
  31269. $10 = ((($0)) + 108|0);
  31270. HEAP32[$10>>2] = $9;
  31271. $11 = ($1|0)!=(0);
  31272. $12 = ($9|0)>($1|0);
  31273. $or$cond = $11 & $12;
  31274. $13 = (($6) + ($1)|0);
  31275. $$sink = $or$cond ? $13 : $4;
  31276. $14 = ((($0)) + 100|0);
  31277. HEAP32[$14>>2] = $$sink;
  31278. return;
  31279. }
  31280. function ___intscan($0,$1,$2,$3,$4) {
  31281. $0 = $0|0;
  31282. $1 = $1|0;
  31283. $2 = $2|0;
  31284. $3 = $3|0;
  31285. $4 = $4|0;
  31286. 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;
  31287. 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;
  31288. 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;
  31289. 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;
  31290. 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;
  31291. 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;
  31292. 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;
  31293. 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;
  31294. 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;
  31295. 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;
  31296. 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;
  31297. 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;
  31298. 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;
  31299. 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;
  31300. 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;
  31301. 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;
  31302. var $or$cond187 = 0, $or$cond5 = 0, $or$cond7 = 0, label = 0, sp = 0;
  31303. sp = STACKTOP;
  31304. $5 = ($1>>>0)>(36);
  31305. L1: do {
  31306. if ($5) {
  31307. $8 = (___errno_location()|0);
  31308. HEAP32[$8>>2] = 22;
  31309. $289 = 0;$290 = 0;
  31310. } else {
  31311. $6 = ((($0)) + 4|0);
  31312. $7 = ((($0)) + 100|0);
  31313. while(1) {
  31314. $9 = HEAP32[$6>>2]|0;
  31315. $10 = HEAP32[$7>>2]|0;
  31316. $11 = ($9>>>0)<($10>>>0);
  31317. if ($11) {
  31318. $12 = ((($9)) + 1|0);
  31319. HEAP32[$6>>2] = $12;
  31320. $13 = HEAP8[$9>>0]|0;
  31321. $14 = $13&255;
  31322. $16 = $14;
  31323. } else {
  31324. $15 = (___shgetc($0)|0);
  31325. $16 = $15;
  31326. }
  31327. $17 = (_isspace($16)|0);
  31328. $18 = ($17|0)==(0);
  31329. if ($18) {
  31330. break;
  31331. }
  31332. }
  31333. L11: do {
  31334. switch ($16|0) {
  31335. case 43: case 45: {
  31336. $19 = ($16|0)==(45);
  31337. $20 = $19 << 31 >> 31;
  31338. $21 = HEAP32[$6>>2]|0;
  31339. $22 = HEAP32[$7>>2]|0;
  31340. $23 = ($21>>>0)<($22>>>0);
  31341. if ($23) {
  31342. $24 = ((($21)) + 1|0);
  31343. HEAP32[$6>>2] = $24;
  31344. $25 = HEAP8[$21>>0]|0;
  31345. $26 = $25&255;
  31346. $$0157 = $20;$$0159 = $26;
  31347. break L11;
  31348. } else {
  31349. $27 = (___shgetc($0)|0);
  31350. $$0157 = $20;$$0159 = $27;
  31351. break L11;
  31352. }
  31353. break;
  31354. }
  31355. default: {
  31356. $$0157 = 0;$$0159 = $16;
  31357. }
  31358. }
  31359. } while(0);
  31360. $28 = ($1|0)==(0);
  31361. $29 = $1 | 16;
  31362. $30 = ($29|0)==(16);
  31363. $31 = ($$0159|0)==(48);
  31364. $or$cond5 = $30 & $31;
  31365. do {
  31366. if ($or$cond5) {
  31367. $32 = HEAP32[$6>>2]|0;
  31368. $33 = HEAP32[$7>>2]|0;
  31369. $34 = ($32>>>0)<($33>>>0);
  31370. if ($34) {
  31371. $35 = ((($32)) + 1|0);
  31372. HEAP32[$6>>2] = $35;
  31373. $36 = HEAP8[$32>>0]|0;
  31374. $37 = $36&255;
  31375. $40 = $37;
  31376. } else {
  31377. $38 = (___shgetc($0)|0);
  31378. $40 = $38;
  31379. }
  31380. $39 = $40 | 32;
  31381. $41 = ($39|0)==(120);
  31382. if (!($41)) {
  31383. if ($28) {
  31384. $$1160169 = $40;$$1165168 = 8;
  31385. label = 46;
  31386. break;
  31387. } else {
  31388. $$1160 = $40;$$1165 = $1;
  31389. label = 32;
  31390. break;
  31391. }
  31392. }
  31393. $42 = HEAP32[$6>>2]|0;
  31394. $43 = HEAP32[$7>>2]|0;
  31395. $44 = ($42>>>0)<($43>>>0);
  31396. if ($44) {
  31397. $45 = ((($42)) + 1|0);
  31398. HEAP32[$6>>2] = $45;
  31399. $46 = HEAP8[$42>>0]|0;
  31400. $47 = $46&255;
  31401. $50 = $47;
  31402. } else {
  31403. $48 = (___shgetc($0)|0);
  31404. $50 = $48;
  31405. }
  31406. $49 = ((16604) + ($50)|0);
  31407. $51 = HEAP8[$49>>0]|0;
  31408. $52 = ($51&255)>(15);
  31409. if ($52) {
  31410. $53 = HEAP32[$7>>2]|0;
  31411. $54 = ($53|0)!=(0|0);
  31412. if ($54) {
  31413. $55 = HEAP32[$6>>2]|0;
  31414. $56 = ((($55)) + -1|0);
  31415. HEAP32[$6>>2] = $56;
  31416. }
  31417. $57 = ($2|0)==(0);
  31418. if ($57) {
  31419. ___shlim($0,0);
  31420. $289 = 0;$290 = 0;
  31421. break L1;
  31422. }
  31423. if (!($54)) {
  31424. $289 = 0;$290 = 0;
  31425. break L1;
  31426. }
  31427. $58 = HEAP32[$6>>2]|0;
  31428. $59 = ((($58)) + -1|0);
  31429. HEAP32[$6>>2] = $59;
  31430. $289 = 0;$290 = 0;
  31431. break L1;
  31432. } else {
  31433. $$1160169 = $50;$$1165168 = 16;
  31434. label = 46;
  31435. }
  31436. } else {
  31437. $$166 = $28 ? 10 : $1;
  31438. $60 = ((16604) + ($$0159)|0);
  31439. $61 = HEAP8[$60>>0]|0;
  31440. $62 = $61&255;
  31441. $63 = ($62>>>0)<($$166>>>0);
  31442. if ($63) {
  31443. $$1160 = $$0159;$$1165 = $$166;
  31444. label = 32;
  31445. } else {
  31446. $64 = HEAP32[$7>>2]|0;
  31447. $65 = ($64|0)==(0|0);
  31448. if (!($65)) {
  31449. $66 = HEAP32[$6>>2]|0;
  31450. $67 = ((($66)) + -1|0);
  31451. HEAP32[$6>>2] = $67;
  31452. }
  31453. ___shlim($0,0);
  31454. $68 = (___errno_location()|0);
  31455. HEAP32[$68>>2] = 22;
  31456. $289 = 0;$290 = 0;
  31457. break L1;
  31458. }
  31459. }
  31460. } while(0);
  31461. L43: do {
  31462. if ((label|0) == 32) {
  31463. $69 = ($$1165|0)==(10);
  31464. if ($69) {
  31465. $70 = (($$1160) + -48)|0;
  31466. $71 = ($70>>>0)<(10);
  31467. if ($71) {
  31468. $$0154222 = 0;$74 = $70;
  31469. while(1) {
  31470. $72 = ($$0154222*10)|0;
  31471. $73 = (($72) + ($74))|0;
  31472. $75 = HEAP32[$6>>2]|0;
  31473. $76 = HEAP32[$7>>2]|0;
  31474. $77 = ($75>>>0)<($76>>>0);
  31475. if ($77) {
  31476. $78 = ((($75)) + 1|0);
  31477. HEAP32[$6>>2] = $78;
  31478. $79 = HEAP8[$75>>0]|0;
  31479. $80 = $79&255;
  31480. $$2161$be = $80;
  31481. } else {
  31482. $81 = (___shgetc($0)|0);
  31483. $$2161$be = $81;
  31484. }
  31485. $82 = (($$2161$be) + -48)|0;
  31486. $83 = ($82>>>0)<(10);
  31487. $84 = ($73>>>0)<(429496729);
  31488. $85 = $83 & $84;
  31489. if ($85) {
  31490. $$0154222 = $73;$74 = $82;
  31491. } else {
  31492. break;
  31493. }
  31494. }
  31495. $$2161$lcssa = $$2161$be;$291 = $73;$292 = 0;
  31496. } else {
  31497. $$2161$lcssa = $$1160;$291 = 0;$292 = 0;
  31498. }
  31499. $86 = (($$2161$lcssa) + -48)|0;
  31500. $87 = ($86>>>0)<(10);
  31501. if ($87) {
  31502. $$3162215 = $$2161$lcssa;$88 = $291;$89 = $292;$93 = $86;
  31503. while(1) {
  31504. $90 = (___muldi3(($88|0),($89|0),10,0)|0);
  31505. $91 = tempRet0;
  31506. $92 = ($93|0)<(0);
  31507. $94 = $92 << 31 >> 31;
  31508. $95 = $93 ^ -1;
  31509. $96 = $94 ^ -1;
  31510. $97 = ($91>>>0)>($96>>>0);
  31511. $98 = ($90>>>0)>($95>>>0);
  31512. $99 = ($91|0)==($96|0);
  31513. $100 = $99 & $98;
  31514. $101 = $97 | $100;
  31515. if ($101) {
  31516. $$1165167 = 10;$$8 = $$3162215;$293 = $88;$294 = $89;
  31517. label = 72;
  31518. break L43;
  31519. }
  31520. $102 = (_i64Add(($90|0),($91|0),($93|0),($94|0))|0);
  31521. $103 = tempRet0;
  31522. $104 = HEAP32[$6>>2]|0;
  31523. $105 = HEAP32[$7>>2]|0;
  31524. $106 = ($104>>>0)<($105>>>0);
  31525. if ($106) {
  31526. $107 = ((($104)) + 1|0);
  31527. HEAP32[$6>>2] = $107;
  31528. $108 = HEAP8[$104>>0]|0;
  31529. $109 = $108&255;
  31530. $$3162$be = $109;
  31531. } else {
  31532. $110 = (___shgetc($0)|0);
  31533. $$3162$be = $110;
  31534. }
  31535. $111 = (($$3162$be) + -48)|0;
  31536. $112 = ($111>>>0)<(10);
  31537. $113 = ($103>>>0)<(429496729);
  31538. $114 = ($102>>>0)<(2576980378);
  31539. $115 = ($103|0)==(429496729);
  31540. $116 = $115 & $114;
  31541. $117 = $113 | $116;
  31542. $or$cond7 = $112 & $117;
  31543. if ($or$cond7) {
  31544. $$3162215 = $$3162$be;$88 = $102;$89 = $103;$93 = $111;
  31545. } else {
  31546. break;
  31547. }
  31548. }
  31549. $118 = ($111>>>0)>(9);
  31550. if ($118) {
  31551. $$1158 = $$0157;$263 = $103;$265 = $102;
  31552. } else {
  31553. $$1165167 = 10;$$8 = $$3162$be;$293 = $102;$294 = $103;
  31554. label = 72;
  31555. }
  31556. } else {
  31557. $$1158 = $$0157;$263 = $292;$265 = $291;
  31558. }
  31559. } else {
  31560. $$1160169 = $$1160;$$1165168 = $$1165;
  31561. label = 46;
  31562. }
  31563. }
  31564. } while(0);
  31565. L63: do {
  31566. if ((label|0) == 46) {
  31567. $119 = (($$1165168) + -1)|0;
  31568. $120 = $119 & $$1165168;
  31569. $121 = ($120|0)==(0);
  31570. if ($121) {
  31571. $126 = ($$1165168*23)|0;
  31572. $127 = $126 >>> 5;
  31573. $128 = $127 & 7;
  31574. $129 = (16860 + ($128)|0);
  31575. $130 = HEAP8[$129>>0]|0;
  31576. $131 = $130 << 24 >> 24;
  31577. $132 = ((16604) + ($$1160169)|0);
  31578. $133 = HEAP8[$132>>0]|0;
  31579. $134 = $133&255;
  31580. $135 = ($134>>>0)<($$1165168>>>0);
  31581. if ($135) {
  31582. $$1155192 = 0;$138 = $134;
  31583. while(1) {
  31584. $136 = $$1155192 << $131;
  31585. $137 = $138 | $136;
  31586. $139 = HEAP32[$6>>2]|0;
  31587. $140 = HEAP32[$7>>2]|0;
  31588. $141 = ($139>>>0)<($140>>>0);
  31589. if ($141) {
  31590. $142 = ((($139)) + 1|0);
  31591. HEAP32[$6>>2] = $142;
  31592. $143 = HEAP8[$139>>0]|0;
  31593. $144 = $143&255;
  31594. $$4163$be = $144;
  31595. } else {
  31596. $145 = (___shgetc($0)|0);
  31597. $$4163$be = $145;
  31598. }
  31599. $146 = ((16604) + ($$4163$be)|0);
  31600. $147 = HEAP8[$146>>0]|0;
  31601. $148 = $147&255;
  31602. $149 = ($148>>>0)<($$1165168>>>0);
  31603. $150 = ($137>>>0)<(134217728);
  31604. $151 = $150 & $149;
  31605. if ($151) {
  31606. $$1155192 = $137;$138 = $148;
  31607. } else {
  31608. break;
  31609. }
  31610. }
  31611. $$4163$lcssa = $$4163$be;$155 = $147;$158 = 0;$160 = $137;
  31612. } else {
  31613. $$4163$lcssa = $$1160169;$155 = $133;$158 = 0;$160 = 0;
  31614. }
  31615. $152 = (_bitshift64Lshr(-1,-1,($131|0))|0);
  31616. $153 = tempRet0;
  31617. $154 = $155&255;
  31618. $156 = ($154>>>0)>=($$1165168>>>0);
  31619. $157 = ($158>>>0)>($153>>>0);
  31620. $159 = ($160>>>0)>($152>>>0);
  31621. $161 = ($158|0)==($153|0);
  31622. $162 = $161 & $159;
  31623. $163 = $157 | $162;
  31624. $or$cond187 = $156 | $163;
  31625. if ($or$cond187) {
  31626. $$1165167 = $$1165168;$$8 = $$4163$lcssa;$293 = $160;$294 = $158;
  31627. label = 72;
  31628. break;
  31629. } else {
  31630. $164 = $160;$165 = $158;$169 = $155;
  31631. }
  31632. while(1) {
  31633. $166 = (_bitshift64Shl(($164|0),($165|0),($131|0))|0);
  31634. $167 = tempRet0;
  31635. $168 = $169&255;
  31636. $170 = $168 | $166;
  31637. $171 = HEAP32[$6>>2]|0;
  31638. $172 = HEAP32[$7>>2]|0;
  31639. $173 = ($171>>>0)<($172>>>0);
  31640. if ($173) {
  31641. $174 = ((($171)) + 1|0);
  31642. HEAP32[$6>>2] = $174;
  31643. $175 = HEAP8[$171>>0]|0;
  31644. $176 = $175&255;
  31645. $$5$be = $176;
  31646. } else {
  31647. $177 = (___shgetc($0)|0);
  31648. $$5$be = $177;
  31649. }
  31650. $178 = ((16604) + ($$5$be)|0);
  31651. $179 = HEAP8[$178>>0]|0;
  31652. $180 = $179&255;
  31653. $181 = ($180>>>0)>=($$1165168>>>0);
  31654. $182 = ($167>>>0)>($153>>>0);
  31655. $183 = ($170>>>0)>($152>>>0);
  31656. $184 = ($167|0)==($153|0);
  31657. $185 = $184 & $183;
  31658. $186 = $182 | $185;
  31659. $or$cond = $181 | $186;
  31660. if ($or$cond) {
  31661. $$1165167 = $$1165168;$$8 = $$5$be;$293 = $170;$294 = $167;
  31662. label = 72;
  31663. break L63;
  31664. } else {
  31665. $164 = $170;$165 = $167;$169 = $179;
  31666. }
  31667. }
  31668. }
  31669. $122 = ((16604) + ($$1160169)|0);
  31670. $123 = HEAP8[$122>>0]|0;
  31671. $124 = $123&255;
  31672. $125 = ($124>>>0)<($$1165168>>>0);
  31673. if ($125) {
  31674. $$2156210 = 0;$189 = $124;
  31675. while(1) {
  31676. $187 = Math_imul($$2156210, $$1165168)|0;
  31677. $188 = (($189) + ($187))|0;
  31678. $190 = HEAP32[$6>>2]|0;
  31679. $191 = HEAP32[$7>>2]|0;
  31680. $192 = ($190>>>0)<($191>>>0);
  31681. if ($192) {
  31682. $193 = ((($190)) + 1|0);
  31683. HEAP32[$6>>2] = $193;
  31684. $194 = HEAP8[$190>>0]|0;
  31685. $195 = $194&255;
  31686. $$6$be = $195;
  31687. } else {
  31688. $196 = (___shgetc($0)|0);
  31689. $$6$be = $196;
  31690. }
  31691. $197 = ((16604) + ($$6$be)|0);
  31692. $198 = HEAP8[$197>>0]|0;
  31693. $199 = $198&255;
  31694. $200 = ($199>>>0)<($$1165168>>>0);
  31695. $201 = ($188>>>0)<(119304647);
  31696. $202 = $201 & $200;
  31697. if ($202) {
  31698. $$2156210 = $188;$189 = $199;
  31699. } else {
  31700. break;
  31701. }
  31702. }
  31703. $$6$lcssa = $$6$be;$204 = $198;$295 = $188;$296 = 0;
  31704. } else {
  31705. $$6$lcssa = $$1160169;$204 = $123;$295 = 0;$296 = 0;
  31706. }
  31707. $203 = $204&255;
  31708. $205 = ($203>>>0)<($$1165168>>>0);
  31709. if ($205) {
  31710. $206 = (___udivdi3(-1,-1,($$1165168|0),0)|0);
  31711. $207 = tempRet0;
  31712. $$7198 = $$6$lcssa;$209 = $296;$211 = $295;$218 = $204;
  31713. while(1) {
  31714. $208 = ($209>>>0)>($207>>>0);
  31715. $210 = ($211>>>0)>($206>>>0);
  31716. $212 = ($209|0)==($207|0);
  31717. $213 = $212 & $210;
  31718. $214 = $208 | $213;
  31719. if ($214) {
  31720. $$1165167 = $$1165168;$$8 = $$7198;$293 = $211;$294 = $209;
  31721. label = 72;
  31722. break L63;
  31723. }
  31724. $215 = (___muldi3(($211|0),($209|0),($$1165168|0),0)|0);
  31725. $216 = tempRet0;
  31726. $217 = $218&255;
  31727. $219 = $217 ^ -1;
  31728. $220 = ($216>>>0)>(4294967295);
  31729. $221 = ($215>>>0)>($219>>>0);
  31730. $222 = ($216|0)==(-1);
  31731. $223 = $222 & $221;
  31732. $224 = $220 | $223;
  31733. if ($224) {
  31734. $$1165167 = $$1165168;$$8 = $$7198;$293 = $211;$294 = $209;
  31735. label = 72;
  31736. break L63;
  31737. }
  31738. $225 = (_i64Add(($217|0),0,($215|0),($216|0))|0);
  31739. $226 = tempRet0;
  31740. $227 = HEAP32[$6>>2]|0;
  31741. $228 = HEAP32[$7>>2]|0;
  31742. $229 = ($227>>>0)<($228>>>0);
  31743. if ($229) {
  31744. $230 = ((($227)) + 1|0);
  31745. HEAP32[$6>>2] = $230;
  31746. $231 = HEAP8[$227>>0]|0;
  31747. $232 = $231&255;
  31748. $$7$be = $232;
  31749. } else {
  31750. $233 = (___shgetc($0)|0);
  31751. $$7$be = $233;
  31752. }
  31753. $234 = ((16604) + ($$7$be)|0);
  31754. $235 = HEAP8[$234>>0]|0;
  31755. $236 = $235&255;
  31756. $237 = ($236>>>0)<($$1165168>>>0);
  31757. if ($237) {
  31758. $$7198 = $$7$be;$209 = $226;$211 = $225;$218 = $235;
  31759. } else {
  31760. $$1165167 = $$1165168;$$8 = $$7$be;$293 = $225;$294 = $226;
  31761. label = 72;
  31762. break;
  31763. }
  31764. }
  31765. } else {
  31766. $$1165167 = $$1165168;$$8 = $$6$lcssa;$293 = $295;$294 = $296;
  31767. label = 72;
  31768. }
  31769. }
  31770. } while(0);
  31771. if ((label|0) == 72) {
  31772. $238 = ((16604) + ($$8)|0);
  31773. $239 = HEAP8[$238>>0]|0;
  31774. $240 = $239&255;
  31775. $241 = ($240>>>0)<($$1165167>>>0);
  31776. if ($241) {
  31777. while(1) {
  31778. $242 = HEAP32[$6>>2]|0;
  31779. $243 = HEAP32[$7>>2]|0;
  31780. $244 = ($242>>>0)<($243>>>0);
  31781. if ($244) {
  31782. $245 = ((($242)) + 1|0);
  31783. HEAP32[$6>>2] = $245;
  31784. $246 = HEAP8[$242>>0]|0;
  31785. $247 = $246&255;
  31786. $$9$be = $247;
  31787. } else {
  31788. $248 = (___shgetc($0)|0);
  31789. $$9$be = $248;
  31790. }
  31791. $249 = ((16604) + ($$9$be)|0);
  31792. $250 = HEAP8[$249>>0]|0;
  31793. $251 = $250&255;
  31794. $252 = ($251>>>0)<($$1165167>>>0);
  31795. if (!($252)) {
  31796. break;
  31797. }
  31798. }
  31799. $253 = (___errno_location()|0);
  31800. HEAP32[$253>>2] = 34;
  31801. $254 = $3 & 1;
  31802. $255 = ($254|0)==(0);
  31803. $256 = (0)==(0);
  31804. $257 = $255 & $256;
  31805. $$0157$ = $257 ? $$0157 : 0;
  31806. $$1158 = $$0157$;$263 = $4;$265 = $3;
  31807. } else {
  31808. $$1158 = $$0157;$263 = $294;$265 = $293;
  31809. }
  31810. }
  31811. $258 = HEAP32[$7>>2]|0;
  31812. $259 = ($258|0)==(0|0);
  31813. if (!($259)) {
  31814. $260 = HEAP32[$6>>2]|0;
  31815. $261 = ((($260)) + -1|0);
  31816. HEAP32[$6>>2] = $261;
  31817. }
  31818. $262 = ($263>>>0)<($4>>>0);
  31819. $264 = ($265>>>0)<($3>>>0);
  31820. $266 = ($263|0)==($4|0);
  31821. $267 = $266 & $264;
  31822. $268 = $262 | $267;
  31823. if (!($268)) {
  31824. $269 = $3 & 1;
  31825. $270 = ($269|0)!=(0);
  31826. $271 = (0)!=(0);
  31827. $272 = $270 | $271;
  31828. $273 = ($$1158|0)!=(0);
  31829. $or$cond12 = $272 | $273;
  31830. if (!($or$cond12)) {
  31831. $274 = (___errno_location()|0);
  31832. HEAP32[$274>>2] = 34;
  31833. $275 = (_i64Add(($3|0),($4|0),-1,-1)|0);
  31834. $276 = tempRet0;
  31835. $289 = $276;$290 = $275;
  31836. break;
  31837. }
  31838. $277 = ($263>>>0)>($4>>>0);
  31839. $278 = ($265>>>0)>($3>>>0);
  31840. $279 = ($263|0)==($4|0);
  31841. $280 = $279 & $278;
  31842. $281 = $277 | $280;
  31843. if ($281) {
  31844. $282 = (___errno_location()|0);
  31845. HEAP32[$282>>2] = 34;
  31846. $289 = $4;$290 = $3;
  31847. break;
  31848. }
  31849. }
  31850. $283 = ($$1158|0)<(0);
  31851. $284 = $283 << 31 >> 31;
  31852. $285 = $265 ^ $$1158;
  31853. $286 = $263 ^ $284;
  31854. $287 = (_i64Subtract(($285|0),($286|0),($$1158|0),($284|0))|0);
  31855. $288 = tempRet0;
  31856. $289 = $288;$290 = $287;
  31857. }
  31858. } while(0);
  31859. tempRet0 = ($289);
  31860. return ($290|0);
  31861. }
  31862. function ___shgetc($0) {
  31863. $0 = $0|0;
  31864. 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;
  31865. 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;
  31866. var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  31867. sp = STACKTOP;
  31868. $1 = ((($0)) + 104|0);
  31869. $2 = HEAP32[$1>>2]|0;
  31870. $3 = ($2|0)==(0);
  31871. if ($3) {
  31872. label = 3;
  31873. } else {
  31874. $4 = ((($0)) + 108|0);
  31875. $5 = HEAP32[$4>>2]|0;
  31876. $6 = ($5|0)<($2|0);
  31877. if ($6) {
  31878. label = 3;
  31879. } else {
  31880. label = 4;
  31881. }
  31882. }
  31883. if ((label|0) == 3) {
  31884. $7 = (___uflow($0)|0);
  31885. $8 = ($7|0)<(0);
  31886. if ($8) {
  31887. label = 4;
  31888. } else {
  31889. $10 = HEAP32[$1>>2]|0;
  31890. $11 = ($10|0)==(0);
  31891. $$phi$trans$insert = ((($0)) + 8|0);
  31892. if ($11) {
  31893. $$pre = HEAP32[$$phi$trans$insert>>2]|0;
  31894. $$phi$trans$insert28$phi$trans$insert = ((($0)) + 4|0);
  31895. $$pre29$pre = HEAP32[$$phi$trans$insert28$phi$trans$insert>>2]|0;
  31896. $$pre35 = ((($0)) + 108|0);
  31897. $$pre$phi34Z2D = $$pre35;$$sink = $$pre;$26 = $$pre;$29 = $$pre29$pre;
  31898. } else {
  31899. $12 = HEAP32[$$phi$trans$insert>>2]|0;
  31900. $13 = ((($0)) + 4|0);
  31901. $14 = HEAP32[$13>>2]|0;
  31902. $15 = $14;
  31903. $16 = (($12) - ($15))|0;
  31904. $17 = ((($0)) + 108|0);
  31905. $18 = HEAP32[$17>>2]|0;
  31906. $19 = (($10) - ($18))|0;
  31907. $20 = ($16|0)<($19|0);
  31908. $21 = $12;
  31909. if ($20) {
  31910. $$pre$phi34Z2D = $17;$$sink = $21;$26 = $21;$29 = $14;
  31911. } else {
  31912. $22 = (($19) + -1)|0;
  31913. $23 = (($14) + ($22)|0);
  31914. $$pre$phi34Z2D = $17;$$sink = $23;$26 = $21;$29 = $14;
  31915. }
  31916. }
  31917. $24 = ((($0)) + 100|0);
  31918. HEAP32[$24>>2] = $$sink;
  31919. $25 = ($26|0)==(0|0);
  31920. if (!($25)) {
  31921. $27 = $26;
  31922. $28 = $29;
  31923. $30 = HEAP32[$$pre$phi34Z2D>>2]|0;
  31924. $31 = (($27) + 1)|0;
  31925. $32 = (($31) - ($28))|0;
  31926. $33 = (($32) + ($30))|0;
  31927. HEAP32[$$pre$phi34Z2D>>2] = $33;
  31928. }
  31929. $34 = ((($29)) + -1|0);
  31930. $35 = HEAP8[$34>>0]|0;
  31931. $36 = $35&255;
  31932. $37 = ($36|0)==($7|0);
  31933. if ($37) {
  31934. $$0 = $7;
  31935. } else {
  31936. $38 = $7&255;
  31937. HEAP8[$34>>0] = $38;
  31938. $$0 = $7;
  31939. }
  31940. }
  31941. }
  31942. if ((label|0) == 4) {
  31943. $9 = ((($0)) + 100|0);
  31944. HEAP32[$9>>2] = 0;
  31945. $$0 = -1;
  31946. }
  31947. return ($$0|0);
  31948. }
  31949. function _isspace($0) {
  31950. $0 = $0|0;
  31951. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  31952. sp = STACKTOP;
  31953. $1 = ($0|0)==(32);
  31954. $2 = (($0) + -9)|0;
  31955. $3 = ($2>>>0)<(5);
  31956. $4 = $1 | $3;
  31957. $5 = $4&1;
  31958. return ($5|0);
  31959. }
  31960. function ___uflow($0) {
  31961. $0 = $0|0;
  31962. 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;
  31963. sp = STACKTOP;
  31964. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  31965. $1 = sp;
  31966. $2 = (___toread($0)|0);
  31967. $3 = ($2|0)==(0);
  31968. if ($3) {
  31969. $4 = ((($0)) + 32|0);
  31970. $5 = HEAP32[$4>>2]|0;
  31971. $6 = (FUNCTION_TABLE_iiii[$5 & 15]($0,$1,1)|0);
  31972. $7 = ($6|0)==(1);
  31973. if ($7) {
  31974. $8 = HEAP8[$1>>0]|0;
  31975. $9 = $8&255;
  31976. $$0 = $9;
  31977. } else {
  31978. $$0 = -1;
  31979. }
  31980. } else {
  31981. $$0 = -1;
  31982. }
  31983. STACKTOP = sp;return ($$0|0);
  31984. }
  31985. function ___toread($0) {
  31986. $0 = $0|0;
  31987. 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;
  31988. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $sext = 0, label = 0, sp = 0;
  31989. sp = STACKTOP;
  31990. $1 = ((($0)) + 74|0);
  31991. $2 = HEAP8[$1>>0]|0;
  31992. $3 = $2 << 24 >> 24;
  31993. $4 = (($3) + 255)|0;
  31994. $5 = $4 | $3;
  31995. $6 = $5&255;
  31996. HEAP8[$1>>0] = $6;
  31997. $7 = ((($0)) + 20|0);
  31998. $8 = HEAP32[$7>>2]|0;
  31999. $9 = ((($0)) + 28|0);
  32000. $10 = HEAP32[$9>>2]|0;
  32001. $11 = ($8>>>0)>($10>>>0);
  32002. if ($11) {
  32003. $12 = ((($0)) + 36|0);
  32004. $13 = HEAP32[$12>>2]|0;
  32005. (FUNCTION_TABLE_iiii[$13 & 15]($0,0,0)|0);
  32006. }
  32007. $14 = ((($0)) + 16|0);
  32008. HEAP32[$14>>2] = 0;
  32009. HEAP32[$9>>2] = 0;
  32010. HEAP32[$7>>2] = 0;
  32011. $15 = HEAP32[$0>>2]|0;
  32012. $16 = $15 & 4;
  32013. $17 = ($16|0)==(0);
  32014. if ($17) {
  32015. $19 = ((($0)) + 44|0);
  32016. $20 = HEAP32[$19>>2]|0;
  32017. $21 = ((($0)) + 48|0);
  32018. $22 = HEAP32[$21>>2]|0;
  32019. $23 = (($20) + ($22)|0);
  32020. $24 = ((($0)) + 8|0);
  32021. HEAP32[$24>>2] = $23;
  32022. $25 = ((($0)) + 4|0);
  32023. HEAP32[$25>>2] = $23;
  32024. $26 = $15 << 27;
  32025. $sext = $26 >> 31;
  32026. $$0 = $sext;
  32027. } else {
  32028. $18 = $15 | 32;
  32029. HEAP32[$0>>2] = $18;
  32030. $$0 = -1;
  32031. }
  32032. return ($$0|0);
  32033. }
  32034. function _strtol($0,$1,$2) {
  32035. $0 = $0|0;
  32036. $1 = $1|0;
  32037. $2 = $2|0;
  32038. var $3 = 0, $4 = 0, label = 0, sp = 0;
  32039. sp = STACKTOP;
  32040. $3 = (_strtox_768($0,$1,$2,-2147483648,0)|0);
  32041. $4 = tempRet0;
  32042. return ($3|0);
  32043. }
  32044. function _copysign($0,$1) {
  32045. $0 = +$0;
  32046. $1 = +$1;
  32047. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0.0, label = 0, sp = 0;
  32048. sp = STACKTOP;
  32049. HEAPF64[tempDoublePtr>>3] = $0;$2 = HEAP32[tempDoublePtr>>2]|0;
  32050. $3 = HEAP32[tempDoublePtr+4>>2]|0;
  32051. HEAPF64[tempDoublePtr>>3] = $1;$4 = HEAP32[tempDoublePtr>>2]|0;
  32052. $5 = HEAP32[tempDoublePtr+4>>2]|0;
  32053. $6 = $3 & 2147483647;
  32054. $7 = $5 & -2147483648;
  32055. $8 = $7 | $6;
  32056. HEAP32[tempDoublePtr>>2] = $2;HEAP32[tempDoublePtr+4>>2] = $8;$9 = +HEAPF64[tempDoublePtr>>3];
  32057. return (+$9);
  32058. }
  32059. function _strcmp($0,$1) {
  32060. $0 = $0|0;
  32061. $1 = $1|0;
  32062. 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;
  32063. var sp = 0;
  32064. sp = STACKTOP;
  32065. $2 = HEAP8[$0>>0]|0;
  32066. $3 = HEAP8[$1>>0]|0;
  32067. $4 = ($2<<24>>24)!=($3<<24>>24);
  32068. $5 = ($2<<24>>24)==(0);
  32069. $or$cond9 = $5 | $4;
  32070. if ($or$cond9) {
  32071. $$lcssa = $3;$$lcssa8 = $2;
  32072. } else {
  32073. $$011 = $1;$$0710 = $0;
  32074. while(1) {
  32075. $6 = ((($$0710)) + 1|0);
  32076. $7 = ((($$011)) + 1|0);
  32077. $8 = HEAP8[$6>>0]|0;
  32078. $9 = HEAP8[$7>>0]|0;
  32079. $10 = ($8<<24>>24)!=($9<<24>>24);
  32080. $11 = ($8<<24>>24)==(0);
  32081. $or$cond = $11 | $10;
  32082. if ($or$cond) {
  32083. $$lcssa = $9;$$lcssa8 = $8;
  32084. break;
  32085. } else {
  32086. $$011 = $7;$$0710 = $6;
  32087. }
  32088. }
  32089. }
  32090. $12 = $$lcssa8&255;
  32091. $13 = $$lcssa&255;
  32092. $14 = (($12) - ($13))|0;
  32093. return ($14|0);
  32094. }
  32095. function _memcmp($0,$1,$2) {
  32096. $0 = $0|0;
  32097. $1 = $1|0;
  32098. $2 = $2|0;
  32099. 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;
  32100. sp = STACKTOP;
  32101. $3 = ($2|0)==(0);
  32102. L1: do {
  32103. if ($3) {
  32104. $14 = 0;
  32105. } else {
  32106. $$01318 = $0;$$01417 = $2;$$019 = $1;
  32107. while(1) {
  32108. $4 = HEAP8[$$01318>>0]|0;
  32109. $5 = HEAP8[$$019>>0]|0;
  32110. $6 = ($4<<24>>24)==($5<<24>>24);
  32111. if (!($6)) {
  32112. break;
  32113. }
  32114. $7 = (($$01417) + -1)|0;
  32115. $8 = ((($$01318)) + 1|0);
  32116. $9 = ((($$019)) + 1|0);
  32117. $10 = ($7|0)==(0);
  32118. if ($10) {
  32119. $14 = 0;
  32120. break L1;
  32121. } else {
  32122. $$01318 = $8;$$01417 = $7;$$019 = $9;
  32123. }
  32124. }
  32125. $11 = $4&255;
  32126. $12 = $5&255;
  32127. $13 = (($11) - ($12))|0;
  32128. $14 = $13;
  32129. }
  32130. } while(0);
  32131. return ($14|0);
  32132. }
  32133. function _strncmp($0,$1,$2) {
  32134. $0 = $0|0;
  32135. $1 = $1|0;
  32136. $2 = $2|0;
  32137. var $$01824 = 0, $$01926 = 0, $$01926$in = 0, $$020 = 0, $$025 = 0, $$lcssa = 0, $$lcssa22 = 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;
  32138. var $23 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, $or$cond21 = 0, label = 0, sp = 0;
  32139. sp = STACKTOP;
  32140. $3 = ($2|0)==(0);
  32141. if ($3) {
  32142. $$020 = 0;
  32143. } else {
  32144. $4 = HEAP8[$0>>0]|0;
  32145. $5 = $4&255;
  32146. $6 = ($4<<24>>24)==(0);
  32147. $7 = HEAP8[$1>>0]|0;
  32148. $8 = $7&255;
  32149. L3: do {
  32150. if ($6) {
  32151. $$lcssa = $8;$$lcssa22 = $5;
  32152. } else {
  32153. $$01824 = $0;$$01926$in = $2;$$025 = $1;$10 = $7;$13 = $4;$22 = $8;$23 = $5;
  32154. while(1) {
  32155. $$01926 = (($$01926$in) + -1)|0;
  32156. $9 = ($10<<24>>24)!=(0);
  32157. $11 = ($$01926|0)!=(0);
  32158. $or$cond = $11 & $9;
  32159. $12 = ($13<<24>>24)==($10<<24>>24);
  32160. $or$cond21 = $12 & $or$cond;
  32161. if (!($or$cond21)) {
  32162. $$lcssa = $22;$$lcssa22 = $23;
  32163. break L3;
  32164. }
  32165. $14 = ((($$01824)) + 1|0);
  32166. $15 = ((($$025)) + 1|0);
  32167. $16 = HEAP8[$14>>0]|0;
  32168. $17 = $16&255;
  32169. $18 = ($16<<24>>24)==(0);
  32170. $19 = HEAP8[$15>>0]|0;
  32171. $20 = $19&255;
  32172. if ($18) {
  32173. $$lcssa = $20;$$lcssa22 = $17;
  32174. break;
  32175. } else {
  32176. $$01824 = $14;$$01926$in = $$01926;$$025 = $15;$10 = $19;$13 = $16;$22 = $20;$23 = $17;
  32177. }
  32178. }
  32179. }
  32180. } while(0);
  32181. $21 = (($$lcssa22) - ($$lcssa))|0;
  32182. $$020 = $21;
  32183. }
  32184. return ($$020|0);
  32185. }
  32186. function _vsprintf($0,$1,$2) {
  32187. $0 = $0|0;
  32188. $1 = $1|0;
  32189. $2 = $2|0;
  32190. var $3 = 0, label = 0, sp = 0;
  32191. sp = STACKTOP;
  32192. $3 = (_vsnprintf($0,2147483647,$1,$2)|0);
  32193. return ($3|0);
  32194. }
  32195. function _vsnprintf($0,$1,$2,$3) {
  32196. $0 = $0|0;
  32197. $1 = $1|0;
  32198. $2 = $2|0;
  32199. $3 = $3|0;
  32200. 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;
  32201. var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, dest = 0, label = 0, sp = 0, src = 0, stop = 0;
  32202. sp = STACKTOP;
  32203. STACKTOP = STACKTOP + 128|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(128|0);
  32204. $4 = sp + 124|0;
  32205. $5 = sp;
  32206. dest=$5; src=4348; 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));
  32207. $6 = (($1) + -1)|0;
  32208. $7 = ($6>>>0)>(2147483646);
  32209. if ($7) {
  32210. $8 = ($1|0)==(0);
  32211. if ($8) {
  32212. $$014 = $4;$$015 = 1;
  32213. label = 4;
  32214. } else {
  32215. $9 = (___errno_location()|0);
  32216. HEAP32[$9>>2] = 75;
  32217. $$0 = -1;
  32218. }
  32219. } else {
  32220. $$014 = $0;$$015 = $1;
  32221. label = 4;
  32222. }
  32223. if ((label|0) == 4) {
  32224. $10 = $$014;
  32225. $11 = (-2 - ($10))|0;
  32226. $12 = ($$015>>>0)>($11>>>0);
  32227. $$$015 = $12 ? $11 : $$015;
  32228. $13 = ((($5)) + 48|0);
  32229. HEAP32[$13>>2] = $$$015;
  32230. $14 = ((($5)) + 20|0);
  32231. HEAP32[$14>>2] = $$014;
  32232. $15 = ((($5)) + 44|0);
  32233. HEAP32[$15>>2] = $$014;
  32234. $16 = (($$014) + ($$$015)|0);
  32235. $17 = ((($5)) + 16|0);
  32236. HEAP32[$17>>2] = $16;
  32237. $18 = ((($5)) + 28|0);
  32238. HEAP32[$18>>2] = $16;
  32239. $19 = (_vfprintf($5,$2,$3)|0);
  32240. $20 = ($$$015|0)==(0);
  32241. if ($20) {
  32242. $$0 = $19;
  32243. } else {
  32244. $21 = HEAP32[$14>>2]|0;
  32245. $22 = HEAP32[$17>>2]|0;
  32246. $23 = ($21|0)==($22|0);
  32247. $24 = $23 << 31 >> 31;
  32248. $25 = (($21) + ($24)|0);
  32249. HEAP8[$25>>0] = 0;
  32250. $$0 = $19;
  32251. }
  32252. }
  32253. STACKTOP = sp;return ($$0|0);
  32254. }
  32255. function _vfprintf($0,$1,$2) {
  32256. $0 = $0|0;
  32257. $1 = $1|0;
  32258. $2 = $2|0;
  32259. 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;
  32260. 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;
  32261. var $8 = 0, $9 = 0, $vacopy_currentptr = 0, dest = 0, label = 0, sp = 0, stop = 0;
  32262. sp = STACKTOP;
  32263. STACKTOP = STACKTOP + 224|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(224|0);
  32264. $3 = sp + 120|0;
  32265. $4 = sp + 80|0;
  32266. $5 = sp;
  32267. $6 = sp + 136|0;
  32268. dest=$4; stop=dest+40|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  32269. $vacopy_currentptr = HEAP32[$2>>2]|0;
  32270. HEAP32[$3>>2] = $vacopy_currentptr;
  32271. $7 = (_printf_core(0,$1,$3,$5,$4)|0);
  32272. $8 = ($7|0)<(0);
  32273. if ($8) {
  32274. $$0 = -1;
  32275. } else {
  32276. $9 = ((($0)) + 76|0);
  32277. $10 = HEAP32[$9>>2]|0;
  32278. $11 = ($10|0)>(-1);
  32279. if ($11) {
  32280. $12 = (___lockfile($0)|0);
  32281. $40 = $12;
  32282. } else {
  32283. $40 = 0;
  32284. }
  32285. $13 = HEAP32[$0>>2]|0;
  32286. $14 = $13 & 32;
  32287. $15 = ((($0)) + 74|0);
  32288. $16 = HEAP8[$15>>0]|0;
  32289. $17 = ($16<<24>>24)<(1);
  32290. if ($17) {
  32291. $18 = $13 & -33;
  32292. HEAP32[$0>>2] = $18;
  32293. }
  32294. $19 = ((($0)) + 48|0);
  32295. $20 = HEAP32[$19>>2]|0;
  32296. $21 = ($20|0)==(0);
  32297. if ($21) {
  32298. $23 = ((($0)) + 44|0);
  32299. $24 = HEAP32[$23>>2]|0;
  32300. HEAP32[$23>>2] = $6;
  32301. $25 = ((($0)) + 28|0);
  32302. HEAP32[$25>>2] = $6;
  32303. $26 = ((($0)) + 20|0);
  32304. HEAP32[$26>>2] = $6;
  32305. HEAP32[$19>>2] = 80;
  32306. $27 = ((($6)) + 80|0);
  32307. $28 = ((($0)) + 16|0);
  32308. HEAP32[$28>>2] = $27;
  32309. $29 = (_printf_core($0,$1,$3,$5,$4)|0);
  32310. $30 = ($24|0)==(0|0);
  32311. if ($30) {
  32312. $$1 = $29;
  32313. } else {
  32314. $31 = ((($0)) + 36|0);
  32315. $32 = HEAP32[$31>>2]|0;
  32316. (FUNCTION_TABLE_iiii[$32 & 15]($0,0,0)|0);
  32317. $33 = HEAP32[$26>>2]|0;
  32318. $34 = ($33|0)==(0|0);
  32319. $$ = $34 ? -1 : $29;
  32320. HEAP32[$23>>2] = $24;
  32321. HEAP32[$19>>2] = 0;
  32322. HEAP32[$28>>2] = 0;
  32323. HEAP32[$25>>2] = 0;
  32324. HEAP32[$26>>2] = 0;
  32325. $$1 = $$;
  32326. }
  32327. } else {
  32328. $22 = (_printf_core($0,$1,$3,$5,$4)|0);
  32329. $$1 = $22;
  32330. }
  32331. $35 = HEAP32[$0>>2]|0;
  32332. $36 = $35 & 32;
  32333. $37 = ($36|0)==(0);
  32334. $$1$ = $37 ? $$1 : -1;
  32335. $38 = $35 | $14;
  32336. HEAP32[$0>>2] = $38;
  32337. $39 = ($40|0)==(0);
  32338. if (!($39)) {
  32339. ___unlockfile($0);
  32340. }
  32341. $$0 = $$1$;
  32342. }
  32343. STACKTOP = sp;return ($$0|0);
  32344. }
  32345. function _printf_core($0,$1,$2,$3,$4) {
  32346. $0 = $0|0;
  32347. $1 = $1|0;
  32348. $2 = $2|0;
  32349. $3 = $3|0;
  32350. $4 = $4|0;
  32351. 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;
  32352. 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;
  32353. 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;
  32354. 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;
  32355. 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;
  32356. 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;
  32357. 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;
  32358. 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;
  32359. 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;
  32360. 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;
  32361. 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;
  32362. 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;
  32363. 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;
  32364. 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;
  32365. 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;
  32366. 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;
  32367. 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;
  32368. 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;
  32369. 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;
  32370. 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;
  32371. 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;
  32372. 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;
  32373. sp = STACKTOP;
  32374. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  32375. $5 = sp + 16|0;
  32376. $6 = sp;
  32377. $7 = sp + 24|0;
  32378. $8 = sp + 8|0;
  32379. $9 = sp + 20|0;
  32380. HEAP32[$5>>2] = $1;
  32381. $10 = ($0|0)!=(0|0);
  32382. $11 = ((($7)) + 40|0);
  32383. $12 = $11;
  32384. $13 = ((($7)) + 39|0);
  32385. $14 = ((($8)) + 4|0);
  32386. $$0243 = 0;$$0247 = 0;$$0269 = 0;$21 = $1;
  32387. L1: while(1) {
  32388. $15 = ($$0247|0)>(-1);
  32389. do {
  32390. if ($15) {
  32391. $16 = (2147483647 - ($$0247))|0;
  32392. $17 = ($$0243|0)>($16|0);
  32393. if ($17) {
  32394. $18 = (___errno_location()|0);
  32395. HEAP32[$18>>2] = 75;
  32396. $$1248 = -1;
  32397. break;
  32398. } else {
  32399. $19 = (($$0243) + ($$0247))|0;
  32400. $$1248 = $19;
  32401. break;
  32402. }
  32403. } else {
  32404. $$1248 = $$0247;
  32405. }
  32406. } while(0);
  32407. $20 = HEAP8[$21>>0]|0;
  32408. $22 = ($20<<24>>24)==(0);
  32409. if ($22) {
  32410. label = 87;
  32411. break;
  32412. } else {
  32413. $23 = $20;$25 = $21;
  32414. }
  32415. L9: while(1) {
  32416. switch ($23<<24>>24) {
  32417. case 37: {
  32418. $$0249306 = $25;$27 = $25;
  32419. label = 9;
  32420. break L9;
  32421. break;
  32422. }
  32423. case 0: {
  32424. $$0249$lcssa = $25;$39 = $25;
  32425. break L9;
  32426. break;
  32427. }
  32428. default: {
  32429. }
  32430. }
  32431. $24 = ((($25)) + 1|0);
  32432. HEAP32[$5>>2] = $24;
  32433. $$pre = HEAP8[$24>>0]|0;
  32434. $23 = $$pre;$25 = $24;
  32435. }
  32436. L12: do {
  32437. if ((label|0) == 9) {
  32438. while(1) {
  32439. label = 0;
  32440. $26 = ((($27)) + 1|0);
  32441. $28 = HEAP8[$26>>0]|0;
  32442. $29 = ($28<<24>>24)==(37);
  32443. if (!($29)) {
  32444. $$0249$lcssa = $$0249306;$39 = $27;
  32445. break L12;
  32446. }
  32447. $30 = ((($$0249306)) + 1|0);
  32448. $31 = ((($27)) + 2|0);
  32449. HEAP32[$5>>2] = $31;
  32450. $32 = HEAP8[$31>>0]|0;
  32451. $33 = ($32<<24>>24)==(37);
  32452. if ($33) {
  32453. $$0249306 = $30;$27 = $31;
  32454. label = 9;
  32455. } else {
  32456. $$0249$lcssa = $30;$39 = $31;
  32457. break;
  32458. }
  32459. }
  32460. }
  32461. } while(0);
  32462. $34 = $$0249$lcssa;
  32463. $35 = $21;
  32464. $36 = (($34) - ($35))|0;
  32465. if ($10) {
  32466. _out($0,$21,$36);
  32467. }
  32468. $37 = ($36|0)==(0);
  32469. if (!($37)) {
  32470. $$0269$phi = $$0269;$$0243 = $36;$$0247 = $$1248;$21 = $39;$$0269 = $$0269$phi;
  32471. continue;
  32472. }
  32473. $38 = ((($39)) + 1|0);
  32474. $40 = HEAP8[$38>>0]|0;
  32475. $41 = $40 << 24 >> 24;
  32476. $isdigittmp = (($41) + -48)|0;
  32477. $isdigit = ($isdigittmp>>>0)<(10);
  32478. if ($isdigit) {
  32479. $42 = ((($39)) + 2|0);
  32480. $43 = HEAP8[$42>>0]|0;
  32481. $44 = ($43<<24>>24)==(36);
  32482. $45 = ((($39)) + 3|0);
  32483. $$377 = $44 ? $45 : $38;
  32484. $$$0269 = $44 ? 1 : $$0269;
  32485. $isdigittmp$ = $44 ? $isdigittmp : -1;
  32486. $$0253 = $isdigittmp$;$$1270 = $$$0269;$storemerge = $$377;
  32487. } else {
  32488. $$0253 = -1;$$1270 = $$0269;$storemerge = $38;
  32489. }
  32490. HEAP32[$5>>2] = $storemerge;
  32491. $46 = HEAP8[$storemerge>>0]|0;
  32492. $47 = $46 << 24 >> 24;
  32493. $48 = (($47) + -32)|0;
  32494. $49 = ($48>>>0)<(32);
  32495. L24: do {
  32496. if ($49) {
  32497. $$0262311 = 0;$329 = $46;$51 = $48;$storemerge273310 = $storemerge;
  32498. while(1) {
  32499. $50 = 1 << $51;
  32500. $52 = $50 & 75913;
  32501. $53 = ($52|0)==(0);
  32502. if ($53) {
  32503. $$0262$lcssa = $$0262311;$$lcssa295 = $329;$62 = $storemerge273310;
  32504. break L24;
  32505. }
  32506. $54 = $50 | $$0262311;
  32507. $55 = ((($storemerge273310)) + 1|0);
  32508. HEAP32[$5>>2] = $55;
  32509. $56 = HEAP8[$55>>0]|0;
  32510. $57 = $56 << 24 >> 24;
  32511. $58 = (($57) + -32)|0;
  32512. $59 = ($58>>>0)<(32);
  32513. if ($59) {
  32514. $$0262311 = $54;$329 = $56;$51 = $58;$storemerge273310 = $55;
  32515. } else {
  32516. $$0262$lcssa = $54;$$lcssa295 = $56;$62 = $55;
  32517. break;
  32518. }
  32519. }
  32520. } else {
  32521. $$0262$lcssa = 0;$$lcssa295 = $46;$62 = $storemerge;
  32522. }
  32523. } while(0);
  32524. $60 = ($$lcssa295<<24>>24)==(42);
  32525. if ($60) {
  32526. $61 = ((($62)) + 1|0);
  32527. $63 = HEAP8[$61>>0]|0;
  32528. $64 = $63 << 24 >> 24;
  32529. $isdigittmp276 = (($64) + -48)|0;
  32530. $isdigit277 = ($isdigittmp276>>>0)<(10);
  32531. if ($isdigit277) {
  32532. $65 = ((($62)) + 2|0);
  32533. $66 = HEAP8[$65>>0]|0;
  32534. $67 = ($66<<24>>24)==(36);
  32535. if ($67) {
  32536. $68 = (($4) + ($isdigittmp276<<2)|0);
  32537. HEAP32[$68>>2] = 10;
  32538. $69 = HEAP8[$61>>0]|0;
  32539. $70 = $69 << 24 >> 24;
  32540. $71 = (($70) + -48)|0;
  32541. $72 = (($3) + ($71<<3)|0);
  32542. $73 = $72;
  32543. $74 = $73;
  32544. $75 = HEAP32[$74>>2]|0;
  32545. $76 = (($73) + 4)|0;
  32546. $77 = $76;
  32547. $78 = HEAP32[$77>>2]|0;
  32548. $79 = ((($62)) + 3|0);
  32549. $$0259 = $75;$$2271 = 1;$storemerge278 = $79;
  32550. } else {
  32551. label = 23;
  32552. }
  32553. } else {
  32554. label = 23;
  32555. }
  32556. if ((label|0) == 23) {
  32557. label = 0;
  32558. $80 = ($$1270|0)==(0);
  32559. if (!($80)) {
  32560. $$0 = -1;
  32561. break;
  32562. }
  32563. if ($10) {
  32564. $arglist_current = HEAP32[$2>>2]|0;
  32565. $81 = $arglist_current;
  32566. $82 = ((0) + 4|0);
  32567. $expanded4 = $82;
  32568. $expanded = (($expanded4) - 1)|0;
  32569. $83 = (($81) + ($expanded))|0;
  32570. $84 = ((0) + 4|0);
  32571. $expanded8 = $84;
  32572. $expanded7 = (($expanded8) - 1)|0;
  32573. $expanded6 = $expanded7 ^ -1;
  32574. $85 = $83 & $expanded6;
  32575. $86 = $85;
  32576. $87 = HEAP32[$86>>2]|0;
  32577. $arglist_next = ((($86)) + 4|0);
  32578. HEAP32[$2>>2] = $arglist_next;
  32579. $$0259 = $87;$$2271 = 0;$storemerge278 = $61;
  32580. } else {
  32581. $$0259 = 0;$$2271 = 0;$storemerge278 = $61;
  32582. }
  32583. }
  32584. HEAP32[$5>>2] = $storemerge278;
  32585. $88 = ($$0259|0)<(0);
  32586. $89 = $$0262$lcssa | 8192;
  32587. $90 = (0 - ($$0259))|0;
  32588. $$$0262 = $88 ? $89 : $$0262$lcssa;
  32589. $$$0259 = $88 ? $90 : $$0259;
  32590. $$1260 = $$$0259;$$1263 = $$$0262;$$3272 = $$2271;$94 = $storemerge278;
  32591. } else {
  32592. $91 = (_getint($5)|0);
  32593. $92 = ($91|0)<(0);
  32594. if ($92) {
  32595. $$0 = -1;
  32596. break;
  32597. }
  32598. $$pre346 = HEAP32[$5>>2]|0;
  32599. $$1260 = $91;$$1263 = $$0262$lcssa;$$3272 = $$1270;$94 = $$pre346;
  32600. }
  32601. $93 = HEAP8[$94>>0]|0;
  32602. $95 = ($93<<24>>24)==(46);
  32603. do {
  32604. if ($95) {
  32605. $96 = ((($94)) + 1|0);
  32606. $97 = HEAP8[$96>>0]|0;
  32607. $98 = ($97<<24>>24)==(42);
  32608. if (!($98)) {
  32609. $125 = ((($94)) + 1|0);
  32610. HEAP32[$5>>2] = $125;
  32611. $126 = (_getint($5)|0);
  32612. $$pre347$pre = HEAP32[$5>>2]|0;
  32613. $$0254 = $126;$$pre347 = $$pre347$pre;
  32614. break;
  32615. }
  32616. $99 = ((($94)) + 2|0);
  32617. $100 = HEAP8[$99>>0]|0;
  32618. $101 = $100 << 24 >> 24;
  32619. $isdigittmp274 = (($101) + -48)|0;
  32620. $isdigit275 = ($isdigittmp274>>>0)<(10);
  32621. if ($isdigit275) {
  32622. $102 = ((($94)) + 3|0);
  32623. $103 = HEAP8[$102>>0]|0;
  32624. $104 = ($103<<24>>24)==(36);
  32625. if ($104) {
  32626. $105 = (($4) + ($isdigittmp274<<2)|0);
  32627. HEAP32[$105>>2] = 10;
  32628. $106 = HEAP8[$99>>0]|0;
  32629. $107 = $106 << 24 >> 24;
  32630. $108 = (($107) + -48)|0;
  32631. $109 = (($3) + ($108<<3)|0);
  32632. $110 = $109;
  32633. $111 = $110;
  32634. $112 = HEAP32[$111>>2]|0;
  32635. $113 = (($110) + 4)|0;
  32636. $114 = $113;
  32637. $115 = HEAP32[$114>>2]|0;
  32638. $116 = ((($94)) + 4|0);
  32639. HEAP32[$5>>2] = $116;
  32640. $$0254 = $112;$$pre347 = $116;
  32641. break;
  32642. }
  32643. }
  32644. $117 = ($$3272|0)==(0);
  32645. if (!($117)) {
  32646. $$0 = -1;
  32647. break L1;
  32648. }
  32649. if ($10) {
  32650. $arglist_current2 = HEAP32[$2>>2]|0;
  32651. $118 = $arglist_current2;
  32652. $119 = ((0) + 4|0);
  32653. $expanded11 = $119;
  32654. $expanded10 = (($expanded11) - 1)|0;
  32655. $120 = (($118) + ($expanded10))|0;
  32656. $121 = ((0) + 4|0);
  32657. $expanded15 = $121;
  32658. $expanded14 = (($expanded15) - 1)|0;
  32659. $expanded13 = $expanded14 ^ -1;
  32660. $122 = $120 & $expanded13;
  32661. $123 = $122;
  32662. $124 = HEAP32[$123>>2]|0;
  32663. $arglist_next3 = ((($123)) + 4|0);
  32664. HEAP32[$2>>2] = $arglist_next3;
  32665. $330 = $124;
  32666. } else {
  32667. $330 = 0;
  32668. }
  32669. HEAP32[$5>>2] = $99;
  32670. $$0254 = $330;$$pre347 = $99;
  32671. } else {
  32672. $$0254 = -1;$$pre347 = $94;
  32673. }
  32674. } while(0);
  32675. $$0252 = 0;$128 = $$pre347;
  32676. while(1) {
  32677. $127 = HEAP8[$128>>0]|0;
  32678. $129 = $127 << 24 >> 24;
  32679. $130 = (($129) + -65)|0;
  32680. $131 = ($130>>>0)>(57);
  32681. if ($131) {
  32682. $$0 = -1;
  32683. break L1;
  32684. }
  32685. $132 = ((($128)) + 1|0);
  32686. HEAP32[$5>>2] = $132;
  32687. $133 = HEAP8[$128>>0]|0;
  32688. $134 = $133 << 24 >> 24;
  32689. $135 = (($134) + -65)|0;
  32690. $136 = ((16869 + (($$0252*58)|0)|0) + ($135)|0);
  32691. $137 = HEAP8[$136>>0]|0;
  32692. $138 = $137&255;
  32693. $139 = (($138) + -1)|0;
  32694. $140 = ($139>>>0)<(8);
  32695. if ($140) {
  32696. $$0252 = $138;$128 = $132;
  32697. } else {
  32698. break;
  32699. }
  32700. }
  32701. $141 = ($137<<24>>24)==(0);
  32702. if ($141) {
  32703. $$0 = -1;
  32704. break;
  32705. }
  32706. $142 = ($137<<24>>24)==(19);
  32707. $143 = ($$0253|0)>(-1);
  32708. do {
  32709. if ($142) {
  32710. if ($143) {
  32711. $$0 = -1;
  32712. break L1;
  32713. } else {
  32714. label = 49;
  32715. }
  32716. } else {
  32717. if ($143) {
  32718. $144 = (($4) + ($$0253<<2)|0);
  32719. HEAP32[$144>>2] = $138;
  32720. $145 = (($3) + ($$0253<<3)|0);
  32721. $146 = $145;
  32722. $147 = $146;
  32723. $148 = HEAP32[$147>>2]|0;
  32724. $149 = (($146) + 4)|0;
  32725. $150 = $149;
  32726. $151 = HEAP32[$150>>2]|0;
  32727. $152 = $6;
  32728. $153 = $152;
  32729. HEAP32[$153>>2] = $148;
  32730. $154 = (($152) + 4)|0;
  32731. $155 = $154;
  32732. HEAP32[$155>>2] = $151;
  32733. label = 49;
  32734. break;
  32735. }
  32736. if (!($10)) {
  32737. $$0 = 0;
  32738. break L1;
  32739. }
  32740. _pop_arg($6,$138,$2);
  32741. }
  32742. } while(0);
  32743. if ((label|0) == 49) {
  32744. label = 0;
  32745. if (!($10)) {
  32746. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  32747. continue;
  32748. }
  32749. }
  32750. $156 = HEAP8[$128>>0]|0;
  32751. $157 = $156 << 24 >> 24;
  32752. $158 = ($$0252|0)!=(0);
  32753. $159 = $157 & 15;
  32754. $160 = ($159|0)==(3);
  32755. $or$cond281 = $158 & $160;
  32756. $161 = $157 & -33;
  32757. $$0235 = $or$cond281 ? $161 : $157;
  32758. $162 = $$1263 & 8192;
  32759. $163 = ($162|0)==(0);
  32760. $164 = $$1263 & -65537;
  32761. $$1263$ = $163 ? $$1263 : $164;
  32762. L71: do {
  32763. switch ($$0235|0) {
  32764. case 110: {
  32765. $trunc = $$0252&255;
  32766. switch ($trunc<<24>>24) {
  32767. case 0: {
  32768. $171 = HEAP32[$6>>2]|0;
  32769. HEAP32[$171>>2] = $$1248;
  32770. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  32771. continue L1;
  32772. break;
  32773. }
  32774. case 1: {
  32775. $172 = HEAP32[$6>>2]|0;
  32776. HEAP32[$172>>2] = $$1248;
  32777. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  32778. continue L1;
  32779. break;
  32780. }
  32781. case 2: {
  32782. $173 = ($$1248|0)<(0);
  32783. $174 = $173 << 31 >> 31;
  32784. $175 = HEAP32[$6>>2]|0;
  32785. $176 = $175;
  32786. $177 = $176;
  32787. HEAP32[$177>>2] = $$1248;
  32788. $178 = (($176) + 4)|0;
  32789. $179 = $178;
  32790. HEAP32[$179>>2] = $174;
  32791. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  32792. continue L1;
  32793. break;
  32794. }
  32795. case 3: {
  32796. $180 = $$1248&65535;
  32797. $181 = HEAP32[$6>>2]|0;
  32798. HEAP16[$181>>1] = $180;
  32799. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  32800. continue L1;
  32801. break;
  32802. }
  32803. case 4: {
  32804. $182 = $$1248&255;
  32805. $183 = HEAP32[$6>>2]|0;
  32806. HEAP8[$183>>0] = $182;
  32807. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  32808. continue L1;
  32809. break;
  32810. }
  32811. case 6: {
  32812. $184 = HEAP32[$6>>2]|0;
  32813. HEAP32[$184>>2] = $$1248;
  32814. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  32815. continue L1;
  32816. break;
  32817. }
  32818. case 7: {
  32819. $185 = ($$1248|0)<(0);
  32820. $186 = $185 << 31 >> 31;
  32821. $187 = HEAP32[$6>>2]|0;
  32822. $188 = $187;
  32823. $189 = $188;
  32824. HEAP32[$189>>2] = $$1248;
  32825. $190 = (($188) + 4)|0;
  32826. $191 = $190;
  32827. HEAP32[$191>>2] = $186;
  32828. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  32829. continue L1;
  32830. break;
  32831. }
  32832. default: {
  32833. $$0243 = 0;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  32834. continue L1;
  32835. }
  32836. }
  32837. break;
  32838. }
  32839. case 112: {
  32840. $192 = ($$0254>>>0)>(8);
  32841. $193 = $192 ? $$0254 : 8;
  32842. $194 = $$1263$ | 8;
  32843. $$1236 = 120;$$1255 = $193;$$3265 = $194;
  32844. label = 61;
  32845. break;
  32846. }
  32847. case 88: case 120: {
  32848. $$1236 = $$0235;$$1255 = $$0254;$$3265 = $$1263$;
  32849. label = 61;
  32850. break;
  32851. }
  32852. case 111: {
  32853. $210 = $6;
  32854. $211 = $210;
  32855. $212 = HEAP32[$211>>2]|0;
  32856. $213 = (($210) + 4)|0;
  32857. $214 = $213;
  32858. $215 = HEAP32[$214>>2]|0;
  32859. $216 = (_fmt_o($212,$215,$11)|0);
  32860. $217 = $$1263$ & 8;
  32861. $218 = ($217|0)==(0);
  32862. $219 = $216;
  32863. $220 = (($12) - ($219))|0;
  32864. $221 = ($$0254|0)>($220|0);
  32865. $222 = (($220) + 1)|0;
  32866. $223 = $218 | $221;
  32867. $$0254$$0254$ = $223 ? $$0254 : $222;
  32868. $$0228 = $216;$$1233 = 0;$$1238 = 17333;$$2256 = $$0254$$0254$;$$4266 = $$1263$;$248 = $212;$250 = $215;
  32869. label = 67;
  32870. break;
  32871. }
  32872. case 105: case 100: {
  32873. $224 = $6;
  32874. $225 = $224;
  32875. $226 = HEAP32[$225>>2]|0;
  32876. $227 = (($224) + 4)|0;
  32877. $228 = $227;
  32878. $229 = HEAP32[$228>>2]|0;
  32879. $230 = ($229|0)<(0);
  32880. if ($230) {
  32881. $231 = (_i64Subtract(0,0,($226|0),($229|0))|0);
  32882. $232 = tempRet0;
  32883. $233 = $6;
  32884. $234 = $233;
  32885. HEAP32[$234>>2] = $231;
  32886. $235 = (($233) + 4)|0;
  32887. $236 = $235;
  32888. HEAP32[$236>>2] = $232;
  32889. $$0232 = 1;$$0237 = 17333;$242 = $231;$243 = $232;
  32890. label = 66;
  32891. break L71;
  32892. } else {
  32893. $237 = $$1263$ & 2048;
  32894. $238 = ($237|0)==(0);
  32895. $239 = $$1263$ & 1;
  32896. $240 = ($239|0)==(0);
  32897. $$ = $240 ? 17333 : (17335);
  32898. $$$ = $238 ? $$ : (17334);
  32899. $241 = $$1263$ & 2049;
  32900. $narrow = ($241|0)!=(0);
  32901. $$284$ = $narrow&1;
  32902. $$0232 = $$284$;$$0237 = $$$;$242 = $226;$243 = $229;
  32903. label = 66;
  32904. break L71;
  32905. }
  32906. break;
  32907. }
  32908. case 117: {
  32909. $165 = $6;
  32910. $166 = $165;
  32911. $167 = HEAP32[$166>>2]|0;
  32912. $168 = (($165) + 4)|0;
  32913. $169 = $168;
  32914. $170 = HEAP32[$169>>2]|0;
  32915. $$0232 = 0;$$0237 = 17333;$242 = $167;$243 = $170;
  32916. label = 66;
  32917. break;
  32918. }
  32919. case 99: {
  32920. $259 = $6;
  32921. $260 = $259;
  32922. $261 = HEAP32[$260>>2]|0;
  32923. $262 = (($259) + 4)|0;
  32924. $263 = $262;
  32925. $264 = HEAP32[$263>>2]|0;
  32926. $265 = $261&255;
  32927. HEAP8[$13>>0] = $265;
  32928. $$2 = $13;$$2234 = 0;$$2239 = 17333;$$2251 = $11;$$5 = 1;$$6268 = $164;
  32929. break;
  32930. }
  32931. case 109: {
  32932. $266 = (___errno_location()|0);
  32933. $267 = HEAP32[$266>>2]|0;
  32934. $268 = (_strerror($267)|0);
  32935. $$1 = $268;
  32936. label = 71;
  32937. break;
  32938. }
  32939. case 115: {
  32940. $269 = HEAP32[$6>>2]|0;
  32941. $270 = ($269|0)!=(0|0);
  32942. $271 = $270 ? $269 : 17343;
  32943. $$1 = $271;
  32944. label = 71;
  32945. break;
  32946. }
  32947. case 67: {
  32948. $278 = $6;
  32949. $279 = $278;
  32950. $280 = HEAP32[$279>>2]|0;
  32951. $281 = (($278) + 4)|0;
  32952. $282 = $281;
  32953. $283 = HEAP32[$282>>2]|0;
  32954. HEAP32[$8>>2] = $280;
  32955. HEAP32[$14>>2] = 0;
  32956. HEAP32[$6>>2] = $8;
  32957. $$4258355 = -1;$331 = $8;
  32958. label = 75;
  32959. break;
  32960. }
  32961. case 83: {
  32962. $$pre349 = HEAP32[$6>>2]|0;
  32963. $284 = ($$0254|0)==(0);
  32964. if ($284) {
  32965. _pad_674($0,32,$$1260,0,$$1263$);
  32966. $$0240$lcssa357 = 0;
  32967. label = 84;
  32968. } else {
  32969. $$4258355 = $$0254;$331 = $$pre349;
  32970. label = 75;
  32971. }
  32972. break;
  32973. }
  32974. case 65: case 71: case 70: case 69: case 97: case 103: case 102: case 101: {
  32975. $306 = +HEAPF64[$6>>3];
  32976. $307 = (_fmt_fp($0,$306,$$1260,$$0254,$$1263$,$$0235)|0);
  32977. $$0243 = $307;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  32978. continue L1;
  32979. break;
  32980. }
  32981. default: {
  32982. $$2 = $21;$$2234 = 0;$$2239 = 17333;$$2251 = $11;$$5 = $$0254;$$6268 = $$1263$;
  32983. }
  32984. }
  32985. } while(0);
  32986. L95: do {
  32987. if ((label|0) == 61) {
  32988. label = 0;
  32989. $195 = $6;
  32990. $196 = $195;
  32991. $197 = HEAP32[$196>>2]|0;
  32992. $198 = (($195) + 4)|0;
  32993. $199 = $198;
  32994. $200 = HEAP32[$199>>2]|0;
  32995. $201 = $$1236 & 32;
  32996. $202 = (_fmt_x($197,$200,$11,$201)|0);
  32997. $203 = ($197|0)==(0);
  32998. $204 = ($200|0)==(0);
  32999. $205 = $203 & $204;
  33000. $206 = $$3265 & 8;
  33001. $207 = ($206|0)==(0);
  33002. $or$cond283 = $207 | $205;
  33003. $208 = $$1236 >> 4;
  33004. $209 = (17333 + ($208)|0);
  33005. $$289 = $or$cond283 ? 17333 : $209;
  33006. $$290 = $or$cond283 ? 0 : 2;
  33007. $$0228 = $202;$$1233 = $$290;$$1238 = $$289;$$2256 = $$1255;$$4266 = $$3265;$248 = $197;$250 = $200;
  33008. label = 67;
  33009. }
  33010. else if ((label|0) == 66) {
  33011. label = 0;
  33012. $244 = (_fmt_u($242,$243,$11)|0);
  33013. $$0228 = $244;$$1233 = $$0232;$$1238 = $$0237;$$2256 = $$0254;$$4266 = $$1263$;$248 = $242;$250 = $243;
  33014. label = 67;
  33015. }
  33016. else if ((label|0) == 71) {
  33017. label = 0;
  33018. $272 = (_memchr($$1,0,$$0254)|0);
  33019. $273 = ($272|0)==(0|0);
  33020. $274 = $272;
  33021. $275 = $$1;
  33022. $276 = (($274) - ($275))|0;
  33023. $277 = (($$1) + ($$0254)|0);
  33024. $$3257 = $273 ? $$0254 : $276;
  33025. $$1250 = $273 ? $277 : $272;
  33026. $$2 = $$1;$$2234 = 0;$$2239 = 17333;$$2251 = $$1250;$$5 = $$3257;$$6268 = $164;
  33027. }
  33028. else if ((label|0) == 75) {
  33029. label = 0;
  33030. $$0229322 = $331;$$0240321 = 0;$$1244320 = 0;
  33031. while(1) {
  33032. $285 = HEAP32[$$0229322>>2]|0;
  33033. $286 = ($285|0)==(0);
  33034. if ($286) {
  33035. $$0240$lcssa = $$0240321;$$2245 = $$1244320;
  33036. break;
  33037. }
  33038. $287 = (_wctomb($9,$285)|0);
  33039. $288 = ($287|0)<(0);
  33040. $289 = (($$4258355) - ($$0240321))|0;
  33041. $290 = ($287>>>0)>($289>>>0);
  33042. $or$cond286 = $288 | $290;
  33043. if ($or$cond286) {
  33044. $$0240$lcssa = $$0240321;$$2245 = $287;
  33045. break;
  33046. }
  33047. $291 = ((($$0229322)) + 4|0);
  33048. $292 = (($287) + ($$0240321))|0;
  33049. $293 = ($$4258355>>>0)>($292>>>0);
  33050. if ($293) {
  33051. $$0229322 = $291;$$0240321 = $292;$$1244320 = $287;
  33052. } else {
  33053. $$0240$lcssa = $292;$$2245 = $287;
  33054. break;
  33055. }
  33056. }
  33057. $294 = ($$2245|0)<(0);
  33058. if ($294) {
  33059. $$0 = -1;
  33060. break L1;
  33061. }
  33062. _pad_674($0,32,$$1260,$$0240$lcssa,$$1263$);
  33063. $295 = ($$0240$lcssa|0)==(0);
  33064. if ($295) {
  33065. $$0240$lcssa357 = 0;
  33066. label = 84;
  33067. } else {
  33068. $$1230333 = $331;$$1241332 = 0;
  33069. while(1) {
  33070. $296 = HEAP32[$$1230333>>2]|0;
  33071. $297 = ($296|0)==(0);
  33072. if ($297) {
  33073. $$0240$lcssa357 = $$0240$lcssa;
  33074. label = 84;
  33075. break L95;
  33076. }
  33077. $298 = (_wctomb($9,$296)|0);
  33078. $299 = (($298) + ($$1241332))|0;
  33079. $300 = ($299|0)>($$0240$lcssa|0);
  33080. if ($300) {
  33081. $$0240$lcssa357 = $$0240$lcssa;
  33082. label = 84;
  33083. break L95;
  33084. }
  33085. $301 = ((($$1230333)) + 4|0);
  33086. _out($0,$9,$298);
  33087. $302 = ($299>>>0)<($$0240$lcssa>>>0);
  33088. if ($302) {
  33089. $$1230333 = $301;$$1241332 = $299;
  33090. } else {
  33091. $$0240$lcssa357 = $$0240$lcssa;
  33092. label = 84;
  33093. break;
  33094. }
  33095. }
  33096. }
  33097. }
  33098. } while(0);
  33099. if ((label|0) == 67) {
  33100. label = 0;
  33101. $245 = ($$2256|0)>(-1);
  33102. $246 = $$4266 & -65537;
  33103. $$$4266 = $245 ? $246 : $$4266;
  33104. $247 = ($248|0)!=(0);
  33105. $249 = ($250|0)!=(0);
  33106. $251 = $247 | $249;
  33107. $252 = ($$2256|0)!=(0);
  33108. $or$cond = $252 | $251;
  33109. $253 = $$0228;
  33110. $254 = (($12) - ($253))|0;
  33111. $255 = $251 ^ 1;
  33112. $256 = $255&1;
  33113. $257 = (($256) + ($254))|0;
  33114. $258 = ($$2256|0)>($257|0);
  33115. $$2256$ = $258 ? $$2256 : $257;
  33116. $$2256$$$2256 = $or$cond ? $$2256$ : $$2256;
  33117. $$0228$ = $or$cond ? $$0228 : $11;
  33118. $$2 = $$0228$;$$2234 = $$1233;$$2239 = $$1238;$$2251 = $11;$$5 = $$2256$$$2256;$$6268 = $$$4266;
  33119. }
  33120. else if ((label|0) == 84) {
  33121. label = 0;
  33122. $303 = $$1263$ ^ 8192;
  33123. _pad_674($0,32,$$1260,$$0240$lcssa357,$303);
  33124. $304 = ($$1260|0)>($$0240$lcssa357|0);
  33125. $305 = $304 ? $$1260 : $$0240$lcssa357;
  33126. $$0243 = $305;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  33127. continue;
  33128. }
  33129. $308 = $$2251;
  33130. $309 = $$2;
  33131. $310 = (($308) - ($309))|0;
  33132. $311 = ($$5|0)<($310|0);
  33133. $$$5 = $311 ? $310 : $$5;
  33134. $312 = (($$$5) + ($$2234))|0;
  33135. $313 = ($$1260|0)<($312|0);
  33136. $$2261 = $313 ? $312 : $$1260;
  33137. _pad_674($0,32,$$2261,$312,$$6268);
  33138. _out($0,$$2239,$$2234);
  33139. $314 = $$6268 ^ 65536;
  33140. _pad_674($0,48,$$2261,$312,$314);
  33141. _pad_674($0,48,$$$5,$310,0);
  33142. _out($0,$$2,$310);
  33143. $315 = $$6268 ^ 8192;
  33144. _pad_674($0,32,$$2261,$312,$315);
  33145. $$0243 = $$2261;$$0247 = $$1248;$$0269 = $$3272;$21 = $132;
  33146. }
  33147. L114: do {
  33148. if ((label|0) == 87) {
  33149. $316 = ($0|0)==(0|0);
  33150. if ($316) {
  33151. $317 = ($$0269|0)==(0);
  33152. if ($317) {
  33153. $$0 = 0;
  33154. } else {
  33155. $$2242305 = 1;
  33156. while(1) {
  33157. $318 = (($4) + ($$2242305<<2)|0);
  33158. $319 = HEAP32[$318>>2]|0;
  33159. $320 = ($319|0)==(0);
  33160. if ($320) {
  33161. $$3303 = $$2242305;
  33162. break;
  33163. }
  33164. $321 = (($3) + ($$2242305<<3)|0);
  33165. _pop_arg($321,$319,$2);
  33166. $322 = (($$2242305) + 1)|0;
  33167. $323 = ($322|0)<(10);
  33168. if ($323) {
  33169. $$2242305 = $322;
  33170. } else {
  33171. $$0 = 1;
  33172. break L114;
  33173. }
  33174. }
  33175. while(1) {
  33176. $326 = (($4) + ($$3303<<2)|0);
  33177. $327 = HEAP32[$326>>2]|0;
  33178. $328 = ($327|0)==(0);
  33179. $325 = (($$3303) + 1)|0;
  33180. if (!($328)) {
  33181. $$0 = -1;
  33182. break L114;
  33183. }
  33184. $324 = ($325|0)<(10);
  33185. if ($324) {
  33186. $$3303 = $325;
  33187. } else {
  33188. $$0 = 1;
  33189. break;
  33190. }
  33191. }
  33192. }
  33193. } else {
  33194. $$0 = $$1248;
  33195. }
  33196. }
  33197. } while(0);
  33198. STACKTOP = sp;return ($$0|0);
  33199. }
  33200. function ___lockfile($0) {
  33201. $0 = $0|0;
  33202. var label = 0, sp = 0;
  33203. sp = STACKTOP;
  33204. return 0;
  33205. }
  33206. function ___unlockfile($0) {
  33207. $0 = $0|0;
  33208. var label = 0, sp = 0;
  33209. sp = STACKTOP;
  33210. return;
  33211. }
  33212. function _out($0,$1,$2) {
  33213. $0 = $0|0;
  33214. $1 = $1|0;
  33215. $2 = $2|0;
  33216. var $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  33217. sp = STACKTOP;
  33218. $3 = HEAP32[$0>>2]|0;
  33219. $4 = $3 & 32;
  33220. $5 = ($4|0)==(0);
  33221. if ($5) {
  33222. (___fwritex($1,$2,$0)|0);
  33223. }
  33224. return;
  33225. }
  33226. function _getint($0) {
  33227. $0 = $0|0;
  33228. 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;
  33229. sp = STACKTOP;
  33230. $1 = HEAP32[$0>>2]|0;
  33231. $2 = HEAP8[$1>>0]|0;
  33232. $3 = $2 << 24 >> 24;
  33233. $isdigittmp4 = (($3) + -48)|0;
  33234. $isdigit5 = ($isdigittmp4>>>0)<(10);
  33235. if ($isdigit5) {
  33236. $$06 = 0;$7 = $1;$isdigittmp7 = $isdigittmp4;
  33237. while(1) {
  33238. $4 = ($$06*10)|0;
  33239. $5 = (($isdigittmp7) + ($4))|0;
  33240. $6 = ((($7)) + 1|0);
  33241. HEAP32[$0>>2] = $6;
  33242. $8 = HEAP8[$6>>0]|0;
  33243. $9 = $8 << 24 >> 24;
  33244. $isdigittmp = (($9) + -48)|0;
  33245. $isdigit = ($isdigittmp>>>0)<(10);
  33246. if ($isdigit) {
  33247. $$06 = $5;$7 = $6;$isdigittmp7 = $isdigittmp;
  33248. } else {
  33249. $$0$lcssa = $5;
  33250. break;
  33251. }
  33252. }
  33253. } else {
  33254. $$0$lcssa = 0;
  33255. }
  33256. return ($$0$lcssa|0);
  33257. }
  33258. function _pop_arg($0,$1,$2) {
  33259. $0 = $0|0;
  33260. $1 = $1|0;
  33261. $2 = $2|0;
  33262. 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;
  33263. 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;
  33264. 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;
  33265. 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;
  33266. 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;
  33267. 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;
  33268. 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;
  33269. 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;
  33270. 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;
  33271. var $expanded88 = 0, $expanded90 = 0, $expanded91 = 0, $expanded93 = 0, $expanded94 = 0, $expanded95 = 0, label = 0, sp = 0;
  33272. sp = STACKTOP;
  33273. $3 = ($1>>>0)>(20);
  33274. L1: do {
  33275. if (!($3)) {
  33276. do {
  33277. switch ($1|0) {
  33278. case 9: {
  33279. $arglist_current = HEAP32[$2>>2]|0;
  33280. $4 = $arglist_current;
  33281. $5 = ((0) + 4|0);
  33282. $expanded28 = $5;
  33283. $expanded = (($expanded28) - 1)|0;
  33284. $6 = (($4) + ($expanded))|0;
  33285. $7 = ((0) + 4|0);
  33286. $expanded32 = $7;
  33287. $expanded31 = (($expanded32) - 1)|0;
  33288. $expanded30 = $expanded31 ^ -1;
  33289. $8 = $6 & $expanded30;
  33290. $9 = $8;
  33291. $10 = HEAP32[$9>>2]|0;
  33292. $arglist_next = ((($9)) + 4|0);
  33293. HEAP32[$2>>2] = $arglist_next;
  33294. HEAP32[$0>>2] = $10;
  33295. break L1;
  33296. break;
  33297. }
  33298. case 10: {
  33299. $arglist_current2 = HEAP32[$2>>2]|0;
  33300. $11 = $arglist_current2;
  33301. $12 = ((0) + 4|0);
  33302. $expanded35 = $12;
  33303. $expanded34 = (($expanded35) - 1)|0;
  33304. $13 = (($11) + ($expanded34))|0;
  33305. $14 = ((0) + 4|0);
  33306. $expanded39 = $14;
  33307. $expanded38 = (($expanded39) - 1)|0;
  33308. $expanded37 = $expanded38 ^ -1;
  33309. $15 = $13 & $expanded37;
  33310. $16 = $15;
  33311. $17 = HEAP32[$16>>2]|0;
  33312. $arglist_next3 = ((($16)) + 4|0);
  33313. HEAP32[$2>>2] = $arglist_next3;
  33314. $18 = ($17|0)<(0);
  33315. $19 = $18 << 31 >> 31;
  33316. $20 = $0;
  33317. $21 = $20;
  33318. HEAP32[$21>>2] = $17;
  33319. $22 = (($20) + 4)|0;
  33320. $23 = $22;
  33321. HEAP32[$23>>2] = $19;
  33322. break L1;
  33323. break;
  33324. }
  33325. case 11: {
  33326. $arglist_current5 = HEAP32[$2>>2]|0;
  33327. $24 = $arglist_current5;
  33328. $25 = ((0) + 4|0);
  33329. $expanded42 = $25;
  33330. $expanded41 = (($expanded42) - 1)|0;
  33331. $26 = (($24) + ($expanded41))|0;
  33332. $27 = ((0) + 4|0);
  33333. $expanded46 = $27;
  33334. $expanded45 = (($expanded46) - 1)|0;
  33335. $expanded44 = $expanded45 ^ -1;
  33336. $28 = $26 & $expanded44;
  33337. $29 = $28;
  33338. $30 = HEAP32[$29>>2]|0;
  33339. $arglist_next6 = ((($29)) + 4|0);
  33340. HEAP32[$2>>2] = $arglist_next6;
  33341. $31 = $0;
  33342. $32 = $31;
  33343. HEAP32[$32>>2] = $30;
  33344. $33 = (($31) + 4)|0;
  33345. $34 = $33;
  33346. HEAP32[$34>>2] = 0;
  33347. break L1;
  33348. break;
  33349. }
  33350. case 12: {
  33351. $arglist_current8 = HEAP32[$2>>2]|0;
  33352. $35 = $arglist_current8;
  33353. $36 = ((0) + 8|0);
  33354. $expanded49 = $36;
  33355. $expanded48 = (($expanded49) - 1)|0;
  33356. $37 = (($35) + ($expanded48))|0;
  33357. $38 = ((0) + 8|0);
  33358. $expanded53 = $38;
  33359. $expanded52 = (($expanded53) - 1)|0;
  33360. $expanded51 = $expanded52 ^ -1;
  33361. $39 = $37 & $expanded51;
  33362. $40 = $39;
  33363. $41 = $40;
  33364. $42 = $41;
  33365. $43 = HEAP32[$42>>2]|0;
  33366. $44 = (($41) + 4)|0;
  33367. $45 = $44;
  33368. $46 = HEAP32[$45>>2]|0;
  33369. $arglist_next9 = ((($40)) + 8|0);
  33370. HEAP32[$2>>2] = $arglist_next9;
  33371. $47 = $0;
  33372. $48 = $47;
  33373. HEAP32[$48>>2] = $43;
  33374. $49 = (($47) + 4)|0;
  33375. $50 = $49;
  33376. HEAP32[$50>>2] = $46;
  33377. break L1;
  33378. break;
  33379. }
  33380. case 13: {
  33381. $arglist_current11 = HEAP32[$2>>2]|0;
  33382. $51 = $arglist_current11;
  33383. $52 = ((0) + 4|0);
  33384. $expanded56 = $52;
  33385. $expanded55 = (($expanded56) - 1)|0;
  33386. $53 = (($51) + ($expanded55))|0;
  33387. $54 = ((0) + 4|0);
  33388. $expanded60 = $54;
  33389. $expanded59 = (($expanded60) - 1)|0;
  33390. $expanded58 = $expanded59 ^ -1;
  33391. $55 = $53 & $expanded58;
  33392. $56 = $55;
  33393. $57 = HEAP32[$56>>2]|0;
  33394. $arglist_next12 = ((($56)) + 4|0);
  33395. HEAP32[$2>>2] = $arglist_next12;
  33396. $58 = $57&65535;
  33397. $59 = $58 << 16 >> 16;
  33398. $60 = ($59|0)<(0);
  33399. $61 = $60 << 31 >> 31;
  33400. $62 = $0;
  33401. $63 = $62;
  33402. HEAP32[$63>>2] = $59;
  33403. $64 = (($62) + 4)|0;
  33404. $65 = $64;
  33405. HEAP32[$65>>2] = $61;
  33406. break L1;
  33407. break;
  33408. }
  33409. case 14: {
  33410. $arglist_current14 = HEAP32[$2>>2]|0;
  33411. $66 = $arglist_current14;
  33412. $67 = ((0) + 4|0);
  33413. $expanded63 = $67;
  33414. $expanded62 = (($expanded63) - 1)|0;
  33415. $68 = (($66) + ($expanded62))|0;
  33416. $69 = ((0) + 4|0);
  33417. $expanded67 = $69;
  33418. $expanded66 = (($expanded67) - 1)|0;
  33419. $expanded65 = $expanded66 ^ -1;
  33420. $70 = $68 & $expanded65;
  33421. $71 = $70;
  33422. $72 = HEAP32[$71>>2]|0;
  33423. $arglist_next15 = ((($71)) + 4|0);
  33424. HEAP32[$2>>2] = $arglist_next15;
  33425. $$mask31 = $72 & 65535;
  33426. $73 = $0;
  33427. $74 = $73;
  33428. HEAP32[$74>>2] = $$mask31;
  33429. $75 = (($73) + 4)|0;
  33430. $76 = $75;
  33431. HEAP32[$76>>2] = 0;
  33432. break L1;
  33433. break;
  33434. }
  33435. case 15: {
  33436. $arglist_current17 = HEAP32[$2>>2]|0;
  33437. $77 = $arglist_current17;
  33438. $78 = ((0) + 4|0);
  33439. $expanded70 = $78;
  33440. $expanded69 = (($expanded70) - 1)|0;
  33441. $79 = (($77) + ($expanded69))|0;
  33442. $80 = ((0) + 4|0);
  33443. $expanded74 = $80;
  33444. $expanded73 = (($expanded74) - 1)|0;
  33445. $expanded72 = $expanded73 ^ -1;
  33446. $81 = $79 & $expanded72;
  33447. $82 = $81;
  33448. $83 = HEAP32[$82>>2]|0;
  33449. $arglist_next18 = ((($82)) + 4|0);
  33450. HEAP32[$2>>2] = $arglist_next18;
  33451. $84 = $83&255;
  33452. $85 = $84 << 24 >> 24;
  33453. $86 = ($85|0)<(0);
  33454. $87 = $86 << 31 >> 31;
  33455. $88 = $0;
  33456. $89 = $88;
  33457. HEAP32[$89>>2] = $85;
  33458. $90 = (($88) + 4)|0;
  33459. $91 = $90;
  33460. HEAP32[$91>>2] = $87;
  33461. break L1;
  33462. break;
  33463. }
  33464. case 16: {
  33465. $arglist_current20 = HEAP32[$2>>2]|0;
  33466. $92 = $arglist_current20;
  33467. $93 = ((0) + 4|0);
  33468. $expanded77 = $93;
  33469. $expanded76 = (($expanded77) - 1)|0;
  33470. $94 = (($92) + ($expanded76))|0;
  33471. $95 = ((0) + 4|0);
  33472. $expanded81 = $95;
  33473. $expanded80 = (($expanded81) - 1)|0;
  33474. $expanded79 = $expanded80 ^ -1;
  33475. $96 = $94 & $expanded79;
  33476. $97 = $96;
  33477. $98 = HEAP32[$97>>2]|0;
  33478. $arglist_next21 = ((($97)) + 4|0);
  33479. HEAP32[$2>>2] = $arglist_next21;
  33480. $$mask = $98 & 255;
  33481. $99 = $0;
  33482. $100 = $99;
  33483. HEAP32[$100>>2] = $$mask;
  33484. $101 = (($99) + 4)|0;
  33485. $102 = $101;
  33486. HEAP32[$102>>2] = 0;
  33487. break L1;
  33488. break;
  33489. }
  33490. case 17: {
  33491. $arglist_current23 = HEAP32[$2>>2]|0;
  33492. $103 = $arglist_current23;
  33493. $104 = ((0) + 8|0);
  33494. $expanded84 = $104;
  33495. $expanded83 = (($expanded84) - 1)|0;
  33496. $105 = (($103) + ($expanded83))|0;
  33497. $106 = ((0) + 8|0);
  33498. $expanded88 = $106;
  33499. $expanded87 = (($expanded88) - 1)|0;
  33500. $expanded86 = $expanded87 ^ -1;
  33501. $107 = $105 & $expanded86;
  33502. $108 = $107;
  33503. $109 = +HEAPF64[$108>>3];
  33504. $arglist_next24 = ((($108)) + 8|0);
  33505. HEAP32[$2>>2] = $arglist_next24;
  33506. HEAPF64[$0>>3] = $109;
  33507. break L1;
  33508. break;
  33509. }
  33510. case 18: {
  33511. $arglist_current26 = HEAP32[$2>>2]|0;
  33512. $110 = $arglist_current26;
  33513. $111 = ((0) + 8|0);
  33514. $expanded91 = $111;
  33515. $expanded90 = (($expanded91) - 1)|0;
  33516. $112 = (($110) + ($expanded90))|0;
  33517. $113 = ((0) + 8|0);
  33518. $expanded95 = $113;
  33519. $expanded94 = (($expanded95) - 1)|0;
  33520. $expanded93 = $expanded94 ^ -1;
  33521. $114 = $112 & $expanded93;
  33522. $115 = $114;
  33523. $116 = +HEAPF64[$115>>3];
  33524. $arglist_next27 = ((($115)) + 8|0);
  33525. HEAP32[$2>>2] = $arglist_next27;
  33526. HEAPF64[$0>>3] = $116;
  33527. break L1;
  33528. break;
  33529. }
  33530. default: {
  33531. break L1;
  33532. }
  33533. }
  33534. } while(0);
  33535. }
  33536. } while(0);
  33537. return;
  33538. }
  33539. function _fmt_x($0,$1,$2,$3) {
  33540. $0 = $0|0;
  33541. $1 = $1|0;
  33542. $2 = $2|0;
  33543. $3 = $3|0;
  33544. 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;
  33545. var sp = 0;
  33546. sp = STACKTOP;
  33547. $4 = ($0|0)==(0);
  33548. $5 = ($1|0)==(0);
  33549. $6 = $4 & $5;
  33550. if ($6) {
  33551. $$05$lcssa = $2;
  33552. } else {
  33553. $$056 = $2;$15 = $1;$8 = $0;
  33554. while(1) {
  33555. $7 = $8 & 15;
  33556. $9 = (17381 + ($7)|0);
  33557. $10 = HEAP8[$9>>0]|0;
  33558. $11 = $10&255;
  33559. $12 = $11 | $3;
  33560. $13 = $12&255;
  33561. $14 = ((($$056)) + -1|0);
  33562. HEAP8[$14>>0] = $13;
  33563. $16 = (_bitshift64Lshr(($8|0),($15|0),4)|0);
  33564. $17 = tempRet0;
  33565. $18 = ($16|0)==(0);
  33566. $19 = ($17|0)==(0);
  33567. $20 = $18 & $19;
  33568. if ($20) {
  33569. $$05$lcssa = $14;
  33570. break;
  33571. } else {
  33572. $$056 = $14;$15 = $17;$8 = $16;
  33573. }
  33574. }
  33575. }
  33576. return ($$05$lcssa|0);
  33577. }
  33578. function _fmt_o($0,$1,$2) {
  33579. $0 = $0|0;
  33580. $1 = $1|0;
  33581. $2 = $2|0;
  33582. 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;
  33583. sp = STACKTOP;
  33584. $3 = ($0|0)==(0);
  33585. $4 = ($1|0)==(0);
  33586. $5 = $3 & $4;
  33587. if ($5) {
  33588. $$0$lcssa = $2;
  33589. } else {
  33590. $$06 = $2;$11 = $1;$7 = $0;
  33591. while(1) {
  33592. $6 = $7&255;
  33593. $8 = $6 & 7;
  33594. $9 = $8 | 48;
  33595. $10 = ((($$06)) + -1|0);
  33596. HEAP8[$10>>0] = $9;
  33597. $12 = (_bitshift64Lshr(($7|0),($11|0),3)|0);
  33598. $13 = tempRet0;
  33599. $14 = ($12|0)==(0);
  33600. $15 = ($13|0)==(0);
  33601. $16 = $14 & $15;
  33602. if ($16) {
  33603. $$0$lcssa = $10;
  33604. break;
  33605. } else {
  33606. $$06 = $10;$11 = $13;$7 = $12;
  33607. }
  33608. }
  33609. }
  33610. return ($$0$lcssa|0);
  33611. }
  33612. function _fmt_u($0,$1,$2) {
  33613. $0 = $0|0;
  33614. $1 = $1|0;
  33615. $2 = $2|0;
  33616. 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;
  33617. 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;
  33618. sp = STACKTOP;
  33619. $3 = ($1>>>0)>(0);
  33620. $4 = ($0>>>0)>(4294967295);
  33621. $5 = ($1|0)==(0);
  33622. $6 = $5 & $4;
  33623. $7 = $3 | $6;
  33624. if ($7) {
  33625. $$0914 = $2;$8 = $0;$9 = $1;
  33626. while(1) {
  33627. $10 = (___uremdi3(($8|0),($9|0),10,0)|0);
  33628. $11 = tempRet0;
  33629. $12 = $10&255;
  33630. $13 = $12 | 48;
  33631. $14 = ((($$0914)) + -1|0);
  33632. HEAP8[$14>>0] = $13;
  33633. $15 = (___udivdi3(($8|0),($9|0),10,0)|0);
  33634. $16 = tempRet0;
  33635. $17 = ($9>>>0)>(9);
  33636. $18 = ($8>>>0)>(4294967295);
  33637. $19 = ($9|0)==(9);
  33638. $20 = $19 & $18;
  33639. $21 = $17 | $20;
  33640. if ($21) {
  33641. $$0914 = $14;$8 = $15;$9 = $16;
  33642. } else {
  33643. break;
  33644. }
  33645. }
  33646. $$010$lcssa$off0 = $15;$$09$lcssa = $14;
  33647. } else {
  33648. $$010$lcssa$off0 = $0;$$09$lcssa = $2;
  33649. }
  33650. $22 = ($$010$lcssa$off0|0)==(0);
  33651. if ($22) {
  33652. $$1$lcssa = $$09$lcssa;
  33653. } else {
  33654. $$012 = $$010$lcssa$off0;$$111 = $$09$lcssa;
  33655. while(1) {
  33656. $23 = (($$012>>>0) % 10)&-1;
  33657. $24 = $23 | 48;
  33658. $25 = $24&255;
  33659. $26 = ((($$111)) + -1|0);
  33660. HEAP8[$26>>0] = $25;
  33661. $27 = (($$012>>>0) / 10)&-1;
  33662. $28 = ($$012>>>0)<(10);
  33663. if ($28) {
  33664. $$1$lcssa = $26;
  33665. break;
  33666. } else {
  33667. $$012 = $27;$$111 = $26;
  33668. }
  33669. }
  33670. }
  33671. return ($$1$lcssa|0);
  33672. }
  33673. function _strerror($0) {
  33674. $0 = $0|0;
  33675. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, label = 0, sp = 0;
  33676. sp = STACKTOP;
  33677. $1 = (___pthread_self_105()|0);
  33678. $2 = ((($1)) + 188|0);
  33679. $3 = HEAP32[$2>>2]|0;
  33680. $4 = (___strerror_l($0,$3)|0);
  33681. return ($4|0);
  33682. }
  33683. function _memchr($0,$1,$2) {
  33684. $0 = $0|0;
  33685. $1 = $1|0;
  33686. $2 = $2|0;
  33687. 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;
  33688. 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;
  33689. 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;
  33690. sp = STACKTOP;
  33691. $3 = $1 & 255;
  33692. $4 = $0;
  33693. $5 = $4 & 3;
  33694. $6 = ($5|0)!=(0);
  33695. $7 = ($2|0)!=(0);
  33696. $or$cond53 = $7 & $6;
  33697. L1: do {
  33698. if ($or$cond53) {
  33699. $8 = $1&255;
  33700. $$03555 = $0;$$03654 = $2;
  33701. while(1) {
  33702. $9 = HEAP8[$$03555>>0]|0;
  33703. $10 = ($9<<24>>24)==($8<<24>>24);
  33704. if ($10) {
  33705. $$035$lcssa65 = $$03555;$$036$lcssa64 = $$03654;
  33706. label = 6;
  33707. break L1;
  33708. }
  33709. $11 = ((($$03555)) + 1|0);
  33710. $12 = (($$03654) + -1)|0;
  33711. $13 = $11;
  33712. $14 = $13 & 3;
  33713. $15 = ($14|0)!=(0);
  33714. $16 = ($12|0)!=(0);
  33715. $or$cond = $16 & $15;
  33716. if ($or$cond) {
  33717. $$03555 = $11;$$03654 = $12;
  33718. } else {
  33719. $$035$lcssa = $11;$$036$lcssa = $12;$$lcssa = $16;
  33720. label = 5;
  33721. break;
  33722. }
  33723. }
  33724. } else {
  33725. $$035$lcssa = $0;$$036$lcssa = $2;$$lcssa = $7;
  33726. label = 5;
  33727. }
  33728. } while(0);
  33729. if ((label|0) == 5) {
  33730. if ($$lcssa) {
  33731. $$035$lcssa65 = $$035$lcssa;$$036$lcssa64 = $$036$lcssa;
  33732. label = 6;
  33733. } else {
  33734. $$2 = $$035$lcssa;$$3 = 0;
  33735. }
  33736. }
  33737. L8: do {
  33738. if ((label|0) == 6) {
  33739. $17 = HEAP8[$$035$lcssa65>>0]|0;
  33740. $18 = $1&255;
  33741. $19 = ($17<<24>>24)==($18<<24>>24);
  33742. if ($19) {
  33743. $$2 = $$035$lcssa65;$$3 = $$036$lcssa64;
  33744. } else {
  33745. $20 = Math_imul($3, 16843009)|0;
  33746. $21 = ($$036$lcssa64>>>0)>(3);
  33747. L11: do {
  33748. if ($21) {
  33749. $$046 = $$035$lcssa65;$$13745 = $$036$lcssa64;
  33750. while(1) {
  33751. $22 = HEAP32[$$046>>2]|0;
  33752. $23 = $22 ^ $20;
  33753. $24 = (($23) + -16843009)|0;
  33754. $25 = $23 & -2139062144;
  33755. $26 = $25 ^ -2139062144;
  33756. $27 = $26 & $24;
  33757. $28 = ($27|0)==(0);
  33758. if (!($28)) {
  33759. break;
  33760. }
  33761. $29 = ((($$046)) + 4|0);
  33762. $30 = (($$13745) + -4)|0;
  33763. $31 = ($30>>>0)>(3);
  33764. if ($31) {
  33765. $$046 = $29;$$13745 = $30;
  33766. } else {
  33767. $$0$lcssa = $29;$$137$lcssa = $30;
  33768. label = 11;
  33769. break L11;
  33770. }
  33771. }
  33772. $$140 = $$046;$$23839 = $$13745;
  33773. } else {
  33774. $$0$lcssa = $$035$lcssa65;$$137$lcssa = $$036$lcssa64;
  33775. label = 11;
  33776. }
  33777. } while(0);
  33778. if ((label|0) == 11) {
  33779. $32 = ($$137$lcssa|0)==(0);
  33780. if ($32) {
  33781. $$2 = $$0$lcssa;$$3 = 0;
  33782. break;
  33783. } else {
  33784. $$140 = $$0$lcssa;$$23839 = $$137$lcssa;
  33785. }
  33786. }
  33787. while(1) {
  33788. $33 = HEAP8[$$140>>0]|0;
  33789. $34 = ($33<<24>>24)==($18<<24>>24);
  33790. if ($34) {
  33791. $$2 = $$140;$$3 = $$23839;
  33792. break L8;
  33793. }
  33794. $35 = ((($$140)) + 1|0);
  33795. $36 = (($$23839) + -1)|0;
  33796. $37 = ($36|0)==(0);
  33797. if ($37) {
  33798. $$2 = $35;$$3 = 0;
  33799. break;
  33800. } else {
  33801. $$140 = $35;$$23839 = $36;
  33802. }
  33803. }
  33804. }
  33805. }
  33806. } while(0);
  33807. $38 = ($$3|0)!=(0);
  33808. $39 = $38 ? $$2 : 0;
  33809. return ($39|0);
  33810. }
  33811. function _pad_674($0,$1,$2,$3,$4) {
  33812. $0 = $0|0;
  33813. $1 = $1|0;
  33814. $2 = $2|0;
  33815. $3 = $3|0;
  33816. $4 = $4|0;
  33817. 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;
  33818. sp = STACKTOP;
  33819. STACKTOP = STACKTOP + 256|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(256|0);
  33820. $5 = sp;
  33821. $6 = $4 & 73728;
  33822. $7 = ($6|0)==(0);
  33823. $8 = ($2|0)>($3|0);
  33824. $or$cond = $8 & $7;
  33825. if ($or$cond) {
  33826. $9 = (($2) - ($3))|0;
  33827. $10 = ($9>>>0)<(256);
  33828. $11 = $10 ? $9 : 256;
  33829. _memset(($5|0),($1|0),($11|0))|0;
  33830. $12 = ($9>>>0)>(255);
  33831. if ($12) {
  33832. $13 = (($2) - ($3))|0;
  33833. $$011 = $9;
  33834. while(1) {
  33835. _out($0,$5,256);
  33836. $14 = (($$011) + -256)|0;
  33837. $15 = ($14>>>0)>(255);
  33838. if ($15) {
  33839. $$011 = $14;
  33840. } else {
  33841. break;
  33842. }
  33843. }
  33844. $16 = $13 & 255;
  33845. $$0$lcssa = $16;
  33846. } else {
  33847. $$0$lcssa = $9;
  33848. }
  33849. _out($0,$5,$$0$lcssa);
  33850. }
  33851. STACKTOP = sp;return;
  33852. }
  33853. function _wctomb($0,$1) {
  33854. $0 = $0|0;
  33855. $1 = $1|0;
  33856. var $$0 = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  33857. sp = STACKTOP;
  33858. $2 = ($0|0)==(0|0);
  33859. if ($2) {
  33860. $$0 = 0;
  33861. } else {
  33862. $3 = (_wcrtomb($0,$1,0)|0);
  33863. $$0 = $3;
  33864. }
  33865. return ($$0|0);
  33866. }
  33867. function _fmt_fp($0,$1,$2,$3,$4,$5) {
  33868. $0 = $0|0;
  33869. $1 = +$1;
  33870. $2 = $2|0;
  33871. $3 = $3|0;
  33872. $4 = $4|0;
  33873. $5 = $5|0;
  33874. 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;
  33875. 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;
  33876. 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;
  33877. 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;
  33878. 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;
  33879. 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;
  33880. 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;
  33881. 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;
  33882. 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;
  33883. 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;
  33884. 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;
  33885. 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;
  33886. 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;
  33887. 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;
  33888. 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;
  33889. 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;
  33890. 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;
  33891. 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;
  33892. 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;
  33893. 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;
  33894. 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;
  33895. 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;
  33896. 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;
  33897. 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;
  33898. 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;
  33899. 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;
  33900. sp = STACKTOP;
  33901. STACKTOP = STACKTOP + 560|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(560|0);
  33902. $6 = sp + 8|0;
  33903. $7 = sp;
  33904. $8 = sp + 524|0;
  33905. $9 = $8;
  33906. $10 = sp + 512|0;
  33907. HEAP32[$7>>2] = 0;
  33908. $11 = ((($10)) + 12|0);
  33909. (___DOUBLE_BITS_675($1)|0);
  33910. $12 = tempRet0;
  33911. $13 = ($12|0)<(0);
  33912. if ($13) {
  33913. $14 = -$1;
  33914. $$0471 = $14;$$0520 = 1;$$0521 = 17350;
  33915. } else {
  33916. $15 = $4 & 2048;
  33917. $16 = ($15|0)==(0);
  33918. $17 = $4 & 1;
  33919. $18 = ($17|0)==(0);
  33920. $$ = $18 ? (17351) : (17356);
  33921. $$$ = $16 ? $$ : (17353);
  33922. $19 = $4 & 2049;
  33923. $narrow = ($19|0)!=(0);
  33924. $$534$ = $narrow&1;
  33925. $$0471 = $1;$$0520 = $$534$;$$0521 = $$$;
  33926. }
  33927. (___DOUBLE_BITS_675($$0471)|0);
  33928. $20 = tempRet0;
  33929. $21 = $20 & 2146435072;
  33930. $22 = ($21>>>0)<(2146435072);
  33931. $23 = (0)<(0);
  33932. $24 = ($21|0)==(2146435072);
  33933. $25 = $24 & $23;
  33934. $26 = $22 | $25;
  33935. do {
  33936. if ($26) {
  33937. $35 = (+_frexpl($$0471,$7));
  33938. $36 = $35 * 2.0;
  33939. $37 = $36 != 0.0;
  33940. if ($37) {
  33941. $38 = HEAP32[$7>>2]|0;
  33942. $39 = (($38) + -1)|0;
  33943. HEAP32[$7>>2] = $39;
  33944. }
  33945. $40 = $5 | 32;
  33946. $41 = ($40|0)==(97);
  33947. if ($41) {
  33948. $42 = $5 & 32;
  33949. $43 = ($42|0)==(0);
  33950. $44 = ((($$0521)) + 9|0);
  33951. $$0521$ = $43 ? $$0521 : $44;
  33952. $45 = $$0520 | 2;
  33953. $46 = ($3>>>0)>(11);
  33954. $47 = (12 - ($3))|0;
  33955. $48 = ($47|0)==(0);
  33956. $49 = $46 | $48;
  33957. do {
  33958. if ($49) {
  33959. $$1472 = $36;
  33960. } else {
  33961. $$0509582 = 8.0;$$1508583 = $47;
  33962. while(1) {
  33963. $50 = (($$1508583) + -1)|0;
  33964. $51 = $$0509582 * 16.0;
  33965. $52 = ($50|0)==(0);
  33966. if ($52) {
  33967. break;
  33968. } else {
  33969. $$0509582 = $51;$$1508583 = $50;
  33970. }
  33971. }
  33972. $53 = HEAP8[$$0521$>>0]|0;
  33973. $54 = ($53<<24>>24)==(45);
  33974. if ($54) {
  33975. $55 = -$36;
  33976. $56 = $55 - $51;
  33977. $57 = $51 + $56;
  33978. $58 = -$57;
  33979. $$1472 = $58;
  33980. break;
  33981. } else {
  33982. $59 = $36 + $51;
  33983. $60 = $59 - $51;
  33984. $$1472 = $60;
  33985. break;
  33986. }
  33987. }
  33988. } while(0);
  33989. $61 = HEAP32[$7>>2]|0;
  33990. $62 = ($61|0)<(0);
  33991. $63 = (0 - ($61))|0;
  33992. $64 = $62 ? $63 : $61;
  33993. $65 = ($64|0)<(0);
  33994. $66 = $65 << 31 >> 31;
  33995. $67 = (_fmt_u($64,$66,$11)|0);
  33996. $68 = ($67|0)==($11|0);
  33997. if ($68) {
  33998. $69 = ((($10)) + 11|0);
  33999. HEAP8[$69>>0] = 48;
  34000. $$0511 = $69;
  34001. } else {
  34002. $$0511 = $67;
  34003. }
  34004. $70 = $61 >> 31;
  34005. $71 = $70 & 2;
  34006. $72 = (($71) + 43)|0;
  34007. $73 = $72&255;
  34008. $74 = ((($$0511)) + -1|0);
  34009. HEAP8[$74>>0] = $73;
  34010. $75 = (($5) + 15)|0;
  34011. $76 = $75&255;
  34012. $77 = ((($$0511)) + -2|0);
  34013. HEAP8[$77>>0] = $76;
  34014. $notrhs = ($3|0)<(1);
  34015. $78 = $4 & 8;
  34016. $79 = ($78|0)==(0);
  34017. $$0523 = $8;$$2473 = $$1472;
  34018. while(1) {
  34019. $80 = (~~(($$2473)));
  34020. $81 = (17381 + ($80)|0);
  34021. $82 = HEAP8[$81>>0]|0;
  34022. $83 = $82&255;
  34023. $84 = $83 | $42;
  34024. $85 = $84&255;
  34025. $86 = ((($$0523)) + 1|0);
  34026. HEAP8[$$0523>>0] = $85;
  34027. $87 = (+($80|0));
  34028. $88 = $$2473 - $87;
  34029. $89 = $88 * 16.0;
  34030. $90 = $86;
  34031. $91 = (($90) - ($9))|0;
  34032. $92 = ($91|0)==(1);
  34033. if ($92) {
  34034. $notlhs = $89 == 0.0;
  34035. $or$cond3$not = $notrhs & $notlhs;
  34036. $or$cond = $79 & $or$cond3$not;
  34037. if ($or$cond) {
  34038. $$1524 = $86;
  34039. } else {
  34040. $93 = ((($$0523)) + 2|0);
  34041. HEAP8[$86>>0] = 46;
  34042. $$1524 = $93;
  34043. }
  34044. } else {
  34045. $$1524 = $86;
  34046. }
  34047. $94 = $89 != 0.0;
  34048. if ($94) {
  34049. $$0523 = $$1524;$$2473 = $89;
  34050. } else {
  34051. break;
  34052. }
  34053. }
  34054. $95 = ($3|0)!=(0);
  34055. $96 = $77;
  34056. $97 = $11;
  34057. $98 = $$1524;
  34058. $99 = (($98) - ($9))|0;
  34059. $100 = (($97) - ($96))|0;
  34060. $101 = (($99) + -2)|0;
  34061. $102 = ($101|0)<($3|0);
  34062. $or$cond537 = $95 & $102;
  34063. $103 = (($3) + 2)|0;
  34064. $$pn = $or$cond537 ? $103 : $99;
  34065. $$0525 = (($100) + ($45))|0;
  34066. $104 = (($$0525) + ($$pn))|0;
  34067. _pad_674($0,32,$2,$104,$4);
  34068. _out($0,$$0521$,$45);
  34069. $105 = $4 ^ 65536;
  34070. _pad_674($0,48,$2,$104,$105);
  34071. _out($0,$8,$99);
  34072. $106 = (($$pn) - ($99))|0;
  34073. _pad_674($0,48,$106,0,0);
  34074. _out($0,$77,$100);
  34075. $107 = $4 ^ 8192;
  34076. _pad_674($0,32,$2,$104,$107);
  34077. $$sink562 = $104;
  34078. break;
  34079. }
  34080. $108 = ($3|0)<(0);
  34081. $$539 = $108 ? 6 : $3;
  34082. if ($37) {
  34083. $109 = $36 * 268435456.0;
  34084. $110 = HEAP32[$7>>2]|0;
  34085. $111 = (($110) + -28)|0;
  34086. HEAP32[$7>>2] = $111;
  34087. $$3 = $109;$$pr = $111;
  34088. } else {
  34089. $$pre = HEAP32[$7>>2]|0;
  34090. $$3 = $36;$$pr = $$pre;
  34091. }
  34092. $112 = ($$pr|0)<(0);
  34093. $113 = ((($6)) + 288|0);
  34094. $$556 = $112 ? $6 : $113;
  34095. $$0498 = $$556;$$4 = $$3;
  34096. while(1) {
  34097. $114 = (~~(($$4))>>>0);
  34098. HEAP32[$$0498>>2] = $114;
  34099. $115 = ((($$0498)) + 4|0);
  34100. $116 = (+($114>>>0));
  34101. $117 = $$4 - $116;
  34102. $118 = $117 * 1.0E+9;
  34103. $119 = $118 != 0.0;
  34104. if ($119) {
  34105. $$0498 = $115;$$4 = $118;
  34106. } else {
  34107. break;
  34108. }
  34109. }
  34110. $120 = ($$pr|0)>(0);
  34111. if ($120) {
  34112. $$1482661 = $$556;$$1499660 = $115;$122 = $$pr;
  34113. while(1) {
  34114. $121 = ($122|0)<(29);
  34115. $123 = $121 ? $122 : 29;
  34116. $$0488653 = ((($$1499660)) + -4|0);
  34117. $124 = ($$0488653>>>0)<($$1482661>>>0);
  34118. if ($124) {
  34119. $$2483$ph = $$1482661;
  34120. } else {
  34121. $$0488655 = $$0488653;$$0497654 = 0;
  34122. while(1) {
  34123. $125 = HEAP32[$$0488655>>2]|0;
  34124. $126 = (_bitshift64Shl(($125|0),0,($123|0))|0);
  34125. $127 = tempRet0;
  34126. $128 = (_i64Add(($126|0),($127|0),($$0497654|0),0)|0);
  34127. $129 = tempRet0;
  34128. $130 = (___uremdi3(($128|0),($129|0),1000000000,0)|0);
  34129. $131 = tempRet0;
  34130. HEAP32[$$0488655>>2] = $130;
  34131. $132 = (___udivdi3(($128|0),($129|0),1000000000,0)|0);
  34132. $133 = tempRet0;
  34133. $$0488 = ((($$0488655)) + -4|0);
  34134. $134 = ($$0488>>>0)<($$1482661>>>0);
  34135. if ($134) {
  34136. break;
  34137. } else {
  34138. $$0488655 = $$0488;$$0497654 = $132;
  34139. }
  34140. }
  34141. $135 = ($132|0)==(0);
  34142. if ($135) {
  34143. $$2483$ph = $$1482661;
  34144. } else {
  34145. $136 = ((($$1482661)) + -4|0);
  34146. HEAP32[$136>>2] = $132;
  34147. $$2483$ph = $136;
  34148. }
  34149. }
  34150. $$2500 = $$1499660;
  34151. while(1) {
  34152. $137 = ($$2500>>>0)>($$2483$ph>>>0);
  34153. if (!($137)) {
  34154. break;
  34155. }
  34156. $138 = ((($$2500)) + -4|0);
  34157. $139 = HEAP32[$138>>2]|0;
  34158. $140 = ($139|0)==(0);
  34159. if ($140) {
  34160. $$2500 = $138;
  34161. } else {
  34162. break;
  34163. }
  34164. }
  34165. $141 = HEAP32[$7>>2]|0;
  34166. $142 = (($141) - ($123))|0;
  34167. HEAP32[$7>>2] = $142;
  34168. $143 = ($142|0)>(0);
  34169. if ($143) {
  34170. $$1482661 = $$2483$ph;$$1499660 = $$2500;$122 = $142;
  34171. } else {
  34172. $$1482$lcssa = $$2483$ph;$$1499$lcssa = $$2500;$$pr564 = $142;
  34173. break;
  34174. }
  34175. }
  34176. } else {
  34177. $$1482$lcssa = $$556;$$1499$lcssa = $115;$$pr564 = $$pr;
  34178. }
  34179. $144 = ($$pr564|0)<(0);
  34180. if ($144) {
  34181. $145 = (($$539) + 25)|0;
  34182. $146 = (($145|0) / 9)&-1;
  34183. $147 = (($146) + 1)|0;
  34184. $148 = ($40|0)==(102);
  34185. $$3484648 = $$1482$lcssa;$$3501647 = $$1499$lcssa;$150 = $$pr564;
  34186. while(1) {
  34187. $149 = (0 - ($150))|0;
  34188. $151 = ($149|0)<(9);
  34189. $152 = $151 ? $149 : 9;
  34190. $153 = ($$3484648>>>0)<($$3501647>>>0);
  34191. if ($153) {
  34192. $157 = 1 << $152;
  34193. $158 = (($157) + -1)|0;
  34194. $159 = 1000000000 >>> $152;
  34195. $$0487642 = 0;$$1489641 = $$3484648;
  34196. while(1) {
  34197. $160 = HEAP32[$$1489641>>2]|0;
  34198. $161 = $160 & $158;
  34199. $162 = $160 >>> $152;
  34200. $163 = (($162) + ($$0487642))|0;
  34201. HEAP32[$$1489641>>2] = $163;
  34202. $164 = Math_imul($161, $159)|0;
  34203. $165 = ((($$1489641)) + 4|0);
  34204. $166 = ($165>>>0)<($$3501647>>>0);
  34205. if ($166) {
  34206. $$0487642 = $164;$$1489641 = $165;
  34207. } else {
  34208. break;
  34209. }
  34210. }
  34211. $167 = HEAP32[$$3484648>>2]|0;
  34212. $168 = ($167|0)==(0);
  34213. $169 = ((($$3484648)) + 4|0);
  34214. $$$3484 = $168 ? $169 : $$3484648;
  34215. $170 = ($164|0)==(0);
  34216. if ($170) {
  34217. $$$3484692 = $$$3484;$$4502 = $$3501647;
  34218. } else {
  34219. $171 = ((($$3501647)) + 4|0);
  34220. HEAP32[$$3501647>>2] = $164;
  34221. $$$3484692 = $$$3484;$$4502 = $171;
  34222. }
  34223. } else {
  34224. $154 = HEAP32[$$3484648>>2]|0;
  34225. $155 = ($154|0)==(0);
  34226. $156 = ((($$3484648)) + 4|0);
  34227. $$$3484691 = $155 ? $156 : $$3484648;
  34228. $$$3484692 = $$$3484691;$$4502 = $$3501647;
  34229. }
  34230. $172 = $148 ? $$556 : $$$3484692;
  34231. $173 = $$4502;
  34232. $174 = $172;
  34233. $175 = (($173) - ($174))|0;
  34234. $176 = $175 >> 2;
  34235. $177 = ($176|0)>($147|0);
  34236. $178 = (($172) + ($147<<2)|0);
  34237. $$$4502 = $177 ? $178 : $$4502;
  34238. $179 = HEAP32[$7>>2]|0;
  34239. $180 = (($179) + ($152))|0;
  34240. HEAP32[$7>>2] = $180;
  34241. $181 = ($180|0)<(0);
  34242. if ($181) {
  34243. $$3484648 = $$$3484692;$$3501647 = $$$4502;$150 = $180;
  34244. } else {
  34245. $$3484$lcssa = $$$3484692;$$3501$lcssa = $$$4502;
  34246. break;
  34247. }
  34248. }
  34249. } else {
  34250. $$3484$lcssa = $$1482$lcssa;$$3501$lcssa = $$1499$lcssa;
  34251. }
  34252. $182 = ($$3484$lcssa>>>0)<($$3501$lcssa>>>0);
  34253. $183 = $$556;
  34254. if ($182) {
  34255. $184 = $$3484$lcssa;
  34256. $185 = (($183) - ($184))|0;
  34257. $186 = $185 >> 2;
  34258. $187 = ($186*9)|0;
  34259. $188 = HEAP32[$$3484$lcssa>>2]|0;
  34260. $189 = ($188>>>0)<(10);
  34261. if ($189) {
  34262. $$1515 = $187;
  34263. } else {
  34264. $$0514637 = $187;$$0530636 = 10;
  34265. while(1) {
  34266. $190 = ($$0530636*10)|0;
  34267. $191 = (($$0514637) + 1)|0;
  34268. $192 = ($188>>>0)<($190>>>0);
  34269. if ($192) {
  34270. $$1515 = $191;
  34271. break;
  34272. } else {
  34273. $$0514637 = $191;$$0530636 = $190;
  34274. }
  34275. }
  34276. }
  34277. } else {
  34278. $$1515 = 0;
  34279. }
  34280. $193 = ($40|0)!=(102);
  34281. $194 = $193 ? $$1515 : 0;
  34282. $195 = (($$539) - ($194))|0;
  34283. $196 = ($40|0)==(103);
  34284. $197 = ($$539|0)!=(0);
  34285. $198 = $197 & $196;
  34286. $$neg = $198 << 31 >> 31;
  34287. $199 = (($195) + ($$neg))|0;
  34288. $200 = $$3501$lcssa;
  34289. $201 = (($200) - ($183))|0;
  34290. $202 = $201 >> 2;
  34291. $203 = ($202*9)|0;
  34292. $204 = (($203) + -9)|0;
  34293. $205 = ($199|0)<($204|0);
  34294. if ($205) {
  34295. $206 = ((($$556)) + 4|0);
  34296. $207 = (($199) + 9216)|0;
  34297. $208 = (($207|0) / 9)&-1;
  34298. $209 = (($208) + -1024)|0;
  34299. $210 = (($206) + ($209<<2)|0);
  34300. $211 = (($207|0) % 9)&-1;
  34301. $$0527629 = (($211) + 1)|0;
  34302. $212 = ($$0527629|0)<(9);
  34303. if ($212) {
  34304. $$0527631 = $$0527629;$$1531630 = 10;
  34305. while(1) {
  34306. $213 = ($$1531630*10)|0;
  34307. $$0527 = (($$0527631) + 1)|0;
  34308. $exitcond = ($$0527|0)==(9);
  34309. if ($exitcond) {
  34310. $$1531$lcssa = $213;
  34311. break;
  34312. } else {
  34313. $$0527631 = $$0527;$$1531630 = $213;
  34314. }
  34315. }
  34316. } else {
  34317. $$1531$lcssa = 10;
  34318. }
  34319. $214 = HEAP32[$210>>2]|0;
  34320. $215 = (($214>>>0) % ($$1531$lcssa>>>0))&-1;
  34321. $216 = ($215|0)==(0);
  34322. $217 = ((($210)) + 4|0);
  34323. $218 = ($217|0)==($$3501$lcssa|0);
  34324. $or$cond541 = $218 & $216;
  34325. if ($or$cond541) {
  34326. $$4492 = $210;$$4518 = $$1515;$$8 = $$3484$lcssa;
  34327. } else {
  34328. $219 = (($214>>>0) / ($$1531$lcssa>>>0))&-1;
  34329. $220 = $219 & 1;
  34330. $221 = ($220|0)==(0);
  34331. $$542 = $221 ? 9007199254740992.0 : 9007199254740994.0;
  34332. $222 = (($$1531$lcssa|0) / 2)&-1;
  34333. $223 = ($215>>>0)<($222>>>0);
  34334. $224 = ($215|0)==($222|0);
  34335. $or$cond544 = $218 & $224;
  34336. $$559 = $or$cond544 ? 1.0 : 1.5;
  34337. $$$559 = $223 ? 0.5 : $$559;
  34338. $225 = ($$0520|0)==(0);
  34339. if ($225) {
  34340. $$1467 = $$$559;$$1469 = $$542;
  34341. } else {
  34342. $226 = HEAP8[$$0521>>0]|0;
  34343. $227 = ($226<<24>>24)==(45);
  34344. $228 = -$$542;
  34345. $229 = -$$$559;
  34346. $$$542 = $227 ? $228 : $$542;
  34347. $$$$559 = $227 ? $229 : $$$559;
  34348. $$1467 = $$$$559;$$1469 = $$$542;
  34349. }
  34350. $230 = (($214) - ($215))|0;
  34351. HEAP32[$210>>2] = $230;
  34352. $231 = $$1469 + $$1467;
  34353. $232 = $231 != $$1469;
  34354. if ($232) {
  34355. $233 = (($230) + ($$1531$lcssa))|0;
  34356. HEAP32[$210>>2] = $233;
  34357. $234 = ($233>>>0)>(999999999);
  34358. if ($234) {
  34359. $$5486623 = $$3484$lcssa;$$sink545622 = $210;
  34360. while(1) {
  34361. $235 = ((($$sink545622)) + -4|0);
  34362. HEAP32[$$sink545622>>2] = 0;
  34363. $236 = ($235>>>0)<($$5486623>>>0);
  34364. if ($236) {
  34365. $237 = ((($$5486623)) + -4|0);
  34366. HEAP32[$237>>2] = 0;
  34367. $$6 = $237;
  34368. } else {
  34369. $$6 = $$5486623;
  34370. }
  34371. $238 = HEAP32[$235>>2]|0;
  34372. $239 = (($238) + 1)|0;
  34373. HEAP32[$235>>2] = $239;
  34374. $240 = ($239>>>0)>(999999999);
  34375. if ($240) {
  34376. $$5486623 = $$6;$$sink545622 = $235;
  34377. } else {
  34378. $$5486$lcssa = $$6;$$sink545$lcssa = $235;
  34379. break;
  34380. }
  34381. }
  34382. } else {
  34383. $$5486$lcssa = $$3484$lcssa;$$sink545$lcssa = $210;
  34384. }
  34385. $241 = $$5486$lcssa;
  34386. $242 = (($183) - ($241))|0;
  34387. $243 = $242 >> 2;
  34388. $244 = ($243*9)|0;
  34389. $245 = HEAP32[$$5486$lcssa>>2]|0;
  34390. $246 = ($245>>>0)<(10);
  34391. if ($246) {
  34392. $$4492 = $$sink545$lcssa;$$4518 = $244;$$8 = $$5486$lcssa;
  34393. } else {
  34394. $$2516618 = $244;$$2532617 = 10;
  34395. while(1) {
  34396. $247 = ($$2532617*10)|0;
  34397. $248 = (($$2516618) + 1)|0;
  34398. $249 = ($245>>>0)<($247>>>0);
  34399. if ($249) {
  34400. $$4492 = $$sink545$lcssa;$$4518 = $248;$$8 = $$5486$lcssa;
  34401. break;
  34402. } else {
  34403. $$2516618 = $248;$$2532617 = $247;
  34404. }
  34405. }
  34406. }
  34407. } else {
  34408. $$4492 = $210;$$4518 = $$1515;$$8 = $$3484$lcssa;
  34409. }
  34410. }
  34411. $250 = ((($$4492)) + 4|0);
  34412. $251 = ($$3501$lcssa>>>0)>($250>>>0);
  34413. $$$3501 = $251 ? $250 : $$3501$lcssa;
  34414. $$5519$ph = $$4518;$$7505$ph = $$$3501;$$9$ph = $$8;
  34415. } else {
  34416. $$5519$ph = $$1515;$$7505$ph = $$3501$lcssa;$$9$ph = $$3484$lcssa;
  34417. }
  34418. $$7505 = $$7505$ph;
  34419. while(1) {
  34420. $252 = ($$7505>>>0)>($$9$ph>>>0);
  34421. if (!($252)) {
  34422. $$lcssa673 = 0;
  34423. break;
  34424. }
  34425. $253 = ((($$7505)) + -4|0);
  34426. $254 = HEAP32[$253>>2]|0;
  34427. $255 = ($254|0)==(0);
  34428. if ($255) {
  34429. $$7505 = $253;
  34430. } else {
  34431. $$lcssa673 = 1;
  34432. break;
  34433. }
  34434. }
  34435. $256 = (0 - ($$5519$ph))|0;
  34436. do {
  34437. if ($196) {
  34438. $not$ = $197 ^ 1;
  34439. $257 = $not$&1;
  34440. $$539$ = (($257) + ($$539))|0;
  34441. $258 = ($$539$|0)>($$5519$ph|0);
  34442. $259 = ($$5519$ph|0)>(-5);
  34443. $or$cond6 = $258 & $259;
  34444. if ($or$cond6) {
  34445. $260 = (($5) + -1)|0;
  34446. $$neg567 = (($$539$) + -1)|0;
  34447. $261 = (($$neg567) - ($$5519$ph))|0;
  34448. $$0479 = $260;$$2476 = $261;
  34449. } else {
  34450. $262 = (($5) + -2)|0;
  34451. $263 = (($$539$) + -1)|0;
  34452. $$0479 = $262;$$2476 = $263;
  34453. }
  34454. $264 = $4 & 8;
  34455. $265 = ($264|0)==(0);
  34456. if ($265) {
  34457. if ($$lcssa673) {
  34458. $266 = ((($$7505)) + -4|0);
  34459. $267 = HEAP32[$266>>2]|0;
  34460. $268 = ($267|0)==(0);
  34461. if ($268) {
  34462. $$2529 = 9;
  34463. } else {
  34464. $269 = (($267>>>0) % 10)&-1;
  34465. $270 = ($269|0)==(0);
  34466. if ($270) {
  34467. $$1528614 = 0;$$3533613 = 10;
  34468. while(1) {
  34469. $271 = ($$3533613*10)|0;
  34470. $272 = (($$1528614) + 1)|0;
  34471. $273 = (($267>>>0) % ($271>>>0))&-1;
  34472. $274 = ($273|0)==(0);
  34473. if ($274) {
  34474. $$1528614 = $272;$$3533613 = $271;
  34475. } else {
  34476. $$2529 = $272;
  34477. break;
  34478. }
  34479. }
  34480. } else {
  34481. $$2529 = 0;
  34482. }
  34483. }
  34484. } else {
  34485. $$2529 = 9;
  34486. }
  34487. $275 = $$0479 | 32;
  34488. $276 = ($275|0)==(102);
  34489. $277 = $$7505;
  34490. $278 = (($277) - ($183))|0;
  34491. $279 = $278 >> 2;
  34492. $280 = ($279*9)|0;
  34493. $281 = (($280) + -9)|0;
  34494. if ($276) {
  34495. $282 = (($281) - ($$2529))|0;
  34496. $283 = ($282|0)>(0);
  34497. $$546 = $283 ? $282 : 0;
  34498. $284 = ($$2476|0)<($$546|0);
  34499. $$2476$$547 = $284 ? $$2476 : $$546;
  34500. $$1480 = $$0479;$$3477 = $$2476$$547;$$pre$phi690Z2D = 0;
  34501. break;
  34502. } else {
  34503. $285 = (($281) + ($$5519$ph))|0;
  34504. $286 = (($285) - ($$2529))|0;
  34505. $287 = ($286|0)>(0);
  34506. $$548 = $287 ? $286 : 0;
  34507. $288 = ($$2476|0)<($$548|0);
  34508. $$2476$$549 = $288 ? $$2476 : $$548;
  34509. $$1480 = $$0479;$$3477 = $$2476$$549;$$pre$phi690Z2D = 0;
  34510. break;
  34511. }
  34512. } else {
  34513. $$1480 = $$0479;$$3477 = $$2476;$$pre$phi690Z2D = $264;
  34514. }
  34515. } else {
  34516. $$pre689 = $4 & 8;
  34517. $$1480 = $5;$$3477 = $$539;$$pre$phi690Z2D = $$pre689;
  34518. }
  34519. } while(0);
  34520. $289 = $$3477 | $$pre$phi690Z2D;
  34521. $290 = ($289|0)!=(0);
  34522. $291 = $290&1;
  34523. $292 = $$1480 | 32;
  34524. $293 = ($292|0)==(102);
  34525. if ($293) {
  34526. $294 = ($$5519$ph|0)>(0);
  34527. $295 = $294 ? $$5519$ph : 0;
  34528. $$2513 = 0;$$pn566 = $295;
  34529. } else {
  34530. $296 = ($$5519$ph|0)<(0);
  34531. $297 = $296 ? $256 : $$5519$ph;
  34532. $298 = ($297|0)<(0);
  34533. $299 = $298 << 31 >> 31;
  34534. $300 = (_fmt_u($297,$299,$11)|0);
  34535. $301 = $11;
  34536. $302 = $300;
  34537. $303 = (($301) - ($302))|0;
  34538. $304 = ($303|0)<(2);
  34539. if ($304) {
  34540. $$1512607 = $300;
  34541. while(1) {
  34542. $305 = ((($$1512607)) + -1|0);
  34543. HEAP8[$305>>0] = 48;
  34544. $306 = $305;
  34545. $307 = (($301) - ($306))|0;
  34546. $308 = ($307|0)<(2);
  34547. if ($308) {
  34548. $$1512607 = $305;
  34549. } else {
  34550. $$1512$lcssa = $305;
  34551. break;
  34552. }
  34553. }
  34554. } else {
  34555. $$1512$lcssa = $300;
  34556. }
  34557. $309 = $$5519$ph >> 31;
  34558. $310 = $309 & 2;
  34559. $311 = (($310) + 43)|0;
  34560. $312 = $311&255;
  34561. $313 = ((($$1512$lcssa)) + -1|0);
  34562. HEAP8[$313>>0] = $312;
  34563. $314 = $$1480&255;
  34564. $315 = ((($$1512$lcssa)) + -2|0);
  34565. HEAP8[$315>>0] = $314;
  34566. $316 = $315;
  34567. $317 = (($301) - ($316))|0;
  34568. $$2513 = $315;$$pn566 = $317;
  34569. }
  34570. $318 = (($$0520) + 1)|0;
  34571. $319 = (($318) + ($$3477))|0;
  34572. $$1526 = (($319) + ($291))|0;
  34573. $320 = (($$1526) + ($$pn566))|0;
  34574. _pad_674($0,32,$2,$320,$4);
  34575. _out($0,$$0521,$$0520);
  34576. $321 = $4 ^ 65536;
  34577. _pad_674($0,48,$2,$320,$321);
  34578. if ($293) {
  34579. $322 = ($$9$ph>>>0)>($$556>>>0);
  34580. $$0496$$9 = $322 ? $$556 : $$9$ph;
  34581. $323 = ((($8)) + 9|0);
  34582. $324 = $323;
  34583. $325 = ((($8)) + 8|0);
  34584. $$5493597 = $$0496$$9;
  34585. while(1) {
  34586. $326 = HEAP32[$$5493597>>2]|0;
  34587. $327 = (_fmt_u($326,0,$323)|0);
  34588. $328 = ($$5493597|0)==($$0496$$9|0);
  34589. if ($328) {
  34590. $334 = ($327|0)==($323|0);
  34591. if ($334) {
  34592. HEAP8[$325>>0] = 48;
  34593. $$1465 = $325;
  34594. } else {
  34595. $$1465 = $327;
  34596. }
  34597. } else {
  34598. $329 = ($327>>>0)>($8>>>0);
  34599. if ($329) {
  34600. $330 = $327;
  34601. $331 = (($330) - ($9))|0;
  34602. _memset(($8|0),48,($331|0))|0;
  34603. $$0464594 = $327;
  34604. while(1) {
  34605. $332 = ((($$0464594)) + -1|0);
  34606. $333 = ($332>>>0)>($8>>>0);
  34607. if ($333) {
  34608. $$0464594 = $332;
  34609. } else {
  34610. $$1465 = $332;
  34611. break;
  34612. }
  34613. }
  34614. } else {
  34615. $$1465 = $327;
  34616. }
  34617. }
  34618. $335 = $$1465;
  34619. $336 = (($324) - ($335))|0;
  34620. _out($0,$$1465,$336);
  34621. $337 = ((($$5493597)) + 4|0);
  34622. $338 = ($337>>>0)>($$556>>>0);
  34623. if ($338) {
  34624. break;
  34625. } else {
  34626. $$5493597 = $337;
  34627. }
  34628. }
  34629. $339 = ($289|0)==(0);
  34630. if (!($339)) {
  34631. _out($0,17397,1);
  34632. }
  34633. $340 = ($337>>>0)<($$7505>>>0);
  34634. $341 = ($$3477|0)>(0);
  34635. $342 = $340 & $341;
  34636. if ($342) {
  34637. $$4478590 = $$3477;$$6494589 = $337;
  34638. while(1) {
  34639. $343 = HEAP32[$$6494589>>2]|0;
  34640. $344 = (_fmt_u($343,0,$323)|0);
  34641. $345 = ($344>>>0)>($8>>>0);
  34642. if ($345) {
  34643. $346 = $344;
  34644. $347 = (($346) - ($9))|0;
  34645. _memset(($8|0),48,($347|0))|0;
  34646. $$0463584 = $344;
  34647. while(1) {
  34648. $348 = ((($$0463584)) + -1|0);
  34649. $349 = ($348>>>0)>($8>>>0);
  34650. if ($349) {
  34651. $$0463584 = $348;
  34652. } else {
  34653. $$0463$lcssa = $348;
  34654. break;
  34655. }
  34656. }
  34657. } else {
  34658. $$0463$lcssa = $344;
  34659. }
  34660. $350 = ($$4478590|0)<(9);
  34661. $351 = $350 ? $$4478590 : 9;
  34662. _out($0,$$0463$lcssa,$351);
  34663. $352 = ((($$6494589)) + 4|0);
  34664. $353 = (($$4478590) + -9)|0;
  34665. $354 = ($352>>>0)<($$7505>>>0);
  34666. $355 = ($$4478590|0)>(9);
  34667. $356 = $354 & $355;
  34668. if ($356) {
  34669. $$4478590 = $353;$$6494589 = $352;
  34670. } else {
  34671. $$4478$lcssa = $353;
  34672. break;
  34673. }
  34674. }
  34675. } else {
  34676. $$4478$lcssa = $$3477;
  34677. }
  34678. $357 = (($$4478$lcssa) + 9)|0;
  34679. _pad_674($0,48,$357,9,0);
  34680. } else {
  34681. $358 = ((($$9$ph)) + 4|0);
  34682. $$7505$ = $$lcssa673 ? $$7505 : $358;
  34683. $359 = ($$3477|0)>(-1);
  34684. if ($359) {
  34685. $360 = ((($8)) + 9|0);
  34686. $361 = ($$pre$phi690Z2D|0)==(0);
  34687. $362 = $360;
  34688. $363 = (0 - ($9))|0;
  34689. $364 = ((($8)) + 8|0);
  34690. $$5602 = $$3477;$$7495601 = $$9$ph;
  34691. while(1) {
  34692. $365 = HEAP32[$$7495601>>2]|0;
  34693. $366 = (_fmt_u($365,0,$360)|0);
  34694. $367 = ($366|0)==($360|0);
  34695. if ($367) {
  34696. HEAP8[$364>>0] = 48;
  34697. $$0 = $364;
  34698. } else {
  34699. $$0 = $366;
  34700. }
  34701. $368 = ($$7495601|0)==($$9$ph|0);
  34702. do {
  34703. if ($368) {
  34704. $372 = ((($$0)) + 1|0);
  34705. _out($0,$$0,1);
  34706. $373 = ($$5602|0)<(1);
  34707. $or$cond554 = $361 & $373;
  34708. if ($or$cond554) {
  34709. $$2 = $372;
  34710. break;
  34711. }
  34712. _out($0,17397,1);
  34713. $$2 = $372;
  34714. } else {
  34715. $369 = ($$0>>>0)>($8>>>0);
  34716. if (!($369)) {
  34717. $$2 = $$0;
  34718. break;
  34719. }
  34720. $scevgep684 = (($$0) + ($363)|0);
  34721. $scevgep684685 = $scevgep684;
  34722. _memset(($8|0),48,($scevgep684685|0))|0;
  34723. $$1598 = $$0;
  34724. while(1) {
  34725. $370 = ((($$1598)) + -1|0);
  34726. $371 = ($370>>>0)>($8>>>0);
  34727. if ($371) {
  34728. $$1598 = $370;
  34729. } else {
  34730. $$2 = $370;
  34731. break;
  34732. }
  34733. }
  34734. }
  34735. } while(0);
  34736. $374 = $$2;
  34737. $375 = (($362) - ($374))|0;
  34738. $376 = ($$5602|0)>($375|0);
  34739. $377 = $376 ? $375 : $$5602;
  34740. _out($0,$$2,$377);
  34741. $378 = (($$5602) - ($375))|0;
  34742. $379 = ((($$7495601)) + 4|0);
  34743. $380 = ($379>>>0)<($$7505$>>>0);
  34744. $381 = ($378|0)>(-1);
  34745. $382 = $380 & $381;
  34746. if ($382) {
  34747. $$5602 = $378;$$7495601 = $379;
  34748. } else {
  34749. $$5$lcssa = $378;
  34750. break;
  34751. }
  34752. }
  34753. } else {
  34754. $$5$lcssa = $$3477;
  34755. }
  34756. $383 = (($$5$lcssa) + 18)|0;
  34757. _pad_674($0,48,$383,18,0);
  34758. $384 = $11;
  34759. $385 = $$2513;
  34760. $386 = (($384) - ($385))|0;
  34761. _out($0,$$2513,$386);
  34762. }
  34763. $387 = $4 ^ 8192;
  34764. _pad_674($0,32,$2,$320,$387);
  34765. $$sink562 = $320;
  34766. } else {
  34767. $27 = $5 & 32;
  34768. $28 = ($27|0)!=(0);
  34769. $29 = $28 ? 17369 : 17373;
  34770. $30 = ($$0471 != $$0471) | (0.0 != 0.0);
  34771. $31 = $28 ? 19300 : 17377;
  34772. $$0510 = $30 ? $31 : $29;
  34773. $32 = (($$0520) + 3)|0;
  34774. $33 = $4 & -65537;
  34775. _pad_674($0,32,$2,$32,$33);
  34776. _out($0,$$0521,$$0520);
  34777. _out($0,$$0510,3);
  34778. $34 = $4 ^ 8192;
  34779. _pad_674($0,32,$2,$32,$34);
  34780. $$sink562 = $32;
  34781. }
  34782. } while(0);
  34783. $388 = ($$sink562|0)<($2|0);
  34784. $$555 = $388 ? $2 : $$sink562;
  34785. STACKTOP = sp;return ($$555|0);
  34786. }
  34787. function ___DOUBLE_BITS_675($0) {
  34788. $0 = +$0;
  34789. var $1 = 0, $2 = 0, label = 0, sp = 0;
  34790. sp = STACKTOP;
  34791. HEAPF64[tempDoublePtr>>3] = $0;$1 = HEAP32[tempDoublePtr>>2]|0;
  34792. $2 = HEAP32[tempDoublePtr+4>>2]|0;
  34793. tempRet0 = ($2);
  34794. return ($1|0);
  34795. }
  34796. function _frexpl($0,$1) {
  34797. $0 = +$0;
  34798. $1 = $1|0;
  34799. var $2 = 0.0, label = 0, sp = 0;
  34800. sp = STACKTOP;
  34801. $2 = (+_frexp($0,$1));
  34802. return (+$2);
  34803. }
  34804. function _frexp($0,$1) {
  34805. $0 = +$0;
  34806. $1 = $1|0;
  34807. 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;
  34808. var sp = 0;
  34809. sp = STACKTOP;
  34810. HEAPF64[tempDoublePtr>>3] = $0;$2 = HEAP32[tempDoublePtr>>2]|0;
  34811. $3 = HEAP32[tempDoublePtr+4>>2]|0;
  34812. $4 = (_bitshift64Lshr(($2|0),($3|0),52)|0);
  34813. $5 = tempRet0;
  34814. $6 = $4&65535;
  34815. $trunc$clear = $6 & 2047;
  34816. switch ($trunc$clear<<16>>16) {
  34817. case 0: {
  34818. $7 = $0 != 0.0;
  34819. if ($7) {
  34820. $8 = $0 * 1.8446744073709552E+19;
  34821. $9 = (+_frexp($8,$1));
  34822. $10 = HEAP32[$1>>2]|0;
  34823. $11 = (($10) + -64)|0;
  34824. $$016 = $9;$storemerge = $11;
  34825. } else {
  34826. $$016 = $0;$storemerge = 0;
  34827. }
  34828. HEAP32[$1>>2] = $storemerge;
  34829. $$0 = $$016;
  34830. break;
  34831. }
  34832. case 2047: {
  34833. $$0 = $0;
  34834. break;
  34835. }
  34836. default: {
  34837. $12 = $4 & 2047;
  34838. $13 = (($12) + -1022)|0;
  34839. HEAP32[$1>>2] = $13;
  34840. $14 = $3 & -2146435073;
  34841. $15 = $14 | 1071644672;
  34842. HEAP32[tempDoublePtr>>2] = $2;HEAP32[tempDoublePtr+4>>2] = $15;$16 = +HEAPF64[tempDoublePtr>>3];
  34843. $$0 = $16;
  34844. }
  34845. }
  34846. return (+$$0);
  34847. }
  34848. function _wcrtomb($0,$1,$2) {
  34849. $0 = $0|0;
  34850. $1 = $1|0;
  34851. $2 = $2|0;
  34852. 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;
  34853. 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;
  34854. 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;
  34855. sp = STACKTOP;
  34856. $3 = ($0|0)==(0|0);
  34857. do {
  34858. if ($3) {
  34859. $$0 = 1;
  34860. } else {
  34861. $4 = ($1>>>0)<(128);
  34862. if ($4) {
  34863. $5 = $1&255;
  34864. HEAP8[$0>>0] = $5;
  34865. $$0 = 1;
  34866. break;
  34867. }
  34868. $6 = (___pthread_self_448()|0);
  34869. $7 = ((($6)) + 188|0);
  34870. $8 = HEAP32[$7>>2]|0;
  34871. $9 = HEAP32[$8>>2]|0;
  34872. $not$ = ($9|0)==(0|0);
  34873. if ($not$) {
  34874. $10 = $1 & -128;
  34875. $11 = ($10|0)==(57216);
  34876. if ($11) {
  34877. $13 = $1&255;
  34878. HEAP8[$0>>0] = $13;
  34879. $$0 = 1;
  34880. break;
  34881. } else {
  34882. $12 = (___errno_location()|0);
  34883. HEAP32[$12>>2] = 84;
  34884. $$0 = -1;
  34885. break;
  34886. }
  34887. }
  34888. $14 = ($1>>>0)<(2048);
  34889. if ($14) {
  34890. $15 = $1 >>> 6;
  34891. $16 = $15 | 192;
  34892. $17 = $16&255;
  34893. $18 = ((($0)) + 1|0);
  34894. HEAP8[$0>>0] = $17;
  34895. $19 = $1 & 63;
  34896. $20 = $19 | 128;
  34897. $21 = $20&255;
  34898. HEAP8[$18>>0] = $21;
  34899. $$0 = 2;
  34900. break;
  34901. }
  34902. $22 = ($1>>>0)<(55296);
  34903. $23 = $1 & -8192;
  34904. $24 = ($23|0)==(57344);
  34905. $or$cond = $22 | $24;
  34906. if ($or$cond) {
  34907. $25 = $1 >>> 12;
  34908. $26 = $25 | 224;
  34909. $27 = $26&255;
  34910. $28 = ((($0)) + 1|0);
  34911. HEAP8[$0>>0] = $27;
  34912. $29 = $1 >>> 6;
  34913. $30 = $29 & 63;
  34914. $31 = $30 | 128;
  34915. $32 = $31&255;
  34916. $33 = ((($0)) + 2|0);
  34917. HEAP8[$28>>0] = $32;
  34918. $34 = $1 & 63;
  34919. $35 = $34 | 128;
  34920. $36 = $35&255;
  34921. HEAP8[$33>>0] = $36;
  34922. $$0 = 3;
  34923. break;
  34924. }
  34925. $37 = (($1) + -65536)|0;
  34926. $38 = ($37>>>0)<(1048576);
  34927. if ($38) {
  34928. $39 = $1 >>> 18;
  34929. $40 = $39 | 240;
  34930. $41 = $40&255;
  34931. $42 = ((($0)) + 1|0);
  34932. HEAP8[$0>>0] = $41;
  34933. $43 = $1 >>> 12;
  34934. $44 = $43 & 63;
  34935. $45 = $44 | 128;
  34936. $46 = $45&255;
  34937. $47 = ((($0)) + 2|0);
  34938. HEAP8[$42>>0] = $46;
  34939. $48 = $1 >>> 6;
  34940. $49 = $48 & 63;
  34941. $50 = $49 | 128;
  34942. $51 = $50&255;
  34943. $52 = ((($0)) + 3|0);
  34944. HEAP8[$47>>0] = $51;
  34945. $53 = $1 & 63;
  34946. $54 = $53 | 128;
  34947. $55 = $54&255;
  34948. HEAP8[$52>>0] = $55;
  34949. $$0 = 4;
  34950. break;
  34951. } else {
  34952. $56 = (___errno_location()|0);
  34953. HEAP32[$56>>2] = 84;
  34954. $$0 = -1;
  34955. break;
  34956. }
  34957. }
  34958. } while(0);
  34959. return ($$0|0);
  34960. }
  34961. function ___pthread_self_448() {
  34962. var $0 = 0, label = 0, sp = 0;
  34963. sp = STACKTOP;
  34964. $0 = (_pthread_self()|0);
  34965. return ($0|0);
  34966. }
  34967. function ___pthread_self_105() {
  34968. var $0 = 0, label = 0, sp = 0;
  34969. sp = STACKTOP;
  34970. $0 = (_pthread_self()|0);
  34971. return ($0|0);
  34972. }
  34973. function ___strerror_l($0,$1) {
  34974. $0 = $0|0;
  34975. $1 = $1|0;
  34976. 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;
  34977. var label = 0, sp = 0;
  34978. sp = STACKTOP;
  34979. $$016 = 0;
  34980. while(1) {
  34981. $3 = (17399 + ($$016)|0);
  34982. $4 = HEAP8[$3>>0]|0;
  34983. $5 = $4&255;
  34984. $6 = ($5|0)==($0|0);
  34985. if ($6) {
  34986. label = 2;
  34987. break;
  34988. }
  34989. $7 = (($$016) + 1)|0;
  34990. $8 = ($7|0)==(87);
  34991. if ($8) {
  34992. $$01214 = 17487;$$115 = 87;
  34993. label = 5;
  34994. break;
  34995. } else {
  34996. $$016 = $7;
  34997. }
  34998. }
  34999. if ((label|0) == 2) {
  35000. $2 = ($$016|0)==(0);
  35001. if ($2) {
  35002. $$012$lcssa = 17487;
  35003. } else {
  35004. $$01214 = 17487;$$115 = $$016;
  35005. label = 5;
  35006. }
  35007. }
  35008. if ((label|0) == 5) {
  35009. while(1) {
  35010. label = 0;
  35011. $$113 = $$01214;
  35012. while(1) {
  35013. $9 = HEAP8[$$113>>0]|0;
  35014. $10 = ($9<<24>>24)==(0);
  35015. $11 = ((($$113)) + 1|0);
  35016. if ($10) {
  35017. break;
  35018. } else {
  35019. $$113 = $11;
  35020. }
  35021. }
  35022. $12 = (($$115) + -1)|0;
  35023. $13 = ($12|0)==(0);
  35024. if ($13) {
  35025. $$012$lcssa = $11;
  35026. break;
  35027. } else {
  35028. $$01214 = $11;$$115 = $12;
  35029. label = 5;
  35030. }
  35031. }
  35032. }
  35033. $14 = ((($1)) + 20|0);
  35034. $15 = HEAP32[$14>>2]|0;
  35035. $16 = (___lctrans($$012$lcssa,$15)|0);
  35036. return ($16|0);
  35037. }
  35038. function ___lctrans($0,$1) {
  35039. $0 = $0|0;
  35040. $1 = $1|0;
  35041. var $2 = 0, label = 0, sp = 0;
  35042. sp = STACKTOP;
  35043. $2 = (___lctrans_impl($0,$1)|0);
  35044. return ($2|0);
  35045. }
  35046. function ___lctrans_impl($0,$1) {
  35047. $0 = $0|0;
  35048. $1 = $1|0;
  35049. var $$0 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, label = 0, sp = 0;
  35050. sp = STACKTOP;
  35051. $2 = ($1|0)==(0|0);
  35052. if ($2) {
  35053. $$0 = 0;
  35054. } else {
  35055. $3 = HEAP32[$1>>2]|0;
  35056. $4 = ((($1)) + 4|0);
  35057. $5 = HEAP32[$4>>2]|0;
  35058. $6 = (___mo_lookup($3,$5,$0)|0);
  35059. $$0 = $6;
  35060. }
  35061. $7 = ($$0|0)!=(0|0);
  35062. $8 = $7 ? $$0 : $0;
  35063. return ($8|0);
  35064. }
  35065. function ___mo_lookup($0,$1,$2) {
  35066. $0 = $0|0;
  35067. $1 = $1|0;
  35068. $2 = $2|0;
  35069. 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;
  35070. 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;
  35071. 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;
  35072. 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;
  35073. sp = STACKTOP;
  35074. $3 = HEAP32[$0>>2]|0;
  35075. $4 = (($3) + 1794895138)|0;
  35076. $5 = ((($0)) + 8|0);
  35077. $6 = HEAP32[$5>>2]|0;
  35078. $7 = (_swapc($6,$4)|0);
  35079. $8 = ((($0)) + 12|0);
  35080. $9 = HEAP32[$8>>2]|0;
  35081. $10 = (_swapc($9,$4)|0);
  35082. $11 = ((($0)) + 16|0);
  35083. $12 = HEAP32[$11>>2]|0;
  35084. $13 = (_swapc($12,$4)|0);
  35085. $14 = $1 >>> 2;
  35086. $15 = ($7>>>0)<($14>>>0);
  35087. L1: do {
  35088. if ($15) {
  35089. $16 = $7 << 2;
  35090. $17 = (($1) - ($16))|0;
  35091. $18 = ($10>>>0)<($17>>>0);
  35092. $19 = ($13>>>0)<($17>>>0);
  35093. $or$cond = $18 & $19;
  35094. if ($or$cond) {
  35095. $20 = $13 | $10;
  35096. $21 = $20 & 3;
  35097. $22 = ($21|0)==(0);
  35098. if ($22) {
  35099. $23 = $10 >>> 2;
  35100. $24 = $13 >>> 2;
  35101. $$090 = 0;$$094 = $7;
  35102. while(1) {
  35103. $25 = $$094 >>> 1;
  35104. $26 = (($$090) + ($25))|0;
  35105. $27 = $26 << 1;
  35106. $28 = (($27) + ($23))|0;
  35107. $29 = (($0) + ($28<<2)|0);
  35108. $30 = HEAP32[$29>>2]|0;
  35109. $31 = (_swapc($30,$4)|0);
  35110. $32 = (($28) + 1)|0;
  35111. $33 = (($0) + ($32<<2)|0);
  35112. $34 = HEAP32[$33>>2]|0;
  35113. $35 = (_swapc($34,$4)|0);
  35114. $36 = ($35>>>0)<($1>>>0);
  35115. $37 = (($1) - ($35))|0;
  35116. $38 = ($31>>>0)<($37>>>0);
  35117. $or$cond102 = $36 & $38;
  35118. if (!($or$cond102)) {
  35119. $$4 = 0;
  35120. break L1;
  35121. }
  35122. $39 = (($35) + ($31))|0;
  35123. $40 = (($0) + ($39)|0);
  35124. $41 = HEAP8[$40>>0]|0;
  35125. $42 = ($41<<24>>24)==(0);
  35126. if (!($42)) {
  35127. $$4 = 0;
  35128. break L1;
  35129. }
  35130. $43 = (($0) + ($35)|0);
  35131. $44 = (_strcmp($2,$43)|0);
  35132. $45 = ($44|0)==(0);
  35133. if ($45) {
  35134. break;
  35135. }
  35136. $62 = ($$094|0)==(1);
  35137. $63 = ($44|0)<(0);
  35138. $64 = (($$094) - ($25))|0;
  35139. $$195 = $63 ? $25 : $64;
  35140. $$191 = $63 ? $$090 : $26;
  35141. if ($62) {
  35142. $$4 = 0;
  35143. break L1;
  35144. } else {
  35145. $$090 = $$191;$$094 = $$195;
  35146. }
  35147. }
  35148. $46 = (($27) + ($24))|0;
  35149. $47 = (($0) + ($46<<2)|0);
  35150. $48 = HEAP32[$47>>2]|0;
  35151. $49 = (_swapc($48,$4)|0);
  35152. $50 = (($46) + 1)|0;
  35153. $51 = (($0) + ($50<<2)|0);
  35154. $52 = HEAP32[$51>>2]|0;
  35155. $53 = (_swapc($52,$4)|0);
  35156. $54 = ($53>>>0)<($1>>>0);
  35157. $55 = (($1) - ($53))|0;
  35158. $56 = ($49>>>0)<($55>>>0);
  35159. $or$cond104 = $54 & $56;
  35160. if ($or$cond104) {
  35161. $57 = (($0) + ($53)|0);
  35162. $58 = (($53) + ($49))|0;
  35163. $59 = (($0) + ($58)|0);
  35164. $60 = HEAP8[$59>>0]|0;
  35165. $61 = ($60<<24>>24)==(0);
  35166. $$ = $61 ? $57 : 0;
  35167. $$4 = $$;
  35168. } else {
  35169. $$4 = 0;
  35170. }
  35171. } else {
  35172. $$4 = 0;
  35173. }
  35174. } else {
  35175. $$4 = 0;
  35176. }
  35177. } else {
  35178. $$4 = 0;
  35179. }
  35180. } while(0);
  35181. return ($$4|0);
  35182. }
  35183. function _swapc($0,$1) {
  35184. $0 = $0|0;
  35185. $1 = $1|0;
  35186. var $$ = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
  35187. sp = STACKTOP;
  35188. $2 = ($1|0)==(0);
  35189. $3 = (_llvm_bswap_i32(($0|0))|0);
  35190. $$ = $2 ? $0 : $3;
  35191. return ($$|0);
  35192. }
  35193. function ___fwritex($0,$1,$2) {
  35194. $0 = $0|0;
  35195. $1 = $1|0;
  35196. $2 = $2|0;
  35197. 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;
  35198. 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;
  35199. var label = 0, sp = 0;
  35200. sp = STACKTOP;
  35201. $3 = ((($2)) + 16|0);
  35202. $4 = HEAP32[$3>>2]|0;
  35203. $5 = ($4|0)==(0|0);
  35204. if ($5) {
  35205. $7 = (___towrite($2)|0);
  35206. $8 = ($7|0)==(0);
  35207. if ($8) {
  35208. $$pre = HEAP32[$3>>2]|0;
  35209. $12 = $$pre;
  35210. label = 5;
  35211. } else {
  35212. $$1 = 0;
  35213. }
  35214. } else {
  35215. $6 = $4;
  35216. $12 = $6;
  35217. label = 5;
  35218. }
  35219. L5: do {
  35220. if ((label|0) == 5) {
  35221. $9 = ((($2)) + 20|0);
  35222. $10 = HEAP32[$9>>2]|0;
  35223. $11 = (($12) - ($10))|0;
  35224. $13 = ($11>>>0)<($1>>>0);
  35225. $14 = $10;
  35226. if ($13) {
  35227. $15 = ((($2)) + 36|0);
  35228. $16 = HEAP32[$15>>2]|0;
  35229. $17 = (FUNCTION_TABLE_iiii[$16 & 15]($2,$0,$1)|0);
  35230. $$1 = $17;
  35231. break;
  35232. }
  35233. $18 = ((($2)) + 75|0);
  35234. $19 = HEAP8[$18>>0]|0;
  35235. $20 = ($19<<24>>24)>(-1);
  35236. L10: do {
  35237. if ($20) {
  35238. $$038 = $1;
  35239. while(1) {
  35240. $21 = ($$038|0)==(0);
  35241. if ($21) {
  35242. $$139 = 0;$$141 = $0;$$143 = $1;$31 = $14;
  35243. break L10;
  35244. }
  35245. $22 = (($$038) + -1)|0;
  35246. $23 = (($0) + ($22)|0);
  35247. $24 = HEAP8[$23>>0]|0;
  35248. $25 = ($24<<24>>24)==(10);
  35249. if ($25) {
  35250. break;
  35251. } else {
  35252. $$038 = $22;
  35253. }
  35254. }
  35255. $26 = ((($2)) + 36|0);
  35256. $27 = HEAP32[$26>>2]|0;
  35257. $28 = (FUNCTION_TABLE_iiii[$27 & 15]($2,$0,$$038)|0);
  35258. $29 = ($28>>>0)<($$038>>>0);
  35259. if ($29) {
  35260. $$1 = $28;
  35261. break L5;
  35262. }
  35263. $30 = (($0) + ($$038)|0);
  35264. $$042 = (($1) - ($$038))|0;
  35265. $$pre47 = HEAP32[$9>>2]|0;
  35266. $$139 = $$038;$$141 = $30;$$143 = $$042;$31 = $$pre47;
  35267. } else {
  35268. $$139 = 0;$$141 = $0;$$143 = $1;$31 = $14;
  35269. }
  35270. } while(0);
  35271. _memcpy(($31|0),($$141|0),($$143|0))|0;
  35272. $32 = HEAP32[$9>>2]|0;
  35273. $33 = (($32) + ($$143)|0);
  35274. HEAP32[$9>>2] = $33;
  35275. $34 = (($$139) + ($$143))|0;
  35276. $$1 = $34;
  35277. }
  35278. } while(0);
  35279. return ($$1|0);
  35280. }
  35281. function ___towrite($0) {
  35282. $0 = $0|0;
  35283. 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;
  35284. var $9 = 0, label = 0, sp = 0;
  35285. sp = STACKTOP;
  35286. $1 = ((($0)) + 74|0);
  35287. $2 = HEAP8[$1>>0]|0;
  35288. $3 = $2 << 24 >> 24;
  35289. $4 = (($3) + 255)|0;
  35290. $5 = $4 | $3;
  35291. $6 = $5&255;
  35292. HEAP8[$1>>0] = $6;
  35293. $7 = HEAP32[$0>>2]|0;
  35294. $8 = $7 & 8;
  35295. $9 = ($8|0)==(0);
  35296. if ($9) {
  35297. $11 = ((($0)) + 8|0);
  35298. HEAP32[$11>>2] = 0;
  35299. $12 = ((($0)) + 4|0);
  35300. HEAP32[$12>>2] = 0;
  35301. $13 = ((($0)) + 44|0);
  35302. $14 = HEAP32[$13>>2]|0;
  35303. $15 = ((($0)) + 28|0);
  35304. HEAP32[$15>>2] = $14;
  35305. $16 = ((($0)) + 20|0);
  35306. HEAP32[$16>>2] = $14;
  35307. $17 = ((($0)) + 48|0);
  35308. $18 = HEAP32[$17>>2]|0;
  35309. $19 = (($14) + ($18)|0);
  35310. $20 = ((($0)) + 16|0);
  35311. HEAP32[$20>>2] = $19;
  35312. $$0 = 0;
  35313. } else {
  35314. $10 = $7 | 32;
  35315. HEAP32[$0>>2] = $10;
  35316. $$0 = -1;
  35317. }
  35318. return ($$0|0);
  35319. }
  35320. function _sn_write($0,$1,$2) {
  35321. $0 = $0|0;
  35322. $1 = $1|0;
  35323. $2 = $2|0;
  35324. var $$ = 0, $10 = 0, $11 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  35325. sp = STACKTOP;
  35326. $3 = ((($0)) + 16|0);
  35327. $4 = HEAP32[$3>>2]|0;
  35328. $5 = ((($0)) + 20|0);
  35329. $6 = HEAP32[$5>>2]|0;
  35330. $7 = $6;
  35331. $8 = (($4) - ($7))|0;
  35332. $9 = ($8>>>0)>($2>>>0);
  35333. $$ = $9 ? $2 : $8;
  35334. _memcpy(($6|0),($1|0),($$|0))|0;
  35335. $10 = HEAP32[$5>>2]|0;
  35336. $11 = (($10) + ($$)|0);
  35337. HEAP32[$5>>2] = $11;
  35338. return ($2|0);
  35339. }
  35340. function ___floatscan($0,$1,$2) {
  35341. $0 = $0|0;
  35342. $1 = $1|0;
  35343. $2 = $2|0;
  35344. 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;
  35345. 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;
  35346. 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;
  35347. 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;
  35348. 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;
  35349. 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;
  35350. 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;
  35351. 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;
  35352. sp = STACKTOP;
  35353. switch ($1|0) {
  35354. case 0: {
  35355. $$0105$ph = -149;$$0106$ph = 24;
  35356. label = 4;
  35357. break;
  35358. }
  35359. case 1: {
  35360. $$0105$ph = -1074;$$0106$ph = 53;
  35361. label = 4;
  35362. break;
  35363. }
  35364. case 2: {
  35365. $$0105$ph = -1074;$$0106$ph = 53;
  35366. label = 4;
  35367. break;
  35368. }
  35369. default: {
  35370. $$0114 = 0.0;
  35371. }
  35372. }
  35373. L4: do {
  35374. if ((label|0) == 4) {
  35375. $3 = ((($0)) + 4|0);
  35376. $4 = ((($0)) + 100|0);
  35377. while(1) {
  35378. $5 = HEAP32[$3>>2]|0;
  35379. $6 = HEAP32[$4>>2]|0;
  35380. $7 = ($5>>>0)<($6>>>0);
  35381. if ($7) {
  35382. $8 = ((($5)) + 1|0);
  35383. HEAP32[$3>>2] = $8;
  35384. $9 = HEAP8[$5>>0]|0;
  35385. $10 = $9&255;
  35386. $12 = $10;
  35387. } else {
  35388. $11 = (___shgetc($0)|0);
  35389. $12 = $11;
  35390. }
  35391. $13 = (_isspace($12)|0);
  35392. $14 = ($13|0)==(0);
  35393. if ($14) {
  35394. break;
  35395. }
  35396. }
  35397. L13: do {
  35398. switch ($12|0) {
  35399. case 43: case 45: {
  35400. $15 = ($12|0)==(45);
  35401. $16 = $15&1;
  35402. $17 = $16 << 1;
  35403. $18 = (1 - ($17))|0;
  35404. $19 = HEAP32[$3>>2]|0;
  35405. $20 = HEAP32[$4>>2]|0;
  35406. $21 = ($19>>>0)<($20>>>0);
  35407. if ($21) {
  35408. $22 = ((($19)) + 1|0);
  35409. HEAP32[$3>>2] = $22;
  35410. $23 = HEAP8[$19>>0]|0;
  35411. $24 = $23&255;
  35412. $$0 = $24;$$0113 = $18;
  35413. break L13;
  35414. } else {
  35415. $25 = (___shgetc($0)|0);
  35416. $$0 = $25;$$0113 = $18;
  35417. break L13;
  35418. }
  35419. break;
  35420. }
  35421. default: {
  35422. $$0 = $12;$$0113 = 1;
  35423. }
  35424. }
  35425. } while(0);
  35426. $$0107127 = 0;$$1128 = $$0;
  35427. while(1) {
  35428. $26 = $$1128 | 32;
  35429. $27 = (19291 + ($$0107127)|0);
  35430. $28 = HEAP8[$27>>0]|0;
  35431. $29 = $28 << 24 >> 24;
  35432. $30 = ($26|0)==($29|0);
  35433. if (!($30)) {
  35434. $$0107$lcssa = $$0107127;$$1$lcssa = $$1128;
  35435. break;
  35436. }
  35437. $31 = ($$0107127>>>0)<(7);
  35438. do {
  35439. if ($31) {
  35440. $32 = HEAP32[$3>>2]|0;
  35441. $33 = HEAP32[$4>>2]|0;
  35442. $34 = ($32>>>0)<($33>>>0);
  35443. if ($34) {
  35444. $35 = ((($32)) + 1|0);
  35445. HEAP32[$3>>2] = $35;
  35446. $36 = HEAP8[$32>>0]|0;
  35447. $37 = $36&255;
  35448. $$2 = $37;
  35449. break;
  35450. } else {
  35451. $38 = (___shgetc($0)|0);
  35452. $$2 = $38;
  35453. break;
  35454. }
  35455. } else {
  35456. $$2 = $$1128;
  35457. }
  35458. } while(0);
  35459. $39 = (($$0107127) + 1)|0;
  35460. $40 = ($39>>>0)<(8);
  35461. if ($40) {
  35462. $$0107127 = $39;$$1128 = $$2;
  35463. } else {
  35464. $$0107$lcssa = $39;$$1$lcssa = $$2;
  35465. break;
  35466. }
  35467. }
  35468. L29: do {
  35469. switch ($$0107$lcssa|0) {
  35470. case 8: {
  35471. break;
  35472. }
  35473. case 3: {
  35474. label = 23;
  35475. break;
  35476. }
  35477. default: {
  35478. $41 = ($$0107$lcssa>>>0)>(3);
  35479. $42 = ($2|0)!=(0);
  35480. $or$cond5 = $42 & $41;
  35481. if ($or$cond5) {
  35482. $43 = ($$0107$lcssa|0)==(8);
  35483. if ($43) {
  35484. break L29;
  35485. } else {
  35486. label = 23;
  35487. break L29;
  35488. }
  35489. }
  35490. $56 = ($$0107$lcssa|0)==(0);
  35491. L34: do {
  35492. if ($56) {
  35493. $$2109125 = 0;$$3126 = $$1$lcssa;
  35494. while(1) {
  35495. $57 = $$3126 | 32;
  35496. $58 = (19300 + ($$2109125)|0);
  35497. $59 = HEAP8[$58>>0]|0;
  35498. $60 = $59 << 24 >> 24;
  35499. $61 = ($57|0)==($60|0);
  35500. if (!($61)) {
  35501. $$3110 = $$2109125;$$5 = $$3126;
  35502. break L34;
  35503. }
  35504. $62 = ($$2109125>>>0)<(2);
  35505. do {
  35506. if ($62) {
  35507. $63 = HEAP32[$3>>2]|0;
  35508. $64 = HEAP32[$4>>2]|0;
  35509. $65 = ($63>>>0)<($64>>>0);
  35510. if ($65) {
  35511. $66 = ((($63)) + 1|0);
  35512. HEAP32[$3>>2] = $66;
  35513. $67 = HEAP8[$63>>0]|0;
  35514. $68 = $67&255;
  35515. $$4 = $68;
  35516. break;
  35517. } else {
  35518. $69 = (___shgetc($0)|0);
  35519. $$4 = $69;
  35520. break;
  35521. }
  35522. } else {
  35523. $$4 = $$3126;
  35524. }
  35525. } while(0);
  35526. $70 = (($$2109125) + 1)|0;
  35527. $71 = ($70>>>0)<(3);
  35528. if ($71) {
  35529. $$2109125 = $70;$$3126 = $$4;
  35530. } else {
  35531. $$3110 = $70;$$5 = $$4;
  35532. break;
  35533. }
  35534. }
  35535. } else {
  35536. $$3110 = $$0107$lcssa;$$5 = $$1$lcssa;
  35537. }
  35538. } while(0);
  35539. switch ($$3110|0) {
  35540. case 3: {
  35541. $72 = HEAP32[$3>>2]|0;
  35542. $73 = HEAP32[$4>>2]|0;
  35543. $74 = ($72>>>0)<($73>>>0);
  35544. if ($74) {
  35545. $75 = ((($72)) + 1|0);
  35546. HEAP32[$3>>2] = $75;
  35547. $76 = HEAP8[$72>>0]|0;
  35548. $77 = $76&255;
  35549. $80 = $77;
  35550. } else {
  35551. $78 = (___shgetc($0)|0);
  35552. $80 = $78;
  35553. }
  35554. $79 = ($80|0)==(40);
  35555. if ($79) {
  35556. $$4111 = 1;
  35557. } else {
  35558. $81 = HEAP32[$4>>2]|0;
  35559. $82 = ($81|0)==(0|0);
  35560. if ($82) {
  35561. $$0114 = nan;
  35562. break L4;
  35563. }
  35564. $83 = HEAP32[$3>>2]|0;
  35565. $84 = ((($83)) + -1|0);
  35566. HEAP32[$3>>2] = $84;
  35567. $$0114 = nan;
  35568. break L4;
  35569. }
  35570. while(1) {
  35571. $85 = HEAP32[$3>>2]|0;
  35572. $86 = HEAP32[$4>>2]|0;
  35573. $87 = ($85>>>0)<($86>>>0);
  35574. if ($87) {
  35575. $88 = ((($85)) + 1|0);
  35576. HEAP32[$3>>2] = $88;
  35577. $89 = HEAP8[$85>>0]|0;
  35578. $90 = $89&255;
  35579. $93 = $90;
  35580. } else {
  35581. $91 = (___shgetc($0)|0);
  35582. $93 = $91;
  35583. }
  35584. $92 = (($93) + -48)|0;
  35585. $94 = ($92>>>0)<(10);
  35586. $95 = (($93) + -65)|0;
  35587. $96 = ($95>>>0)<(26);
  35588. $or$cond = $94 | $96;
  35589. if (!($or$cond)) {
  35590. $97 = (($93) + -97)|0;
  35591. $98 = ($97>>>0)<(26);
  35592. $99 = ($93|0)==(95);
  35593. $or$cond7 = $99 | $98;
  35594. if (!($or$cond7)) {
  35595. break;
  35596. }
  35597. }
  35598. $111 = (($$4111) + 1)|0;
  35599. $$4111 = $111;
  35600. }
  35601. $100 = ($93|0)==(41);
  35602. if ($100) {
  35603. $$0114 = nan;
  35604. break L4;
  35605. }
  35606. $101 = HEAP32[$4>>2]|0;
  35607. $102 = ($101|0)==(0|0);
  35608. if (!($102)) {
  35609. $103 = HEAP32[$3>>2]|0;
  35610. $104 = ((($103)) + -1|0);
  35611. HEAP32[$3>>2] = $104;
  35612. }
  35613. if (!($42)) {
  35614. $106 = (___errno_location()|0);
  35615. HEAP32[$106>>2] = 22;
  35616. ___shlim($0,0);
  35617. $$0114 = 0.0;
  35618. break L4;
  35619. }
  35620. $105 = ($$4111|0)==(0);
  35621. if ($105) {
  35622. $$0114 = nan;
  35623. break L4;
  35624. } else {
  35625. $$in = $$4111;
  35626. }
  35627. while(1) {
  35628. $107 = (($$in) + -1)|0;
  35629. if (!($102)) {
  35630. $108 = HEAP32[$3>>2]|0;
  35631. $109 = ((($108)) + -1|0);
  35632. HEAP32[$3>>2] = $109;
  35633. }
  35634. $110 = ($107|0)==(0);
  35635. if ($110) {
  35636. $$0114 = nan;
  35637. break L4;
  35638. } else {
  35639. $$in = $107;
  35640. }
  35641. }
  35642. break;
  35643. }
  35644. case 0: {
  35645. $117 = ($$5|0)==(48);
  35646. if ($117) {
  35647. $118 = HEAP32[$3>>2]|0;
  35648. $119 = HEAP32[$4>>2]|0;
  35649. $120 = ($118>>>0)<($119>>>0);
  35650. if ($120) {
  35651. $121 = ((($118)) + 1|0);
  35652. HEAP32[$3>>2] = $121;
  35653. $122 = HEAP8[$118>>0]|0;
  35654. $123 = $122&255;
  35655. $126 = $123;
  35656. } else {
  35657. $124 = (___shgetc($0)|0);
  35658. $126 = $124;
  35659. }
  35660. $125 = $126 | 32;
  35661. $127 = ($125|0)==(120);
  35662. if ($127) {
  35663. $128 = (+_hexfloat($0,$$0106$ph,$$0105$ph,$$0113,$2));
  35664. $$0114 = $128;
  35665. break L4;
  35666. }
  35667. $129 = HEAP32[$4>>2]|0;
  35668. $130 = ($129|0)==(0|0);
  35669. if ($130) {
  35670. $$6 = 48;
  35671. } else {
  35672. $131 = HEAP32[$3>>2]|0;
  35673. $132 = ((($131)) + -1|0);
  35674. HEAP32[$3>>2] = $132;
  35675. $$6 = 48;
  35676. }
  35677. } else {
  35678. $$6 = $$5;
  35679. }
  35680. $133 = (+_decfloat($0,$$6,$$0106$ph,$$0105$ph,$$0113,$2));
  35681. $$0114 = $133;
  35682. break L4;
  35683. break;
  35684. }
  35685. default: {
  35686. $112 = HEAP32[$4>>2]|0;
  35687. $113 = ($112|0)==(0|0);
  35688. if (!($113)) {
  35689. $114 = HEAP32[$3>>2]|0;
  35690. $115 = ((($114)) + -1|0);
  35691. HEAP32[$3>>2] = $115;
  35692. }
  35693. $116 = (___errno_location()|0);
  35694. HEAP32[$116>>2] = 22;
  35695. ___shlim($0,0);
  35696. $$0114 = 0.0;
  35697. break L4;
  35698. }
  35699. }
  35700. }
  35701. }
  35702. } while(0);
  35703. if ((label|0) == 23) {
  35704. $44 = HEAP32[$4>>2]|0;
  35705. $45 = ($44|0)==(0|0);
  35706. if (!($45)) {
  35707. $46 = HEAP32[$3>>2]|0;
  35708. $47 = ((($46)) + -1|0);
  35709. HEAP32[$3>>2] = $47;
  35710. }
  35711. $48 = ($2|0)!=(0);
  35712. $49 = ($$0107$lcssa>>>0)>(3);
  35713. $or$cond9 = $48 & $49;
  35714. if ($or$cond9) {
  35715. $$1108 = $$0107$lcssa;
  35716. while(1) {
  35717. if (!($45)) {
  35718. $50 = HEAP32[$3>>2]|0;
  35719. $51 = ((($50)) + -1|0);
  35720. HEAP32[$3>>2] = $51;
  35721. }
  35722. $52 = (($$1108) + -1)|0;
  35723. $$old8 = ($52>>>0)>(3);
  35724. if ($$old8) {
  35725. $$1108 = $52;
  35726. } else {
  35727. break;
  35728. }
  35729. }
  35730. }
  35731. }
  35732. $53 = (+($$0113|0));
  35733. $54 = $53 * inf;
  35734. $55 = $54;
  35735. $$0114 = $55;
  35736. }
  35737. } while(0);
  35738. return (+$$0114);
  35739. }
  35740. function _hexfloat($0,$1,$2,$3,$4) {
  35741. $0 = $0|0;
  35742. $1 = $1|0;
  35743. $2 = $2|0;
  35744. $3 = $3|0;
  35745. $4 = $4|0;
  35746. 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;
  35747. 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;
  35748. 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;
  35749. 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;
  35750. 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;
  35751. 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;
  35752. 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;
  35753. 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;
  35754. 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;
  35755. 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;
  35756. 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;
  35757. 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;
  35758. 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;
  35759. var $or$cond6 = 0, label = 0, sp = 0;
  35760. sp = STACKTOP;
  35761. $5 = ((($0)) + 4|0);
  35762. $6 = HEAP32[$5>>2]|0;
  35763. $7 = ((($0)) + 100|0);
  35764. $8 = HEAP32[$7>>2]|0;
  35765. $9 = ($6>>>0)<($8>>>0);
  35766. if ($9) {
  35767. $10 = ((($6)) + 1|0);
  35768. HEAP32[$5>>2] = $10;
  35769. $11 = HEAP8[$6>>0]|0;
  35770. $12 = $11&255;
  35771. $$0 = $12;$$0142 = 0;
  35772. } else {
  35773. $13 = (___shgetc($0)|0);
  35774. $$0 = $13;$$0142 = 0;
  35775. }
  35776. L4: while(1) {
  35777. switch ($$0|0) {
  35778. case 46: {
  35779. label = 8;
  35780. break L4;
  35781. break;
  35782. }
  35783. case 48: {
  35784. break;
  35785. }
  35786. default: {
  35787. $$0146 = 0;$$0148 = 0;$$0152 = 1.0;$$0155 = 0.0;$$0159 = 0;$$2 = $$0;$$2144 = $$0142;$101 = 0;$53 = 0;$55 = 0;$99 = 0;
  35788. break L4;
  35789. }
  35790. }
  35791. $14 = HEAP32[$5>>2]|0;
  35792. $15 = HEAP32[$7>>2]|0;
  35793. $16 = ($14>>>0)<($15>>>0);
  35794. if ($16) {
  35795. $17 = ((($14)) + 1|0);
  35796. HEAP32[$5>>2] = $17;
  35797. $18 = HEAP8[$14>>0]|0;
  35798. $19 = $18&255;
  35799. $$0 = $19;$$0142 = 1;
  35800. continue;
  35801. } else {
  35802. $20 = (___shgetc($0)|0);
  35803. $$0 = $20;$$0142 = 1;
  35804. continue;
  35805. }
  35806. }
  35807. if ((label|0) == 8) {
  35808. $21 = HEAP32[$5>>2]|0;
  35809. $22 = HEAP32[$7>>2]|0;
  35810. $23 = ($21>>>0)<($22>>>0);
  35811. if ($23) {
  35812. $24 = ((($21)) + 1|0);
  35813. HEAP32[$5>>2] = $24;
  35814. $25 = HEAP8[$21>>0]|0;
  35815. $26 = $25&255;
  35816. $$1$ph = $26;
  35817. } else {
  35818. $27 = (___shgetc($0)|0);
  35819. $$1$ph = $27;
  35820. }
  35821. $28 = ($$1$ph|0)==(48);
  35822. if ($28) {
  35823. $36 = 0;$37 = 0;
  35824. while(1) {
  35825. $29 = HEAP32[$5>>2]|0;
  35826. $30 = HEAP32[$7>>2]|0;
  35827. $31 = ($29>>>0)<($30>>>0);
  35828. if ($31) {
  35829. $32 = ((($29)) + 1|0);
  35830. HEAP32[$5>>2] = $32;
  35831. $33 = HEAP8[$29>>0]|0;
  35832. $34 = $33&255;
  35833. $41 = $34;
  35834. } else {
  35835. $35 = (___shgetc($0)|0);
  35836. $41 = $35;
  35837. }
  35838. $38 = (_i64Add(($36|0),($37|0),-1,-1)|0);
  35839. $39 = tempRet0;
  35840. $40 = ($41|0)==(48);
  35841. if ($40) {
  35842. $36 = $38;$37 = $39;
  35843. } else {
  35844. $$0146 = 1;$$0148 = 0;$$0152 = 1.0;$$0155 = 0.0;$$0159 = 0;$$2 = $41;$$2144 = 1;$101 = $39;$53 = 0;$55 = 0;$99 = $38;
  35845. break;
  35846. }
  35847. }
  35848. } else {
  35849. $$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;
  35850. }
  35851. }
  35852. while(1) {
  35853. $42 = (($$2) + -48)|0;
  35854. $43 = ($42>>>0)<(10);
  35855. $44 = ($$2|0)==(46);
  35856. if (!($43)) {
  35857. $45 = $$2 | 32;
  35858. $46 = (($45) + -97)|0;
  35859. $47 = ($46>>>0)<(6);
  35860. $or$cond6 = $44 | $47;
  35861. if (!($or$cond6)) {
  35862. $$2$lcssa = $$2;
  35863. break;
  35864. }
  35865. }
  35866. if ($44) {
  35867. $48 = ($$0146|0)==(0);
  35868. if ($48) {
  35869. $$1147 = 1;$$2150 = $$0148;$$2154 = $$0152;$$2157 = $$0155;$$2161 = $$0159;$$3145 = $$2144;$214 = $55;$215 = $53;$216 = $55;$217 = $53;
  35870. } else {
  35871. $$2$lcssa = 46;
  35872. break;
  35873. }
  35874. } else {
  35875. $49 = ($$2|0)>(57);
  35876. $50 = $$2 | 32;
  35877. $51 = (($50) + -87)|0;
  35878. $$0133 = $49 ? $51 : $42;
  35879. $52 = ($53|0)<(0);
  35880. $54 = ($55>>>0)<(8);
  35881. $56 = ($53|0)==(0);
  35882. $57 = $56 & $54;
  35883. $58 = $52 | $57;
  35884. do {
  35885. if ($58) {
  35886. $59 = $$0159 << 4;
  35887. $60 = (($$0133) + ($59))|0;
  35888. $$1149 = $$0148;$$1153 = $$0152;$$1156 = $$0155;$$1160 = $60;
  35889. } else {
  35890. $61 = ($53|0)<(0);
  35891. $62 = ($55>>>0)<(14);
  35892. $63 = ($53|0)==(0);
  35893. $64 = $63 & $62;
  35894. $65 = $61 | $64;
  35895. if ($65) {
  35896. $66 = (+($$0133|0));
  35897. $67 = $$0152 * 0.0625;
  35898. $68 = $67 * $66;
  35899. $69 = $$0155 + $68;
  35900. $$1149 = $$0148;$$1153 = $67;$$1156 = $69;$$1160 = $$0159;
  35901. break;
  35902. } else {
  35903. $70 = ($$0133|0)==(0);
  35904. $71 = ($$0148|0)!=(0);
  35905. $or$cond = $71 | $70;
  35906. $72 = $$0152 * 0.5;
  35907. $73 = $$0155 + $72;
  35908. $$0155$ = $or$cond ? $$0155 : $73;
  35909. $$0148$ = $or$cond ? $$0148 : 1;
  35910. $$1149 = $$0148$;$$1153 = $$0152;$$1156 = $$0155$;$$1160 = $$0159;
  35911. break;
  35912. }
  35913. }
  35914. } while(0);
  35915. $74 = (_i64Add(($55|0),($53|0),1,0)|0);
  35916. $75 = tempRet0;
  35917. $$1147 = $$0146;$$2150 = $$1149;$$2154 = $$1153;$$2157 = $$1156;$$2161 = $$1160;$$3145 = 1;$214 = $99;$215 = $101;$216 = $74;$217 = $75;
  35918. }
  35919. $76 = HEAP32[$5>>2]|0;
  35920. $77 = HEAP32[$7>>2]|0;
  35921. $78 = ($76>>>0)<($77>>>0);
  35922. if ($78) {
  35923. $79 = ((($76)) + 1|0);
  35924. HEAP32[$5>>2] = $79;
  35925. $80 = HEAP8[$76>>0]|0;
  35926. $81 = $80&255;
  35927. $$0146 = $$1147;$$0148 = $$2150;$$0152 = $$2154;$$0155 = $$2157;$$0159 = $$2161;$$2 = $81;$$2144 = $$3145;$101 = $215;$53 = $217;$55 = $216;$99 = $214;
  35928. continue;
  35929. } else {
  35930. $82 = (___shgetc($0)|0);
  35931. $$0146 = $$1147;$$0148 = $$2150;$$0152 = $$2154;$$0155 = $$2157;$$0159 = $$2161;$$2 = $82;$$2144 = $$3145;$101 = $215;$53 = $217;$55 = $216;$99 = $214;
  35932. continue;
  35933. }
  35934. }
  35935. $83 = ($$2144|0)==(0);
  35936. do {
  35937. if ($83) {
  35938. $84 = HEAP32[$7>>2]|0;
  35939. $85 = ($84|0)!=(0|0);
  35940. if ($85) {
  35941. $86 = HEAP32[$5>>2]|0;
  35942. $87 = ((($86)) + -1|0);
  35943. HEAP32[$5>>2] = $87;
  35944. }
  35945. $88 = ($4|0)==(0);
  35946. if ($88) {
  35947. ___shlim($0,0);
  35948. } else {
  35949. if ($85) {
  35950. $89 = HEAP32[$5>>2]|0;
  35951. $90 = ((($89)) + -1|0);
  35952. HEAP32[$5>>2] = $90;
  35953. }
  35954. $91 = ($$0146|0)==(0);
  35955. $92 = ($84|0)==(0|0);
  35956. $or$cond206 = $91 | $92;
  35957. if (!($or$cond206)) {
  35958. $93 = HEAP32[$5>>2]|0;
  35959. $94 = ((($93)) + -1|0);
  35960. HEAP32[$5>>2] = $94;
  35961. }
  35962. }
  35963. $95 = (+($3|0));
  35964. $96 = $95 * 0.0;
  35965. $$0165 = $96;
  35966. } else {
  35967. $97 = ($$0146|0)==(0);
  35968. $98 = $97 ? $55 : $99;
  35969. $100 = $97 ? $53 : $101;
  35970. $102 = ($53|0)<(0);
  35971. $103 = ($55>>>0)<(8);
  35972. $104 = ($53|0)==(0);
  35973. $105 = $104 & $103;
  35974. $106 = $102 | $105;
  35975. if ($106) {
  35976. $$3162183 = $$0159;$108 = $55;$109 = $53;
  35977. while(1) {
  35978. $107 = $$3162183 << 4;
  35979. $110 = (_i64Add(($108|0),($109|0),1,0)|0);
  35980. $111 = tempRet0;
  35981. $112 = ($111|0)<(0);
  35982. $113 = ($110>>>0)<(8);
  35983. $114 = ($111|0)==(0);
  35984. $115 = $114 & $113;
  35985. $116 = $112 | $115;
  35986. if ($116) {
  35987. $$3162183 = $107;$108 = $110;$109 = $111;
  35988. } else {
  35989. $$3162$lcssa = $107;
  35990. break;
  35991. }
  35992. }
  35993. } else {
  35994. $$3162$lcssa = $$0159;
  35995. }
  35996. $117 = $$2$lcssa | 32;
  35997. $118 = ($117|0)==(112);
  35998. if ($118) {
  35999. $119 = (_scanexp($0,$4)|0);
  36000. $120 = tempRet0;
  36001. $121 = ($119|0)==(0);
  36002. $122 = ($120|0)==(-2147483648);
  36003. $123 = $121 & $122;
  36004. if ($123) {
  36005. $124 = ($4|0)==(0);
  36006. if ($124) {
  36007. ___shlim($0,0);
  36008. $$0165 = 0.0;
  36009. break;
  36010. }
  36011. $125 = HEAP32[$7>>2]|0;
  36012. $126 = ($125|0)==(0|0);
  36013. if ($126) {
  36014. $137 = 0;$138 = 0;
  36015. } else {
  36016. $127 = HEAP32[$5>>2]|0;
  36017. $128 = ((($127)) + -1|0);
  36018. HEAP32[$5>>2] = $128;
  36019. $137 = 0;$138 = 0;
  36020. }
  36021. } else {
  36022. $137 = $119;$138 = $120;
  36023. }
  36024. } else {
  36025. $129 = HEAP32[$7>>2]|0;
  36026. $130 = ($129|0)==(0|0);
  36027. if ($130) {
  36028. $137 = 0;$138 = 0;
  36029. } else {
  36030. $131 = HEAP32[$5>>2]|0;
  36031. $132 = ((($131)) + -1|0);
  36032. HEAP32[$5>>2] = $132;
  36033. $137 = 0;$138 = 0;
  36034. }
  36035. }
  36036. $133 = (_bitshift64Shl(($98|0),($100|0),2)|0);
  36037. $134 = tempRet0;
  36038. $135 = (_i64Add(($133|0),($134|0),-32,-1)|0);
  36039. $136 = tempRet0;
  36040. $139 = (_i64Add(($135|0),($136|0),($137|0),($138|0))|0);
  36041. $140 = tempRet0;
  36042. $141 = ($$3162$lcssa|0)==(0);
  36043. if ($141) {
  36044. $142 = (+($3|0));
  36045. $143 = $142 * 0.0;
  36046. $$0165 = $143;
  36047. break;
  36048. }
  36049. $144 = (0 - ($2))|0;
  36050. $145 = ($144|0)<(0);
  36051. $146 = $145 << 31 >> 31;
  36052. $147 = ($140|0)>($146|0);
  36053. $148 = ($139>>>0)>($144>>>0);
  36054. $149 = ($140|0)==($146|0);
  36055. $150 = $149 & $148;
  36056. $151 = $147 | $150;
  36057. if ($151) {
  36058. $152 = (___errno_location()|0);
  36059. HEAP32[$152>>2] = 34;
  36060. $153 = (+($3|0));
  36061. $154 = $153 * 1.7976931348623157E+308;
  36062. $155 = $154 * 1.7976931348623157E+308;
  36063. $$0165 = $155;
  36064. break;
  36065. }
  36066. $156 = (($2) + -106)|0;
  36067. $157 = ($156|0)<(0);
  36068. $158 = $157 << 31 >> 31;
  36069. $159 = ($140|0)<($158|0);
  36070. $160 = ($139>>>0)<($156>>>0);
  36071. $161 = ($140|0)==($158|0);
  36072. $162 = $161 & $160;
  36073. $163 = $159 | $162;
  36074. if ($163) {
  36075. $165 = (___errno_location()|0);
  36076. HEAP32[$165>>2] = 34;
  36077. $166 = (+($3|0));
  36078. $167 = $166 * 2.2250738585072014E-308;
  36079. $168 = $167 * 2.2250738585072014E-308;
  36080. $$0165 = $168;
  36081. break;
  36082. }
  36083. $164 = ($$3162$lcssa|0)>(-1);
  36084. if ($164) {
  36085. $$3158179 = $$0155;$$4163178 = $$3162$lcssa;$173 = $139;$174 = $140;
  36086. while(1) {
  36087. $169 = !($$3158179 >= 0.5);
  36088. $170 = $$4163178 << 1;
  36089. $171 = $$3158179 + -1.0;
  36090. $not$ = $169 ^ 1;
  36091. $172 = $not$&1;
  36092. $$5164 = $170 | $172;
  36093. $$pn = $169 ? $$3158179 : $171;
  36094. $$4 = $$3158179 + $$pn;
  36095. $175 = (_i64Add(($173|0),($174|0),-1,-1)|0);
  36096. $176 = tempRet0;
  36097. $177 = ($$5164|0)>(-1);
  36098. if ($177) {
  36099. $$3158179 = $$4;$$4163178 = $$5164;$173 = $175;$174 = $176;
  36100. } else {
  36101. $$3158$lcssa = $$4;$$4163$lcssa = $$5164;$184 = $175;$185 = $176;
  36102. break;
  36103. }
  36104. }
  36105. } else {
  36106. $$3158$lcssa = $$0155;$$4163$lcssa = $$3162$lcssa;$184 = $139;$185 = $140;
  36107. }
  36108. $178 = ($1|0)<(0);
  36109. $179 = $178 << 31 >> 31;
  36110. $180 = ($2|0)<(0);
  36111. $181 = $180 << 31 >> 31;
  36112. $182 = (_i64Subtract(32,0,($2|0),($181|0))|0);
  36113. $183 = tempRet0;
  36114. $186 = (_i64Add(($182|0),($183|0),($184|0),($185|0))|0);
  36115. $187 = tempRet0;
  36116. $188 = ($179|0)>($187|0);
  36117. $189 = ($1>>>0)>($186>>>0);
  36118. $190 = ($179|0)==($187|0);
  36119. $191 = $190 & $189;
  36120. $192 = $188 | $191;
  36121. if ($192) {
  36122. $193 = ($186|0)>(0);
  36123. if ($193) {
  36124. $$0166 = $186;
  36125. label = 59;
  36126. } else {
  36127. $$0166170 = 0;$197 = 84;
  36128. label = 61;
  36129. }
  36130. } else {
  36131. $$0166 = $1;
  36132. label = 59;
  36133. }
  36134. if ((label|0) == 59) {
  36135. $194 = ($$0166|0)<(53);
  36136. $195 = (84 - ($$0166))|0;
  36137. if ($194) {
  36138. $$0166170 = $$0166;$197 = $195;
  36139. label = 61;
  36140. } else {
  36141. $$pre = (+($3|0));
  36142. $$0151 = 0.0;$$0166169 = $$0166;$$pre$phiZ2D = $$pre;
  36143. }
  36144. }
  36145. if ((label|0) == 61) {
  36146. $196 = (+($3|0));
  36147. $198 = (+_scalbn(1.0,$197));
  36148. $199 = (+_copysignl($198,$196));
  36149. $$0151 = $199;$$0166169 = $$0166170;$$pre$phiZ2D = $196;
  36150. }
  36151. $200 = ($$0166169|0)<(32);
  36152. $201 = $$3158$lcssa != 0.0;
  36153. $or$cond4 = $201 & $200;
  36154. $202 = $$4163$lcssa & 1;
  36155. $203 = ($202|0)==(0);
  36156. $or$cond168 = $203 & $or$cond4;
  36157. $204 = $or$cond168&1;
  36158. $$6 = (($204) + ($$4163$lcssa))|0;
  36159. $$5 = $or$cond168 ? 0.0 : $$3158$lcssa;
  36160. $205 = (+($$6>>>0));
  36161. $206 = $$pre$phiZ2D * $205;
  36162. $207 = $$0151 + $206;
  36163. $208 = $$pre$phiZ2D * $$5;
  36164. $209 = $208 + $207;
  36165. $210 = $209 - $$0151;
  36166. $211 = $210 != 0.0;
  36167. if (!($211)) {
  36168. $212 = (___errno_location()|0);
  36169. HEAP32[$212>>2] = 34;
  36170. }
  36171. $213 = (+_scalbnl($210,$184));
  36172. $$0165 = $213;
  36173. }
  36174. } while(0);
  36175. return (+$$0165);
  36176. }
  36177. function _decfloat($0,$1,$2,$3,$4,$5) {
  36178. $0 = $0|0;
  36179. $1 = $1|0;
  36180. $2 = $2|0;
  36181. $3 = $3|0;
  36182. $4 = $4|0;
  36183. $5 = $5|0;
  36184. 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;
  36185. 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;
  36186. 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;
  36187. 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;
  36188. 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;
  36189. 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;
  36190. 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;
  36191. 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;
  36192. 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;
  36193. 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;
  36194. 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;
  36195. 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;
  36196. 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;
  36197. 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;
  36198. 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;
  36199. 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;
  36200. 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;
  36201. 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;
  36202. 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;
  36203. 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;
  36204. 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;
  36205. 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;
  36206. 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;
  36207. 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;
  36208. 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;
  36209. var label = 0, sp = 0;
  36210. sp = STACKTOP;
  36211. STACKTOP = STACKTOP + 512|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(512|0);
  36212. $6 = sp;
  36213. $sum = (($3) + ($2))|0;
  36214. $7 = (0 - ($sum))|0;
  36215. $8 = ((($0)) + 4|0);
  36216. $9 = ((($0)) + 100|0);
  36217. $$0329 = $1;$$0396 = 0;
  36218. L1: while(1) {
  36219. switch ($$0329|0) {
  36220. case 46: {
  36221. label = 6;
  36222. break L1;
  36223. break;
  36224. }
  36225. case 48: {
  36226. break;
  36227. }
  36228. default: {
  36229. $$0393 = 0;$$2 = $$0329;$$2398 = $$0396;$366 = 0;$367 = 0;
  36230. break L1;
  36231. }
  36232. }
  36233. $10 = HEAP32[$8>>2]|0;
  36234. $11 = HEAP32[$9>>2]|0;
  36235. $12 = ($10>>>0)<($11>>>0);
  36236. if ($12) {
  36237. $13 = ((($10)) + 1|0);
  36238. HEAP32[$8>>2] = $13;
  36239. $14 = HEAP8[$10>>0]|0;
  36240. $15 = $14&255;
  36241. $$0329 = $15;$$0396 = 1;
  36242. continue;
  36243. } else {
  36244. $16 = (___shgetc($0)|0);
  36245. $$0329 = $16;$$0396 = 1;
  36246. continue;
  36247. }
  36248. }
  36249. if ((label|0) == 6) {
  36250. $17 = HEAP32[$8>>2]|0;
  36251. $18 = HEAP32[$9>>2]|0;
  36252. $19 = ($17>>>0)<($18>>>0);
  36253. if ($19) {
  36254. $20 = ((($17)) + 1|0);
  36255. HEAP32[$8>>2] = $20;
  36256. $21 = HEAP8[$17>>0]|0;
  36257. $22 = $21&255;
  36258. $$1330$ph = $22;
  36259. } else {
  36260. $23 = (___shgetc($0)|0);
  36261. $$1330$ph = $23;
  36262. }
  36263. $24 = ($$1330$ph|0)==(48);
  36264. if ($24) {
  36265. $25 = 0;$26 = 0;
  36266. while(1) {
  36267. $27 = (_i64Add(($25|0),($26|0),-1,-1)|0);
  36268. $28 = tempRet0;
  36269. $29 = HEAP32[$8>>2]|0;
  36270. $30 = HEAP32[$9>>2]|0;
  36271. $31 = ($29>>>0)<($30>>>0);
  36272. if ($31) {
  36273. $32 = ((($29)) + 1|0);
  36274. HEAP32[$8>>2] = $32;
  36275. $33 = HEAP8[$29>>0]|0;
  36276. $34 = $33&255;
  36277. $$1330$be = $34;
  36278. } else {
  36279. $35 = (___shgetc($0)|0);
  36280. $$1330$be = $35;
  36281. }
  36282. $36 = ($$1330$be|0)==(48);
  36283. if ($36) {
  36284. $25 = $27;$26 = $28;
  36285. } else {
  36286. $$0393 = 1;$$2 = $$1330$be;$$2398 = 1;$366 = $27;$367 = $28;
  36287. break;
  36288. }
  36289. }
  36290. } else {
  36291. $$0393 = 1;$$2 = $$1330$ph;$$2398 = $$0396;$366 = 0;$367 = 0;
  36292. }
  36293. }
  36294. HEAP32[$6>>2] = 0;
  36295. $37 = (($$2) + -48)|0;
  36296. $38 = ($37>>>0)<(10);
  36297. $39 = ($$2|0)==(46);
  36298. $40 = $39 | $38;
  36299. L20: do {
  36300. if ($40) {
  36301. $41 = ((($6)) + 496|0);
  36302. $$0341513 = 0;$$0345512 = 0;$$0401509 = 0;$$1394511 = $$0393;$$3399510 = $$2398;$$3514 = $$2;$368 = $39;$369 = $37;$370 = $366;$371 = $367;$44 = 0;$45 = 0;
  36303. L22: while(1) {
  36304. do {
  36305. if ($368) {
  36306. $cond = ($$1394511|0)==(0);
  36307. if ($cond) {
  36308. $$2343 = $$0341513;$$2347 = $$0345512;$$2395 = 1;$$2403 = $$0401509;$$4400 = $$3399510;$372 = $44;$373 = $45;$374 = $44;$375 = $45;
  36309. } else {
  36310. break L22;
  36311. }
  36312. } else {
  36313. $43 = ($$0345512|0)<(125);
  36314. $46 = (_i64Add(($44|0),($45|0),1,0)|0);
  36315. $47 = tempRet0;
  36316. $48 = ($$3514|0)!=(48);
  36317. if (!($43)) {
  36318. if (!($48)) {
  36319. $$2343 = $$0341513;$$2347 = $$0345512;$$2395 = $$1394511;$$2403 = $$0401509;$$4400 = $$3399510;$372 = $370;$373 = $371;$374 = $46;$375 = $47;
  36320. break;
  36321. }
  36322. $57 = HEAP32[$41>>2]|0;
  36323. $58 = $57 | 1;
  36324. HEAP32[$41>>2] = $58;
  36325. $$2343 = $$0341513;$$2347 = $$0345512;$$2395 = $$1394511;$$2403 = $$0401509;$$4400 = $$3399510;$372 = $370;$373 = $371;$374 = $46;$375 = $47;
  36326. break;
  36327. }
  36328. $$$0401 = $48 ? $46 : $$0401509;
  36329. $49 = ($$0341513|0)==(0);
  36330. $$pre = (($6) + ($$0345512<<2)|0);
  36331. if ($49) {
  36332. $$sink = $369;
  36333. } else {
  36334. $50 = HEAP32[$$pre>>2]|0;
  36335. $51 = ($50*10)|0;
  36336. $52 = (($$3514) + -48)|0;
  36337. $53 = (($52) + ($51))|0;
  36338. $$sink = $53;
  36339. }
  36340. HEAP32[$$pre>>2] = $$sink;
  36341. $54 = (($$0341513) + 1)|0;
  36342. $55 = ($54|0)==(9);
  36343. $56 = $55&1;
  36344. $$$0345 = (($56) + ($$0345512))|0;
  36345. $$413 = $55 ? 0 : $54;
  36346. $$2343 = $$413;$$2347 = $$$0345;$$2395 = $$1394511;$$2403 = $$$0401;$$4400 = 1;$372 = $370;$373 = $371;$374 = $46;$375 = $47;
  36347. }
  36348. } while(0);
  36349. $59 = HEAP32[$8>>2]|0;
  36350. $60 = HEAP32[$9>>2]|0;
  36351. $61 = ($59>>>0)<($60>>>0);
  36352. if ($61) {
  36353. $62 = ((($59)) + 1|0);
  36354. HEAP32[$8>>2] = $62;
  36355. $63 = HEAP8[$59>>0]|0;
  36356. $64 = $63&255;
  36357. $$3$be = $64;
  36358. } else {
  36359. $65 = (___shgetc($0)|0);
  36360. $$3$be = $65;
  36361. }
  36362. $66 = (($$3$be) + -48)|0;
  36363. $67 = ($66>>>0)<(10);
  36364. $68 = ($$3$be|0)==(46);
  36365. $69 = $68 | $67;
  36366. if ($69) {
  36367. $$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;
  36368. } else {
  36369. $$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;
  36370. label = 29;
  36371. break L20;
  36372. }
  36373. }
  36374. $42 = ($$3399510|0)!=(0);
  36375. $$0341465 = $$0341513;$$0345469 = $$0345512;$$0401475 = $$0401509;$376 = $44;$377 = $45;$378 = $370;$379 = $371;$380 = $42;
  36376. label = 37;
  36377. } else {
  36378. $$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;
  36379. label = 29;
  36380. }
  36381. } while(0);
  36382. do {
  36383. if ((label|0) == 29) {
  36384. $70 = ($$1394$lcssa|0)==(0);
  36385. $71 = $70 ? $73 : $72;
  36386. $74 = $70 ? $76 : $75;
  36387. $77 = ($$3399$lcssa|0)!=(0);
  36388. $78 = $$3$lcssa | 32;
  36389. $79 = ($78|0)==(101);
  36390. $or$cond415 = $77 & $79;
  36391. if (!($or$cond415)) {
  36392. $94 = ($$3$lcssa|0)>(-1);
  36393. if ($94) {
  36394. $$0341465 = $$0341$lcssa;$$0345469 = $$0345$lcssa;$$0401475 = $$0401$lcssa;$376 = $73;$377 = $76;$378 = $71;$379 = $74;$380 = $77;
  36395. label = 37;
  36396. break;
  36397. } else {
  36398. $$0341464 = $$0341$lcssa;$$0345468 = $$0345$lcssa;$$0401474 = $$0401$lcssa;$381 = $73;$382 = $76;$383 = $77;$384 = $71;$385 = $74;
  36399. label = 39;
  36400. break;
  36401. }
  36402. }
  36403. $80 = (_scanexp($0,$5)|0);
  36404. $81 = tempRet0;
  36405. $82 = ($80|0)==(0);
  36406. $83 = ($81|0)==(-2147483648);
  36407. $84 = $82 & $83;
  36408. if ($84) {
  36409. $85 = ($5|0)==(0);
  36410. if ($85) {
  36411. ___shlim($0,0);
  36412. $$1 = 0.0;
  36413. break;
  36414. }
  36415. $86 = HEAP32[$9>>2]|0;
  36416. $87 = ($86|0)==(0|0);
  36417. if ($87) {
  36418. $90 = 0;$91 = 0;
  36419. } else {
  36420. $88 = HEAP32[$8>>2]|0;
  36421. $89 = ((($88)) + -1|0);
  36422. HEAP32[$8>>2] = $89;
  36423. $90 = 0;$91 = 0;
  36424. }
  36425. } else {
  36426. $90 = $80;$91 = $81;
  36427. }
  36428. $92 = (_i64Add(($90|0),($91|0),($71|0),($74|0))|0);
  36429. $93 = tempRet0;
  36430. $$0341463 = $$0341$lcssa;$$0345467 = $$0345$lcssa;$$0401473 = $$0401$lcssa;$105 = $92;$106 = $73;$108 = $93;$109 = $76;
  36431. label = 41;
  36432. }
  36433. } while(0);
  36434. if ((label|0) == 37) {
  36435. $95 = HEAP32[$9>>2]|0;
  36436. $96 = ($95|0)==(0|0);
  36437. if ($96) {
  36438. $$0341464 = $$0341465;$$0345468 = $$0345469;$$0401474 = $$0401475;$381 = $376;$382 = $377;$383 = $380;$384 = $378;$385 = $379;
  36439. label = 39;
  36440. } else {
  36441. $97 = HEAP32[$8>>2]|0;
  36442. $98 = ((($97)) + -1|0);
  36443. HEAP32[$8>>2] = $98;
  36444. if ($380) {
  36445. $$0341463 = $$0341465;$$0345467 = $$0345469;$$0401473 = $$0401475;$105 = $378;$106 = $376;$108 = $379;$109 = $377;
  36446. label = 41;
  36447. } else {
  36448. label = 40;
  36449. }
  36450. }
  36451. }
  36452. if ((label|0) == 39) {
  36453. if ($383) {
  36454. $$0341463 = $$0341464;$$0345467 = $$0345468;$$0401473 = $$0401474;$105 = $384;$106 = $381;$108 = $385;$109 = $382;
  36455. label = 41;
  36456. } else {
  36457. label = 40;
  36458. }
  36459. }
  36460. do {
  36461. if ((label|0) == 40) {
  36462. $99 = (___errno_location()|0);
  36463. HEAP32[$99>>2] = 22;
  36464. ___shlim($0,0);
  36465. $$1 = 0.0;
  36466. }
  36467. else if ((label|0) == 41) {
  36468. $100 = HEAP32[$6>>2]|0;
  36469. $101 = ($100|0)==(0);
  36470. if ($101) {
  36471. $102 = (+($4|0));
  36472. $103 = $102 * 0.0;
  36473. $$1 = $103;
  36474. break;
  36475. }
  36476. $104 = ($105|0)==($106|0);
  36477. $107 = ($108|0)==($109|0);
  36478. $110 = $104 & $107;
  36479. $111 = ($109|0)<(0);
  36480. $112 = ($106>>>0)<(10);
  36481. $113 = ($109|0)==(0);
  36482. $114 = $113 & $112;
  36483. $115 = $111 | $114;
  36484. $or$cond = $115 & $110;
  36485. if ($or$cond) {
  36486. $116 = ($2|0)>(30);
  36487. $117 = $100 >>> $2;
  36488. $118 = ($117|0)==(0);
  36489. $or$cond417 = $116 | $118;
  36490. if ($or$cond417) {
  36491. $119 = (+($4|0));
  36492. $120 = (+($100>>>0));
  36493. $121 = $119 * $120;
  36494. $$1 = $121;
  36495. break;
  36496. }
  36497. }
  36498. $122 = (($3|0) / -2)&-1;
  36499. $123 = ($122|0)<(0);
  36500. $124 = $123 << 31 >> 31;
  36501. $125 = ($108|0)>($124|0);
  36502. $126 = ($105>>>0)>($122>>>0);
  36503. $127 = ($108|0)==($124|0);
  36504. $128 = $127 & $126;
  36505. $129 = $125 | $128;
  36506. if ($129) {
  36507. $130 = (___errno_location()|0);
  36508. HEAP32[$130>>2] = 34;
  36509. $131 = (+($4|0));
  36510. $132 = $131 * 1.7976931348623157E+308;
  36511. $133 = $132 * 1.7976931348623157E+308;
  36512. $$1 = $133;
  36513. break;
  36514. }
  36515. $134 = (($3) + -106)|0;
  36516. $135 = ($134|0)<(0);
  36517. $136 = $135 << 31 >> 31;
  36518. $137 = ($108|0)<($136|0);
  36519. $138 = ($105>>>0)<($134>>>0);
  36520. $139 = ($108|0)==($136|0);
  36521. $140 = $139 & $138;
  36522. $141 = $137 | $140;
  36523. if ($141) {
  36524. $142 = (___errno_location()|0);
  36525. HEAP32[$142>>2] = 34;
  36526. $143 = (+($4|0));
  36527. $144 = $143 * 2.2250738585072014E-308;
  36528. $145 = $144 * 2.2250738585072014E-308;
  36529. $$1 = $145;
  36530. break;
  36531. }
  36532. $146 = ($$0341463|0)==(0);
  36533. if ($146) {
  36534. $$3348 = $$0345467;
  36535. } else {
  36536. $147 = ($$0341463|0)<(9);
  36537. if ($147) {
  36538. $148 = (($6) + ($$0345467<<2)|0);
  36539. $$promoted = HEAP32[$148>>2]|0;
  36540. $$3344503 = $$0341463;$150 = $$promoted;
  36541. while(1) {
  36542. $149 = ($150*10)|0;
  36543. $151 = (($$3344503) + 1)|0;
  36544. $exitcond551 = ($151|0)==(9);
  36545. if ($exitcond551) {
  36546. break;
  36547. } else {
  36548. $$3344503 = $151;$150 = $149;
  36549. }
  36550. }
  36551. HEAP32[$148>>2] = $149;
  36552. }
  36553. $152 = (($$0345467) + 1)|0;
  36554. $$3348 = $152;
  36555. }
  36556. $153 = ($$0401473|0)<(9);
  36557. if ($153) {
  36558. $154 = ($$0401473|0)<=($105|0);
  36559. $155 = ($105|0)<(18);
  36560. $or$cond5 = $154 & $155;
  36561. if ($or$cond5) {
  36562. $156 = ($105|0)==(9);
  36563. $157 = HEAP32[$6>>2]|0;
  36564. if ($156) {
  36565. $158 = (+($4|0));
  36566. $159 = (+($157>>>0));
  36567. $160 = $158 * $159;
  36568. $$1 = $160;
  36569. break;
  36570. }
  36571. $161 = ($105|0)<(9);
  36572. if ($161) {
  36573. $162 = (+($4|0));
  36574. $163 = (+($157>>>0));
  36575. $164 = $162 * $163;
  36576. $165 = (8 - ($105))|0;
  36577. $166 = (4472 + ($165<<2)|0);
  36578. $167 = HEAP32[$166>>2]|0;
  36579. $168 = (+($167|0));
  36580. $169 = $164 / $168;
  36581. $$1 = $169;
  36582. break;
  36583. }
  36584. $$neg442 = Math_imul($105, -3)|0;
  36585. $$neg443 = (($2) + 27)|0;
  36586. $170 = (($$neg443) + ($$neg442))|0;
  36587. $171 = ($170|0)>(30);
  36588. $172 = $157 >>> $170;
  36589. $173 = ($172|0)==(0);
  36590. $or$cond419 = $171 | $173;
  36591. if ($or$cond419) {
  36592. $174 = (($105) + -10)|0;
  36593. $175 = (4472 + ($174<<2)|0);
  36594. $176 = (+($4|0));
  36595. $177 = (+($157>>>0));
  36596. $178 = $176 * $177;
  36597. $179 = HEAP32[$175>>2]|0;
  36598. $180 = (+($179|0));
  36599. $181 = $178 * $180;
  36600. $$1 = $181;
  36601. break;
  36602. }
  36603. }
  36604. }
  36605. $182 = (($105|0) % 9)&-1;
  36606. $183 = ($182|0)==(0);
  36607. if ($183) {
  36608. $$0380$ph = 0;$$1373$ph448 = $$3348;$$2352$ph449 = 0;$$2387$ph447 = $105;
  36609. } else {
  36610. $184 = ($105|0)>(-1);
  36611. $185 = (($182) + 9)|0;
  36612. $186 = $184 ? $182 : $185;
  36613. $187 = (8 - ($186))|0;
  36614. $188 = (4472 + ($187<<2)|0);
  36615. $189 = HEAP32[$188>>2]|0;
  36616. $190 = ($$3348|0)==(0);
  36617. if ($190) {
  36618. $$0350$lcssa554 = 0;$$0372 = 0;$$0385$lcssa553 = $105;
  36619. } else {
  36620. $191 = (1000000000 / ($189|0))&-1;
  36621. $$0340496 = 0;$$0350494 = 0;$$0385493 = $105;$$4349495 = 0;
  36622. while(1) {
  36623. $192 = (($6) + ($$4349495<<2)|0);
  36624. $193 = HEAP32[$192>>2]|0;
  36625. $194 = (($193>>>0) % ($189>>>0))&-1;
  36626. $195 = (($193>>>0) / ($189>>>0))&-1;
  36627. $196 = (($195) + ($$0340496))|0;
  36628. HEAP32[$192>>2] = $196;
  36629. $197 = Math_imul($191, $194)|0;
  36630. $198 = ($$4349495|0)==($$0350494|0);
  36631. $199 = ($196|0)==(0);
  36632. $or$cond420 = $198 & $199;
  36633. $200 = (($$0350494) + 1)|0;
  36634. $201 = $200 & 127;
  36635. $202 = (($$0385493) + -9)|0;
  36636. $$$0385 = $or$cond420 ? $202 : $$0385493;
  36637. $$$0350 = $or$cond420 ? $201 : $$0350494;
  36638. $203 = (($$4349495) + 1)|0;
  36639. $204 = ($203|0)==($$3348|0);
  36640. if ($204) {
  36641. break;
  36642. } else {
  36643. $$0340496 = $197;$$0350494 = $$$0350;$$0385493 = $$$0385;$$4349495 = $203;
  36644. }
  36645. }
  36646. $205 = ($197|0)==(0);
  36647. if ($205) {
  36648. $$0350$lcssa554 = $$$0350;$$0372 = $$3348;$$0385$lcssa553 = $$$0385;
  36649. } else {
  36650. $206 = (($6) + ($$3348<<2)|0);
  36651. $207 = (($$3348) + 1)|0;
  36652. HEAP32[$206>>2] = $197;
  36653. $$0350$lcssa554 = $$$0350;$$0372 = $207;$$0385$lcssa553 = $$$0385;
  36654. }
  36655. }
  36656. $208 = (9 - ($186))|0;
  36657. $209 = (($208) + ($$0385$lcssa553))|0;
  36658. $$0380$ph = 0;$$1373$ph448 = $$0372;$$2352$ph449 = $$0350$lcssa554;$$2387$ph447 = $209;
  36659. }
  36660. L101: while(1) {
  36661. $210 = ($$2387$ph447|0)<(18);
  36662. $211 = ($$2387$ph447|0)==(18);
  36663. $212 = (($6) + ($$2352$ph449<<2)|0);
  36664. $$0380 = $$0380$ph;$$1373 = $$1373$ph448;
  36665. while(1) {
  36666. if (!($210)) {
  36667. if (!($211)) {
  36668. $$1381$ph = $$0380;$$4354$ph = $$2352$ph449;$$4389$ph445 = $$2387$ph447;$$6378$ph = $$1373;
  36669. break L101;
  36670. }
  36671. $213 = HEAP32[$212>>2]|0;
  36672. $214 = ($213>>>0)<(9007199);
  36673. if (!($214)) {
  36674. $$1381$ph = $$0380;$$4354$ph = $$2352$ph449;$$4389$ph445 = 18;$$6378$ph = $$1373;
  36675. break L101;
  36676. }
  36677. }
  36678. $215 = (($$1373) + 127)|0;
  36679. $$0334 = 0;$$2374 = $$1373;$$5$in = $215;
  36680. while(1) {
  36681. $$5 = $$5$in & 127;
  36682. $216 = (($6) + ($$5<<2)|0);
  36683. $217 = HEAP32[$216>>2]|0;
  36684. $218 = (_bitshift64Shl(($217|0),0,29)|0);
  36685. $219 = tempRet0;
  36686. $220 = (_i64Add(($218|0),($219|0),($$0334|0),0)|0);
  36687. $221 = tempRet0;
  36688. $222 = ($221>>>0)>(0);
  36689. $223 = ($220>>>0)>(1000000000);
  36690. $224 = ($221|0)==(0);
  36691. $225 = $224 & $223;
  36692. $226 = $222 | $225;
  36693. if ($226) {
  36694. $227 = (___udivdi3(($220|0),($221|0),1000000000,0)|0);
  36695. $228 = tempRet0;
  36696. $229 = (___uremdi3(($220|0),($221|0),1000000000,0)|0);
  36697. $230 = tempRet0;
  36698. $$1335 = $227;$$sink421$off0 = $229;
  36699. } else {
  36700. $$1335 = 0;$$sink421$off0 = $220;
  36701. }
  36702. HEAP32[$216>>2] = $$sink421$off0;
  36703. $231 = (($$2374) + 127)|0;
  36704. $232 = $231 & 127;
  36705. $233 = ($$5|0)!=($232|0);
  36706. $234 = ($$5|0)==($$2352$ph449|0);
  36707. $or$cond422 = $233 | $234;
  36708. $or$cond422$not = $or$cond422 ^ 1;
  36709. $235 = ($$sink421$off0|0)==(0);
  36710. $or$cond423 = $235 & $or$cond422$not;
  36711. $$3375 = $or$cond423 ? $$5 : $$2374;
  36712. $236 = (($$5) + -1)|0;
  36713. if ($234) {
  36714. break;
  36715. } else {
  36716. $$0334 = $$1335;$$2374 = $$3375;$$5$in = $236;
  36717. }
  36718. }
  36719. $237 = (($$0380) + -29)|0;
  36720. $238 = ($$1335|0)==(0);
  36721. if ($238) {
  36722. $$0380 = $237;$$1373 = $$3375;
  36723. } else {
  36724. break;
  36725. }
  36726. }
  36727. $239 = (($$2387$ph447) + 9)|0;
  36728. $240 = (($$2352$ph449) + 127)|0;
  36729. $241 = $240 & 127;
  36730. $242 = ($241|0)==($$3375|0);
  36731. $243 = (($$3375) + 127)|0;
  36732. $244 = $243 & 127;
  36733. $245 = (($$3375) + 126)|0;
  36734. $246 = $245 & 127;
  36735. $247 = (($6) + ($246<<2)|0);
  36736. if ($242) {
  36737. $248 = (($6) + ($244<<2)|0);
  36738. $249 = HEAP32[$248>>2]|0;
  36739. $250 = HEAP32[$247>>2]|0;
  36740. $251 = $250 | $249;
  36741. HEAP32[$247>>2] = $251;
  36742. $$4376 = $244;
  36743. } else {
  36744. $$4376 = $$3375;
  36745. }
  36746. $252 = (($6) + ($241<<2)|0);
  36747. HEAP32[$252>>2] = $$1335;
  36748. $$0380$ph = $237;$$1373$ph448 = $$4376;$$2352$ph449 = $241;$$2387$ph447 = $239;
  36749. }
  36750. L119: while(1) {
  36751. $289 = (($$6378$ph) + 1)|0;
  36752. $287 = $289 & 127;
  36753. $290 = (($$6378$ph) + 127)|0;
  36754. $291 = $290 & 127;
  36755. $292 = (($6) + ($291<<2)|0);
  36756. $$1381$ph558 = $$1381$ph;$$4354$ph559 = $$4354$ph;$$4389$ph = $$4389$ph445;
  36757. while(1) {
  36758. $265 = ($$4389$ph|0)==(18);
  36759. $293 = ($$4389$ph|0)>(27);
  36760. $$425 = $293 ? 9 : 1;
  36761. $$1381 = $$1381$ph558;$$4354 = $$4354$ph559;
  36762. while(1) {
  36763. $$0336486 = 0;
  36764. while(1) {
  36765. $253 = (($$0336486) + ($$4354))|0;
  36766. $254 = $253 & 127;
  36767. $255 = ($254|0)==($$6378$ph|0);
  36768. if ($255) {
  36769. $$1337 = 2;
  36770. label = 88;
  36771. break;
  36772. }
  36773. $256 = (($6) + ($254<<2)|0);
  36774. $257 = HEAP32[$256>>2]|0;
  36775. $258 = (4504 + ($$0336486<<2)|0);
  36776. $259 = HEAP32[$258>>2]|0;
  36777. $260 = ($257>>>0)<($259>>>0);
  36778. if ($260) {
  36779. $$1337 = 2;
  36780. label = 88;
  36781. break;
  36782. }
  36783. $261 = ($257>>>0)>($259>>>0);
  36784. if ($261) {
  36785. break;
  36786. }
  36787. $262 = (($$0336486) + 1)|0;
  36788. $263 = ($262|0)<(2);
  36789. if ($263) {
  36790. $$0336486 = $262;
  36791. } else {
  36792. $$1337 = $262;
  36793. label = 88;
  36794. break;
  36795. }
  36796. }
  36797. if ((label|0) == 88) {
  36798. label = 0;
  36799. $264 = ($$1337|0)==(2);
  36800. $or$cond11 = $265 & $264;
  36801. if ($or$cond11) {
  36802. $$0365484 = 0.0;$$4485 = 0;$$9483 = $$6378$ph;
  36803. break L119;
  36804. }
  36805. }
  36806. $266 = (($$425) + ($$1381))|0;
  36807. $267 = ($$4354|0)==($$6378$ph|0);
  36808. if ($267) {
  36809. $$1381 = $266;$$4354 = $$6378$ph;
  36810. } else {
  36811. break;
  36812. }
  36813. }
  36814. $268 = 1 << $$425;
  36815. $269 = (($268) + -1)|0;
  36816. $270 = 1000000000 >>> $$425;
  36817. $$0332490 = 0;$$5355488 = $$4354;$$5390487 = $$4389$ph;$$6489 = $$4354;
  36818. while(1) {
  36819. $271 = (($6) + ($$6489<<2)|0);
  36820. $272 = HEAP32[$271>>2]|0;
  36821. $273 = $272 & $269;
  36822. $274 = $272 >>> $$425;
  36823. $275 = (($274) + ($$0332490))|0;
  36824. HEAP32[$271>>2] = $275;
  36825. $276 = Math_imul($273, $270)|0;
  36826. $277 = ($$6489|0)==($$5355488|0);
  36827. $278 = ($275|0)==(0);
  36828. $or$cond426 = $277 & $278;
  36829. $279 = (($$5355488) + 1)|0;
  36830. $280 = $279 & 127;
  36831. $281 = (($$5390487) + -9)|0;
  36832. $$$5390 = $or$cond426 ? $281 : $$5390487;
  36833. $$$5355 = $or$cond426 ? $280 : $$5355488;
  36834. $282 = (($$6489) + 1)|0;
  36835. $283 = $282 & 127;
  36836. $284 = ($283|0)==($$6378$ph|0);
  36837. if ($284) {
  36838. break;
  36839. } else {
  36840. $$0332490 = $276;$$5355488 = $$$5355;$$5390487 = $$$5390;$$6489 = $283;
  36841. }
  36842. }
  36843. $285 = ($276|0)==(0);
  36844. if ($285) {
  36845. $$1381$ph558 = $266;$$4354$ph559 = $$$5355;$$4389$ph = $$$5390;
  36846. continue;
  36847. }
  36848. $286 = ($287|0)==($$$5355|0);
  36849. if (!($286)) {
  36850. break;
  36851. }
  36852. $294 = HEAP32[$292>>2]|0;
  36853. $295 = $294 | 1;
  36854. HEAP32[$292>>2] = $295;
  36855. $$1381$ph558 = $266;$$4354$ph559 = $$$5355;$$4389$ph = $$$5390;
  36856. }
  36857. $288 = (($6) + ($$6378$ph<<2)|0);
  36858. HEAP32[$288>>2] = $276;
  36859. $$1381$ph = $266;$$4354$ph = $$$5355;$$4389$ph445 = $$$5390;$$6378$ph = $287;
  36860. }
  36861. while(1) {
  36862. $296 = (($$4485) + ($$4354))|0;
  36863. $297 = $296 & 127;
  36864. $298 = ($297|0)==($$9483|0);
  36865. $299 = (($$9483) + 1)|0;
  36866. $300 = $299 & 127;
  36867. if ($298) {
  36868. $301 = (($300) + -1)|0;
  36869. $302 = (($6) + ($301<<2)|0);
  36870. HEAP32[$302>>2] = 0;
  36871. $$10 = $300;
  36872. } else {
  36873. $$10 = $$9483;
  36874. }
  36875. $303 = $$0365484 * 1.0E+9;
  36876. $304 = (($6) + ($297<<2)|0);
  36877. $305 = HEAP32[$304>>2]|0;
  36878. $306 = (+($305>>>0));
  36879. $307 = $303 + $306;
  36880. $308 = (($$4485) + 1)|0;
  36881. $exitcond = ($308|0)==(2);
  36882. if ($exitcond) {
  36883. break;
  36884. } else {
  36885. $$0365484 = $307;$$4485 = $308;$$9483 = $$10;
  36886. }
  36887. }
  36888. $309 = (+($4|0));
  36889. $310 = $309 * $307;
  36890. $311 = (($$1381) + 53)|0;
  36891. $312 = (($311) - ($3))|0;
  36892. $313 = ($312|0)<($2|0);
  36893. $314 = ($312|0)>(0);
  36894. $$ = $314 ? $312 : 0;
  36895. $$0333 = $313 ? $$ : $2;
  36896. $315 = ($$0333|0)<(53);
  36897. if ($315) {
  36898. $316 = (105 - ($$0333))|0;
  36899. $317 = (+_scalbn(1.0,$316));
  36900. $318 = (+_copysignl($317,$310));
  36901. $319 = (53 - ($$0333))|0;
  36902. $320 = (+_scalbn(1.0,$319));
  36903. $321 = (+_fmodl($310,$320));
  36904. $322 = $310 - $321;
  36905. $323 = $318 + $322;
  36906. $$0360 = $318;$$0361 = $321;$$1366 = $323;
  36907. } else {
  36908. $$0360 = 0.0;$$0361 = 0.0;$$1366 = $310;
  36909. }
  36910. $324 = (($$4354) + 2)|0;
  36911. $325 = $324 & 127;
  36912. $326 = ($325|0)==($$10|0);
  36913. if ($326) {
  36914. $$3364 = $$0361;
  36915. } else {
  36916. $327 = (($6) + ($325<<2)|0);
  36917. $328 = HEAP32[$327>>2]|0;
  36918. $329 = ($328>>>0)<(500000000);
  36919. do {
  36920. if ($329) {
  36921. $330 = ($328|0)==(0);
  36922. if ($330) {
  36923. $331 = (($$4354) + 3)|0;
  36924. $332 = $331 & 127;
  36925. $333 = ($332|0)==($$10|0);
  36926. if ($333) {
  36927. $$1362 = $$0361;
  36928. break;
  36929. }
  36930. }
  36931. $334 = $309 * 0.25;
  36932. $335 = $334 + $$0361;
  36933. $$1362 = $335;
  36934. } else {
  36935. $336 = ($328|0)==(500000000);
  36936. if (!($336)) {
  36937. $337 = $309 * 0.75;
  36938. $338 = $337 + $$0361;
  36939. $$1362 = $338;
  36940. break;
  36941. }
  36942. $339 = (($$4354) + 3)|0;
  36943. $340 = $339 & 127;
  36944. $341 = ($340|0)==($$10|0);
  36945. if ($341) {
  36946. $342 = $309 * 0.5;
  36947. $343 = $342 + $$0361;
  36948. $$1362 = $343;
  36949. break;
  36950. } else {
  36951. $344 = $309 * 0.75;
  36952. $345 = $344 + $$0361;
  36953. $$1362 = $345;
  36954. break;
  36955. }
  36956. }
  36957. } while(0);
  36958. $346 = (53 - ($$0333))|0;
  36959. $347 = ($346|0)>(1);
  36960. if ($347) {
  36961. $348 = (+_fmodl($$1362,1.0));
  36962. $349 = $348 != 0.0;
  36963. if ($349) {
  36964. $$3364 = $$1362;
  36965. } else {
  36966. $350 = $$1362 + 1.0;
  36967. $$3364 = $350;
  36968. }
  36969. } else {
  36970. $$3364 = $$1362;
  36971. }
  36972. }
  36973. $351 = $$1366 + $$3364;
  36974. $352 = $351 - $$0360;
  36975. $353 = $311 & 2147483647;
  36976. $354 = (-2 - ($sum))|0;
  36977. $355 = ($353|0)>($354|0);
  36978. do {
  36979. if ($355) {
  36980. $356 = (+Math_abs((+$352)));
  36981. $357 = !($356 >= 9007199254740992.0);
  36982. $358 = $352 * 0.5;
  36983. $not$ = $357 ^ 1;
  36984. $359 = $not$&1;
  36985. $$3383 = (($359) + ($$1381))|0;
  36986. $$2367 = $357 ? $352 : $358;
  36987. $360 = (($$3383) + 50)|0;
  36988. $361 = ($360|0)>($7|0);
  36989. if (!($361)) {
  36990. $362 = ($$0333|0)!=($312|0);
  36991. $narrow = $362 | $357;
  36992. $$2371$v = $313 & $narrow;
  36993. $363 = $$3364 != 0.0;
  36994. $or$cond14 = $363 & $$2371$v;
  36995. if (!($or$cond14)) {
  36996. $$3368 = $$2367;$$4384 = $$3383;
  36997. break;
  36998. }
  36999. }
  37000. $364 = (___errno_location()|0);
  37001. HEAP32[$364>>2] = 34;
  37002. $$3368 = $$2367;$$4384 = $$3383;
  37003. } else {
  37004. $$3368 = $352;$$4384 = $$1381;
  37005. }
  37006. } while(0);
  37007. $365 = (+_scalbnl($$3368,$$4384));
  37008. $$1 = $365;
  37009. }
  37010. } while(0);
  37011. STACKTOP = sp;return (+$$1);
  37012. }
  37013. function _scanexp($0,$1) {
  37014. $0 = $0|0;
  37015. $1 = $1|0;
  37016. 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;
  37017. 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;
  37018. 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;
  37019. 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;
  37020. 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;
  37021. 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;
  37022. sp = STACKTOP;
  37023. $2 = ((($0)) + 4|0);
  37024. $3 = HEAP32[$2>>2]|0;
  37025. $4 = ((($0)) + 100|0);
  37026. $5 = HEAP32[$4>>2]|0;
  37027. $6 = ($3>>>0)<($5>>>0);
  37028. if ($6) {
  37029. $7 = ((($3)) + 1|0);
  37030. HEAP32[$2>>2] = $7;
  37031. $8 = HEAP8[$3>>0]|0;
  37032. $9 = $8&255;
  37033. $11 = $9;
  37034. } else {
  37035. $10 = (___shgetc($0)|0);
  37036. $11 = $10;
  37037. }
  37038. switch ($11|0) {
  37039. case 43: case 45: {
  37040. $12 = ($11|0)==(45);
  37041. $13 = $12&1;
  37042. $14 = HEAP32[$2>>2]|0;
  37043. $15 = HEAP32[$4>>2]|0;
  37044. $16 = ($14>>>0)<($15>>>0);
  37045. if ($16) {
  37046. $17 = ((($14)) + 1|0);
  37047. HEAP32[$2>>2] = $17;
  37048. $18 = HEAP8[$14>>0]|0;
  37049. $19 = $18&255;
  37050. $22 = $19;
  37051. } else {
  37052. $20 = (___shgetc($0)|0);
  37053. $22 = $20;
  37054. }
  37055. $21 = (($22) + -48)|0;
  37056. $23 = ($21>>>0)>(9);
  37057. $24 = ($1|0)!=(0);
  37058. $or$cond3 = $24 & $23;
  37059. if ($or$cond3) {
  37060. $25 = HEAP32[$4>>2]|0;
  37061. $26 = ($25|0)==(0|0);
  37062. if ($26) {
  37063. $$0 = $13;$$049 = $22;
  37064. } else {
  37065. $27 = HEAP32[$2>>2]|0;
  37066. $28 = ((($27)) + -1|0);
  37067. HEAP32[$2>>2] = $28;
  37068. $$0 = $13;$$049 = $22;
  37069. }
  37070. } else {
  37071. $$0 = $13;$$049 = $22;
  37072. }
  37073. break;
  37074. }
  37075. default: {
  37076. $$0 = 0;$$049 = $11;
  37077. }
  37078. }
  37079. $29 = (($$049) + -48)|0;
  37080. $30 = ($29>>>0)>(9);
  37081. if ($30) {
  37082. $31 = HEAP32[$4>>2]|0;
  37083. $32 = ($31|0)==(0|0);
  37084. if ($32) {
  37085. $100 = -2147483648;$101 = 0;
  37086. } else {
  37087. $33 = HEAP32[$2>>2]|0;
  37088. $34 = ((($33)) + -1|0);
  37089. HEAP32[$2>>2] = $34;
  37090. $100 = -2147483648;$101 = 0;
  37091. }
  37092. } else {
  37093. $$04861 = 0;$$160 = $$049;
  37094. while(1) {
  37095. $35 = ($$04861*10)|0;
  37096. $36 = (($$160) + -48)|0;
  37097. $37 = (($36) + ($35))|0;
  37098. $38 = HEAP32[$2>>2]|0;
  37099. $39 = HEAP32[$4>>2]|0;
  37100. $40 = ($38>>>0)<($39>>>0);
  37101. if ($40) {
  37102. $41 = ((($38)) + 1|0);
  37103. HEAP32[$2>>2] = $41;
  37104. $42 = HEAP8[$38>>0]|0;
  37105. $43 = $42&255;
  37106. $$1$be = $43;
  37107. } else {
  37108. $44 = (___shgetc($0)|0);
  37109. $$1$be = $44;
  37110. }
  37111. $45 = (($$1$be) + -48)|0;
  37112. $46 = ($45>>>0)<(10);
  37113. $47 = ($37|0)<(214748364);
  37114. $48 = $46 & $47;
  37115. if ($48) {
  37116. $$04861 = $37;$$160 = $$1$be;
  37117. } else {
  37118. break;
  37119. }
  37120. }
  37121. $49 = ($37|0)<(0);
  37122. $50 = $49 << 31 >> 31;
  37123. $51 = (($$1$be) + -48)|0;
  37124. $52 = ($51>>>0)<(10);
  37125. if ($52) {
  37126. $$254 = $$1$be;$56 = $37;$57 = $50;
  37127. while(1) {
  37128. $58 = (___muldi3(($56|0),($57|0),10,0)|0);
  37129. $59 = tempRet0;
  37130. $60 = ($$254|0)<(0);
  37131. $61 = $60 << 31 >> 31;
  37132. $62 = (_i64Add(($$254|0),($61|0),-48,-1)|0);
  37133. $63 = tempRet0;
  37134. $64 = (_i64Add(($62|0),($63|0),($58|0),($59|0))|0);
  37135. $65 = tempRet0;
  37136. $66 = HEAP32[$2>>2]|0;
  37137. $67 = HEAP32[$4>>2]|0;
  37138. $68 = ($66>>>0)<($67>>>0);
  37139. if ($68) {
  37140. $69 = ((($66)) + 1|0);
  37141. HEAP32[$2>>2] = $69;
  37142. $70 = HEAP8[$66>>0]|0;
  37143. $71 = $70&255;
  37144. $$2$be = $71;
  37145. } else {
  37146. $72 = (___shgetc($0)|0);
  37147. $$2$be = $72;
  37148. }
  37149. $73 = (($$2$be) + -48)|0;
  37150. $74 = ($73>>>0)<(10);
  37151. $75 = ($65|0)<(21474836);
  37152. $76 = ($64>>>0)<(2061584302);
  37153. $77 = ($65|0)==(21474836);
  37154. $78 = $77 & $76;
  37155. $79 = $75 | $78;
  37156. $80 = $74 & $79;
  37157. if ($80) {
  37158. $$254 = $$2$be;$56 = $64;$57 = $65;
  37159. } else {
  37160. $$2$lcssa = $$2$be;$94 = $64;$95 = $65;
  37161. break;
  37162. }
  37163. }
  37164. } else {
  37165. $$2$lcssa = $$1$be;$94 = $37;$95 = $50;
  37166. }
  37167. $53 = (($$2$lcssa) + -48)|0;
  37168. $54 = ($53>>>0)<(10);
  37169. $55 = HEAP32[$4>>2]|0;
  37170. if ($54) {
  37171. $83 = $55;
  37172. while(1) {
  37173. $81 = HEAP32[$2>>2]|0;
  37174. $82 = ($81>>>0)<($83>>>0);
  37175. if ($82) {
  37176. $84 = ((($81)) + 1|0);
  37177. HEAP32[$2>>2] = $84;
  37178. $85 = HEAP8[$81>>0]|0;
  37179. $86 = $85&255;
  37180. $$3$be = $86;$102 = $83;
  37181. } else {
  37182. $87 = (___shgetc($0)|0);
  37183. $$pre = HEAP32[$4>>2]|0;
  37184. $$3$be = $87;$102 = $$pre;
  37185. }
  37186. $88 = (($$3$be) + -48)|0;
  37187. $89 = ($88>>>0)<(10);
  37188. if ($89) {
  37189. $83 = $102;
  37190. } else {
  37191. $$lcssa = $102;
  37192. break;
  37193. }
  37194. }
  37195. } else {
  37196. $$lcssa = $55;
  37197. }
  37198. $90 = ($$lcssa|0)==(0|0);
  37199. if (!($90)) {
  37200. $91 = HEAP32[$2>>2]|0;
  37201. $92 = ((($91)) + -1|0);
  37202. HEAP32[$2>>2] = $92;
  37203. }
  37204. $93 = ($$0|0)!=(0);
  37205. $96 = (_i64Subtract(0,0,($94|0),($95|0))|0);
  37206. $97 = tempRet0;
  37207. $98 = $93 ? $96 : $94;
  37208. $99 = $93 ? $97 : $95;
  37209. $100 = $99;$101 = $98;
  37210. }
  37211. tempRet0 = ($100);
  37212. return ($101|0);
  37213. }
  37214. function _scalbn($0,$1) {
  37215. $0 = +$0;
  37216. $1 = $1|0;
  37217. 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;
  37218. var $3 = 0.0, $4 = 0, $5 = 0, $6 = 0.0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  37219. sp = STACKTOP;
  37220. $2 = ($1|0)>(1023);
  37221. if ($2) {
  37222. $3 = $0 * 8.9884656743115795E+307;
  37223. $4 = (($1) + -1023)|0;
  37224. $5 = ($4|0)>(1023);
  37225. $6 = $3 * 8.9884656743115795E+307;
  37226. $7 = (($1) + -2046)|0;
  37227. $8 = ($7|0)<(1023);
  37228. $$ = $8 ? $7 : 1023;
  37229. $$$ = $5 ? $$ : $4;
  37230. $$21 = $5 ? $6 : $3;
  37231. $$0 = $$21;$$020 = $$$;
  37232. } else {
  37233. $9 = ($1|0)<(-1022);
  37234. if ($9) {
  37235. $10 = $0 * 2.2250738585072014E-308;
  37236. $11 = (($1) + 1022)|0;
  37237. $12 = ($11|0)<(-1022);
  37238. $13 = $10 * 2.2250738585072014E-308;
  37239. $14 = (($1) + 2044)|0;
  37240. $15 = ($14|0)>(-1022);
  37241. $$1 = $15 ? $14 : -1022;
  37242. $$1$ = $12 ? $$1 : $11;
  37243. $$22 = $12 ? $13 : $10;
  37244. $$0 = $$22;$$020 = $$1$;
  37245. } else {
  37246. $$0 = $0;$$020 = $1;
  37247. }
  37248. }
  37249. $16 = (($$020) + 1023)|0;
  37250. $17 = (_bitshift64Shl(($16|0),0,52)|0);
  37251. $18 = tempRet0;
  37252. HEAP32[tempDoublePtr>>2] = $17;HEAP32[tempDoublePtr+4>>2] = $18;$19 = +HEAPF64[tempDoublePtr>>3];
  37253. $20 = $$0 * $19;
  37254. return (+$20);
  37255. }
  37256. function _copysignl($0,$1) {
  37257. $0 = +$0;
  37258. $1 = +$1;
  37259. var $2 = 0.0, label = 0, sp = 0;
  37260. sp = STACKTOP;
  37261. $2 = (+_copysign($0,$1));
  37262. return (+$2);
  37263. }
  37264. function _fmodl($0,$1) {
  37265. $0 = +$0;
  37266. $1 = +$1;
  37267. var $2 = 0.0, label = 0, sp = 0;
  37268. sp = STACKTOP;
  37269. $2 = (+_fmod($0,$1));
  37270. return (+$2);
  37271. }
  37272. function _scalbnl($0,$1) {
  37273. $0 = +$0;
  37274. $1 = $1|0;
  37275. var $2 = 0.0, label = 0, sp = 0;
  37276. sp = STACKTOP;
  37277. $2 = (+_scalbn($0,$1));
  37278. return (+$2);
  37279. }
  37280. function _fmod($0,$1) {
  37281. $0 = +$0;
  37282. $1 = +$1;
  37283. 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;
  37284. 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;
  37285. 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;
  37286. 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;
  37287. 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;
  37288. 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;
  37289. 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;
  37290. 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;
  37291. 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;
  37292. sp = STACKTOP;
  37293. HEAPF64[tempDoublePtr>>3] = $0;$2 = HEAP32[tempDoublePtr>>2]|0;
  37294. $3 = HEAP32[tempDoublePtr+4>>2]|0;
  37295. HEAPF64[tempDoublePtr>>3] = $1;$4 = HEAP32[tempDoublePtr>>2]|0;
  37296. $5 = HEAP32[tempDoublePtr+4>>2]|0;
  37297. $6 = (_bitshift64Lshr(($2|0),($3|0),52)|0);
  37298. $7 = tempRet0;
  37299. $8 = $6 & 2047;
  37300. $9 = (_bitshift64Lshr(($4|0),($5|0),52)|0);
  37301. $10 = tempRet0;
  37302. $11 = $9 & 2047;
  37303. $12 = $3 & -2147483648;
  37304. $13 = (_bitshift64Shl(($4|0),($5|0),1)|0);
  37305. $14 = tempRet0;
  37306. $15 = ($13|0)==(0);
  37307. $16 = ($14|0)==(0);
  37308. $17 = $15 & $16;
  37309. L1: do {
  37310. if ($17) {
  37311. label = 3;
  37312. } else {
  37313. $18 = (___DOUBLE_BITS_272($1)|0);
  37314. $19 = tempRet0;
  37315. $20 = $19 & 2147483647;
  37316. $21 = ($20>>>0)>(2146435072);
  37317. $22 = ($18>>>0)>(0);
  37318. $23 = ($20|0)==(2146435072);
  37319. $24 = $23 & $22;
  37320. $25 = $21 | $24;
  37321. $26 = ($8|0)==(2047);
  37322. $or$cond = $26 | $25;
  37323. if ($or$cond) {
  37324. label = 3;
  37325. } else {
  37326. $29 = (_bitshift64Shl(($2|0),($3|0),1)|0);
  37327. $30 = tempRet0;
  37328. $31 = ($30>>>0)>($14>>>0);
  37329. $32 = ($29>>>0)>($13>>>0);
  37330. $33 = ($30|0)==($14|0);
  37331. $34 = $33 & $32;
  37332. $35 = $31 | $34;
  37333. if (!($35)) {
  37334. $36 = ($29|0)==($13|0);
  37335. $37 = ($30|0)==($14|0);
  37336. $38 = $36 & $37;
  37337. $39 = $0 * 0.0;
  37338. $$ = $38 ? $39 : $0;
  37339. return (+$$);
  37340. }
  37341. $40 = ($8|0)==(0);
  37342. if ($40) {
  37343. $41 = (_bitshift64Shl(($2|0),($3|0),12)|0);
  37344. $42 = tempRet0;
  37345. $43 = ($42|0)>(-1);
  37346. $44 = ($41>>>0)>(4294967295);
  37347. $45 = ($42|0)==(-1);
  37348. $46 = $45 & $44;
  37349. $47 = $43 | $46;
  37350. if ($47) {
  37351. $$073100 = 0;$49 = $41;$50 = $42;
  37352. while(1) {
  37353. $48 = (($$073100) + -1)|0;
  37354. $51 = (_bitshift64Shl(($49|0),($50|0),1)|0);
  37355. $52 = tempRet0;
  37356. $53 = ($52|0)>(-1);
  37357. $54 = ($51>>>0)>(4294967295);
  37358. $55 = ($52|0)==(-1);
  37359. $56 = $55 & $54;
  37360. $57 = $53 | $56;
  37361. if ($57) {
  37362. $$073100 = $48;$49 = $51;$50 = $52;
  37363. } else {
  37364. $$073$lcssa = $48;
  37365. break;
  37366. }
  37367. }
  37368. } else {
  37369. $$073$lcssa = 0;
  37370. }
  37371. $58 = (1 - ($$073$lcssa))|0;
  37372. $59 = (_bitshift64Shl(($2|0),($3|0),($58|0))|0);
  37373. $60 = tempRet0;
  37374. $$174 = $$073$lcssa;$87 = $59;$88 = $60;
  37375. } else {
  37376. $61 = $3 & 1048575;
  37377. $62 = $61 | 1048576;
  37378. $$174 = $8;$87 = $2;$88 = $62;
  37379. }
  37380. $63 = ($11|0)==(0);
  37381. if ($63) {
  37382. $64 = (_bitshift64Shl(($4|0),($5|0),12)|0);
  37383. $65 = tempRet0;
  37384. $66 = ($65|0)>(-1);
  37385. $67 = ($64>>>0)>(4294967295);
  37386. $68 = ($65|0)==(-1);
  37387. $69 = $68 & $67;
  37388. $70 = $66 | $69;
  37389. if ($70) {
  37390. $$07194 = 0;$72 = $64;$73 = $65;
  37391. while(1) {
  37392. $71 = (($$07194) + -1)|0;
  37393. $74 = (_bitshift64Shl(($72|0),($73|0),1)|0);
  37394. $75 = tempRet0;
  37395. $76 = ($75|0)>(-1);
  37396. $77 = ($74>>>0)>(4294967295);
  37397. $78 = ($75|0)==(-1);
  37398. $79 = $78 & $77;
  37399. $80 = $76 | $79;
  37400. if ($80) {
  37401. $$07194 = $71;$72 = $74;$73 = $75;
  37402. } else {
  37403. $$071$lcssa = $71;
  37404. break;
  37405. }
  37406. }
  37407. } else {
  37408. $$071$lcssa = 0;
  37409. }
  37410. $81 = (1 - ($$071$lcssa))|0;
  37411. $82 = (_bitshift64Shl(($4|0),($5|0),($81|0))|0);
  37412. $83 = tempRet0;
  37413. $$172$ph = $$071$lcssa;$89 = $82;$90 = $83;
  37414. } else {
  37415. $84 = $5 & 1048575;
  37416. $85 = $84 | 1048576;
  37417. $$172$ph = $11;$89 = $4;$90 = $85;
  37418. }
  37419. $86 = ($$174|0)>($$172$ph|0);
  37420. $91 = (_i64Subtract(($87|0),($88|0),($89|0),($90|0))|0);
  37421. $92 = tempRet0;
  37422. $93 = ($92|0)>(-1);
  37423. $94 = ($91>>>0)>(4294967295);
  37424. $95 = ($92|0)==(-1);
  37425. $96 = $95 & $94;
  37426. $97 = $93 | $96;
  37427. L23: do {
  37428. if ($86) {
  37429. $$27586 = $$174;$101 = $92;$156 = $97;$157 = $87;$158 = $88;$99 = $91;
  37430. while(1) {
  37431. if ($156) {
  37432. $98 = ($99|0)==(0);
  37433. $100 = ($101|0)==(0);
  37434. $102 = $98 & $100;
  37435. if ($102) {
  37436. break;
  37437. } else {
  37438. $104 = $99;$105 = $101;
  37439. }
  37440. } else {
  37441. $104 = $157;$105 = $158;
  37442. }
  37443. $106 = (_bitshift64Shl(($104|0),($105|0),1)|0);
  37444. $107 = tempRet0;
  37445. $108 = (($$27586) + -1)|0;
  37446. $109 = ($108|0)>($$172$ph|0);
  37447. $110 = (_i64Subtract(($106|0),($107|0),($89|0),($90|0))|0);
  37448. $111 = tempRet0;
  37449. $112 = ($111|0)>(-1);
  37450. $113 = ($110>>>0)>(4294967295);
  37451. $114 = ($111|0)==(-1);
  37452. $115 = $114 & $113;
  37453. $116 = $112 | $115;
  37454. if ($109) {
  37455. $$27586 = $108;$101 = $111;$156 = $116;$157 = $106;$158 = $107;$99 = $110;
  37456. } else {
  37457. $$275$lcssa = $108;$$lcssa = $116;$118 = $110;$120 = $111;$159 = $106;$160 = $107;
  37458. break L23;
  37459. }
  37460. }
  37461. $103 = $0 * 0.0;
  37462. $$070 = $103;
  37463. break L1;
  37464. } else {
  37465. $$275$lcssa = $$174;$$lcssa = $97;$118 = $91;$120 = $92;$159 = $87;$160 = $88;
  37466. }
  37467. } while(0);
  37468. if ($$lcssa) {
  37469. $117 = ($118|0)==(0);
  37470. $119 = ($120|0)==(0);
  37471. $121 = $117 & $119;
  37472. if ($121) {
  37473. $129 = $0 * 0.0;
  37474. $$070 = $129;
  37475. break;
  37476. } else {
  37477. $123 = $120;$125 = $118;
  37478. }
  37479. } else {
  37480. $123 = $160;$125 = $159;
  37481. }
  37482. $122 = ($123>>>0)<(1048576);
  37483. $124 = ($125>>>0)<(0);
  37484. $126 = ($123|0)==(1048576);
  37485. $127 = $126 & $124;
  37486. $128 = $122 | $127;
  37487. if ($128) {
  37488. $$37683 = $$275$lcssa;$130 = $125;$131 = $123;
  37489. while(1) {
  37490. $132 = (_bitshift64Shl(($130|0),($131|0),1)|0);
  37491. $133 = tempRet0;
  37492. $134 = (($$37683) + -1)|0;
  37493. $135 = ($133>>>0)<(1048576);
  37494. $136 = ($132>>>0)<(0);
  37495. $137 = ($133|0)==(1048576);
  37496. $138 = $137 & $136;
  37497. $139 = $135 | $138;
  37498. if ($139) {
  37499. $$37683 = $134;$130 = $132;$131 = $133;
  37500. } else {
  37501. $$376$lcssa = $134;$141 = $132;$142 = $133;
  37502. break;
  37503. }
  37504. }
  37505. } else {
  37506. $$376$lcssa = $$275$lcssa;$141 = $125;$142 = $123;
  37507. }
  37508. $140 = ($$376$lcssa|0)>(0);
  37509. if ($140) {
  37510. $143 = (_i64Add(($141|0),($142|0),0,-1048576)|0);
  37511. $144 = tempRet0;
  37512. $145 = (_bitshift64Shl(($$376$lcssa|0),0,52)|0);
  37513. $146 = tempRet0;
  37514. $147 = $143 | $145;
  37515. $148 = $144 | $146;
  37516. $153 = $148;$155 = $147;
  37517. } else {
  37518. $149 = (1 - ($$376$lcssa))|0;
  37519. $150 = (_bitshift64Lshr(($141|0),($142|0),($149|0))|0);
  37520. $151 = tempRet0;
  37521. $153 = $151;$155 = $150;
  37522. }
  37523. $152 = $153 | $12;
  37524. HEAP32[tempDoublePtr>>2] = $155;HEAP32[tempDoublePtr+4>>2] = $152;$154 = +HEAPF64[tempDoublePtr>>3];
  37525. $$070 = $154;
  37526. }
  37527. }
  37528. } while(0);
  37529. if ((label|0) == 3) {
  37530. $27 = $0 * $1;
  37531. $28 = $27 / $27;
  37532. $$070 = $28;
  37533. }
  37534. return (+$$070);
  37535. }
  37536. function ___DOUBLE_BITS_272($0) {
  37537. $0 = +$0;
  37538. var $1 = 0, $2 = 0, label = 0, sp = 0;
  37539. sp = STACKTOP;
  37540. HEAPF64[tempDoublePtr>>3] = $0;$1 = HEAP32[tempDoublePtr>>2]|0;
  37541. $2 = HEAP32[tempDoublePtr+4>>2]|0;
  37542. tempRet0 = ($2);
  37543. return ($1|0);
  37544. }
  37545. function _strlen($0) {
  37546. $0 = $0|0;
  37547. 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;
  37548. 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;
  37549. sp = STACKTOP;
  37550. $1 = $0;
  37551. $2 = $1 & 3;
  37552. $3 = ($2|0)==(0);
  37553. L1: do {
  37554. if ($3) {
  37555. $$015$lcssa = $0;
  37556. label = 4;
  37557. } else {
  37558. $$01519 = $0;$23 = $1;
  37559. while(1) {
  37560. $4 = HEAP8[$$01519>>0]|0;
  37561. $5 = ($4<<24>>24)==(0);
  37562. if ($5) {
  37563. $$sink = $23;
  37564. break L1;
  37565. }
  37566. $6 = ((($$01519)) + 1|0);
  37567. $7 = $6;
  37568. $8 = $7 & 3;
  37569. $9 = ($8|0)==(0);
  37570. if ($9) {
  37571. $$015$lcssa = $6;
  37572. label = 4;
  37573. break;
  37574. } else {
  37575. $$01519 = $6;$23 = $7;
  37576. }
  37577. }
  37578. }
  37579. } while(0);
  37580. if ((label|0) == 4) {
  37581. $$0 = $$015$lcssa;
  37582. while(1) {
  37583. $10 = HEAP32[$$0>>2]|0;
  37584. $11 = (($10) + -16843009)|0;
  37585. $12 = $10 & -2139062144;
  37586. $13 = $12 ^ -2139062144;
  37587. $14 = $13 & $11;
  37588. $15 = ($14|0)==(0);
  37589. $16 = ((($$0)) + 4|0);
  37590. if ($15) {
  37591. $$0 = $16;
  37592. } else {
  37593. break;
  37594. }
  37595. }
  37596. $17 = $10&255;
  37597. $18 = ($17<<24>>24)==(0);
  37598. if ($18) {
  37599. $$1$lcssa = $$0;
  37600. } else {
  37601. $$pn = $$0;
  37602. while(1) {
  37603. $19 = ((($$pn)) + 1|0);
  37604. $$pre = HEAP8[$19>>0]|0;
  37605. $20 = ($$pre<<24>>24)==(0);
  37606. if ($20) {
  37607. $$1$lcssa = $19;
  37608. break;
  37609. } else {
  37610. $$pn = $19;
  37611. }
  37612. }
  37613. }
  37614. $21 = $$1$lcssa;
  37615. $$sink = $21;
  37616. }
  37617. $22 = (($$sink) - ($1))|0;
  37618. return ($22|0);
  37619. }
  37620. function _strchr($0,$1) {
  37621. $0 = $0|0;
  37622. $1 = $1|0;
  37623. var $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  37624. sp = STACKTOP;
  37625. $2 = (___strchrnul($0,$1)|0);
  37626. $3 = HEAP8[$2>>0]|0;
  37627. $4 = $1&255;
  37628. $5 = ($3<<24>>24)==($4<<24>>24);
  37629. $6 = $5 ? $2 : 0;
  37630. return ($6|0);
  37631. }
  37632. function ___strchrnul($0,$1) {
  37633. $0 = $0|0;
  37634. $1 = $1|0;
  37635. 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;
  37636. 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;
  37637. 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;
  37638. sp = STACKTOP;
  37639. $2 = $1 & 255;
  37640. $3 = ($2|0)==(0);
  37641. L1: do {
  37642. if ($3) {
  37643. $8 = (_strlen($0)|0);
  37644. $9 = (($0) + ($8)|0);
  37645. $$0 = $9;
  37646. } else {
  37647. $4 = $0;
  37648. $5 = $4 & 3;
  37649. $6 = ($5|0)==(0);
  37650. if ($6) {
  37651. $$030$lcssa = $0;
  37652. } else {
  37653. $7 = $1&255;
  37654. $$03039 = $0;
  37655. while(1) {
  37656. $10 = HEAP8[$$03039>>0]|0;
  37657. $11 = ($10<<24>>24)==(0);
  37658. $12 = ($10<<24>>24)==($7<<24>>24);
  37659. $or$cond = $11 | $12;
  37660. if ($or$cond) {
  37661. $$0 = $$03039;
  37662. break L1;
  37663. }
  37664. $13 = ((($$03039)) + 1|0);
  37665. $14 = $13;
  37666. $15 = $14 & 3;
  37667. $16 = ($15|0)==(0);
  37668. if ($16) {
  37669. $$030$lcssa = $13;
  37670. break;
  37671. } else {
  37672. $$03039 = $13;
  37673. }
  37674. }
  37675. }
  37676. $17 = Math_imul($2, 16843009)|0;
  37677. $18 = HEAP32[$$030$lcssa>>2]|0;
  37678. $19 = (($18) + -16843009)|0;
  37679. $20 = $18 & -2139062144;
  37680. $21 = $20 ^ -2139062144;
  37681. $22 = $21 & $19;
  37682. $23 = ($22|0)==(0);
  37683. L10: do {
  37684. if ($23) {
  37685. $$02936 = $$030$lcssa;$25 = $18;
  37686. while(1) {
  37687. $24 = $25 ^ $17;
  37688. $26 = (($24) + -16843009)|0;
  37689. $27 = $24 & -2139062144;
  37690. $28 = $27 ^ -2139062144;
  37691. $29 = $28 & $26;
  37692. $30 = ($29|0)==(0);
  37693. if (!($30)) {
  37694. $$029$lcssa = $$02936;
  37695. break L10;
  37696. }
  37697. $31 = ((($$02936)) + 4|0);
  37698. $32 = HEAP32[$31>>2]|0;
  37699. $33 = (($32) + -16843009)|0;
  37700. $34 = $32 & -2139062144;
  37701. $35 = $34 ^ -2139062144;
  37702. $36 = $35 & $33;
  37703. $37 = ($36|0)==(0);
  37704. if ($37) {
  37705. $$02936 = $31;$25 = $32;
  37706. } else {
  37707. $$029$lcssa = $31;
  37708. break;
  37709. }
  37710. }
  37711. } else {
  37712. $$029$lcssa = $$030$lcssa;
  37713. }
  37714. } while(0);
  37715. $38 = $1&255;
  37716. $$1 = $$029$lcssa;
  37717. while(1) {
  37718. $39 = HEAP8[$$1>>0]|0;
  37719. $40 = ($39<<24>>24)==(0);
  37720. $41 = ($39<<24>>24)==($38<<24>>24);
  37721. $or$cond33 = $40 | $41;
  37722. $42 = ((($$1)) + 1|0);
  37723. if ($or$cond33) {
  37724. $$0 = $$1;
  37725. break;
  37726. } else {
  37727. $$1 = $42;
  37728. }
  37729. }
  37730. }
  37731. } while(0);
  37732. return ($$0|0);
  37733. }
  37734. function _mbrtowc($0,$1,$2,$3) {
  37735. $0 = $0|0;
  37736. $1 = $1|0;
  37737. $2 = $2|0;
  37738. $3 = $3|0;
  37739. 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;
  37740. 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;
  37741. 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;
  37742. var $not$ = 0, label = 0, sp = 0;
  37743. sp = STACKTOP;
  37744. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  37745. $4 = sp;
  37746. $5 = ($3|0)==(0|0);
  37747. $$ = $5 ? 22996 : $3;
  37748. $6 = HEAP32[$$>>2]|0;
  37749. $7 = ($1|0)==(0|0);
  37750. L1: do {
  37751. if ($7) {
  37752. $8 = ($6|0)==(0);
  37753. if ($8) {
  37754. $$0 = 0;
  37755. } else {
  37756. label = 17;
  37757. }
  37758. } else {
  37759. $9 = ($0|0)==(0|0);
  37760. $$47 = $9 ? $4 : $0;
  37761. $10 = ($2|0)==(0);
  37762. if ($10) {
  37763. $$0 = -2;
  37764. } else {
  37765. $11 = ($6|0)==(0);
  37766. if ($11) {
  37767. $12 = HEAP8[$1>>0]|0;
  37768. $13 = ($12<<24>>24)>(-1);
  37769. if ($13) {
  37770. $14 = $12&255;
  37771. HEAP32[$$47>>2] = $14;
  37772. $15 = ($12<<24>>24)!=(0);
  37773. $16 = $15&1;
  37774. $$0 = $16;
  37775. break;
  37776. }
  37777. $17 = (___pthread_self_439()|0);
  37778. $18 = ((($17)) + 188|0);
  37779. $19 = HEAP32[$18>>2]|0;
  37780. $20 = HEAP32[$19>>2]|0;
  37781. $not$ = ($20|0)==(0|0);
  37782. $21 = HEAP8[$1>>0]|0;
  37783. if ($not$) {
  37784. $22 = $21 << 24 >> 24;
  37785. $23 = $22 & 57343;
  37786. HEAP32[$$47>>2] = $23;
  37787. $$0 = 1;
  37788. break;
  37789. }
  37790. $24 = $21&255;
  37791. $25 = (($24) + -194)|0;
  37792. $26 = ($25>>>0)>(50);
  37793. if ($26) {
  37794. label = 17;
  37795. break;
  37796. }
  37797. $27 = ((($1)) + 1|0);
  37798. $28 = (3768 + ($25<<2)|0);
  37799. $29 = HEAP32[$28>>2]|0;
  37800. $30 = (($2) + -1)|0;
  37801. $31 = ($30|0)==(0);
  37802. if ($31) {
  37803. $$2 = $29;
  37804. } else {
  37805. $$03952 = $27;$$04051 = $29;$$04350 = $30;
  37806. label = 11;
  37807. }
  37808. } else {
  37809. $$03952 = $1;$$04051 = $6;$$04350 = $2;
  37810. label = 11;
  37811. }
  37812. L14: do {
  37813. if ((label|0) == 11) {
  37814. $32 = HEAP8[$$03952>>0]|0;
  37815. $33 = $32&255;
  37816. $34 = $33 >>> 3;
  37817. $35 = (($34) + -16)|0;
  37818. $36 = $$04051 >> 26;
  37819. $37 = (($34) + ($36))|0;
  37820. $38 = $35 | $37;
  37821. $39 = ($38>>>0)>(7);
  37822. if ($39) {
  37823. label = 17;
  37824. break L1;
  37825. } else {
  37826. $$1 = $$03952;$$141 = $$04051;$$144 = $$04350;$43 = $32;
  37827. }
  37828. while(1) {
  37829. $40 = $$141 << 6;
  37830. $41 = ((($$1)) + 1|0);
  37831. $42 = $43&255;
  37832. $44 = (($42) + -128)|0;
  37833. $45 = $44 | $40;
  37834. $46 = (($$144) + -1)|0;
  37835. $47 = ($45|0)<(0);
  37836. if (!($47)) {
  37837. break;
  37838. }
  37839. $49 = ($46|0)==(0);
  37840. if ($49) {
  37841. $$2 = $45;
  37842. break L14;
  37843. }
  37844. $50 = HEAP8[$41>>0]|0;
  37845. $51 = $50 & -64;
  37846. $52 = ($51<<24>>24)==(-128);
  37847. if ($52) {
  37848. $$1 = $41;$$141 = $45;$$144 = $46;$43 = $50;
  37849. } else {
  37850. label = 17;
  37851. break L1;
  37852. }
  37853. }
  37854. HEAP32[$$>>2] = 0;
  37855. HEAP32[$$47>>2] = $45;
  37856. $48 = (($2) - ($46))|0;
  37857. $$0 = $48;
  37858. break L1;
  37859. }
  37860. } while(0);
  37861. HEAP32[$$>>2] = $$2;
  37862. $$0 = -2;
  37863. }
  37864. }
  37865. } while(0);
  37866. if ((label|0) == 17) {
  37867. HEAP32[$$>>2] = 0;
  37868. $53 = (___errno_location()|0);
  37869. HEAP32[$53>>2] = 84;
  37870. $$0 = -1;
  37871. }
  37872. STACKTOP = sp;return ($$0|0);
  37873. }
  37874. function ___pthread_self_439() {
  37875. var $0 = 0, label = 0, sp = 0;
  37876. sp = STACKTOP;
  37877. $0 = (_pthread_self()|0);
  37878. return ($0|0);
  37879. }
  37880. function _strcpy($0,$1) {
  37881. $0 = $0|0;
  37882. $1 = $1|0;
  37883. var label = 0, sp = 0;
  37884. sp = STACKTOP;
  37885. (___stpcpy($0,$1)|0);
  37886. return ($0|0);
  37887. }
  37888. function ___stpcpy($0,$1) {
  37889. $0 = $0|0;
  37890. $1 = $1|0;
  37891. 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;
  37892. 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;
  37893. var $35 = 0, $36 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  37894. sp = STACKTOP;
  37895. $2 = $1;
  37896. $3 = $0;
  37897. $4 = $2 ^ $3;
  37898. $5 = $4 & 3;
  37899. $6 = ($5|0)==(0);
  37900. L1: do {
  37901. if ($6) {
  37902. $7 = $2 & 3;
  37903. $8 = ($7|0)==(0);
  37904. if ($8) {
  37905. $$026$lcssa = $1;$$027$lcssa = $0;
  37906. } else {
  37907. $$02642 = $1;$$02741 = $0;
  37908. while(1) {
  37909. $9 = HEAP8[$$02642>>0]|0;
  37910. HEAP8[$$02741>>0] = $9;
  37911. $10 = ($9<<24>>24)==(0);
  37912. if ($10) {
  37913. $$029 = $$02741;
  37914. break L1;
  37915. }
  37916. $11 = ((($$02642)) + 1|0);
  37917. $12 = ((($$02741)) + 1|0);
  37918. $13 = $11;
  37919. $14 = $13 & 3;
  37920. $15 = ($14|0)==(0);
  37921. if ($15) {
  37922. $$026$lcssa = $11;$$027$lcssa = $12;
  37923. break;
  37924. } else {
  37925. $$02642 = $11;$$02741 = $12;
  37926. }
  37927. }
  37928. }
  37929. $16 = HEAP32[$$026$lcssa>>2]|0;
  37930. $17 = (($16) + -16843009)|0;
  37931. $18 = $16 & -2139062144;
  37932. $19 = $18 ^ -2139062144;
  37933. $20 = $19 & $17;
  37934. $21 = ($20|0)==(0);
  37935. if ($21) {
  37936. $$02536 = $$027$lcssa;$$037 = $$026$lcssa;$24 = $16;
  37937. while(1) {
  37938. $22 = ((($$037)) + 4|0);
  37939. $23 = ((($$02536)) + 4|0);
  37940. HEAP32[$$02536>>2] = $24;
  37941. $25 = HEAP32[$22>>2]|0;
  37942. $26 = (($25) + -16843009)|0;
  37943. $27 = $25 & -2139062144;
  37944. $28 = $27 ^ -2139062144;
  37945. $29 = $28 & $26;
  37946. $30 = ($29|0)==(0);
  37947. if ($30) {
  37948. $$02536 = $23;$$037 = $22;$24 = $25;
  37949. } else {
  37950. $$0$lcssa = $22;$$025$lcssa = $23;
  37951. break;
  37952. }
  37953. }
  37954. } else {
  37955. $$0$lcssa = $$026$lcssa;$$025$lcssa = $$027$lcssa;
  37956. }
  37957. $$1$ph = $$0$lcssa;$$128$ph = $$025$lcssa;
  37958. label = 8;
  37959. } else {
  37960. $$1$ph = $1;$$128$ph = $0;
  37961. label = 8;
  37962. }
  37963. } while(0);
  37964. if ((label|0) == 8) {
  37965. $31 = HEAP8[$$1$ph>>0]|0;
  37966. HEAP8[$$128$ph>>0] = $31;
  37967. $32 = ($31<<24>>24)==(0);
  37968. if ($32) {
  37969. $$029 = $$128$ph;
  37970. } else {
  37971. $$12834 = $$128$ph;$$135 = $$1$ph;
  37972. while(1) {
  37973. $33 = ((($$135)) + 1|0);
  37974. $34 = ((($$12834)) + 1|0);
  37975. $35 = HEAP8[$33>>0]|0;
  37976. HEAP8[$34>>0] = $35;
  37977. $36 = ($35<<24>>24)==(0);
  37978. if ($36) {
  37979. $$029 = $34;
  37980. break;
  37981. } else {
  37982. $$12834 = $34;$$135 = $33;
  37983. }
  37984. }
  37985. }
  37986. }
  37987. return ($$029|0);
  37988. }
  37989. function _ldexp($0,$1) {
  37990. $0 = +$0;
  37991. $1 = $1|0;
  37992. var $2 = 0.0, label = 0, sp = 0;
  37993. sp = STACKTOP;
  37994. $2 = (+_scalbn($0,$1));
  37995. return (+$2);
  37996. }
  37997. function ___unlist_locked_file($0) {
  37998. $0 = $0|0;
  37999. 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;
  38000. sp = STACKTOP;
  38001. $1 = ((($0)) + 68|0);
  38002. $2 = HEAP32[$1>>2]|0;
  38003. $3 = ($2|0)==(0);
  38004. if (!($3)) {
  38005. $4 = ((($0)) + 116|0);
  38006. $5 = HEAP32[$4>>2]|0;
  38007. $6 = ($5|0)==(0|0);
  38008. $$pre = ((($0)) + 112|0);
  38009. if (!($6)) {
  38010. $7 = HEAP32[$$pre>>2]|0;
  38011. $8 = ((($5)) + 112|0);
  38012. HEAP32[$8>>2] = $7;
  38013. }
  38014. $9 = HEAP32[$$pre>>2]|0;
  38015. $10 = ($9|0)==(0|0);
  38016. if ($10) {
  38017. $12 = (___pthread_self_607()|0);
  38018. $13 = ((($12)) + 232|0);
  38019. $$sink = $13;
  38020. } else {
  38021. $11 = ((($9)) + 116|0);
  38022. $$sink = $11;
  38023. }
  38024. HEAP32[$$sink>>2] = $5;
  38025. }
  38026. return;
  38027. }
  38028. function ___pthread_self_607() {
  38029. var $0 = 0, label = 0, sp = 0;
  38030. sp = STACKTOP;
  38031. $0 = (_pthread_self()|0);
  38032. return ($0|0);
  38033. }
  38034. function _fopen($0,$1) {
  38035. $0 = $0|0;
  38036. $1 = $1|0;
  38037. 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;
  38038. var $vararg_ptr2 = 0, $vararg_ptr6 = 0, $vararg_ptr7 = 0, label = 0, sp = 0;
  38039. sp = STACKTOP;
  38040. STACKTOP = STACKTOP + 48|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(48|0);
  38041. $vararg_buffer8 = sp + 32|0;
  38042. $vararg_buffer3 = sp + 16|0;
  38043. $vararg_buffer = sp;
  38044. $2 = HEAP8[$1>>0]|0;
  38045. $3 = $2 << 24 >> 24;
  38046. $memchr = (_memchr(19304,$3,4)|0);
  38047. $4 = ($memchr|0)==(0|0);
  38048. if ($4) {
  38049. $5 = (___errno_location()|0);
  38050. HEAP32[$5>>2] = 22;
  38051. $$0 = 0;
  38052. } else {
  38053. $6 = (___fmodeflags($1)|0);
  38054. $7 = $0;
  38055. $8 = $6 | 32768;
  38056. HEAP32[$vararg_buffer>>2] = $7;
  38057. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  38058. HEAP32[$vararg_ptr1>>2] = $8;
  38059. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  38060. HEAP32[$vararg_ptr2>>2] = 438;
  38061. $9 = (___syscall5(5,($vararg_buffer|0))|0);
  38062. $10 = (___syscall_ret($9)|0);
  38063. $11 = ($10|0)<(0);
  38064. if ($11) {
  38065. $$0 = 0;
  38066. } else {
  38067. $12 = $6 & 524288;
  38068. $13 = ($12|0)==(0);
  38069. if (!($13)) {
  38070. HEAP32[$vararg_buffer3>>2] = $10;
  38071. $vararg_ptr6 = ((($vararg_buffer3)) + 4|0);
  38072. HEAP32[$vararg_ptr6>>2] = 2;
  38073. $vararg_ptr7 = ((($vararg_buffer3)) + 8|0);
  38074. HEAP32[$vararg_ptr7>>2] = 1;
  38075. (___syscall221(221,($vararg_buffer3|0))|0);
  38076. }
  38077. $14 = (___fdopen($10,$1)|0);
  38078. $15 = ($14|0)==(0|0);
  38079. if ($15) {
  38080. HEAP32[$vararg_buffer8>>2] = $10;
  38081. (___syscall6(6,($vararg_buffer8|0))|0);
  38082. $$0 = 0;
  38083. } else {
  38084. $$0 = $14;
  38085. }
  38086. }
  38087. }
  38088. STACKTOP = sp;return ($$0|0);
  38089. }
  38090. function ___fmodeflags($0) {
  38091. $0 = $0|0;
  38092. 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;
  38093. var $8 = 0, $9 = 0, $not$ = 0, label = 0, sp = 0;
  38094. sp = STACKTOP;
  38095. $1 = (_strchr($0,43)|0);
  38096. $2 = ($1|0)==(0|0);
  38097. $3 = HEAP8[$0>>0]|0;
  38098. $not$ = ($3<<24>>24)!=(114);
  38099. $$ = $not$&1;
  38100. $$0 = $2 ? $$ : 2;
  38101. $4 = (_strchr($0,120)|0);
  38102. $5 = ($4|0)==(0|0);
  38103. $6 = $$0 | 128;
  38104. $$0$ = $5 ? $$0 : $6;
  38105. $7 = (_strchr($0,101)|0);
  38106. $8 = ($7|0)==(0|0);
  38107. $9 = $$0$ | 524288;
  38108. $$2 = $8 ? $$0$ : $9;
  38109. $10 = ($3<<24>>24)==(114);
  38110. $11 = $$2 | 64;
  38111. $$2$ = $10 ? $$2 : $11;
  38112. $12 = ($3<<24>>24)==(119);
  38113. $13 = $$2$ | 512;
  38114. $$4 = $12 ? $13 : $$2$;
  38115. $14 = ($3<<24>>24)==(97);
  38116. $15 = $$4 | 1024;
  38117. $$$4 = $14 ? $15 : $$4;
  38118. return ($$$4|0);
  38119. }
  38120. function ___fdopen($0,$1) {
  38121. $0 = $0|0;
  38122. $1 = $1|0;
  38123. 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;
  38124. 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;
  38125. 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;
  38126. sp = STACKTOP;
  38127. STACKTOP = STACKTOP + 64|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(64|0);
  38128. $vararg_buffer12 = sp + 40|0;
  38129. $vararg_buffer7 = sp + 24|0;
  38130. $vararg_buffer3 = sp + 16|0;
  38131. $vararg_buffer = sp;
  38132. $2 = sp + 56|0;
  38133. $3 = HEAP8[$1>>0]|0;
  38134. $4 = $3 << 24 >> 24;
  38135. $memchr = (_memchr(19304,$4,4)|0);
  38136. $5 = ($memchr|0)==(0|0);
  38137. if ($5) {
  38138. $6 = (___errno_location()|0);
  38139. HEAP32[$6>>2] = 22;
  38140. $$0 = 0;
  38141. } else {
  38142. $7 = (_malloc(1156)|0);
  38143. $8 = ($7|0)==(0|0);
  38144. if ($8) {
  38145. $$0 = 0;
  38146. } else {
  38147. dest=$7; stop=dest+124|0; do { HEAP32[dest>>2]=0|0; dest=dest+4|0; } while ((dest|0) < (stop|0));
  38148. $9 = (_strchr($1,43)|0);
  38149. $10 = ($9|0)==(0|0);
  38150. if ($10) {
  38151. $11 = ($3<<24>>24)==(114);
  38152. $12 = $11 ? 8 : 4;
  38153. HEAP32[$7>>2] = $12;
  38154. }
  38155. $13 = (_strchr($1,101)|0);
  38156. $14 = ($13|0)==(0|0);
  38157. if ($14) {
  38158. $16 = $3;
  38159. } else {
  38160. HEAP32[$vararg_buffer>>2] = $0;
  38161. $vararg_ptr1 = ((($vararg_buffer)) + 4|0);
  38162. HEAP32[$vararg_ptr1>>2] = 2;
  38163. $vararg_ptr2 = ((($vararg_buffer)) + 8|0);
  38164. HEAP32[$vararg_ptr2>>2] = 1;
  38165. (___syscall221(221,($vararg_buffer|0))|0);
  38166. $$pre = HEAP8[$1>>0]|0;
  38167. $16 = $$pre;
  38168. }
  38169. $15 = ($16<<24>>24)==(97);
  38170. if ($15) {
  38171. HEAP32[$vararg_buffer3>>2] = $0;
  38172. $vararg_ptr6 = ((($vararg_buffer3)) + 4|0);
  38173. HEAP32[$vararg_ptr6>>2] = 3;
  38174. $17 = (___syscall221(221,($vararg_buffer3|0))|0);
  38175. $18 = $17 & 1024;
  38176. $19 = ($18|0)==(0);
  38177. if ($19) {
  38178. $20 = $17 | 1024;
  38179. HEAP32[$vararg_buffer7>>2] = $0;
  38180. $vararg_ptr10 = ((($vararg_buffer7)) + 4|0);
  38181. HEAP32[$vararg_ptr10>>2] = 4;
  38182. $vararg_ptr11 = ((($vararg_buffer7)) + 8|0);
  38183. HEAP32[$vararg_ptr11>>2] = $20;
  38184. (___syscall221(221,($vararg_buffer7|0))|0);
  38185. }
  38186. $21 = HEAP32[$7>>2]|0;
  38187. $22 = $21 | 128;
  38188. HEAP32[$7>>2] = $22;
  38189. $29 = $22;
  38190. } else {
  38191. $$pre31 = HEAP32[$7>>2]|0;
  38192. $29 = $$pre31;
  38193. }
  38194. $23 = ((($7)) + 60|0);
  38195. HEAP32[$23>>2] = $0;
  38196. $24 = ((($7)) + 132|0);
  38197. $25 = ((($7)) + 44|0);
  38198. HEAP32[$25>>2] = $24;
  38199. $26 = ((($7)) + 48|0);
  38200. HEAP32[$26>>2] = 1024;
  38201. $27 = ((($7)) + 75|0);
  38202. HEAP8[$27>>0] = -1;
  38203. $28 = $29 & 8;
  38204. $30 = ($28|0)==(0);
  38205. if ($30) {
  38206. $31 = $2;
  38207. HEAP32[$vararg_buffer12>>2] = $0;
  38208. $vararg_ptr15 = ((($vararg_buffer12)) + 4|0);
  38209. HEAP32[$vararg_ptr15>>2] = 21523;
  38210. $vararg_ptr16 = ((($vararg_buffer12)) + 8|0);
  38211. HEAP32[$vararg_ptr16>>2] = $31;
  38212. $32 = (___syscall54(54,($vararg_buffer12|0))|0);
  38213. $33 = ($32|0)==(0);
  38214. if ($33) {
  38215. HEAP8[$27>>0] = 10;
  38216. }
  38217. }
  38218. $34 = ((($7)) + 32|0);
  38219. HEAP32[$34>>2] = 11;
  38220. $35 = ((($7)) + 36|0);
  38221. HEAP32[$35>>2] = 10;
  38222. $36 = ((($7)) + 40|0);
  38223. HEAP32[$36>>2] = 3;
  38224. $37 = ((($7)) + 12|0);
  38225. HEAP32[$37>>2] = 2;
  38226. $38 = HEAP32[(22936)>>2]|0;
  38227. $39 = ($38|0)==(0);
  38228. if ($39) {
  38229. $40 = ((($7)) + 76|0);
  38230. HEAP32[$40>>2] = -1;
  38231. }
  38232. $41 = (___ofl_add($7)|0);
  38233. $$0 = $7;
  38234. }
  38235. }
  38236. STACKTOP = sp;return ($$0|0);
  38237. }
  38238. function ___ofl_add($0) {
  38239. $0 = $0|0;
  38240. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, label = 0, sp = 0;
  38241. sp = STACKTOP;
  38242. $1 = (___ofl_lock()|0);
  38243. $2 = HEAP32[$1>>2]|0;
  38244. $3 = ((($0)) + 56|0);
  38245. HEAP32[$3>>2] = $2;
  38246. $4 = HEAP32[$1>>2]|0;
  38247. $5 = ($4|0)==(0|0);
  38248. if (!($5)) {
  38249. $6 = ((($4)) + 52|0);
  38250. HEAP32[$6>>2] = $0;
  38251. }
  38252. HEAP32[$1>>2] = $0;
  38253. ___ofl_unlock();
  38254. return ($0|0);
  38255. }
  38256. function ___ofl_lock() {
  38257. var label = 0, sp = 0;
  38258. sp = STACKTOP;
  38259. ___lock((23000|0));
  38260. return (23008|0);
  38261. }
  38262. function ___ofl_unlock() {
  38263. var label = 0, sp = 0;
  38264. sp = STACKTOP;
  38265. ___unlock((23000|0));
  38266. return;
  38267. }
  38268. function _fclose($0) {
  38269. $0 = $0|0;
  38270. 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;
  38271. 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;
  38272. sp = STACKTOP;
  38273. $1 = ((($0)) + 76|0);
  38274. $2 = HEAP32[$1>>2]|0;
  38275. $3 = ($2|0)>(-1);
  38276. if ($3) {
  38277. $4 = (___lockfile($0)|0);
  38278. $29 = $4;
  38279. } else {
  38280. $29 = 0;
  38281. }
  38282. ___unlist_locked_file($0);
  38283. $5 = HEAP32[$0>>2]|0;
  38284. $6 = $5 & 1;
  38285. $7 = ($6|0)!=(0);
  38286. if (!($7)) {
  38287. $8 = (___ofl_lock()|0);
  38288. $9 = ((($0)) + 52|0);
  38289. $10 = HEAP32[$9>>2]|0;
  38290. $11 = ($10|0)==(0|0);
  38291. $12 = $10;
  38292. $$pre = ((($0)) + 56|0);
  38293. if (!($11)) {
  38294. $13 = HEAP32[$$pre>>2]|0;
  38295. $14 = ((($10)) + 56|0);
  38296. HEAP32[$14>>2] = $13;
  38297. }
  38298. $15 = HEAP32[$$pre>>2]|0;
  38299. $16 = ($15|0)==(0|0);
  38300. if (!($16)) {
  38301. $17 = ((($15)) + 52|0);
  38302. HEAP32[$17>>2] = $12;
  38303. }
  38304. $18 = HEAP32[$8>>2]|0;
  38305. $19 = ($18|0)==($0|0);
  38306. if ($19) {
  38307. HEAP32[$8>>2] = $15;
  38308. }
  38309. ___ofl_unlock();
  38310. }
  38311. $20 = (_fflush($0)|0);
  38312. $21 = ((($0)) + 12|0);
  38313. $22 = HEAP32[$21>>2]|0;
  38314. $23 = (FUNCTION_TABLE_ii[$22 & 15]($0)|0);
  38315. $24 = $23 | $20;
  38316. $25 = ((($0)) + 92|0);
  38317. $26 = HEAP32[$25>>2]|0;
  38318. $27 = ($26|0)==(0|0);
  38319. if (!($27)) {
  38320. _free($26);
  38321. }
  38322. if ($7) {
  38323. $28 = ($29|0)==(0);
  38324. if (!($28)) {
  38325. ___unlockfile($0);
  38326. }
  38327. } else {
  38328. _free($0);
  38329. }
  38330. return ($24|0);
  38331. }
  38332. function _fflush($0) {
  38333. $0 = $0|0;
  38334. 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;
  38335. 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;
  38336. sp = STACKTOP;
  38337. $1 = ($0|0)==(0|0);
  38338. do {
  38339. if ($1) {
  38340. $8 = HEAP32[1086]|0;
  38341. $9 = ($8|0)==(0|0);
  38342. if ($9) {
  38343. $29 = 0;
  38344. } else {
  38345. $10 = HEAP32[1086]|0;
  38346. $11 = (_fflush($10)|0);
  38347. $29 = $11;
  38348. }
  38349. $12 = (___ofl_lock()|0);
  38350. $$02325 = HEAP32[$12>>2]|0;
  38351. $13 = ($$02325|0)==(0|0);
  38352. if ($13) {
  38353. $$024$lcssa = $29;
  38354. } else {
  38355. $$02327 = $$02325;$$02426 = $29;
  38356. while(1) {
  38357. $14 = ((($$02327)) + 76|0);
  38358. $15 = HEAP32[$14>>2]|0;
  38359. $16 = ($15|0)>(-1);
  38360. if ($16) {
  38361. $17 = (___lockfile($$02327)|0);
  38362. $26 = $17;
  38363. } else {
  38364. $26 = 0;
  38365. }
  38366. $18 = ((($$02327)) + 20|0);
  38367. $19 = HEAP32[$18>>2]|0;
  38368. $20 = ((($$02327)) + 28|0);
  38369. $21 = HEAP32[$20>>2]|0;
  38370. $22 = ($19>>>0)>($21>>>0);
  38371. if ($22) {
  38372. $23 = (___fflush_unlocked($$02327)|0);
  38373. $24 = $23 | $$02426;
  38374. $$1 = $24;
  38375. } else {
  38376. $$1 = $$02426;
  38377. }
  38378. $25 = ($26|0)==(0);
  38379. if (!($25)) {
  38380. ___unlockfile($$02327);
  38381. }
  38382. $27 = ((($$02327)) + 56|0);
  38383. $$023 = HEAP32[$27>>2]|0;
  38384. $28 = ($$023|0)==(0|0);
  38385. if ($28) {
  38386. $$024$lcssa = $$1;
  38387. break;
  38388. } else {
  38389. $$02327 = $$023;$$02426 = $$1;
  38390. }
  38391. }
  38392. }
  38393. ___ofl_unlock();
  38394. $$0 = $$024$lcssa;
  38395. } else {
  38396. $2 = ((($0)) + 76|0);
  38397. $3 = HEAP32[$2>>2]|0;
  38398. $4 = ($3|0)>(-1);
  38399. if (!($4)) {
  38400. $5 = (___fflush_unlocked($0)|0);
  38401. $$0 = $5;
  38402. break;
  38403. }
  38404. $6 = (___lockfile($0)|0);
  38405. $phitmp = ($6|0)==(0);
  38406. $7 = (___fflush_unlocked($0)|0);
  38407. if ($phitmp) {
  38408. $$0 = $7;
  38409. } else {
  38410. ___unlockfile($0);
  38411. $$0 = $7;
  38412. }
  38413. }
  38414. } while(0);
  38415. return ($$0|0);
  38416. }
  38417. function ___fflush_unlocked($0) {
  38418. $0 = $0|0;
  38419. 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;
  38420. var $9 = 0, label = 0, sp = 0;
  38421. sp = STACKTOP;
  38422. $1 = ((($0)) + 20|0);
  38423. $2 = HEAP32[$1>>2]|0;
  38424. $3 = ((($0)) + 28|0);
  38425. $4 = HEAP32[$3>>2]|0;
  38426. $5 = ($2>>>0)>($4>>>0);
  38427. if ($5) {
  38428. $6 = ((($0)) + 36|0);
  38429. $7 = HEAP32[$6>>2]|0;
  38430. (FUNCTION_TABLE_iiii[$7 & 15]($0,0,0)|0);
  38431. $8 = HEAP32[$1>>2]|0;
  38432. $9 = ($8|0)==(0|0);
  38433. if ($9) {
  38434. $$0 = -1;
  38435. } else {
  38436. label = 3;
  38437. }
  38438. } else {
  38439. label = 3;
  38440. }
  38441. if ((label|0) == 3) {
  38442. $10 = ((($0)) + 4|0);
  38443. $11 = HEAP32[$10>>2]|0;
  38444. $12 = ((($0)) + 8|0);
  38445. $13 = HEAP32[$12>>2]|0;
  38446. $14 = ($11>>>0)<($13>>>0);
  38447. if ($14) {
  38448. $15 = $11;
  38449. $16 = $13;
  38450. $17 = (($15) - ($16))|0;
  38451. $18 = ((($0)) + 40|0);
  38452. $19 = HEAP32[$18>>2]|0;
  38453. (FUNCTION_TABLE_iiii[$19 & 15]($0,$17,1)|0);
  38454. }
  38455. $20 = ((($0)) + 16|0);
  38456. HEAP32[$20>>2] = 0;
  38457. HEAP32[$3>>2] = 0;
  38458. HEAP32[$1>>2] = 0;
  38459. HEAP32[$12>>2] = 0;
  38460. HEAP32[$10>>2] = 0;
  38461. $$0 = 0;
  38462. }
  38463. return ($$0|0);
  38464. }
  38465. function _fgets($0,$1,$2) {
  38466. $0 = $0|0;
  38467. $1 = $1|0;
  38468. $2 = $2|0;
  38469. 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;
  38470. 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;
  38471. 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;
  38472. var $sext$mask = 0, label = 0, sp = 0;
  38473. sp = STACKTOP;
  38474. $3 = ((($2)) + 76|0);
  38475. $4 = HEAP32[$3>>2]|0;
  38476. $5 = ($4|0)>(-1);
  38477. if ($5) {
  38478. $6 = (___lockfile($2)|0);
  38479. $17 = $6;
  38480. } else {
  38481. $17 = 0;
  38482. }
  38483. $7 = (($1) + -1)|0;
  38484. $8 = ($1|0)<(2);
  38485. $9 = ($7|0)!=(0);
  38486. if ($8) {
  38487. $10 = ((($2)) + 74|0);
  38488. $11 = HEAP8[$10>>0]|0;
  38489. $12 = $11 << 24 >> 24;
  38490. $13 = (($12) + 255)|0;
  38491. $14 = $13 | $12;
  38492. $15 = $14&255;
  38493. HEAP8[$10>>0] = $15;
  38494. $16 = ($17|0)==(0);
  38495. if (!($16)) {
  38496. ___unlockfile($2);
  38497. }
  38498. if ($9) {
  38499. $$0 = 0;
  38500. } else {
  38501. HEAP8[$0>>0] = 0;
  38502. $$0 = $0;
  38503. }
  38504. } else {
  38505. L11: do {
  38506. if ($9) {
  38507. $18 = ((($2)) + 4|0);
  38508. $19 = ((($2)) + 8|0);
  38509. $$063 = $7;$$064 = $0;
  38510. while(1) {
  38511. $20 = HEAP32[$18>>2]|0;
  38512. $21 = HEAP32[$19>>2]|0;
  38513. $22 = $20;
  38514. $23 = (($21) - ($22))|0;
  38515. $24 = (_memchr($20,10,$23)|0);
  38516. $25 = ($24|0)==(0|0);
  38517. $26 = $24;
  38518. $27 = (1 - ($22))|0;
  38519. $28 = (($27) + ($26))|0;
  38520. $29 = $25 ? $23 : $28;
  38521. $30 = ($29>>>0)<($$063>>>0);
  38522. $31 = $30 ? $29 : $$063;
  38523. _memcpy(($$064|0),($20|0),($31|0))|0;
  38524. $32 = HEAP32[$18>>2]|0;
  38525. $33 = (($32) + ($31)|0);
  38526. HEAP32[$18>>2] = $33;
  38527. $34 = (($$064) + ($31)|0);
  38528. $35 = (($$063) - ($31))|0;
  38529. $36 = ($35|0)!=(0);
  38530. $or$cond = $25 & $36;
  38531. if (!($or$cond)) {
  38532. $$1 = $34;
  38533. label = 17;
  38534. break L11;
  38535. }
  38536. $37 = HEAP32[$19>>2]|0;
  38537. $38 = ($33>>>0)<($37>>>0);
  38538. if ($38) {
  38539. $39 = ((($33)) + 1|0);
  38540. HEAP32[$18>>2] = $39;
  38541. $40 = HEAP8[$33>>0]|0;
  38542. $41 = $40&255;
  38543. $50 = $41;
  38544. } else {
  38545. $42 = (___uflow($2)|0);
  38546. $43 = ($42|0)<(0);
  38547. if ($43) {
  38548. break;
  38549. } else {
  38550. $50 = $42;
  38551. }
  38552. }
  38553. $48 = (($35) + -1)|0;
  38554. $49 = $50&255;
  38555. $51 = ((($34)) + 1|0);
  38556. HEAP8[$34>>0] = $49;
  38557. $sext$mask = $50 & 255;
  38558. $52 = ($sext$mask|0)!=(10);
  38559. $53 = ($48|0)!=(0);
  38560. $or$cond3 = $53 & $52;
  38561. if ($or$cond3) {
  38562. $$063 = $48;$$064 = $51;
  38563. } else {
  38564. $$1 = $51;
  38565. label = 17;
  38566. break L11;
  38567. }
  38568. }
  38569. $44 = ($34|0)==($0|0);
  38570. if ($44) {
  38571. $$06266 = 0;
  38572. } else {
  38573. $45 = HEAP32[$2>>2]|0;
  38574. $46 = $45 & 16;
  38575. $47 = ($46|0)==(0);
  38576. if ($47) {
  38577. $$06266 = 0;
  38578. } else {
  38579. $$1 = $34;
  38580. label = 17;
  38581. }
  38582. }
  38583. } else {
  38584. $$1 = $0;
  38585. label = 17;
  38586. }
  38587. } while(0);
  38588. if ((label|0) == 17) {
  38589. $54 = ($0|0)==(0|0);
  38590. if ($54) {
  38591. $$06266 = 0;
  38592. } else {
  38593. HEAP8[$$1>>0] = 0;
  38594. $$06266 = $0;
  38595. }
  38596. }
  38597. $55 = ($17|0)==(0);
  38598. if ($55) {
  38599. $$0 = $$06266;
  38600. } else {
  38601. ___unlockfile($2);
  38602. $$0 = $$06266;
  38603. }
  38604. }
  38605. return ($$0|0);
  38606. }
  38607. function _feof($0) {
  38608. $0 = $0|0;
  38609. 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;
  38610. sp = STACKTOP;
  38611. $1 = ((($0)) + 76|0);
  38612. $2 = HEAP32[$1>>2]|0;
  38613. $3 = ($2|0)>(-1);
  38614. if ($3) {
  38615. $6 = (___lockfile($0)|0);
  38616. $phitmp = ($6|0)==(0);
  38617. $7 = HEAP32[$0>>2]|0;
  38618. $8 = $7 >>> 4;
  38619. $$lobit = $8 & 1;
  38620. if ($phitmp) {
  38621. $$lobit9 = $$lobit;
  38622. } else {
  38623. ___unlockfile($0);
  38624. $$lobit9 = $$lobit;
  38625. }
  38626. } else {
  38627. $4 = HEAP32[$0>>2]|0;
  38628. $5 = $4 >>> 4;
  38629. $$lobit8 = $5 & 1;
  38630. $$lobit9 = $$lobit8;
  38631. }
  38632. return ($$lobit9|0);
  38633. }
  38634. function _fscanf($0,$1,$varargs) {
  38635. $0 = $0|0;
  38636. $1 = $1|0;
  38637. $varargs = $varargs|0;
  38638. var $2 = 0, $3 = 0, label = 0, sp = 0;
  38639. sp = STACKTOP;
  38640. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  38641. $2 = sp;
  38642. HEAP32[$2>>2] = $varargs;
  38643. $3 = (_vfscanf($0,$1,$2)|0);
  38644. STACKTOP = sp;return ($3|0);
  38645. }
  38646. function _vfscanf($0,$1,$2) {
  38647. $0 = $0|0;
  38648. $1 = $1|0;
  38649. $2 = $2|0;
  38650. 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;
  38651. 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;
  38652. 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;
  38653. 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;
  38654. 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;
  38655. 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;
  38656. 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;
  38657. 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;
  38658. 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;
  38659. 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;
  38660. 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;
  38661. 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;
  38662. 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;
  38663. 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;
  38664. 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;
  38665. 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;
  38666. 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;
  38667. 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;
  38668. 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;
  38669. 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;
  38670. 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;
  38671. sp = STACKTOP;
  38672. STACKTOP = STACKTOP + 288|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(288|0);
  38673. $3 = sp + 8|0;
  38674. $4 = sp + 17|0;
  38675. $5 = sp;
  38676. $6 = sp + 16|0;
  38677. $7 = ((($0)) + 76|0);
  38678. $8 = HEAP32[$7>>2]|0;
  38679. $9 = ($8|0)>(-1);
  38680. if ($9) {
  38681. $10 = (___lockfile($0)|0);
  38682. $306 = $10;
  38683. } else {
  38684. $306 = 0;
  38685. }
  38686. $11 = HEAP8[$1>>0]|0;
  38687. $12 = ($11<<24>>24)==(0);
  38688. L4: do {
  38689. if ($12) {
  38690. $$3291 = 0;
  38691. } else {
  38692. $13 = ((($0)) + 4|0);
  38693. $14 = ((($0)) + 100|0);
  38694. $15 = ((($0)) + 108|0);
  38695. $16 = ((($0)) + 8|0);
  38696. $17 = ((($4)) + 10|0);
  38697. $18 = ((($4)) + 33|0);
  38698. $$sroa$2$0$$sroa_idx13 = ((($3)) + 4|0);
  38699. $19 = ((($4)) + 46|0);
  38700. $20 = ((($4)) + 94|0);
  38701. $21 = ((($4)) + 1|0);
  38702. $22 = ((($4)) + 1|0);
  38703. $$0273429 = $1;$$0283428 = 0;$$0288425 = 0;$$0305423 = 0;$102 = 0;$24 = $11;
  38704. L6: while(1) {
  38705. $23 = $24&255;
  38706. $25 = (_isspace($23)|0);
  38707. $26 = ($25|0)==(0);
  38708. L8: do {
  38709. if ($26) {
  38710. $53 = ($24<<24>>24)==(37);
  38711. L10: do {
  38712. if ($53) {
  38713. $54 = ((($$0273429)) + 1|0);
  38714. $55 = HEAP8[$54>>0]|0;
  38715. L12: do {
  38716. switch ($55<<24>>24) {
  38717. case 37: {
  38718. break L10;
  38719. break;
  38720. }
  38721. case 42: {
  38722. $76 = ((($$0273429)) + 2|0);
  38723. $$0293 = 0;$$2275 = $76;
  38724. break;
  38725. }
  38726. default: {
  38727. $77 = $55&255;
  38728. $isdigittmp = (($77) + -48)|0;
  38729. $isdigit = ($isdigittmp>>>0)<(10);
  38730. if ($isdigit) {
  38731. $78 = ((($$0273429)) + 2|0);
  38732. $79 = HEAP8[$78>>0]|0;
  38733. $80 = ($79<<24>>24)==(36);
  38734. if ($80) {
  38735. $81 = (_arg_n($2,$isdigittmp)|0);
  38736. $82 = ((($$0273429)) + 3|0);
  38737. $$0293 = $81;$$2275 = $82;
  38738. break L12;
  38739. }
  38740. }
  38741. $arglist_current = HEAP32[$2>>2]|0;
  38742. $83 = $arglist_current;
  38743. $84 = ((0) + 4|0);
  38744. $expanded1 = $84;
  38745. $expanded = (($expanded1) - 1)|0;
  38746. $85 = (($83) + ($expanded))|0;
  38747. $86 = ((0) + 4|0);
  38748. $expanded5 = $86;
  38749. $expanded4 = (($expanded5) - 1)|0;
  38750. $expanded3 = $expanded4 ^ -1;
  38751. $87 = $85 & $expanded3;
  38752. $88 = $87;
  38753. $89 = HEAP32[$88>>2]|0;
  38754. $arglist_next = ((($88)) + 4|0);
  38755. HEAP32[$2>>2] = $arglist_next;
  38756. $$0293 = $89;$$2275 = $54;
  38757. }
  38758. }
  38759. } while(0);
  38760. $90 = HEAP8[$$2275>>0]|0;
  38761. $91 = $90&255;
  38762. $isdigittmp315414 = (($91) + -48)|0;
  38763. $isdigit316415 = ($isdigittmp315414>>>0)<(10);
  38764. if ($isdigit316415) {
  38765. $$0266417 = 0;$$3416 = $$2275;$95 = $91;
  38766. while(1) {
  38767. $92 = ($$0266417*10)|0;
  38768. $93 = (($92) + -48)|0;
  38769. $94 = (($93) + ($95))|0;
  38770. $96 = ((($$3416)) + 1|0);
  38771. $97 = HEAP8[$96>>0]|0;
  38772. $98 = $97&255;
  38773. $isdigittmp315 = (($98) + -48)|0;
  38774. $isdigit316 = ($isdigittmp315>>>0)<(10);
  38775. if ($isdigit316) {
  38776. $$0266417 = $94;$$3416 = $96;$95 = $98;
  38777. } else {
  38778. $$0266$lcssa = $94;$$3$lcssa = $96;$$lcssa355 = $97;
  38779. break;
  38780. }
  38781. }
  38782. } else {
  38783. $$0266$lcssa = 0;$$3$lcssa = $$2275;$$lcssa355 = $90;
  38784. }
  38785. $99 = ($$lcssa355<<24>>24)==(109);
  38786. $100 = ($$0293|0)!=(0|0);
  38787. $101 = ((($$3$lcssa)) + 1|0);
  38788. $$$0305 = $99 ? 0 : $$0305423;
  38789. $$327 = $99 ? 0 : $102;
  38790. $$$3 = $99 ? $101 : $$3$lcssa;
  38791. $narrow = $100 & $99;
  38792. $103 = ((($$$3)) + 1|0);
  38793. $104 = HEAP8[$$$3>>0]|0;
  38794. switch ($104<<24>>24) {
  38795. case 104: {
  38796. $105 = HEAP8[$103>>0]|0;
  38797. $106 = ($105<<24>>24)==(104);
  38798. $107 = ((($$$3)) + 2|0);
  38799. $$319 = $106 ? $107 : $103;
  38800. $$320 = $106 ? -2 : -1;
  38801. $$0268 = $$320;$$5 = $$319;
  38802. break;
  38803. }
  38804. case 108: {
  38805. $108 = HEAP8[$103>>0]|0;
  38806. $109 = ($108<<24>>24)==(108);
  38807. $110 = ((($$$3)) + 2|0);
  38808. $$321 = $109 ? $110 : $103;
  38809. $$322 = $109 ? 3 : 1;
  38810. $$0268 = $$322;$$5 = $$321;
  38811. break;
  38812. }
  38813. case 106: {
  38814. $$0268 = 3;$$5 = $103;
  38815. break;
  38816. }
  38817. case 116: case 122: {
  38818. $$0268 = 1;$$5 = $103;
  38819. break;
  38820. }
  38821. case 76: {
  38822. $$0268 = 2;$$5 = $103;
  38823. break;
  38824. }
  38825. 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: {
  38826. $$0268 = 0;$$5 = $$$3;
  38827. break;
  38828. }
  38829. default: {
  38830. $$7312 = $$$0305;$309 = $$327;$narrow469 = $narrow;
  38831. label = 137;
  38832. break L6;
  38833. }
  38834. }
  38835. $111 = HEAP8[$$5>>0]|0;
  38836. $112 = $111&255;
  38837. $113 = $112 & 47;
  38838. $114 = ($113|0)==(3);
  38839. $115 = $112 | 32;
  38840. $$ = $114 ? $115 : $112;
  38841. $$$0268 = $114 ? 1 : $$0268;
  38842. $trunc = $$&255;
  38843. switch ($trunc<<24>>24) {
  38844. case 99: {
  38845. $116 = ($$0266$lcssa|0)>(1);
  38846. $$$0266 = $116 ? $$0266$lcssa : 1;
  38847. $$1267 = $$$0266;$$1284 = $$0283428;
  38848. break;
  38849. }
  38850. case 91: {
  38851. $$1267 = $$0266$lcssa;$$1284 = $$0283428;
  38852. break;
  38853. }
  38854. case 110: {
  38855. $117 = ($$0283428|0)<(0);
  38856. $118 = $117 << 31 >> 31;
  38857. _store_int($$0293,$$$0268,$$0283428,$118);
  38858. $$11 = $$5;$$1289 = $$0288425;$$2285 = $$0283428;$$6311 = $$$0305;$307 = $$327;
  38859. break L8;
  38860. break;
  38861. }
  38862. default: {
  38863. ___shlim($0,0);
  38864. while(1) {
  38865. $119 = HEAP32[$13>>2]|0;
  38866. $120 = HEAP32[$14>>2]|0;
  38867. $121 = ($119>>>0)<($120>>>0);
  38868. if ($121) {
  38869. $122 = ((($119)) + 1|0);
  38870. HEAP32[$13>>2] = $122;
  38871. $123 = HEAP8[$119>>0]|0;
  38872. $124 = $123&255;
  38873. $126 = $124;
  38874. } else {
  38875. $125 = (___shgetc($0)|0);
  38876. $126 = $125;
  38877. }
  38878. $127 = (_isspace($126)|0);
  38879. $128 = ($127|0)==(0);
  38880. if ($128) {
  38881. break;
  38882. }
  38883. }
  38884. $129 = HEAP32[$14>>2]|0;
  38885. $130 = ($129|0)==(0|0);
  38886. if ($130) {
  38887. $$pre507 = HEAP32[$13>>2]|0;
  38888. $138 = $$pre507;
  38889. } else {
  38890. $131 = HEAP32[$13>>2]|0;
  38891. $132 = ((($131)) + -1|0);
  38892. HEAP32[$13>>2] = $132;
  38893. $133 = $132;
  38894. $138 = $133;
  38895. }
  38896. $134 = HEAP32[$15>>2]|0;
  38897. $135 = HEAP32[$16>>2]|0;
  38898. $136 = (($134) + ($$0283428))|0;
  38899. $137 = (($136) + ($138))|0;
  38900. $139 = (($137) - ($135))|0;
  38901. $$1267 = $$0266$lcssa;$$1284 = $139;
  38902. }
  38903. }
  38904. ___shlim($0,$$1267);
  38905. $140 = HEAP32[$13>>2]|0;
  38906. $141 = HEAP32[$14>>2]|0;
  38907. $142 = ($140>>>0)<($141>>>0);
  38908. if ($142) {
  38909. $143 = ((($140)) + 1|0);
  38910. HEAP32[$13>>2] = $143;
  38911. $147 = $141;
  38912. } else {
  38913. $144 = (___shgetc($0)|0);
  38914. $145 = ($144|0)<(0);
  38915. if ($145) {
  38916. $$7312 = $$$0305;$309 = $$327;$narrow469 = $narrow;
  38917. label = 137;
  38918. break L6;
  38919. }
  38920. $$pre509 = HEAP32[$14>>2]|0;
  38921. $147 = $$pre509;
  38922. }
  38923. $146 = ($147|0)==(0|0);
  38924. if (!($146)) {
  38925. $148 = HEAP32[$13>>2]|0;
  38926. $149 = ((($148)) + -1|0);
  38927. HEAP32[$13>>2] = $149;
  38928. }
  38929. L55: do {
  38930. switch ($trunc<<24>>24) {
  38931. case 91: case 99: case 115: {
  38932. $150 = ($$|0)==(99);
  38933. $151 = $$ | 16;
  38934. $152 = ($151|0)==(115);
  38935. L57: do {
  38936. if ($152) {
  38937. $153 = ($$|0)==(115);
  38938. _memset(($21|0),-1,256)|0;
  38939. HEAP8[$4>>0] = 0;
  38940. if ($153) {
  38941. HEAP8[$18>>0] = 0;
  38942. ;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;
  38943. $$9 = $$5;
  38944. } else {
  38945. $$9 = $$5;
  38946. }
  38947. } else {
  38948. $154 = ((($$5)) + 1|0);
  38949. $155 = HEAP8[$154>>0]|0;
  38950. $156 = ($155<<24>>24)==(94);
  38951. $157 = ((($$5)) + 2|0);
  38952. $$0292 = $156&1;
  38953. $$6 = $156 ? $157 : $154;
  38954. $158 = $156&1;
  38955. _memset(($22|0),($158|0),256)|0;
  38956. HEAP8[$4>>0] = 0;
  38957. $159 = HEAP8[$$6>>0]|0;
  38958. switch ($159<<24>>24) {
  38959. case 45: {
  38960. $$sink443 = $19;
  38961. label = 64;
  38962. break;
  38963. }
  38964. case 93: {
  38965. $$sink443 = $20;
  38966. label = 64;
  38967. break;
  38968. }
  38969. default: {
  38970. $$pre514 = $$0292 ^ 1;
  38971. $$pre515 = $$pre514&255;
  38972. $$7$ph = $$6;$$pre$phi516Z2D = $$pre515;
  38973. }
  38974. }
  38975. if ((label|0) == 64) {
  38976. label = 0;
  38977. $160 = ((($$6)) + 1|0);
  38978. $161 = $$0292 ^ 1;
  38979. $162 = $161&255;
  38980. HEAP8[$$sink443>>0] = $162;
  38981. $$7$ph = $160;$$pre$phi516Z2D = $162;
  38982. }
  38983. $$7 = $$7$ph;
  38984. while(1) {
  38985. $163 = HEAP8[$$7>>0]|0;
  38986. L69: do {
  38987. switch ($163<<24>>24) {
  38988. case 0: {
  38989. $$7312 = $$$0305;$309 = $$327;$narrow469 = $narrow;
  38990. label = 137;
  38991. break L6;
  38992. break;
  38993. }
  38994. case 93: {
  38995. $$9 = $$7;
  38996. break L57;
  38997. break;
  38998. }
  38999. case 45: {
  39000. $164 = ((($$7)) + 1|0);
  39001. $165 = HEAP8[$164>>0]|0;
  39002. switch ($165<<24>>24) {
  39003. case 93: case 0: {
  39004. $$8 = $$7;$176 = 45;
  39005. break L69;
  39006. break;
  39007. }
  39008. default: {
  39009. }
  39010. }
  39011. $166 = ((($$7)) + -1|0);
  39012. $167 = HEAP8[$166>>0]|0;
  39013. $168 = ($167&255)<($165&255);
  39014. if ($168) {
  39015. $169 = $167&255;
  39016. $$0286420 = $169;
  39017. while(1) {
  39018. $170 = (($$0286420) + 1)|0;
  39019. $171 = (($4) + ($170)|0);
  39020. HEAP8[$171>>0] = $$pre$phi516Z2D;
  39021. $172 = HEAP8[$164>>0]|0;
  39022. $173 = $172&255;
  39023. $174 = ($170|0)<($173|0);
  39024. if ($174) {
  39025. $$0286420 = $170;
  39026. } else {
  39027. $$8 = $164;$176 = $172;
  39028. break;
  39029. }
  39030. }
  39031. } else {
  39032. $$8 = $164;$176 = $165;
  39033. }
  39034. break;
  39035. }
  39036. default: {
  39037. $$8 = $$7;$176 = $163;
  39038. }
  39039. }
  39040. } while(0);
  39041. $175 = $176&255;
  39042. $177 = (($175) + 1)|0;
  39043. $178 = (($4) + ($177)|0);
  39044. HEAP8[$178>>0] = $$pre$phi516Z2D;
  39045. $179 = ((($$8)) + 1|0);
  39046. $$7 = $179;
  39047. }
  39048. }
  39049. } while(0);
  39050. $180 = (($$1267) + 1)|0;
  39051. $181 = $150 ? $180 : 31;
  39052. $182 = ($$$0268|0)==(1);
  39053. L77: do {
  39054. if ($182) {
  39055. if ($narrow) {
  39056. $183 = $181 << 2;
  39057. $184 = (_malloc($183)|0);
  39058. $185 = ($184|0)==(0|0);
  39059. if ($185) {
  39060. $$7312 = 0;$309 = 0;$narrow469 = 1;
  39061. label = 137;
  39062. break L6;
  39063. } else {
  39064. $311 = $184;
  39065. }
  39066. } else {
  39067. $311 = $$0293;
  39068. }
  39069. HEAP32[$3>>2] = 0;
  39070. HEAP32[$$sroa$2$0$$sroa_idx13>>2] = 0;
  39071. $$0276$ph = $181;$$0278$ph = 0;$$ph = $311;
  39072. L82: while(1) {
  39073. $186 = ($$ph|0)==(0|0);
  39074. $$0278$ph336 = $$0278$ph;
  39075. while(1) {
  39076. L86: while(1) {
  39077. $187 = HEAP32[$13>>2]|0;
  39078. $188 = HEAP32[$14>>2]|0;
  39079. $189 = ($187>>>0)<($188>>>0);
  39080. if ($189) {
  39081. $190 = ((($187)) + 1|0);
  39082. HEAP32[$13>>2] = $190;
  39083. $191 = HEAP8[$187>>0]|0;
  39084. $192 = $191&255;
  39085. $195 = $192;
  39086. } else {
  39087. $193 = (___shgetc($0)|0);
  39088. $195 = $193;
  39089. }
  39090. $194 = (($195) + 1)|0;
  39091. $196 = (($4) + ($194)|0);
  39092. $197 = HEAP8[$196>>0]|0;
  39093. $198 = ($197<<24>>24)==(0);
  39094. if ($198) {
  39095. break L82;
  39096. }
  39097. $199 = $195&255;
  39098. HEAP8[$6>>0] = $199;
  39099. $200 = (_mbrtowc($5,$6,1,$3)|0);
  39100. switch ($200|0) {
  39101. case -1: {
  39102. $$7312 = 0;$309 = $$ph;$narrow469 = $narrow;
  39103. label = 137;
  39104. break L6;
  39105. break;
  39106. }
  39107. case -2: {
  39108. break;
  39109. }
  39110. default: {
  39111. break L86;
  39112. }
  39113. }
  39114. }
  39115. if ($186) {
  39116. $$1279 = $$0278$ph336;
  39117. } else {
  39118. $201 = (($$ph) + ($$0278$ph336<<2)|0);
  39119. $202 = (($$0278$ph336) + 1)|0;
  39120. $203 = HEAP32[$5>>2]|0;
  39121. HEAP32[$201>>2] = $203;
  39122. $$1279 = $202;
  39123. }
  39124. $204 = ($$1279|0)==($$0276$ph|0);
  39125. $or$cond = $narrow & $204;
  39126. if ($or$cond) {
  39127. break;
  39128. } else {
  39129. $$0278$ph336 = $$1279;
  39130. }
  39131. }
  39132. $factor331 = $$0276$ph << 1;
  39133. $205 = $factor331 | 1;
  39134. $206 = $205 << 2;
  39135. $207 = (_realloc($$ph,$206)|0);
  39136. $208 = ($207|0)==(0|0);
  39137. if ($208) {
  39138. $$7312 = 0;$309 = $$ph;$narrow469 = 1;
  39139. label = 137;
  39140. break L6;
  39141. } else {
  39142. $$0278$ph$phi = $$0276$ph;$$0276$ph = $205;$$ph = $207;$$0278$ph = $$0278$ph$phi;
  39143. }
  39144. }
  39145. $209 = (_mbsinit($3)|0);
  39146. $210 = ($209|0)==(0);
  39147. if ($210) {
  39148. $$7312 = 0;$309 = $$ph;$narrow469 = $narrow;
  39149. label = 137;
  39150. break L6;
  39151. } else {
  39152. $$4282 = $$0278$ph336;$$4309 = 0;$$5299 = $$ph;$312 = $$ph;
  39153. }
  39154. } else {
  39155. if ($narrow) {
  39156. $211 = (_malloc($181)|0);
  39157. $212 = ($211|0)==(0|0);
  39158. if ($212) {
  39159. $$7312 = 0;$309 = 0;$narrow469 = 1;
  39160. label = 137;
  39161. break L6;
  39162. } else {
  39163. $$1277$ph = $181;$$2280$ph = 0;$$2307$ph = $211;
  39164. }
  39165. while(1) {
  39166. $$2280 = $$2280$ph;
  39167. while(1) {
  39168. $213 = HEAP32[$13>>2]|0;
  39169. $214 = HEAP32[$14>>2]|0;
  39170. $215 = ($213>>>0)<($214>>>0);
  39171. if ($215) {
  39172. $216 = ((($213)) + 1|0);
  39173. HEAP32[$13>>2] = $216;
  39174. $217 = HEAP8[$213>>0]|0;
  39175. $218 = $217&255;
  39176. $221 = $218;
  39177. } else {
  39178. $219 = (___shgetc($0)|0);
  39179. $221 = $219;
  39180. }
  39181. $220 = (($221) + 1)|0;
  39182. $222 = (($4) + ($220)|0);
  39183. $223 = HEAP8[$222>>0]|0;
  39184. $224 = ($223<<24>>24)==(0);
  39185. if ($224) {
  39186. $$4282 = $$2280;$$4309 = $$2307$ph;$$5299 = 0;$312 = 0;
  39187. break L77;
  39188. }
  39189. $225 = $221&255;
  39190. $226 = (($$2280) + 1)|0;
  39191. $227 = (($$2307$ph) + ($$2280)|0);
  39192. HEAP8[$227>>0] = $225;
  39193. $228 = ($226|0)==($$1277$ph|0);
  39194. if ($228) {
  39195. break;
  39196. } else {
  39197. $$2280 = $226;
  39198. }
  39199. }
  39200. $factor = $$1277$ph << 1;
  39201. $229 = $factor | 1;
  39202. $230 = (_realloc($$2307$ph,$229)|0);
  39203. $231 = ($230|0)==(0|0);
  39204. if ($231) {
  39205. $$7312 = $$2307$ph;$309 = 0;$narrow469 = 1;
  39206. label = 137;
  39207. break L6;
  39208. } else {
  39209. $$2280$ph$phi = $$1277$ph;$$1277$ph = $229;$$2307$ph = $230;$$2280$ph = $$2280$ph$phi;
  39210. }
  39211. }
  39212. }
  39213. $232 = ($$0293|0)==(0|0);
  39214. if ($232) {
  39215. $250 = $147;
  39216. while(1) {
  39217. $248 = HEAP32[$13>>2]|0;
  39218. $249 = ($248>>>0)<($250>>>0);
  39219. if ($249) {
  39220. $251 = ((($248)) + 1|0);
  39221. HEAP32[$13>>2] = $251;
  39222. $252 = HEAP8[$248>>0]|0;
  39223. $253 = $252&255;
  39224. $256 = $253;
  39225. } else {
  39226. $254 = (___shgetc($0)|0);
  39227. $256 = $254;
  39228. }
  39229. $255 = (($256) + 1)|0;
  39230. $257 = (($4) + ($255)|0);
  39231. $258 = HEAP8[$257>>0]|0;
  39232. $259 = ($258<<24>>24)==(0);
  39233. if ($259) {
  39234. $$4282 = 0;$$4309 = 0;$$5299 = 0;$312 = 0;
  39235. break L77;
  39236. }
  39237. $$pre512 = HEAP32[$14>>2]|0;
  39238. $250 = $$pre512;
  39239. }
  39240. } else {
  39241. $$3281 = 0;$235 = $147;
  39242. while(1) {
  39243. $233 = HEAP32[$13>>2]|0;
  39244. $234 = ($233>>>0)<($235>>>0);
  39245. if ($234) {
  39246. $236 = ((($233)) + 1|0);
  39247. HEAP32[$13>>2] = $236;
  39248. $237 = HEAP8[$233>>0]|0;
  39249. $238 = $237&255;
  39250. $241 = $238;
  39251. } else {
  39252. $239 = (___shgetc($0)|0);
  39253. $241 = $239;
  39254. }
  39255. $240 = (($241) + 1)|0;
  39256. $242 = (($4) + ($240)|0);
  39257. $243 = HEAP8[$242>>0]|0;
  39258. $244 = ($243<<24>>24)==(0);
  39259. if ($244) {
  39260. $$4282 = $$3281;$$4309 = $$0293;$$5299 = 0;$312 = 0;
  39261. break L77;
  39262. }
  39263. $245 = $241&255;
  39264. $246 = (($$3281) + 1)|0;
  39265. $247 = (($$0293) + ($$3281)|0);
  39266. HEAP8[$247>>0] = $245;
  39267. $$pre511 = HEAP32[$14>>2]|0;
  39268. $$3281 = $246;$235 = $$pre511;
  39269. }
  39270. }
  39271. }
  39272. } while(0);
  39273. $260 = HEAP32[$14>>2]|0;
  39274. $261 = ($260|0)==(0|0);
  39275. if ($261) {
  39276. $$pre513 = HEAP32[$13>>2]|0;
  39277. $268 = $$pre513;
  39278. } else {
  39279. $262 = HEAP32[$13>>2]|0;
  39280. $263 = ((($262)) + -1|0);
  39281. HEAP32[$13>>2] = $263;
  39282. $264 = $263;
  39283. $268 = $264;
  39284. }
  39285. $265 = HEAP32[$15>>2]|0;
  39286. $266 = HEAP32[$16>>2]|0;
  39287. $267 = (($268) - ($266))|0;
  39288. $269 = (($267) + ($265))|0;
  39289. $270 = ($269|0)==(0);
  39290. if ($270) {
  39291. $$9314$ph = $$4309;$$ph353 = $312;
  39292. label = 139;
  39293. break L6;
  39294. }
  39295. $$not = $150 ^ 1;
  39296. $271 = ($269|0)==($$1267|0);
  39297. $or$cond318 = $271 | $$not;
  39298. if (!($or$cond318)) {
  39299. $$9314$ph = $$4309;$$ph353 = $312;
  39300. label = 139;
  39301. break L6;
  39302. }
  39303. do {
  39304. if ($narrow) {
  39305. if ($182) {
  39306. HEAP32[$$0293>>2] = $$5299;
  39307. break;
  39308. } else {
  39309. HEAP32[$$0293>>2] = $$4309;
  39310. break;
  39311. }
  39312. }
  39313. } while(0);
  39314. if ($150) {
  39315. $$10 = $$9;$$5310 = $$4309;$310 = $312;
  39316. } else {
  39317. $272 = ($$5299|0)==(0|0);
  39318. if (!($272)) {
  39319. $273 = (($$5299) + ($$4282<<2)|0);
  39320. HEAP32[$273>>2] = 0;
  39321. }
  39322. $274 = ($$4309|0)==(0|0);
  39323. if ($274) {
  39324. $$10 = $$9;$$5310 = 0;$310 = $312;
  39325. break L55;
  39326. }
  39327. $275 = (($$4309) + ($$4282)|0);
  39328. HEAP8[$275>>0] = 0;
  39329. $$10 = $$9;$$5310 = $$4309;$310 = $312;
  39330. }
  39331. break;
  39332. }
  39333. case 120: case 88: case 112: {
  39334. $$0272 = 16;
  39335. label = 125;
  39336. break;
  39337. }
  39338. case 111: {
  39339. $$0272 = 8;
  39340. label = 125;
  39341. break;
  39342. }
  39343. case 117: case 100: {
  39344. $$0272 = 10;
  39345. label = 125;
  39346. break;
  39347. }
  39348. case 105: {
  39349. $$0272 = 0;
  39350. label = 125;
  39351. break;
  39352. }
  39353. case 71: case 103: case 70: case 102: case 69: case 101: case 65: case 97: {
  39354. $285 = (+___floatscan($0,$$$0268,0));
  39355. $286 = HEAP32[$15>>2]|0;
  39356. $287 = HEAP32[$13>>2]|0;
  39357. $288 = HEAP32[$16>>2]|0;
  39358. $289 = (($288) - ($287))|0;
  39359. $290 = ($286|0)==($289|0);
  39360. if ($290) {
  39361. $$9314$ph = $$$0305;$$ph353 = $$327;
  39362. label = 139;
  39363. break L6;
  39364. }
  39365. $291 = ($$0293|0)==(0|0);
  39366. if ($291) {
  39367. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  39368. } else {
  39369. switch ($$$0268|0) {
  39370. case 0: {
  39371. $292 = $285;
  39372. HEAPF32[$$0293>>2] = $292;
  39373. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  39374. break L55;
  39375. break;
  39376. }
  39377. case 1: {
  39378. HEAPF64[$$0293>>3] = $285;
  39379. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  39380. break L55;
  39381. break;
  39382. }
  39383. case 2: {
  39384. HEAPF64[$$0293>>3] = $285;
  39385. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  39386. break L55;
  39387. break;
  39388. }
  39389. default: {
  39390. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  39391. break L55;
  39392. }
  39393. }
  39394. }
  39395. break;
  39396. }
  39397. default: {
  39398. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  39399. }
  39400. }
  39401. } while(0);
  39402. do {
  39403. if ((label|0) == 125) {
  39404. label = 0;
  39405. $276 = (___intscan($0,$$0272,0,-1,-1)|0);
  39406. $277 = tempRet0;
  39407. $278 = HEAP32[$15>>2]|0;
  39408. $279 = HEAP32[$13>>2]|0;
  39409. $280 = HEAP32[$16>>2]|0;
  39410. $281 = (($280) - ($279))|0;
  39411. $282 = ($278|0)==($281|0);
  39412. if ($282) {
  39413. $$9314$ph = $$$0305;$$ph353 = $$327;
  39414. label = 139;
  39415. break L6;
  39416. }
  39417. $283 = ($$|0)==(112);
  39418. $or$cond3 = $100 & $283;
  39419. if ($or$cond3) {
  39420. $284 = $276;
  39421. HEAP32[$$0293>>2] = $284;
  39422. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  39423. break;
  39424. } else {
  39425. _store_int($$0293,$$$0268,$276,$277);
  39426. $$10 = $$5;$$5310 = $$$0305;$310 = $$327;
  39427. break;
  39428. }
  39429. }
  39430. } while(0);
  39431. $293 = HEAP32[$15>>2]|0;
  39432. $294 = HEAP32[$13>>2]|0;
  39433. $295 = HEAP32[$16>>2]|0;
  39434. $296 = (($293) + ($$1284))|0;
  39435. $297 = (($296) + ($294))|0;
  39436. $298 = (($297) - ($295))|0;
  39437. $299 = $100&1;
  39438. $$0288$ = (($299) + ($$0288425))|0;
  39439. $$11 = $$10;$$1289 = $$0288$;$$2285 = $298;$$6311 = $$5310;$307 = $310;
  39440. break L8;
  39441. }
  39442. } while(0);
  39443. $56 = $53&1;
  39444. $57 = (($$0273429) + ($56)|0);
  39445. ___shlim($0,0);
  39446. $58 = HEAP32[$13>>2]|0;
  39447. $59 = HEAP32[$14>>2]|0;
  39448. $60 = ($58>>>0)<($59>>>0);
  39449. if ($60) {
  39450. $61 = ((($58)) + 1|0);
  39451. HEAP32[$13>>2] = $61;
  39452. $62 = HEAP8[$58>>0]|0;
  39453. $63 = $62&255;
  39454. $68 = $63;
  39455. } else {
  39456. $64 = (___shgetc($0)|0);
  39457. $68 = $64;
  39458. }
  39459. $65 = HEAP8[$57>>0]|0;
  39460. $66 = $65&255;
  39461. $67 = ($68|0)==($66|0);
  39462. if (!($67)) {
  39463. label = 22;
  39464. break L6;
  39465. }
  39466. $75 = (($$0283428) + 1)|0;
  39467. $$11 = $57;$$1289 = $$0288425;$$2285 = $75;$$6311 = $$0305423;$307 = $102;
  39468. } else {
  39469. $$1274 = $$0273429;
  39470. while(1) {
  39471. $27 = ((($$1274)) + 1|0);
  39472. $28 = HEAP8[$27>>0]|0;
  39473. $29 = $28&255;
  39474. $30 = (_isspace($29)|0);
  39475. $31 = ($30|0)==(0);
  39476. if ($31) {
  39477. break;
  39478. } else {
  39479. $$1274 = $27;
  39480. }
  39481. }
  39482. ___shlim($0,0);
  39483. while(1) {
  39484. $32 = HEAP32[$13>>2]|0;
  39485. $33 = HEAP32[$14>>2]|0;
  39486. $34 = ($32>>>0)<($33>>>0);
  39487. if ($34) {
  39488. $35 = ((($32)) + 1|0);
  39489. HEAP32[$13>>2] = $35;
  39490. $36 = HEAP8[$32>>0]|0;
  39491. $37 = $36&255;
  39492. $39 = $37;
  39493. } else {
  39494. $38 = (___shgetc($0)|0);
  39495. $39 = $38;
  39496. }
  39497. $40 = (_isspace($39)|0);
  39498. $41 = ($40|0)==(0);
  39499. if ($41) {
  39500. break;
  39501. }
  39502. }
  39503. $42 = HEAP32[$14>>2]|0;
  39504. $43 = ($42|0)==(0|0);
  39505. if ($43) {
  39506. $$pre = HEAP32[$13>>2]|0;
  39507. $51 = $$pre;
  39508. } else {
  39509. $44 = HEAP32[$13>>2]|0;
  39510. $45 = ((($44)) + -1|0);
  39511. HEAP32[$13>>2] = $45;
  39512. $46 = $45;
  39513. $51 = $46;
  39514. }
  39515. $47 = HEAP32[$15>>2]|0;
  39516. $48 = HEAP32[$16>>2]|0;
  39517. $49 = (($47) + ($$0283428))|0;
  39518. $50 = (($49) + ($51))|0;
  39519. $52 = (($50) - ($48))|0;
  39520. $$11 = $$1274;$$1289 = $$0288425;$$2285 = $52;$$6311 = $$0305423;$307 = $102;
  39521. }
  39522. } while(0);
  39523. $300 = ((($$11)) + 1|0);
  39524. $301 = HEAP8[$300>>0]|0;
  39525. $302 = ($301<<24>>24)==(0);
  39526. if ($302) {
  39527. $$3291 = $$1289;
  39528. break L4;
  39529. } else {
  39530. $$0273429 = $300;$$0283428 = $$2285;$$0288425 = $$1289;$$0305423 = $$6311;$102 = $307;$24 = $301;
  39531. }
  39532. }
  39533. if ((label|0) == 22) {
  39534. $69 = HEAP32[$14>>2]|0;
  39535. $70 = ($69|0)==(0|0);
  39536. if (!($70)) {
  39537. $71 = HEAP32[$13>>2]|0;
  39538. $72 = ((($71)) + -1|0);
  39539. HEAP32[$13>>2] = $72;
  39540. }
  39541. $73 = ($68|0)>(-1);
  39542. $74 = ($$0288425|0)!=(0);
  39543. $or$cond5 = $74 | $73;
  39544. if ($or$cond5) {
  39545. $$3291 = $$0288425;
  39546. break;
  39547. } else {
  39548. $$1271 = 0;$$8313 = $$0305423;$308 = $102;
  39549. label = 138;
  39550. }
  39551. }
  39552. else if ((label|0) == 137) {
  39553. $$328$le441 = $narrow469&1;
  39554. $$old4 = ($$0288425|0)==(0);
  39555. if ($$old4) {
  39556. $$1271 = $$328$le441;$$8313 = $$7312;$308 = $309;
  39557. label = 138;
  39558. } else {
  39559. $$2 = $$328$le441;$$2290 = $$0288425;$$9314 = $$7312;$304 = $309;
  39560. }
  39561. }
  39562. else if ((label|0) == 139) {
  39563. $$328$le439 = $narrow&1;
  39564. $$2 = $$328$le439;$$2290 = $$0288425;$$9314 = $$9314$ph;$304 = $$ph353;
  39565. }
  39566. if ((label|0) == 138) {
  39567. $$2 = $$1271;$$2290 = -1;$$9314 = $$8313;$304 = $308;
  39568. }
  39569. $303 = ($$2|0)==(0);
  39570. if ($303) {
  39571. $$3291 = $$2290;
  39572. } else {
  39573. _free($$9314);
  39574. _free($304);
  39575. $$3291 = $$2290;
  39576. }
  39577. }
  39578. } while(0);
  39579. $305 = ($306|0)==(0);
  39580. if (!($305)) {
  39581. ___unlockfile($0);
  39582. }
  39583. STACKTOP = sp;return ($$3291|0);
  39584. }
  39585. function _arg_n($0,$1) {
  39586. $0 = $0|0;
  39587. $1 = $1|0;
  39588. 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;
  39589. var sp = 0;
  39590. sp = STACKTOP;
  39591. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  39592. $2 = sp;
  39593. $vacopy_currentptr = HEAP32[$0>>2]|0;
  39594. HEAP32[$2>>2] = $vacopy_currentptr;
  39595. $$0 = $1;
  39596. while(1) {
  39597. $3 = ($$0>>>0)>(1);
  39598. $arglist_current = HEAP32[$2>>2]|0;
  39599. $4 = $arglist_current;
  39600. $5 = ((0) + 4|0);
  39601. $expanded1 = $5;
  39602. $expanded = (($expanded1) - 1)|0;
  39603. $6 = (($4) + ($expanded))|0;
  39604. $7 = ((0) + 4|0);
  39605. $expanded5 = $7;
  39606. $expanded4 = (($expanded5) - 1)|0;
  39607. $expanded3 = $expanded4 ^ -1;
  39608. $8 = $6 & $expanded3;
  39609. $9 = $8;
  39610. $10 = HEAP32[$9>>2]|0;
  39611. $arglist_next = ((($9)) + 4|0);
  39612. HEAP32[$2>>2] = $arglist_next;
  39613. $11 = (($$0) + -1)|0;
  39614. if ($3) {
  39615. $$0 = $11;
  39616. } else {
  39617. break;
  39618. }
  39619. }
  39620. STACKTOP = sp;return ($10|0);
  39621. }
  39622. function _store_int($0,$1,$2,$3) {
  39623. $0 = $0|0;
  39624. $1 = $1|0;
  39625. $2 = $2|0;
  39626. $3 = $3|0;
  39627. var $10 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  39628. sp = STACKTOP;
  39629. $4 = ($0|0)==(0|0);
  39630. L1: do {
  39631. if (!($4)) {
  39632. switch ($1|0) {
  39633. case -2: {
  39634. $5 = $2&255;
  39635. HEAP8[$0>>0] = $5;
  39636. break L1;
  39637. break;
  39638. }
  39639. case -1: {
  39640. $6 = $2&65535;
  39641. HEAP16[$0>>1] = $6;
  39642. break L1;
  39643. break;
  39644. }
  39645. case 0: {
  39646. HEAP32[$0>>2] = $2;
  39647. break L1;
  39648. break;
  39649. }
  39650. case 1: {
  39651. HEAP32[$0>>2] = $2;
  39652. break L1;
  39653. break;
  39654. }
  39655. case 3: {
  39656. $7 = $0;
  39657. $8 = $7;
  39658. HEAP32[$8>>2] = $2;
  39659. $9 = (($7) + 4)|0;
  39660. $10 = $9;
  39661. HEAP32[$10>>2] = $3;
  39662. break L1;
  39663. break;
  39664. }
  39665. default: {
  39666. break L1;
  39667. }
  39668. }
  39669. }
  39670. } while(0);
  39671. return;
  39672. }
  39673. function _mbsinit($0) {
  39674. $0 = $0|0;
  39675. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  39676. sp = STACKTOP;
  39677. $1 = ($0|0)==(0|0);
  39678. if ($1) {
  39679. $5 = 1;
  39680. } else {
  39681. $2 = HEAP32[$0>>2]|0;
  39682. $3 = ($2|0)==(0);
  39683. $5 = $3;
  39684. }
  39685. $4 = $5&1;
  39686. return ($4|0);
  39687. }
  39688. function _fseek($0,$1,$2) {
  39689. $0 = $0|0;
  39690. $1 = $1|0;
  39691. $2 = $2|0;
  39692. var $3 = 0, label = 0, sp = 0;
  39693. sp = STACKTOP;
  39694. $3 = (___fseeko($0,$1,$2)|0);
  39695. return ($3|0);
  39696. }
  39697. function ___fseeko($0,$1,$2) {
  39698. $0 = $0|0;
  39699. $1 = $1|0;
  39700. $2 = $2|0;
  39701. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $phitmp = 0, label = 0, sp = 0;
  39702. sp = STACKTOP;
  39703. $3 = ((($0)) + 76|0);
  39704. $4 = HEAP32[$3>>2]|0;
  39705. $5 = ($4|0)>(-1);
  39706. if ($5) {
  39707. $7 = (___lockfile($0)|0);
  39708. $phitmp = ($7|0)==(0);
  39709. $8 = (___fseeko_unlocked($0,$1,$2)|0);
  39710. if ($phitmp) {
  39711. $9 = $8;
  39712. } else {
  39713. ___unlockfile($0);
  39714. $9 = $8;
  39715. }
  39716. } else {
  39717. $6 = (___fseeko_unlocked($0,$1,$2)|0);
  39718. $9 = $6;
  39719. }
  39720. return ($9|0);
  39721. }
  39722. function ___fseeko_unlocked($0,$1,$2) {
  39723. $0 = $0|0;
  39724. $1 = $1|0;
  39725. $2 = $2|0;
  39726. 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;
  39727. var $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  39728. sp = STACKTOP;
  39729. $3 = ($2|0)==(1);
  39730. if ($3) {
  39731. $4 = ((($0)) + 8|0);
  39732. $5 = HEAP32[$4>>2]|0;
  39733. $6 = ((($0)) + 4|0);
  39734. $7 = HEAP32[$6>>2]|0;
  39735. $8 = (($1) - ($5))|0;
  39736. $9 = (($8) + ($7))|0;
  39737. $$019 = $9;
  39738. } else {
  39739. $$019 = $1;
  39740. }
  39741. $10 = ((($0)) + 20|0);
  39742. $11 = HEAP32[$10>>2]|0;
  39743. $12 = ((($0)) + 28|0);
  39744. $13 = HEAP32[$12>>2]|0;
  39745. $14 = ($11>>>0)>($13>>>0);
  39746. if ($14) {
  39747. $15 = ((($0)) + 36|0);
  39748. $16 = HEAP32[$15>>2]|0;
  39749. (FUNCTION_TABLE_iiii[$16 & 15]($0,0,0)|0);
  39750. $17 = HEAP32[$10>>2]|0;
  39751. $18 = ($17|0)==(0|0);
  39752. if ($18) {
  39753. $$0 = -1;
  39754. } else {
  39755. label = 5;
  39756. }
  39757. } else {
  39758. label = 5;
  39759. }
  39760. if ((label|0) == 5) {
  39761. $19 = ((($0)) + 16|0);
  39762. HEAP32[$19>>2] = 0;
  39763. HEAP32[$12>>2] = 0;
  39764. HEAP32[$10>>2] = 0;
  39765. $20 = ((($0)) + 40|0);
  39766. $21 = HEAP32[$20>>2]|0;
  39767. $22 = (FUNCTION_TABLE_iiii[$21 & 15]($0,$$019,$2)|0);
  39768. $23 = ($22|0)<(0);
  39769. if ($23) {
  39770. $$0 = -1;
  39771. } else {
  39772. $24 = ((($0)) + 8|0);
  39773. HEAP32[$24>>2] = 0;
  39774. $25 = ((($0)) + 4|0);
  39775. HEAP32[$25>>2] = 0;
  39776. $26 = HEAP32[$0>>2]|0;
  39777. $27 = $26 & -17;
  39778. HEAP32[$0>>2] = $27;
  39779. $$0 = 0;
  39780. }
  39781. }
  39782. return ($$0|0);
  39783. }
  39784. function _strstr($0,$1) {
  39785. $0 = $0|0;
  39786. $1 = $1|0;
  39787. 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;
  39788. 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;
  39789. sp = STACKTOP;
  39790. $2 = HEAP8[$1>>0]|0;
  39791. $3 = ($2<<24>>24)==(0);
  39792. do {
  39793. if ($3) {
  39794. $$0 = $0;
  39795. } else {
  39796. $4 = $2 << 24 >> 24;
  39797. $5 = (_strchr($0,$4)|0);
  39798. $6 = ($5|0)==(0|0);
  39799. if ($6) {
  39800. $$0 = 0;
  39801. } else {
  39802. $7 = ((($1)) + 1|0);
  39803. $8 = HEAP8[$7>>0]|0;
  39804. $9 = ($8<<24>>24)==(0);
  39805. if ($9) {
  39806. $$0 = $5;
  39807. } else {
  39808. $10 = ((($5)) + 1|0);
  39809. $11 = HEAP8[$10>>0]|0;
  39810. $12 = ($11<<24>>24)==(0);
  39811. if ($12) {
  39812. $$0 = 0;
  39813. } else {
  39814. $13 = ((($1)) + 2|0);
  39815. $14 = HEAP8[$13>>0]|0;
  39816. $15 = ($14<<24>>24)==(0);
  39817. if ($15) {
  39818. $16 = (_twobyte_strstr($5,$1)|0);
  39819. $$0 = $16;
  39820. break;
  39821. }
  39822. $17 = ((($5)) + 2|0);
  39823. $18 = HEAP8[$17>>0]|0;
  39824. $19 = ($18<<24>>24)==(0);
  39825. if ($19) {
  39826. $$0 = 0;
  39827. } else {
  39828. $20 = ((($1)) + 3|0);
  39829. $21 = HEAP8[$20>>0]|0;
  39830. $22 = ($21<<24>>24)==(0);
  39831. if ($22) {
  39832. $23 = (_threebyte_strstr($5,$1)|0);
  39833. $$0 = $23;
  39834. break;
  39835. }
  39836. $24 = ((($5)) + 3|0);
  39837. $25 = HEAP8[$24>>0]|0;
  39838. $26 = ($25<<24>>24)==(0);
  39839. if ($26) {
  39840. $$0 = 0;
  39841. } else {
  39842. $27 = ((($1)) + 4|0);
  39843. $28 = HEAP8[$27>>0]|0;
  39844. $29 = ($28<<24>>24)==(0);
  39845. if ($29) {
  39846. $30 = (_fourbyte_strstr($5,$1)|0);
  39847. $$0 = $30;
  39848. break;
  39849. } else {
  39850. $31 = (_twoway_strstr($5,$1)|0);
  39851. $$0 = $31;
  39852. break;
  39853. }
  39854. }
  39855. }
  39856. }
  39857. }
  39858. }
  39859. }
  39860. } while(0);
  39861. return ($$0|0);
  39862. }
  39863. function _twobyte_strstr($0,$1) {
  39864. $0 = $0|0;
  39865. $1 = $1|0;
  39866. 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;
  39867. var label = 0, sp = 0;
  39868. sp = STACKTOP;
  39869. $2 = HEAP8[$1>>0]|0;
  39870. $3 = $2&255;
  39871. $4 = $3 << 8;
  39872. $5 = ((($1)) + 1|0);
  39873. $6 = HEAP8[$5>>0]|0;
  39874. $7 = $6&255;
  39875. $8 = $4 | $7;
  39876. $9 = HEAP8[$0>>0]|0;
  39877. $10 = $9&255;
  39878. $$sink$in = $10;$$sink17$sink = $0;
  39879. while(1) {
  39880. $11 = ((($$sink17$sink)) + 1|0);
  39881. $12 = HEAP8[$11>>0]|0;
  39882. $13 = ($12<<24>>24)==(0);
  39883. if ($13) {
  39884. $$lcssa = 0;
  39885. break;
  39886. }
  39887. $$sink = $$sink$in << 8;
  39888. $14 = $12&255;
  39889. $$sink$masked = $$sink & 65280;
  39890. $15 = $14 | $$sink$masked;
  39891. $16 = ($15|0)==($8|0);
  39892. if ($16) {
  39893. $$lcssa = $$sink17$sink;
  39894. break;
  39895. } else {
  39896. $$sink$in = $15;$$sink17$sink = $11;
  39897. }
  39898. }
  39899. return ($$lcssa|0);
  39900. }
  39901. function _threebyte_strstr($0,$1) {
  39902. $0 = $0|0;
  39903. $1 = $1|0;
  39904. 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;
  39905. 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;
  39906. var $7 = 0, $8 = 0, $9 = 0, $or$cond = 0, $or$cond18 = 0, label = 0, sp = 0;
  39907. sp = STACKTOP;
  39908. $2 = HEAP8[$1>>0]|0;
  39909. $3 = $2&255;
  39910. $4 = $3 << 24;
  39911. $5 = ((($1)) + 1|0);
  39912. $6 = HEAP8[$5>>0]|0;
  39913. $7 = $6&255;
  39914. $8 = $7 << 16;
  39915. $9 = $8 | $4;
  39916. $10 = ((($1)) + 2|0);
  39917. $11 = HEAP8[$10>>0]|0;
  39918. $12 = $11&255;
  39919. $13 = $12 << 8;
  39920. $14 = $9 | $13;
  39921. $15 = HEAP8[$0>>0]|0;
  39922. $16 = $15&255;
  39923. $17 = $16 << 24;
  39924. $18 = ((($0)) + 1|0);
  39925. $19 = HEAP8[$18>>0]|0;
  39926. $20 = $19&255;
  39927. $21 = $20 << 16;
  39928. $22 = $21 | $17;
  39929. $23 = ((($0)) + 2|0);
  39930. $24 = HEAP8[$23>>0]|0;
  39931. $25 = $24&255;
  39932. $26 = $25 << 8;
  39933. $27 = $22 | $26;
  39934. $28 = ($24<<24>>24)!=(0);
  39935. $$not17 = $28 ^ 1;
  39936. $29 = ($27|0)==($14|0);
  39937. $or$cond18 = $29 | $$not17;
  39938. if ($or$cond18) {
  39939. $$016$lcssa = $23;$$lcssa = $28;
  39940. } else {
  39941. $$01619 = $23;$$020 = $27;
  39942. while(1) {
  39943. $30 = ((($$01619)) + 1|0);
  39944. $31 = HEAP8[$30>>0]|0;
  39945. $32 = $31&255;
  39946. $33 = $32 | $$020;
  39947. $34 = $33 << 8;
  39948. $35 = ($31<<24>>24)!=(0);
  39949. $$not = $35 ^ 1;
  39950. $36 = ($34|0)==($14|0);
  39951. $or$cond = $36 | $$not;
  39952. if ($or$cond) {
  39953. $$016$lcssa = $30;$$lcssa = $35;
  39954. break;
  39955. } else {
  39956. $$01619 = $30;$$020 = $34;
  39957. }
  39958. }
  39959. }
  39960. $37 = ((($$016$lcssa)) + -2|0);
  39961. $38 = $$lcssa ? $37 : 0;
  39962. return ($38|0);
  39963. }
  39964. function _fourbyte_strstr($0,$1) {
  39965. $0 = $0|0;
  39966. $1 = $1|0;
  39967. 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;
  39968. 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;
  39969. 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;
  39970. sp = STACKTOP;
  39971. $2 = HEAP8[$1>>0]|0;
  39972. $3 = $2&255;
  39973. $4 = $3 << 24;
  39974. $5 = ((($1)) + 1|0);
  39975. $6 = HEAP8[$5>>0]|0;
  39976. $7 = $6&255;
  39977. $8 = $7 << 16;
  39978. $9 = $8 | $4;
  39979. $10 = ((($1)) + 2|0);
  39980. $11 = HEAP8[$10>>0]|0;
  39981. $12 = $11&255;
  39982. $13 = $12 << 8;
  39983. $14 = $9 | $13;
  39984. $15 = ((($1)) + 3|0);
  39985. $16 = HEAP8[$15>>0]|0;
  39986. $17 = $16&255;
  39987. $18 = $14 | $17;
  39988. $19 = HEAP8[$0>>0]|0;
  39989. $20 = $19&255;
  39990. $21 = $20 << 24;
  39991. $22 = ((($0)) + 1|0);
  39992. $23 = HEAP8[$22>>0]|0;
  39993. $24 = $23&255;
  39994. $25 = $24 << 16;
  39995. $26 = $25 | $21;
  39996. $27 = ((($0)) + 2|0);
  39997. $28 = HEAP8[$27>>0]|0;
  39998. $29 = $28&255;
  39999. $30 = $29 << 8;
  40000. $31 = $26 | $30;
  40001. $32 = ((($0)) + 3|0);
  40002. $33 = HEAP8[$32>>0]|0;
  40003. $34 = $33&255;
  40004. $35 = $34 | $31;
  40005. $36 = ($33<<24>>24)!=(0);
  40006. $$not22 = $36 ^ 1;
  40007. $37 = ($35|0)==($18|0);
  40008. $or$cond23 = $37 | $$not22;
  40009. if ($or$cond23) {
  40010. $$lcssa = $36;$$sink21$lcssa = $32;
  40011. } else {
  40012. $$sink2124 = $32;$39 = $35;
  40013. while(1) {
  40014. $38 = $39 << 8;
  40015. $40 = ((($$sink2124)) + 1|0);
  40016. $41 = HEAP8[$40>>0]|0;
  40017. $42 = $41&255;
  40018. $43 = $42 | $38;
  40019. $44 = ($41<<24>>24)!=(0);
  40020. $$not = $44 ^ 1;
  40021. $45 = ($43|0)==($18|0);
  40022. $or$cond = $45 | $$not;
  40023. if ($or$cond) {
  40024. $$lcssa = $44;$$sink21$lcssa = $40;
  40025. break;
  40026. } else {
  40027. $$sink2124 = $40;$39 = $43;
  40028. }
  40029. }
  40030. }
  40031. $46 = ((($$sink21$lcssa)) + -3|0);
  40032. $47 = $$lcssa ? $46 : 0;
  40033. return ($47|0);
  40034. }
  40035. function _twoway_strstr($0,$1) {
  40036. $0 = $0|0;
  40037. $1 = $1|0;
  40038. 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;
  40039. 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;
  40040. 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;
  40041. 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;
  40042. 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;
  40043. 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;
  40044. 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;
  40045. 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;
  40046. 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;
  40047. sp = STACKTOP;
  40048. STACKTOP = STACKTOP + 1056|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(1056|0);
  40049. $2 = sp + 1024|0;
  40050. $3 = sp;
  40051. ;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;
  40052. $4 = HEAP8[$1>>0]|0;
  40053. $cond265 = ($4<<24>>24)==(0);
  40054. L1: do {
  40055. if ($cond265) {
  40056. $$0175$ph$ph$lcssa220323 = 1;$$0185$ph$lcssa322 = -1;$$0187$lcssa320321 = 0;$$1176$ph$ph$lcssa211 = 1;$$1186$ph$lcssa = -1;
  40057. label = 27;
  40058. } else {
  40059. $5 = $4&255;
  40060. $$0187266 = 0;$12 = $4;$20 = $5;
  40061. while(1) {
  40062. $8 = (($0) + ($$0187266)|0);
  40063. $9 = HEAP8[$8>>0]|0;
  40064. $10 = ($9<<24>>24)==(0);
  40065. if ($10) {
  40066. $$3 = 0;
  40067. break L1;
  40068. }
  40069. $11 = $12 & 31;
  40070. $13 = $11&255;
  40071. $14 = 1 << $13;
  40072. $div188 = ($12&255) >>> 5;
  40073. $15 = $div188&255;
  40074. $16 = (($2) + ($15<<2)|0);
  40075. $17 = HEAP32[$16>>2]|0;
  40076. $18 = $17 | $14;
  40077. HEAP32[$16>>2] = $18;
  40078. $7 = (($$0187266) + 1)|0;
  40079. $19 = (($3) + ($20<<2)|0);
  40080. HEAP32[$19>>2] = $7;
  40081. $21 = (($1) + ($7)|0);
  40082. $22 = HEAP8[$21>>0]|0;
  40083. $23 = $22&255;
  40084. $cond = ($22<<24>>24)==(0);
  40085. if ($cond) {
  40086. break;
  40087. } else {
  40088. $$0187266 = $7;$12 = $22;$20 = $23;
  40089. }
  40090. }
  40091. $6 = ($7>>>0)>(1);
  40092. if ($6) {
  40093. $$0183$ph262 = 0;$$0185$ph261 = -1;$129 = 1;
  40094. L7: while(1) {
  40095. $$0175$ph$ph256 = 1;$$0183$ph200$ph255 = $$0183$ph262;$132 = $129;
  40096. while(1) {
  40097. $$0183$ph200250 = $$0183$ph200$ph255;$131 = $132;
  40098. L11: while(1) {
  40099. $$0179244 = 1;$31 = $131;
  40100. while(1) {
  40101. $27 = (($$0179244) + ($$0185$ph261))|0;
  40102. $28 = (($1) + ($27)|0);
  40103. $29 = HEAP8[$28>>0]|0;
  40104. $30 = (($1) + ($31)|0);
  40105. $32 = HEAP8[$30>>0]|0;
  40106. $33 = ($29<<24>>24)==($32<<24>>24);
  40107. if (!($33)) {
  40108. break L11;
  40109. }
  40110. $34 = ($$0179244|0)==($$0175$ph$ph256|0);
  40111. $25 = (($$0179244) + 1)|0;
  40112. if ($34) {
  40113. break;
  40114. }
  40115. $24 = (($25) + ($$0183$ph200250))|0;
  40116. $26 = ($24>>>0)<($7>>>0);
  40117. if ($26) {
  40118. $$0179244 = $25;$31 = $24;
  40119. } else {
  40120. $$0175$ph$ph$lcssa220 = $$0175$ph$ph256;$$0185$ph$lcssa = $$0185$ph261;
  40121. break L7;
  40122. }
  40123. }
  40124. $35 = (($$0175$ph$ph256) + ($$0183$ph200250))|0;
  40125. $36 = (($35) + 1)|0;
  40126. $37 = ($36>>>0)<($7>>>0);
  40127. if ($37) {
  40128. $$0183$ph200250 = $35;$131 = $36;
  40129. } else {
  40130. $$0175$ph$ph$lcssa220 = $$0175$ph$ph256;$$0185$ph$lcssa = $$0185$ph261;
  40131. break L7;
  40132. }
  40133. }
  40134. $38 = ($29&255)>($32&255);
  40135. $39 = (($31) - ($$0185$ph261))|0;
  40136. if (!($38)) {
  40137. break;
  40138. }
  40139. $43 = (($31) + 1)|0;
  40140. $44 = ($43>>>0)<($7>>>0);
  40141. if ($44) {
  40142. $$0175$ph$ph256 = $39;$$0183$ph200$ph255 = $31;$132 = $43;
  40143. } else {
  40144. $$0175$ph$ph$lcssa220 = $39;$$0185$ph$lcssa = $$0185$ph261;
  40145. break L7;
  40146. }
  40147. }
  40148. $40 = (($$0183$ph200250) + 1)|0;
  40149. $41 = (($$0183$ph200250) + 2)|0;
  40150. $42 = ($41>>>0)<($7>>>0);
  40151. if ($42) {
  40152. $$0183$ph262 = $40;$$0185$ph261 = $$0183$ph200250;$129 = $41;
  40153. } else {
  40154. $$0175$ph$ph$lcssa220 = 1;$$0185$ph$lcssa = $$0183$ph200250;
  40155. break;
  40156. }
  40157. }
  40158. if ($6) {
  40159. $$1184$ph241 = 0;$$1186$ph240 = -1;$130 = 1;
  40160. while(1) {
  40161. $$1176$ph$ph235 = 1;$$1184$ph196$ph234 = $$1184$ph241;$134 = $130;
  40162. while(1) {
  40163. $$1184$ph196229 = $$1184$ph196$ph234;$133 = $134;
  40164. L26: while(1) {
  40165. $$1180224 = 1;$52 = $133;
  40166. while(1) {
  40167. $48 = (($$1180224) + ($$1186$ph240))|0;
  40168. $49 = (($1) + ($48)|0);
  40169. $50 = HEAP8[$49>>0]|0;
  40170. $51 = (($1) + ($52)|0);
  40171. $53 = HEAP8[$51>>0]|0;
  40172. $54 = ($50<<24>>24)==($53<<24>>24);
  40173. if (!($54)) {
  40174. break L26;
  40175. }
  40176. $55 = ($$1180224|0)==($$1176$ph$ph235|0);
  40177. $46 = (($$1180224) + 1)|0;
  40178. if ($55) {
  40179. break;
  40180. }
  40181. $45 = (($46) + ($$1184$ph196229))|0;
  40182. $47 = ($45>>>0)<($7>>>0);
  40183. if ($47) {
  40184. $$1180224 = $46;$52 = $45;
  40185. } else {
  40186. $$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;
  40187. label = 27;
  40188. break L1;
  40189. }
  40190. }
  40191. $56 = (($$1176$ph$ph235) + ($$1184$ph196229))|0;
  40192. $57 = (($56) + 1)|0;
  40193. $58 = ($57>>>0)<($7>>>0);
  40194. if ($58) {
  40195. $$1184$ph196229 = $56;$133 = $57;
  40196. } else {
  40197. $$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;
  40198. label = 27;
  40199. break L1;
  40200. }
  40201. }
  40202. $59 = ($50&255)<($53&255);
  40203. $60 = (($52) - ($$1186$ph240))|0;
  40204. if (!($59)) {
  40205. break;
  40206. }
  40207. $64 = (($52) + 1)|0;
  40208. $65 = ($64>>>0)<($7>>>0);
  40209. if ($65) {
  40210. $$1176$ph$ph235 = $60;$$1184$ph196$ph234 = $52;$134 = $64;
  40211. } else {
  40212. $$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;
  40213. label = 27;
  40214. break L1;
  40215. }
  40216. }
  40217. $61 = (($$1184$ph196229) + 1)|0;
  40218. $62 = (($$1184$ph196229) + 2)|0;
  40219. $63 = ($62>>>0)<($7>>>0);
  40220. if ($63) {
  40221. $$1184$ph241 = $61;$$1186$ph240 = $$1184$ph196229;$130 = $62;
  40222. } else {
  40223. $$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;
  40224. label = 27;
  40225. break;
  40226. }
  40227. }
  40228. } else {
  40229. $$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;
  40230. label = 27;
  40231. }
  40232. } else {
  40233. $$0175$ph$ph$lcssa220323 = 1;$$0185$ph$lcssa322 = -1;$$0187$lcssa320321 = $7;$$1176$ph$ph$lcssa211 = 1;$$1186$ph$lcssa = -1;
  40234. label = 27;
  40235. }
  40236. }
  40237. } while(0);
  40238. L36: do {
  40239. if ((label|0) == 27) {
  40240. $66 = (($$1186$ph$lcssa) + 1)|0;
  40241. $67 = (($$0185$ph$lcssa322) + 1)|0;
  40242. $68 = ($66>>>0)>($67>>>0);
  40243. $$1176$$0175 = $68 ? $$1176$ph$ph$lcssa211 : $$0175$ph$ph$lcssa220323;
  40244. $$1186$$0185 = $68 ? $$1186$ph$lcssa : $$0185$ph$lcssa322;
  40245. $69 = (($1) + ($$1176$$0175)|0);
  40246. $70 = (($$1186$$0185) + 1)|0;
  40247. $71 = (_memcmp($1,$69,$70)|0);
  40248. $72 = ($71|0)==(0);
  40249. if ($72) {
  40250. $77 = (($$0187$lcssa320321) - ($$1176$$0175))|0;
  40251. $$0168 = $77;$$3178 = $$1176$$0175;
  40252. } else {
  40253. $73 = (($$0187$lcssa320321) - ($$1186$$0185))|0;
  40254. $74 = (($73) + -1)|0;
  40255. $75 = ($$1186$$0185>>>0)>($74>>>0);
  40256. $$1186$$0185$ = $75 ? $$1186$$0185 : $74;
  40257. $76 = (($$1186$$0185$) + 1)|0;
  40258. $$0168 = 0;$$3178 = $76;
  40259. }
  40260. $78 = $$0187$lcssa320321 | 63;
  40261. $79 = (($$0187$lcssa320321) + -1)|0;
  40262. $80 = ($$0168|0)!=(0);
  40263. $81 = (($$0187$lcssa320321) - ($$3178))|0;
  40264. $$0166 = $0;$$0169 = 0;$$0170 = $0;
  40265. while(1) {
  40266. $82 = $$0170;
  40267. $83 = $$0166;
  40268. $84 = (($82) - ($83))|0;
  40269. $85 = ($84>>>0)<($$0187$lcssa320321>>>0);
  40270. do {
  40271. if ($85) {
  40272. $86 = (_memchr($$0170,0,$78)|0);
  40273. $87 = ($86|0)==(0|0);
  40274. if ($87) {
  40275. $91 = (($$0170) + ($78)|0);
  40276. $$3173 = $91;
  40277. break;
  40278. } else {
  40279. $88 = $86;
  40280. $89 = (($88) - ($83))|0;
  40281. $90 = ($89>>>0)<($$0187$lcssa320321>>>0);
  40282. if ($90) {
  40283. $$3 = 0;
  40284. break L36;
  40285. } else {
  40286. $$3173 = $86;
  40287. break;
  40288. }
  40289. }
  40290. } else {
  40291. $$3173 = $$0170;
  40292. }
  40293. } while(0);
  40294. $92 = (($$0166) + ($79)|0);
  40295. $93 = HEAP8[$92>>0]|0;
  40296. $div = ($93&255) >>> 5;
  40297. $94 = $div&255;
  40298. $95 = (($2) + ($94<<2)|0);
  40299. $96 = HEAP32[$95>>2]|0;
  40300. $97 = $93 & 31;
  40301. $98 = $97&255;
  40302. $99 = 1 << $98;
  40303. $100 = $99 & $96;
  40304. $101 = ($100|0)==(0);
  40305. L50: do {
  40306. if ($101) {
  40307. $$0169$be = 0;$$2181$sink = $$0187$lcssa320321;
  40308. } else {
  40309. $102 = $93&255;
  40310. $103 = (($3) + ($102<<2)|0);
  40311. $104 = HEAP32[$103>>2]|0;
  40312. $105 = (($$0187$lcssa320321) - ($104))|0;
  40313. $106 = ($105|0)==(0);
  40314. if (!($106)) {
  40315. $107 = ($$0169|0)!=(0);
  40316. $or$cond = $80 & $107;
  40317. $108 = ($105>>>0)<($$3178>>>0);
  40318. $or$cond190 = $or$cond & $108;
  40319. $$2181 = $or$cond190 ? $81 : $105;
  40320. $$0169$be = 0;$$2181$sink = $$2181;
  40321. break;
  40322. }
  40323. $110 = ($70>>>0)>($$0169>>>0);
  40324. $111 = $110 ? $70 : $$0169;
  40325. $112 = (($1) + ($111)|0);
  40326. $113 = HEAP8[$112>>0]|0;
  40327. $cond191222 = ($113<<24>>24)==(0);
  40328. L55: do {
  40329. if ($cond191222) {
  40330. $$4 = $70;
  40331. } else {
  40332. $$3182223 = $111;$117 = $113;
  40333. while(1) {
  40334. $114 = (($$0166) + ($$3182223)|0);
  40335. $115 = HEAP8[$114>>0]|0;
  40336. $116 = ($117<<24>>24)==($115<<24>>24);
  40337. if (!($116)) {
  40338. break;
  40339. }
  40340. $118 = (($$3182223) + 1)|0;
  40341. $119 = (($1) + ($118)|0);
  40342. $120 = HEAP8[$119>>0]|0;
  40343. $cond191 = ($120<<24>>24)==(0);
  40344. if ($cond191) {
  40345. $$4 = $70;
  40346. break L55;
  40347. } else {
  40348. $$3182223 = $118;$117 = $120;
  40349. }
  40350. }
  40351. $121 = (($$3182223) - ($$1186$$0185))|0;
  40352. $$0169$be = 0;$$2181$sink = $121;
  40353. break L50;
  40354. }
  40355. } while(0);
  40356. while(1) {
  40357. $122 = ($$4>>>0)>($$0169>>>0);
  40358. if (!($122)) {
  40359. $$3 = $$0166;
  40360. break L36;
  40361. }
  40362. $123 = (($$4) + -1)|0;
  40363. $124 = (($1) + ($123)|0);
  40364. $125 = HEAP8[$124>>0]|0;
  40365. $126 = (($$0166) + ($123)|0);
  40366. $127 = HEAP8[$126>>0]|0;
  40367. $128 = ($125<<24>>24)==($127<<24>>24);
  40368. if ($128) {
  40369. $$4 = $123;
  40370. } else {
  40371. $$0169$be = $$0168;$$2181$sink = $$3178;
  40372. break;
  40373. }
  40374. }
  40375. }
  40376. } while(0);
  40377. $109 = (($$0166) + ($$2181$sink)|0);
  40378. $$0166 = $109;$$0169 = $$0169$be;$$0170 = $$3173;
  40379. }
  40380. }
  40381. } while(0);
  40382. STACKTOP = sp;return ($$3|0);
  40383. }
  40384. function _strrchr($0,$1) {
  40385. $0 = $0|0;
  40386. $1 = $1|0;
  40387. var $2 = 0, $3 = 0, $4 = 0, label = 0, sp = 0;
  40388. sp = STACKTOP;
  40389. $2 = (_strlen($0)|0);
  40390. $3 = (($2) + 1)|0;
  40391. $4 = (___memrchr($0,$1,$3)|0);
  40392. return ($4|0);
  40393. }
  40394. function ___memrchr($0,$1,$2) {
  40395. $0 = $0|0;
  40396. $1 = $1|0;
  40397. $2 = $2|0;
  40398. var $$0 = 0, $$09 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, label = 0, sp = 0;
  40399. sp = STACKTOP;
  40400. $3 = $1&255;
  40401. $$09 = $2;
  40402. while(1) {
  40403. $4 = (($$09) + -1)|0;
  40404. $5 = ($$09|0)==(0);
  40405. if ($5) {
  40406. $$0 = 0;
  40407. break;
  40408. }
  40409. $6 = (($0) + ($4)|0);
  40410. $7 = HEAP8[$6>>0]|0;
  40411. $8 = ($7<<24>>24)==($3<<24>>24);
  40412. if ($8) {
  40413. $$0 = $6;
  40414. break;
  40415. } else {
  40416. $$09 = $4;
  40417. }
  40418. }
  40419. return ($$0|0);
  40420. }
  40421. function _strspn($0,$1) {
  40422. $0 = $0|0;
  40423. $1 = $1|0;
  40424. 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;
  40425. 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;
  40426. var $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $div = 0, $div21 = 0, label = 0, sp = 0;
  40427. sp = STACKTOP;
  40428. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  40429. $2 = sp;
  40430. ;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;
  40431. $3 = HEAP8[$1>>0]|0;
  40432. $4 = ($3<<24>>24)==(0);
  40433. do {
  40434. if ($4) {
  40435. $$0 = 0;
  40436. } else {
  40437. $5 = ((($1)) + 1|0);
  40438. $6 = HEAP8[$5>>0]|0;
  40439. $7 = ($6<<24>>24)==(0);
  40440. if ($7) {
  40441. $$020 = $0;
  40442. while(1) {
  40443. $8 = HEAP8[$$020>>0]|0;
  40444. $9 = ($8<<24>>24)==($3<<24>>24);
  40445. $10 = ((($$020)) + 1|0);
  40446. if ($9) {
  40447. $$020 = $10;
  40448. } else {
  40449. break;
  40450. }
  40451. }
  40452. $11 = $$020;
  40453. $12 = $0;
  40454. $13 = (($11) - ($12))|0;
  40455. $$0 = $13;
  40456. break;
  40457. } else {
  40458. $$01925 = $1;$17 = $3;
  40459. }
  40460. while(1) {
  40461. $16 = $17 & 31;
  40462. $18 = $16&255;
  40463. $19 = 1 << $18;
  40464. $div21 = ($17&255) >>> 5;
  40465. $20 = $div21&255;
  40466. $21 = (($2) + ($20<<2)|0);
  40467. $22 = HEAP32[$21>>2]|0;
  40468. $23 = $22 | $19;
  40469. HEAP32[$21>>2] = $23;
  40470. $24 = ((($$01925)) + 1|0);
  40471. $25 = HEAP8[$24>>0]|0;
  40472. $26 = ($25<<24>>24)==(0);
  40473. if ($26) {
  40474. break;
  40475. } else {
  40476. $$01925 = $24;$17 = $25;
  40477. }
  40478. }
  40479. $14 = HEAP8[$0>>0]|0;
  40480. $15 = ($14<<24>>24)==(0);
  40481. L10: do {
  40482. if ($15) {
  40483. $$1$lcssa = $0;
  40484. } else {
  40485. $$123 = $0;$27 = $14;
  40486. while(1) {
  40487. $div = ($27&255) >>> 5;
  40488. $28 = $div&255;
  40489. $29 = (($2) + ($28<<2)|0);
  40490. $30 = HEAP32[$29>>2]|0;
  40491. $31 = $27 & 31;
  40492. $32 = $31&255;
  40493. $33 = 1 << $32;
  40494. $34 = $30 & $33;
  40495. $35 = ($34|0)==(0);
  40496. if ($35) {
  40497. $$1$lcssa = $$123;
  40498. break L10;
  40499. }
  40500. $36 = ((($$123)) + 1|0);
  40501. $37 = HEAP8[$36>>0]|0;
  40502. $38 = ($37<<24>>24)==(0);
  40503. if ($38) {
  40504. $$1$lcssa = $36;
  40505. break;
  40506. } else {
  40507. $$123 = $36;$27 = $37;
  40508. }
  40509. }
  40510. }
  40511. } while(0);
  40512. $39 = $$1$lcssa;
  40513. $40 = $0;
  40514. $41 = (($39) - ($40))|0;
  40515. $$0 = $41;
  40516. }
  40517. } while(0);
  40518. STACKTOP = sp;return ($$0|0);
  40519. }
  40520. function _srand($0) {
  40521. $0 = $0|0;
  40522. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, label = 0, sp = 0;
  40523. sp = STACKTOP;
  40524. $1 = (($0) + -1)|0;
  40525. $2 = 19584;
  40526. $3 = $2;
  40527. HEAP32[$3>>2] = $1;
  40528. $4 = (($2) + 4)|0;
  40529. $5 = $4;
  40530. HEAP32[$5>>2] = 0;
  40531. return;
  40532. }
  40533. function ___ftello($0) {
  40534. $0 = $0|0;
  40535. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $phitmp = 0, label = 0, sp = 0;
  40536. sp = STACKTOP;
  40537. $1 = ((($0)) + 76|0);
  40538. $2 = HEAP32[$1>>2]|0;
  40539. $3 = ($2|0)>(-1);
  40540. if ($3) {
  40541. $5 = (___lockfile($0)|0);
  40542. $phitmp = ($5|0)==(0);
  40543. $6 = (___ftello_unlocked($0)|0);
  40544. if ($phitmp) {
  40545. $7 = $6;
  40546. } else {
  40547. ___unlockfile($0);
  40548. $7 = $6;
  40549. }
  40550. } else {
  40551. $4 = (___ftello_unlocked($0)|0);
  40552. $7 = $4;
  40553. }
  40554. return ($7|0);
  40555. }
  40556. function ___ftello_unlocked($0) {
  40557. $0 = $0|0;
  40558. 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;
  40559. var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $phitmp = 0, label = 0, sp = 0;
  40560. sp = STACKTOP;
  40561. $1 = ((($0)) + 40|0);
  40562. $2 = HEAP32[$1>>2]|0;
  40563. $3 = HEAP32[$0>>2]|0;
  40564. $4 = $3 & 128;
  40565. $5 = ($4|0)==(0);
  40566. if ($5) {
  40567. $11 = 1;
  40568. } else {
  40569. $6 = ((($0)) + 20|0);
  40570. $7 = HEAP32[$6>>2]|0;
  40571. $8 = ((($0)) + 28|0);
  40572. $9 = HEAP32[$8>>2]|0;
  40573. $10 = ($7>>>0)>($9>>>0);
  40574. $phitmp = $10 ? 2 : 1;
  40575. $11 = $phitmp;
  40576. }
  40577. $12 = (FUNCTION_TABLE_iiii[$2 & 15]($0,0,$11)|0);
  40578. $13 = ($12|0)<(0);
  40579. if ($13) {
  40580. $$0 = $12;
  40581. } else {
  40582. $14 = ((($0)) + 8|0);
  40583. $15 = HEAP32[$14>>2]|0;
  40584. $16 = ((($0)) + 4|0);
  40585. $17 = HEAP32[$16>>2]|0;
  40586. $18 = ((($0)) + 20|0);
  40587. $19 = HEAP32[$18>>2]|0;
  40588. $20 = ((($0)) + 28|0);
  40589. $21 = HEAP32[$20>>2]|0;
  40590. $22 = (($12) - ($15))|0;
  40591. $23 = (($22) + ($17))|0;
  40592. $24 = (($23) + ($19))|0;
  40593. $25 = (($24) - ($21))|0;
  40594. $$0 = $25;
  40595. }
  40596. return ($$0|0);
  40597. }
  40598. function _fread($0,$1,$2,$3) {
  40599. $0 = $0|0;
  40600. $1 = $1|0;
  40601. $2 = $2|0;
  40602. $3 = $3|0;
  40603. 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;
  40604. 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;
  40605. var $42 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  40606. sp = STACKTOP;
  40607. $4 = Math_imul($2, $1)|0;
  40608. $5 = ($1|0)==(0);
  40609. $$ = $5 ? 0 : $2;
  40610. $6 = ((($3)) + 76|0);
  40611. $7 = HEAP32[$6>>2]|0;
  40612. $8 = ($7|0)>(-1);
  40613. if ($8) {
  40614. $9 = (___lockfile($3)|0);
  40615. $36 = $9;
  40616. } else {
  40617. $36 = 0;
  40618. }
  40619. $10 = ((($3)) + 74|0);
  40620. $11 = HEAP8[$10>>0]|0;
  40621. $12 = $11 << 24 >> 24;
  40622. $13 = (($12) + 255)|0;
  40623. $14 = $13 | $12;
  40624. $15 = $14&255;
  40625. HEAP8[$10>>0] = $15;
  40626. $16 = ((($3)) + 8|0);
  40627. $17 = HEAP32[$16>>2]|0;
  40628. $18 = ((($3)) + 4|0);
  40629. $19 = HEAP32[$18>>2]|0;
  40630. $20 = $19;
  40631. $21 = (($17) - ($20))|0;
  40632. $22 = ($21|0)>(0);
  40633. $23 = ($21>>>0)<($4>>>0);
  40634. $$57 = $23 ? $21 : $4;
  40635. if ($22) {
  40636. $24 = (($4) - ($$57))|0;
  40637. $25 = (($0) + ($$57)|0);
  40638. _memcpy(($0|0),($19|0),($$57|0))|0;
  40639. $26 = (($19) + ($$57)|0);
  40640. HEAP32[$18>>2] = $26;
  40641. $$054$ph = $24;$$056$ph = $25;
  40642. } else {
  40643. $$054$ph = $4;$$056$ph = $0;
  40644. }
  40645. $27 = ($$054$ph|0)==(0);
  40646. L7: do {
  40647. if ($27) {
  40648. label = 13;
  40649. } else {
  40650. $28 = ((($3)) + 32|0);
  40651. $$05460 = $$054$ph;$$05659 = $$056$ph;
  40652. while(1) {
  40653. $29 = (___toread($3)|0);
  40654. $30 = ($29|0)==(0);
  40655. if (!($30)) {
  40656. break;
  40657. }
  40658. $31 = HEAP32[$28>>2]|0;
  40659. $32 = (FUNCTION_TABLE_iiii[$31 & 15]($3,$$05659,$$05460)|0);
  40660. $33 = (($32) + 1)|0;
  40661. $34 = ($33>>>0)<(2);
  40662. if ($34) {
  40663. break;
  40664. }
  40665. $39 = (($$05460) - ($32))|0;
  40666. $40 = (($$05659) + ($32)|0);
  40667. $41 = ($39|0)==(0);
  40668. if ($41) {
  40669. label = 13;
  40670. break L7;
  40671. } else {
  40672. $$05460 = $39;$$05659 = $40;
  40673. }
  40674. }
  40675. $35 = ($36|0)==(0);
  40676. if (!($35)) {
  40677. ___unlockfile($3);
  40678. }
  40679. $37 = (($4) - ($$05460))|0;
  40680. $38 = (($37>>>0) / ($1>>>0))&-1;
  40681. $$0 = $38;
  40682. }
  40683. } while(0);
  40684. if ((label|0) == 13) {
  40685. $42 = ($36|0)==(0);
  40686. if ($42) {
  40687. $$0 = $$;
  40688. } else {
  40689. ___unlockfile($3);
  40690. $$0 = $$;
  40691. }
  40692. }
  40693. return ($$0|0);
  40694. }
  40695. function _ftell($0) {
  40696. $0 = $0|0;
  40697. var $1 = 0, label = 0, sp = 0;
  40698. sp = STACKTOP;
  40699. $1 = (___ftello($0)|0);
  40700. return ($1|0);
  40701. }
  40702. function _rewind($0) {
  40703. $0 = $0|0;
  40704. var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $phitmp = 0, label = 0, sp = 0;
  40705. sp = STACKTOP;
  40706. $1 = ((($0)) + 76|0);
  40707. $2 = HEAP32[$1>>2]|0;
  40708. $3 = ($2|0)>(-1);
  40709. if ($3) {
  40710. $4 = (___lockfile($0)|0);
  40711. $phitmp = ($4|0)==(0);
  40712. (___fseeko_unlocked($0,0,0)|0);
  40713. $5 = HEAP32[$0>>2]|0;
  40714. $6 = $5 & -33;
  40715. HEAP32[$0>>2] = $6;
  40716. if (!($phitmp)) {
  40717. ___unlockfile($0);
  40718. }
  40719. } else {
  40720. (___fseeko_unlocked($0,0,0)|0);
  40721. $7 = HEAP32[$0>>2]|0;
  40722. $8 = $7 & -33;
  40723. HEAP32[$0>>2] = $8;
  40724. }
  40725. return;
  40726. }
  40727. function _vprintf($0,$1) {
  40728. $0 = $0|0;
  40729. $1 = $1|0;
  40730. var $2 = 0, $3 = 0, label = 0, sp = 0;
  40731. sp = STACKTOP;
  40732. $2 = HEAP32[1054]|0;
  40733. $3 = (_vfprintf($2,$0,$1)|0);
  40734. return ($3|0);
  40735. }
  40736. function _strcspn($0,$1) {
  40737. $0 = $0|0;
  40738. $1 = $1|0;
  40739. 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;
  40740. 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;
  40741. var $div20 = 0, label = 0, sp = 0;
  40742. sp = STACKTOP;
  40743. STACKTOP = STACKTOP + 32|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(32|0);
  40744. $2 = sp;
  40745. $3 = HEAP8[$1>>0]|0;
  40746. $4 = ($3<<24>>24)==(0);
  40747. L1: do {
  40748. if ($4) {
  40749. label = 3;
  40750. } else {
  40751. $5 = ((($1)) + 1|0);
  40752. $6 = HEAP8[$5>>0]|0;
  40753. $7 = ($6<<24>>24)==(0);
  40754. if ($7) {
  40755. label = 3;
  40756. } else {
  40757. ;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;
  40758. $$01824 = $1;$13 = $3;
  40759. while(1) {
  40760. $12 = $13 & 31;
  40761. $14 = $12&255;
  40762. $15 = 1 << $14;
  40763. $div20 = ($13&255) >>> 5;
  40764. $16 = $div20&255;
  40765. $17 = (($2) + ($16<<2)|0);
  40766. $18 = HEAP32[$17>>2]|0;
  40767. $19 = $18 | $15;
  40768. HEAP32[$17>>2] = $19;
  40769. $20 = ((($$01824)) + 1|0);
  40770. $21 = HEAP8[$20>>0]|0;
  40771. $22 = ($21<<24>>24)==(0);
  40772. if ($22) {
  40773. break;
  40774. } else {
  40775. $$01824 = $20;$13 = $21;
  40776. }
  40777. }
  40778. $10 = HEAP8[$0>>0]|0;
  40779. $11 = ($10<<24>>24)==(0);
  40780. if ($11) {
  40781. $$019$sink = $0;
  40782. } else {
  40783. $$01922 = $0;$23 = $10;
  40784. while(1) {
  40785. $div = ($23&255) >>> 5;
  40786. $24 = $div&255;
  40787. $25 = (($2) + ($24<<2)|0);
  40788. $26 = HEAP32[$25>>2]|0;
  40789. $27 = $23 & 31;
  40790. $28 = $27&255;
  40791. $29 = 1 << $28;
  40792. $30 = $26 & $29;
  40793. $31 = ($30|0)==(0);
  40794. if (!($31)) {
  40795. $$019$sink = $$01922;
  40796. break L1;
  40797. }
  40798. $32 = ((($$01922)) + 1|0);
  40799. $33 = HEAP8[$32>>0]|0;
  40800. $34 = ($33<<24>>24)==(0);
  40801. if ($34) {
  40802. $$019$sink = $32;
  40803. break;
  40804. } else {
  40805. $$01922 = $32;$23 = $33;
  40806. }
  40807. }
  40808. }
  40809. }
  40810. }
  40811. } while(0);
  40812. if ((label|0) == 3) {
  40813. $8 = $3 << 24 >> 24;
  40814. $9 = (___strchrnul($0,$8)|0);
  40815. $$019$sink = $9;
  40816. }
  40817. $35 = $$019$sink;
  40818. $36 = $0;
  40819. $37 = (($35) - ($36))|0;
  40820. STACKTOP = sp;return ($37|0);
  40821. }
  40822. function _strcat($0,$1) {
  40823. $0 = $0|0;
  40824. $1 = $1|0;
  40825. var $2 = 0, $3 = 0, label = 0, sp = 0;
  40826. sp = STACKTOP;
  40827. $2 = (_strlen($0)|0);
  40828. $3 = (($0) + ($2)|0);
  40829. (_strcpy($3,$1)|0);
  40830. return ($0|0);
  40831. }
  40832. function _strtok($0,$1) {
  40833. $0 = $0|0;
  40834. $1 = $1|0;
  40835. 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;
  40836. sp = STACKTOP;
  40837. $2 = ($0|0)==(0|0);
  40838. if ($2) {
  40839. $3 = HEAP32[5753]|0;
  40840. $4 = ($3|0)==(0|0);
  40841. if ($4) {
  40842. $$0 = 0;
  40843. } else {
  40844. $$010 = $3;
  40845. label = 3;
  40846. }
  40847. } else {
  40848. $$010 = $0;
  40849. label = 3;
  40850. }
  40851. do {
  40852. if ((label|0) == 3) {
  40853. $5 = (_strspn($$010,$1)|0);
  40854. $6 = (($$010) + ($5)|0);
  40855. $7 = HEAP8[$6>>0]|0;
  40856. $8 = ($7<<24>>24)==(0);
  40857. if ($8) {
  40858. HEAP32[5753] = 0;
  40859. $$0 = 0;
  40860. break;
  40861. }
  40862. $9 = (_strcspn($6,$1)|0);
  40863. $10 = (($6) + ($9)|0);
  40864. HEAP32[5753] = $10;
  40865. $11 = HEAP8[$10>>0]|0;
  40866. $12 = ($11<<24>>24)==(0);
  40867. if ($12) {
  40868. HEAP32[5753] = 0;
  40869. $$0 = $6;
  40870. break;
  40871. } else {
  40872. $13 = ((($10)) + 1|0);
  40873. HEAP32[5753] = $13;
  40874. HEAP8[$10>>0] = 0;
  40875. $$0 = $6;
  40876. break;
  40877. }
  40878. }
  40879. } while(0);
  40880. return ($$0|0);
  40881. }
  40882. function _malloc($0) {
  40883. $0 = $0|0;
  40884. 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;
  40885. 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;
  40886. 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;
  40887. 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;
  40888. 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;
  40889. 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;
  40890. 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;
  40891. 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;
  40892. 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;
  40893. 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;
  40894. 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;
  40895. 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;
  40896. 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;
  40897. 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;
  40898. 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;
  40899. 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;
  40900. 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;
  40901. 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;
  40902. 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;
  40903. 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;
  40904. 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;
  40905. 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;
  40906. 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;
  40907. 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;
  40908. 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;
  40909. 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;
  40910. 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;
  40911. 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;
  40912. 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;
  40913. 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;
  40914. 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;
  40915. 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;
  40916. 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;
  40917. 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;
  40918. 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;
  40919. 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;
  40920. 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;
  40921. 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;
  40922. 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;
  40923. 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;
  40924. 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;
  40925. 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;
  40926. 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;
  40927. 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;
  40928. 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;
  40929. 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;
  40930. 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;
  40931. 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;
  40932. 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;
  40933. 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;
  40934. 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;
  40935. 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;
  40936. 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;
  40937. 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;
  40938. 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;
  40939. 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;
  40940. 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;
  40941. 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;
  40942. 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;
  40943. sp = STACKTOP;
  40944. STACKTOP = STACKTOP + 16|0; if ((STACKTOP|0) >= (STACK_MAX|0)) abortStackOverflow(16|0);
  40945. $1 = sp;
  40946. $2 = ($0>>>0)<(245);
  40947. do {
  40948. if ($2) {
  40949. $3 = ($0>>>0)<(11);
  40950. $4 = (($0) + 11)|0;
  40951. $5 = $4 & -8;
  40952. $6 = $3 ? 16 : $5;
  40953. $7 = $6 >>> 3;
  40954. $8 = HEAP32[5754]|0;
  40955. $9 = $8 >>> $7;
  40956. $10 = $9 & 3;
  40957. $11 = ($10|0)==(0);
  40958. if (!($11)) {
  40959. $12 = $9 & 1;
  40960. $13 = $12 ^ 1;
  40961. $14 = (($13) + ($7))|0;
  40962. $15 = $14 << 1;
  40963. $16 = (23056 + ($15<<2)|0);
  40964. $17 = ((($16)) + 8|0);
  40965. $18 = HEAP32[$17>>2]|0;
  40966. $19 = ((($18)) + 8|0);
  40967. $20 = HEAP32[$19>>2]|0;
  40968. $21 = ($16|0)==($20|0);
  40969. do {
  40970. if ($21) {
  40971. $22 = 1 << $14;
  40972. $23 = $22 ^ -1;
  40973. $24 = $8 & $23;
  40974. HEAP32[5754] = $24;
  40975. } else {
  40976. $25 = HEAP32[(23032)>>2]|0;
  40977. $26 = ($20>>>0)<($25>>>0);
  40978. if ($26) {
  40979. _abort();
  40980. // unreachable;
  40981. }
  40982. $27 = ((($20)) + 12|0);
  40983. $28 = HEAP32[$27>>2]|0;
  40984. $29 = ($28|0)==($18|0);
  40985. if ($29) {
  40986. HEAP32[$27>>2] = $16;
  40987. HEAP32[$17>>2] = $20;
  40988. break;
  40989. } else {
  40990. _abort();
  40991. // unreachable;
  40992. }
  40993. }
  40994. } while(0);
  40995. $30 = $14 << 3;
  40996. $31 = $30 | 3;
  40997. $32 = ((($18)) + 4|0);
  40998. HEAP32[$32>>2] = $31;
  40999. $33 = (($18) + ($30)|0);
  41000. $34 = ((($33)) + 4|0);
  41001. $35 = HEAP32[$34>>2]|0;
  41002. $36 = $35 | 1;
  41003. HEAP32[$34>>2] = $36;
  41004. $$0 = $19;
  41005. STACKTOP = sp;return ($$0|0);
  41006. }
  41007. $37 = HEAP32[(23024)>>2]|0;
  41008. $38 = ($6>>>0)>($37>>>0);
  41009. if ($38) {
  41010. $39 = ($9|0)==(0);
  41011. if (!($39)) {
  41012. $40 = $9 << $7;
  41013. $41 = 2 << $7;
  41014. $42 = (0 - ($41))|0;
  41015. $43 = $41 | $42;
  41016. $44 = $40 & $43;
  41017. $45 = (0 - ($44))|0;
  41018. $46 = $44 & $45;
  41019. $47 = (($46) + -1)|0;
  41020. $48 = $47 >>> 12;
  41021. $49 = $48 & 16;
  41022. $50 = $47 >>> $49;
  41023. $51 = $50 >>> 5;
  41024. $52 = $51 & 8;
  41025. $53 = $52 | $49;
  41026. $54 = $50 >>> $52;
  41027. $55 = $54 >>> 2;
  41028. $56 = $55 & 4;
  41029. $57 = $53 | $56;
  41030. $58 = $54 >>> $56;
  41031. $59 = $58 >>> 1;
  41032. $60 = $59 & 2;
  41033. $61 = $57 | $60;
  41034. $62 = $58 >>> $60;
  41035. $63 = $62 >>> 1;
  41036. $64 = $63 & 1;
  41037. $65 = $61 | $64;
  41038. $66 = $62 >>> $64;
  41039. $67 = (($65) + ($66))|0;
  41040. $68 = $67 << 1;
  41041. $69 = (23056 + ($68<<2)|0);
  41042. $70 = ((($69)) + 8|0);
  41043. $71 = HEAP32[$70>>2]|0;
  41044. $72 = ((($71)) + 8|0);
  41045. $73 = HEAP32[$72>>2]|0;
  41046. $74 = ($69|0)==($73|0);
  41047. do {
  41048. if ($74) {
  41049. $75 = 1 << $67;
  41050. $76 = $75 ^ -1;
  41051. $77 = $8 & $76;
  41052. HEAP32[5754] = $77;
  41053. $98 = $77;
  41054. } else {
  41055. $78 = HEAP32[(23032)>>2]|0;
  41056. $79 = ($73>>>0)<($78>>>0);
  41057. if ($79) {
  41058. _abort();
  41059. // unreachable;
  41060. }
  41061. $80 = ((($73)) + 12|0);
  41062. $81 = HEAP32[$80>>2]|0;
  41063. $82 = ($81|0)==($71|0);
  41064. if ($82) {
  41065. HEAP32[$80>>2] = $69;
  41066. HEAP32[$70>>2] = $73;
  41067. $98 = $8;
  41068. break;
  41069. } else {
  41070. _abort();
  41071. // unreachable;
  41072. }
  41073. }
  41074. } while(0);
  41075. $83 = $67 << 3;
  41076. $84 = (($83) - ($6))|0;
  41077. $85 = $6 | 3;
  41078. $86 = ((($71)) + 4|0);
  41079. HEAP32[$86>>2] = $85;
  41080. $87 = (($71) + ($6)|0);
  41081. $88 = $84 | 1;
  41082. $89 = ((($87)) + 4|0);
  41083. HEAP32[$89>>2] = $88;
  41084. $90 = (($87) + ($84)|0);
  41085. HEAP32[$90>>2] = $84;
  41086. $91 = ($37|0)==(0);
  41087. if (!($91)) {
  41088. $92 = HEAP32[(23036)>>2]|0;
  41089. $93 = $37 >>> 3;
  41090. $94 = $93 << 1;
  41091. $95 = (23056 + ($94<<2)|0);
  41092. $96 = 1 << $93;
  41093. $97 = $98 & $96;
  41094. $99 = ($97|0)==(0);
  41095. if ($99) {
  41096. $100 = $98 | $96;
  41097. HEAP32[5754] = $100;
  41098. $$pre = ((($95)) + 8|0);
  41099. $$0199 = $95;$$pre$phiZ2D = $$pre;
  41100. } else {
  41101. $101 = ((($95)) + 8|0);
  41102. $102 = HEAP32[$101>>2]|0;
  41103. $103 = HEAP32[(23032)>>2]|0;
  41104. $104 = ($102>>>0)<($103>>>0);
  41105. if ($104) {
  41106. _abort();
  41107. // unreachable;
  41108. } else {
  41109. $$0199 = $102;$$pre$phiZ2D = $101;
  41110. }
  41111. }
  41112. HEAP32[$$pre$phiZ2D>>2] = $92;
  41113. $105 = ((($$0199)) + 12|0);
  41114. HEAP32[$105>>2] = $92;
  41115. $106 = ((($92)) + 8|0);
  41116. HEAP32[$106>>2] = $$0199;
  41117. $107 = ((($92)) + 12|0);
  41118. HEAP32[$107>>2] = $95;
  41119. }
  41120. HEAP32[(23024)>>2] = $84;
  41121. HEAP32[(23036)>>2] = $87;
  41122. $$0 = $72;
  41123. STACKTOP = sp;return ($$0|0);
  41124. }
  41125. $108 = HEAP32[(23020)>>2]|0;
  41126. $109 = ($108|0)==(0);
  41127. if ($109) {
  41128. $$0197 = $6;
  41129. } else {
  41130. $110 = (0 - ($108))|0;
  41131. $111 = $108 & $110;
  41132. $112 = (($111) + -1)|0;
  41133. $113 = $112 >>> 12;
  41134. $114 = $113 & 16;
  41135. $115 = $112 >>> $114;
  41136. $116 = $115 >>> 5;
  41137. $117 = $116 & 8;
  41138. $118 = $117 | $114;
  41139. $119 = $115 >>> $117;
  41140. $120 = $119 >>> 2;
  41141. $121 = $120 & 4;
  41142. $122 = $118 | $121;
  41143. $123 = $119 >>> $121;
  41144. $124 = $123 >>> 1;
  41145. $125 = $124 & 2;
  41146. $126 = $122 | $125;
  41147. $127 = $123 >>> $125;
  41148. $128 = $127 >>> 1;
  41149. $129 = $128 & 1;
  41150. $130 = $126 | $129;
  41151. $131 = $127 >>> $129;
  41152. $132 = (($130) + ($131))|0;
  41153. $133 = (23320 + ($132<<2)|0);
  41154. $134 = HEAP32[$133>>2]|0;
  41155. $135 = ((($134)) + 4|0);
  41156. $136 = HEAP32[$135>>2]|0;
  41157. $137 = $136 & -8;
  41158. $138 = (($137) - ($6))|0;
  41159. $139 = ((($134)) + 16|0);
  41160. $140 = HEAP32[$139>>2]|0;
  41161. $not$5$i = ($140|0)==(0|0);
  41162. $$sink16$i = $not$5$i&1;
  41163. $141 = (((($134)) + 16|0) + ($$sink16$i<<2)|0);
  41164. $142 = HEAP32[$141>>2]|0;
  41165. $143 = ($142|0)==(0|0);
  41166. if ($143) {
  41167. $$0192$lcssa$i = $134;$$0193$lcssa$i = $138;
  41168. } else {
  41169. $$01928$i = $134;$$01937$i = $138;$145 = $142;
  41170. while(1) {
  41171. $144 = ((($145)) + 4|0);
  41172. $146 = HEAP32[$144>>2]|0;
  41173. $147 = $146 & -8;
  41174. $148 = (($147) - ($6))|0;
  41175. $149 = ($148>>>0)<($$01937$i>>>0);
  41176. $$$0193$i = $149 ? $148 : $$01937$i;
  41177. $$$0192$i = $149 ? $145 : $$01928$i;
  41178. $150 = ((($145)) + 16|0);
  41179. $151 = HEAP32[$150>>2]|0;
  41180. $not$$i = ($151|0)==(0|0);
  41181. $$sink1$i = $not$$i&1;
  41182. $152 = (((($145)) + 16|0) + ($$sink1$i<<2)|0);
  41183. $153 = HEAP32[$152>>2]|0;
  41184. $154 = ($153|0)==(0|0);
  41185. if ($154) {
  41186. $$0192$lcssa$i = $$$0192$i;$$0193$lcssa$i = $$$0193$i;
  41187. break;
  41188. } else {
  41189. $$01928$i = $$$0192$i;$$01937$i = $$$0193$i;$145 = $153;
  41190. }
  41191. }
  41192. }
  41193. $155 = HEAP32[(23032)>>2]|0;
  41194. $156 = ($$0192$lcssa$i>>>0)<($155>>>0);
  41195. if ($156) {
  41196. _abort();
  41197. // unreachable;
  41198. }
  41199. $157 = (($$0192$lcssa$i) + ($6)|0);
  41200. $158 = ($$0192$lcssa$i>>>0)<($157>>>0);
  41201. if (!($158)) {
  41202. _abort();
  41203. // unreachable;
  41204. }
  41205. $159 = ((($$0192$lcssa$i)) + 24|0);
  41206. $160 = HEAP32[$159>>2]|0;
  41207. $161 = ((($$0192$lcssa$i)) + 12|0);
  41208. $162 = HEAP32[$161>>2]|0;
  41209. $163 = ($162|0)==($$0192$lcssa$i|0);
  41210. do {
  41211. if ($163) {
  41212. $173 = ((($$0192$lcssa$i)) + 20|0);
  41213. $174 = HEAP32[$173>>2]|0;
  41214. $175 = ($174|0)==(0|0);
  41215. if ($175) {
  41216. $176 = ((($$0192$lcssa$i)) + 16|0);
  41217. $177 = HEAP32[$176>>2]|0;
  41218. $178 = ($177|0)==(0|0);
  41219. if ($178) {
  41220. $$3$i = 0;
  41221. break;
  41222. } else {
  41223. $$1196$i = $177;$$1198$i = $176;
  41224. }
  41225. } else {
  41226. $$1196$i = $174;$$1198$i = $173;
  41227. }
  41228. while(1) {
  41229. $179 = ((($$1196$i)) + 20|0);
  41230. $180 = HEAP32[$179>>2]|0;
  41231. $181 = ($180|0)==(0|0);
  41232. if (!($181)) {
  41233. $$1196$i = $180;$$1198$i = $179;
  41234. continue;
  41235. }
  41236. $182 = ((($$1196$i)) + 16|0);
  41237. $183 = HEAP32[$182>>2]|0;
  41238. $184 = ($183|0)==(0|0);
  41239. if ($184) {
  41240. break;
  41241. } else {
  41242. $$1196$i = $183;$$1198$i = $182;
  41243. }
  41244. }
  41245. $185 = ($$1198$i>>>0)<($155>>>0);
  41246. if ($185) {
  41247. _abort();
  41248. // unreachable;
  41249. } else {
  41250. HEAP32[$$1198$i>>2] = 0;
  41251. $$3$i = $$1196$i;
  41252. break;
  41253. }
  41254. } else {
  41255. $164 = ((($$0192$lcssa$i)) + 8|0);
  41256. $165 = HEAP32[$164>>2]|0;
  41257. $166 = ($165>>>0)<($155>>>0);
  41258. if ($166) {
  41259. _abort();
  41260. // unreachable;
  41261. }
  41262. $167 = ((($165)) + 12|0);
  41263. $168 = HEAP32[$167>>2]|0;
  41264. $169 = ($168|0)==($$0192$lcssa$i|0);
  41265. if (!($169)) {
  41266. _abort();
  41267. // unreachable;
  41268. }
  41269. $170 = ((($162)) + 8|0);
  41270. $171 = HEAP32[$170>>2]|0;
  41271. $172 = ($171|0)==($$0192$lcssa$i|0);
  41272. if ($172) {
  41273. HEAP32[$167>>2] = $162;
  41274. HEAP32[$170>>2] = $165;
  41275. $$3$i = $162;
  41276. break;
  41277. } else {
  41278. _abort();
  41279. // unreachable;
  41280. }
  41281. }
  41282. } while(0);
  41283. $186 = ($160|0)==(0|0);
  41284. L73: do {
  41285. if (!($186)) {
  41286. $187 = ((($$0192$lcssa$i)) + 28|0);
  41287. $188 = HEAP32[$187>>2]|0;
  41288. $189 = (23320 + ($188<<2)|0);
  41289. $190 = HEAP32[$189>>2]|0;
  41290. $191 = ($$0192$lcssa$i|0)==($190|0);
  41291. do {
  41292. if ($191) {
  41293. HEAP32[$189>>2] = $$3$i;
  41294. $cond$i = ($$3$i|0)==(0|0);
  41295. if ($cond$i) {
  41296. $192 = 1 << $188;
  41297. $193 = $192 ^ -1;
  41298. $194 = $108 & $193;
  41299. HEAP32[(23020)>>2] = $194;
  41300. break L73;
  41301. }
  41302. } else {
  41303. $195 = HEAP32[(23032)>>2]|0;
  41304. $196 = ($160>>>0)<($195>>>0);
  41305. if ($196) {
  41306. _abort();
  41307. // unreachable;
  41308. } else {
  41309. $197 = ((($160)) + 16|0);
  41310. $198 = HEAP32[$197>>2]|0;
  41311. $not$1$i = ($198|0)!=($$0192$lcssa$i|0);
  41312. $$sink2$i = $not$1$i&1;
  41313. $199 = (((($160)) + 16|0) + ($$sink2$i<<2)|0);
  41314. HEAP32[$199>>2] = $$3$i;
  41315. $200 = ($$3$i|0)==(0|0);
  41316. if ($200) {
  41317. break L73;
  41318. } else {
  41319. break;
  41320. }
  41321. }
  41322. }
  41323. } while(0);
  41324. $201 = HEAP32[(23032)>>2]|0;
  41325. $202 = ($$3$i>>>0)<($201>>>0);
  41326. if ($202) {
  41327. _abort();
  41328. // unreachable;
  41329. }
  41330. $203 = ((($$3$i)) + 24|0);
  41331. HEAP32[$203>>2] = $160;
  41332. $204 = ((($$0192$lcssa$i)) + 16|0);
  41333. $205 = HEAP32[$204>>2]|0;
  41334. $206 = ($205|0)==(0|0);
  41335. do {
  41336. if (!($206)) {
  41337. $207 = ($205>>>0)<($201>>>0);
  41338. if ($207) {
  41339. _abort();
  41340. // unreachable;
  41341. } else {
  41342. $208 = ((($$3$i)) + 16|0);
  41343. HEAP32[$208>>2] = $205;
  41344. $209 = ((($205)) + 24|0);
  41345. HEAP32[$209>>2] = $$3$i;
  41346. break;
  41347. }
  41348. }
  41349. } while(0);
  41350. $210 = ((($$0192$lcssa$i)) + 20|0);
  41351. $211 = HEAP32[$210>>2]|0;
  41352. $212 = ($211|0)==(0|0);
  41353. if (!($212)) {
  41354. $213 = HEAP32[(23032)>>2]|0;
  41355. $214 = ($211>>>0)<($213>>>0);
  41356. if ($214) {
  41357. _abort();
  41358. // unreachable;
  41359. } else {
  41360. $215 = ((($$3$i)) + 20|0);
  41361. HEAP32[$215>>2] = $211;
  41362. $216 = ((($211)) + 24|0);
  41363. HEAP32[$216>>2] = $$3$i;
  41364. break;
  41365. }
  41366. }
  41367. }
  41368. } while(0);
  41369. $217 = ($$0193$lcssa$i>>>0)<(16);
  41370. if ($217) {
  41371. $218 = (($$0193$lcssa$i) + ($6))|0;
  41372. $219 = $218 | 3;
  41373. $220 = ((($$0192$lcssa$i)) + 4|0);
  41374. HEAP32[$220>>2] = $219;
  41375. $221 = (($$0192$lcssa$i) + ($218)|0);
  41376. $222 = ((($221)) + 4|0);
  41377. $223 = HEAP32[$222>>2]|0;
  41378. $224 = $223 | 1;
  41379. HEAP32[$222>>2] = $224;
  41380. } else {
  41381. $225 = $6 | 3;
  41382. $226 = ((($$0192$lcssa$i)) + 4|0);
  41383. HEAP32[$226>>2] = $225;
  41384. $227 = $$0193$lcssa$i | 1;
  41385. $228 = ((($157)) + 4|0);
  41386. HEAP32[$228>>2] = $227;
  41387. $229 = (($157) + ($$0193$lcssa$i)|0);
  41388. HEAP32[$229>>2] = $$0193$lcssa$i;
  41389. $230 = ($37|0)==(0);
  41390. if (!($230)) {
  41391. $231 = HEAP32[(23036)>>2]|0;
  41392. $232 = $37 >>> 3;
  41393. $233 = $232 << 1;
  41394. $234 = (23056 + ($233<<2)|0);
  41395. $235 = 1 << $232;
  41396. $236 = $8 & $235;
  41397. $237 = ($236|0)==(0);
  41398. if ($237) {
  41399. $238 = $8 | $235;
  41400. HEAP32[5754] = $238;
  41401. $$pre$i = ((($234)) + 8|0);
  41402. $$0189$i = $234;$$pre$phi$iZ2D = $$pre$i;
  41403. } else {
  41404. $239 = ((($234)) + 8|0);
  41405. $240 = HEAP32[$239>>2]|0;
  41406. $241 = HEAP32[(23032)>>2]|0;
  41407. $242 = ($240>>>0)<($241>>>0);
  41408. if ($242) {
  41409. _abort();
  41410. // unreachable;
  41411. } else {
  41412. $$0189$i = $240;$$pre$phi$iZ2D = $239;
  41413. }
  41414. }
  41415. HEAP32[$$pre$phi$iZ2D>>2] = $231;
  41416. $243 = ((($$0189$i)) + 12|0);
  41417. HEAP32[$243>>2] = $231;
  41418. $244 = ((($231)) + 8|0);
  41419. HEAP32[$244>>2] = $$0189$i;
  41420. $245 = ((($231)) + 12|0);
  41421. HEAP32[$245>>2] = $234;
  41422. }
  41423. HEAP32[(23024)>>2] = $$0193$lcssa$i;
  41424. HEAP32[(23036)>>2] = $157;
  41425. }
  41426. $246 = ((($$0192$lcssa$i)) + 8|0);
  41427. $$0 = $246;
  41428. STACKTOP = sp;return ($$0|0);
  41429. }
  41430. } else {
  41431. $$0197 = $6;
  41432. }
  41433. } else {
  41434. $247 = ($0>>>0)>(4294967231);
  41435. if ($247) {
  41436. $$0197 = -1;
  41437. } else {
  41438. $248 = (($0) + 11)|0;
  41439. $249 = $248 & -8;
  41440. $250 = HEAP32[(23020)>>2]|0;
  41441. $251 = ($250|0)==(0);
  41442. if ($251) {
  41443. $$0197 = $249;
  41444. } else {
  41445. $252 = (0 - ($249))|0;
  41446. $253 = $248 >>> 8;
  41447. $254 = ($253|0)==(0);
  41448. if ($254) {
  41449. $$0358$i = 0;
  41450. } else {
  41451. $255 = ($249>>>0)>(16777215);
  41452. if ($255) {
  41453. $$0358$i = 31;
  41454. } else {
  41455. $256 = (($253) + 1048320)|0;
  41456. $257 = $256 >>> 16;
  41457. $258 = $257 & 8;
  41458. $259 = $253 << $258;
  41459. $260 = (($259) + 520192)|0;
  41460. $261 = $260 >>> 16;
  41461. $262 = $261 & 4;
  41462. $263 = $262 | $258;
  41463. $264 = $259 << $262;
  41464. $265 = (($264) + 245760)|0;
  41465. $266 = $265 >>> 16;
  41466. $267 = $266 & 2;
  41467. $268 = $263 | $267;
  41468. $269 = (14 - ($268))|0;
  41469. $270 = $264 << $267;
  41470. $271 = $270 >>> 15;
  41471. $272 = (($269) + ($271))|0;
  41472. $273 = $272 << 1;
  41473. $274 = (($272) + 7)|0;
  41474. $275 = $249 >>> $274;
  41475. $276 = $275 & 1;
  41476. $277 = $276 | $273;
  41477. $$0358$i = $277;
  41478. }
  41479. }
  41480. $278 = (23320 + ($$0358$i<<2)|0);
  41481. $279 = HEAP32[$278>>2]|0;
  41482. $280 = ($279|0)==(0|0);
  41483. L117: do {
  41484. if ($280) {
  41485. $$2355$i = 0;$$3$i201 = 0;$$3350$i = $252;
  41486. label = 81;
  41487. } else {
  41488. $281 = ($$0358$i|0)==(31);
  41489. $282 = $$0358$i >>> 1;
  41490. $283 = (25 - ($282))|0;
  41491. $284 = $281 ? 0 : $283;
  41492. $285 = $249 << $284;
  41493. $$0342$i = 0;$$0347$i = $252;$$0353$i = $279;$$0359$i = $285;$$0362$i = 0;
  41494. while(1) {
  41495. $286 = ((($$0353$i)) + 4|0);
  41496. $287 = HEAP32[$286>>2]|0;
  41497. $288 = $287 & -8;
  41498. $289 = (($288) - ($249))|0;
  41499. $290 = ($289>>>0)<($$0347$i>>>0);
  41500. if ($290) {
  41501. $291 = ($289|0)==(0);
  41502. if ($291) {
  41503. $$415$i = $$0353$i;$$435114$i = 0;$$435713$i = $$0353$i;
  41504. label = 85;
  41505. break L117;
  41506. } else {
  41507. $$1343$i = $$0353$i;$$1348$i = $289;
  41508. }
  41509. } else {
  41510. $$1343$i = $$0342$i;$$1348$i = $$0347$i;
  41511. }
  41512. $292 = ((($$0353$i)) + 20|0);
  41513. $293 = HEAP32[$292>>2]|0;
  41514. $294 = $$0359$i >>> 31;
  41515. $295 = (((($$0353$i)) + 16|0) + ($294<<2)|0);
  41516. $296 = HEAP32[$295>>2]|0;
  41517. $297 = ($293|0)==(0|0);
  41518. $298 = ($293|0)==($296|0);
  41519. $or$cond2$i = $297 | $298;
  41520. $$1363$i = $or$cond2$i ? $$0362$i : $293;
  41521. $299 = ($296|0)==(0|0);
  41522. $not$8$i = $299 ^ 1;
  41523. $300 = $not$8$i&1;
  41524. $$0359$$i = $$0359$i << $300;
  41525. if ($299) {
  41526. $$2355$i = $$1363$i;$$3$i201 = $$1343$i;$$3350$i = $$1348$i;
  41527. label = 81;
  41528. break;
  41529. } else {
  41530. $$0342$i = $$1343$i;$$0347$i = $$1348$i;$$0353$i = $296;$$0359$i = $$0359$$i;$$0362$i = $$1363$i;
  41531. }
  41532. }
  41533. }
  41534. } while(0);
  41535. if ((label|0) == 81) {
  41536. $301 = ($$2355$i|0)==(0|0);
  41537. $302 = ($$3$i201|0)==(0|0);
  41538. $or$cond$i = $301 & $302;
  41539. if ($or$cond$i) {
  41540. $303 = 2 << $$0358$i;
  41541. $304 = (0 - ($303))|0;
  41542. $305 = $303 | $304;
  41543. $306 = $250 & $305;
  41544. $307 = ($306|0)==(0);
  41545. if ($307) {
  41546. $$0197 = $249;
  41547. break;
  41548. }
  41549. $308 = (0 - ($306))|0;
  41550. $309 = $306 & $308;
  41551. $310 = (($309) + -1)|0;
  41552. $311 = $310 >>> 12;
  41553. $312 = $311 & 16;
  41554. $313 = $310 >>> $312;
  41555. $314 = $313 >>> 5;
  41556. $315 = $314 & 8;
  41557. $316 = $315 | $312;
  41558. $317 = $313 >>> $315;
  41559. $318 = $317 >>> 2;
  41560. $319 = $318 & 4;
  41561. $320 = $316 | $319;
  41562. $321 = $317 >>> $319;
  41563. $322 = $321 >>> 1;
  41564. $323 = $322 & 2;
  41565. $324 = $320 | $323;
  41566. $325 = $321 >>> $323;
  41567. $326 = $325 >>> 1;
  41568. $327 = $326 & 1;
  41569. $328 = $324 | $327;
  41570. $329 = $325 >>> $327;
  41571. $330 = (($328) + ($329))|0;
  41572. $331 = (23320 + ($330<<2)|0);
  41573. $332 = HEAP32[$331>>2]|0;
  41574. $$4$ph$i = 0;$$4357$ph$i = $332;
  41575. } else {
  41576. $$4$ph$i = $$3$i201;$$4357$ph$i = $$2355$i;
  41577. }
  41578. $333 = ($$4357$ph$i|0)==(0|0);
  41579. if ($333) {
  41580. $$4$lcssa$i = $$4$ph$i;$$4351$lcssa$i = $$3350$i;
  41581. } else {
  41582. $$415$i = $$4$ph$i;$$435114$i = $$3350$i;$$435713$i = $$4357$ph$i;
  41583. label = 85;
  41584. }
  41585. }
  41586. if ((label|0) == 85) {
  41587. while(1) {
  41588. label = 0;
  41589. $334 = ((($$435713$i)) + 4|0);
  41590. $335 = HEAP32[$334>>2]|0;
  41591. $336 = $335 & -8;
  41592. $337 = (($336) - ($249))|0;
  41593. $338 = ($337>>>0)<($$435114$i>>>0);
  41594. $$$4351$i = $338 ? $337 : $$435114$i;
  41595. $$4357$$4$i = $338 ? $$435713$i : $$415$i;
  41596. $339 = ((($$435713$i)) + 16|0);
  41597. $340 = HEAP32[$339>>2]|0;
  41598. $not$1$i203 = ($340|0)==(0|0);
  41599. $$sink2$i204 = $not$1$i203&1;
  41600. $341 = (((($$435713$i)) + 16|0) + ($$sink2$i204<<2)|0);
  41601. $342 = HEAP32[$341>>2]|0;
  41602. $343 = ($342|0)==(0|0);
  41603. if ($343) {
  41604. $$4$lcssa$i = $$4357$$4$i;$$4351$lcssa$i = $$$4351$i;
  41605. break;
  41606. } else {
  41607. $$415$i = $$4357$$4$i;$$435114$i = $$$4351$i;$$435713$i = $342;
  41608. label = 85;
  41609. }
  41610. }
  41611. }
  41612. $344 = ($$4$lcssa$i|0)==(0|0);
  41613. if ($344) {
  41614. $$0197 = $249;
  41615. } else {
  41616. $345 = HEAP32[(23024)>>2]|0;
  41617. $346 = (($345) - ($249))|0;
  41618. $347 = ($$4351$lcssa$i>>>0)<($346>>>0);
  41619. if ($347) {
  41620. $348 = HEAP32[(23032)>>2]|0;
  41621. $349 = ($$4$lcssa$i>>>0)<($348>>>0);
  41622. if ($349) {
  41623. _abort();
  41624. // unreachable;
  41625. }
  41626. $350 = (($$4$lcssa$i) + ($249)|0);
  41627. $351 = ($$4$lcssa$i>>>0)<($350>>>0);
  41628. if (!($351)) {
  41629. _abort();
  41630. // unreachable;
  41631. }
  41632. $352 = ((($$4$lcssa$i)) + 24|0);
  41633. $353 = HEAP32[$352>>2]|0;
  41634. $354 = ((($$4$lcssa$i)) + 12|0);
  41635. $355 = HEAP32[$354>>2]|0;
  41636. $356 = ($355|0)==($$4$lcssa$i|0);
  41637. do {
  41638. if ($356) {
  41639. $366 = ((($$4$lcssa$i)) + 20|0);
  41640. $367 = HEAP32[$366>>2]|0;
  41641. $368 = ($367|0)==(0|0);
  41642. if ($368) {
  41643. $369 = ((($$4$lcssa$i)) + 16|0);
  41644. $370 = HEAP32[$369>>2]|0;
  41645. $371 = ($370|0)==(0|0);
  41646. if ($371) {
  41647. $$3372$i = 0;
  41648. break;
  41649. } else {
  41650. $$1370$i = $370;$$1374$i = $369;
  41651. }
  41652. } else {
  41653. $$1370$i = $367;$$1374$i = $366;
  41654. }
  41655. while(1) {
  41656. $372 = ((($$1370$i)) + 20|0);
  41657. $373 = HEAP32[$372>>2]|0;
  41658. $374 = ($373|0)==(0|0);
  41659. if (!($374)) {
  41660. $$1370$i = $373;$$1374$i = $372;
  41661. continue;
  41662. }
  41663. $375 = ((($$1370$i)) + 16|0);
  41664. $376 = HEAP32[$375>>2]|0;
  41665. $377 = ($376|0)==(0|0);
  41666. if ($377) {
  41667. break;
  41668. } else {
  41669. $$1370$i = $376;$$1374$i = $375;
  41670. }
  41671. }
  41672. $378 = ($$1374$i>>>0)<($348>>>0);
  41673. if ($378) {
  41674. _abort();
  41675. // unreachable;
  41676. } else {
  41677. HEAP32[$$1374$i>>2] = 0;
  41678. $$3372$i = $$1370$i;
  41679. break;
  41680. }
  41681. } else {
  41682. $357 = ((($$4$lcssa$i)) + 8|0);
  41683. $358 = HEAP32[$357>>2]|0;
  41684. $359 = ($358>>>0)<($348>>>0);
  41685. if ($359) {
  41686. _abort();
  41687. // unreachable;
  41688. }
  41689. $360 = ((($358)) + 12|0);
  41690. $361 = HEAP32[$360>>2]|0;
  41691. $362 = ($361|0)==($$4$lcssa$i|0);
  41692. if (!($362)) {
  41693. _abort();
  41694. // unreachable;
  41695. }
  41696. $363 = ((($355)) + 8|0);
  41697. $364 = HEAP32[$363>>2]|0;
  41698. $365 = ($364|0)==($$4$lcssa$i|0);
  41699. if ($365) {
  41700. HEAP32[$360>>2] = $355;
  41701. HEAP32[$363>>2] = $358;
  41702. $$3372$i = $355;
  41703. break;
  41704. } else {
  41705. _abort();
  41706. // unreachable;
  41707. }
  41708. }
  41709. } while(0);
  41710. $379 = ($353|0)==(0|0);
  41711. L164: do {
  41712. if ($379) {
  41713. $470 = $250;
  41714. } else {
  41715. $380 = ((($$4$lcssa$i)) + 28|0);
  41716. $381 = HEAP32[$380>>2]|0;
  41717. $382 = (23320 + ($381<<2)|0);
  41718. $383 = HEAP32[$382>>2]|0;
  41719. $384 = ($$4$lcssa$i|0)==($383|0);
  41720. do {
  41721. if ($384) {
  41722. HEAP32[$382>>2] = $$3372$i;
  41723. $cond$i208 = ($$3372$i|0)==(0|0);
  41724. if ($cond$i208) {
  41725. $385 = 1 << $381;
  41726. $386 = $385 ^ -1;
  41727. $387 = $250 & $386;
  41728. HEAP32[(23020)>>2] = $387;
  41729. $470 = $387;
  41730. break L164;
  41731. }
  41732. } else {
  41733. $388 = HEAP32[(23032)>>2]|0;
  41734. $389 = ($353>>>0)<($388>>>0);
  41735. if ($389) {
  41736. _abort();
  41737. // unreachable;
  41738. } else {
  41739. $390 = ((($353)) + 16|0);
  41740. $391 = HEAP32[$390>>2]|0;
  41741. $not$$i209 = ($391|0)!=($$4$lcssa$i|0);
  41742. $$sink3$i = $not$$i209&1;
  41743. $392 = (((($353)) + 16|0) + ($$sink3$i<<2)|0);
  41744. HEAP32[$392>>2] = $$3372$i;
  41745. $393 = ($$3372$i|0)==(0|0);
  41746. if ($393) {
  41747. $470 = $250;
  41748. break L164;
  41749. } else {
  41750. break;
  41751. }
  41752. }
  41753. }
  41754. } while(0);
  41755. $394 = HEAP32[(23032)>>2]|0;
  41756. $395 = ($$3372$i>>>0)<($394>>>0);
  41757. if ($395) {
  41758. _abort();
  41759. // unreachable;
  41760. }
  41761. $396 = ((($$3372$i)) + 24|0);
  41762. HEAP32[$396>>2] = $353;
  41763. $397 = ((($$4$lcssa$i)) + 16|0);
  41764. $398 = HEAP32[$397>>2]|0;
  41765. $399 = ($398|0)==(0|0);
  41766. do {
  41767. if (!($399)) {
  41768. $400 = ($398>>>0)<($394>>>0);
  41769. if ($400) {
  41770. _abort();
  41771. // unreachable;
  41772. } else {
  41773. $401 = ((($$3372$i)) + 16|0);
  41774. HEAP32[$401>>2] = $398;
  41775. $402 = ((($398)) + 24|0);
  41776. HEAP32[$402>>2] = $$3372$i;
  41777. break;
  41778. }
  41779. }
  41780. } while(0);
  41781. $403 = ((($$4$lcssa$i)) + 20|0);
  41782. $404 = HEAP32[$403>>2]|0;
  41783. $405 = ($404|0)==(0|0);
  41784. if ($405) {
  41785. $470 = $250;
  41786. } else {
  41787. $406 = HEAP32[(23032)>>2]|0;
  41788. $407 = ($404>>>0)<($406>>>0);
  41789. if ($407) {
  41790. _abort();
  41791. // unreachable;
  41792. } else {
  41793. $408 = ((($$3372$i)) + 20|0);
  41794. HEAP32[$408>>2] = $404;
  41795. $409 = ((($404)) + 24|0);
  41796. HEAP32[$409>>2] = $$3372$i;
  41797. $470 = $250;
  41798. break;
  41799. }
  41800. }
  41801. }
  41802. } while(0);
  41803. $410 = ($$4351$lcssa$i>>>0)<(16);
  41804. do {
  41805. if ($410) {
  41806. $411 = (($$4351$lcssa$i) + ($249))|0;
  41807. $412 = $411 | 3;
  41808. $413 = ((($$4$lcssa$i)) + 4|0);
  41809. HEAP32[$413>>2] = $412;
  41810. $414 = (($$4$lcssa$i) + ($411)|0);
  41811. $415 = ((($414)) + 4|0);
  41812. $416 = HEAP32[$415>>2]|0;
  41813. $417 = $416 | 1;
  41814. HEAP32[$415>>2] = $417;
  41815. } else {
  41816. $418 = $249 | 3;
  41817. $419 = ((($$4$lcssa$i)) + 4|0);
  41818. HEAP32[$419>>2] = $418;
  41819. $420 = $$4351$lcssa$i | 1;
  41820. $421 = ((($350)) + 4|0);
  41821. HEAP32[$421>>2] = $420;
  41822. $422 = (($350) + ($$4351$lcssa$i)|0);
  41823. HEAP32[$422>>2] = $$4351$lcssa$i;
  41824. $423 = $$4351$lcssa$i >>> 3;
  41825. $424 = ($$4351$lcssa$i>>>0)<(256);
  41826. if ($424) {
  41827. $425 = $423 << 1;
  41828. $426 = (23056 + ($425<<2)|0);
  41829. $427 = HEAP32[5754]|0;
  41830. $428 = 1 << $423;
  41831. $429 = $427 & $428;
  41832. $430 = ($429|0)==(0);
  41833. if ($430) {
  41834. $431 = $427 | $428;
  41835. HEAP32[5754] = $431;
  41836. $$pre$i210 = ((($426)) + 8|0);
  41837. $$0368$i = $426;$$pre$phi$i211Z2D = $$pre$i210;
  41838. } else {
  41839. $432 = ((($426)) + 8|0);
  41840. $433 = HEAP32[$432>>2]|0;
  41841. $434 = HEAP32[(23032)>>2]|0;
  41842. $435 = ($433>>>0)<($434>>>0);
  41843. if ($435) {
  41844. _abort();
  41845. // unreachable;
  41846. } else {
  41847. $$0368$i = $433;$$pre$phi$i211Z2D = $432;
  41848. }
  41849. }
  41850. HEAP32[$$pre$phi$i211Z2D>>2] = $350;
  41851. $436 = ((($$0368$i)) + 12|0);
  41852. HEAP32[$436>>2] = $350;
  41853. $437 = ((($350)) + 8|0);
  41854. HEAP32[$437>>2] = $$0368$i;
  41855. $438 = ((($350)) + 12|0);
  41856. HEAP32[$438>>2] = $426;
  41857. break;
  41858. }
  41859. $439 = $$4351$lcssa$i >>> 8;
  41860. $440 = ($439|0)==(0);
  41861. if ($440) {
  41862. $$0361$i = 0;
  41863. } else {
  41864. $441 = ($$4351$lcssa$i>>>0)>(16777215);
  41865. if ($441) {
  41866. $$0361$i = 31;
  41867. } else {
  41868. $442 = (($439) + 1048320)|0;
  41869. $443 = $442 >>> 16;
  41870. $444 = $443 & 8;
  41871. $445 = $439 << $444;
  41872. $446 = (($445) + 520192)|0;
  41873. $447 = $446 >>> 16;
  41874. $448 = $447 & 4;
  41875. $449 = $448 | $444;
  41876. $450 = $445 << $448;
  41877. $451 = (($450) + 245760)|0;
  41878. $452 = $451 >>> 16;
  41879. $453 = $452 & 2;
  41880. $454 = $449 | $453;
  41881. $455 = (14 - ($454))|0;
  41882. $456 = $450 << $453;
  41883. $457 = $456 >>> 15;
  41884. $458 = (($455) + ($457))|0;
  41885. $459 = $458 << 1;
  41886. $460 = (($458) + 7)|0;
  41887. $461 = $$4351$lcssa$i >>> $460;
  41888. $462 = $461 & 1;
  41889. $463 = $462 | $459;
  41890. $$0361$i = $463;
  41891. }
  41892. }
  41893. $464 = (23320 + ($$0361$i<<2)|0);
  41894. $465 = ((($350)) + 28|0);
  41895. HEAP32[$465>>2] = $$0361$i;
  41896. $466 = ((($350)) + 16|0);
  41897. $467 = ((($466)) + 4|0);
  41898. HEAP32[$467>>2] = 0;
  41899. HEAP32[$466>>2] = 0;
  41900. $468 = 1 << $$0361$i;
  41901. $469 = $470 & $468;
  41902. $471 = ($469|0)==(0);
  41903. if ($471) {
  41904. $472 = $470 | $468;
  41905. HEAP32[(23020)>>2] = $472;
  41906. HEAP32[$464>>2] = $350;
  41907. $473 = ((($350)) + 24|0);
  41908. HEAP32[$473>>2] = $464;
  41909. $474 = ((($350)) + 12|0);
  41910. HEAP32[$474>>2] = $350;
  41911. $475 = ((($350)) + 8|0);
  41912. HEAP32[$475>>2] = $350;
  41913. break;
  41914. }
  41915. $476 = HEAP32[$464>>2]|0;
  41916. $477 = ($$0361$i|0)==(31);
  41917. $478 = $$0361$i >>> 1;
  41918. $479 = (25 - ($478))|0;
  41919. $480 = $477 ? 0 : $479;
  41920. $481 = $$4351$lcssa$i << $480;
  41921. $$0344$i = $481;$$0345$i = $476;
  41922. while(1) {
  41923. $482 = ((($$0345$i)) + 4|0);
  41924. $483 = HEAP32[$482>>2]|0;
  41925. $484 = $483 & -8;
  41926. $485 = ($484|0)==($$4351$lcssa$i|0);
  41927. if ($485) {
  41928. label = 139;
  41929. break;
  41930. }
  41931. $486 = $$0344$i >>> 31;
  41932. $487 = (((($$0345$i)) + 16|0) + ($486<<2)|0);
  41933. $488 = $$0344$i << 1;
  41934. $489 = HEAP32[$487>>2]|0;
  41935. $490 = ($489|0)==(0|0);
  41936. if ($490) {
  41937. label = 136;
  41938. break;
  41939. } else {
  41940. $$0344$i = $488;$$0345$i = $489;
  41941. }
  41942. }
  41943. if ((label|0) == 136) {
  41944. $491 = HEAP32[(23032)>>2]|0;
  41945. $492 = ($487>>>0)<($491>>>0);
  41946. if ($492) {
  41947. _abort();
  41948. // unreachable;
  41949. } else {
  41950. HEAP32[$487>>2] = $350;
  41951. $493 = ((($350)) + 24|0);
  41952. HEAP32[$493>>2] = $$0345$i;
  41953. $494 = ((($350)) + 12|0);
  41954. HEAP32[$494>>2] = $350;
  41955. $495 = ((($350)) + 8|0);
  41956. HEAP32[$495>>2] = $350;
  41957. break;
  41958. }
  41959. }
  41960. else if ((label|0) == 139) {
  41961. $496 = ((($$0345$i)) + 8|0);
  41962. $497 = HEAP32[$496>>2]|0;
  41963. $498 = HEAP32[(23032)>>2]|0;
  41964. $499 = ($497>>>0)>=($498>>>0);
  41965. $not$9$i = ($$0345$i>>>0)>=($498>>>0);
  41966. $500 = $499 & $not$9$i;
  41967. if ($500) {
  41968. $501 = ((($497)) + 12|0);
  41969. HEAP32[$501>>2] = $350;
  41970. HEAP32[$496>>2] = $350;
  41971. $502 = ((($350)) + 8|0);
  41972. HEAP32[$502>>2] = $497;
  41973. $503 = ((($350)) + 12|0);
  41974. HEAP32[$503>>2] = $$0345$i;
  41975. $504 = ((($350)) + 24|0);
  41976. HEAP32[$504>>2] = 0;
  41977. break;
  41978. } else {
  41979. _abort();
  41980. // unreachable;
  41981. }
  41982. }
  41983. }
  41984. } while(0);
  41985. $505 = ((($$4$lcssa$i)) + 8|0);
  41986. $$0 = $505;
  41987. STACKTOP = sp;return ($$0|0);
  41988. } else {
  41989. $$0197 = $249;
  41990. }
  41991. }
  41992. }
  41993. }
  41994. }
  41995. } while(0);
  41996. $506 = HEAP32[(23024)>>2]|0;
  41997. $507 = ($506>>>0)<($$0197>>>0);
  41998. if (!($507)) {
  41999. $508 = (($506) - ($$0197))|0;
  42000. $509 = HEAP32[(23036)>>2]|0;
  42001. $510 = ($508>>>0)>(15);
  42002. if ($510) {
  42003. $511 = (($509) + ($$0197)|0);
  42004. HEAP32[(23036)>>2] = $511;
  42005. HEAP32[(23024)>>2] = $508;
  42006. $512 = $508 | 1;
  42007. $513 = ((($511)) + 4|0);
  42008. HEAP32[$513>>2] = $512;
  42009. $514 = (($511) + ($508)|0);
  42010. HEAP32[$514>>2] = $508;
  42011. $515 = $$0197 | 3;
  42012. $516 = ((($509)) + 4|0);
  42013. HEAP32[$516>>2] = $515;
  42014. } else {
  42015. HEAP32[(23024)>>2] = 0;
  42016. HEAP32[(23036)>>2] = 0;
  42017. $517 = $506 | 3;
  42018. $518 = ((($509)) + 4|0);
  42019. HEAP32[$518>>2] = $517;
  42020. $519 = (($509) + ($506)|0);
  42021. $520 = ((($519)) + 4|0);
  42022. $521 = HEAP32[$520>>2]|0;
  42023. $522 = $521 | 1;
  42024. HEAP32[$520>>2] = $522;
  42025. }
  42026. $523 = ((($509)) + 8|0);
  42027. $$0 = $523;
  42028. STACKTOP = sp;return ($$0|0);
  42029. }
  42030. $524 = HEAP32[(23028)>>2]|0;
  42031. $525 = ($524>>>0)>($$0197>>>0);
  42032. if ($525) {
  42033. $526 = (($524) - ($$0197))|0;
  42034. HEAP32[(23028)>>2] = $526;
  42035. $527 = HEAP32[(23040)>>2]|0;
  42036. $528 = (($527) + ($$0197)|0);
  42037. HEAP32[(23040)>>2] = $528;
  42038. $529 = $526 | 1;
  42039. $530 = ((($528)) + 4|0);
  42040. HEAP32[$530>>2] = $529;
  42041. $531 = $$0197 | 3;
  42042. $532 = ((($527)) + 4|0);
  42043. HEAP32[$532>>2] = $531;
  42044. $533 = ((($527)) + 8|0);
  42045. $$0 = $533;
  42046. STACKTOP = sp;return ($$0|0);
  42047. }
  42048. $534 = HEAP32[5872]|0;
  42049. $535 = ($534|0)==(0);
  42050. if ($535) {
  42051. HEAP32[(23496)>>2] = 4096;
  42052. HEAP32[(23492)>>2] = 4096;
  42053. HEAP32[(23500)>>2] = -1;
  42054. HEAP32[(23504)>>2] = -1;
  42055. HEAP32[(23508)>>2] = 0;
  42056. HEAP32[(23460)>>2] = 0;
  42057. $536 = $1;
  42058. $537 = $536 & -16;
  42059. $538 = $537 ^ 1431655768;
  42060. HEAP32[$1>>2] = $538;
  42061. HEAP32[5872] = $538;
  42062. $542 = 4096;
  42063. } else {
  42064. $$pre$i212 = HEAP32[(23496)>>2]|0;
  42065. $542 = $$pre$i212;
  42066. }
  42067. $539 = (($$0197) + 48)|0;
  42068. $540 = (($$0197) + 47)|0;
  42069. $541 = (($542) + ($540))|0;
  42070. $543 = (0 - ($542))|0;
  42071. $544 = $541 & $543;
  42072. $545 = ($544>>>0)>($$0197>>>0);
  42073. if (!($545)) {
  42074. $$0 = 0;
  42075. STACKTOP = sp;return ($$0|0);
  42076. }
  42077. $546 = HEAP32[(23456)>>2]|0;
  42078. $547 = ($546|0)==(0);
  42079. if (!($547)) {
  42080. $548 = HEAP32[(23448)>>2]|0;
  42081. $549 = (($548) + ($544))|0;
  42082. $550 = ($549>>>0)<=($548>>>0);
  42083. $551 = ($549>>>0)>($546>>>0);
  42084. $or$cond1$i = $550 | $551;
  42085. if ($or$cond1$i) {
  42086. $$0 = 0;
  42087. STACKTOP = sp;return ($$0|0);
  42088. }
  42089. }
  42090. $552 = HEAP32[(23460)>>2]|0;
  42091. $553 = $552 & 4;
  42092. $554 = ($553|0)==(0);
  42093. L244: do {
  42094. if ($554) {
  42095. $555 = HEAP32[(23040)>>2]|0;
  42096. $556 = ($555|0)==(0|0);
  42097. L246: do {
  42098. if ($556) {
  42099. label = 163;
  42100. } else {
  42101. $$0$i$i = (23464);
  42102. while(1) {
  42103. $557 = HEAP32[$$0$i$i>>2]|0;
  42104. $558 = ($557>>>0)>($555>>>0);
  42105. if (!($558)) {
  42106. $559 = ((($$0$i$i)) + 4|0);
  42107. $560 = HEAP32[$559>>2]|0;
  42108. $561 = (($557) + ($560)|0);
  42109. $562 = ($561>>>0)>($555>>>0);
  42110. if ($562) {
  42111. break;
  42112. }
  42113. }
  42114. $563 = ((($$0$i$i)) + 8|0);
  42115. $564 = HEAP32[$563>>2]|0;
  42116. $565 = ($564|0)==(0|0);
  42117. if ($565) {
  42118. label = 163;
  42119. break L246;
  42120. } else {
  42121. $$0$i$i = $564;
  42122. }
  42123. }
  42124. $588 = (($541) - ($524))|0;
  42125. $589 = $588 & $543;
  42126. $590 = ($589>>>0)<(2147483647);
  42127. if ($590) {
  42128. $591 = (_sbrk(($589|0))|0);
  42129. $592 = HEAP32[$$0$i$i>>2]|0;
  42130. $593 = HEAP32[$559>>2]|0;
  42131. $594 = (($592) + ($593)|0);
  42132. $595 = ($591|0)==($594|0);
  42133. if ($595) {
  42134. $596 = ($591|0)==((-1)|0);
  42135. if ($596) {
  42136. $$2234253237$i = $589;
  42137. } else {
  42138. $$723948$i = $589;$$749$i = $591;
  42139. label = 180;
  42140. break L244;
  42141. }
  42142. } else {
  42143. $$2247$ph$i = $591;$$2253$ph$i = $589;
  42144. label = 171;
  42145. }
  42146. } else {
  42147. $$2234253237$i = 0;
  42148. }
  42149. }
  42150. } while(0);
  42151. do {
  42152. if ((label|0) == 163) {
  42153. $566 = (_sbrk(0)|0);
  42154. $567 = ($566|0)==((-1)|0);
  42155. if ($567) {
  42156. $$2234253237$i = 0;
  42157. } else {
  42158. $568 = $566;
  42159. $569 = HEAP32[(23492)>>2]|0;
  42160. $570 = (($569) + -1)|0;
  42161. $571 = $570 & $568;
  42162. $572 = ($571|0)==(0);
  42163. $573 = (($570) + ($568))|0;
  42164. $574 = (0 - ($569))|0;
  42165. $575 = $573 & $574;
  42166. $576 = (($575) - ($568))|0;
  42167. $577 = $572 ? 0 : $576;
  42168. $$$i = (($577) + ($544))|0;
  42169. $578 = HEAP32[(23448)>>2]|0;
  42170. $579 = (($$$i) + ($578))|0;
  42171. $580 = ($$$i>>>0)>($$0197>>>0);
  42172. $581 = ($$$i>>>0)<(2147483647);
  42173. $or$cond$i214 = $580 & $581;
  42174. if ($or$cond$i214) {
  42175. $582 = HEAP32[(23456)>>2]|0;
  42176. $583 = ($582|0)==(0);
  42177. if (!($583)) {
  42178. $584 = ($579>>>0)<=($578>>>0);
  42179. $585 = ($579>>>0)>($582>>>0);
  42180. $or$cond2$i215 = $584 | $585;
  42181. if ($or$cond2$i215) {
  42182. $$2234253237$i = 0;
  42183. break;
  42184. }
  42185. }
  42186. $586 = (_sbrk(($$$i|0))|0);
  42187. $587 = ($586|0)==($566|0);
  42188. if ($587) {
  42189. $$723948$i = $$$i;$$749$i = $566;
  42190. label = 180;
  42191. break L244;
  42192. } else {
  42193. $$2247$ph$i = $586;$$2253$ph$i = $$$i;
  42194. label = 171;
  42195. }
  42196. } else {
  42197. $$2234253237$i = 0;
  42198. }
  42199. }
  42200. }
  42201. } while(0);
  42202. do {
  42203. if ((label|0) == 171) {
  42204. $597 = (0 - ($$2253$ph$i))|0;
  42205. $598 = ($$2247$ph$i|0)!=((-1)|0);
  42206. $599 = ($$2253$ph$i>>>0)<(2147483647);
  42207. $or$cond7$i = $599 & $598;
  42208. $600 = ($539>>>0)>($$2253$ph$i>>>0);
  42209. $or$cond10$i = $600 & $or$cond7$i;
  42210. if (!($or$cond10$i)) {
  42211. $610 = ($$2247$ph$i|0)==((-1)|0);
  42212. if ($610) {
  42213. $$2234253237$i = 0;
  42214. break;
  42215. } else {
  42216. $$723948$i = $$2253$ph$i;$$749$i = $$2247$ph$i;
  42217. label = 180;
  42218. break L244;
  42219. }
  42220. }
  42221. $601 = HEAP32[(23496)>>2]|0;
  42222. $602 = (($540) - ($$2253$ph$i))|0;
  42223. $603 = (($602) + ($601))|0;
  42224. $604 = (0 - ($601))|0;
  42225. $605 = $603 & $604;
  42226. $606 = ($605>>>0)<(2147483647);
  42227. if (!($606)) {
  42228. $$723948$i = $$2253$ph$i;$$749$i = $$2247$ph$i;
  42229. label = 180;
  42230. break L244;
  42231. }
  42232. $607 = (_sbrk(($605|0))|0);
  42233. $608 = ($607|0)==((-1)|0);
  42234. if ($608) {
  42235. (_sbrk(($597|0))|0);
  42236. $$2234253237$i = 0;
  42237. break;
  42238. } else {
  42239. $609 = (($605) + ($$2253$ph$i))|0;
  42240. $$723948$i = $609;$$749$i = $$2247$ph$i;
  42241. label = 180;
  42242. break L244;
  42243. }
  42244. }
  42245. } while(0);
  42246. $611 = HEAP32[(23460)>>2]|0;
  42247. $612 = $611 | 4;
  42248. HEAP32[(23460)>>2] = $612;
  42249. $$4236$i = $$2234253237$i;
  42250. label = 178;
  42251. } else {
  42252. $$4236$i = 0;
  42253. label = 178;
  42254. }
  42255. } while(0);
  42256. if ((label|0) == 178) {
  42257. $613 = ($544>>>0)<(2147483647);
  42258. if ($613) {
  42259. $614 = (_sbrk(($544|0))|0);
  42260. $615 = (_sbrk(0)|0);
  42261. $616 = ($614|0)!=((-1)|0);
  42262. $617 = ($615|0)!=((-1)|0);
  42263. $or$cond5$i = $616 & $617;
  42264. $618 = ($614>>>0)<($615>>>0);
  42265. $or$cond11$i = $618 & $or$cond5$i;
  42266. $619 = $615;
  42267. $620 = $614;
  42268. $621 = (($619) - ($620))|0;
  42269. $622 = (($$0197) + 40)|0;
  42270. $623 = ($621>>>0)>($622>>>0);
  42271. $$$4236$i = $623 ? $621 : $$4236$i;
  42272. $or$cond11$not$i = $or$cond11$i ^ 1;
  42273. $624 = ($614|0)==((-1)|0);
  42274. $not$$i216 = $623 ^ 1;
  42275. $625 = $624 | $not$$i216;
  42276. $or$cond50$i = $625 | $or$cond11$not$i;
  42277. if (!($or$cond50$i)) {
  42278. $$723948$i = $$$4236$i;$$749$i = $614;
  42279. label = 180;
  42280. }
  42281. }
  42282. }
  42283. if ((label|0) == 180) {
  42284. $626 = HEAP32[(23448)>>2]|0;
  42285. $627 = (($626) + ($$723948$i))|0;
  42286. HEAP32[(23448)>>2] = $627;
  42287. $628 = HEAP32[(23452)>>2]|0;
  42288. $629 = ($627>>>0)>($628>>>0);
  42289. if ($629) {
  42290. HEAP32[(23452)>>2] = $627;
  42291. }
  42292. $630 = HEAP32[(23040)>>2]|0;
  42293. $631 = ($630|0)==(0|0);
  42294. do {
  42295. if ($631) {
  42296. $632 = HEAP32[(23032)>>2]|0;
  42297. $633 = ($632|0)==(0|0);
  42298. $634 = ($$749$i>>>0)<($632>>>0);
  42299. $or$cond12$i = $633 | $634;
  42300. if ($or$cond12$i) {
  42301. HEAP32[(23032)>>2] = $$749$i;
  42302. }
  42303. HEAP32[(23464)>>2] = $$749$i;
  42304. HEAP32[(23468)>>2] = $$723948$i;
  42305. HEAP32[(23476)>>2] = 0;
  42306. $635 = HEAP32[5872]|0;
  42307. HEAP32[(23052)>>2] = $635;
  42308. HEAP32[(23048)>>2] = -1;
  42309. $$01$i$i = 0;
  42310. while(1) {
  42311. $636 = $$01$i$i << 1;
  42312. $637 = (23056 + ($636<<2)|0);
  42313. $638 = ((($637)) + 12|0);
  42314. HEAP32[$638>>2] = $637;
  42315. $639 = ((($637)) + 8|0);
  42316. HEAP32[$639>>2] = $637;
  42317. $640 = (($$01$i$i) + 1)|0;
  42318. $exitcond$i$i = ($640|0)==(32);
  42319. if ($exitcond$i$i) {
  42320. break;
  42321. } else {
  42322. $$01$i$i = $640;
  42323. }
  42324. }
  42325. $641 = (($$723948$i) + -40)|0;
  42326. $642 = ((($$749$i)) + 8|0);
  42327. $643 = $642;
  42328. $644 = $643 & 7;
  42329. $645 = ($644|0)==(0);
  42330. $646 = (0 - ($643))|0;
  42331. $647 = $646 & 7;
  42332. $648 = $645 ? 0 : $647;
  42333. $649 = (($$749$i) + ($648)|0);
  42334. $650 = (($641) - ($648))|0;
  42335. HEAP32[(23040)>>2] = $649;
  42336. HEAP32[(23028)>>2] = $650;
  42337. $651 = $650 | 1;
  42338. $652 = ((($649)) + 4|0);
  42339. HEAP32[$652>>2] = $651;
  42340. $653 = (($649) + ($650)|0);
  42341. $654 = ((($653)) + 4|0);
  42342. HEAP32[$654>>2] = 40;
  42343. $655 = HEAP32[(23504)>>2]|0;
  42344. HEAP32[(23044)>>2] = $655;
  42345. } else {
  42346. $$024371$i = (23464);
  42347. while(1) {
  42348. $656 = HEAP32[$$024371$i>>2]|0;
  42349. $657 = ((($$024371$i)) + 4|0);
  42350. $658 = HEAP32[$657>>2]|0;
  42351. $659 = (($656) + ($658)|0);
  42352. $660 = ($$749$i|0)==($659|0);
  42353. if ($660) {
  42354. label = 190;
  42355. break;
  42356. }
  42357. $661 = ((($$024371$i)) + 8|0);
  42358. $662 = HEAP32[$661>>2]|0;
  42359. $663 = ($662|0)==(0|0);
  42360. if ($663) {
  42361. break;
  42362. } else {
  42363. $$024371$i = $662;
  42364. }
  42365. }
  42366. if ((label|0) == 190) {
  42367. $664 = ((($$024371$i)) + 12|0);
  42368. $665 = HEAP32[$664>>2]|0;
  42369. $666 = $665 & 8;
  42370. $667 = ($666|0)==(0);
  42371. if ($667) {
  42372. $668 = ($630>>>0)>=($656>>>0);
  42373. $669 = ($630>>>0)<($$749$i>>>0);
  42374. $or$cond51$i = $669 & $668;
  42375. if ($or$cond51$i) {
  42376. $670 = (($658) + ($$723948$i))|0;
  42377. HEAP32[$657>>2] = $670;
  42378. $671 = HEAP32[(23028)>>2]|0;
  42379. $672 = ((($630)) + 8|0);
  42380. $673 = $672;
  42381. $674 = $673 & 7;
  42382. $675 = ($674|0)==(0);
  42383. $676 = (0 - ($673))|0;
  42384. $677 = $676 & 7;
  42385. $678 = $675 ? 0 : $677;
  42386. $679 = (($630) + ($678)|0);
  42387. $680 = (($$723948$i) - ($678))|0;
  42388. $681 = (($671) + ($680))|0;
  42389. HEAP32[(23040)>>2] = $679;
  42390. HEAP32[(23028)>>2] = $681;
  42391. $682 = $681 | 1;
  42392. $683 = ((($679)) + 4|0);
  42393. HEAP32[$683>>2] = $682;
  42394. $684 = (($679) + ($681)|0);
  42395. $685 = ((($684)) + 4|0);
  42396. HEAP32[$685>>2] = 40;
  42397. $686 = HEAP32[(23504)>>2]|0;
  42398. HEAP32[(23044)>>2] = $686;
  42399. break;
  42400. }
  42401. }
  42402. }
  42403. $687 = HEAP32[(23032)>>2]|0;
  42404. $688 = ($$749$i>>>0)<($687>>>0);
  42405. if ($688) {
  42406. HEAP32[(23032)>>2] = $$749$i;
  42407. $752 = $$749$i;
  42408. } else {
  42409. $752 = $687;
  42410. }
  42411. $689 = (($$749$i) + ($$723948$i)|0);
  42412. $$124470$i = (23464);
  42413. while(1) {
  42414. $690 = HEAP32[$$124470$i>>2]|0;
  42415. $691 = ($690|0)==($689|0);
  42416. if ($691) {
  42417. label = 198;
  42418. break;
  42419. }
  42420. $692 = ((($$124470$i)) + 8|0);
  42421. $693 = HEAP32[$692>>2]|0;
  42422. $694 = ($693|0)==(0|0);
  42423. if ($694) {
  42424. break;
  42425. } else {
  42426. $$124470$i = $693;
  42427. }
  42428. }
  42429. if ((label|0) == 198) {
  42430. $695 = ((($$124470$i)) + 12|0);
  42431. $696 = HEAP32[$695>>2]|0;
  42432. $697 = $696 & 8;
  42433. $698 = ($697|0)==(0);
  42434. if ($698) {
  42435. HEAP32[$$124470$i>>2] = $$749$i;
  42436. $699 = ((($$124470$i)) + 4|0);
  42437. $700 = HEAP32[$699>>2]|0;
  42438. $701 = (($700) + ($$723948$i))|0;
  42439. HEAP32[$699>>2] = $701;
  42440. $702 = ((($$749$i)) + 8|0);
  42441. $703 = $702;
  42442. $704 = $703 & 7;
  42443. $705 = ($704|0)==(0);
  42444. $706 = (0 - ($703))|0;
  42445. $707 = $706 & 7;
  42446. $708 = $705 ? 0 : $707;
  42447. $709 = (($$749$i) + ($708)|0);
  42448. $710 = ((($689)) + 8|0);
  42449. $711 = $710;
  42450. $712 = $711 & 7;
  42451. $713 = ($712|0)==(0);
  42452. $714 = (0 - ($711))|0;
  42453. $715 = $714 & 7;
  42454. $716 = $713 ? 0 : $715;
  42455. $717 = (($689) + ($716)|0);
  42456. $718 = $717;
  42457. $719 = $709;
  42458. $720 = (($718) - ($719))|0;
  42459. $721 = (($709) + ($$0197)|0);
  42460. $722 = (($720) - ($$0197))|0;
  42461. $723 = $$0197 | 3;
  42462. $724 = ((($709)) + 4|0);
  42463. HEAP32[$724>>2] = $723;
  42464. $725 = ($717|0)==($630|0);
  42465. do {
  42466. if ($725) {
  42467. $726 = HEAP32[(23028)>>2]|0;
  42468. $727 = (($726) + ($722))|0;
  42469. HEAP32[(23028)>>2] = $727;
  42470. HEAP32[(23040)>>2] = $721;
  42471. $728 = $727 | 1;
  42472. $729 = ((($721)) + 4|0);
  42473. HEAP32[$729>>2] = $728;
  42474. } else {
  42475. $730 = HEAP32[(23036)>>2]|0;
  42476. $731 = ($717|0)==($730|0);
  42477. if ($731) {
  42478. $732 = HEAP32[(23024)>>2]|0;
  42479. $733 = (($732) + ($722))|0;
  42480. HEAP32[(23024)>>2] = $733;
  42481. HEAP32[(23036)>>2] = $721;
  42482. $734 = $733 | 1;
  42483. $735 = ((($721)) + 4|0);
  42484. HEAP32[$735>>2] = $734;
  42485. $736 = (($721) + ($733)|0);
  42486. HEAP32[$736>>2] = $733;
  42487. break;
  42488. }
  42489. $737 = ((($717)) + 4|0);
  42490. $738 = HEAP32[$737>>2]|0;
  42491. $739 = $738 & 3;
  42492. $740 = ($739|0)==(1);
  42493. if ($740) {
  42494. $741 = $738 & -8;
  42495. $742 = $738 >>> 3;
  42496. $743 = ($738>>>0)<(256);
  42497. L314: do {
  42498. if ($743) {
  42499. $744 = ((($717)) + 8|0);
  42500. $745 = HEAP32[$744>>2]|0;
  42501. $746 = ((($717)) + 12|0);
  42502. $747 = HEAP32[$746>>2]|0;
  42503. $748 = $742 << 1;
  42504. $749 = (23056 + ($748<<2)|0);
  42505. $750 = ($745|0)==($749|0);
  42506. do {
  42507. if (!($750)) {
  42508. $751 = ($745>>>0)<($752>>>0);
  42509. if ($751) {
  42510. _abort();
  42511. // unreachable;
  42512. }
  42513. $753 = ((($745)) + 12|0);
  42514. $754 = HEAP32[$753>>2]|0;
  42515. $755 = ($754|0)==($717|0);
  42516. if ($755) {
  42517. break;
  42518. }
  42519. _abort();
  42520. // unreachable;
  42521. }
  42522. } while(0);
  42523. $756 = ($747|0)==($745|0);
  42524. if ($756) {
  42525. $757 = 1 << $742;
  42526. $758 = $757 ^ -1;
  42527. $759 = HEAP32[5754]|0;
  42528. $760 = $759 & $758;
  42529. HEAP32[5754] = $760;
  42530. break;
  42531. }
  42532. $761 = ($747|0)==($749|0);
  42533. do {
  42534. if ($761) {
  42535. $$pre10$i$i = ((($747)) + 8|0);
  42536. $$pre$phi11$i$iZ2D = $$pre10$i$i;
  42537. } else {
  42538. $762 = ($747>>>0)<($752>>>0);
  42539. if ($762) {
  42540. _abort();
  42541. // unreachable;
  42542. }
  42543. $763 = ((($747)) + 8|0);
  42544. $764 = HEAP32[$763>>2]|0;
  42545. $765 = ($764|0)==($717|0);
  42546. if ($765) {
  42547. $$pre$phi11$i$iZ2D = $763;
  42548. break;
  42549. }
  42550. _abort();
  42551. // unreachable;
  42552. }
  42553. } while(0);
  42554. $766 = ((($745)) + 12|0);
  42555. HEAP32[$766>>2] = $747;
  42556. HEAP32[$$pre$phi11$i$iZ2D>>2] = $745;
  42557. } else {
  42558. $767 = ((($717)) + 24|0);
  42559. $768 = HEAP32[$767>>2]|0;
  42560. $769 = ((($717)) + 12|0);
  42561. $770 = HEAP32[$769>>2]|0;
  42562. $771 = ($770|0)==($717|0);
  42563. do {
  42564. if ($771) {
  42565. $781 = ((($717)) + 16|0);
  42566. $782 = ((($781)) + 4|0);
  42567. $783 = HEAP32[$782>>2]|0;
  42568. $784 = ($783|0)==(0|0);
  42569. if ($784) {
  42570. $785 = HEAP32[$781>>2]|0;
  42571. $786 = ($785|0)==(0|0);
  42572. if ($786) {
  42573. $$3$i$i = 0;
  42574. break;
  42575. } else {
  42576. $$1291$i$i = $785;$$1293$i$i = $781;
  42577. }
  42578. } else {
  42579. $$1291$i$i = $783;$$1293$i$i = $782;
  42580. }
  42581. while(1) {
  42582. $787 = ((($$1291$i$i)) + 20|0);
  42583. $788 = HEAP32[$787>>2]|0;
  42584. $789 = ($788|0)==(0|0);
  42585. if (!($789)) {
  42586. $$1291$i$i = $788;$$1293$i$i = $787;
  42587. continue;
  42588. }
  42589. $790 = ((($$1291$i$i)) + 16|0);
  42590. $791 = HEAP32[$790>>2]|0;
  42591. $792 = ($791|0)==(0|0);
  42592. if ($792) {
  42593. break;
  42594. } else {
  42595. $$1291$i$i = $791;$$1293$i$i = $790;
  42596. }
  42597. }
  42598. $793 = ($$1293$i$i>>>0)<($752>>>0);
  42599. if ($793) {
  42600. _abort();
  42601. // unreachable;
  42602. } else {
  42603. HEAP32[$$1293$i$i>>2] = 0;
  42604. $$3$i$i = $$1291$i$i;
  42605. break;
  42606. }
  42607. } else {
  42608. $772 = ((($717)) + 8|0);
  42609. $773 = HEAP32[$772>>2]|0;
  42610. $774 = ($773>>>0)<($752>>>0);
  42611. if ($774) {
  42612. _abort();
  42613. // unreachable;
  42614. }
  42615. $775 = ((($773)) + 12|0);
  42616. $776 = HEAP32[$775>>2]|0;
  42617. $777 = ($776|0)==($717|0);
  42618. if (!($777)) {
  42619. _abort();
  42620. // unreachable;
  42621. }
  42622. $778 = ((($770)) + 8|0);
  42623. $779 = HEAP32[$778>>2]|0;
  42624. $780 = ($779|0)==($717|0);
  42625. if ($780) {
  42626. HEAP32[$775>>2] = $770;
  42627. HEAP32[$778>>2] = $773;
  42628. $$3$i$i = $770;
  42629. break;
  42630. } else {
  42631. _abort();
  42632. // unreachable;
  42633. }
  42634. }
  42635. } while(0);
  42636. $794 = ($768|0)==(0|0);
  42637. if ($794) {
  42638. break;
  42639. }
  42640. $795 = ((($717)) + 28|0);
  42641. $796 = HEAP32[$795>>2]|0;
  42642. $797 = (23320 + ($796<<2)|0);
  42643. $798 = HEAP32[$797>>2]|0;
  42644. $799 = ($717|0)==($798|0);
  42645. do {
  42646. if ($799) {
  42647. HEAP32[$797>>2] = $$3$i$i;
  42648. $cond$i$i = ($$3$i$i|0)==(0|0);
  42649. if (!($cond$i$i)) {
  42650. break;
  42651. }
  42652. $800 = 1 << $796;
  42653. $801 = $800 ^ -1;
  42654. $802 = HEAP32[(23020)>>2]|0;
  42655. $803 = $802 & $801;
  42656. HEAP32[(23020)>>2] = $803;
  42657. break L314;
  42658. } else {
  42659. $804 = HEAP32[(23032)>>2]|0;
  42660. $805 = ($768>>>0)<($804>>>0);
  42661. if ($805) {
  42662. _abort();
  42663. // unreachable;
  42664. } else {
  42665. $806 = ((($768)) + 16|0);
  42666. $807 = HEAP32[$806>>2]|0;
  42667. $not$$i17$i = ($807|0)!=($717|0);
  42668. $$sink1$i$i = $not$$i17$i&1;
  42669. $808 = (((($768)) + 16|0) + ($$sink1$i$i<<2)|0);
  42670. HEAP32[$808>>2] = $$3$i$i;
  42671. $809 = ($$3$i$i|0)==(0|0);
  42672. if ($809) {
  42673. break L314;
  42674. } else {
  42675. break;
  42676. }
  42677. }
  42678. }
  42679. } while(0);
  42680. $810 = HEAP32[(23032)>>2]|0;
  42681. $811 = ($$3$i$i>>>0)<($810>>>0);
  42682. if ($811) {
  42683. _abort();
  42684. // unreachable;
  42685. }
  42686. $812 = ((($$3$i$i)) + 24|0);
  42687. HEAP32[$812>>2] = $768;
  42688. $813 = ((($717)) + 16|0);
  42689. $814 = HEAP32[$813>>2]|0;
  42690. $815 = ($814|0)==(0|0);
  42691. do {
  42692. if (!($815)) {
  42693. $816 = ($814>>>0)<($810>>>0);
  42694. if ($816) {
  42695. _abort();
  42696. // unreachable;
  42697. } else {
  42698. $817 = ((($$3$i$i)) + 16|0);
  42699. HEAP32[$817>>2] = $814;
  42700. $818 = ((($814)) + 24|0);
  42701. HEAP32[$818>>2] = $$3$i$i;
  42702. break;
  42703. }
  42704. }
  42705. } while(0);
  42706. $819 = ((($813)) + 4|0);
  42707. $820 = HEAP32[$819>>2]|0;
  42708. $821 = ($820|0)==(0|0);
  42709. if ($821) {
  42710. break;
  42711. }
  42712. $822 = HEAP32[(23032)>>2]|0;
  42713. $823 = ($820>>>0)<($822>>>0);
  42714. if ($823) {
  42715. _abort();
  42716. // unreachable;
  42717. } else {
  42718. $824 = ((($$3$i$i)) + 20|0);
  42719. HEAP32[$824>>2] = $820;
  42720. $825 = ((($820)) + 24|0);
  42721. HEAP32[$825>>2] = $$3$i$i;
  42722. break;
  42723. }
  42724. }
  42725. } while(0);
  42726. $826 = (($717) + ($741)|0);
  42727. $827 = (($741) + ($722))|0;
  42728. $$0$i18$i = $826;$$0287$i$i = $827;
  42729. } else {
  42730. $$0$i18$i = $717;$$0287$i$i = $722;
  42731. }
  42732. $828 = ((($$0$i18$i)) + 4|0);
  42733. $829 = HEAP32[$828>>2]|0;
  42734. $830 = $829 & -2;
  42735. HEAP32[$828>>2] = $830;
  42736. $831 = $$0287$i$i | 1;
  42737. $832 = ((($721)) + 4|0);
  42738. HEAP32[$832>>2] = $831;
  42739. $833 = (($721) + ($$0287$i$i)|0);
  42740. HEAP32[$833>>2] = $$0287$i$i;
  42741. $834 = $$0287$i$i >>> 3;
  42742. $835 = ($$0287$i$i>>>0)<(256);
  42743. if ($835) {
  42744. $836 = $834 << 1;
  42745. $837 = (23056 + ($836<<2)|0);
  42746. $838 = HEAP32[5754]|0;
  42747. $839 = 1 << $834;
  42748. $840 = $838 & $839;
  42749. $841 = ($840|0)==(0);
  42750. do {
  42751. if ($841) {
  42752. $842 = $838 | $839;
  42753. HEAP32[5754] = $842;
  42754. $$pre$i19$i = ((($837)) + 8|0);
  42755. $$0295$i$i = $837;$$pre$phi$i20$iZ2D = $$pre$i19$i;
  42756. } else {
  42757. $843 = ((($837)) + 8|0);
  42758. $844 = HEAP32[$843>>2]|0;
  42759. $845 = HEAP32[(23032)>>2]|0;
  42760. $846 = ($844>>>0)<($845>>>0);
  42761. if (!($846)) {
  42762. $$0295$i$i = $844;$$pre$phi$i20$iZ2D = $843;
  42763. break;
  42764. }
  42765. _abort();
  42766. // unreachable;
  42767. }
  42768. } while(0);
  42769. HEAP32[$$pre$phi$i20$iZ2D>>2] = $721;
  42770. $847 = ((($$0295$i$i)) + 12|0);
  42771. HEAP32[$847>>2] = $721;
  42772. $848 = ((($721)) + 8|0);
  42773. HEAP32[$848>>2] = $$0295$i$i;
  42774. $849 = ((($721)) + 12|0);
  42775. HEAP32[$849>>2] = $837;
  42776. break;
  42777. }
  42778. $850 = $$0287$i$i >>> 8;
  42779. $851 = ($850|0)==(0);
  42780. do {
  42781. if ($851) {
  42782. $$0296$i$i = 0;
  42783. } else {
  42784. $852 = ($$0287$i$i>>>0)>(16777215);
  42785. if ($852) {
  42786. $$0296$i$i = 31;
  42787. break;
  42788. }
  42789. $853 = (($850) + 1048320)|0;
  42790. $854 = $853 >>> 16;
  42791. $855 = $854 & 8;
  42792. $856 = $850 << $855;
  42793. $857 = (($856) + 520192)|0;
  42794. $858 = $857 >>> 16;
  42795. $859 = $858 & 4;
  42796. $860 = $859 | $855;
  42797. $861 = $856 << $859;
  42798. $862 = (($861) + 245760)|0;
  42799. $863 = $862 >>> 16;
  42800. $864 = $863 & 2;
  42801. $865 = $860 | $864;
  42802. $866 = (14 - ($865))|0;
  42803. $867 = $861 << $864;
  42804. $868 = $867 >>> 15;
  42805. $869 = (($866) + ($868))|0;
  42806. $870 = $869 << 1;
  42807. $871 = (($869) + 7)|0;
  42808. $872 = $$0287$i$i >>> $871;
  42809. $873 = $872 & 1;
  42810. $874 = $873 | $870;
  42811. $$0296$i$i = $874;
  42812. }
  42813. } while(0);
  42814. $875 = (23320 + ($$0296$i$i<<2)|0);
  42815. $876 = ((($721)) + 28|0);
  42816. HEAP32[$876>>2] = $$0296$i$i;
  42817. $877 = ((($721)) + 16|0);
  42818. $878 = ((($877)) + 4|0);
  42819. HEAP32[$878>>2] = 0;
  42820. HEAP32[$877>>2] = 0;
  42821. $879 = HEAP32[(23020)>>2]|0;
  42822. $880 = 1 << $$0296$i$i;
  42823. $881 = $879 & $880;
  42824. $882 = ($881|0)==(0);
  42825. if ($882) {
  42826. $883 = $879 | $880;
  42827. HEAP32[(23020)>>2] = $883;
  42828. HEAP32[$875>>2] = $721;
  42829. $884 = ((($721)) + 24|0);
  42830. HEAP32[$884>>2] = $875;
  42831. $885 = ((($721)) + 12|0);
  42832. HEAP32[$885>>2] = $721;
  42833. $886 = ((($721)) + 8|0);
  42834. HEAP32[$886>>2] = $721;
  42835. break;
  42836. }
  42837. $887 = HEAP32[$875>>2]|0;
  42838. $888 = ($$0296$i$i|0)==(31);
  42839. $889 = $$0296$i$i >>> 1;
  42840. $890 = (25 - ($889))|0;
  42841. $891 = $888 ? 0 : $890;
  42842. $892 = $$0287$i$i << $891;
  42843. $$0288$i$i = $892;$$0289$i$i = $887;
  42844. while(1) {
  42845. $893 = ((($$0289$i$i)) + 4|0);
  42846. $894 = HEAP32[$893>>2]|0;
  42847. $895 = $894 & -8;
  42848. $896 = ($895|0)==($$0287$i$i|0);
  42849. if ($896) {
  42850. label = 265;
  42851. break;
  42852. }
  42853. $897 = $$0288$i$i >>> 31;
  42854. $898 = (((($$0289$i$i)) + 16|0) + ($897<<2)|0);
  42855. $899 = $$0288$i$i << 1;
  42856. $900 = HEAP32[$898>>2]|0;
  42857. $901 = ($900|0)==(0|0);
  42858. if ($901) {
  42859. label = 262;
  42860. break;
  42861. } else {
  42862. $$0288$i$i = $899;$$0289$i$i = $900;
  42863. }
  42864. }
  42865. if ((label|0) == 262) {
  42866. $902 = HEAP32[(23032)>>2]|0;
  42867. $903 = ($898>>>0)<($902>>>0);
  42868. if ($903) {
  42869. _abort();
  42870. // unreachable;
  42871. } else {
  42872. HEAP32[$898>>2] = $721;
  42873. $904 = ((($721)) + 24|0);
  42874. HEAP32[$904>>2] = $$0289$i$i;
  42875. $905 = ((($721)) + 12|0);
  42876. HEAP32[$905>>2] = $721;
  42877. $906 = ((($721)) + 8|0);
  42878. HEAP32[$906>>2] = $721;
  42879. break;
  42880. }
  42881. }
  42882. else if ((label|0) == 265) {
  42883. $907 = ((($$0289$i$i)) + 8|0);
  42884. $908 = HEAP32[$907>>2]|0;
  42885. $909 = HEAP32[(23032)>>2]|0;
  42886. $910 = ($908>>>0)>=($909>>>0);
  42887. $not$7$i$i = ($$0289$i$i>>>0)>=($909>>>0);
  42888. $911 = $910 & $not$7$i$i;
  42889. if ($911) {
  42890. $912 = ((($908)) + 12|0);
  42891. HEAP32[$912>>2] = $721;
  42892. HEAP32[$907>>2] = $721;
  42893. $913 = ((($721)) + 8|0);
  42894. HEAP32[$913>>2] = $908;
  42895. $914 = ((($721)) + 12|0);
  42896. HEAP32[$914>>2] = $$0289$i$i;
  42897. $915 = ((($721)) + 24|0);
  42898. HEAP32[$915>>2] = 0;
  42899. break;
  42900. } else {
  42901. _abort();
  42902. // unreachable;
  42903. }
  42904. }
  42905. }
  42906. } while(0);
  42907. $1047 = ((($709)) + 8|0);
  42908. $$0 = $1047;
  42909. STACKTOP = sp;return ($$0|0);
  42910. }
  42911. }
  42912. $$0$i$i$i = (23464);
  42913. while(1) {
  42914. $916 = HEAP32[$$0$i$i$i>>2]|0;
  42915. $917 = ($916>>>0)>($630>>>0);
  42916. if (!($917)) {
  42917. $918 = ((($$0$i$i$i)) + 4|0);
  42918. $919 = HEAP32[$918>>2]|0;
  42919. $920 = (($916) + ($919)|0);
  42920. $921 = ($920>>>0)>($630>>>0);
  42921. if ($921) {
  42922. break;
  42923. }
  42924. }
  42925. $922 = ((($$0$i$i$i)) + 8|0);
  42926. $923 = HEAP32[$922>>2]|0;
  42927. $$0$i$i$i = $923;
  42928. }
  42929. $924 = ((($920)) + -47|0);
  42930. $925 = ((($924)) + 8|0);
  42931. $926 = $925;
  42932. $927 = $926 & 7;
  42933. $928 = ($927|0)==(0);
  42934. $929 = (0 - ($926))|0;
  42935. $930 = $929 & 7;
  42936. $931 = $928 ? 0 : $930;
  42937. $932 = (($924) + ($931)|0);
  42938. $933 = ((($630)) + 16|0);
  42939. $934 = ($932>>>0)<($933>>>0);
  42940. $935 = $934 ? $630 : $932;
  42941. $936 = ((($935)) + 8|0);
  42942. $937 = ((($935)) + 24|0);
  42943. $938 = (($$723948$i) + -40)|0;
  42944. $939 = ((($$749$i)) + 8|0);
  42945. $940 = $939;
  42946. $941 = $940 & 7;
  42947. $942 = ($941|0)==(0);
  42948. $943 = (0 - ($940))|0;
  42949. $944 = $943 & 7;
  42950. $945 = $942 ? 0 : $944;
  42951. $946 = (($$749$i) + ($945)|0);
  42952. $947 = (($938) - ($945))|0;
  42953. HEAP32[(23040)>>2] = $946;
  42954. HEAP32[(23028)>>2] = $947;
  42955. $948 = $947 | 1;
  42956. $949 = ((($946)) + 4|0);
  42957. HEAP32[$949>>2] = $948;
  42958. $950 = (($946) + ($947)|0);
  42959. $951 = ((($950)) + 4|0);
  42960. HEAP32[$951>>2] = 40;
  42961. $952 = HEAP32[(23504)>>2]|0;
  42962. HEAP32[(23044)>>2] = $952;
  42963. $953 = ((($935)) + 4|0);
  42964. HEAP32[$953>>2] = 27;
  42965. ;HEAP32[$936>>2]=HEAP32[(23464)>>2]|0;HEAP32[$936+4>>2]=HEAP32[(23464)+4>>2]|0;HEAP32[$936+8>>2]=HEAP32[(23464)+8>>2]|0;HEAP32[$936+12>>2]=HEAP32[(23464)+12>>2]|0;
  42966. HEAP32[(23464)>>2] = $$749$i;
  42967. HEAP32[(23468)>>2] = $$723948$i;
  42968. HEAP32[(23476)>>2] = 0;
  42969. HEAP32[(23472)>>2] = $936;
  42970. $955 = $937;
  42971. while(1) {
  42972. $954 = ((($955)) + 4|0);
  42973. HEAP32[$954>>2] = 7;
  42974. $956 = ((($955)) + 8|0);
  42975. $957 = ($956>>>0)<($920>>>0);
  42976. if ($957) {
  42977. $955 = $954;
  42978. } else {
  42979. break;
  42980. }
  42981. }
  42982. $958 = ($935|0)==($630|0);
  42983. if (!($958)) {
  42984. $959 = $935;
  42985. $960 = $630;
  42986. $961 = (($959) - ($960))|0;
  42987. $962 = HEAP32[$953>>2]|0;
  42988. $963 = $962 & -2;
  42989. HEAP32[$953>>2] = $963;
  42990. $964 = $961 | 1;
  42991. $965 = ((($630)) + 4|0);
  42992. HEAP32[$965>>2] = $964;
  42993. HEAP32[$935>>2] = $961;
  42994. $966 = $961 >>> 3;
  42995. $967 = ($961>>>0)<(256);
  42996. if ($967) {
  42997. $968 = $966 << 1;
  42998. $969 = (23056 + ($968<<2)|0);
  42999. $970 = HEAP32[5754]|0;
  43000. $971 = 1 << $966;
  43001. $972 = $970 & $971;
  43002. $973 = ($972|0)==(0);
  43003. if ($973) {
  43004. $974 = $970 | $971;
  43005. HEAP32[5754] = $974;
  43006. $$pre$i$i = ((($969)) + 8|0);
  43007. $$0211$i$i = $969;$$pre$phi$i$iZ2D = $$pre$i$i;
  43008. } else {
  43009. $975 = ((($969)) + 8|0);
  43010. $976 = HEAP32[$975>>2]|0;
  43011. $977 = HEAP32[(23032)>>2]|0;
  43012. $978 = ($976>>>0)<($977>>>0);
  43013. if ($978) {
  43014. _abort();
  43015. // unreachable;
  43016. } else {
  43017. $$0211$i$i = $976;$$pre$phi$i$iZ2D = $975;
  43018. }
  43019. }
  43020. HEAP32[$$pre$phi$i$iZ2D>>2] = $630;
  43021. $979 = ((($$0211$i$i)) + 12|0);
  43022. HEAP32[$979>>2] = $630;
  43023. $980 = ((($630)) + 8|0);
  43024. HEAP32[$980>>2] = $$0211$i$i;
  43025. $981 = ((($630)) + 12|0);
  43026. HEAP32[$981>>2] = $969;
  43027. break;
  43028. }
  43029. $982 = $961 >>> 8;
  43030. $983 = ($982|0)==(0);
  43031. if ($983) {
  43032. $$0212$i$i = 0;
  43033. } else {
  43034. $984 = ($961>>>0)>(16777215);
  43035. if ($984) {
  43036. $$0212$i$i = 31;
  43037. } else {
  43038. $985 = (($982) + 1048320)|0;
  43039. $986 = $985 >>> 16;
  43040. $987 = $986 & 8;
  43041. $988 = $982 << $987;
  43042. $989 = (($988) + 520192)|0;
  43043. $990 = $989 >>> 16;
  43044. $991 = $990 & 4;
  43045. $992 = $991 | $987;
  43046. $993 = $988 << $991;
  43047. $994 = (($993) + 245760)|0;
  43048. $995 = $994 >>> 16;
  43049. $996 = $995 & 2;
  43050. $997 = $992 | $996;
  43051. $998 = (14 - ($997))|0;
  43052. $999 = $993 << $996;
  43053. $1000 = $999 >>> 15;
  43054. $1001 = (($998) + ($1000))|0;
  43055. $1002 = $1001 << 1;
  43056. $1003 = (($1001) + 7)|0;
  43057. $1004 = $961 >>> $1003;
  43058. $1005 = $1004 & 1;
  43059. $1006 = $1005 | $1002;
  43060. $$0212$i$i = $1006;
  43061. }
  43062. }
  43063. $1007 = (23320 + ($$0212$i$i<<2)|0);
  43064. $1008 = ((($630)) + 28|0);
  43065. HEAP32[$1008>>2] = $$0212$i$i;
  43066. $1009 = ((($630)) + 20|0);
  43067. HEAP32[$1009>>2] = 0;
  43068. HEAP32[$933>>2] = 0;
  43069. $1010 = HEAP32[(23020)>>2]|0;
  43070. $1011 = 1 << $$0212$i$i;
  43071. $1012 = $1010 & $1011;
  43072. $1013 = ($1012|0)==(0);
  43073. if ($1013) {
  43074. $1014 = $1010 | $1011;
  43075. HEAP32[(23020)>>2] = $1014;
  43076. HEAP32[$1007>>2] = $630;
  43077. $1015 = ((($630)) + 24|0);
  43078. HEAP32[$1015>>2] = $1007;
  43079. $1016 = ((($630)) + 12|0);
  43080. HEAP32[$1016>>2] = $630;
  43081. $1017 = ((($630)) + 8|0);
  43082. HEAP32[$1017>>2] = $630;
  43083. break;
  43084. }
  43085. $1018 = HEAP32[$1007>>2]|0;
  43086. $1019 = ($$0212$i$i|0)==(31);
  43087. $1020 = $$0212$i$i >>> 1;
  43088. $1021 = (25 - ($1020))|0;
  43089. $1022 = $1019 ? 0 : $1021;
  43090. $1023 = $961 << $1022;
  43091. $$0206$i$i = $1023;$$0207$i$i = $1018;
  43092. while(1) {
  43093. $1024 = ((($$0207$i$i)) + 4|0);
  43094. $1025 = HEAP32[$1024>>2]|0;
  43095. $1026 = $1025 & -8;
  43096. $1027 = ($1026|0)==($961|0);
  43097. if ($1027) {
  43098. label = 292;
  43099. break;
  43100. }
  43101. $1028 = $$0206$i$i >>> 31;
  43102. $1029 = (((($$0207$i$i)) + 16|0) + ($1028<<2)|0);
  43103. $1030 = $$0206$i$i << 1;
  43104. $1031 = HEAP32[$1029>>2]|0;
  43105. $1032 = ($1031|0)==(0|0);
  43106. if ($1032) {
  43107. label = 289;
  43108. break;
  43109. } else {
  43110. $$0206$i$i = $1030;$$0207$i$i = $1031;
  43111. }
  43112. }
  43113. if ((label|0) == 289) {
  43114. $1033 = HEAP32[(23032)>>2]|0;
  43115. $1034 = ($1029>>>0)<($1033>>>0);
  43116. if ($1034) {
  43117. _abort();
  43118. // unreachable;
  43119. } else {
  43120. HEAP32[$1029>>2] = $630;
  43121. $1035 = ((($630)) + 24|0);
  43122. HEAP32[$1035>>2] = $$0207$i$i;
  43123. $1036 = ((($630)) + 12|0);
  43124. HEAP32[$1036>>2] = $630;
  43125. $1037 = ((($630)) + 8|0);
  43126. HEAP32[$1037>>2] = $630;
  43127. break;
  43128. }
  43129. }
  43130. else if ((label|0) == 292) {
  43131. $1038 = ((($$0207$i$i)) + 8|0);
  43132. $1039 = HEAP32[$1038>>2]|0;
  43133. $1040 = HEAP32[(23032)>>2]|0;
  43134. $1041 = ($1039>>>0)>=($1040>>>0);
  43135. $not$$i$i = ($$0207$i$i>>>0)>=($1040>>>0);
  43136. $1042 = $1041 & $not$$i$i;
  43137. if ($1042) {
  43138. $1043 = ((($1039)) + 12|0);
  43139. HEAP32[$1043>>2] = $630;
  43140. HEAP32[$1038>>2] = $630;
  43141. $1044 = ((($630)) + 8|0);
  43142. HEAP32[$1044>>2] = $1039;
  43143. $1045 = ((($630)) + 12|0);
  43144. HEAP32[$1045>>2] = $$0207$i$i;
  43145. $1046 = ((($630)) + 24|0);
  43146. HEAP32[$1046>>2] = 0;
  43147. break;
  43148. } else {
  43149. _abort();
  43150. // unreachable;
  43151. }
  43152. }
  43153. }
  43154. }
  43155. } while(0);
  43156. $1048 = HEAP32[(23028)>>2]|0;
  43157. $1049 = ($1048>>>0)>($$0197>>>0);
  43158. if ($1049) {
  43159. $1050 = (($1048) - ($$0197))|0;
  43160. HEAP32[(23028)>>2] = $1050;
  43161. $1051 = HEAP32[(23040)>>2]|0;
  43162. $1052 = (($1051) + ($$0197)|0);
  43163. HEAP32[(23040)>>2] = $1052;
  43164. $1053 = $1050 | 1;
  43165. $1054 = ((($1052)) + 4|0);
  43166. HEAP32[$1054>>2] = $1053;
  43167. $1055 = $$0197 | 3;
  43168. $1056 = ((($1051)) + 4|0);
  43169. HEAP32[$1056>>2] = $1055;
  43170. $1057 = ((($1051)) + 8|0);
  43171. $$0 = $1057;
  43172. STACKTOP = sp;return ($$0|0);
  43173. }
  43174. }
  43175. $1058 = (___errno_location()|0);
  43176. HEAP32[$1058>>2] = 12;
  43177. $$0 = 0;
  43178. STACKTOP = sp;return ($$0|0);
  43179. }
  43180. function _free($0) {
  43181. $0 = $0|0;
  43182. 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;
  43183. 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;
  43184. 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;
  43185. 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;
  43186. 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;
  43187. 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;
  43188. 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;
  43189. 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;
  43190. 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;
  43191. 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;
  43192. 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;
  43193. 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;
  43194. 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;
  43195. 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;
  43196. 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;
  43197. 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;
  43198. 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;
  43199. var $99 = 0, $cond421 = 0, $cond422 = 0, $not$ = 0, $not$405 = 0, $not$437 = 0, label = 0, sp = 0;
  43200. sp = STACKTOP;
  43201. $1 = ($0|0)==(0|0);
  43202. if ($1) {
  43203. return;
  43204. }
  43205. $2 = ((($0)) + -8|0);
  43206. $3 = HEAP32[(23032)>>2]|0;
  43207. $4 = ($2>>>0)<($3>>>0);
  43208. if ($4) {
  43209. _abort();
  43210. // unreachable;
  43211. }
  43212. $5 = ((($0)) + -4|0);
  43213. $6 = HEAP32[$5>>2]|0;
  43214. $7 = $6 & 3;
  43215. $8 = ($7|0)==(1);
  43216. if ($8) {
  43217. _abort();
  43218. // unreachable;
  43219. }
  43220. $9 = $6 & -8;
  43221. $10 = (($2) + ($9)|0);
  43222. $11 = $6 & 1;
  43223. $12 = ($11|0)==(0);
  43224. L10: do {
  43225. if ($12) {
  43226. $13 = HEAP32[$2>>2]|0;
  43227. $14 = ($7|0)==(0);
  43228. if ($14) {
  43229. return;
  43230. }
  43231. $15 = (0 - ($13))|0;
  43232. $16 = (($2) + ($15)|0);
  43233. $17 = (($13) + ($9))|0;
  43234. $18 = ($16>>>0)<($3>>>0);
  43235. if ($18) {
  43236. _abort();
  43237. // unreachable;
  43238. }
  43239. $19 = HEAP32[(23036)>>2]|0;
  43240. $20 = ($16|0)==($19|0);
  43241. if ($20) {
  43242. $104 = ((($10)) + 4|0);
  43243. $105 = HEAP32[$104>>2]|0;
  43244. $106 = $105 & 3;
  43245. $107 = ($106|0)==(3);
  43246. if (!($107)) {
  43247. $$1 = $16;$$1382 = $17;$113 = $16;
  43248. break;
  43249. }
  43250. $108 = (($16) + ($17)|0);
  43251. $109 = ((($16)) + 4|0);
  43252. $110 = $17 | 1;
  43253. $111 = $105 & -2;
  43254. HEAP32[(23024)>>2] = $17;
  43255. HEAP32[$104>>2] = $111;
  43256. HEAP32[$109>>2] = $110;
  43257. HEAP32[$108>>2] = $17;
  43258. return;
  43259. }
  43260. $21 = $13 >>> 3;
  43261. $22 = ($13>>>0)<(256);
  43262. if ($22) {
  43263. $23 = ((($16)) + 8|0);
  43264. $24 = HEAP32[$23>>2]|0;
  43265. $25 = ((($16)) + 12|0);
  43266. $26 = HEAP32[$25>>2]|0;
  43267. $27 = $21 << 1;
  43268. $28 = (23056 + ($27<<2)|0);
  43269. $29 = ($24|0)==($28|0);
  43270. if (!($29)) {
  43271. $30 = ($24>>>0)<($3>>>0);
  43272. if ($30) {
  43273. _abort();
  43274. // unreachable;
  43275. }
  43276. $31 = ((($24)) + 12|0);
  43277. $32 = HEAP32[$31>>2]|0;
  43278. $33 = ($32|0)==($16|0);
  43279. if (!($33)) {
  43280. _abort();
  43281. // unreachable;
  43282. }
  43283. }
  43284. $34 = ($26|0)==($24|0);
  43285. if ($34) {
  43286. $35 = 1 << $21;
  43287. $36 = $35 ^ -1;
  43288. $37 = HEAP32[5754]|0;
  43289. $38 = $37 & $36;
  43290. HEAP32[5754] = $38;
  43291. $$1 = $16;$$1382 = $17;$113 = $16;
  43292. break;
  43293. }
  43294. $39 = ($26|0)==($28|0);
  43295. if ($39) {
  43296. $$pre444 = ((($26)) + 8|0);
  43297. $$pre$phi445Z2D = $$pre444;
  43298. } else {
  43299. $40 = ($26>>>0)<($3>>>0);
  43300. if ($40) {
  43301. _abort();
  43302. // unreachable;
  43303. }
  43304. $41 = ((($26)) + 8|0);
  43305. $42 = HEAP32[$41>>2]|0;
  43306. $43 = ($42|0)==($16|0);
  43307. if ($43) {
  43308. $$pre$phi445Z2D = $41;
  43309. } else {
  43310. _abort();
  43311. // unreachable;
  43312. }
  43313. }
  43314. $44 = ((($24)) + 12|0);
  43315. HEAP32[$44>>2] = $26;
  43316. HEAP32[$$pre$phi445Z2D>>2] = $24;
  43317. $$1 = $16;$$1382 = $17;$113 = $16;
  43318. break;
  43319. }
  43320. $45 = ((($16)) + 24|0);
  43321. $46 = HEAP32[$45>>2]|0;
  43322. $47 = ((($16)) + 12|0);
  43323. $48 = HEAP32[$47>>2]|0;
  43324. $49 = ($48|0)==($16|0);
  43325. do {
  43326. if ($49) {
  43327. $59 = ((($16)) + 16|0);
  43328. $60 = ((($59)) + 4|0);
  43329. $61 = HEAP32[$60>>2]|0;
  43330. $62 = ($61|0)==(0|0);
  43331. if ($62) {
  43332. $63 = HEAP32[$59>>2]|0;
  43333. $64 = ($63|0)==(0|0);
  43334. if ($64) {
  43335. $$3 = 0;
  43336. break;
  43337. } else {
  43338. $$1387 = $63;$$1390 = $59;
  43339. }
  43340. } else {
  43341. $$1387 = $61;$$1390 = $60;
  43342. }
  43343. while(1) {
  43344. $65 = ((($$1387)) + 20|0);
  43345. $66 = HEAP32[$65>>2]|0;
  43346. $67 = ($66|0)==(0|0);
  43347. if (!($67)) {
  43348. $$1387 = $66;$$1390 = $65;
  43349. continue;
  43350. }
  43351. $68 = ((($$1387)) + 16|0);
  43352. $69 = HEAP32[$68>>2]|0;
  43353. $70 = ($69|0)==(0|0);
  43354. if ($70) {
  43355. break;
  43356. } else {
  43357. $$1387 = $69;$$1390 = $68;
  43358. }
  43359. }
  43360. $71 = ($$1390>>>0)<($3>>>0);
  43361. if ($71) {
  43362. _abort();
  43363. // unreachable;
  43364. } else {
  43365. HEAP32[$$1390>>2] = 0;
  43366. $$3 = $$1387;
  43367. break;
  43368. }
  43369. } else {
  43370. $50 = ((($16)) + 8|0);
  43371. $51 = HEAP32[$50>>2]|0;
  43372. $52 = ($51>>>0)<($3>>>0);
  43373. if ($52) {
  43374. _abort();
  43375. // unreachable;
  43376. }
  43377. $53 = ((($51)) + 12|0);
  43378. $54 = HEAP32[$53>>2]|0;
  43379. $55 = ($54|0)==($16|0);
  43380. if (!($55)) {
  43381. _abort();
  43382. // unreachable;
  43383. }
  43384. $56 = ((($48)) + 8|0);
  43385. $57 = HEAP32[$56>>2]|0;
  43386. $58 = ($57|0)==($16|0);
  43387. if ($58) {
  43388. HEAP32[$53>>2] = $48;
  43389. HEAP32[$56>>2] = $51;
  43390. $$3 = $48;
  43391. break;
  43392. } else {
  43393. _abort();
  43394. // unreachable;
  43395. }
  43396. }
  43397. } while(0);
  43398. $72 = ($46|0)==(0|0);
  43399. if ($72) {
  43400. $$1 = $16;$$1382 = $17;$113 = $16;
  43401. } else {
  43402. $73 = ((($16)) + 28|0);
  43403. $74 = HEAP32[$73>>2]|0;
  43404. $75 = (23320 + ($74<<2)|0);
  43405. $76 = HEAP32[$75>>2]|0;
  43406. $77 = ($16|0)==($76|0);
  43407. do {
  43408. if ($77) {
  43409. HEAP32[$75>>2] = $$3;
  43410. $cond421 = ($$3|0)==(0|0);
  43411. if ($cond421) {
  43412. $78 = 1 << $74;
  43413. $79 = $78 ^ -1;
  43414. $80 = HEAP32[(23020)>>2]|0;
  43415. $81 = $80 & $79;
  43416. HEAP32[(23020)>>2] = $81;
  43417. $$1 = $16;$$1382 = $17;$113 = $16;
  43418. break L10;
  43419. }
  43420. } else {
  43421. $82 = HEAP32[(23032)>>2]|0;
  43422. $83 = ($46>>>0)<($82>>>0);
  43423. if ($83) {
  43424. _abort();
  43425. // unreachable;
  43426. } else {
  43427. $84 = ((($46)) + 16|0);
  43428. $85 = HEAP32[$84>>2]|0;
  43429. $not$405 = ($85|0)!=($16|0);
  43430. $$sink3 = $not$405&1;
  43431. $86 = (((($46)) + 16|0) + ($$sink3<<2)|0);
  43432. HEAP32[$86>>2] = $$3;
  43433. $87 = ($$3|0)==(0|0);
  43434. if ($87) {
  43435. $$1 = $16;$$1382 = $17;$113 = $16;
  43436. break L10;
  43437. } else {
  43438. break;
  43439. }
  43440. }
  43441. }
  43442. } while(0);
  43443. $88 = HEAP32[(23032)>>2]|0;
  43444. $89 = ($$3>>>0)<($88>>>0);
  43445. if ($89) {
  43446. _abort();
  43447. // unreachable;
  43448. }
  43449. $90 = ((($$3)) + 24|0);
  43450. HEAP32[$90>>2] = $46;
  43451. $91 = ((($16)) + 16|0);
  43452. $92 = HEAP32[$91>>2]|0;
  43453. $93 = ($92|0)==(0|0);
  43454. do {
  43455. if (!($93)) {
  43456. $94 = ($92>>>0)<($88>>>0);
  43457. if ($94) {
  43458. _abort();
  43459. // unreachable;
  43460. } else {
  43461. $95 = ((($$3)) + 16|0);
  43462. HEAP32[$95>>2] = $92;
  43463. $96 = ((($92)) + 24|0);
  43464. HEAP32[$96>>2] = $$3;
  43465. break;
  43466. }
  43467. }
  43468. } while(0);
  43469. $97 = ((($91)) + 4|0);
  43470. $98 = HEAP32[$97>>2]|0;
  43471. $99 = ($98|0)==(0|0);
  43472. if ($99) {
  43473. $$1 = $16;$$1382 = $17;$113 = $16;
  43474. } else {
  43475. $100 = HEAP32[(23032)>>2]|0;
  43476. $101 = ($98>>>0)<($100>>>0);
  43477. if ($101) {
  43478. _abort();
  43479. // unreachable;
  43480. } else {
  43481. $102 = ((($$3)) + 20|0);
  43482. HEAP32[$102>>2] = $98;
  43483. $103 = ((($98)) + 24|0);
  43484. HEAP32[$103>>2] = $$3;
  43485. $$1 = $16;$$1382 = $17;$113 = $16;
  43486. break;
  43487. }
  43488. }
  43489. }
  43490. } else {
  43491. $$1 = $2;$$1382 = $9;$113 = $2;
  43492. }
  43493. } while(0);
  43494. $112 = ($113>>>0)<($10>>>0);
  43495. if (!($112)) {
  43496. _abort();
  43497. // unreachable;
  43498. }
  43499. $114 = ((($10)) + 4|0);
  43500. $115 = HEAP32[$114>>2]|0;
  43501. $116 = $115 & 1;
  43502. $117 = ($116|0)==(0);
  43503. if ($117) {
  43504. _abort();
  43505. // unreachable;
  43506. }
  43507. $118 = $115 & 2;
  43508. $119 = ($118|0)==(0);
  43509. if ($119) {
  43510. $120 = HEAP32[(23040)>>2]|0;
  43511. $121 = ($10|0)==($120|0);
  43512. $122 = HEAP32[(23036)>>2]|0;
  43513. if ($121) {
  43514. $123 = HEAP32[(23028)>>2]|0;
  43515. $124 = (($123) + ($$1382))|0;
  43516. HEAP32[(23028)>>2] = $124;
  43517. HEAP32[(23040)>>2] = $$1;
  43518. $125 = $124 | 1;
  43519. $126 = ((($$1)) + 4|0);
  43520. HEAP32[$126>>2] = $125;
  43521. $127 = ($$1|0)==($122|0);
  43522. if (!($127)) {
  43523. return;
  43524. }
  43525. HEAP32[(23036)>>2] = 0;
  43526. HEAP32[(23024)>>2] = 0;
  43527. return;
  43528. }
  43529. $128 = ($10|0)==($122|0);
  43530. if ($128) {
  43531. $129 = HEAP32[(23024)>>2]|0;
  43532. $130 = (($129) + ($$1382))|0;
  43533. HEAP32[(23024)>>2] = $130;
  43534. HEAP32[(23036)>>2] = $113;
  43535. $131 = $130 | 1;
  43536. $132 = ((($$1)) + 4|0);
  43537. HEAP32[$132>>2] = $131;
  43538. $133 = (($113) + ($130)|0);
  43539. HEAP32[$133>>2] = $130;
  43540. return;
  43541. }
  43542. $134 = $115 & -8;
  43543. $135 = (($134) + ($$1382))|0;
  43544. $136 = $115 >>> 3;
  43545. $137 = ($115>>>0)<(256);
  43546. L108: do {
  43547. if ($137) {
  43548. $138 = ((($10)) + 8|0);
  43549. $139 = HEAP32[$138>>2]|0;
  43550. $140 = ((($10)) + 12|0);
  43551. $141 = HEAP32[$140>>2]|0;
  43552. $142 = $136 << 1;
  43553. $143 = (23056 + ($142<<2)|0);
  43554. $144 = ($139|0)==($143|0);
  43555. if (!($144)) {
  43556. $145 = HEAP32[(23032)>>2]|0;
  43557. $146 = ($139>>>0)<($145>>>0);
  43558. if ($146) {
  43559. _abort();
  43560. // unreachable;
  43561. }
  43562. $147 = ((($139)) + 12|0);
  43563. $148 = HEAP32[$147>>2]|0;
  43564. $149 = ($148|0)==($10|0);
  43565. if (!($149)) {
  43566. _abort();
  43567. // unreachable;
  43568. }
  43569. }
  43570. $150 = ($141|0)==($139|0);
  43571. if ($150) {
  43572. $151 = 1 << $136;
  43573. $152 = $151 ^ -1;
  43574. $153 = HEAP32[5754]|0;
  43575. $154 = $153 & $152;
  43576. HEAP32[5754] = $154;
  43577. break;
  43578. }
  43579. $155 = ($141|0)==($143|0);
  43580. if ($155) {
  43581. $$pre442 = ((($141)) + 8|0);
  43582. $$pre$phi443Z2D = $$pre442;
  43583. } else {
  43584. $156 = HEAP32[(23032)>>2]|0;
  43585. $157 = ($141>>>0)<($156>>>0);
  43586. if ($157) {
  43587. _abort();
  43588. // unreachable;
  43589. }
  43590. $158 = ((($141)) + 8|0);
  43591. $159 = HEAP32[$158>>2]|0;
  43592. $160 = ($159|0)==($10|0);
  43593. if ($160) {
  43594. $$pre$phi443Z2D = $158;
  43595. } else {
  43596. _abort();
  43597. // unreachable;
  43598. }
  43599. }
  43600. $161 = ((($139)) + 12|0);
  43601. HEAP32[$161>>2] = $141;
  43602. HEAP32[$$pre$phi443Z2D>>2] = $139;
  43603. } else {
  43604. $162 = ((($10)) + 24|0);
  43605. $163 = HEAP32[$162>>2]|0;
  43606. $164 = ((($10)) + 12|0);
  43607. $165 = HEAP32[$164>>2]|0;
  43608. $166 = ($165|0)==($10|0);
  43609. do {
  43610. if ($166) {
  43611. $177 = ((($10)) + 16|0);
  43612. $178 = ((($177)) + 4|0);
  43613. $179 = HEAP32[$178>>2]|0;
  43614. $180 = ($179|0)==(0|0);
  43615. if ($180) {
  43616. $181 = HEAP32[$177>>2]|0;
  43617. $182 = ($181|0)==(0|0);
  43618. if ($182) {
  43619. $$3400 = 0;
  43620. break;
  43621. } else {
  43622. $$1398 = $181;$$1402 = $177;
  43623. }
  43624. } else {
  43625. $$1398 = $179;$$1402 = $178;
  43626. }
  43627. while(1) {
  43628. $183 = ((($$1398)) + 20|0);
  43629. $184 = HEAP32[$183>>2]|0;
  43630. $185 = ($184|0)==(0|0);
  43631. if (!($185)) {
  43632. $$1398 = $184;$$1402 = $183;
  43633. continue;
  43634. }
  43635. $186 = ((($$1398)) + 16|0);
  43636. $187 = HEAP32[$186>>2]|0;
  43637. $188 = ($187|0)==(0|0);
  43638. if ($188) {
  43639. break;
  43640. } else {
  43641. $$1398 = $187;$$1402 = $186;
  43642. }
  43643. }
  43644. $189 = HEAP32[(23032)>>2]|0;
  43645. $190 = ($$1402>>>0)<($189>>>0);
  43646. if ($190) {
  43647. _abort();
  43648. // unreachable;
  43649. } else {
  43650. HEAP32[$$1402>>2] = 0;
  43651. $$3400 = $$1398;
  43652. break;
  43653. }
  43654. } else {
  43655. $167 = ((($10)) + 8|0);
  43656. $168 = HEAP32[$167>>2]|0;
  43657. $169 = HEAP32[(23032)>>2]|0;
  43658. $170 = ($168>>>0)<($169>>>0);
  43659. if ($170) {
  43660. _abort();
  43661. // unreachable;
  43662. }
  43663. $171 = ((($168)) + 12|0);
  43664. $172 = HEAP32[$171>>2]|0;
  43665. $173 = ($172|0)==($10|0);
  43666. if (!($173)) {
  43667. _abort();
  43668. // unreachable;
  43669. }
  43670. $174 = ((($165)) + 8|0);
  43671. $175 = HEAP32[$174>>2]|0;
  43672. $176 = ($175|0)==($10|0);
  43673. if ($176) {
  43674. HEAP32[$171>>2] = $165;
  43675. HEAP32[$174>>2] = $168;
  43676. $$3400 = $165;
  43677. break;
  43678. } else {
  43679. _abort();
  43680. // unreachable;
  43681. }
  43682. }
  43683. } while(0);
  43684. $191 = ($163|0)==(0|0);
  43685. if (!($191)) {
  43686. $192 = ((($10)) + 28|0);
  43687. $193 = HEAP32[$192>>2]|0;
  43688. $194 = (23320 + ($193<<2)|0);
  43689. $195 = HEAP32[$194>>2]|0;
  43690. $196 = ($10|0)==($195|0);
  43691. do {
  43692. if ($196) {
  43693. HEAP32[$194>>2] = $$3400;
  43694. $cond422 = ($$3400|0)==(0|0);
  43695. if ($cond422) {
  43696. $197 = 1 << $193;
  43697. $198 = $197 ^ -1;
  43698. $199 = HEAP32[(23020)>>2]|0;
  43699. $200 = $199 & $198;
  43700. HEAP32[(23020)>>2] = $200;
  43701. break L108;
  43702. }
  43703. } else {
  43704. $201 = HEAP32[(23032)>>2]|0;
  43705. $202 = ($163>>>0)<($201>>>0);
  43706. if ($202) {
  43707. _abort();
  43708. // unreachable;
  43709. } else {
  43710. $203 = ((($163)) + 16|0);
  43711. $204 = HEAP32[$203>>2]|0;
  43712. $not$ = ($204|0)!=($10|0);
  43713. $$sink5 = $not$&1;
  43714. $205 = (((($163)) + 16|0) + ($$sink5<<2)|0);
  43715. HEAP32[$205>>2] = $$3400;
  43716. $206 = ($$3400|0)==(0|0);
  43717. if ($206) {
  43718. break L108;
  43719. } else {
  43720. break;
  43721. }
  43722. }
  43723. }
  43724. } while(0);
  43725. $207 = HEAP32[(23032)>>2]|0;
  43726. $208 = ($$3400>>>0)<($207>>>0);
  43727. if ($208) {
  43728. _abort();
  43729. // unreachable;
  43730. }
  43731. $209 = ((($$3400)) + 24|0);
  43732. HEAP32[$209>>2] = $163;
  43733. $210 = ((($10)) + 16|0);
  43734. $211 = HEAP32[$210>>2]|0;
  43735. $212 = ($211|0)==(0|0);
  43736. do {
  43737. if (!($212)) {
  43738. $213 = ($211>>>0)<($207>>>0);
  43739. if ($213) {
  43740. _abort();
  43741. // unreachable;
  43742. } else {
  43743. $214 = ((($$3400)) + 16|0);
  43744. HEAP32[$214>>2] = $211;
  43745. $215 = ((($211)) + 24|0);
  43746. HEAP32[$215>>2] = $$3400;
  43747. break;
  43748. }
  43749. }
  43750. } while(0);
  43751. $216 = ((($210)) + 4|0);
  43752. $217 = HEAP32[$216>>2]|0;
  43753. $218 = ($217|0)==(0|0);
  43754. if (!($218)) {
  43755. $219 = HEAP32[(23032)>>2]|0;
  43756. $220 = ($217>>>0)<($219>>>0);
  43757. if ($220) {
  43758. _abort();
  43759. // unreachable;
  43760. } else {
  43761. $221 = ((($$3400)) + 20|0);
  43762. HEAP32[$221>>2] = $217;
  43763. $222 = ((($217)) + 24|0);
  43764. HEAP32[$222>>2] = $$3400;
  43765. break;
  43766. }
  43767. }
  43768. }
  43769. }
  43770. } while(0);
  43771. $223 = $135 | 1;
  43772. $224 = ((($$1)) + 4|0);
  43773. HEAP32[$224>>2] = $223;
  43774. $225 = (($113) + ($135)|0);
  43775. HEAP32[$225>>2] = $135;
  43776. $226 = HEAP32[(23036)>>2]|0;
  43777. $227 = ($$1|0)==($226|0);
  43778. if ($227) {
  43779. HEAP32[(23024)>>2] = $135;
  43780. return;
  43781. } else {
  43782. $$2 = $135;
  43783. }
  43784. } else {
  43785. $228 = $115 & -2;
  43786. HEAP32[$114>>2] = $228;
  43787. $229 = $$1382 | 1;
  43788. $230 = ((($$1)) + 4|0);
  43789. HEAP32[$230>>2] = $229;
  43790. $231 = (($113) + ($$1382)|0);
  43791. HEAP32[$231>>2] = $$1382;
  43792. $$2 = $$1382;
  43793. }
  43794. $232 = $$2 >>> 3;
  43795. $233 = ($$2>>>0)<(256);
  43796. if ($233) {
  43797. $234 = $232 << 1;
  43798. $235 = (23056 + ($234<<2)|0);
  43799. $236 = HEAP32[5754]|0;
  43800. $237 = 1 << $232;
  43801. $238 = $236 & $237;
  43802. $239 = ($238|0)==(0);
  43803. if ($239) {
  43804. $240 = $236 | $237;
  43805. HEAP32[5754] = $240;
  43806. $$pre = ((($235)) + 8|0);
  43807. $$0403 = $235;$$pre$phiZ2D = $$pre;
  43808. } else {
  43809. $241 = ((($235)) + 8|0);
  43810. $242 = HEAP32[$241>>2]|0;
  43811. $243 = HEAP32[(23032)>>2]|0;
  43812. $244 = ($242>>>0)<($243>>>0);
  43813. if ($244) {
  43814. _abort();
  43815. // unreachable;
  43816. } else {
  43817. $$0403 = $242;$$pre$phiZ2D = $241;
  43818. }
  43819. }
  43820. HEAP32[$$pre$phiZ2D>>2] = $$1;
  43821. $245 = ((($$0403)) + 12|0);
  43822. HEAP32[$245>>2] = $$1;
  43823. $246 = ((($$1)) + 8|0);
  43824. HEAP32[$246>>2] = $$0403;
  43825. $247 = ((($$1)) + 12|0);
  43826. HEAP32[$247>>2] = $235;
  43827. return;
  43828. }
  43829. $248 = $$2 >>> 8;
  43830. $249 = ($248|0)==(0);
  43831. if ($249) {
  43832. $$0396 = 0;
  43833. } else {
  43834. $250 = ($$2>>>0)>(16777215);
  43835. if ($250) {
  43836. $$0396 = 31;
  43837. } else {
  43838. $251 = (($248) + 1048320)|0;
  43839. $252 = $251 >>> 16;
  43840. $253 = $252 & 8;
  43841. $254 = $248 << $253;
  43842. $255 = (($254) + 520192)|0;
  43843. $256 = $255 >>> 16;
  43844. $257 = $256 & 4;
  43845. $258 = $257 | $253;
  43846. $259 = $254 << $257;
  43847. $260 = (($259) + 245760)|0;
  43848. $261 = $260 >>> 16;
  43849. $262 = $261 & 2;
  43850. $263 = $258 | $262;
  43851. $264 = (14 - ($263))|0;
  43852. $265 = $259 << $262;
  43853. $266 = $265 >>> 15;
  43854. $267 = (($264) + ($266))|0;
  43855. $268 = $267 << 1;
  43856. $269 = (($267) + 7)|0;
  43857. $270 = $$2 >>> $269;
  43858. $271 = $270 & 1;
  43859. $272 = $271 | $268;
  43860. $$0396 = $272;
  43861. }
  43862. }
  43863. $273 = (23320 + ($$0396<<2)|0);
  43864. $274 = ((($$1)) + 28|0);
  43865. HEAP32[$274>>2] = $$0396;
  43866. $275 = ((($$1)) + 16|0);
  43867. $276 = ((($$1)) + 20|0);
  43868. HEAP32[$276>>2] = 0;
  43869. HEAP32[$275>>2] = 0;
  43870. $277 = HEAP32[(23020)>>2]|0;
  43871. $278 = 1 << $$0396;
  43872. $279 = $277 & $278;
  43873. $280 = ($279|0)==(0);
  43874. do {
  43875. if ($280) {
  43876. $281 = $277 | $278;
  43877. HEAP32[(23020)>>2] = $281;
  43878. HEAP32[$273>>2] = $$1;
  43879. $282 = ((($$1)) + 24|0);
  43880. HEAP32[$282>>2] = $273;
  43881. $283 = ((($$1)) + 12|0);
  43882. HEAP32[$283>>2] = $$1;
  43883. $284 = ((($$1)) + 8|0);
  43884. HEAP32[$284>>2] = $$1;
  43885. } else {
  43886. $285 = HEAP32[$273>>2]|0;
  43887. $286 = ($$0396|0)==(31);
  43888. $287 = $$0396 >>> 1;
  43889. $288 = (25 - ($287))|0;
  43890. $289 = $286 ? 0 : $288;
  43891. $290 = $$2 << $289;
  43892. $$0383 = $290;$$0384 = $285;
  43893. while(1) {
  43894. $291 = ((($$0384)) + 4|0);
  43895. $292 = HEAP32[$291>>2]|0;
  43896. $293 = $292 & -8;
  43897. $294 = ($293|0)==($$2|0);
  43898. if ($294) {
  43899. label = 124;
  43900. break;
  43901. }
  43902. $295 = $$0383 >>> 31;
  43903. $296 = (((($$0384)) + 16|0) + ($295<<2)|0);
  43904. $297 = $$0383 << 1;
  43905. $298 = HEAP32[$296>>2]|0;
  43906. $299 = ($298|0)==(0|0);
  43907. if ($299) {
  43908. label = 121;
  43909. break;
  43910. } else {
  43911. $$0383 = $297;$$0384 = $298;
  43912. }
  43913. }
  43914. if ((label|0) == 121) {
  43915. $300 = HEAP32[(23032)>>2]|0;
  43916. $301 = ($296>>>0)<($300>>>0);
  43917. if ($301) {
  43918. _abort();
  43919. // unreachable;
  43920. } else {
  43921. HEAP32[$296>>2] = $$1;
  43922. $302 = ((($$1)) + 24|0);
  43923. HEAP32[$302>>2] = $$0384;
  43924. $303 = ((($$1)) + 12|0);
  43925. HEAP32[$303>>2] = $$1;
  43926. $304 = ((($$1)) + 8|0);
  43927. HEAP32[$304>>2] = $$1;
  43928. break;
  43929. }
  43930. }
  43931. else if ((label|0) == 124) {
  43932. $305 = ((($$0384)) + 8|0);
  43933. $306 = HEAP32[$305>>2]|0;
  43934. $307 = HEAP32[(23032)>>2]|0;
  43935. $308 = ($306>>>0)>=($307>>>0);
  43936. $not$437 = ($$0384>>>0)>=($307>>>0);
  43937. $309 = $308 & $not$437;
  43938. if ($309) {
  43939. $310 = ((($306)) + 12|0);
  43940. HEAP32[$310>>2] = $$1;
  43941. HEAP32[$305>>2] = $$1;
  43942. $311 = ((($$1)) + 8|0);
  43943. HEAP32[$311>>2] = $306;
  43944. $312 = ((($$1)) + 12|0);
  43945. HEAP32[$312>>2] = $$0384;
  43946. $313 = ((($$1)) + 24|0);
  43947. HEAP32[$313>>2] = 0;
  43948. break;
  43949. } else {
  43950. _abort();
  43951. // unreachable;
  43952. }
  43953. }
  43954. }
  43955. } while(0);
  43956. $314 = HEAP32[(23048)>>2]|0;
  43957. $315 = (($314) + -1)|0;
  43958. HEAP32[(23048)>>2] = $315;
  43959. $316 = ($315|0)==(0);
  43960. if ($316) {
  43961. $$0212$in$i = (23472);
  43962. } else {
  43963. return;
  43964. }
  43965. while(1) {
  43966. $$0212$i = HEAP32[$$0212$in$i>>2]|0;
  43967. $317 = ($$0212$i|0)==(0|0);
  43968. $318 = ((($$0212$i)) + 8|0);
  43969. if ($317) {
  43970. break;
  43971. } else {
  43972. $$0212$in$i = $318;
  43973. }
  43974. }
  43975. HEAP32[(23048)>>2] = -1;
  43976. return;
  43977. }
  43978. function _realloc($0,$1) {
  43979. $0 = $0|0;
  43980. $1 = $1|0;
  43981. 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;
  43982. var $6 = 0, $7 = 0, $8 = 0, $9 = 0, label = 0, sp = 0;
  43983. sp = STACKTOP;
  43984. $2 = ($0|0)==(0|0);
  43985. if ($2) {
  43986. $3 = (_malloc($1)|0);
  43987. $$1 = $3;
  43988. return ($$1|0);
  43989. }
  43990. $4 = ($1>>>0)>(4294967231);
  43991. if ($4) {
  43992. $5 = (___errno_location()|0);
  43993. HEAP32[$5>>2] = 12;
  43994. $$1 = 0;
  43995. return ($$1|0);
  43996. }
  43997. $6 = ($1>>>0)<(11);
  43998. $7 = (($1) + 11)|0;
  43999. $8 = $7 & -8;
  44000. $9 = $6 ? 16 : $8;
  44001. $10 = ((($0)) + -8|0);
  44002. $11 = (_try_realloc_chunk($10,$9)|0);
  44003. $12 = ($11|0)==(0|0);
  44004. if (!($12)) {
  44005. $13 = ((($11)) + 8|0);
  44006. $$1 = $13;
  44007. return ($$1|0);
  44008. }
  44009. $14 = (_malloc($1)|0);
  44010. $15 = ($14|0)==(0|0);
  44011. if ($15) {
  44012. $$1 = 0;
  44013. return ($$1|0);
  44014. }
  44015. $16 = ((($0)) + -4|0);
  44016. $17 = HEAP32[$16>>2]|0;
  44017. $18 = $17 & -8;
  44018. $19 = $17 & 3;
  44019. $20 = ($19|0)==(0);
  44020. $21 = $20 ? 8 : 4;
  44021. $22 = (($18) - ($21))|0;
  44022. $23 = ($22>>>0)<($1>>>0);
  44023. $24 = $23 ? $22 : $1;
  44024. _memcpy(($14|0),($0|0),($24|0))|0;
  44025. _free($0);
  44026. $$1 = $14;
  44027. return ($$1|0);
  44028. }
  44029. function _try_realloc_chunk($0,$1) {
  44030. $0 = $0|0;
  44031. $1 = $1|0;
  44032. 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;
  44033. 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;
  44034. 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;
  44035. 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;
  44036. 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;
  44037. 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;
  44038. 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;
  44039. 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;
  44040. 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;
  44041. var $cond = 0, $not$ = 0, $notlhs = 0, $notrhs = 0, $or$cond$not = 0, $or$cond3 = 0, $storemerge = 0, $storemerge1 = 0, label = 0, sp = 0;
  44042. sp = STACKTOP;
  44043. $2 = ((($0)) + 4|0);
  44044. $3 = HEAP32[$2>>2]|0;
  44045. $4 = $3 & -8;
  44046. $5 = (($0) + ($4)|0);
  44047. $6 = HEAP32[(23032)>>2]|0;
  44048. $7 = $3 & 3;
  44049. $notlhs = ($0>>>0)>=($6>>>0);
  44050. $notrhs = ($7|0)!=(1);
  44051. $or$cond$not = $notrhs & $notlhs;
  44052. $8 = ($0>>>0)<($5>>>0);
  44053. $or$cond3 = $or$cond$not & $8;
  44054. if (!($or$cond3)) {
  44055. _abort();
  44056. // unreachable;
  44057. }
  44058. $9 = ((($5)) + 4|0);
  44059. $10 = HEAP32[$9>>2]|0;
  44060. $11 = $10 & 1;
  44061. $12 = ($11|0)==(0);
  44062. if ($12) {
  44063. _abort();
  44064. // unreachable;
  44065. }
  44066. $13 = ($7|0)==(0);
  44067. if ($13) {
  44068. $14 = ($1>>>0)<(256);
  44069. if ($14) {
  44070. $$2 = 0;
  44071. return ($$2|0);
  44072. }
  44073. $15 = (($1) + 4)|0;
  44074. $16 = ($4>>>0)<($15>>>0);
  44075. if (!($16)) {
  44076. $17 = (($4) - ($1))|0;
  44077. $18 = HEAP32[(23496)>>2]|0;
  44078. $19 = $18 << 1;
  44079. $20 = ($17>>>0)>($19>>>0);
  44080. if (!($20)) {
  44081. $$2 = $0;
  44082. return ($$2|0);
  44083. }
  44084. }
  44085. $$2 = 0;
  44086. return ($$2|0);
  44087. }
  44088. $21 = ($4>>>0)<($1>>>0);
  44089. if (!($21)) {
  44090. $22 = (($4) - ($1))|0;
  44091. $23 = ($22>>>0)>(15);
  44092. if (!($23)) {
  44093. $$2 = $0;
  44094. return ($$2|0);
  44095. }
  44096. $24 = (($0) + ($1)|0);
  44097. $25 = $3 & 1;
  44098. $26 = $25 | $1;
  44099. $27 = $26 | 2;
  44100. HEAP32[$2>>2] = $27;
  44101. $28 = ((($24)) + 4|0);
  44102. $29 = $22 | 3;
  44103. HEAP32[$28>>2] = $29;
  44104. $30 = (($24) + ($22)|0);
  44105. $31 = ((($30)) + 4|0);
  44106. $32 = HEAP32[$31>>2]|0;
  44107. $33 = $32 | 1;
  44108. HEAP32[$31>>2] = $33;
  44109. _dispose_chunk($24,$22);
  44110. $$2 = $0;
  44111. return ($$2|0);
  44112. }
  44113. $34 = HEAP32[(23040)>>2]|0;
  44114. $35 = ($5|0)==($34|0);
  44115. if ($35) {
  44116. $36 = HEAP32[(23028)>>2]|0;
  44117. $37 = (($36) + ($4))|0;
  44118. $38 = ($37>>>0)>($1>>>0);
  44119. $39 = (($37) - ($1))|0;
  44120. $40 = (($0) + ($1)|0);
  44121. if (!($38)) {
  44122. $$2 = 0;
  44123. return ($$2|0);
  44124. }
  44125. $41 = $39 | 1;
  44126. $42 = ((($40)) + 4|0);
  44127. $43 = $3 & 1;
  44128. $44 = $43 | $1;
  44129. $45 = $44 | 2;
  44130. HEAP32[$2>>2] = $45;
  44131. HEAP32[$42>>2] = $41;
  44132. HEAP32[(23040)>>2] = $40;
  44133. HEAP32[(23028)>>2] = $39;
  44134. $$2 = $0;
  44135. return ($$2|0);
  44136. }
  44137. $46 = HEAP32[(23036)>>2]|0;
  44138. $47 = ($5|0)==($46|0);
  44139. if ($47) {
  44140. $48 = HEAP32[(23024)>>2]|0;
  44141. $49 = (($48) + ($4))|0;
  44142. $50 = ($49>>>0)<($1>>>0);
  44143. if ($50) {
  44144. $$2 = 0;
  44145. return ($$2|0);
  44146. }
  44147. $51 = (($49) - ($1))|0;
  44148. $52 = ($51>>>0)>(15);
  44149. $53 = $3 & 1;
  44150. if ($52) {
  44151. $54 = (($0) + ($1)|0);
  44152. $55 = (($54) + ($51)|0);
  44153. $56 = $53 | $1;
  44154. $57 = $56 | 2;
  44155. HEAP32[$2>>2] = $57;
  44156. $58 = ((($54)) + 4|0);
  44157. $59 = $51 | 1;
  44158. HEAP32[$58>>2] = $59;
  44159. HEAP32[$55>>2] = $51;
  44160. $60 = ((($55)) + 4|0);
  44161. $61 = HEAP32[$60>>2]|0;
  44162. $62 = $61 & -2;
  44163. HEAP32[$60>>2] = $62;
  44164. $storemerge = $54;$storemerge1 = $51;
  44165. } else {
  44166. $63 = $53 | $49;
  44167. $64 = $63 | 2;
  44168. HEAP32[$2>>2] = $64;
  44169. $65 = (($0) + ($49)|0);
  44170. $66 = ((($65)) + 4|0);
  44171. $67 = HEAP32[$66>>2]|0;
  44172. $68 = $67 | 1;
  44173. HEAP32[$66>>2] = $68;
  44174. $storemerge = 0;$storemerge1 = 0;
  44175. }
  44176. HEAP32[(23024)>>2] = $storemerge1;
  44177. HEAP32[(23036)>>2] = $storemerge;
  44178. $$2 = $0;
  44179. return ($$2|0);
  44180. }
  44181. $69 = $10 & 2;
  44182. $70 = ($69|0)==(0);
  44183. if (!($70)) {
  44184. $$2 = 0;
  44185. return ($$2|0);
  44186. }
  44187. $71 = $10 & -8;
  44188. $72 = (($71) + ($4))|0;
  44189. $73 = ($72>>>0)<($1>>>0);
  44190. if ($73) {
  44191. $$2 = 0;
  44192. return ($$2|0);
  44193. }
  44194. $74 = (($72) - ($1))|0;
  44195. $75 = $10 >>> 3;
  44196. $76 = ($10>>>0)<(256);
  44197. L49: do {
  44198. if ($76) {
  44199. $77 = ((($5)) + 8|0);
  44200. $78 = HEAP32[$77>>2]|0;
  44201. $79 = ((($5)) + 12|0);
  44202. $80 = HEAP32[$79>>2]|0;
  44203. $81 = $75 << 1;
  44204. $82 = (23056 + ($81<<2)|0);
  44205. $83 = ($78|0)==($82|0);
  44206. if (!($83)) {
  44207. $84 = ($78>>>0)<($6>>>0);
  44208. if ($84) {
  44209. _abort();
  44210. // unreachable;
  44211. }
  44212. $85 = ((($78)) + 12|0);
  44213. $86 = HEAP32[$85>>2]|0;
  44214. $87 = ($86|0)==($5|0);
  44215. if (!($87)) {
  44216. _abort();
  44217. // unreachable;
  44218. }
  44219. }
  44220. $88 = ($80|0)==($78|0);
  44221. if ($88) {
  44222. $89 = 1 << $75;
  44223. $90 = $89 ^ -1;
  44224. $91 = HEAP32[5754]|0;
  44225. $92 = $91 & $90;
  44226. HEAP32[5754] = $92;
  44227. break;
  44228. }
  44229. $93 = ($80|0)==($82|0);
  44230. if ($93) {
  44231. $$pre = ((($80)) + 8|0);
  44232. $$pre$phiZ2D = $$pre;
  44233. } else {
  44234. $94 = ($80>>>0)<($6>>>0);
  44235. if ($94) {
  44236. _abort();
  44237. // unreachable;
  44238. }
  44239. $95 = ((($80)) + 8|0);
  44240. $96 = HEAP32[$95>>2]|0;
  44241. $97 = ($96|0)==($5|0);
  44242. if ($97) {
  44243. $$pre$phiZ2D = $95;
  44244. } else {
  44245. _abort();
  44246. // unreachable;
  44247. }
  44248. }
  44249. $98 = ((($78)) + 12|0);
  44250. HEAP32[$98>>2] = $80;
  44251. HEAP32[$$pre$phiZ2D>>2] = $78;
  44252. } else {
  44253. $99 = ((($5)) + 24|0);
  44254. $100 = HEAP32[$99>>2]|0;
  44255. $101 = ((($5)) + 12|0);
  44256. $102 = HEAP32[$101>>2]|0;
  44257. $103 = ($102|0)==($5|0);
  44258. do {
  44259. if ($103) {
  44260. $113 = ((($5)) + 16|0);
  44261. $114 = ((($113)) + 4|0);
  44262. $115 = HEAP32[$114>>2]|0;
  44263. $116 = ($115|0)==(0|0);
  44264. if ($116) {
  44265. $117 = HEAP32[$113>>2]|0;
  44266. $118 = ($117|0)==(0|0);
  44267. if ($118) {
  44268. $$3 = 0;
  44269. break;
  44270. } else {
  44271. $$1272 = $117;$$1275 = $113;
  44272. }
  44273. } else {
  44274. $$1272 = $115;$$1275 = $114;
  44275. }
  44276. while(1) {
  44277. $119 = ((($$1272)) + 20|0);
  44278. $120 = HEAP32[$119>>2]|0;
  44279. $121 = ($120|0)==(0|0);
  44280. if (!($121)) {
  44281. $$1272 = $120;$$1275 = $119;
  44282. continue;
  44283. }
  44284. $122 = ((($$1272)) + 16|0);
  44285. $123 = HEAP32[$122>>2]|0;
  44286. $124 = ($123|0)==(0|0);
  44287. if ($124) {
  44288. break;
  44289. } else {
  44290. $$1272 = $123;$$1275 = $122;
  44291. }
  44292. }
  44293. $125 = ($$1275>>>0)<($6>>>0);
  44294. if ($125) {
  44295. _abort();
  44296. // unreachable;
  44297. } else {
  44298. HEAP32[$$1275>>2] = 0;
  44299. $$3 = $$1272;
  44300. break;
  44301. }
  44302. } else {
  44303. $104 = ((($5)) + 8|0);
  44304. $105 = HEAP32[$104>>2]|0;
  44305. $106 = ($105>>>0)<($6>>>0);
  44306. if ($106) {
  44307. _abort();
  44308. // unreachable;
  44309. }
  44310. $107 = ((($105)) + 12|0);
  44311. $108 = HEAP32[$107>>2]|0;
  44312. $109 = ($108|0)==($5|0);
  44313. if (!($109)) {
  44314. _abort();
  44315. // unreachable;
  44316. }
  44317. $110 = ((($102)) + 8|0);
  44318. $111 = HEAP32[$110>>2]|0;
  44319. $112 = ($111|0)==($5|0);
  44320. if ($112) {
  44321. HEAP32[$107>>2] = $102;
  44322. HEAP32[$110>>2] = $105;
  44323. $$3 = $102;
  44324. break;
  44325. } else {
  44326. _abort();
  44327. // unreachable;
  44328. }
  44329. }
  44330. } while(0);
  44331. $126 = ($100|0)==(0|0);
  44332. if (!($126)) {
  44333. $127 = ((($5)) + 28|0);
  44334. $128 = HEAP32[$127>>2]|0;
  44335. $129 = (23320 + ($128<<2)|0);
  44336. $130 = HEAP32[$129>>2]|0;
  44337. $131 = ($5|0)==($130|0);
  44338. do {
  44339. if ($131) {
  44340. HEAP32[$129>>2] = $$3;
  44341. $cond = ($$3|0)==(0|0);
  44342. if ($cond) {
  44343. $132 = 1 << $128;
  44344. $133 = $132 ^ -1;
  44345. $134 = HEAP32[(23020)>>2]|0;
  44346. $135 = $134 & $133;
  44347. HEAP32[(23020)>>2] = $135;
  44348. break L49;
  44349. }
  44350. } else {
  44351. $136 = HEAP32[(23032)>>2]|0;
  44352. $137 = ($100>>>0)<($136>>>0);
  44353. if ($137) {
  44354. _abort();
  44355. // unreachable;
  44356. } else {
  44357. $138 = ((($100)) + 16|0);
  44358. $139 = HEAP32[$138>>2]|0;
  44359. $not$ = ($139|0)!=($5|0);
  44360. $$sink1 = $not$&1;
  44361. $140 = (((($100)) + 16|0) + ($$sink1<<2)|0);
  44362. HEAP32[$140>>2] = $$3;
  44363. $141 = ($$3|0)==(0|0);
  44364. if ($141) {
  44365. break L49;
  44366. } else {
  44367. break;
  44368. }
  44369. }
  44370. }
  44371. } while(0);
  44372. $142 = HEAP32[(23032)>>2]|0;
  44373. $143 = ($$3>>>0)<($142>>>0);
  44374. if ($143) {
  44375. _abort();
  44376. // unreachable;
  44377. }
  44378. $144 = ((($$3)) + 24|0);
  44379. HEAP32[$144>>2] = $100;
  44380. $145 = ((($5)) + 16|0);
  44381. $146 = HEAP32[$145>>2]|0;
  44382. $147 = ($146|0)==(0|0);
  44383. do {
  44384. if (!($147)) {
  44385. $148 = ($146>>>0)<($142>>>0);
  44386. if ($148) {
  44387. _abort();
  44388. // unreachable;
  44389. } else {
  44390. $149 = ((($$3)) + 16|0);
  44391. HEAP32[$149>>2] = $146;
  44392. $150 = ((($146)) + 24|0);
  44393. HEAP32[$150>>2] = $$3;
  44394. break;
  44395. }
  44396. }
  44397. } while(0);
  44398. $151 = ((($145)) + 4|0);
  44399. $152 = HEAP32[$151>>2]|0;
  44400. $153 = ($152|0)==(0|0);
  44401. if (!($153)) {
  44402. $154 = HEAP32[(23032)>>2]|0;
  44403. $155 = ($152>>>0)<($154>>>0);
  44404. if ($155) {
  44405. _abort();
  44406. // unreachable;
  44407. } else {
  44408. $156 = ((($$3)) + 20|0);
  44409. HEAP32[$156>>2] = $152;
  44410. $157 = ((($152)) + 24|0);
  44411. HEAP32[$157>>2] = $$3;
  44412. break;
  44413. }
  44414. }
  44415. }
  44416. }
  44417. } while(0);
  44418. $158 = ($74>>>0)<(16);
  44419. $159 = $3 & 1;
  44420. if ($158) {
  44421. $160 = $72 | $159;
  44422. $161 = $160 | 2;
  44423. HEAP32[$2>>2] = $161;
  44424. $162 = (($0) + ($72)|0);
  44425. $163 = ((($162)) + 4|0);
  44426. $164 = HEAP32[$163>>2]|0;
  44427. $165 = $164 | 1;
  44428. HEAP32[$163>>2] = $165;
  44429. $$2 = $0;
  44430. return ($$2|0);
  44431. } else {
  44432. $166 = (($0) + ($1)|0);
  44433. $167 = $159 | $1;
  44434. $168 = $167 | 2;
  44435. HEAP32[$2>>2] = $168;
  44436. $169 = ((($166)) + 4|0);
  44437. $170 = $74 | 3;
  44438. HEAP32[$169>>2] = $170;
  44439. $171 = (($166) + ($74)|0);
  44440. $172 = ((($171)) + 4|0);
  44441. $173 = HEAP32[$172>>2]|0;
  44442. $174 = $173 | 1;
  44443. HEAP32[$172>>2] = $174;
  44444. _dispose_chunk($166,$74);
  44445. $$2 = $0;
  44446. return ($$2|0);
  44447. }
  44448. return (0)|0;
  44449. }
  44450. function _dispose_chunk($0,$1) {
  44451. $0 = $0|0;
  44452. $1 = $1|0;
  44453. 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;
  44454. 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;
  44455. 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;
  44456. 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;
  44457. 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;
  44458. 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;
  44459. 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;
  44460. 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;
  44461. 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;
  44462. 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;
  44463. 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;
  44464. 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;
  44465. 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;
  44466. 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;
  44467. 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;
  44468. 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;
  44469. var $97 = 0, $98 = 0, $99 = 0, $cond = 0, $cond17 = 0, $not$ = 0, $not$1 = 0, $not$19 = 0, label = 0, sp = 0;
  44470. sp = STACKTOP;
  44471. $2 = (($0) + ($1)|0);
  44472. $3 = ((($0)) + 4|0);
  44473. $4 = HEAP32[$3>>2]|0;
  44474. $5 = $4 & 1;
  44475. $6 = ($5|0)==(0);
  44476. L1: do {
  44477. if ($6) {
  44478. $7 = HEAP32[$0>>2]|0;
  44479. $8 = $4 & 3;
  44480. $9 = ($8|0)==(0);
  44481. if ($9) {
  44482. return;
  44483. }
  44484. $10 = (0 - ($7))|0;
  44485. $11 = (($0) + ($10)|0);
  44486. $12 = (($7) + ($1))|0;
  44487. $13 = HEAP32[(23032)>>2]|0;
  44488. $14 = ($11>>>0)<($13>>>0);
  44489. if ($14) {
  44490. _abort();
  44491. // unreachable;
  44492. }
  44493. $15 = HEAP32[(23036)>>2]|0;
  44494. $16 = ($11|0)==($15|0);
  44495. if ($16) {
  44496. $100 = ((($2)) + 4|0);
  44497. $101 = HEAP32[$100>>2]|0;
  44498. $102 = $101 & 3;
  44499. $103 = ($102|0)==(3);
  44500. if (!($103)) {
  44501. $$1 = $11;$$1418 = $12;
  44502. break;
  44503. }
  44504. $104 = (($11) + ($12)|0);
  44505. $105 = ((($11)) + 4|0);
  44506. $106 = $12 | 1;
  44507. $107 = $101 & -2;
  44508. HEAP32[(23024)>>2] = $12;
  44509. HEAP32[$100>>2] = $107;
  44510. HEAP32[$105>>2] = $106;
  44511. HEAP32[$104>>2] = $12;
  44512. return;
  44513. }
  44514. $17 = $7 >>> 3;
  44515. $18 = ($7>>>0)<(256);
  44516. if ($18) {
  44517. $19 = ((($11)) + 8|0);
  44518. $20 = HEAP32[$19>>2]|0;
  44519. $21 = ((($11)) + 12|0);
  44520. $22 = HEAP32[$21>>2]|0;
  44521. $23 = $17 << 1;
  44522. $24 = (23056 + ($23<<2)|0);
  44523. $25 = ($20|0)==($24|0);
  44524. if (!($25)) {
  44525. $26 = ($20>>>0)<($13>>>0);
  44526. if ($26) {
  44527. _abort();
  44528. // unreachable;
  44529. }
  44530. $27 = ((($20)) + 12|0);
  44531. $28 = HEAP32[$27>>2]|0;
  44532. $29 = ($28|0)==($11|0);
  44533. if (!($29)) {
  44534. _abort();
  44535. // unreachable;
  44536. }
  44537. }
  44538. $30 = ($22|0)==($20|0);
  44539. if ($30) {
  44540. $31 = 1 << $17;
  44541. $32 = $31 ^ -1;
  44542. $33 = HEAP32[5754]|0;
  44543. $34 = $33 & $32;
  44544. HEAP32[5754] = $34;
  44545. $$1 = $11;$$1418 = $12;
  44546. break;
  44547. }
  44548. $35 = ($22|0)==($24|0);
  44549. if ($35) {
  44550. $$pre25 = ((($22)) + 8|0);
  44551. $$pre$phi26Z2D = $$pre25;
  44552. } else {
  44553. $36 = ($22>>>0)<($13>>>0);
  44554. if ($36) {
  44555. _abort();
  44556. // unreachable;
  44557. }
  44558. $37 = ((($22)) + 8|0);
  44559. $38 = HEAP32[$37>>2]|0;
  44560. $39 = ($38|0)==($11|0);
  44561. if ($39) {
  44562. $$pre$phi26Z2D = $37;
  44563. } else {
  44564. _abort();
  44565. // unreachable;
  44566. }
  44567. }
  44568. $40 = ((($20)) + 12|0);
  44569. HEAP32[$40>>2] = $22;
  44570. HEAP32[$$pre$phi26Z2D>>2] = $20;
  44571. $$1 = $11;$$1418 = $12;
  44572. break;
  44573. }
  44574. $41 = ((($11)) + 24|0);
  44575. $42 = HEAP32[$41>>2]|0;
  44576. $43 = ((($11)) + 12|0);
  44577. $44 = HEAP32[$43>>2]|0;
  44578. $45 = ($44|0)==($11|0);
  44579. do {
  44580. if ($45) {
  44581. $55 = ((($11)) + 16|0);
  44582. $56 = ((($55)) + 4|0);
  44583. $57 = HEAP32[$56>>2]|0;
  44584. $58 = ($57|0)==(0|0);
  44585. if ($58) {
  44586. $59 = HEAP32[$55>>2]|0;
  44587. $60 = ($59|0)==(0|0);
  44588. if ($60) {
  44589. $$3 = 0;
  44590. break;
  44591. } else {
  44592. $$1426 = $59;$$1429 = $55;
  44593. }
  44594. } else {
  44595. $$1426 = $57;$$1429 = $56;
  44596. }
  44597. while(1) {
  44598. $61 = ((($$1426)) + 20|0);
  44599. $62 = HEAP32[$61>>2]|0;
  44600. $63 = ($62|0)==(0|0);
  44601. if (!($63)) {
  44602. $$1426 = $62;$$1429 = $61;
  44603. continue;
  44604. }
  44605. $64 = ((($$1426)) + 16|0);
  44606. $65 = HEAP32[$64>>2]|0;
  44607. $66 = ($65|0)==(0|0);
  44608. if ($66) {
  44609. break;
  44610. } else {
  44611. $$1426 = $65;$$1429 = $64;
  44612. }
  44613. }
  44614. $67 = ($$1429>>>0)<($13>>>0);
  44615. if ($67) {
  44616. _abort();
  44617. // unreachable;
  44618. } else {
  44619. HEAP32[$$1429>>2] = 0;
  44620. $$3 = $$1426;
  44621. break;
  44622. }
  44623. } else {
  44624. $46 = ((($11)) + 8|0);
  44625. $47 = HEAP32[$46>>2]|0;
  44626. $48 = ($47>>>0)<($13>>>0);
  44627. if ($48) {
  44628. _abort();
  44629. // unreachable;
  44630. }
  44631. $49 = ((($47)) + 12|0);
  44632. $50 = HEAP32[$49>>2]|0;
  44633. $51 = ($50|0)==($11|0);
  44634. if (!($51)) {
  44635. _abort();
  44636. // unreachable;
  44637. }
  44638. $52 = ((($44)) + 8|0);
  44639. $53 = HEAP32[$52>>2]|0;
  44640. $54 = ($53|0)==($11|0);
  44641. if ($54) {
  44642. HEAP32[$49>>2] = $44;
  44643. HEAP32[$52>>2] = $47;
  44644. $$3 = $44;
  44645. break;
  44646. } else {
  44647. _abort();
  44648. // unreachable;
  44649. }
  44650. }
  44651. } while(0);
  44652. $68 = ($42|0)==(0|0);
  44653. if ($68) {
  44654. $$1 = $11;$$1418 = $12;
  44655. } else {
  44656. $69 = ((($11)) + 28|0);
  44657. $70 = HEAP32[$69>>2]|0;
  44658. $71 = (23320 + ($70<<2)|0);
  44659. $72 = HEAP32[$71>>2]|0;
  44660. $73 = ($11|0)==($72|0);
  44661. do {
  44662. if ($73) {
  44663. HEAP32[$71>>2] = $$3;
  44664. $cond = ($$3|0)==(0|0);
  44665. if ($cond) {
  44666. $74 = 1 << $70;
  44667. $75 = $74 ^ -1;
  44668. $76 = HEAP32[(23020)>>2]|0;
  44669. $77 = $76 & $75;
  44670. HEAP32[(23020)>>2] = $77;
  44671. $$1 = $11;$$1418 = $12;
  44672. break L1;
  44673. }
  44674. } else {
  44675. $78 = HEAP32[(23032)>>2]|0;
  44676. $79 = ($42>>>0)<($78>>>0);
  44677. if ($79) {
  44678. _abort();
  44679. // unreachable;
  44680. } else {
  44681. $80 = ((($42)) + 16|0);
  44682. $81 = HEAP32[$80>>2]|0;
  44683. $not$1 = ($81|0)!=($11|0);
  44684. $$sink2 = $not$1&1;
  44685. $82 = (((($42)) + 16|0) + ($$sink2<<2)|0);
  44686. HEAP32[$82>>2] = $$3;
  44687. $83 = ($$3|0)==(0|0);
  44688. if ($83) {
  44689. $$1 = $11;$$1418 = $12;
  44690. break L1;
  44691. } else {
  44692. break;
  44693. }
  44694. }
  44695. }
  44696. } while(0);
  44697. $84 = HEAP32[(23032)>>2]|0;
  44698. $85 = ($$3>>>0)<($84>>>0);
  44699. if ($85) {
  44700. _abort();
  44701. // unreachable;
  44702. }
  44703. $86 = ((($$3)) + 24|0);
  44704. HEAP32[$86>>2] = $42;
  44705. $87 = ((($11)) + 16|0);
  44706. $88 = HEAP32[$87>>2]|0;
  44707. $89 = ($88|0)==(0|0);
  44708. do {
  44709. if (!($89)) {
  44710. $90 = ($88>>>0)<($84>>>0);
  44711. if ($90) {
  44712. _abort();
  44713. // unreachable;
  44714. } else {
  44715. $91 = ((($$3)) + 16|0);
  44716. HEAP32[$91>>2] = $88;
  44717. $92 = ((($88)) + 24|0);
  44718. HEAP32[$92>>2] = $$3;
  44719. break;
  44720. }
  44721. }
  44722. } while(0);
  44723. $93 = ((($87)) + 4|0);
  44724. $94 = HEAP32[$93>>2]|0;
  44725. $95 = ($94|0)==(0|0);
  44726. if ($95) {
  44727. $$1 = $11;$$1418 = $12;
  44728. } else {
  44729. $96 = HEAP32[(23032)>>2]|0;
  44730. $97 = ($94>>>0)<($96>>>0);
  44731. if ($97) {
  44732. _abort();
  44733. // unreachable;
  44734. } else {
  44735. $98 = ((($$3)) + 20|0);
  44736. HEAP32[$98>>2] = $94;
  44737. $99 = ((($94)) + 24|0);
  44738. HEAP32[$99>>2] = $$3;
  44739. $$1 = $11;$$1418 = $12;
  44740. break;
  44741. }
  44742. }
  44743. }
  44744. } else {
  44745. $$1 = $0;$$1418 = $1;
  44746. }
  44747. } while(0);
  44748. $108 = HEAP32[(23032)>>2]|0;
  44749. $109 = ($2>>>0)<($108>>>0);
  44750. if ($109) {
  44751. _abort();
  44752. // unreachable;
  44753. }
  44754. $110 = ((($2)) + 4|0);
  44755. $111 = HEAP32[$110>>2]|0;
  44756. $112 = $111 & 2;
  44757. $113 = ($112|0)==(0);
  44758. if ($113) {
  44759. $114 = HEAP32[(23040)>>2]|0;
  44760. $115 = ($2|0)==($114|0);
  44761. $116 = HEAP32[(23036)>>2]|0;
  44762. if ($115) {
  44763. $117 = HEAP32[(23028)>>2]|0;
  44764. $118 = (($117) + ($$1418))|0;
  44765. HEAP32[(23028)>>2] = $118;
  44766. HEAP32[(23040)>>2] = $$1;
  44767. $119 = $118 | 1;
  44768. $120 = ((($$1)) + 4|0);
  44769. HEAP32[$120>>2] = $119;
  44770. $121 = ($$1|0)==($116|0);
  44771. if (!($121)) {
  44772. return;
  44773. }
  44774. HEAP32[(23036)>>2] = 0;
  44775. HEAP32[(23024)>>2] = 0;
  44776. return;
  44777. }
  44778. $122 = ($2|0)==($116|0);
  44779. if ($122) {
  44780. $123 = HEAP32[(23024)>>2]|0;
  44781. $124 = (($123) + ($$1418))|0;
  44782. HEAP32[(23024)>>2] = $124;
  44783. HEAP32[(23036)>>2] = $$1;
  44784. $125 = $124 | 1;
  44785. $126 = ((($$1)) + 4|0);
  44786. HEAP32[$126>>2] = $125;
  44787. $127 = (($$1) + ($124)|0);
  44788. HEAP32[$127>>2] = $124;
  44789. return;
  44790. }
  44791. $128 = $111 & -8;
  44792. $129 = (($128) + ($$1418))|0;
  44793. $130 = $111 >>> 3;
  44794. $131 = ($111>>>0)<(256);
  44795. L96: do {
  44796. if ($131) {
  44797. $132 = ((($2)) + 8|0);
  44798. $133 = HEAP32[$132>>2]|0;
  44799. $134 = ((($2)) + 12|0);
  44800. $135 = HEAP32[$134>>2]|0;
  44801. $136 = $130 << 1;
  44802. $137 = (23056 + ($136<<2)|0);
  44803. $138 = ($133|0)==($137|0);
  44804. if (!($138)) {
  44805. $139 = ($133>>>0)<($108>>>0);
  44806. if ($139) {
  44807. _abort();
  44808. // unreachable;
  44809. }
  44810. $140 = ((($133)) + 12|0);
  44811. $141 = HEAP32[$140>>2]|0;
  44812. $142 = ($141|0)==($2|0);
  44813. if (!($142)) {
  44814. _abort();
  44815. // unreachable;
  44816. }
  44817. }
  44818. $143 = ($135|0)==($133|0);
  44819. if ($143) {
  44820. $144 = 1 << $130;
  44821. $145 = $144 ^ -1;
  44822. $146 = HEAP32[5754]|0;
  44823. $147 = $146 & $145;
  44824. HEAP32[5754] = $147;
  44825. break;
  44826. }
  44827. $148 = ($135|0)==($137|0);
  44828. if ($148) {
  44829. $$pre23 = ((($135)) + 8|0);
  44830. $$pre$phi24Z2D = $$pre23;
  44831. } else {
  44832. $149 = ($135>>>0)<($108>>>0);
  44833. if ($149) {
  44834. _abort();
  44835. // unreachable;
  44836. }
  44837. $150 = ((($135)) + 8|0);
  44838. $151 = HEAP32[$150>>2]|0;
  44839. $152 = ($151|0)==($2|0);
  44840. if ($152) {
  44841. $$pre$phi24Z2D = $150;
  44842. } else {
  44843. _abort();
  44844. // unreachable;
  44845. }
  44846. }
  44847. $153 = ((($133)) + 12|0);
  44848. HEAP32[$153>>2] = $135;
  44849. HEAP32[$$pre$phi24Z2D>>2] = $133;
  44850. } else {
  44851. $154 = ((($2)) + 24|0);
  44852. $155 = HEAP32[$154>>2]|0;
  44853. $156 = ((($2)) + 12|0);
  44854. $157 = HEAP32[$156>>2]|0;
  44855. $158 = ($157|0)==($2|0);
  44856. do {
  44857. if ($158) {
  44858. $168 = ((($2)) + 16|0);
  44859. $169 = ((($168)) + 4|0);
  44860. $170 = HEAP32[$169>>2]|0;
  44861. $171 = ($170|0)==(0|0);
  44862. if ($171) {
  44863. $172 = HEAP32[$168>>2]|0;
  44864. $173 = ($172|0)==(0|0);
  44865. if ($173) {
  44866. $$3435 = 0;
  44867. break;
  44868. } else {
  44869. $$1433 = $172;$$1437 = $168;
  44870. }
  44871. } else {
  44872. $$1433 = $170;$$1437 = $169;
  44873. }
  44874. while(1) {
  44875. $174 = ((($$1433)) + 20|0);
  44876. $175 = HEAP32[$174>>2]|0;
  44877. $176 = ($175|0)==(0|0);
  44878. if (!($176)) {
  44879. $$1433 = $175;$$1437 = $174;
  44880. continue;
  44881. }
  44882. $177 = ((($$1433)) + 16|0);
  44883. $178 = HEAP32[$177>>2]|0;
  44884. $179 = ($178|0)==(0|0);
  44885. if ($179) {
  44886. break;
  44887. } else {
  44888. $$1433 = $178;$$1437 = $177;
  44889. }
  44890. }
  44891. $180 = ($$1437>>>0)<($108>>>0);
  44892. if ($180) {
  44893. _abort();
  44894. // unreachable;
  44895. } else {
  44896. HEAP32[$$1437>>2] = 0;
  44897. $$3435 = $$1433;
  44898. break;
  44899. }
  44900. } else {
  44901. $159 = ((($2)) + 8|0);
  44902. $160 = HEAP32[$159>>2]|0;
  44903. $161 = ($160>>>0)<($108>>>0);
  44904. if ($161) {
  44905. _abort();
  44906. // unreachable;
  44907. }
  44908. $162 = ((($160)) + 12|0);
  44909. $163 = HEAP32[$162>>2]|0;
  44910. $164 = ($163|0)==($2|0);
  44911. if (!($164)) {
  44912. _abort();
  44913. // unreachable;
  44914. }
  44915. $165 = ((($157)) + 8|0);
  44916. $166 = HEAP32[$165>>2]|0;
  44917. $167 = ($166|0)==($2|0);
  44918. if ($167) {
  44919. HEAP32[$162>>2] = $157;
  44920. HEAP32[$165>>2] = $160;
  44921. $$3435 = $157;
  44922. break;
  44923. } else {
  44924. _abort();
  44925. // unreachable;
  44926. }
  44927. }
  44928. } while(0);
  44929. $181 = ($155|0)==(0|0);
  44930. if (!($181)) {
  44931. $182 = ((($2)) + 28|0);
  44932. $183 = HEAP32[$182>>2]|0;
  44933. $184 = (23320 + ($183<<2)|0);
  44934. $185 = HEAP32[$184>>2]|0;
  44935. $186 = ($2|0)==($185|0);
  44936. do {
  44937. if ($186) {
  44938. HEAP32[$184>>2] = $$3435;
  44939. $cond17 = ($$3435|0)==(0|0);
  44940. if ($cond17) {
  44941. $187 = 1 << $183;
  44942. $188 = $187 ^ -1;
  44943. $189 = HEAP32[(23020)>>2]|0;
  44944. $190 = $189 & $188;
  44945. HEAP32[(23020)>>2] = $190;
  44946. break L96;
  44947. }
  44948. } else {
  44949. $191 = HEAP32[(23032)>>2]|0;
  44950. $192 = ($155>>>0)<($191>>>0);
  44951. if ($192) {
  44952. _abort();
  44953. // unreachable;
  44954. } else {
  44955. $193 = ((($155)) + 16|0);
  44956. $194 = HEAP32[$193>>2]|0;
  44957. $not$ = ($194|0)!=($2|0);
  44958. $$sink4 = $not$&1;
  44959. $195 = (((($155)) + 16|0) + ($$sink4<<2)|0);
  44960. HEAP32[$195>>2] = $$3435;
  44961. $196 = ($$3435|0)==(0|0);
  44962. if ($196) {
  44963. break L96;
  44964. } else {
  44965. break;
  44966. }
  44967. }
  44968. }
  44969. } while(0);
  44970. $197 = HEAP32[(23032)>>2]|0;
  44971. $198 = ($$3435>>>0)<($197>>>0);
  44972. if ($198) {
  44973. _abort();
  44974. // unreachable;
  44975. }
  44976. $199 = ((($$3435)) + 24|0);
  44977. HEAP32[$199>>2] = $155;
  44978. $200 = ((($2)) + 16|0);
  44979. $201 = HEAP32[$200>>2]|0;
  44980. $202 = ($201|0)==(0|0);
  44981. do {
  44982. if (!($202)) {
  44983. $203 = ($201>>>0)<($197>>>0);
  44984. if ($203) {
  44985. _abort();
  44986. // unreachable;
  44987. } else {
  44988. $204 = ((($$3435)) + 16|0);
  44989. HEAP32[$204>>2] = $201;
  44990. $205 = ((($201)) + 24|0);
  44991. HEAP32[$205>>2] = $$3435;
  44992. break;
  44993. }
  44994. }
  44995. } while(0);
  44996. $206 = ((($200)) + 4|0);
  44997. $207 = HEAP32[$206>>2]|0;
  44998. $208 = ($207|0)==(0|0);
  44999. if (!($208)) {
  45000. $209 = HEAP32[(23032)>>2]|0;
  45001. $210 = ($207>>>0)<($209>>>0);
  45002. if ($210) {
  45003. _abort();
  45004. // unreachable;
  45005. } else {
  45006. $211 = ((($$3435)) + 20|0);
  45007. HEAP32[$211>>2] = $207;
  45008. $212 = ((($207)) + 24|0);
  45009. HEAP32[$212>>2] = $$3435;
  45010. break;
  45011. }
  45012. }
  45013. }
  45014. }
  45015. } while(0);
  45016. $213 = $129 | 1;
  45017. $214 = ((($$1)) + 4|0);
  45018. HEAP32[$214>>2] = $213;
  45019. $215 = (($$1) + ($129)|0);
  45020. HEAP32[$215>>2] = $129;
  45021. $216 = HEAP32[(23036)>>2]|0;
  45022. $217 = ($$1|0)==($216|0);
  45023. if ($217) {
  45024. HEAP32[(23024)>>2] = $129;
  45025. return;
  45026. } else {
  45027. $$2 = $129;
  45028. }
  45029. } else {
  45030. $218 = $111 & -2;
  45031. HEAP32[$110>>2] = $218;
  45032. $219 = $$1418 | 1;
  45033. $220 = ((($$1)) + 4|0);
  45034. HEAP32[$220>>2] = $219;
  45035. $221 = (($$1) + ($$1418)|0);
  45036. HEAP32[$221>>2] = $$1418;
  45037. $$2 = $$1418;
  45038. }
  45039. $222 = $$2 >>> 3;
  45040. $223 = ($$2>>>0)<(256);
  45041. if ($223) {
  45042. $224 = $222 << 1;
  45043. $225 = (23056 + ($224<<2)|0);
  45044. $226 = HEAP32[5754]|0;
  45045. $227 = 1 << $222;
  45046. $228 = $226 & $227;
  45047. $229 = ($228|0)==(0);
  45048. if ($229) {
  45049. $230 = $226 | $227;
  45050. HEAP32[5754] = $230;
  45051. $$pre = ((($225)) + 8|0);
  45052. $$0438 = $225;$$pre$phiZ2D = $$pre;
  45053. } else {
  45054. $231 = ((($225)) + 8|0);
  45055. $232 = HEAP32[$231>>2]|0;
  45056. $233 = HEAP32[(23032)>>2]|0;
  45057. $234 = ($232>>>0)<($233>>>0);
  45058. if ($234) {
  45059. _abort();
  45060. // unreachable;
  45061. } else {
  45062. $$0438 = $232;$$pre$phiZ2D = $231;
  45063. }
  45064. }
  45065. HEAP32[$$pre$phiZ2D>>2] = $$1;
  45066. $235 = ((($$0438)) + 12|0);
  45067. HEAP32[$235>>2] = $$1;
  45068. $236 = ((($$1)) + 8|0);
  45069. HEAP32[$236>>2] = $$0438;
  45070. $237 = ((($$1)) + 12|0);
  45071. HEAP32[$237>>2] = $225;
  45072. return;
  45073. }
  45074. $238 = $$2 >>> 8;
  45075. $239 = ($238|0)==(0);
  45076. if ($239) {
  45077. $$0431 = 0;
  45078. } else {
  45079. $240 = ($$2>>>0)>(16777215);
  45080. if ($240) {
  45081. $$0431 = 31;
  45082. } else {
  45083. $241 = (($238) + 1048320)|0;
  45084. $242 = $241 >>> 16;
  45085. $243 = $242 & 8;
  45086. $244 = $238 << $243;
  45087. $245 = (($244) + 520192)|0;
  45088. $246 = $245 >>> 16;
  45089. $247 = $246 & 4;
  45090. $248 = $247 | $243;
  45091. $249 = $244 << $247;
  45092. $250 = (($249) + 245760)|0;
  45093. $251 = $250 >>> 16;
  45094. $252 = $251 & 2;
  45095. $253 = $248 | $252;
  45096. $254 = (14 - ($253))|0;
  45097. $255 = $249 << $252;
  45098. $256 = $255 >>> 15;
  45099. $257 = (($254) + ($256))|0;
  45100. $258 = $257 << 1;
  45101. $259 = (($257) + 7)|0;
  45102. $260 = $$2 >>> $259;
  45103. $261 = $260 & 1;
  45104. $262 = $261 | $258;
  45105. $$0431 = $262;
  45106. }
  45107. }
  45108. $263 = (23320 + ($$0431<<2)|0);
  45109. $264 = ((($$1)) + 28|0);
  45110. HEAP32[$264>>2] = $$0431;
  45111. $265 = ((($$1)) + 16|0);
  45112. $266 = ((($$1)) + 20|0);
  45113. HEAP32[$266>>2] = 0;
  45114. HEAP32[$265>>2] = 0;
  45115. $267 = HEAP32[(23020)>>2]|0;
  45116. $268 = 1 << $$0431;
  45117. $269 = $267 & $268;
  45118. $270 = ($269|0)==(0);
  45119. if ($270) {
  45120. $271 = $267 | $268;
  45121. HEAP32[(23020)>>2] = $271;
  45122. HEAP32[$263>>2] = $$1;
  45123. $272 = ((($$1)) + 24|0);
  45124. HEAP32[$272>>2] = $263;
  45125. $273 = ((($$1)) + 12|0);
  45126. HEAP32[$273>>2] = $$1;
  45127. $274 = ((($$1)) + 8|0);
  45128. HEAP32[$274>>2] = $$1;
  45129. return;
  45130. }
  45131. $275 = HEAP32[$263>>2]|0;
  45132. $276 = ($$0431|0)==(31);
  45133. $277 = $$0431 >>> 1;
  45134. $278 = (25 - ($277))|0;
  45135. $279 = $276 ? 0 : $278;
  45136. $280 = $$2 << $279;
  45137. $$0419 = $280;$$0420 = $275;
  45138. while(1) {
  45139. $281 = ((($$0420)) + 4|0);
  45140. $282 = HEAP32[$281>>2]|0;
  45141. $283 = $282 & -8;
  45142. $284 = ($283|0)==($$2|0);
  45143. if ($284) {
  45144. label = 121;
  45145. break;
  45146. }
  45147. $285 = $$0419 >>> 31;
  45148. $286 = (((($$0420)) + 16|0) + ($285<<2)|0);
  45149. $287 = $$0419 << 1;
  45150. $288 = HEAP32[$286>>2]|0;
  45151. $289 = ($288|0)==(0|0);
  45152. if ($289) {
  45153. label = 118;
  45154. break;
  45155. } else {
  45156. $$0419 = $287;$$0420 = $288;
  45157. }
  45158. }
  45159. if ((label|0) == 118) {
  45160. $290 = HEAP32[(23032)>>2]|0;
  45161. $291 = ($286>>>0)<($290>>>0);
  45162. if ($291) {
  45163. _abort();
  45164. // unreachable;
  45165. }
  45166. HEAP32[$286>>2] = $$1;
  45167. $292 = ((($$1)) + 24|0);
  45168. HEAP32[$292>>2] = $$0420;
  45169. $293 = ((($$1)) + 12|0);
  45170. HEAP32[$293>>2] = $$1;
  45171. $294 = ((($$1)) + 8|0);
  45172. HEAP32[$294>>2] = $$1;
  45173. return;
  45174. }
  45175. else if ((label|0) == 121) {
  45176. $295 = ((($$0420)) + 8|0);
  45177. $296 = HEAP32[$295>>2]|0;
  45178. $297 = HEAP32[(23032)>>2]|0;
  45179. $298 = ($296>>>0)>=($297>>>0);
  45180. $not$19 = ($$0420>>>0)>=($297>>>0);
  45181. $299 = $298 & $not$19;
  45182. if (!($299)) {
  45183. _abort();
  45184. // unreachable;
  45185. }
  45186. $300 = ((($296)) + 12|0);
  45187. HEAP32[$300>>2] = $$1;
  45188. HEAP32[$295>>2] = $$1;
  45189. $301 = ((($$1)) + 8|0);
  45190. HEAP32[$301>>2] = $296;
  45191. $302 = ((($$1)) + 12|0);
  45192. HEAP32[$302>>2] = $$0420;
  45193. $303 = ((($$1)) + 24|0);
  45194. HEAP32[$303>>2] = 0;
  45195. return;
  45196. }
  45197. }
  45198. function runPostSets() {
  45199. }
  45200. function _memset(ptr, value, num) {
  45201. ptr = ptr|0; value = value|0; num = num|0;
  45202. var end = 0, aligned_end = 0, block_aligned_end = 0, value4 = 0;
  45203. end = (ptr + num)|0;
  45204. value = value & 0xff;
  45205. if ((num|0) >= 67 /* 64 bytes for an unrolled loop + 3 bytes for unaligned head*/) {
  45206. while ((ptr&3) != 0) {
  45207. HEAP8[((ptr)>>0)]=value;
  45208. ptr = (ptr+1)|0;
  45209. }
  45210. aligned_end = (end & -4)|0;
  45211. block_aligned_end = (aligned_end - 64)|0;
  45212. value4 = value | (value << 8) | (value << 16) | (value << 24);
  45213. while((ptr|0) <= (block_aligned_end|0)) {
  45214. HEAP32[((ptr)>>2)]=value4;
  45215. HEAP32[(((ptr)+(4))>>2)]=value4;
  45216. HEAP32[(((ptr)+(8))>>2)]=value4;
  45217. HEAP32[(((ptr)+(12))>>2)]=value4;
  45218. HEAP32[(((ptr)+(16))>>2)]=value4;
  45219. HEAP32[(((ptr)+(20))>>2)]=value4;
  45220. HEAP32[(((ptr)+(24))>>2)]=value4;
  45221. HEAP32[(((ptr)+(28))>>2)]=value4;
  45222. HEAP32[(((ptr)+(32))>>2)]=value4;
  45223. HEAP32[(((ptr)+(36))>>2)]=value4;
  45224. HEAP32[(((ptr)+(40))>>2)]=value4;
  45225. HEAP32[(((ptr)+(44))>>2)]=value4;
  45226. HEAP32[(((ptr)+(48))>>2)]=value4;
  45227. HEAP32[(((ptr)+(52))>>2)]=value4;
  45228. HEAP32[(((ptr)+(56))>>2)]=value4;
  45229. HEAP32[(((ptr)+(60))>>2)]=value4;
  45230. ptr = (ptr + 64)|0;
  45231. }
  45232. while ((ptr|0) < (aligned_end|0) ) {
  45233. HEAP32[((ptr)>>2)]=value4;
  45234. ptr = (ptr+4)|0;
  45235. }
  45236. }
  45237. // The remaining bytes.
  45238. while ((ptr|0) < (end|0)) {
  45239. HEAP8[((ptr)>>0)]=value;
  45240. ptr = (ptr+1)|0;
  45241. }
  45242. return (end-num)|0;
  45243. }
  45244. function _i64Subtract(a, b, c, d) {
  45245. a = a|0; b = b|0; c = c|0; d = d|0;
  45246. var l = 0, h = 0;
  45247. l = (a - c)>>>0;
  45248. h = (b - d)>>>0;
  45249. h = (b - d - (((c>>>0) > (a>>>0))|0))>>>0; // Borrow one from high word to low word on underflow.
  45250. return ((tempRet0 = h,l|0)|0);
  45251. }
  45252. function _i64Add(a, b, c, d) {
  45253. /*
  45254. x = a + b*2^32
  45255. y = c + d*2^32
  45256. result = l + h*2^32
  45257. */
  45258. a = a|0; b = b|0; c = c|0; d = d|0;
  45259. var l = 0, h = 0;
  45260. l = (a + c)>>>0;
  45261. h = (b + d + (((l>>>0) < (a>>>0))|0))>>>0; // Add carry from low word to high word on overflow.
  45262. return ((tempRet0 = h,l|0)|0);
  45263. }
  45264. function _llvm_cttz_i32(x) {
  45265. x = x|0;
  45266. var ret = 0;
  45267. ret = ((HEAP8[(((cttz_i8)+(x & 0xff))>>0)])|0);
  45268. if ((ret|0) < 8) return ret|0;
  45269. ret = ((HEAP8[(((cttz_i8)+((x >> 8)&0xff))>>0)])|0);
  45270. if ((ret|0) < 8) return (ret + 8)|0;
  45271. ret = ((HEAP8[(((cttz_i8)+((x >> 16)&0xff))>>0)])|0);
  45272. if ((ret|0) < 8) return (ret + 16)|0;
  45273. return (((HEAP8[(((cttz_i8)+(x >>> 24))>>0)])|0) + 24)|0;
  45274. }
  45275. function ___udivmoddi4($a$0, $a$1, $b$0, $b$1, $rem) {
  45276. $a$0 = $a$0 | 0;
  45277. $a$1 = $a$1 | 0;
  45278. $b$0 = $b$0 | 0;
  45279. $b$1 = $b$1 | 0;
  45280. $rem = $rem | 0;
  45281. 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;
  45282. $n_sroa_0_0_extract_trunc = $a$0;
  45283. $n_sroa_1_4_extract_shift$0 = $a$1;
  45284. $n_sroa_1_4_extract_trunc = $n_sroa_1_4_extract_shift$0;
  45285. $d_sroa_0_0_extract_trunc = $b$0;
  45286. $d_sroa_1_4_extract_shift$0 = $b$1;
  45287. $d_sroa_1_4_extract_trunc = $d_sroa_1_4_extract_shift$0;
  45288. if (($n_sroa_1_4_extract_trunc | 0) == 0) {
  45289. $4 = ($rem | 0) != 0;
  45290. if (($d_sroa_1_4_extract_trunc | 0) == 0) {
  45291. if ($4) {
  45292. HEAP32[$rem >> 2] = ($n_sroa_0_0_extract_trunc >>> 0) % ($d_sroa_0_0_extract_trunc >>> 0);
  45293. HEAP32[$rem + 4 >> 2] = 0;
  45294. }
  45295. $_0$1 = 0;
  45296. $_0$0 = ($n_sroa_0_0_extract_trunc >>> 0) / ($d_sroa_0_0_extract_trunc >>> 0) >>> 0;
  45297. return (tempRet0 = $_0$1, $_0$0) | 0;
  45298. } else {
  45299. if (!$4) {
  45300. $_0$1 = 0;
  45301. $_0$0 = 0;
  45302. return (tempRet0 = $_0$1, $_0$0) | 0;
  45303. }
  45304. HEAP32[$rem >> 2] = $a$0 & -1;
  45305. HEAP32[$rem + 4 >> 2] = $a$1 & 0;
  45306. $_0$1 = 0;
  45307. $_0$0 = 0;
  45308. return (tempRet0 = $_0$1, $_0$0) | 0;
  45309. }
  45310. }
  45311. $17 = ($d_sroa_1_4_extract_trunc | 0) == 0;
  45312. do {
  45313. if (($d_sroa_0_0_extract_trunc | 0) == 0) {
  45314. if ($17) {
  45315. if (($rem | 0) != 0) {
  45316. HEAP32[$rem >> 2] = ($n_sroa_1_4_extract_trunc >>> 0) % ($d_sroa_0_0_extract_trunc >>> 0);
  45317. HEAP32[$rem + 4 >> 2] = 0;
  45318. }
  45319. $_0$1 = 0;
  45320. $_0$0 = ($n_sroa_1_4_extract_trunc >>> 0) / ($d_sroa_0_0_extract_trunc >>> 0) >>> 0;
  45321. return (tempRet0 = $_0$1, $_0$0) | 0;
  45322. }
  45323. if (($n_sroa_0_0_extract_trunc | 0) == 0) {
  45324. if (($rem | 0) != 0) {
  45325. HEAP32[$rem >> 2] = 0;
  45326. HEAP32[$rem + 4 >> 2] = ($n_sroa_1_4_extract_trunc >>> 0) % ($d_sroa_1_4_extract_trunc >>> 0);
  45327. }
  45328. $_0$1 = 0;
  45329. $_0$0 = ($n_sroa_1_4_extract_trunc >>> 0) / ($d_sroa_1_4_extract_trunc >>> 0) >>> 0;
  45330. return (tempRet0 = $_0$1, $_0$0) | 0;
  45331. }
  45332. $37 = $d_sroa_1_4_extract_trunc - 1 | 0;
  45333. if (($37 & $d_sroa_1_4_extract_trunc | 0) == 0) {
  45334. if (($rem | 0) != 0) {
  45335. HEAP32[$rem >> 2] = 0 | $a$0 & -1;
  45336. HEAP32[$rem + 4 >> 2] = $37 & $n_sroa_1_4_extract_trunc | $a$1 & 0;
  45337. }
  45338. $_0$1 = 0;
  45339. $_0$0 = $n_sroa_1_4_extract_trunc >>> ((_llvm_cttz_i32($d_sroa_1_4_extract_trunc | 0) | 0) >>> 0);
  45340. return (tempRet0 = $_0$1, $_0$0) | 0;
  45341. }
  45342. $49 = Math_clz32($d_sroa_1_4_extract_trunc | 0) | 0;
  45343. $51 = $49 - (Math_clz32($n_sroa_1_4_extract_trunc | 0) | 0) | 0;
  45344. if ($51 >>> 0 <= 30) {
  45345. $57 = $51 + 1 | 0;
  45346. $58 = 31 - $51 | 0;
  45347. $sr_1_ph = $57;
  45348. $r_sroa_0_1_ph = $n_sroa_1_4_extract_trunc << $58 | $n_sroa_0_0_extract_trunc >>> ($57 >>> 0);
  45349. $r_sroa_1_1_ph = $n_sroa_1_4_extract_trunc >>> ($57 >>> 0);
  45350. $q_sroa_0_1_ph = 0;
  45351. $q_sroa_1_1_ph = $n_sroa_0_0_extract_trunc << $58;
  45352. break;
  45353. }
  45354. if (($rem | 0) == 0) {
  45355. $_0$1 = 0;
  45356. $_0$0 = 0;
  45357. return (tempRet0 = $_0$1, $_0$0) | 0;
  45358. }
  45359. HEAP32[$rem >> 2] = 0 | $a$0 & -1;
  45360. HEAP32[$rem + 4 >> 2] = $n_sroa_1_4_extract_shift$0 | $a$1 & 0;
  45361. $_0$1 = 0;
  45362. $_0$0 = 0;
  45363. return (tempRet0 = $_0$1, $_0$0) | 0;
  45364. } else {
  45365. if (!$17) {
  45366. $117 = Math_clz32($d_sroa_1_4_extract_trunc | 0) | 0;
  45367. $119 = $117 - (Math_clz32($n_sroa_1_4_extract_trunc | 0) | 0) | 0;
  45368. if ($119 >>> 0 <= 31) {
  45369. $125 = $119 + 1 | 0;
  45370. $126 = 31 - $119 | 0;
  45371. $130 = $119 - 31 >> 31;
  45372. $sr_1_ph = $125;
  45373. $r_sroa_0_1_ph = $n_sroa_0_0_extract_trunc >>> ($125 >>> 0) & $130 | $n_sroa_1_4_extract_trunc << $126;
  45374. $r_sroa_1_1_ph = $n_sroa_1_4_extract_trunc >>> ($125 >>> 0) & $130;
  45375. $q_sroa_0_1_ph = 0;
  45376. $q_sroa_1_1_ph = $n_sroa_0_0_extract_trunc << $126;
  45377. break;
  45378. }
  45379. if (($rem | 0) == 0) {
  45380. $_0$1 = 0;
  45381. $_0$0 = 0;
  45382. return (tempRet0 = $_0$1, $_0$0) | 0;
  45383. }
  45384. HEAP32[$rem >> 2] = 0 | $a$0 & -1;
  45385. HEAP32[$rem + 4 >> 2] = $n_sroa_1_4_extract_shift$0 | $a$1 & 0;
  45386. $_0$1 = 0;
  45387. $_0$0 = 0;
  45388. return (tempRet0 = $_0$1, $_0$0) | 0;
  45389. }
  45390. $66 = $d_sroa_0_0_extract_trunc - 1 | 0;
  45391. if (($66 & $d_sroa_0_0_extract_trunc | 0) != 0) {
  45392. $86 = (Math_clz32($d_sroa_0_0_extract_trunc | 0) | 0) + 33 | 0;
  45393. $88 = $86 - (Math_clz32($n_sroa_1_4_extract_trunc | 0) | 0) | 0;
  45394. $89 = 64 - $88 | 0;
  45395. $91 = 32 - $88 | 0;
  45396. $92 = $91 >> 31;
  45397. $95 = $88 - 32 | 0;
  45398. $105 = $95 >> 31;
  45399. $sr_1_ph = $88;
  45400. $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;
  45401. $r_sroa_1_1_ph = $105 & $n_sroa_1_4_extract_trunc >>> ($88 >>> 0);
  45402. $q_sroa_0_1_ph = $n_sroa_0_0_extract_trunc << $89 & $92;
  45403. $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;
  45404. break;
  45405. }
  45406. if (($rem | 0) != 0) {
  45407. HEAP32[$rem >> 2] = $66 & $n_sroa_0_0_extract_trunc;
  45408. HEAP32[$rem + 4 >> 2] = 0;
  45409. }
  45410. if (($d_sroa_0_0_extract_trunc | 0) == 1) {
  45411. $_0$1 = $n_sroa_1_4_extract_shift$0 | $a$1 & 0;
  45412. $_0$0 = 0 | $a$0 & -1;
  45413. return (tempRet0 = $_0$1, $_0$0) | 0;
  45414. } else {
  45415. $78 = _llvm_cttz_i32($d_sroa_0_0_extract_trunc | 0) | 0;
  45416. $_0$1 = 0 | $n_sroa_1_4_extract_trunc >>> ($78 >>> 0);
  45417. $_0$0 = $n_sroa_1_4_extract_trunc << 32 - $78 | $n_sroa_0_0_extract_trunc >>> ($78 >>> 0) | 0;
  45418. return (tempRet0 = $_0$1, $_0$0) | 0;
  45419. }
  45420. }
  45421. } while (0);
  45422. if (($sr_1_ph | 0) == 0) {
  45423. $q_sroa_1_1_lcssa = $q_sroa_1_1_ph;
  45424. $q_sroa_0_1_lcssa = $q_sroa_0_1_ph;
  45425. $r_sroa_1_1_lcssa = $r_sroa_1_1_ph;
  45426. $r_sroa_0_1_lcssa = $r_sroa_0_1_ph;
  45427. $carry_0_lcssa$1 = 0;
  45428. $carry_0_lcssa$0 = 0;
  45429. } else {
  45430. $d_sroa_0_0_insert_insert99$0 = 0 | $b$0 & -1;
  45431. $d_sroa_0_0_insert_insert99$1 = $d_sroa_1_4_extract_shift$0 | $b$1 & 0;
  45432. $137$0 = _i64Add($d_sroa_0_0_insert_insert99$0 | 0, $d_sroa_0_0_insert_insert99$1 | 0, -1, -1) | 0;
  45433. $137$1 = tempRet0;
  45434. $q_sroa_1_1198 = $q_sroa_1_1_ph;
  45435. $q_sroa_0_1199 = $q_sroa_0_1_ph;
  45436. $r_sroa_1_1200 = $r_sroa_1_1_ph;
  45437. $r_sroa_0_1201 = $r_sroa_0_1_ph;
  45438. $sr_1202 = $sr_1_ph;
  45439. $carry_0203 = 0;
  45440. while (1) {
  45441. $147 = $q_sroa_0_1199 >>> 31 | $q_sroa_1_1198 << 1;
  45442. $149 = $carry_0203 | $q_sroa_0_1199 << 1;
  45443. $r_sroa_0_0_insert_insert42$0 = 0 | ($r_sroa_0_1201 << 1 | $q_sroa_1_1198 >>> 31);
  45444. $r_sroa_0_0_insert_insert42$1 = $r_sroa_0_1201 >>> 31 | $r_sroa_1_1200 << 1 | 0;
  45445. _i64Subtract($137$0 | 0, $137$1 | 0, $r_sroa_0_0_insert_insert42$0 | 0, $r_sroa_0_0_insert_insert42$1 | 0) | 0;
  45446. $150$1 = tempRet0;
  45447. $151$0 = $150$1 >> 31 | (($150$1 | 0) < 0 ? -1 : 0) << 1;
  45448. $152 = $151$0 & 1;
  45449. $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;
  45450. $r_sroa_0_0_extract_trunc = $154$0;
  45451. $r_sroa_1_4_extract_trunc = tempRet0;
  45452. $155 = $sr_1202 - 1 | 0;
  45453. if (($155 | 0) == 0) {
  45454. break;
  45455. } else {
  45456. $q_sroa_1_1198 = $147;
  45457. $q_sroa_0_1199 = $149;
  45458. $r_sroa_1_1200 = $r_sroa_1_4_extract_trunc;
  45459. $r_sroa_0_1201 = $r_sroa_0_0_extract_trunc;
  45460. $sr_1202 = $155;
  45461. $carry_0203 = $152;
  45462. }
  45463. }
  45464. $q_sroa_1_1_lcssa = $147;
  45465. $q_sroa_0_1_lcssa = $149;
  45466. $r_sroa_1_1_lcssa = $r_sroa_1_4_extract_trunc;
  45467. $r_sroa_0_1_lcssa = $r_sroa_0_0_extract_trunc;
  45468. $carry_0_lcssa$1 = 0;
  45469. $carry_0_lcssa$0 = $152;
  45470. }
  45471. $q_sroa_0_0_insert_ext75$0 = $q_sroa_0_1_lcssa;
  45472. $q_sroa_0_0_insert_ext75$1 = 0;
  45473. $q_sroa_0_0_insert_insert77$1 = $q_sroa_1_1_lcssa | $q_sroa_0_0_insert_ext75$1;
  45474. if (($rem | 0) != 0) {
  45475. HEAP32[$rem >> 2] = 0 | $r_sroa_0_1_lcssa;
  45476. HEAP32[$rem + 4 >> 2] = $r_sroa_1_1_lcssa | 0;
  45477. }
  45478. $_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;
  45479. $_0$0 = ($q_sroa_0_0_insert_ext75$0 << 1 | 0 >>> 31) & -2 | $carry_0_lcssa$0;
  45480. return (tempRet0 = $_0$1, $_0$0) | 0;
  45481. }
  45482. function ___udivdi3($a$0, $a$1, $b$0, $b$1) {
  45483. $a$0 = $a$0 | 0;
  45484. $a$1 = $a$1 | 0;
  45485. $b$0 = $b$0 | 0;
  45486. $b$1 = $b$1 | 0;
  45487. var $1$0 = 0;
  45488. $1$0 = ___udivmoddi4($a$0, $a$1, $b$0, $b$1, 0) | 0;
  45489. return $1$0 | 0;
  45490. }
  45491. function ___muldsi3($a, $b) {
  45492. $a = $a | 0;
  45493. $b = $b | 0;
  45494. var $1 = 0, $2 = 0, $3 = 0, $6 = 0, $8 = 0, $11 = 0, $12 = 0;
  45495. $1 = $a & 65535;
  45496. $2 = $b & 65535;
  45497. $3 = Math_imul($2, $1) | 0;
  45498. $6 = $a >>> 16;
  45499. $8 = ($3 >>> 16) + (Math_imul($2, $6) | 0) | 0;
  45500. $11 = $b >>> 16;
  45501. $12 = Math_imul($11, $1) | 0;
  45502. return (tempRet0 = (($8 >>> 16) + (Math_imul($11, $6) | 0) | 0) + ((($8 & 65535) + $12 | 0) >>> 16) | 0, 0 | ($8 + $12 << 16 | $3 & 65535)) | 0;
  45503. }
  45504. function ___muldi3($a$0, $a$1, $b$0, $b$1) {
  45505. $a$0 = $a$0 | 0;
  45506. $a$1 = $a$1 | 0;
  45507. $b$0 = $b$0 | 0;
  45508. $b$1 = $b$1 | 0;
  45509. var $x_sroa_0_0_extract_trunc = 0, $y_sroa_0_0_extract_trunc = 0, $1$0 = 0, $1$1 = 0, $2 = 0;
  45510. $x_sroa_0_0_extract_trunc = $a$0;
  45511. $y_sroa_0_0_extract_trunc = $b$0;
  45512. $1$0 = ___muldsi3($x_sroa_0_0_extract_trunc, $y_sroa_0_0_extract_trunc) | 0;
  45513. $1$1 = tempRet0;
  45514. $2 = Math_imul($a$1, $y_sroa_0_0_extract_trunc) | 0;
  45515. 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;
  45516. }
  45517. function _memcpy(dest, src, num) {
  45518. dest = dest|0; src = src|0; num = num|0;
  45519. var ret = 0;
  45520. var aligned_dest_end = 0;
  45521. var block_aligned_dest_end = 0;
  45522. var dest_end = 0;
  45523. // Test against a benchmarked cutoff limit for when HEAPU8.set() becomes faster to use.
  45524. if ((num|0) >=
  45525. 8192
  45526. ) {
  45527. return _emscripten_memcpy_big(dest|0, src|0, num|0)|0;
  45528. }
  45529. ret = dest|0;
  45530. dest_end = (dest + num)|0;
  45531. if ((dest&3) == (src&3)) {
  45532. // The initial unaligned < 4-byte front.
  45533. while (dest & 3) {
  45534. if ((num|0) == 0) return ret|0;
  45535. HEAP8[((dest)>>0)]=((HEAP8[((src)>>0)])|0);
  45536. dest = (dest+1)|0;
  45537. src = (src+1)|0;
  45538. num = (num-1)|0;
  45539. }
  45540. aligned_dest_end = (dest_end & -4)|0;
  45541. block_aligned_dest_end = (aligned_dest_end - 64)|0;
  45542. while ((dest|0) <= (block_aligned_dest_end|0) ) {
  45543. HEAP32[((dest)>>2)]=((HEAP32[((src)>>2)])|0);
  45544. HEAP32[(((dest)+(4))>>2)]=((HEAP32[(((src)+(4))>>2)])|0);
  45545. HEAP32[(((dest)+(8))>>2)]=((HEAP32[(((src)+(8))>>2)])|0);
  45546. HEAP32[(((dest)+(12))>>2)]=((HEAP32[(((src)+(12))>>2)])|0);
  45547. HEAP32[(((dest)+(16))>>2)]=((HEAP32[(((src)+(16))>>2)])|0);
  45548. HEAP32[(((dest)+(20))>>2)]=((HEAP32[(((src)+(20))>>2)])|0);
  45549. HEAP32[(((dest)+(24))>>2)]=((HEAP32[(((src)+(24))>>2)])|0);
  45550. HEAP32[(((dest)+(28))>>2)]=((HEAP32[(((src)+(28))>>2)])|0);
  45551. HEAP32[(((dest)+(32))>>2)]=((HEAP32[(((src)+(32))>>2)])|0);
  45552. HEAP32[(((dest)+(36))>>2)]=((HEAP32[(((src)+(36))>>2)])|0);
  45553. HEAP32[(((dest)+(40))>>2)]=((HEAP32[(((src)+(40))>>2)])|0);
  45554. HEAP32[(((dest)+(44))>>2)]=((HEAP32[(((src)+(44))>>2)])|0);
  45555. HEAP32[(((dest)+(48))>>2)]=((HEAP32[(((src)+(48))>>2)])|0);
  45556. HEAP32[(((dest)+(52))>>2)]=((HEAP32[(((src)+(52))>>2)])|0);
  45557. HEAP32[(((dest)+(56))>>2)]=((HEAP32[(((src)+(56))>>2)])|0);
  45558. HEAP32[(((dest)+(60))>>2)]=((HEAP32[(((src)+(60))>>2)])|0);
  45559. dest = (dest+64)|0;
  45560. src = (src+64)|0;
  45561. }
  45562. while ((dest|0) < (aligned_dest_end|0) ) {
  45563. HEAP32[((dest)>>2)]=((HEAP32[((src)>>2)])|0);
  45564. dest = (dest+4)|0;
  45565. src = (src+4)|0;
  45566. }
  45567. } else {
  45568. // In the unaligned copy case, unroll a bit as well.
  45569. aligned_dest_end = (dest_end - 4)|0;
  45570. while ((dest|0) < (aligned_dest_end|0) ) {
  45571. HEAP8[((dest)>>0)]=((HEAP8[((src)>>0)])|0);
  45572. HEAP8[(((dest)+(1))>>0)]=((HEAP8[(((src)+(1))>>0)])|0);
  45573. HEAP8[(((dest)+(2))>>0)]=((HEAP8[(((src)+(2))>>0)])|0);
  45574. HEAP8[(((dest)+(3))>>0)]=((HEAP8[(((src)+(3))>>0)])|0);
  45575. dest = (dest+4)|0;
  45576. src = (src+4)|0;
  45577. }
  45578. }
  45579. // The remaining unaligned < 4 byte tail.
  45580. while ((dest|0) < (dest_end|0)) {
  45581. HEAP8[((dest)>>0)]=((HEAP8[((src)>>0)])|0);
  45582. dest = (dest+1)|0;
  45583. src = (src+1)|0;
  45584. }
  45585. return ret|0;
  45586. }
  45587. function _memmove(dest, src, num) {
  45588. dest = dest|0; src = src|0; num = num|0;
  45589. var ret = 0;
  45590. if (((src|0) < (dest|0)) & ((dest|0) < ((src + num)|0))) {
  45591. // Unlikely case: Copy backwards in a safe manner
  45592. ret = dest;
  45593. src = (src + num)|0;
  45594. dest = (dest + num)|0;
  45595. while ((num|0) > 0) {
  45596. dest = (dest - 1)|0;
  45597. src = (src - 1)|0;
  45598. num = (num - 1)|0;
  45599. HEAP8[((dest)>>0)]=((HEAP8[((src)>>0)])|0);
  45600. }
  45601. dest = ret;
  45602. } else {
  45603. _memcpy(dest, src, num) | 0;
  45604. }
  45605. return dest | 0;
  45606. }
  45607. function ___uremdi3($a$0, $a$1, $b$0, $b$1) {
  45608. $a$0 = $a$0 | 0;
  45609. $a$1 = $a$1 | 0;
  45610. $b$0 = $b$0 | 0;
  45611. $b$1 = $b$1 | 0;
  45612. var $rem = 0, __stackBase__ = 0;
  45613. __stackBase__ = STACKTOP;
  45614. STACKTOP = STACKTOP + 16 | 0;
  45615. $rem = __stackBase__ | 0;
  45616. ___udivmoddi4($a$0, $a$1, $b$0, $b$1, $rem) | 0;
  45617. STACKTOP = __stackBase__;
  45618. return (tempRet0 = HEAP32[$rem + 4 >> 2] | 0, HEAP32[$rem >> 2] | 0) | 0;
  45619. }
  45620. function _roundf(f) {
  45621. f = +f;
  45622. return f >= +0 ? +Math_floor(f + +0.5) : +Math_ceil(f - +0.5); // TODO: use fround?
  45623. }
  45624. function _bitshift64Lshr(low, high, bits) {
  45625. low = low|0; high = high|0; bits = bits|0;
  45626. var ander = 0;
  45627. if ((bits|0) < 32) {
  45628. ander = ((1 << bits) - 1)|0;
  45629. tempRet0 = high >>> bits;
  45630. return (low >>> bits) | ((high&ander) << (32 - bits));
  45631. }
  45632. tempRet0 = 0;
  45633. return (high >>> (bits - 32))|0;
  45634. }
  45635. function _sbrk(increment) {
  45636. increment = increment|0;
  45637. var oldDynamicTop = 0;
  45638. var oldDynamicTopOnChange = 0;
  45639. var newDynamicTop = 0;
  45640. var totalMemory = 0;
  45641. increment = ((increment + 15) & -16)|0;
  45642. oldDynamicTop = HEAP32[DYNAMICTOP_PTR>>2]|0;
  45643. newDynamicTop = oldDynamicTop + increment | 0;
  45644. if (((increment|0) > 0 & (newDynamicTop|0) < (oldDynamicTop|0)) // Detect and fail if we would wrap around signed 32-bit int.
  45645. | (newDynamicTop|0) < 0) { // Also underflow, sbrk() should be able to be used to subtract.
  45646. abortOnCannotGrowMemory()|0;
  45647. ___setErrNo(12);
  45648. return -1;
  45649. }
  45650. HEAP32[DYNAMICTOP_PTR>>2] = newDynamicTop;
  45651. totalMemory = getTotalMemory()|0;
  45652. if ((newDynamicTop|0) > (totalMemory|0)) {
  45653. if ((enlargeMemory()|0) == 0) {
  45654. ___setErrNo(12);
  45655. HEAP32[DYNAMICTOP_PTR>>2] = oldDynamicTop;
  45656. return -1;
  45657. }
  45658. }
  45659. return oldDynamicTop|0;
  45660. }
  45661. function _bitshift64Shl(low, high, bits) {
  45662. low = low|0; high = high|0; bits = bits|0;
  45663. var ander = 0;
  45664. if ((bits|0) < 32) {
  45665. ander = ((1 << bits) - 1)|0;
  45666. tempRet0 = (high << bits) | ((low&(ander << (32 - bits))) >>> (32 - bits));
  45667. return low << bits;
  45668. }
  45669. tempRet0 = low << (bits - 32);
  45670. return 0;
  45671. }
  45672. function _llvm_bswap_i32(x) {
  45673. x = x|0;
  45674. return (((x&0xff)<<24) | (((x>>8)&0xff)<<16) | (((x>>16)&0xff)<<8) | (x>>>24))|0;
  45675. }
  45676. function dynCall_viiiii(index,a1,a2,a3,a4,a5) {
  45677. index = index|0;
  45678. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0; a5=a5|0;
  45679. FUNCTION_TABLE_viiiii[index&7](a1|0,a2|0,a3|0,a4|0,a5|0);
  45680. }
  45681. function dynCall_vd(index,a1) {
  45682. index = index|0;
  45683. a1=+a1;
  45684. FUNCTION_TABLE_vd[index&3](+a1);
  45685. }
  45686. function dynCall_vid(index,a1,a2) {
  45687. index = index|0;
  45688. a1=a1|0; a2=+a2;
  45689. FUNCTION_TABLE_vid[index&3](a1|0,+a2);
  45690. }
  45691. function dynCall_vi(index,a1) {
  45692. index = index|0;
  45693. a1=a1|0;
  45694. FUNCTION_TABLE_vi[index&31](a1|0);
  45695. }
  45696. function dynCall_vii(index,a1,a2) {
  45697. index = index|0;
  45698. a1=a1|0; a2=a2|0;
  45699. FUNCTION_TABLE_vii[index&63](a1|0,a2|0);
  45700. }
  45701. function dynCall_ii(index,a1) {
  45702. index = index|0;
  45703. a1=a1|0;
  45704. return FUNCTION_TABLE_ii[index&15](a1|0)|0;
  45705. }
  45706. function dynCall_viddd(index,a1,a2,a3,a4) {
  45707. index = index|0;
  45708. a1=a1|0; a2=+a2; a3=+a3; a4=+a4;
  45709. FUNCTION_TABLE_viddd[index&3](a1|0,+a2,+a3,+a4);
  45710. }
  45711. function dynCall_vidd(index,a1,a2,a3) {
  45712. index = index|0;
  45713. a1=a1|0; a2=+a2; a3=+a3;
  45714. FUNCTION_TABLE_vidd[index&7](a1|0,+a2,+a3);
  45715. }
  45716. function dynCall_iiii(index,a1,a2,a3) {
  45717. index = index|0;
  45718. a1=a1|0; a2=a2|0; a3=a3|0;
  45719. return FUNCTION_TABLE_iiii[index&15](a1|0,a2|0,a3|0)|0;
  45720. }
  45721. function dynCall_viiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8) {
  45722. index = index|0;
  45723. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0; a5=a5|0; a6=a6|0; a7=a7|0; a8=a8|0;
  45724. FUNCTION_TABLE_viiiiiiii[index&3](a1|0,a2|0,a3|0,a4|0,a5|0,a6|0,a7|0,a8|0);
  45725. }
  45726. function dynCall_viiiiii(index,a1,a2,a3,a4,a5,a6) {
  45727. index = index|0;
  45728. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0; a5=a5|0; a6=a6|0;
  45729. FUNCTION_TABLE_viiiiii[index&3](a1|0,a2|0,a3|0,a4|0,a5|0,a6|0);
  45730. }
  45731. function dynCall_viii(index,a1,a2,a3) {
  45732. index = index|0;
  45733. a1=a1|0; a2=a2|0; a3=a3|0;
  45734. FUNCTION_TABLE_viii[index&31](a1|0,a2|0,a3|0);
  45735. }
  45736. function dynCall_vidddd(index,a1,a2,a3,a4,a5) {
  45737. index = index|0;
  45738. a1=a1|0; a2=+a2; a3=+a3; a4=+a4; a5=+a5;
  45739. FUNCTION_TABLE_vidddd[index&3](a1|0,+a2,+a3,+a4,+a5);
  45740. }
  45741. function dynCall_vdi(index,a1,a2) {
  45742. index = index|0;
  45743. a1=+a1; a2=a2|0;
  45744. FUNCTION_TABLE_vdi[index&1](+a1,a2|0);
  45745. }
  45746. function dynCall_viiiiiii(index,a1,a2,a3,a4,a5,a6,a7) {
  45747. index = index|0;
  45748. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0; a5=a5|0; a6=a6|0; a7=a7|0;
  45749. FUNCTION_TABLE_viiiiiii[index&3](a1|0,a2|0,a3|0,a4|0,a5|0,a6|0,a7|0);
  45750. }
  45751. function dynCall_viiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9) {
  45752. index = index|0;
  45753. 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;
  45754. FUNCTION_TABLE_viiiiiiiii[index&3](a1|0,a2|0,a3|0,a4|0,a5|0,a6|0,a7|0,a8|0,a9|0);
  45755. }
  45756. function dynCall_iii(index,a1,a2) {
  45757. index = index|0;
  45758. a1=a1|0; a2=a2|0;
  45759. return FUNCTION_TABLE_iii[index&3](a1|0,a2|0)|0;
  45760. }
  45761. function dynCall_i(index) {
  45762. index = index|0;
  45763. return FUNCTION_TABLE_i[index&3]()|0;
  45764. }
  45765. function dynCall_vdddddd(index,a1,a2,a3,a4,a5,a6) {
  45766. index = index|0;
  45767. a1=+a1; a2=+a2; a3=+a3; a4=+a4; a5=+a5; a6=+a6;
  45768. FUNCTION_TABLE_vdddddd[index&1](+a1,+a2,+a3,+a4,+a5,+a6);
  45769. }
  45770. function dynCall_vdddd(index,a1,a2,a3,a4) {
  45771. index = index|0;
  45772. a1=+a1; a2=+a2; a3=+a3; a4=+a4;
  45773. FUNCTION_TABLE_vdddd[index&3](+a1,+a2,+a3,+a4);
  45774. }
  45775. function dynCall_vdd(index,a1,a2) {
  45776. index = index|0;
  45777. a1=+a1; a2=+a2;
  45778. FUNCTION_TABLE_vdd[index&3](+a1,+a2);
  45779. }
  45780. function dynCall_v(index) {
  45781. index = index|0;
  45782. FUNCTION_TABLE_v[index&7]();
  45783. }
  45784. function dynCall_viid(index,a1,a2,a3) {
  45785. index = index|0;
  45786. a1=a1|0; a2=a2|0; a3=+a3;
  45787. FUNCTION_TABLE_viid[index&1](a1|0,a2|0,+a3);
  45788. }
  45789. function dynCall_viiii(index,a1,a2,a3,a4) {
  45790. index = index|0;
  45791. a1=a1|0; a2=a2|0; a3=a3|0; a4=a4|0;
  45792. FUNCTION_TABLE_viiii[index&31](a1|0,a2|0,a3|0,a4|0);
  45793. }
  45794. function b0(p0,p1,p2,p3,p4) {
  45795. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0; nullFunc_viiiii(0);
  45796. }
  45797. function _emscripten_glUniform4i__wrapper(p0,p1,p2,p3,p4) {
  45798. 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);
  45799. }
  45800. function _emscripten_glFramebufferTexture2D__wrapper(p0,p1,p2,p3,p4) {
  45801. 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);
  45802. }
  45803. function _emscripten_glShaderBinary__wrapper(p0,p1,p2,p3,p4) {
  45804. 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);
  45805. }
  45806. function _emscripten_glDrawElementsInstanced__wrapper(p0,p1,p2,p3,p4) {
  45807. 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);
  45808. }
  45809. function b1(p0) {
  45810. p0 = +p0; nullFunc_vd(1);
  45811. }
  45812. function _emscripten_glClearDepth__wrapper(p0) {
  45813. p0 = +p0; _emscripten_glClearDepth(+p0);
  45814. }
  45815. function _emscripten_glClearDepthf__wrapper(p0) {
  45816. p0 = +p0; _emscripten_glClearDepthf(+p0);
  45817. }
  45818. function _emscripten_glLineWidth__wrapper(p0) {
  45819. p0 = +p0; _emscripten_glLineWidth(+p0);
  45820. }
  45821. function b2(p0,p1) {
  45822. p0 = p0|0;p1 = +p1; nullFunc_vid(2);
  45823. }
  45824. function _emscripten_glUniform1f__wrapper(p0,p1) {
  45825. p0 = p0|0;p1 = +p1; _emscripten_glUniform1f(p0|0,+p1);
  45826. }
  45827. function _emscripten_glVertexAttrib1f__wrapper(p0,p1) {
  45828. p0 = p0|0;p1 = +p1; _emscripten_glVertexAttrib1f(p0|0,+p1);
  45829. }
  45830. function b3(p0) {
  45831. p0 = p0|0; nullFunc_vi(3);
  45832. }
  45833. function _emscripten_glDeleteShader__wrapper(p0) {
  45834. p0 = p0|0; _emscripten_glDeleteShader(p0|0);
  45835. }
  45836. function _emscripten_glCompileShader__wrapper(p0) {
  45837. p0 = p0|0; _emscripten_glCompileShader(p0|0);
  45838. }
  45839. function _emscripten_glDeleteProgram__wrapper(p0) {
  45840. p0 = p0|0; _emscripten_glDeleteProgram(p0|0);
  45841. }
  45842. function _emscripten_glLinkProgram__wrapper(p0) {
  45843. p0 = p0|0; _emscripten_glLinkProgram(p0|0);
  45844. }
  45845. function _emscripten_glUseProgram__wrapper(p0) {
  45846. p0 = p0|0; _emscripten_glUseProgram(p0|0);
  45847. }
  45848. function _emscripten_glValidateProgram__wrapper(p0) {
  45849. p0 = p0|0; _emscripten_glValidateProgram(p0|0);
  45850. }
  45851. function _emscripten_glDeleteObjectARB__wrapper(p0) {
  45852. p0 = p0|0; _emscripten_glDeleteObjectARB(p0|0);
  45853. }
  45854. function _emscripten_glEnableClientState__wrapper(p0) {
  45855. p0 = p0|0; _emscripten_glEnableClientState(p0|0);
  45856. }
  45857. function _emscripten_glClientActiveTexture__wrapper(p0) {
  45858. p0 = p0|0; _emscripten_glClientActiveTexture(p0|0);
  45859. }
  45860. function _emscripten_glBindVertexArray__wrapper(p0) {
  45861. p0 = p0|0; _emscripten_glBindVertexArray(p0|0);
  45862. }
  45863. function _emscripten_glMatrixMode__wrapper(p0) {
  45864. p0 = p0|0; _emscripten_glMatrixMode(p0|0);
  45865. }
  45866. function _emscripten_glLoadMatrixf__wrapper(p0) {
  45867. p0 = p0|0; _emscripten_glLoadMatrixf(p0|0);
  45868. }
  45869. function _emscripten_glEnableVertexAttribArray__wrapper(p0) {
  45870. p0 = p0|0; _emscripten_glEnableVertexAttribArray(p0|0);
  45871. }
  45872. function _emscripten_glDisableVertexAttribArray__wrapper(p0) {
  45873. p0 = p0|0; _emscripten_glDisableVertexAttribArray(p0|0);
  45874. }
  45875. function _emscripten_glDepthFunc__wrapper(p0) {
  45876. p0 = p0|0; _emscripten_glDepthFunc(p0|0);
  45877. }
  45878. function _emscripten_glEnable__wrapper(p0) {
  45879. p0 = p0|0; _emscripten_glEnable(p0|0);
  45880. }
  45881. function _emscripten_glDisable__wrapper(p0) {
  45882. p0 = p0|0; _emscripten_glDisable(p0|0);
  45883. }
  45884. function _emscripten_glFrontFace__wrapper(p0) {
  45885. p0 = p0|0; _emscripten_glFrontFace(p0|0);
  45886. }
  45887. function _emscripten_glCullFace__wrapper(p0) {
  45888. p0 = p0|0; _emscripten_glCullFace(p0|0);
  45889. }
  45890. function _emscripten_glClear__wrapper(p0) {
  45891. p0 = p0|0; _emscripten_glClear(p0|0);
  45892. }
  45893. function _emscripten_glClearStencil__wrapper(p0) {
  45894. p0 = p0|0; _emscripten_glClearStencil(p0|0);
  45895. }
  45896. function _emscripten_glDepthMask__wrapper(p0) {
  45897. p0 = p0|0; _emscripten_glDepthMask(p0|0);
  45898. }
  45899. function _emscripten_glStencilMask__wrapper(p0) {
  45900. p0 = p0|0; _emscripten_glStencilMask(p0|0);
  45901. }
  45902. function _emscripten_glGenerateMipmap__wrapper(p0) {
  45903. p0 = p0|0; _emscripten_glGenerateMipmap(p0|0);
  45904. }
  45905. function _emscripten_glActiveTexture__wrapper(p0) {
  45906. p0 = p0|0; _emscripten_glActiveTexture(p0|0);
  45907. }
  45908. function _emscripten_glBlendEquation__wrapper(p0) {
  45909. p0 = p0|0; _emscripten_glBlendEquation(p0|0);
  45910. }
  45911. function b4(p0,p1) {
  45912. p0 = p0|0;p1 = p1|0; nullFunc_vii(4);
  45913. }
  45914. function _emscripten_glPixelStorei__wrapper(p0,p1) {
  45915. p0 = p0|0;p1 = p1|0; _emscripten_glPixelStorei(p0|0,p1|0);
  45916. }
  45917. function _emscripten_glGetIntegerv__wrapper(p0,p1) {
  45918. p0 = p0|0;p1 = p1|0; _emscripten_glGetIntegerv(p0|0,p1|0);
  45919. }
  45920. function _emscripten_glGetFloatv__wrapper(p0,p1) {
  45921. p0 = p0|0;p1 = p1|0; _emscripten_glGetFloatv(p0|0,p1|0);
  45922. }
  45923. function _emscripten_glGetBooleanv__wrapper(p0,p1) {
  45924. p0 = p0|0;p1 = p1|0; _emscripten_glGetBooleanv(p0|0,p1|0);
  45925. }
  45926. function _emscripten_glGenTextures__wrapper(p0,p1) {
  45927. p0 = p0|0;p1 = p1|0; _emscripten_glGenTextures(p0|0,p1|0);
  45928. }
  45929. function _emscripten_glDeleteTextures__wrapper(p0,p1) {
  45930. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteTextures(p0|0,p1|0);
  45931. }
  45932. function _emscripten_glBindTexture__wrapper(p0,p1) {
  45933. p0 = p0|0;p1 = p1|0; _emscripten_glBindTexture(p0|0,p1|0);
  45934. }
  45935. function _emscripten_glGenBuffers__wrapper(p0,p1) {
  45936. p0 = p0|0;p1 = p1|0; _emscripten_glGenBuffers(p0|0,p1|0);
  45937. }
  45938. function _emscripten_glDeleteBuffers__wrapper(p0,p1) {
  45939. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteBuffers(p0|0,p1|0);
  45940. }
  45941. function _emscripten_glGenRenderbuffers__wrapper(p0,p1) {
  45942. p0 = p0|0;p1 = p1|0; _emscripten_glGenRenderbuffers(p0|0,p1|0);
  45943. }
  45944. function _emscripten_glDeleteRenderbuffers__wrapper(p0,p1) {
  45945. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteRenderbuffers(p0|0,p1|0);
  45946. }
  45947. function _emscripten_glBindRenderbuffer__wrapper(p0,p1) {
  45948. p0 = p0|0;p1 = p1|0; _emscripten_glBindRenderbuffer(p0|0,p1|0);
  45949. }
  45950. function _emscripten_glUniform1i__wrapper(p0,p1) {
  45951. p0 = p0|0;p1 = p1|0; _emscripten_glUniform1i(p0|0,p1|0);
  45952. }
  45953. function _emscripten_glBindBuffer__wrapper(p0,p1) {
  45954. p0 = p0|0;p1 = p1|0; _emscripten_glBindBuffer(p0|0,p1|0);
  45955. }
  45956. function _emscripten_glVertexAttrib1fv__wrapper(p0,p1) {
  45957. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttrib1fv(p0|0,p1|0);
  45958. }
  45959. function _emscripten_glVertexAttrib2fv__wrapper(p0,p1) {
  45960. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttrib2fv(p0|0,p1|0);
  45961. }
  45962. function _emscripten_glVertexAttrib3fv__wrapper(p0,p1) {
  45963. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttrib3fv(p0|0,p1|0);
  45964. }
  45965. function _emscripten_glVertexAttrib4fv__wrapper(p0,p1) {
  45966. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttrib4fv(p0|0,p1|0);
  45967. }
  45968. function _emscripten_glAttachShader__wrapper(p0,p1) {
  45969. p0 = p0|0;p1 = p1|0; _emscripten_glAttachShader(p0|0,p1|0);
  45970. }
  45971. function _emscripten_glDetachShader__wrapper(p0,p1) {
  45972. p0 = p0|0;p1 = p1|0; _emscripten_glDetachShader(p0|0,p1|0);
  45973. }
  45974. function _emscripten_glBindFramebuffer__wrapper(p0,p1) {
  45975. p0 = p0|0;p1 = p1|0; _emscripten_glBindFramebuffer(p0|0,p1|0);
  45976. }
  45977. function _emscripten_glGenFramebuffers__wrapper(p0,p1) {
  45978. p0 = p0|0;p1 = p1|0; _emscripten_glGenFramebuffers(p0|0,p1|0);
  45979. }
  45980. function _emscripten_glDeleteFramebuffers__wrapper(p0,p1) {
  45981. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteFramebuffers(p0|0,p1|0);
  45982. }
  45983. function _emscripten_glBindProgramARB__wrapper(p0,p1) {
  45984. p0 = p0|0;p1 = p1|0; _emscripten_glBindProgramARB(p0|0,p1|0);
  45985. }
  45986. function _emscripten_glGetPointerv__wrapper(p0,p1) {
  45987. p0 = p0|0;p1 = p1|0; _emscripten_glGetPointerv(p0|0,p1|0);
  45988. }
  45989. function _emscripten_glGenVertexArrays__wrapper(p0,p1) {
  45990. p0 = p0|0;p1 = p1|0; _emscripten_glGenVertexArrays(p0|0,p1|0);
  45991. }
  45992. function _emscripten_glDeleteVertexArrays__wrapper(p0,p1) {
  45993. p0 = p0|0;p1 = p1|0; _emscripten_glDeleteVertexArrays(p0|0,p1|0);
  45994. }
  45995. function _emscripten_glVertexAttribDivisor__wrapper(p0,p1) {
  45996. p0 = p0|0;p1 = p1|0; _emscripten_glVertexAttribDivisor(p0|0,p1|0);
  45997. }
  45998. function _emscripten_glBlendFunc__wrapper(p0,p1) {
  45999. p0 = p0|0;p1 = p1|0; _emscripten_glBlendFunc(p0|0,p1|0);
  46000. }
  46001. function _emscripten_glBlendEquationSeparate__wrapper(p0,p1) {
  46002. p0 = p0|0;p1 = p1|0; _emscripten_glBlendEquationSeparate(p0|0,p1|0);
  46003. }
  46004. function _emscripten_glStencilMaskSeparate__wrapper(p0,p1) {
  46005. p0 = p0|0;p1 = p1|0; _emscripten_glStencilMaskSeparate(p0|0,p1|0);
  46006. }
  46007. function _emscripten_glHint__wrapper(p0,p1) {
  46008. p0 = p0|0;p1 = p1|0; _emscripten_glHint(p0|0,p1|0);
  46009. }
  46010. function _emscripten_glDrawBuffers__wrapper(p0,p1) {
  46011. p0 = p0|0;p1 = p1|0; _emscripten_glDrawBuffers(p0|0,p1|0);
  46012. }
  46013. function b5(p0) {
  46014. p0 = p0|0; nullFunc_ii(5);return 0;
  46015. }
  46016. function _emscripten_glGetString__wrapper(p0) {
  46017. p0 = p0|0; return _emscripten_glGetString(p0|0)|0;
  46018. }
  46019. function _emscripten_glIsTexture__wrapper(p0) {
  46020. p0 = p0|0; return _emscripten_glIsTexture(p0|0)|0;
  46021. }
  46022. function _emscripten_glIsBuffer__wrapper(p0) {
  46023. p0 = p0|0; return _emscripten_glIsBuffer(p0|0)|0;
  46024. }
  46025. function _emscripten_glIsRenderbuffer__wrapper(p0) {
  46026. p0 = p0|0; return _emscripten_glIsRenderbuffer(p0|0)|0;
  46027. }
  46028. function _emscripten_glCreateShader__wrapper(p0) {
  46029. p0 = p0|0; return _emscripten_glCreateShader(p0|0)|0;
  46030. }
  46031. function _emscripten_glIsShader__wrapper(p0) {
  46032. p0 = p0|0; return _emscripten_glIsShader(p0|0)|0;
  46033. }
  46034. function _emscripten_glIsProgram__wrapper(p0) {
  46035. p0 = p0|0; return _emscripten_glIsProgram(p0|0)|0;
  46036. }
  46037. function _emscripten_glIsFramebuffer__wrapper(p0) {
  46038. p0 = p0|0; return _emscripten_glIsFramebuffer(p0|0)|0;
  46039. }
  46040. function _emscripten_glCheckFramebufferStatus__wrapper(p0) {
  46041. p0 = p0|0; return _emscripten_glCheckFramebufferStatus(p0|0)|0;
  46042. }
  46043. function _emscripten_glIsEnabled__wrapper(p0) {
  46044. p0 = p0|0; return _emscripten_glIsEnabled(p0|0)|0;
  46045. }
  46046. function b6(p0,p1,p2,p3) {
  46047. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3; nullFunc_viddd(6);
  46048. }
  46049. function _emscripten_glUniform3f__wrapper(p0,p1,p2,p3) {
  46050. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glUniform3f(p0|0,+p1,+p2,+p3);
  46051. }
  46052. function _emscripten_glVertexAttrib3f__wrapper(p0,p1,p2,p3) {
  46053. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glVertexAttrib3f(p0|0,+p1,+p2,+p3);
  46054. }
  46055. function b7(p0,p1,p2) {
  46056. p0 = p0|0;p1 = +p1;p2 = +p2; nullFunc_vidd(7);
  46057. }
  46058. function _emscripten_glUniform2f__wrapper(p0,p1,p2) {
  46059. p0 = p0|0;p1 = +p1;p2 = +p2; _emscripten_glUniform2f(p0|0,+p1,+p2);
  46060. }
  46061. function _emscripten_glVertexAttrib2f__wrapper(p0,p1,p2) {
  46062. p0 = p0|0;p1 = +p1;p2 = +p2; _emscripten_glVertexAttrib2f(p0|0,+p1,+p2);
  46063. }
  46064. function b8(p0,p1,p2) {
  46065. p0 = p0|0;p1 = p1|0;p2 = p2|0; nullFunc_iiii(8);return 0;
  46066. }
  46067. function b9(p0,p1,p2,p3,p4,p5,p6,p7) {
  46068. 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);
  46069. }
  46070. function _emscripten_glCompressedTexImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7) {
  46071. 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);
  46072. }
  46073. function _emscripten_glCopyTexImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7) {
  46074. 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);
  46075. }
  46076. function _emscripten_glCopyTexSubImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7) {
  46077. 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);
  46078. }
  46079. function b10(p0,p1,p2,p3,p4,p5) {
  46080. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0;p5 = p5|0; nullFunc_viiiiii(10);
  46081. }
  46082. function _emscripten_glDrawRangeElements__wrapper(p0,p1,p2,p3,p4,p5) {
  46083. 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);
  46084. }
  46085. function _emscripten_glVertexAttribPointer__wrapper(p0,p1,p2,p3,p4,p5) {
  46086. 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);
  46087. }
  46088. function b11(p0,p1,p2) {
  46089. p0 = p0|0;p1 = p1|0;p2 = p2|0; nullFunc_viii(11);
  46090. }
  46091. function _emscripten_glGetTexParameterfv__wrapper(p0,p1,p2) {
  46092. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetTexParameterfv(p0|0,p1|0,p2|0);
  46093. }
  46094. function _emscripten_glGetTexParameteriv__wrapper(p0,p1,p2) {
  46095. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetTexParameteriv(p0|0,p1|0,p2|0);
  46096. }
  46097. function _emscripten_glTexParameterfv__wrapper(p0,p1,p2) {
  46098. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glTexParameterfv(p0|0,p1|0,p2|0);
  46099. }
  46100. function _emscripten_glTexParameteriv__wrapper(p0,p1,p2) {
  46101. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glTexParameteriv(p0|0,p1|0,p2|0);
  46102. }
  46103. function _emscripten_glGetBufferParameteriv__wrapper(p0,p1,p2) {
  46104. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetBufferParameteriv(p0|0,p1|0,p2|0);
  46105. }
  46106. function _emscripten_glGetRenderbufferParameteriv__wrapper(p0,p1,p2) {
  46107. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetRenderbufferParameteriv(p0|0,p1|0,p2|0);
  46108. }
  46109. function _emscripten_glGetUniformfv__wrapper(p0,p1,p2) {
  46110. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetUniformfv(p0|0,p1|0,p2|0);
  46111. }
  46112. function _emscripten_glGetUniformiv__wrapper(p0,p1,p2) {
  46113. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetUniformiv(p0|0,p1|0,p2|0);
  46114. }
  46115. function _emscripten_glGetVertexAttribfv__wrapper(p0,p1,p2) {
  46116. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetVertexAttribfv(p0|0,p1|0,p2|0);
  46117. }
  46118. function _emscripten_glGetVertexAttribiv__wrapper(p0,p1,p2) {
  46119. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetVertexAttribiv(p0|0,p1|0,p2|0);
  46120. }
  46121. function _emscripten_glGetVertexAttribPointerv__wrapper(p0,p1,p2) {
  46122. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetVertexAttribPointerv(p0|0,p1|0,p2|0);
  46123. }
  46124. function _emscripten_glUniform2i__wrapper(p0,p1,p2) {
  46125. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform2i(p0|0,p1|0,p2|0);
  46126. }
  46127. function _emscripten_glUniform1iv__wrapper(p0,p1,p2) {
  46128. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform1iv(p0|0,p1|0,p2|0);
  46129. }
  46130. function _emscripten_glUniform2iv__wrapper(p0,p1,p2) {
  46131. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform2iv(p0|0,p1|0,p2|0);
  46132. }
  46133. function _emscripten_glUniform3iv__wrapper(p0,p1,p2) {
  46134. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform3iv(p0|0,p1|0,p2|0);
  46135. }
  46136. function _emscripten_glUniform4iv__wrapper(p0,p1,p2) {
  46137. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform4iv(p0|0,p1|0,p2|0);
  46138. }
  46139. function _emscripten_glUniform1fv__wrapper(p0,p1,p2) {
  46140. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform1fv(p0|0,p1|0,p2|0);
  46141. }
  46142. function _emscripten_glUniform2fv__wrapper(p0,p1,p2) {
  46143. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform2fv(p0|0,p1|0,p2|0);
  46144. }
  46145. function _emscripten_glUniform3fv__wrapper(p0,p1,p2) {
  46146. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform3fv(p0|0,p1|0,p2|0);
  46147. }
  46148. function _emscripten_glUniform4fv__wrapper(p0,p1,p2) {
  46149. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glUniform4fv(p0|0,p1|0,p2|0);
  46150. }
  46151. function _emscripten_glGetShaderiv__wrapper(p0,p1,p2) {
  46152. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetShaderiv(p0|0,p1|0,p2|0);
  46153. }
  46154. function _emscripten_glGetProgramiv__wrapper(p0,p1,p2) {
  46155. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetProgramiv(p0|0,p1|0,p2|0);
  46156. }
  46157. function _emscripten_glBindAttribLocation__wrapper(p0,p1,p2) {
  46158. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glBindAttribLocation(p0|0,p1|0,p2|0);
  46159. }
  46160. function _emscripten_glGetObjectParameterivARB__wrapper(p0,p1,p2) {
  46161. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glGetObjectParameterivARB(p0|0,p1|0,p2|0);
  46162. }
  46163. function _emscripten_glNormalPointer__wrapper(p0,p1,p2) {
  46164. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glNormalPointer(p0|0,p1|0,p2|0);
  46165. }
  46166. function _emscripten_glDrawArrays__wrapper(p0,p1,p2) {
  46167. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glDrawArrays(p0|0,p1|0,p2|0);
  46168. }
  46169. function _emscripten_glTexParameteri__wrapper(p0,p1,p2) {
  46170. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glTexParameteri(p0|0,p1|0,p2|0);
  46171. }
  46172. function _emscripten_glStencilFunc__wrapper(p0,p1,p2) {
  46173. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glStencilFunc(p0|0,p1|0,p2|0);
  46174. }
  46175. function _emscripten_glStencilOp__wrapper(p0,p1,p2) {
  46176. p0 = p0|0;p1 = p1|0;p2 = p2|0; _emscripten_glStencilOp(p0|0,p1|0,p2|0);
  46177. }
  46178. function b12(p0,p1,p2,p3,p4) {
  46179. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4; nullFunc_vidddd(12);
  46180. }
  46181. function _emscripten_glUniform4f__wrapper(p0,p1,p2,p3,p4) {
  46182. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4; _emscripten_glUniform4f(p0|0,+p1,+p2,+p3,+p4);
  46183. }
  46184. function _emscripten_glVertexAttrib4f__wrapper(p0,p1,p2,p3,p4) {
  46185. p0 = p0|0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4; _emscripten_glVertexAttrib4f(p0|0,+p1,+p2,+p3,+p4);
  46186. }
  46187. function b13(p0,p1) {
  46188. p0 = +p0;p1 = p1|0; nullFunc_vdi(13);
  46189. }
  46190. function _emscripten_glSampleCoverage__wrapper(p0,p1) {
  46191. p0 = +p0;p1 = p1|0; _emscripten_glSampleCoverage(+p0,p1|0);
  46192. }
  46193. function b14(p0,p1,p2,p3,p4,p5,p6) {
  46194. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0;p4 = p4|0;p5 = p5|0;p6 = p6|0; nullFunc_viiiiiii(14);
  46195. }
  46196. function _emscripten_glReadPixels__wrapper(p0,p1,p2,p3,p4,p5,p6) {
  46197. 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);
  46198. }
  46199. function _emscripten_glGetActiveUniform__wrapper(p0,p1,p2,p3,p4,p5,p6) {
  46200. 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);
  46201. }
  46202. function _emscripten_glGetActiveAttrib__wrapper(p0,p1,p2,p3,p4,p5,p6) {
  46203. 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);
  46204. }
  46205. function b15(p0,p1,p2,p3,p4,p5,p6,p7,p8) {
  46206. 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);
  46207. }
  46208. function _emscripten_glCompressedTexSubImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7,p8) {
  46209. 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);
  46210. }
  46211. function _emscripten_glTexImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7,p8) {
  46212. 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);
  46213. }
  46214. function _emscripten_glTexSubImage2D__wrapper(p0,p1,p2,p3,p4,p5,p6,p7,p8) {
  46215. 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);
  46216. }
  46217. function b16(p0,p1) {
  46218. p0 = p0|0;p1 = p1|0; nullFunc_iii(16);return 0;
  46219. }
  46220. function _emscripten_glGetUniformLocation__wrapper(p0,p1) {
  46221. p0 = p0|0;p1 = p1|0; return _emscripten_glGetUniformLocation(p0|0,p1|0)|0;
  46222. }
  46223. function _emscripten_glGetAttribLocation__wrapper(p0,p1) {
  46224. p0 = p0|0;p1 = p1|0; return _emscripten_glGetAttribLocation(p0|0,p1|0)|0;
  46225. }
  46226. function b17() {
  46227. ; nullFunc_i(17);return 0;
  46228. }
  46229. function _emscripten_glCreateProgram__wrapper() {
  46230. ; return _emscripten_glCreateProgram()|0;
  46231. }
  46232. function _emscripten_glGetError__wrapper() {
  46233. ; return _emscripten_glGetError()|0;
  46234. }
  46235. function b18(p0,p1,p2,p3,p4,p5) {
  46236. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4;p5 = +p5; nullFunc_vdddddd(18);
  46237. }
  46238. function _emscripten_glFrustum__wrapper(p0,p1,p2,p3,p4,p5) {
  46239. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3;p4 = +p4;p5 = +p5; _emscripten_glFrustum(+p0,+p1,+p2,+p3,+p4,+p5);
  46240. }
  46241. function b19(p0,p1,p2,p3) {
  46242. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3; nullFunc_vdddd(19);
  46243. }
  46244. function _emscripten_glRotatef__wrapper(p0,p1,p2,p3) {
  46245. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glRotatef(+p0,+p1,+p2,+p3);
  46246. }
  46247. function _emscripten_glClearColor__wrapper(p0,p1,p2,p3) {
  46248. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glClearColor(+p0,+p1,+p2,+p3);
  46249. }
  46250. function _emscripten_glBlendColor__wrapper(p0,p1,p2,p3) {
  46251. p0 = +p0;p1 = +p1;p2 = +p2;p3 = +p3; _emscripten_glBlendColor(+p0,+p1,+p2,+p3);
  46252. }
  46253. function b20(p0,p1) {
  46254. p0 = +p0;p1 = +p1; nullFunc_vdd(20);
  46255. }
  46256. function _emscripten_glDepthRange__wrapper(p0,p1) {
  46257. p0 = +p0;p1 = +p1; _emscripten_glDepthRange(+p0,+p1);
  46258. }
  46259. function _emscripten_glDepthRangef__wrapper(p0,p1) {
  46260. p0 = +p0;p1 = +p1; _emscripten_glDepthRangef(+p0,+p1);
  46261. }
  46262. function _emscripten_glPolygonOffset__wrapper(p0,p1) {
  46263. p0 = +p0;p1 = +p1; _emscripten_glPolygonOffset(+p0,+p1);
  46264. }
  46265. function b21() {
  46266. ; nullFunc_v(21);
  46267. }
  46268. function _emscripten_glLoadIdentity__wrapper() {
  46269. ; _emscripten_glLoadIdentity();
  46270. }
  46271. function _emscripten_glReleaseShaderCompiler__wrapper() {
  46272. ; _emscripten_glReleaseShaderCompiler();
  46273. }
  46274. function _emscripten_glFinish__wrapper() {
  46275. ; _emscripten_glFinish();
  46276. }
  46277. function _emscripten_glFlush__wrapper() {
  46278. ; _emscripten_glFlush();
  46279. }
  46280. function b22(p0,p1,p2) {
  46281. p0 = p0|0;p1 = p1|0;p2 = +p2; nullFunc_viid(22);
  46282. }
  46283. function _emscripten_glTexParameterf__wrapper(p0,p1,p2) {
  46284. p0 = p0|0;p1 = p1|0;p2 = +p2; _emscripten_glTexParameterf(p0|0,p1|0,+p2);
  46285. }
  46286. function b23(p0,p1,p2,p3) {
  46287. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; nullFunc_viiii(23);
  46288. }
  46289. function _emscripten_glBufferData__wrapper(p0,p1,p2,p3) {
  46290. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glBufferData(p0|0,p1|0,p2|0,p3|0);
  46291. }
  46292. function _emscripten_glBufferSubData__wrapper(p0,p1,p2,p3) {
  46293. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glBufferSubData(p0|0,p1|0,p2|0,p3|0);
  46294. }
  46295. function _emscripten_glUniform3i__wrapper(p0,p1,p2,p3) {
  46296. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glUniform3i(p0|0,p1|0,p2|0,p3|0);
  46297. }
  46298. function _emscripten_glUniformMatrix2fv__wrapper(p0,p1,p2,p3) {
  46299. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glUniformMatrix2fv(p0|0,p1|0,p2|0,p3|0);
  46300. }
  46301. function _emscripten_glUniformMatrix3fv__wrapper(p0,p1,p2,p3) {
  46302. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glUniformMatrix3fv(p0|0,p1|0,p2|0,p3|0);
  46303. }
  46304. function _emscripten_glUniformMatrix4fv__wrapper(p0,p1,p2,p3) {
  46305. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glUniformMatrix4fv(p0|0,p1|0,p2|0,p3|0);
  46306. }
  46307. function _emscripten_glGetAttachedShaders__wrapper(p0,p1,p2,p3) {
  46308. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetAttachedShaders(p0|0,p1|0,p2|0,p3|0);
  46309. }
  46310. function _emscripten_glShaderSource__wrapper(p0,p1,p2,p3) {
  46311. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glShaderSource(p0|0,p1|0,p2|0,p3|0);
  46312. }
  46313. function _emscripten_glGetShaderSource__wrapper(p0,p1,p2,p3) {
  46314. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetShaderSource(p0|0,p1|0,p2|0,p3|0);
  46315. }
  46316. function _emscripten_glGetShaderInfoLog__wrapper(p0,p1,p2,p3) {
  46317. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetShaderInfoLog(p0|0,p1|0,p2|0,p3|0);
  46318. }
  46319. function _emscripten_glGetShaderPrecisionFormat__wrapper(p0,p1,p2,p3) {
  46320. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetShaderPrecisionFormat(p0|0,p1|0,p2|0,p3|0);
  46321. }
  46322. function _emscripten_glGetProgramInfoLog__wrapper(p0,p1,p2,p3) {
  46323. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetProgramInfoLog(p0|0,p1|0,p2|0,p3|0);
  46324. }
  46325. function _emscripten_glFramebufferRenderbuffer__wrapper(p0,p1,p2,p3) {
  46326. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glFramebufferRenderbuffer(p0|0,p1|0,p2|0,p3|0);
  46327. }
  46328. function _emscripten_glGetFramebufferAttachmentParameteriv__wrapper(p0,p1,p2,p3) {
  46329. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetFramebufferAttachmentParameteriv(p0|0,p1|0,p2|0,p3|0);
  46330. }
  46331. function _emscripten_glGetInfoLogARB__wrapper(p0,p1,p2,p3) {
  46332. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glGetInfoLogARB(p0|0,p1|0,p2|0,p3|0);
  46333. }
  46334. function _emscripten_glVertexPointer__wrapper(p0,p1,p2,p3) {
  46335. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glVertexPointer(p0|0,p1|0,p2|0,p3|0);
  46336. }
  46337. function _emscripten_glTexCoordPointer__wrapper(p0,p1,p2,p3) {
  46338. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glTexCoordPointer(p0|0,p1|0,p2|0,p3|0);
  46339. }
  46340. function _emscripten_glColorPointer__wrapper(p0,p1,p2,p3) {
  46341. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glColorPointer(p0|0,p1|0,p2|0,p3|0);
  46342. }
  46343. function _emscripten_glDrawElements__wrapper(p0,p1,p2,p3) {
  46344. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glDrawElements(p0|0,p1|0,p2|0,p3|0);
  46345. }
  46346. function _emscripten_glDrawArraysInstanced__wrapper(p0,p1,p2,p3) {
  46347. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glDrawArraysInstanced(p0|0,p1|0,p2|0,p3|0);
  46348. }
  46349. function _emscripten_glViewport__wrapper(p0,p1,p2,p3) {
  46350. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glViewport(p0|0,p1|0,p2|0,p3|0);
  46351. }
  46352. function _emscripten_glScissor__wrapper(p0,p1,p2,p3) {
  46353. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glScissor(p0|0,p1|0,p2|0,p3|0);
  46354. }
  46355. function _emscripten_glColorMask__wrapper(p0,p1,p2,p3) {
  46356. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glColorMask(p0|0,p1|0,p2|0,p3|0);
  46357. }
  46358. function _emscripten_glRenderbufferStorage__wrapper(p0,p1,p2,p3) {
  46359. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glRenderbufferStorage(p0|0,p1|0,p2|0,p3|0);
  46360. }
  46361. function _emscripten_glBlendFuncSeparate__wrapper(p0,p1,p2,p3) {
  46362. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glBlendFuncSeparate(p0|0,p1|0,p2|0,p3|0);
  46363. }
  46364. function _emscripten_glStencilFuncSeparate__wrapper(p0,p1,p2,p3) {
  46365. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glStencilFuncSeparate(p0|0,p1|0,p2|0,p3|0);
  46366. }
  46367. function _emscripten_glStencilOpSeparate__wrapper(p0,p1,p2,p3) {
  46368. p0 = p0|0;p1 = p1|0;p2 = p2|0;p3 = p3|0; _emscripten_glStencilOpSeparate(p0|0,p1|0,p2|0,p3|0);
  46369. }
  46370. // EMSCRIPTEN_END_FUNCS
  46371. var FUNCTION_TABLE_viiiii = [b0,_KeyCallback,_emscripten_glUniform4i__wrapper,_emscripten_glFramebufferTexture2D__wrapper,_emscripten_glShaderBinary__wrapper,_emscripten_glDrawElementsInstanced__wrapper,b0,b0];
  46372. var FUNCTION_TABLE_vd = [b1,_emscripten_glClearDepth__wrapper,_emscripten_glClearDepthf__wrapper,_emscripten_glLineWidth__wrapper];
  46373. var FUNCTION_TABLE_vid = [b2,_emscripten_glUniform1f__wrapper,_emscripten_glVertexAttrib1f__wrapper,b2];
  46374. 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
  46375. ,b3,b3,b3];
  46376. 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
  46377. ,b4,b4,b4,b4,b4];
  46378. 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];
  46379. var FUNCTION_TABLE_viddd = [b6,_emscripten_glUniform3f__wrapper,_emscripten_glVertexAttrib3f__wrapper,b6];
  46380. var FUNCTION_TABLE_vidd = [b7,_MouseCursorPosCallback,_ScrollCallback,_emscripten_glUniform2f__wrapper,_emscripten_glVertexAttrib2f__wrapper,b7,b7,b7];
  46381. 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];
  46382. var FUNCTION_TABLE_viiiiiiii = [b9,_emscripten_glCompressedTexImage2D__wrapper,_emscripten_glCopyTexImage2D__wrapper,_emscripten_glCopyTexSubImage2D__wrapper];
  46383. var FUNCTION_TABLE_viiiiii = [b10,_emscripten_glDrawRangeElements__wrapper,_emscripten_glVertexAttribPointer__wrapper,b10];
  46384. 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];
  46385. var FUNCTION_TABLE_vidddd = [b12,_emscripten_glUniform4f__wrapper,_emscripten_glVertexAttrib4f__wrapper,b12];
  46386. var FUNCTION_TABLE_vdi = [b13,_emscripten_glSampleCoverage__wrapper];
  46387. var FUNCTION_TABLE_viiiiiii = [b14,_emscripten_glReadPixels__wrapper,_emscripten_glGetActiveUniform__wrapper,_emscripten_glGetActiveAttrib__wrapper];
  46388. var FUNCTION_TABLE_viiiiiiiii = [b15,_emscripten_glCompressedTexSubImage2D__wrapper,_emscripten_glTexImage2D__wrapper,_emscripten_glTexSubImage2D__wrapper];
  46389. var FUNCTION_TABLE_iii = [b16,_emscripten_glGetUniformLocation__wrapper,_emscripten_glGetAttribLocation__wrapper,b16];
  46390. var FUNCTION_TABLE_i = [b17,_emscripten_glCreateProgram__wrapper,_emscripten_glGetError__wrapper,b17];
  46391. var FUNCTION_TABLE_vdddddd = [b18,_emscripten_glFrustum__wrapper];
  46392. var FUNCTION_TABLE_vdddd = [b19,_emscripten_glRotatef__wrapper,_emscripten_glClearColor__wrapper,_emscripten_glBlendColor__wrapper];
  46393. var FUNCTION_TABLE_vdd = [b20,_emscripten_glDepthRange__wrapper,_emscripten_glDepthRangef__wrapper,_emscripten_glPolygonOffset__wrapper];
  46394. var FUNCTION_TABLE_v = [b21,_UpdateDrawFrame,_emscripten_glLoadIdentity__wrapper,_emscripten_glReleaseShaderCompiler__wrapper,_emscripten_glFinish__wrapper,_emscripten_glFlush__wrapper,b21,b21];
  46395. var FUNCTION_TABLE_viid = [b22,_emscripten_glTexParameterf__wrapper];
  46396. 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];
  46397. 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 };
  46398. })
  46399. // EMSCRIPTEN_END_ASM
  46400. (Module.asmGlobalArg, Module.asmLibraryArg, buffer);
  46401. var real__roundf = asm["_roundf"]; asm["_roundf"] = function() {
  46402. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46403. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46404. return real__roundf.apply(null, arguments);
  46405. };
  46406. var real__main = asm["_main"]; asm["_main"] = function() {
  46407. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46408. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46409. return real__main.apply(null, arguments);
  46410. };
  46411. var real_stackSave = asm["stackSave"]; asm["stackSave"] = function() {
  46412. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46413. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46414. return real_stackSave.apply(null, arguments);
  46415. };
  46416. var real_getTempRet0 = asm["getTempRet0"]; asm["getTempRet0"] = function() {
  46417. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46418. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46419. return real_getTempRet0.apply(null, arguments);
  46420. };
  46421. var real__llvm_cttz_i32 = asm["_llvm_cttz_i32"]; asm["_llvm_cttz_i32"] = function() {
  46422. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46423. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46424. return real__llvm_cttz_i32.apply(null, arguments);
  46425. };
  46426. var real_setThrew = asm["setThrew"]; asm["setThrew"] = function() {
  46427. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46428. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46429. return real_setThrew.apply(null, arguments);
  46430. };
  46431. var real__bitshift64Lshr = asm["_bitshift64Lshr"]; asm["_bitshift64Lshr"] = function() {
  46432. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46433. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46434. return real__bitshift64Lshr.apply(null, arguments);
  46435. };
  46436. var real__bitshift64Shl = asm["_bitshift64Shl"]; asm["_bitshift64Shl"] = function() {
  46437. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46438. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46439. return real__bitshift64Shl.apply(null, arguments);
  46440. };
  46441. var real__fflush = asm["_fflush"]; asm["_fflush"] = function() {
  46442. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46443. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46444. return real__fflush.apply(null, arguments);
  46445. };
  46446. var real__sbrk = asm["_sbrk"]; asm["_sbrk"] = function() {
  46447. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46448. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46449. return real__sbrk.apply(null, arguments);
  46450. };
  46451. var real__llvm_bswap_i32 = asm["_llvm_bswap_i32"]; asm["_llvm_bswap_i32"] = function() {
  46452. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46453. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46454. return real__llvm_bswap_i32.apply(null, arguments);
  46455. };
  46456. var real____muldi3 = asm["___muldi3"]; asm["___muldi3"] = function() {
  46457. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46458. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46459. return real____muldi3.apply(null, arguments);
  46460. };
  46461. var real____uremdi3 = asm["___uremdi3"]; asm["___uremdi3"] = function() {
  46462. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46463. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46464. return real____uremdi3.apply(null, arguments);
  46465. };
  46466. var real_stackAlloc = asm["stackAlloc"]; asm["stackAlloc"] = function() {
  46467. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46468. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46469. return real_stackAlloc.apply(null, arguments);
  46470. };
  46471. var real__i64Subtract = asm["_i64Subtract"]; asm["_i64Subtract"] = function() {
  46472. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46473. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46474. return real__i64Subtract.apply(null, arguments);
  46475. };
  46476. var real____udivmoddi4 = asm["___udivmoddi4"]; asm["___udivmoddi4"] = function() {
  46477. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46478. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46479. return real____udivmoddi4.apply(null, arguments);
  46480. };
  46481. var real_setTempRet0 = asm["setTempRet0"]; asm["setTempRet0"] = function() {
  46482. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46483. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46484. return real_setTempRet0.apply(null, arguments);
  46485. };
  46486. var real__i64Add = asm["_i64Add"]; asm["_i64Add"] = function() {
  46487. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46488. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46489. return real__i64Add.apply(null, arguments);
  46490. };
  46491. var real__emscripten_get_global_libc = asm["_emscripten_get_global_libc"]; asm["_emscripten_get_global_libc"] = function() {
  46492. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46493. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46494. return real__emscripten_get_global_libc.apply(null, arguments);
  46495. };
  46496. var real__emscripten_GetProcAddress = asm["_emscripten_GetProcAddress"]; asm["_emscripten_GetProcAddress"] = function() {
  46497. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46498. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46499. return real__emscripten_GetProcAddress.apply(null, arguments);
  46500. };
  46501. var real____udivdi3 = asm["___udivdi3"]; asm["___udivdi3"] = function() {
  46502. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46503. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46504. return real____udivdi3.apply(null, arguments);
  46505. };
  46506. var real____errno_location = asm["___errno_location"]; asm["___errno_location"] = function() {
  46507. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46508. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46509. return real____errno_location.apply(null, arguments);
  46510. };
  46511. var real____muldsi3 = asm["___muldsi3"]; asm["___muldsi3"] = function() {
  46512. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46513. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46514. return real____muldsi3.apply(null, arguments);
  46515. };
  46516. var real__free = asm["_free"]; asm["_free"] = function() {
  46517. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46518. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46519. return real__free.apply(null, arguments);
  46520. };
  46521. var real_establishStackSpace = asm["establishStackSpace"]; asm["establishStackSpace"] = function() {
  46522. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46523. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46524. return real_establishStackSpace.apply(null, arguments);
  46525. };
  46526. var real__memmove = asm["_memmove"]; asm["_memmove"] = function() {
  46527. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46528. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46529. return real__memmove.apply(null, arguments);
  46530. };
  46531. var real__strstr = asm["_strstr"]; asm["_strstr"] = function() {
  46532. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46533. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46534. return real__strstr.apply(null, arguments);
  46535. };
  46536. var real_stackRestore = asm["stackRestore"]; asm["stackRestore"] = function() {
  46537. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46538. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46539. return real_stackRestore.apply(null, arguments);
  46540. };
  46541. var real__malloc = asm["_malloc"]; asm["_malloc"] = function() {
  46542. assert(runtimeInitialized, 'you need to wait for the runtime to be ready (e.g. wait for main() to be called)');
  46543. assert(!runtimeExited, 'the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)');
  46544. return real__malloc.apply(null, arguments);
  46545. };
  46546. var _roundf = Module["_roundf"] = asm["_roundf"];
  46547. var _main = Module["_main"] = asm["_main"];
  46548. var stackSave = Module["stackSave"] = asm["stackSave"];
  46549. var getTempRet0 = Module["getTempRet0"] = asm["getTempRet0"];
  46550. var _llvm_cttz_i32 = Module["_llvm_cttz_i32"] = asm["_llvm_cttz_i32"];
  46551. var setThrew = Module["setThrew"] = asm["setThrew"];
  46552. var _bitshift64Lshr = Module["_bitshift64Lshr"] = asm["_bitshift64Lshr"];
  46553. var _bitshift64Shl = Module["_bitshift64Shl"] = asm["_bitshift64Shl"];
  46554. var _fflush = Module["_fflush"] = asm["_fflush"];
  46555. var _memset = Module["_memset"] = asm["_memset"];
  46556. var _sbrk = Module["_sbrk"] = asm["_sbrk"];
  46557. var _memcpy = Module["_memcpy"] = asm["_memcpy"];
  46558. var _llvm_bswap_i32 = Module["_llvm_bswap_i32"] = asm["_llvm_bswap_i32"];
  46559. var ___muldi3 = Module["___muldi3"] = asm["___muldi3"];
  46560. var ___uremdi3 = Module["___uremdi3"] = asm["___uremdi3"];
  46561. var stackAlloc = Module["stackAlloc"] = asm["stackAlloc"];
  46562. var _i64Subtract = Module["_i64Subtract"] = asm["_i64Subtract"];
  46563. var ___udivmoddi4 = Module["___udivmoddi4"] = asm["___udivmoddi4"];
  46564. var setTempRet0 = Module["setTempRet0"] = asm["setTempRet0"];
  46565. var _i64Add = Module["_i64Add"] = asm["_i64Add"];
  46566. var _emscripten_get_global_libc = Module["_emscripten_get_global_libc"] = asm["_emscripten_get_global_libc"];
  46567. var _emscripten_GetProcAddress = Module["_emscripten_GetProcAddress"] = asm["_emscripten_GetProcAddress"];
  46568. var ___udivdi3 = Module["___udivdi3"] = asm["___udivdi3"];
  46569. var ___errno_location = Module["___errno_location"] = asm["___errno_location"];
  46570. var ___muldsi3 = Module["___muldsi3"] = asm["___muldsi3"];
  46571. var _free = Module["_free"] = asm["_free"];
  46572. var runPostSets = Module["runPostSets"] = asm["runPostSets"];
  46573. var establishStackSpace = Module["establishStackSpace"] = asm["establishStackSpace"];
  46574. var _memmove = Module["_memmove"] = asm["_memmove"];
  46575. var _strstr = Module["_strstr"] = asm["_strstr"];
  46576. var stackRestore = Module["stackRestore"] = asm["stackRestore"];
  46577. var _malloc = Module["_malloc"] = asm["_malloc"];
  46578. var dynCall_viiiii = Module["dynCall_viiiii"] = asm["dynCall_viiiii"];
  46579. var dynCall_vd = Module["dynCall_vd"] = asm["dynCall_vd"];
  46580. var dynCall_vid = Module["dynCall_vid"] = asm["dynCall_vid"];
  46581. var dynCall_vi = Module["dynCall_vi"] = asm["dynCall_vi"];
  46582. var dynCall_vii = Module["dynCall_vii"] = asm["dynCall_vii"];
  46583. var dynCall_ii = Module["dynCall_ii"] = asm["dynCall_ii"];
  46584. var dynCall_viddd = Module["dynCall_viddd"] = asm["dynCall_viddd"];
  46585. var dynCall_vidd = Module["dynCall_vidd"] = asm["dynCall_vidd"];
  46586. var dynCall_iiii = Module["dynCall_iiii"] = asm["dynCall_iiii"];
  46587. var dynCall_viiiiiiii = Module["dynCall_viiiiiiii"] = asm["dynCall_viiiiiiii"];
  46588. var dynCall_viiiiii = Module["dynCall_viiiiii"] = asm["dynCall_viiiiii"];
  46589. var dynCall_viii = Module["dynCall_viii"] = asm["dynCall_viii"];
  46590. var dynCall_vidddd = Module["dynCall_vidddd"] = asm["dynCall_vidddd"];
  46591. var dynCall_vdi = Module["dynCall_vdi"] = asm["dynCall_vdi"];
  46592. var dynCall_viiiiiii = Module["dynCall_viiiiiii"] = asm["dynCall_viiiiiii"];
  46593. var dynCall_viiiiiiiii = Module["dynCall_viiiiiiiii"] = asm["dynCall_viiiiiiiii"];
  46594. var dynCall_iii = Module["dynCall_iii"] = asm["dynCall_iii"];
  46595. var dynCall_i = Module["dynCall_i"] = asm["dynCall_i"];
  46596. var dynCall_vdddddd = Module["dynCall_vdddddd"] = asm["dynCall_vdddddd"];
  46597. var dynCall_vdddd = Module["dynCall_vdddd"] = asm["dynCall_vdddd"];
  46598. var dynCall_vdd = Module["dynCall_vdd"] = asm["dynCall_vdd"];
  46599. var dynCall_v = Module["dynCall_v"] = asm["dynCall_v"];
  46600. var dynCall_viid = Module["dynCall_viid"] = asm["dynCall_viid"];
  46601. var dynCall_viiii = Module["dynCall_viiii"] = asm["dynCall_viiii"];
  46602. ;
  46603. Runtime.stackAlloc = Module['stackAlloc'];
  46604. Runtime.stackSave = Module['stackSave'];
  46605. Runtime.stackRestore = Module['stackRestore'];
  46606. Runtime.establishStackSpace = Module['establishStackSpace'];
  46607. Runtime.setTempRet0 = Module['setTempRet0'];
  46608. Runtime.getTempRet0 = Module['getTempRet0'];
  46609. // === Auto-generated postamble setup entry stuff ===
  46610. Module['asm'] = asm;
  46611. function ExitStatus(status) {
  46612. this.name = "ExitStatus";
  46613. this.message = "Program terminated with exit(" + status + ")";
  46614. this.status = status;
  46615. };
  46616. ExitStatus.prototype = new Error();
  46617. ExitStatus.prototype.constructor = ExitStatus;
  46618. var initialStackTop;
  46619. var preloadStartTime = null;
  46620. var calledMain = false;
  46621. dependenciesFulfilled = function runCaller() {
  46622. // If run has never been called, and we should call run (INVOKE_RUN is true, and Module.noInitialRun is not false)
  46623. if (!Module['calledRun']) run();
  46624. if (!Module['calledRun']) dependenciesFulfilled = runCaller; // try this again later, after new deps are fulfilled
  46625. }
  46626. Module['callMain'] = Module.callMain = function callMain(args) {
  46627. assert(runDependencies == 0, 'cannot call main when async dependencies remain! (listen on __ATMAIN__)');
  46628. assert(__ATPRERUN__.length == 0, 'cannot call main when preRun functions remain to be called');
  46629. args = args || [];
  46630. ensureInitRuntime();
  46631. var argc = args.length+1;
  46632. function pad() {
  46633. for (var i = 0; i < 4-1; i++) {
  46634. argv.push(0);
  46635. }
  46636. }
  46637. var argv = [allocate(intArrayFromString(Module['thisProgram']), 'i8', ALLOC_NORMAL) ];
  46638. pad();
  46639. for (var i = 0; i < argc-1; i = i + 1) {
  46640. argv.push(allocate(intArrayFromString(args[i]), 'i8', ALLOC_NORMAL));
  46641. pad();
  46642. }
  46643. argv.push(0);
  46644. argv = allocate(argv, 'i32', ALLOC_NORMAL);
  46645. try {
  46646. var ret = Module['_main'](argc, argv, 0);
  46647. // if we're not running an evented main loop, it's time to exit
  46648. exit(ret, /* implicit = */ true);
  46649. }
  46650. catch(e) {
  46651. if (e instanceof ExitStatus) {
  46652. // exit() throws this once it's done to make sure execution
  46653. // has been stopped completely
  46654. return;
  46655. } else if (e == 'SimulateInfiniteLoop') {
  46656. // running an evented main loop, don't immediately exit
  46657. Module['noExitRuntime'] = true;
  46658. return;
  46659. } else {
  46660. var toLog = e;
  46661. if (e && typeof e === 'object' && e.stack) {
  46662. toLog = [e, e.stack];
  46663. }
  46664. Module.printErr('exception thrown: ' + toLog);
  46665. Module['quit'](1, e);
  46666. }
  46667. } finally {
  46668. calledMain = true;
  46669. }
  46670. }
  46671. function run(args) {
  46672. args = args || Module['arguments'];
  46673. if (preloadStartTime === null) preloadStartTime = Date.now();
  46674. if (runDependencies > 0) {
  46675. Module.printErr('run() called, but dependencies remain, so not running');
  46676. return;
  46677. }
  46678. writeStackCookie();
  46679. preRun();
  46680. if (runDependencies > 0) return; // a preRun added a dependency, run will be called later
  46681. if (Module['calledRun']) return; // run may have just been called through dependencies being fulfilled just in this very frame
  46682. function doRun() {
  46683. if (Module['calledRun']) return; // run may have just been called while the async setStatus time below was happening
  46684. Module['calledRun'] = true;
  46685. if (ABORT) return;
  46686. ensureInitRuntime();
  46687. preMain();
  46688. if (ENVIRONMENT_IS_WEB && preloadStartTime !== null) {
  46689. Module.printErr('pre-main prep time: ' + (Date.now() - preloadStartTime) + ' ms');
  46690. }
  46691. if (Module['onRuntimeInitialized']) Module['onRuntimeInitialized']();
  46692. if (Module['_main'] && shouldRunNow) Module['callMain'](args);
  46693. postRun();
  46694. }
  46695. if (Module['setStatus']) {
  46696. Module['setStatus']('Running...');
  46697. setTimeout(function() {
  46698. setTimeout(function() {
  46699. Module['setStatus']('');
  46700. }, 1);
  46701. doRun();
  46702. }, 1);
  46703. } else {
  46704. doRun();
  46705. }
  46706. checkStackCookie();
  46707. }
  46708. Module['run'] = Module.run = run;
  46709. function exit(status, implicit) {
  46710. if (implicit && Module['noExitRuntime']) {
  46711. 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)');
  46712. return;
  46713. }
  46714. if (Module['noExitRuntime']) {
  46715. 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)');
  46716. } else {
  46717. ABORT = true;
  46718. EXITSTATUS = status;
  46719. STACKTOP = initialStackTop;
  46720. exitRuntime();
  46721. if (Module['onExit']) Module['onExit'](status);
  46722. }
  46723. if (ENVIRONMENT_IS_NODE) {
  46724. process['exit'](status);
  46725. }
  46726. Module['quit'](status, new ExitStatus(status));
  46727. }
  46728. Module['exit'] = Module.exit = exit;
  46729. var abortDecorators = [];
  46730. function abort(what) {
  46731. if (what !== undefined) {
  46732. Module.print(what);
  46733. Module.printErr(what);
  46734. what = JSON.stringify(what)
  46735. } else {
  46736. what = '';
  46737. }
  46738. ABORT = true;
  46739. EXITSTATUS = 1;
  46740. var extra = '';
  46741. var output = 'abort(' + what + ') at ' + stackTrace() + extra;
  46742. if (abortDecorators) {
  46743. abortDecorators.forEach(function(decorator) {
  46744. output = decorator(output, what);
  46745. });
  46746. }
  46747. throw output;
  46748. }
  46749. Module['abort'] = Module.abort = abort;
  46750. // {{PRE_RUN_ADDITIONS}}
  46751. if (Module['preInit']) {
  46752. if (typeof Module['preInit'] == 'function') Module['preInit'] = [Module['preInit']];
  46753. while (Module['preInit'].length > 0) {
  46754. Module['preInit'].pop()();
  46755. }
  46756. }
  46757. // shouldRunNow refers to calling main(), not run().
  46758. var shouldRunNow = true;
  46759. if (Module['noInitialRun']) {
  46760. shouldRunNow = false;
  46761. }
  46762. run();
  46763. // {{POST_RUN_ADDITIONS}}
  46764. // {{MODULE_ADDITIONS}}